1 2008-10-21 Bruno Haible <bruno@clisp.org>
3 Add gethostname() declaration to <unistd.h>.
4 * lib/unistd.in.h (gethostname): New declaration.
5 * lib/gethostname.c: Include <unistd.h>.
6 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
7 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
8 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
10 * modules/gethostname (Depends-on): Add unistd.
11 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12 (Include): Specify <unistd.h>.
13 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
15 * tests/test-gethostname.c: Include <unistd.h> first.
17 2008-10-21 Bruno Haible <bruno@clisp.org>
19 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
20 * modules/select-tests (Depends-on): Likewise.
21 Reported by Simon Josefsson.
23 2008-10-21 Simon Josefsson <simon@josefsson.org>
25 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
26 * lib/accept.c: New file, based on winsock.c.
27 * lib/bind.c: New file, based on winsock.c.
28 * lib/connect.c: New file, based on winsock.c.
29 * lib/getpeername.c: New file, based on winsock.c.
30 * lib/getsockname.c: New file, based on winsock.c.
31 * lib/getsockopt.c: New file, based on winsock.c.
32 * lib/ioctl.c: New file, based on winsock.c.
33 * lib/listen.c: New file, based on winsock.c.
34 * lib/recv.c: New file, based on winsock.c.
35 * lib/recvfrom.c: New file, based on winsock.c.
36 * lib/send.c: New file, based on winsock.c.
37 * lib/sendto.c: New file, based on winsock.c.
38 * lib/setsockopt.c: New file, based on winsock.c.
39 * lib/shutdown.c: New file, based on winsock.c.
40 * lib/socket.c: New file, based on winsock.c.
41 * lib/w32sock.h: New file, based on winsock.c.
42 * lib/winsock.c: Remove file.
43 * modules/accept: Likewise.
44 * modules/bind: Likewise.
45 * modules/connect: Likewise.
46 * modules/getpeername: Likewise.
47 * modules/getsockname: Likewise.
48 * modules/getsockopt: Likewise.
49 * modules/ioctl: Likewise.
50 * modules/listen: Likewise.
51 * modules/recv: Likewise.
52 * modules/recvfrom: Likewise.
53 * modules/send: Likewise.
54 * modules/sendto: Likewise.
55 * modules/setsockopt: Likewise.
56 * modules/shutdown: Likewise.
57 * modules/socket: Use socket.c instead of winsock.c.
58 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
59 * doc/posix-functions/accept.texi: Doc fix.
60 * doc/posix-functions/bind.texi: Doc fix.
61 * doc/posix-functions/close.texi: Doc fix.
62 * doc/posix-functions/connect.texi: Doc fix.
63 * doc/posix-functions/getpeername.texi: Doc fix.
64 * doc/posix-functions/getsockname.texi: Doc fix.
65 * doc/posix-functions/getsockopt.texi: Doc fix.
66 * doc/posix-functions/ioctl.texi: Doc fix.
67 * doc/posix-functions/listen.texi: Doc fix.
68 * doc/posix-functions/recv.texi: Doc fix.
69 * doc/posix-functions/recvfrom.texi: Doc fix.
70 * doc/posix-functions/send.texi: Doc fix.
71 * doc/posix-functions/sendto.texi: Doc fix.
72 * doc/posix-functions/setsockopt.texi: Doc fix.
73 * doc/posix-functions/shutdown.texi: Doc fix.
74 * doc/posix-functions/socket.texi: Doc fix.
76 2008-10-20 Bruno Haible <bruno@clisp.org>
78 Take into account the role of SIGABRT_COMPAT on Windows 2008.
79 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
80 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
81 as an alias for SIGABRT.
82 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
83 (sigaction): Map it to SIGABRT.
84 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
86 2008-10-20 Bruno Haible <bruno@clisp.org>
88 * lib/fts.c: Don't include lstat.h.
89 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
91 Move the lstat() declaration to <sys/stat.h>.
92 * lib/lstat.h: Remove file.
93 * lib/sys_stat.in.h: Add special invocation convention.
94 (lstat): New declaration.
95 * lib/lstat.c (orig_lstat): New function.
96 (rpl_lstat): Use orig_lstat instead of lstat.
97 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
98 AC_C_INLINE. Set REPLACE_LSTAT.
99 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
101 * modules/lstat (Files): Remove lib/lstat.h.
102 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
103 (Include): Specify <sys/stat.h> instead of lstat.h.
104 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
106 * NEWS: Mention the change.
108 2008-10-20 Bruno Haible <bruno@clisp.org>
110 * modules/posix_spawn-tests: New file.
111 * tests/test-posix_spawn3.c: New file.
113 2008-10-20 Bruno Haible <bruno@clisp.org>
115 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
116 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
117 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
118 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
119 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
121 2008-10-20 Bruno Haible <bruno@clisp.org>
123 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
124 of posix_spawn on AIX 5.3.
126 2008-10-20 Bruno Haible <bruno@clisp.org>
128 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
130 2008-10-20 Bruno Haible <bruno@clisp.org>
132 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
135 2008-10-20 Simon Josefsson <simon@josefsson.org>
137 * lib/netdb.in.h: Don't define GNU specific constants until they
138 are supported or needed. Reported by Bruno Haible
141 2008-10-20 Simon Josefsson <simon@josefsson.org>
143 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
145 2008-10-20 Simon Josefsson <simon@josefsson.org>
147 * lib/getaddrinfo.h: Remove file.
148 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
149 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
150 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
151 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
152 * modules/netdb: Substitute GNULIB_GETADDRINFO.
153 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
154 * tests/test-getaddrinfo.c: Likewise.
155 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
156 * NEWS: Mention change.
158 2008-10-19 Bruno Haible <bruno@clisp.org>
160 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
162 2008-10-19 Bruno Haible <bruno@clisp.org>
164 * lib/wait-process.c: Include simply <sys/wait.h>.
165 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
166 WIFSTOPPED): Remove fallback definitions.
167 * modules/wait-process (Depends-on): Add sys_wait.
169 New module 'sys_wait'.
170 * modules/sys_wait: New file.
171 * lib/sys_wait.in.h: New file, partially copied from
173 * m4/sys_wait_h.m4: New file.
174 * doc/posix-headers/sys_wait.texi: Mention the new module.
176 2008-10-19 Bruno Haible <bruno@clisp.org>
178 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
180 2008-10-19 Bruno Haible <bruno@clisp.org>
182 Assume that waitpid() fills an 'int' status, not a 'union wait'.
183 * lib/wait-process.c (WAIT_T): Remove type.
184 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
185 (wait_subprocess): Update.
187 2008-10-19 Bruno Haible <bruno@clisp.org>
190 * modules/atoll: New file.
191 * lib/stdlib.in.h (atoll): New declaration.
192 * lib/atoll.c: New file, from glibc with modifications.
193 * m4/atoll.m4: New file.
194 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
196 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
197 * doc/posix-functions/atoll.texi: Mention the new module.
199 2008-10-19 Bruno Haible <bruno@clisp.org>
201 Add strtoull() declaration to <stdlib.h>.
202 * lib/stdlib.in.h (strtoull): New declaration.
203 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
205 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
207 * modules/strtoull (Depends-on): Add stdlib.
208 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
209 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
212 2008-10-19 Bruno Haible <bruno@clisp.org>
214 Add strtoll() declaration to <stdlib.h>.
215 * lib/stdlib.in.h (strtoll): New declaration.
216 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
218 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
220 * modules/strtoll (Depends-on): Add stdlib.
221 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
222 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
224 2008-10-19 Bruno Haible <bruno@clisp.org>
226 * modules/bcopy (Depends-on): Add strings.
227 (Include): Specify <strings.h>.
229 2008-10-19 Bruno Haible <bruno@clisp.org>
231 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
233 2008-10-19 Bruno Haible <bruno@clisp.org>
235 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
236 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
239 2008-10-19 Bruno Haible <bruno@clisp.org>
241 * lib/atanl.c: Don't include isnanl.h.
242 * lib/cosl.c: Likewise.
243 * lib/ldexpl.c: Likewise.
244 * lib/logl.c: Likewise.
245 * lib/sinl.c: Likewise.
246 * lib/sqrtl.c: Likewise.
247 * lib/tanl.c: Likewise.
249 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
250 * lib/isnanf.h: Remove file.
251 * lib/isnand.h: Remove file.
252 * lib/isnanl.h: Remove file.
253 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
254 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
256 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
257 HAVE_ISNANF, don't define it as a C macro.
258 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
259 HAVE_ISNAND, don't define it as a C macro.
260 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
261 HAVE_ISNANL, don't define it as a C macro.
262 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
264 * modules/isnanf (Files): Remove lib/isnanf.h.
265 (Depends-on): Add math.
266 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
267 (Include): Specify <math.h> instead of isnanf.h.
268 * modules/isnand (Files): Remove lib/isnand.h.
269 (Depends-on): Add math.
270 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
271 (Include): Specify <math.h> instead of isnand.h.
272 * modules/isnanl (Files): Remove lib/isnanl.h.
273 (Depends-on): Add math.
274 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
275 (Include): Specify <math.h> instead of isnanl.h.
276 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
278 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
279 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
280 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
281 * NEWS: Mention the change.
283 2008-10-18 Bruno Haible <bruno@clisp.org>
285 Add getusershell(), setusershell(), endusershell() declarations to
287 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
289 * lib/getusershell.c: Include unistd.h.
290 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
291 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
293 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
294 and HAVE_GETUSERSHELL.
295 * modules/getusershell (Depends-on): Add unistd, extensions.
296 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
297 (Include): Specify <unistd.h>.
298 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
301 2008-10-18 Bruno Haible <bruno@clisp.org>
303 Add a getloadavg() declaration to <stdlib.h>.
304 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
305 getloadavg declaration.
306 (getloadavg): New declaration.
307 * lib/getloadavg.c: Include <stdlib.h> first.
308 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
309 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
310 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
311 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
312 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
313 * modules/getloadavg (Depends-on): Add stdlib, extensions.
314 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
315 (Include): Specify <stdlib.h>.
316 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
317 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
319 2008-10-18 Bruno Haible <bruno@clisp.org>
321 * lib/dirchownmod.c: Don't include lchmod.h.
323 Move the lchmod() declaration to <sys/stat.h>.
324 * lib/lchmod.h: Remove file.
325 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
326 (lchmod): New declaration, moved here from lib/lchown.h.
327 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
328 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
329 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
331 * modules/lchmod (Files): Remove lib/lchmod.h.
332 (Depends-on): Add sys_stat, extensions.
333 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
334 (Include): Specify <sys/stat.h> instead of lchmod.h.
335 * modules/sys_stat (Depends-on): Add link-warning.
336 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
337 definition of GL_LINK_WARNING.
338 * NEWS: Mention the change.
340 2008-10-18 Bruno Haible <bruno@clisp.org>
342 * lib/fchdir.c: Don't include dirfd.h.
343 * lib/fts.c: Likewise.
344 * lib/getcwd.c: Likewise.
345 * lib/glob.c: Likewise.
347 Move the dirfd() declaration to <dirent.h>.
348 * lib/dirfd.h: Remove file.
349 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
350 (dirfd): New declaration.
351 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
352 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
353 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
355 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
357 * modules/dirfd (Files): Remove lib/dirfd.h.
358 (Depends-on): Add dirent, extensions.
359 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
360 (Include): Specify <dirent.h> instead of dirfd.h.
361 * modules/dirent (Depends-on): Add link-warning.
362 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
363 definition of GL_LINK_WARNING.
364 * NEWS: Mention the change.
366 2008-10-18 Bruno Haible <bruno@clisp.org>
368 Move the euidaccess() declaration to <unistd.h>.
369 * lib/euidaccess.h: Remove file.
370 * lib/unistd.in.h (euidaccess): New declaration.
371 * lib/euidaccess.c: Don't include euidaccess.h.
372 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
373 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
374 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
376 * modules/euidaccess (Files): Remove lib/euidaccess.h.
377 (Depends-on): Add unistd.
378 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
379 (Include): Specify <unistd.h> instead of euidaccess.h.
380 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
382 * NEWS: Mention the change.
384 2008-10-18 Bruno Haible <bruno@clisp.org>
386 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
388 Move the getdomainname() declaration to <unistd.h>.
389 * lib/getdomainname.h: Remove file.
390 * lib/unistd.in.h (getdomainname): New declaration.
391 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
392 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
393 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
395 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
396 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
397 * modules/getdomainname (Files): Remove lib/getdomainname.h.
398 (Depends-on): Add unistd, extensions.
399 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
400 (Includes): Specify <unistd.h> instead of getdomainname.h.
401 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
403 * NEWS: Mention the change.
405 2008-10-18 Bruno Haible <bruno@clisp.org>
407 * modules/dirent: New file.
408 * m4/dirent_h.m4: New file.
409 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
410 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
411 * modules/fchdir (Files): Remove lib/dirent.in.h.
412 (Depends-on): Add dirent.
413 (Makefile.am): Move rules to modules/dirent.
414 * doc/posix-headers/dirent.texi: Mention the new module.
416 2008-10-18 Bruno Haible <bruno@clisp.org>
418 Avoid -Wunused-parameter warnings in public gnulib header files.
419 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
421 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
423 2008-10-18 Bruno Haible <bruno@clisp.org>
425 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
426 * doc/glibc-functions/error.texi: Mention the module 'error'.
427 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
428 * doc/glibc-functions/getdomainname.texi: Mention the module
430 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
431 * doc/glibc-functions/getpagesize.texi: Mention the module
433 * doc/glibc-functions/getusershell.texi: Mention the module
435 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
436 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
437 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
438 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
439 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
440 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
441 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
442 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
443 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
444 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
445 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
446 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
447 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
448 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
450 2008-10-17 Bruno Haible <bruno@clisp.org>
452 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
453 HP-UX and IRIX, use -0.0L.
454 * tests/test-ceill.c (minus_zero): Likewise.
455 * tests/test-floorl.c (minus_zero): Likewise.
456 * tests/test-frexpl.c (minus_zero): Likewise.
457 * tests/test-isnan.c (minus_zerol): Likewise.
458 * tests/test-isnanl.h (minus_zero): Likewise.
459 * tests/test-ldexpl.c (minus_zero): Likewise.
460 * tests/test-roundl.c (minus_zero): Likewise.
461 * tests/test-signbit.c (minus_zerol): Likewise.
462 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
463 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
464 * tests/test-truncl.c (minus_zero): Likewise.
465 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
466 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
467 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
468 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
470 2008-10-17 Bruno Haible <bruno@clisp.org>
472 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
473 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
474 that it gets activated only for gcc >= 3.0.
475 * lib/dirent.in.h: Likewise.
476 * lib/errno.in.h: Likewise.
477 * lib/fcntl.in.h: Likewise.
478 * lib/float.in.h: Likewise.
479 * lib/iconv.in.h: Likewise.
480 * lib/inttypes.in.h: Likewise.
481 * lib/locale.in.h: Likewise.
482 * lib/math.in.h: Likewise.
483 * lib/netdb.in.h: Likewise.
484 * lib/netinet_in.in.h: Likewise.
485 * lib/search.in.h: Likewise.
486 * lib/signal.in.h: Likewise.
487 * lib/spawn.in.h: Likewise.
488 * lib/stdarg.in.h: Likewise.
489 * lib/stdint.in.h: Likewise.
490 * lib/stdio.in.h: Likewise.
491 * lib/stdlib.in.h: Likewise.
492 * lib/string.in.h: Likewise.
493 * lib/strings.in.h: Likewise.
494 * lib/sys_file.in.h: Likewise.
495 * lib/sys_ioctl.in.h: Likewise.
496 * lib/sys_select.in.h: Likewise.
497 * lib/sys_socket.in.h: Likewise.
498 * lib/sys_stat.in.h: Likewise.
499 * lib/sys_time.in.h: Likewise.
500 * lib/sysexits.in.h: Likewise.
501 * lib/time.in.h: Likewise.
502 * lib/unistd.in.h: Likewise.
503 * lib/wchar.in.h: Likewise.
504 * lib/wctype.in.h: Likewise.
505 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
507 2008-10-17 Jim Meyering <meyering@redhat.com>
509 ignore-value: don't depend on inline module
510 * modules/ignore-value (Depends-on): Remove 'inline'.
511 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
512 Suggestion from Bruno Haible.
514 2008-10-17 Bruno Haible <bruno@clisp.org>
516 New implementation of condition variables for Win32.
517 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
518 (gl_linked_waitqueue_t): New type.
520 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
521 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
522 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
523 (glthread_cond_init_func, glthread_cond_wait_func,
524 glthread_cond_timedwait_func, glthread_cond_signal_func,
525 glthread_cond_broadcast_func, glthread_cond_destroy_func):
526 Reimplemented on the basis of gl_linked_waitqueue_t.
527 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
529 (gl_rwlock_t): Update.
530 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
532 2008-10-17 Simon Josefsson <simon@josefsson.org>
534 * modules/recvfrom (Depends-on): Add dependency on getpeername.
535 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
537 2008-10-17 Jim Meyering <meyering@redhat.com>
539 ignore-value: new module
540 * modules/ignore-value: New file.
541 * lib/ignore-value.h: New file.
542 * MODULES.html.sh (Compiler warning management): New section,
543 just for this module. More to come.
545 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
547 open-safer.c: avoid 'signed and unsigned in conditional...' warning
548 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
549 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
551 2008-10-16 Jim Meyering <meyering@redhat.com>
553 openat-die.c: avoid 'no previous prototype' warning
554 * lib/openat-die.c: Include "openat.h".
555 Reported by Reuben Thomas <rrt@sc3d.org>.
557 2008-10-16 Simon Josefsson <simon@josefsson.org>
559 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
560 * lib/netdb.in.h: Fix typo.
561 Reported by Bruno Haible <bruno@clisp.org>
563 * lib/netdb.in.h: Include sys/socket.h for platforms without
564 netdb.h, to get structures like hostent on MinGW.
565 * modules/netdb (Depends-on): Add sys_socket.
567 2008-10-15 Simon Josefsson <simon@josefsson.org>
569 * modules/netdb, modules/netdb-tests: New file.
570 * m4/netdb_h.m4: New file.
571 * lib/netdb.in.h: Add, currently just an empty file pending
573 * tests/test-netdb.c: New file.
574 * doc/posix-headers/netdb.texi: Mention that we replace it if
576 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
579 2008-10-15 Simon Josefsson <simon@josefsson.org>
581 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
584 2008-10-13 Bruno Haible <bruno@clisp.org>
586 * lib/glthread/cond.c (glthread_cond_wait_func,
587 glthread_cond_timedwait_func): Add a comment.
589 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
591 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
592 * tests/test-select.c: Likewise,
594 2008-10-13 Bruno Haible <bruno@clisp.org>
596 * lib/glthread/cond.c (glthread_cond_wait_func,
597 glthread_cond_timedwait_func): Fix variable name.
598 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
600 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
602 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
603 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
604 struct sockaddr.sa_len.
605 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
607 2008-10-13 Simon Josefsson <simon@josefsson.org>
609 * build-aux/pmccabe2html: Add css and css_url parameters.
611 2008-10-12 Bruno Haible <bruno@clisp.org>
613 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
615 Reported by Rainer Tammer <tammer@tammer.net>.
617 2008-10-12 Bruno Haible <bruno@clisp.org>
619 Use msvcrt aware primitives for creation/termination of Win32 threads.
620 * lib/glthread/thread.c: Include <process.h>.
621 (glthread_create_func): Use _beginthreadex instead of CreateThread.
622 (wrapper_func): Update signature.
623 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
625 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
626 Bruno Haible <bruno@clisp.org>
628 Provide a Win32 implementation of the 'cond' module.
629 * lib/glthread/cond.h [USE_WIN32]: New implementation.
630 * lib/glthread/cond.c (glthread_cond_init_func,
631 glthread_cond_wait_func, glthread_cond_timedwait_func,
632 glthread_cond_signal_func, glthread_cond_broadcast_func,
633 glthread_cond_destroy_func) [USE_WIN32]: New functions.
634 * modules/cond (Dependencies): Add gettimeofday.
636 2008-10-11 Bruno Haible <bruno@clisp.org>
638 Make sleep work on older versions of mingw.
639 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
640 only whether it exists.
641 * doc/posix-functions/sleep.texi: Mention the problem with older
644 2008-10-11 Bruno Haible <bruno@clisp.org>
646 New module 'shutdown'.
647 * modules/shutdown: New file.
648 * lib/sys_socket.in.h (shutdown): New declaration.
649 * lib/winsock.c (shutdown): New function.
650 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
652 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
653 * doc/posix-functions/shutdown.texi: Document the new module.
655 2008-10-11 Jim Meyering <meyering@redhat.com>
657 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
659 2008-10-11 Bruno Haible <bruno@clisp.org>
662 * modules/fclose: New file.
663 * lib/stdio.in.h (fclose): New declaration.
664 * lib/fclose.c: New file.
665 * m4/fclose.m4: New file.
666 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
668 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
669 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
671 * modules/close (Depends-on): fclose.
672 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
674 2008-10-11 Bruno Haible <bruno@clisp.org>
676 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
677 set errno and don't call _close.
679 2008-10-10 Bruno Haible <bruno@clisp.org>
681 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
682 ACL, not afterwards. Fixes test failure on Cygwin.
684 2008-10-09 Ben Pfaff <blp@gnu.org>
686 * build-aux/announce-gen: Fix gnulib version related part of usage
687 message. Die with a useful error message if no tarballs are
690 2008-10-10 Jim Meyering <meyering@redhat.com>
692 bootstrap: use git's --depth=N option only if it's supported
693 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
694 recognize the --depth option. Reported by Pádraig Brady.
696 2008-10-09 Bruno Haible <bruno@clisp.org>
699 * modules/ioctl: New file.
700 * lib/sys_socket.in.h (ioctl): Remove declaration.
701 * lib/winsock.c: Include <sys/ioctl.h>.
702 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
703 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
704 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
705 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
706 * doc/posix-functions/ioctl.texi: Mention the new module.
708 2008-10-09 Bruno Haible <bruno@clisp.org>
710 New module 'sys_ioctl'.
711 * lib/sys_ioctl.in.h: New file.
712 * m4/sys_ioctl_h.m4: New file.
713 * modules/sys_ioctl: New file.
714 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
716 2008-10-09 Bruno Haible <bruno@clisp.org>
718 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
719 * lib/winsock.c: Include <stdarg.h>.
720 (rpl_ioctl): Change to second argument 'int' and then varargs.
722 2008-10-09 Bruno Haible <bruno@clisp.org>
724 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
725 when the sys_socket module is present and the system has <winsock2.h>.
727 2008-10-09 Bruno Haible <bruno@clisp.org>
729 * doc/posix-functions/close.texi: Mention module 'close' instead of
732 2008-10-09 Bruno Haible <bruno@clisp.org>
734 * doc/glibc-headers/sys_ioctl.texi: New file.
735 * doc/gnulib.texi: Include it.
737 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
738 Bruno Haible <bruno@clisp.org>
740 Combine the two replacements of 'close'.
741 * lib/sys_socket.in.h (close): Define to a reminder to include
743 (_gl_close_fd_maybe_socket): New declaration.
744 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
745 * lib/winsock.c (close): Remove undefinition.
746 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
747 needed for the gnulib module 'close'.
748 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
749 define to an error symbol or to a warning, if suitable.
750 * lib/close.c: Include <sys/socket.h>.
751 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
752 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
753 UNISTD_H_HAVE_WINSOCK2_H.
754 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
755 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
756 UNISTD_H_HAVE_WINSOCK2_H.
757 * modules/sys_socket (Files): Add m4/unistd_h.m4.
758 (configure.ac): Set a module indicator.
759 (Makefile.am): Substitute GNULIB_CLOSE.
760 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
761 * modules/poll-tests (Depends-on): Add close.
762 * modules/select-tests (Depends-on): Likewise.
764 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
765 Bruno Haible <bruno@clisp.org>
768 * modules/close: New file.
769 * lib/unistd.in.h (close): Move declaration out of the
770 FCHDIR_REPLACEMENT scope.
771 (_gl_unregister_fd): New declaration.
772 * lib/close.c: New file.
773 * lib/fchdir.c (rpl_close): Remove function.
774 * m4/close.m4: New file.
775 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
777 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
779 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
781 * modules/fchdir (Depends-on): Add close.
783 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
784 Bruno Haible <bruno@clisp.org>
786 * lib/fcntl.in.h (open): Simplify conditionals.
787 (_gl_register_fd): New declaration.
788 * lib/fchdir.c (rpl_open): Remove function.
789 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
791 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
792 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
795 2008-10-09 Jim Meyering <meyering@redhat.com>
797 GNUmakefile: use the more name-space-friendly "_version"
798 * top/GNUmakefile (_dummy): Update.
799 (_version): Rename from "version".
801 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
802 Bruno Haible <bruno@clisp.org>
804 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
806 (_gl_register_fd): New function, extracted from rpl_open.
807 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
808 (rpl_open, rpl_opendir): Use _gl_register_fd.
810 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
812 Fix organization of 'open' replacement.
813 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
814 (gl_FUNC_OPEN): Use it.
815 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
817 2008-10-08 Bruno Haible <bruno@clisp.org>
819 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
821 2008-10-08 Simon Josefsson <simon@josefsson.org>
823 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
824 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
827 2008-10-08 Eric Blake <ebb9@byu.net>
829 GNUmakefile: add 'make version' target
830 * top/GNUmakefile (_curr-ver): Split version update rules...
831 (version): ...into a target.
833 2008-10-07 Bruno Haible <bruno@clisp.org>
835 Use a more portable replacement expression for -0.0L.
836 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
837 instead of -0.0L. Fix m4 quotation.
839 * tests/test-signbit.c: Include <float.h>.
840 (minus_zero): New variable.
841 (test_signbitl): Use minus_zero instead of -zero.
842 * modules/signbit-tests (Depends-on): Add float.
844 * tests/test-ceill.c: Include <float.h>.
845 (zero): Remove variable.
846 (minus_zero): New variable.
847 (main): Use minus_zero instead of -zero.
848 * modules/ceill-tests (Depends-on): Add float.
850 * tests/test-floorl.c: Include <float.h>.
851 (zero): Remove variable.
852 (minus_zero): New variable.
853 (main): Use minus_zero instead of -zero.
854 * modules/floorl-tests (Depends-on): Add float.
856 * tests/test-roundl.c: Include <float.h>.
857 (zero): Remove variable.
858 (minus_zero): New variable.
859 (main): Use minus_zero instead of -zero.
860 * modules/roundl-tests (Depends-on): Add float.
862 * tests/test-truncl.c: Include <float.h>.
863 (zero): Remove variable.
864 (minus_zero): New variable.
865 (main): Use minus_zero instead of -zero.
866 * modules/truncl-tests (Depends-on): Add float.
868 * tests/test-frexpl.c (zero): Remove variable.
869 (minus_zero): New variable.
870 (main): Use minus_zero instead of -zero.
871 * modules/frexpl-tests (Depends-on): Add float.
873 * tests/test-isnan.c (zerol): Remove variable.
874 (minus_zerol): New variable.
875 (test_long_double): Use minus_zerol instead of -zerol.
876 * modules/isnan-tests (Depends-on): Add float.
878 * tests/test-isnanl.h (zero): Remove variable.
879 (minus_zero): New variable.
880 (main): Use minus_zero instead of -zero.
881 * modules/isnanl-nolibm-tests (Depends-on): Add float.
882 * modules/isnanl-tests (Depends-on): Add float.
884 * tests/test-ldexpl.c (zero): Remove variable.
885 (minus_zero): New variable.
886 (main): Use minus_zero instead of -zero.
887 * modules/ldexpl-tests (Depends-on): Add float.
889 * tests/test-snprintf-posix.h (zerol): Remove variable.
890 (minus_zerol): New variable.
891 (test_function): Use minus_zerol instead of -zerol.
892 * modules/snprintf-posix-tests (Depends-on): Add float.
893 * modules/vsnprintf-posix-tests (Depends-on): Add float.
895 * tests/test-sprintf-posix.h (zerol): Remove variable.
896 (minus_zerol): New variable.
897 (test_function): Use minus_zerol instead of -zerol.
898 * modules/sprintf-posix-tests (Depends-on): Add float.
899 * modules/vsprintf-posix-tests (Depends-on): Add float.
901 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
902 (minus_zerol): New variable.
903 (test_function): Use minus_zerol instead of -zerol.
904 * modules/vasnprintf-posix-tests (Depends-on): Add float.
906 * tests/test-vasprintf-posix.c (zerol): Remove variable.
907 (minus_zerol): New variable.
908 (test_function): Use minus_zerol instead of -zerol.
909 * modules/vasprintf-posix-tests (Depends-on): Add float.
911 2008-10-07 Simon Josefsson <simon@josefsson.org>
913 * MODULES.html.sh (Support for building documentation): Mention
914 pmccabe2html. Sort entries.
916 Add pmccabe2html module, from gnupdf.
917 * build-aux/pmccabe.css: New file.
918 * build-aux/pmccabe2html: New file.
919 * m4/pmccabe2html.m4: New file.
920 * modules/pmccabe2html: New file.
922 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
925 * MODULES.html.sh: Add to list of modules.
926 * lib/flock.c: flock implementation for Windows and Unix systems
928 * doc/glibc-functions/flock.texi: Update documentation.
929 * lib/sys_file.in.h: <sys/file.h> header file.
930 * m4/flock.m4: M4 macros.
931 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
932 * modules/flock: flock module.
933 * modules/flock-tests: flock tests module.
934 * modules/sys_file: sys/file.h module.
935 * tests/test-flock.c: test suite for flock.
937 2008-10-06 Jim Meyering <meyering@redhat.com>
939 bootstrap: check for LT_INIT more portably still ;-)
940 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
941 Spotted by Bruno Haible.
943 2008-10-06 Eric Blake <ebb9@byu.net>
945 test-signbit: avoid tripping Irix cc bug on -0.0L
946 * tests/test-signbit.c (minus_zerol): Delete, and replace with
947 '-zerol'. This may break on HP-UX/hppa, but at least makes the
948 entire testsuite consistent and avoids an Irix 6.2 bug.
950 2008-10-05 Bruno Haible <bruno@clisp.org>
951 Jim Meyering <jim@meyering.net>
953 Add an option for ignoring EPIPE during close_stdout.
954 * lib/closeout.h: Include <stdbool.h>.
955 (close_stdout_set_ignore_EPIPE): New declaration.
956 * lib/closeout.c: Include <stdbool.h>.
957 (ignore_EPIPE): New variable.
958 (close_stdout_set_ignore_EPIPE): New function.
959 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
960 * lib/close-stream.c (close_stream): Mention the possible EPIPE
962 * modules/closeout (Depends-on): Add stdbool.
964 2008-10-05 Bruno Haible <bruno@clisp.org>
966 * modules/accept: New file.
967 * modules/bind: New file.
968 * modules/connect: New file.
969 * modules/getpeername: New file.
970 * modules/getsockname: New file.
971 * modules/getsockopt: New file.
972 * modules/listen: New file.
973 * modules/recv: New file.
974 * modules/recvfrom: New file.
975 * modules/send: New file.
976 * modules/sendto: New file.
977 * modules/setsockopt: New file.
978 * modules/socket: New file.
979 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
980 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
981 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
982 the particular module is requested. Add a link warning when the
983 particular module is not requested.
984 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
985 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
986 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
987 the particular module is requested.
988 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
989 gl_SYS_SOCKET_H_DEFAULTS): New macros.
990 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
991 * modules/sys_socket (Depends-on): Add link-warning.
992 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
993 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
994 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
995 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
997 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
998 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
999 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
1000 * doc/posix-functions/getpeername.texi: Mention the new module
1002 * doc/posix-functions/getsockname.texi: Mention the new module
1004 * doc/posix-functions/getsockopt.texi: Mention the new module
1006 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
1007 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
1008 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
1009 * doc/posix-functions/send.texi: Mention the new module 'send'.
1010 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
1011 * doc/posix-functions/setsockopt.texi: Mention the new module
1013 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
1014 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
1015 listen, connect, accept.
1016 * modules/select-tests (Depends-on): Likewise.
1018 2008-10-05 Bruno Haible <bruno@clisp.org>
1020 * lib/winsock.c (strerror): Remove unused #undef.
1021 (rpl_close): Remove unused local variable.
1023 * modules/sys_socket (Depends-on); Add errno.
1025 2008-10-05 Bruno Haible <bruno@clisp.org>
1027 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
1028 (select): Add a link warning when the 'select' module is not used.
1029 * modules/sys_select (Depends-on): Add link-warning.
1030 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
1031 Suggested by Paolo Bonzini.
1033 2008-10-05 Jim Meyering <meyering@redhat.com>
1035 bootstrap: check for LT_INIT more portably
1036 * build-aux/bootstrap: Avoid using grep -E, since it's not
1037 portable enough. Suggestion from Bruno Haible.
1039 2008-10-05 Bruno Haible <bruno@clisp.org>
1041 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
1042 as being fixed by gnulib.
1044 2008-10-05 Bruno Haible <bruno@clisp.org>
1046 * modules/select-tests: New file, mostly copied from
1047 modules/sys_select-tests.
1048 * tests/test-select.c: New file, mostly copied from
1049 tests/test-sys_select.c.
1050 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
1051 * modules/sys_select-tests (Depends-on): Remove all dependencies.
1052 (Makefile.am): Remove test_sys_select_LDADD.
1054 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
1055 to an undefined symbol, for an error message.
1056 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
1057 (gl_SYS_SELECT_H_DEFAULTS): New macro.
1058 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
1059 winsock-select.c here.
1060 * modules/sys_select (Files): Remove lib/winsock-select.c.
1061 (Depends-on): Remove alloca.
1062 (Makefile.am): Substitute GNULIB_SELECT.
1063 * modules/select: New file.
1064 * doc/posix-functions/select.texi: Update.
1066 2008-10-05 Bruno Haible <bruno@clisp.org>
1068 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
1069 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
1070 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
1071 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
1073 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
1074 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
1076 2008-10-05 Bruno Haible <bruno@clisp.org>
1078 * modules/getdtablesize-tests: New file.
1079 * tests/test-getdtablesize.c: New file.
1081 New module 'getdtablesize'.
1082 * lib/unistd.in.h (getdtablesize): New declaration.
1083 * lib/getdtablesize.c: New file.
1084 * m4/getdtablesize.m4: New file.
1085 * modules/getdtablesize: New file.
1086 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1087 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
1088 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
1090 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
1092 2008-10-05 Bruno Haible <bruno@clisp.org>
1094 * modules/sched (Makefile.am): Fix typo.
1095 Reported by Simon Josefsson.
1097 2008-10-05 Jim Meyering <meyering@redhat.com>
1099 bootstrap: check for LT_INIT, too
1100 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
1101 are deprecated. Suggestion from Ralf Wildenhues.
1103 2008-10-05 Bruno Haible <bruno@clisp.org>
1105 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
1106 overriding them by ours.
1107 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
1109 2008-10-05 Jim Meyering <meyering@redhat.com>
1111 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
1112 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
1113 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
1115 2008-10-04 Bruno Haible <bruno@clisp.org>
1117 * modules/dup2 (License): Change to LGPLv2+.
1118 * modules/sleep (License): Likewise.
1119 * modules/perror (License): Likewise.
1120 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
1122 * modules/signal (License): Likewise.
1123 * modules/sigprocmask (License): Likewise.
1124 * modules/raise (License): Change to LGPLv2+, with approval by Jim
1127 2008-10-04 Bruno Haible <bruno@clisp.org>
1129 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
1130 Reported by Rainer Tammer <tammer@tammer.net>.
1132 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
1133 Bruno Haible <bruno@clisp.org>
1135 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
1136 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
1137 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
1139 2008-10-03 Kamil Dudka <kdudka@redhat.com>
1141 filevercmp: new module
1142 * lib/filevercmp.h: New function filevercmp comparing version strings.
1143 * lib/filevercmp.c: Implementation of filevercmp function.
1144 * modules/filevercmp: Module metadata.
1145 * tests/test-filevercmp.c: Unit test for new module.
1146 * modules/filevercmp-tests: Unit test metadata.
1147 * MODULES.html.sh: Add filevercmp module.
1149 2008-10-03 Bruno Haible <bruno@clisp.org>
1151 * lib/c-ctype.h: Add comment.
1152 Reported by Jim Meyering.
1154 2008-10-02 Bruno Haible <bruno@clisp.org>
1156 * modules/posix_spawn-internal (Depends-on): Add 'open'.
1158 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
1160 * build-aux/bootstrap: Allow renaming bootstrap, and change the
1161 name of bootstrap.conf accordingly.
1163 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
1165 * build-aux/bootstrap: Install git-merge-changelog configuration
1166 items into .gitconfig if needed.
1168 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
1170 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
1171 git repository, and initialize/update it accordingly.
1173 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
1175 * modules/fsync-tests: New file.
1176 * tests/test-fsync.c: New file.
1179 * lib/fsync.c: New file.
1180 * m4/fsync.m4: New file.
1181 * modules/fsync: New file.
1182 * lib/unistd.in.h (fsync): New declaration.
1183 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
1184 GNULIB_FSYNC and HAVE_FSYNC.
1185 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
1186 * MODULES.html.sh (posix_functions): Add fsync.
1187 * doc/posix-functions/fsync.texi: Mention the new module.
1189 2008-10-02 Jim Meyering <meyering@redhat.com>
1191 fts.c: sync with similar code from coreutils' remove.c
1192 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
1193 Guard also with "#if defined __linux__", since for now at least,
1194 this code is Linux-kernel-specific.
1196 2008-10-02 Jim Meyering <meyering@redhat.com>
1199 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
1200 Include <sys/vfs.h>, not <sys/statfs.h>.
1202 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
1203 Include <sys/vfs.h>, not <sys/statfs.h>.
1205 2008-10-01 Bruno Haible <bruno@clisp.org>
1207 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
1208 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
1209 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
1210 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
1211 * doc/posix-functions/posix_spawnp.texi: Likewise.
1212 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
1213 whether posix_spawn actually works.
1214 * m4/pipe.m4 (gl_PIPE): Likewise.
1215 * modules/execute (Files): Add m4/posix_spawn.m4.
1216 * modules/pipe (Files): Add m4/posix_spawn.m4.
1217 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
1219 2008-10-01 Jim Meyering <meyering@redhat.com>
1221 remove trailing spaces
1223 * lib/poll.c (poll): Likewise.
1224 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
1225 * lib/winsock.c (rpl_close): Likewise.
1226 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
1227 * modules/yield: Likewise.
1228 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
1229 * tests/test-sys_select.c (connect_to_socket): Likewise.
1231 fts.c: adjust a new interface to be more generally useful
1232 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
1233 (fts_build): Adjust caller.
1235 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1237 * modules/cond-tests: New file.
1238 * tests/test-cond.c: New file.
1240 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1241 Bruno Haible <bruno@clisp.org>
1243 * modules/cond (Dependencies): Add errno, time.
1244 * lib/glthread/cond.h: Include <time.h>.
1245 (gl_cond_define, gl_cond_define_initialized): Use the same definition
1248 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1249 Bruno Haible <bruno@clisp.org>
1251 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
1253 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1254 Bruno Haible <bruno@clisp.org>
1256 * modules/tls-tests (Depends-on): Add thread, yield.
1257 (configure.ac): Remove all checks.
1258 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
1259 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
1260 gl_thread_self): Remove definitions. Include glthread/thread.h and
1261 glthread/yield.h instead.
1262 (test_tls): Pass an additional NULL argument to gl_thread_join.
1264 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1265 Bruno Haible <bruno@clisp.org>
1267 * modules/lock-tests (Depends-on): Add thread, yield.
1268 (configure.ac): Remove all checks.
1269 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
1270 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
1271 gl_thread_self): Remove definitions. Include glthread/thread.h and
1272 glthread/yield.h instead.
1273 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
1274 additional NULL argument to gl_thread_join.
1276 2008-09-30 Bruno Haible <bruno@clisp.org>
1278 Fix the Win32 implementation of the 'thread' module.
1279 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
1281 (gl_thread_self): Invoke gl_thread_self_func.
1282 (gl_thread_self_func): New declaration.
1283 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
1284 (do_init_self_key, init_self_key): New functions.
1285 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
1287 (running_threads, running_lock): Remove variables.
1288 (get_current_thread_handle): New function.
1289 (gl_thread_self_func, wrapper_func, glthread_create_func,
1290 glthread_join_func, gl_thread_exit_func): Largely rewritten and
1293 2008-09-30 Bruno Haible <bruno@clisp.org>
1295 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
1298 2008-09-30 Jim Meyering <meyering@redhat.com>
1300 fts.m4: correct the test for statfs.f_type
1301 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
1302 when checking for statfs.f_type.
1304 2008-09-15 Simon Josefsson <simon@josefsson.org>
1306 tests: avoid some compiler warnings
1307 * tests/test-memchr.c (main): Pass NULL indirectly.
1308 * tests/test-getdate.c (main): Remove unused variable 'ret'.
1310 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
1312 getdate.y: disallow countable dayshifts like "4 yesterday ago"
1313 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
1314 exactly specified dayshifts.
1315 (dayshift): New rule.
1316 (rel): Add dayshift.
1317 (relative_time_table) [tomorrow, yesterday, today, now]:
1318 Use tDAY_SHIFT in place of tDAY_UNIT.
1319 * tests/test-getdate.c: Add tests for now-disallowed countable
1320 dayshifts, e.g., "4 yesterday ago".
1322 2008-09-29 Bruno Haible <bruno@clisp.org>
1324 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
1325 * tests/test-posix_spawn1.in.sh: Renamed from
1326 tests/test-posix_spawn.in.sh.
1327 * tests/test-posix_spawn2.c: New file.
1328 * tests/test-posix_spawn2.in.sh: New file.
1329 * modules/posix_spawnp-tests (Files): Update.
1330 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
1332 2008-09-29 Bruno Haible <bruno@clisp.org>
1334 Propagate effects of putenv/setenv/unsetenv to child processes.
1335 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
1336 * lib/pipe.c (create_pipe): Likewise.
1338 2008-09-29 Bruno Haible <bruno@clisp.org>
1340 Enable use of shell scripts as executables in mingw.
1341 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
1342 run the program as a shell script.
1343 * lib/pipe.c (create_pipe): Likewise.
1344 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
1347 2008-09-29 Eric Blake <ebb9@byu.net>
1349 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
1351 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
1353 * doc/posix-functions/accept.texi: Update mingw problems.
1354 * doc/posix-functions/bind.texi: Update mingw problems.
1355 * doc/posix-functions/close.texi: Update mingw problems.
1356 * doc/posix-functions/connect.texi: Update mingw problems.
1357 * doc/posix-functions/getpeername.texi: Update mingw problems.
1358 * doc/posix-functions/getsockname.texi: Update mingw problems.
1359 * doc/posix-functions/getsockopt.texi: Update mingw problems.
1360 * doc/posix-functions/ioctl.texi: Update mingw problems.
1361 * doc/posix-functions/listen.texi: Update mingw problems.
1362 * doc/posix-functions/recv.texi: Update mingw problems.
1363 * doc/posix-functions/recvfrom.texi: Update mingw problems.
1364 * doc/posix-functions/select.texi: Update mingw problems.
1365 * doc/posix-functions/send.texi: Update mingw problems.
1366 * doc/posix-functions/sendto.texi: Update mingw problems.
1367 * doc/posix-functions/setsockopt.texi: Update mingw problems.
1368 * doc/posix-functions/socket.texi: Update mingw problems.
1370 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
1371 Bruno Haible <bruno@clisp.org>
1373 * lib/sys_select.in.h: Include sys/time.h.
1374 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
1375 * modules/sys_select: Depend on sys_time.
1376 * tests/test-sys_select.c: Test that sys/select.h defines struct
1379 2008-09-29 Bruno Haible <bruno@clisp.org>
1381 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
1382 * lib/sys_select.in.h: Likewise.
1384 2008-09-29 Bruno Haible <bruno@clisp.org>
1386 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
1388 2008-09-29 Bruno Haible <bruno@clisp.org>
1390 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
1391 Set LIBSOCKET instead of augmenting LIBS.
1392 * modules/sockets (Link): New section.
1393 * modules/sockets-tests (test_sockets_LDADD): New variable.
1394 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
1395 * modules/poll-tests (test_poll_LDADD): New variable.
1396 * NEWS: Document the change.
1398 2008-09-29 Bruno Haible <bruno@clisp.org>
1400 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
1401 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
1402 ARPA_INET_H directly.
1403 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
1405 2008-09-28 Bruno Haible <bruno@clisp.org>
1407 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
1408 from gl_HEADER_SYS_SOCKET.
1409 (gl_HEADER_SYS_SOCKET): Invoke it.
1410 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1412 2008-09-28 Bruno Haible <bruno@clisp.org>
1414 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
1415 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
1416 Needed on OSF/1 4.0.
1418 2008-09-28 Bruno Haible <bruno@clisp.org>
1420 Override open more carefully.
1421 * lib/open.c (orig_open): New function.
1422 (rpl_open): Use orig_open instead of open.
1423 * lib/fcntl.in.h: Add special invocation convention.
1424 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
1425 (gl_FUNC_OPEN): Invoke it.
1427 Override freopen more carefully.
1428 * lib/freopen.c (orig_freopen): New function.
1429 (rpl_freopen): Use orig_freopen instead of freopen.
1430 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
1431 (gl_FUNC_FREOPEN): Invoke it.
1433 Override fopen more carefully.
1434 * lib/fopen.c (orig_fopen): New function.
1435 (rpl_fopen): Use orig_fopen instead of fopen.
1436 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
1437 (gl_FUNC_FOPEN): Invoke it.
1438 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
1440 2008-09-28 Bruno Haible <bruno@clisp.org>
1442 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
1445 2008-09-28 Bruno Haible <bruno@clisp.org>
1447 * tests/test-sigaction.c (handler, main): Disable the check whether
1448 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
1449 glibc systems with LinuxThreads.
1451 2008-09-28 Bruno Haible <bruno@clisp.org>
1453 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
1455 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
1457 * lib/fcntl.in.h (open): Likewise.
1458 Reported by Rainer Tammer <tammer@tammer.net>.
1460 2008-09-28 Bruno Haible <bruno@clisp.org>
1462 * modules/posix_spawnp-tests: New file.
1463 * tests/test-posix_spawn.c: New file.
1464 * tests/test-posix_spawn.in.sh: New file.
1466 New module 'posix_spawnp'.
1467 * modules/posix_spawnp: New file.
1468 * lib/spawnp.c: New file, from GNU libc with modifications.
1469 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
1471 New module 'posix_spawn'.
1472 * modules/posix_spawn: New file.
1473 * lib/spawn.c: New file, from GNU libc with modifications.
1474 * doc/posix-functions/posix_spawn.texi: Mention the new module.
1476 New module 'posix_spawnattr_destroy'.
1477 * modules/posix_spawnattr_destroy: New file.
1478 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
1479 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
1482 New module 'posix_spawnattr_setsigmask'.
1483 * modules/posix_spawnattr_setsigmask: New file.
1484 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
1486 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
1489 New module 'posix_spawnattr_getsigmask'.
1490 * modules/posix_spawnattr_getsigmask: New file.
1491 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
1493 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
1496 New module 'posix_spawnattr_setsigdefault'.
1497 * modules/posix_spawnattr_setsigdefault: New file.
1498 * lib/spawnattr_setdefault.c: New file, from GNU libc with
1500 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
1503 New module 'posix_spawnattr_getsigdefault'.
1504 * modules/posix_spawnattr_getsigdefault: New file.
1505 * lib/spawnattr_getdefault.c: New file, from GNU libc with
1507 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
1510 New module 'posix_spawnattr_setschedpolicy'.
1511 * modules/posix_spawnattr_setschedpolicy: New file.
1512 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
1514 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
1517 New module 'posix_spawnattr_getschedpolicy'.
1518 * modules/posix_spawnattr_getschedpolicy: New file.
1519 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
1521 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
1524 New module 'posix_spawnattr_setschedparam'.
1525 * modules/posix_spawnattr_setschedparam: New file.
1526 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
1528 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
1531 New module 'posix_spawnattr_getschedparam'.
1532 * modules/posix_spawnattr_getschedparam: New file.
1533 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
1535 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
1538 New module 'posix_spawnattr_setpgroup'.
1539 * modules/posix_spawnattr_setpgroup: New file.
1540 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
1542 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
1545 New module 'posix_spawnattr_getpgroup'.
1546 * modules/posix_spawnattr_getpgroup: New file.
1547 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
1549 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
1552 New module 'posix_spawnattr_setflags'.
1553 * modules/posix_spawnattr_setflags: New file.
1554 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
1555 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
1558 New module 'posix_spawnattr_getflags'.
1559 * modules/posix_spawnattr_getflags: New file.
1560 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
1561 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
1564 New module 'posix_spawnattr_init'.
1565 * modules/posix_spawnattr_init: New file.
1566 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
1567 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
1570 New module 'posix_spawn_file_actions_destroy'.
1571 * modules/posix_spawn_file_actions_destroy: New file.
1572 * lib/spawn_faction_destroy.c: New file, from GNU libc with
1574 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
1577 New module 'posix_spawn_file_actions_addopen'.
1578 * modules/posix_spawn_file_actions_addopen: New file.
1579 * lib/spawn_faction_addopen.c: New file, from GNU libc with
1581 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
1584 New module 'posix_spawn_file_actions_adddup2'.
1585 * modules/posix_spawn_file_actions_adddup2: New file.
1586 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
1588 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
1591 New module 'posix_spawn_file_actions_addclose'.
1592 * modules/posix_spawn_file_actions_addclose: New file.
1593 * lib/spawn_faction_addclose.c: New file, from GNU libc with
1595 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
1598 New module 'posix_spawn_file_actions_init'.
1599 * modules/posix_spawn_file_actions_init: New file.
1600 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
1601 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
1604 New module 'posix_spawn-internal'.
1605 * modules/posix_spawn-internal: New file.
1606 * lib/spawn_int.h: New file, from GNU libc with modifications.
1607 * lib/spawni.c: New file, from GNU libc with modifications.
1608 * m4/posix_spawn.m4: New file.
1611 * modules/spawn: New file.
1612 * lib/spawn.in.h: New file, from GNU libc with modifications.
1613 * m4/spawn_h.m4: New file.
1614 * doc/posix-headers/spawn.texi: Mention the new module.
1616 2008-09-28 Bruno Haible <bruno@clisp.org>
1618 * modules/sched-tests: New file.
1619 * tests/test-sched.c: New file.
1622 * modules/sched: New file.
1623 * lib/sched.in.h: New file.
1624 * m4/sched_h.m4: New file.
1625 * doc/posix-headers/sched.texi: Mention the new module.
1627 2008-09-27 Eric Blake <ebb9@byu.net>
1629 Fix previous patch, and tweak references to $0.
1630 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
1631 (func_version, func_gnulib_dir): Don't call this program
1633 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
1634 with using $0 in function.
1635 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
1636 (func_fatal_error): Reuse the name the user invoked us with.
1638 2008-09-27 Bruno Haible <bruno@clisp.org>
1640 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
1641 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
1642 (gl_ICONV_H): Not here.
1643 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1644 instead of assigning ICONV_H directly.
1646 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
1647 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
1650 2008-09-27 Bruno Haible <bruno@clisp.org>
1652 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
1653 * modules/arpa_inet (Depends-on): Add link-warning.
1654 (Makefile.am): Insert the definition of GL_LINK-WARNING.
1655 * modules/unistd (Makefile.am): Likewise.
1657 2008-09-26 Bruno Haible <bruno@clisp.org>
1659 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
1661 (func_version): Essentially copied from gnulib-tool.
1662 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
1663 func_readlink): Copied from gnulib-tool.
1665 2008-09-26 Bruno Haible <bruno@clisp.org>
1667 * gnulib-tool (func_version): Change directory to $gnulib_dir before
1668 invoking git-version-gen.
1670 2008-09-26 Bruno Haible <bruno@clisp.org>
1672 * posix-modules: Update to directory names changed on 2008-01-19.
1673 Remove commas in output before splitting into words. No more need to
1674 avoid 'ftruncate' since 2007-02-19.
1676 2008-09-26 Bruno Haible <bruno@clisp.org>
1678 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
1680 2008-09-26 Bruno Haible <bruno@clisp.org>
1682 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
1683 * modules/fwriteerror (Depends-on): Add errno.
1685 2008-09-26 Bruno Haible <bruno@clisp.org>
1687 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
1688 * tests/test-vc-list-files-cvs.sh: Likewise.
1690 2008-09-26 Bruno Haible <bruno@clisp.org>
1692 * doc/posix-headers/sys_resource.texi: Reorder items.
1694 2008-09-26 Jim Meyering <meyering@redhat.com>
1696 fts: tweak inode comparison function
1697 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
1698 inode numbers, as documented.
1700 fts: sort dirent entries on inode number before traversing
1701 This avoids a quadratic, seek-related performance penalty when
1702 operating on a directory containing many entries (measurable at 10k;
1703 3.5 hours at 2 million entries with a cold cache) on certain types
1704 of file systems, including ext3 and ext4, but not tmpfs.
1705 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
1706 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
1707 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
1708 (fs_handles_readdir_ordered_dirents_efficiently): New function.
1709 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
1710 (fts_build): Set the stat.st_ino member from D_INO.
1711 If it is likely to be useful, sort dirent entries on inode number.
1713 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
1714 and the struct statfs.f_type member.
1715 * modules/fts (Depends-on): Add d-ino.
1717 2008-09-26 Bruno Haible <bruno@clisp.org>
1719 * modules/sigpipe-die (Depends-on): Add sigpipe.
1721 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
1722 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
1723 and GNULIB_STDIO_H_SIGPIPE are set.
1724 * lib/stdio-write.c: New file.
1725 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
1726 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1727 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1728 REPLACE_STDIO_WRITE_FUNCS.
1729 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
1730 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1731 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1732 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
1733 * modules/stdio (Files): Add lib/stdio-write.c.
1734 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
1735 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1736 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1737 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
1738 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
1739 REPLACE_FPRINTF_POSIX.
1740 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
1741 REPLACE_PRINTF_POSIX.
1742 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
1743 REPLACE_VFPRINTF_POSIX.
1744 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
1745 REPLACE_VPRINTF_POSIX.
1746 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
1748 * doc/posix-functions/fputc.texi: Likewise.
1749 * doc/posix-functions/fputs.texi: Likewise.
1750 * doc/posix-functions/fwrite.texi: Likewise.
1751 * doc/posix-functions/printf.texi: Likewise.
1752 * doc/posix-functions/putc.texi: Likewise.
1753 * doc/posix-functions/putchar.texi: Likewise.
1754 * doc/posix-functions/puts.texi: Likewise.
1755 * doc/posix-functions/vfprintf.texi: Likewise.
1756 * doc/posix-functions/vprintf.texi: Likewise.
1758 * modules/safe-write (Depends-on): Add write.
1760 * modules/sigpipe-tests: New file.
1761 * tests/test-sigpipe.c: New file.
1762 * tests/test-sigpipe.sh: New file.
1764 * modules/write: New file.
1765 * lib/unistd.in.h: Include <sys/types.h>.
1766 (write): New declaration.
1767 * lib/write.c: New file.
1768 * m4/write.m4: New file.
1769 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1770 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
1771 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
1772 GNULIB_WRITE, REPLACE_WRITE.
1773 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
1774 and the SIGPIPE issue.
1776 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
1777 (raise): New declaration.
1778 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
1779 (ext_signal): New function.
1780 (rpl_raise): New function.
1781 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1782 GNULIB_SIGNAL_H_SIGPIPE.
1783 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
1784 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
1786 * modules/sigpipe: New file.
1787 * m4/sigpipe.m4: New file.
1789 2008-09-25 Derek Price <derek@ximbiot.com>
1790 Bruno Haible <bruno@clisp.org>
1792 * gnulib-tool (func_import): Report all license incompatibilities, not
1795 2008-09-25 Bruno Haible <bruno@clisp.org>
1797 * gnulib-tool (func_import): When computing the edits, consider not
1798 only the Makefile.ams that exist but also those that will be generated.
1800 2008-09-25 Simon Josefsson <simon@josefsson.org>
1802 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
1803 fixes gnulib-tool --test warning about duplicate dependency.
1805 2008-09-25 Bruno Haible <bruno@clisp.org>
1807 * gnulib-tool: Don't ask the user to perform edits in the generated
1809 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
1810 apply to the Makefile.am being generated.
1811 (func_emit_tests_Makefile_am): Execute edits that apply to the
1812 Makefile.am being generated.
1813 (func_import): Setup list of Makefile.am edits before emitting the
1814 Makefile.ams, not at the end.
1815 (func_create_testdir): Update.
1816 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1818 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1820 * gnulib-tool (func_import): Store the --tests-base option in the
1821 comment in gnulib-cache.m4.
1823 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
1825 * NEWS: Document increased portability that sys_select now provides.
1827 * lib/sys_select.in.h: Install select wrapper.
1828 * lib/sys_socket.in.h: Use more descriptive name when there is no
1830 * lib/winsock-select.c: New.
1831 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
1832 Require gl_HEADER_SYS_SOCKET.
1833 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
1834 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
1835 * tests/test-sys_select.c: Add functional tests.
1837 2008-09-24 Eric Blake <ebb9@byu.net>
1839 open, fopen: close fd leak in last patch
1840 * lib/open.c (rpl_open): Close fd before returning error.
1841 * lib/fopen.c (rpl_fopen): Close fd before returning error.
1842 * doc/posix-functions/open.texi (open): Document that Irix also
1844 * doc/posix-functions/fopen.texi (fopen): Likewise.
1845 Reported by Paolo Bonzini.
1847 2008-09-24 Bruno Haible <bruno@clisp.org>
1849 Ensure that a filename ending in a slash cannot be used to access a
1851 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
1852 to check whether it's really a directory.
1853 * lib/fopen.c: Include fcntl.h, unistd.h.
1854 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
1856 * modules/fopen (Depends-on): Add unistd.
1857 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
1858 * tests/test-fopen.c (main): Likewise.
1859 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
1860 * doc/posix-functions/fopen.texi: Likewise.
1861 Reported by Eric Blake.
1863 2008-09-23 Eric Blake <ebb9@byu.net>
1865 c-stack: avoid compiler optimizations when provoking overflow
1866 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
1867 recursion harder to optimize, to ensure a stack overflow occurs.
1868 * tests/test-c-stack.c (recurse): Likewise.
1869 Borrowed from libsigsegv.
1871 c-stack: work around Irix sigaltstack bug
1872 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
1873 whether sigaltstack uses wrong end of stack_t (copied in part from
1875 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
1876 Irix bug, without requiring an over-allocation.
1877 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
1880 fopen: document mingw bug on directories
1881 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
1882 not allowing a stream visiting a directory, even though reading
1883 from such a stream is not portable.
1885 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
1887 * lib/poll.c: Rewrite.
1888 * modules/poll: Depend on alloca.
1890 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
1892 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
1893 instead define prototypes for a full set of wrappers. Ensure
1894 that Cygwin does not use the compatibility code, which is only
1896 * lib/winsock.c: New.
1897 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
1898 * modules/sys_socket: Add lib/winsock.c.
1900 * modules/poll-tests: Add errno and perror.
1901 * tests/test-poll.c: Use ioctl, not ioctlsocket.
1903 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
1905 * tests/test-poll.c: Downgrade minimum needed Winsock version.
1907 2008-09-23 Bruno Haible <bruno@clisp.org>
1909 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
1910 * doc/glibc-functions/*: Likewise.
1912 2008-09-23 Simon Josefsson <simon@josefsson.org>
1914 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
1917 2008-09-22 Eric Blake <ebb9@byu.net>
1918 Bruno Haible <bruno@clisp.org>
1920 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
1921 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
1922 supply %A but mishandle pseudo-NaN.
1923 Reported by Simon Josefsson.
1925 2008-09-21 Bruno Haible <bruno@clisp.org>
1927 * tests/test-lock.c (main): Tweak skip message.
1928 * tests/test-tls.c (main): Likewise.
1930 2008-09-21 Bruno Haible <bruno@clisp.org>
1932 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
1933 whether 'struct sigaction' has sa_sigaction here...
1934 (gl_PREREQ_SIG_HANDLER_H): ... not here.
1935 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
1937 2008-09-21 Bruno Haible <bruno@clisp.org>
1939 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
1941 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
1942 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
1944 (Support for obsolete systems lacking POSIX:2001): New section.
1945 (String handling <string.h>): Move strdup to the new section.
1946 Suggested by Simon Josefsson and Paolo Bonzini.
1948 2008-09-21 Bruno Haible <bruno@clisp.org>
1950 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
1951 exponents in %e and %g results on 'long double'. Needed for mingw's
1952 improved *printf functions.
1953 * tests/test-vasprintf-posix.c (test_function): Likewise.
1954 * tests/test-snprintf-posix.h (test_function): Likewise.
1955 * tests/test-sprintf-posix.h (test_function): Likewise.
1956 Reported by Eric Blake.
1958 2008-09-21 Bruno Haible <bruno@clisp.org>
1960 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
1961 * tests/test-sprintf-posix.h (test_function): Likewise.
1963 2008-09-21 Bruno Haible <bruno@clisp.org>
1965 * modules/getpass (Depends-on): Add strdup-posix.
1967 New module 'strdup-posix'.
1968 * modules/strdup-posix: New file.
1969 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
1970 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
1971 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1973 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
1974 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
1975 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1978 * modules/strdup (Depends-on): Remove malloc-posix.
1980 2008-09-20 Bruno Haible <bruno@clisp.org>
1982 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
1985 2008-09-20 Bruno Haible <bruno@clisp.org>
1987 Ensure that wint_t gets defined on IRIX 5.3.
1988 * lib/wchar.in.h (wint_t): Define if not defined by the system.
1989 * lib/wctype.in.h (wint_t): Likewise.
1990 (__wctype_wint_t): Remove type.
1991 (isw*): Use wint_t instead of __wctype_wint_t.
1992 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
1993 * modules/wchar (Files): Add m4/wint_t.m4.
1994 (Makefile.am): Substitute HAVE_WINT_T.
1995 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
1996 * tests/test-wctype.c: Check that wint_t is defined.
1997 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
1998 * doc/posix-headers/wctype.texi: Likewise.
1999 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2001 2008-09-18 Bruno Haible <bruno@clisp.org>
2003 * gnulib-tool (func_exit): Update comment.
2005 2008-09-18 Simon Josefsson <simon@josefsson.org>
2007 * modules/getaddrinfo (Depends-on): Remove strdup, this module
2008 assumes strdup exists and does not depend on strdup to return
2009 ENOMEM on out of memory conditions.
2011 2008-09-18 Bruno Haible <bruno@clisp.org>
2013 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
2014 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
2015 digits for the exponent.
2017 2008-09-18 Jim Meyering <meyering@redhat.com>
2018 Bruno Haible <bruno@clisp.org>
2020 * lib/vasnprintf.c (decimal_point_char): Define also if
2021 NEED_PRINTF_INFINITE_LONG_DOUBLE.
2023 2008-09-16 Bruno Haible <bruno@clisp.org>
2024 and Eric Blake <ebb9@byu.net>
2026 vasnprintf: support Irix 5.3
2027 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
2028 that mishandle long double infinity.
2029 Reported by Tom G. Christensen.
2031 2008-09-16 Bruno Haible <bruno@clisp.org>
2033 * doc/glibc-functions/scandir.texi: Mention the function is missing on
2035 * doc/glibc-functions/alphasort.texi: Likewise.
2036 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
2038 2008-09-16 Jim Meyering <meyering@redhat.com>
2040 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
2041 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
2042 a umask modification leak out of a subshell. Otherwise, the
2043 opensolaris /bin/sh would be accepted and thus cause unwarranted
2044 failures in the coreutils test suite.
2046 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
2048 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
2051 2008-09-16 Jim Meyering <meyering@redhat.com>
2053 avoid spurious test failure when library is built without ACL support
2054 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
2055 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
2056 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
2057 * tests/test-copy-acl.sh: Likewise.
2059 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2061 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
2062 based on character occurrence counts.
2064 2008-09-15 Eric Blake <ebb9@byu.net>
2066 tests: avoid some compiler warnings
2067 * tests/test-memchr.c (main): Pass NULL indirectly.
2068 * tests/test-closein.c (main): Avoid unused variable.
2070 2008-09-15 Bruno Haible <bruno@clisp.org>
2072 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
2073 are missing on OpenBSD 4.0 individually.
2074 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2076 2008-09-15 Bruno Haible <bruno@clisp.org>
2078 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
2079 * doc/posix-functions/strerror.texi: Mention also Cygwin.
2080 * doc/posix-functions/perror.texi: Likewise.
2081 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
2083 Reported by Eric Blake.
2085 * lib/errno.in.h: Use replacement values >= 2000.
2086 Reported by Eric Blake.
2088 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2090 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
2091 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
2093 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
2094 compareseq was aborted.
2096 2008-09-14 Bruno Haible <bruno@clisp.org>
2098 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
2100 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
2101 (fstrcmp_bounded): Simplify result computation accordingly.
2103 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2105 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
2106 (fstrcmp): Define in terms of fstrcmp_bounded.
2107 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
2108 lower_bound argument.
2109 Return quickly if the result is certainly < lower_bound.
2110 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
2112 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2114 * lib/diffseq.h (EARLY_ABORT): New macro.
2115 (compareseq): Change return type to bool. Return true when EARLY_ABORT
2118 2008-09-14 Bruno Haible <bruno@clisp.org>
2120 * modules/perror-tests: New file.
2121 * tests/test-perror.sh: New file.
2122 * tests/test-perror.c: New file.
2124 New module 'perror'.
2125 * lib/stdio.in.h (perror): New declaration.
2126 * lib/perror.c: New file.
2127 * m4/perror.m4: New file.
2128 * modules/perror: New file.
2129 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
2130 * doc/posix-functions/perror.texi: Mention the perror module.
2131 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
2133 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
2136 2008-09-14 Bruno Haible <bruno@clisp.org>
2138 * modules/stdio (Makefile.am): Reorder to match the order in
2140 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2142 2008-09-13 Bruno Haible <bruno@clisp.org>
2144 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
2146 2008-09-13 Bruno Haible <bruno@clisp.org>
2148 Extend strerror to cover the added errno values.
2149 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
2150 (rpl_strerror): Provide error messages for the added errno values and
2151 for the WSA* values.
2152 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
2153 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
2155 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
2156 * modules/strerror (Depends-on): Add errno.
2157 * doc/posix-functions/strerror.texi: Document the change.
2158 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
2161 2008-09-13 Bruno Haible <bruno@clisp.org>
2163 * modules/EOVERFLOW: Remove file.
2164 * m4/eoverflow.m4: Remove file.
2165 * modules/EOVERFLOW-tests: Remove file.
2166 * tests/test-EOVERFLOW.c: Remove file.
2167 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
2168 * modules/ftell (Depends-on): Likewise.
2169 * modules/getdelim (Depends-on): Likewise.
2170 * modules/getugroups (Depends-on): Likewise.
2171 * modules/poll (Depends-on): Likewise.
2172 * modules/snprintf (Depends-on): Likewise.
2173 * modules/sprintf-posix (Depends-on): Likewise.
2174 * modules/vasnprintf (Depends-on): Likewise.
2175 * modules/vasprintf (Depends-on): Likewise.
2176 * modules/vfprintf-posix (Depends-on): Likewise.
2177 * modules/vsnprintf (Depends-on): Likewise.
2178 * modules/vsprintf-posix (Depends-on): Likewise.
2179 * modules/xvasprintf (Depends-on): Likewise.
2180 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
2181 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
2182 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
2183 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
2184 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2185 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
2186 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
2187 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
2188 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2189 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
2190 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
2191 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
2192 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2193 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
2194 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
2195 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
2196 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2197 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
2198 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
2199 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
2200 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2201 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
2202 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
2203 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
2204 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
2205 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2206 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
2207 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
2208 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
2209 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
2210 * MODULES.html.sh: Remove EOVERFLOW.
2211 * NEWS: Mention the change.
2213 2008-09-13 Bruno Haible <bruno@clisp.org>
2215 * modules/errno-tests: New file.
2216 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
2218 * lib/errno.in.h: New file.
2219 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
2220 * modules/errno: New file.
2221 * doc/posix-headers/errno.texi: Update documentation.
2222 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
2224 2008-09-13 Bruno Haible <bruno@clisp.org>
2226 * tests/test-poll.c: Use #if for native Windows, rather than testing
2229 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2230 Bruno Haible <bruno@clisp.org>
2232 * lib/glob.c: Don't include <pwd.h> on native Windows.
2233 (WINDOWS32): New macro.
2234 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
2236 2008-09-13 Bruno Haible <bruno@clisp.org>
2238 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
2239 (ETIMEDOUT): Remove macro.
2240 (glthread_cond_timedwait_multithreaded): New declaration.
2241 (glthread_cond_timedwait): Use it.
2242 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
2243 (glthread_cond_timedwait_multithreaded): New function.
2245 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
2247 * modules/poll-tests: Do not check for io.h.
2248 * tests/test-poll.c: Check for __MSVCRT__ instead.
2250 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
2252 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
2253 * modules/poll-tests: Add inet_pton, stdbool, sockets.
2254 * tests/test-poll.c: Use them. Use _pipe on Windows.
2256 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
2258 * modules/poll-tests: New.
2259 * tests/test-poll.c: New.
2261 2008-09-12 Eric Blake <ebb9@byu.net>
2263 frexp: test for NetBSD failure on -0.0
2264 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
2265 not all, bugs from NetBSD 3.0 have been fixed.
2266 * doc/posix-functions/frexp.texi (frexp): Document bug.
2267 Reported by Thomas Klausner.
2269 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
2270 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
2272 Reported by Jonathan C. Patschke <jp@centtech.com>.
2274 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2276 * lib/glthread/cond.h: Use dummy implementation also if
2279 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2281 * modules/fnmatch-posix (License): Change to LGPLv2+.
2282 * modules/fnmatch-gnu (License): Likewise.
2284 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2286 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
2288 2008-09-11 Jim Meyering <meyering@redhat.com>
2290 * users.txt: Add gtk-vnc.
2292 2008-09-08 Simon Josefsson <simon@josefsson.org>
2294 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
2297 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
2298 required for 16-bit and 8-bit rotates.
2299 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
2300 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
2301 UINT8_MAX instead of hard-coded constants.
2302 Suggested by Paul Eggert.
2304 2008-09-07 Bruno Haible <bruno@clisp.org>
2306 * tests/test-striconveh.c (main): Check behaviour when converting from
2309 Make striconveh work better with stateful encodings.
2310 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
2311 that iconv does not increment the inptr when returning -1/EINVAL.
2313 2008-09-07 Bruno Haible <bruno@clisp.org>
2315 * build-aux/config.rpath: Update according to libtool-2.2.6.
2316 * build-aux/config.libpath: Likewise.
2318 2008-09-06 Bruno Haible <bruno@clisp.org>
2320 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
2321 * lib/freadptr.c (freadptr): Likewise.
2322 * lib/freadseek.c (freadptrinc): Likewise.
2323 Reported by Simon Josefsson.
2325 2008-09-06 Bruno Haible <bruno@clisp.org>
2327 * modules/freadptr (License): Change to LGPLv2+.
2328 * modules/freadseek (License): Likewise.
2329 Suggested by Eric Blake.
2331 * modules/memchr2 (License): Change to LGPLv2+.
2332 Approved by Eric Blake.
2334 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2335 Bruno Haible <bruno@clisp.org>
2337 Make gnulib-tool work with native 'sed' on AIX.
2338 * gnulib-tool (sed_noop): New variable.
2339 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
2340 func_add_or_update, func_create_testdir): Use it to initialize sed
2342 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2344 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
2345 Bruno Haible <bruno@clisp.org>
2347 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
2348 also works after #include directives.
2350 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
2352 getdate.y: reject an out-of-range timezone value
2353 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
2354 the range [-24...+24]. When specified with only one or two digits,
2355 * tests/test-getdate.c: Tests for the fix.
2356 * doc/getdate.texi: Document this change.
2358 2008-09-03 Bruno Haible <bruno@clisp.org>
2360 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
2362 2008-09-02 Simon Josefsson <simon@josefsson.org>
2364 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
2365 <bruce.korb@gmail.com> with ideas from Ben Pfaff
2366 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
2367 Blake <ebb9@byu.net>.
2369 * tests/test-bitrotate.c: Add more test vectors.
2371 2008-09-02 Eric Blake <ebb9@byu.net>
2373 vasnprintf-posix: handle large precision via %.*d
2374 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
2375 when handling it ourselves.
2376 * tests/test-vasnprintf-posix.c (test_function): Add test.
2377 * tests/test-snprintf-posix.h (test_function): Likewise.
2378 * tests/test-sprintf-posix.h (test_function): Likewise.
2379 * tests/test-vasprintf-posix.c (test_function): Likewise.
2380 Reported by Alain Guibert.
2382 2008-09-01 Eric Blake <ebb9@byu.net>
2384 c-stack: make configure-time check more robust
2385 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
2386 successful sigaction call.
2387 Reported by Tom G. Christensen.
2389 2008-09-01 Bruno Haible <bruno@clisp.org>
2391 New module 'findprog-lgpl'.
2392 * modules/findprog-lgpl: New file.
2393 * lib/findprog-lgpl.c: New file.
2394 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
2395 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
2396 to decide whether to use strdup or xstrdup, concatenated_filename or
2397 xconcatenated_filename.
2399 2008-09-01 Bruno Haible <bruno@clisp.org>
2401 Split module 'concat-filename' into 'concat-filename' (LGPL) and
2402 'xconcat-filename' (GPL).
2403 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
2404 (License): Change to LGPLv2+.
2405 * modules/xconcat-filename: New file.
2406 * lib/concat-filename.h (concatenated_filename): Change specification.
2407 (xconcatenated_filename): New declaration.
2408 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
2409 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
2411 * lib/xconcat-filename.c: New file.
2412 * NEWS: Mention the change.
2413 * lib/findprog.c: Include concat-filename.h, not filename.h.
2414 (find_in_path): Use xconcatenated_filename instead of
2415 concatenated_filename.
2416 * lib/javacomp.c: Include concat-filename.h, not filename.h.
2417 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
2418 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
2419 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
2420 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
2421 instead of concatenated_filename.
2422 * lib/javaexec.c: Include concat-filename.h, not filename.h.
2423 (execute_java_class): Use xconcatenated_filename instead of
2424 concatenated_filename.
2425 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
2426 * modules/javacomp (Depends-on): Likewise.
2427 * modules/javaexec (Depends-on): Likewise.
2429 2008-09-01 Bruno Haible <bruno@clisp.org>
2431 Split module 'filename' into 'filename' and 'concat-filename'.
2432 * modules/filename: Keep only lib/filename.h.
2433 (License): Change to LGPLv2+.
2434 * modules/concat-filename: New file, extracted from modules/filename.
2435 * lib/filename.h (concatenated_filename): Remove declaration.
2436 * lib/concat-filename.h: New file, extracted from lib/filename.h.
2437 * lib/concat-filename.c: Include concat-filename.h.
2438 * NEWS: Mention the change.
2440 2008-09-01 Simon Josefsson <simon@josefsson.org>
2442 * lib/bitrotate.h (rotl8, rotr8): Add.
2444 * modules/bitrotate (configure.ac): Need
2445 AC_REQUIRE([AC_C_INLINE]).
2446 (Description): Mention stdint.h. Reported by Bruno Haible
2449 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
2450 Paolo Bonzini <bonzini@gnu.org>.
2452 2008-08-31 Bruno Haible <bruno@clisp.org>
2454 Assume Solaris specific bi-arch conventions on Solaris systems.
2455 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
2456 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
2457 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
2458 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
2459 like acl_libdirstem.
2460 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
2462 * NEWS: Mention the change.
2463 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
2465 2008-08-31 Jim Meyering <meyering@redhat.com>
2467 * lib/strftime.h: Add comments describing the two added arguments.
2469 remove duplicate #include directives
2470 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
2471 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
2473 2008-08-31 Bruno Haible <bruno@clisp.org>
2475 New module 'sigpipe-die'.
2476 * modules/sigpipe-die: New file.
2477 * lib/sigpipe-die.h: New file.
2478 * lib/sigpipe-die.c: New file.
2479 * MODULES.html.sh (Signal handling): Add sigpipe-die.
2481 2008-08-31 Bruno Haible <bruno@clisp.org>
2483 Don't override previously installed signal handlers.
2484 * lib/fatal-signal.c (saved_sigactions): New variable.
2485 (uninstall_handlers): Reset the signal to the saved handler, not
2486 to SIG_DFL (except when ignored).
2487 (install_handlers): Save the previous handlers.
2489 2008-08-30 Bruno Haible <bruno@clisp.org>
2491 * gnulib-tool (func_reset_sigpipe): New function.
2492 (func_get_automake_snippet, func_modules_transitive_closure,
2493 func_import): Invoke it before a join command that reads from stdin,
2494 to avoid "echo: write error: Broken pipe" error messages on stderr.
2495 Reported by Sam Steingold <sds@gnu.org>.
2497 2008-08-30 Bruno Haible <bruno@clisp.org>
2499 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
2500 Code copied from m4/open.m4.
2501 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
2502 access and the filename ends in a slash. Code copied from lib/open.c.
2503 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
2504 * tests/test-fopen.c (main): Check against bug with trailing slash.
2506 2008-08-29 Bruno Haible <bruno@clisp.org>
2508 Avoid some "gcc -pedantic" warnings.
2509 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
2510 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
2511 * lib/dirent.in.h: Likewise.
2512 * lib/fcntl.in.h: Likewise.
2513 * lib/float.in.h: Likewise.
2514 * lib/iconv.in.h: Likewise.
2515 * lib/inttypes.in.h: Likewise.
2516 * lib/locale.in.h: Likewise.
2517 * lib/math.in.h: Likewise.
2518 * lib/netinet_in.in.h: Likewise.
2519 * lib/search.in.h: Likewise.
2520 * lib/signal.in.h: Likewise.
2521 * lib/stdarg.in.h: Likewise.
2522 * lib/stdint.in.h: Likewise.
2523 * lib/stdio.in.h: Likewise.
2524 * lib/stdlib.in.h: Likewise.
2525 * lib/string.in.h: Likewise.
2526 * lib/strings.in.h: Likewise.
2527 * lib/sys_select.in.h: Likewise.
2528 * lib/sys_socket.in.h: Likewise.
2529 * lib/sys_stat.in.h: Likewise.
2530 * lib/sys_time.in.h: Likewise.
2531 * lib/sysexits.in.h: Likewise.
2532 * lib/time.in.h: Likewise.
2533 * lib/unistd.in.h: Likewise.
2534 * lib/wchar.in.h: Likewise.
2535 * lib/wctype.in.h: Likewise.
2536 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
2537 * modules/fchdir (Makefile.am): Likewise.
2538 * modules/fcntl (Makefile.am): Likewise.
2539 * modules/float (Makefile.am): Likewise.
2540 * modules/iconv_open (Makefile.am): Likewise.
2541 * modules/inttypes (Makefile.am): Likewise.
2542 * modules/locale (Makefile.am): Likewise.
2543 * modules/math (Makefile.am): Likewise.
2544 * modules/netinet_in (Makefile.am): Likewise.
2545 * modules/search (Makefile.am): Likewise.
2546 * modules/signal (Makefile.am): Likewise.
2547 * modules/stdarg (Makefile.am): Likewise.
2548 * modules/stdint (Makefile.am): Likewise.
2549 * modules/stdio (Makefile.am): Likewise.
2550 * modules/stdlib (Makefile.am): Likewise.
2551 * modules/string (Makefile.am): Likewise.
2552 * modules/strings (Makefile.am): Likewise.
2553 * modules/sys_select (Makefile.am): Likewise.
2554 * modules/sys_socket (Makefile.am): Likewise.
2555 * modules/sys_stat (Makefile.am): Likewise.
2556 * modules/sys_time (Makefile.am): Likewise.
2557 * modules/sysexits (Makefile.am): Likewise.
2558 * modules/time (Makefile.am): Likewise.
2559 * modules/unistd (Makefile.am): Likewise.
2560 * modules/wchar (Makefile.am): Likewise.
2561 * modules/wctype (Makefile.am): Likewise.
2562 Reported by Reuben Thomas <rrt@sc3d.org>.
2564 2008-08-29 Bruno Haible <bruno@clisp.org>
2566 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
2569 2008-08-29 Simon Josefsson <simon@josefsson.org>
2571 * MODULES.html.sh (Misc): Add bitrotate.
2573 * modules/bitrotate: New file.
2575 * lib/bitrotate.h: New file.
2577 * modules/bitrotate-tests: New file.
2579 * tests/test-bitrotate.c: New file.
2581 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
2582 on the bitrotate module.
2584 * lib/arctwo.c: Use new bitrotate module.
2586 2008-08-29 Jim Meyering <meyering@redhat.com>
2588 bootstrap: merge changes from coreutils
2589 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
2590 of copied files. Remove a kludge, now that this is fixed.
2591 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
2592 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
2593 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
2595 2008-08-29 Bruno Haible <bruno@clisp.org>
2597 * MODULES.html.sh: Remove --cvs-urls option.
2599 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
2601 maint.mk: adjust to file name change
2602 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
2604 2008-08-28 Jim Meyering <meyering@redhat.com>
2606 * modules/getndelim2 (License): Relicense to LGPLv2+.
2607 Approved by Richard Stallman for the version of 1995, and by
2608 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
2610 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
2612 * lib/getdelim.c (flockfile, funlockfile): Make all of them
2613 dummy if one is not available. Do not touch them if
2614 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
2615 (getc_maybe_unlocked): New.
2616 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
2618 2008-08-26 Eric Blake <ebb9@byu.net>
2620 doc/INSTALL: resync from autoconf
2621 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
2622 (INSTALL_PRELUDE): Delete; this is done more efficiently by
2624 * install.texi [!autoconf]: ...here. Resync from autoconf.
2625 * INSTALL: Regenerate.
2626 * INSTALL.ISO: New file.
2627 * INSTALL.UTF-8: Likewise.
2629 2008-08-26 Jim Meyering <meyering@redhat.com>
2631 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
2632 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
2633 these definitions conditional, so that they may be overridden, too.
2635 2008-08-26 Bruno Haible <bruno@clisp.org>
2637 Generate INSTALL file variants with prettier quotes.
2638 * doc/Makefile (INSTALL_PRELUDE): New macro.
2640 (INSTALL.ISO, INSTALL.UTF-8): New rules.
2642 2008-08-26 Bruno Haible <bruno@clisp.org>
2644 Run makeinfo in an English locale.
2645 * doc/Makefile (MAKEINFO): New variable.
2647 2008-08-26 Bruno Haible <bruno@clisp.org>
2649 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
2650 Suggested by Eric Blake.
2652 2008-08-25 Bruno Haible <bruno@clisp.org>
2654 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
2656 2008-08-25 Eric Blake <ebb9@byu.net>
2658 c-stack: test that stack overflow can be caught
2659 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
2660 that platform allows handling stack overflow; at least OS/2 EMX
2661 has sigaltstack, but crashes before transferring control to
2662 handler on stack overflow.
2663 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
2664 check for HAVE_STACK_OVERFLOW_HANDLING.
2665 Reported by Elbert Pol.
2667 2008-08-25 Bruno Haible <bruno@clisp.org>
2669 * doc/posix-functions/strftime.texi: Fix description of strftime
2672 2008-08-24 Bruno Haible <bruno@clisp.org>
2674 * tests/uniwidth/test-uc_width2.c: New file.
2675 * tests/uniwidth/test-uc_width2.sh: New file.
2676 * modules/uniwidth/width-tests (Files): Add the new files.
2677 (TESTS): Add uniwidth/test-uc_width2.sh.
2678 (TESTS_ENVIRONMENT): New variable.
2679 (check_PROGRAMS): Add test-uc_width2.
2680 (test_uc_width2_SOURCES): New variable.
2682 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
2683 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
2685 Reported by Alexander V. Lukyanov <lav@netis.ru>.
2687 2008-08-22 Eric Blake <ebb9@byu.net>
2689 test-lock, test-tls: mention why a test is skipped
2690 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
2692 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
2694 count-one-bits: relax license
2695 * modules/count-one-bits (License): Relicense to LGPLv2+.
2696 Suggested by Ludovic Courtès, approved by Ben Pfaff.
2698 2008-08-22 Andreas Schwab <schwab@suse.de>
2700 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2701 Remove spurious space in assignment.
2703 2008-08-21 Simon Josefsson <simon@josefsson.org>
2705 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
2706 Paul Eggert <eggert@CS.UCLA.EDU>.
2708 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
2710 * modules/gettext: Add m4/threadlib.m4.
2712 2008-08-19 Eric Blake <ebb9@byu.net>
2714 test-c-stack: fix compilation failure on FreeBSD 5.0
2715 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
2716 headers before <sys/resource.h>.
2717 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
2719 Reported by Nelson H. F. Beebe.
2721 strverscmp: migrate from "strverscmp.h" to <string.h>
2722 * modules/string (Makefile.am): Add new hooks.
2723 * modules/strverscmp (Files): Remove strverscmp.h.
2724 (Depends-on): Add string.
2725 (configure.ac): Add indicator.
2726 (Include): Mention new header.
2727 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
2729 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
2731 * lib/strverscmp.h: Delete.
2732 * lib/string.in.h (strverscmp): Provide declaration, when needed.
2733 * tests/test-strverscmp.c (includes): Adjust client.
2734 * lib/check-version.c (includes): Likewise.
2735 * NEWS: Document the change.
2737 strverscmp: add unit test
2738 * modules/strverscmp-tests: New file.
2739 * tests/test-strverscmp.c: Likewise.
2741 2008-08-19 Simon Josefsson <simon@josefsson.org>
2743 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
2744 regarding Windows crypto stuff, from Mono.
2746 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
2748 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
2749 if present, for intel RND. Return error on failures.
2751 2008-08-18 Ben Pfaff <blp@gnu.org>
2753 gitlog-to-changelog: give better diagnostic for failed pipe-open
2754 * build-aux/gitlog-to-changelog: Improve error message: suggest
2755 that the version of Git may be too old.
2757 2008-08-18 Simon Josefsson <simon@josefsson.org>
2759 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
2760 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
2762 2008-08-18 Bruno Haible <bruno@clisp.org>
2764 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
2767 2008-08-18 Bruno Haible <bruno@clisp.org>
2769 * lib/glthread/threadlib.c: Include <pthread.h>.
2771 2008-08-18 Bruno Haible <bruno@clisp.org>
2773 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
2774 glthread_recursive_lock_* macros.
2775 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
2778 2008-08-18 Bruno Haible <bruno@clisp.org>
2780 * lib/glthread/thread.c: Avoid forcing a context switch right after
2783 2008-08-17 Bruno Haible <bruno@clisp.org>
2785 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
2786 * lib/glthread/thread.h: Provide Win32 specific implementation.
2787 * modules/thread (Files): Add lib/glthread/thread.c.
2788 (Depends-on): Add lock.
2789 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
2791 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2794 * modules/yield: New file.
2795 * lib/glthread/yield.h: New file.
2796 * m4/yield.m4: New file.
2797 * MODULES.html.sh (Multithreading): Add yield.
2799 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2801 New module 'thread'.
2802 * modules/thread: New file.
2803 * lib/glthread/thread.h: New file.
2804 * m4/thread.m4: New file.
2805 * MODULES.html.sh (Multithreading): Add thread.
2807 2008-08-17 Bruno Haible <bruno@clisp.org>
2809 * lib/glthread/lock.h: Include <stdlib.h> always.
2810 * lib/glthread/tls.h: Likewise.
2811 * lib/glthread/cond.h: Likewise.
2813 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2816 * modules/cond: New file.
2817 * lib/glthread/cond.h: New file.
2818 * lib/glthread/cond.c: New file.
2819 * m4/cond.m4: New file.
2820 * MODULES.html.sh (Multithreading): Add cond.
2822 2008-08-16 Eric Blake <ebb9@byu.net>
2824 c-stack: fix regression on Irix 5.3 from 2008-06-21
2825 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
2827 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
2828 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
2829 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
2830 * modules/signal (Makefile.am): Use the value.
2831 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
2832 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
2833 * doc/posix-headers/signal.texi (signal.h): Document this
2835 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
2836 Reported by Tom G. Christensen.
2838 2008-08-17 Bruno Haible <bruno@clisp.org>
2840 New module 'threadlib'.
2841 * modules/threadlib: New file.
2842 * lib/glthread/threadlib.c: New file, extracted from
2843 lib/glthread/lock.c.
2844 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
2846 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
2847 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
2848 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
2850 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
2851 (gl_DISABLE_THREADS): Remove macro.
2852 * modules/lock (Files): Remove build-aux/config.rpath.
2853 (Depends-on): Remove havelib. Add threadlib.
2854 (configure.ac-early): Remove section.
2855 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
2856 * modules/tls (Depends-on): Remove lock. Add threadlib.
2857 (Link): New section, copied from threadlib.
2858 * MODULES.html.sh (Multithreading): Add threadlib.
2860 2008-08-14 Bruno Haible <bruno@clisp.org>
2862 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
2863 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
2864 glthread_rwlock_unlock, glthread_rwlock_destroy,
2865 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
2866 glthread_recursive_lock_destroy): Define as macros always.
2867 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
2869 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
2870 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
2871 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
2872 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
2873 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
2874 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
2875 (glthread_recursive_lock_lock_func): Renamed from
2876 glthread_recursive_lock_lock.
2877 (glthread_recursive_lock_unlock_func): Renamed from
2878 glthread_recursive_lock_unlock.
2879 (glthread_recursive_lock_destroy_func): Renamed from
2880 glthread_recursive_lock_destroy.
2882 2008-08-14 Bruno Haible <bruno@clisp.org>
2884 * lib/glthread/lock.h: Renamed from lib/lock.h.
2885 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
2886 * lib/glthread/tls.h: Renamed from lib/tls.h.
2887 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
2888 * lib/fstrcmp.c: Update includes.
2889 * lib/strsignal.c: Update includes.
2890 * modules/lock (Files, Makefile.am): Update.
2891 (Include): Change to "glthread/lock.h".
2892 * modules/tls (Files, Makefile.am): Update.
2893 (Include): Change to "glthread/tls.h".
2894 * tests/test-lock.c: Update includes.
2895 * tests/test-tls.c: Update includes.
2896 * NEWS: Mention the renamed header files.
2898 2008-08-11 Jim Meyering <meyering@redhat.com>
2900 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
2902 2008-08-11 Eric Blake <ebb9@byu.net>
2904 test-c-stack: avoid C99-ism
2905 * tests/test-c-stack.c (main): Fix whitespace, move declaration
2907 Reported by Alain Guibert.
2909 2008-08-10 Jim Meyering <meyering@redhat.com>
2911 ensure that return value of uinttostr et al are not ignored
2912 * lib/inttostr.h (__GNUC_PREREQ): Define.
2913 (__attribute_warn_unused_result__): Define.
2914 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
2916 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
2918 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
2919 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
2921 2008-08-07 Jim Meyering <meyering@redhat.com>
2923 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
2925 * modules/mkstemp (License): Relicense under LGPLv2+.
2926 * modules/tempname (License): Likewise.
2928 2008-08-06 Bruno Haible <bruno@clisp.org>
2930 * lib/poll.c (poll): Further micro-optimization.
2932 2008-08-06 Jim Meyering <meyering@redhat.com>
2934 inet_pton.c: use locale-independent tolower
2935 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
2936 (inet_pton6): Use c_tolower rather than tolower.
2937 * modules/inet_pton (Depends-on): Add c-ctype.
2939 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
2941 * lib/poll.c (poll): Avoid division when timeout is 0, cache
2942 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
2944 2008-08-06 Jim Meyering <meyering@redhat.com>
2946 * modules/inet_pton (License): Relicense under LGPLv2+.
2948 2008-08-03 Bruno Haible <bruno@clisp.org>
2950 Additional non-aborting API for lock and tls.
2951 * lib/lock.h: Include <errno.h>.
2952 (glthread_lock_init): New macro/function.
2953 (gl_lock_init): Define as wrapper around glthread_lock_init.
2954 (glthread_lock_lock): New macro/function.
2955 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
2956 (glthread_lock_unlock): New macro/function.
2957 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
2958 (glthread_lock_destroy): New macro/function.
2959 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
2960 (glthread_rwlock_init): New macro/function.
2961 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
2962 (glthread_rwlock_rdlock): New macro/function.
2963 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
2964 (glthread_rwlock_wrlock): New macro/function.
2965 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
2966 (glthread_rwlock_unlock): New macro/function.
2967 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
2968 (glthread_rwlock_destroy): New macro/function.
2969 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
2970 (glthread_recursive_lock_init): New macro/function.
2971 (gl_recursive_lock_init): Define as wrapper around
2972 glthread_recursive_lock_init.
2973 (glthread_recursive_lock_lock): New macro/function.
2974 (gl_recursive_lock_lock): Define as wrapper around
2975 glthread_recursive_lock_lock.
2976 (glthread_recursive_lock_unlock): New macro/function.
2977 (gl_recursive_lock_unlock): Define as wrapper around
2978 glthread_recursive_lock_unlock.
2979 (glthread_recursive_lock_destroy): New macro/function.
2980 (gl_recursive_lock_destroy): Define as wrapper around
2981 glthread_recursive_lock_destroy.
2982 (glthread_once): New macro/function.
2983 (gl_once): Define as wrapper around glthread_once.
2984 Update function declarations.
2985 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
2986 glthread_rwlock_init. Return error code.
2987 (glthread_rwlock_rdlock_multithreaded): Renamed from
2988 glthread_rwlock_rdlock. Return error code.
2989 (glthread_rwlock_wrlock_multithreaded): Renamed from
2990 glthread_rwlock_wrlock. Return error code.
2991 (glthread_rwlock_unlock_multithreaded): Renamed from
2992 glthread_rwlock_unlock. Return error code.
2993 (glthread_rwlock_destroy_multithreaded): Renamed from
2994 glthread_rwlock_destroy. Return error code.
2995 (glthread_recursive_lock_init_multithreaded): Renamed from
2996 glthread_recursive_lock_init. Return error code.
2997 (glthread_recursive_lock_lock_multithreaded): Renamed from
2998 glthread_recursive_lock_lock. Return error code.
2999 (glthread_recursive_lock_unlock_multithreaded): Renamed from
3000 glthread_recursive_lock_unlock. Return error code.
3001 (glthread_recursive_lock_destroy_multithreaded): Renamed from
3002 glthread_recursive_lock_destroy. Return error code.
3003 (glthread_once_call): Make static.
3004 (glthread_once_multithreaded): Renamed from glthread_once.
3005 * lib/tls.h: Include <errno.h>.
3006 (glthread_tls_key_init): New macro/function.
3007 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
3008 (glthread_tls_set): New macro/function.
3009 (gl_tls_set): Define as wrapper around glthread_tls_set.
3010 (glthread_tls_key_destroy): New macro/function.
3011 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
3012 Update function declarations.
3013 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
3015 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
3017 2008-08-04 Eric Blake <ebb9@byu.net>
3019 gnumakefile: use space, not TAB, outside of targets
3020 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
3022 2008-08-02 Jim Meyering <meyering@redhat.com>
3024 getdate.y: avoid locale-dependent date parsing failure
3025 In Turkish locales, getdate would fail to recognize keywords
3026 containing a lowercase "i". The solution is not to rely on
3027 locale-sensitive case-conversion.
3028 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
3029 (lookup_word): Use c_toupper in place of toupper.
3030 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
3031 Reported by Vefa Bicakci <bicave@superonline.com> in
3032 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
3033 * modules/getdate (Depends-on): Add c-ctype.
3035 2008-08-02 Bruno Haible <bruno@clisp.org>
3037 * gnulib-tool (func_import): When updating or creating a .gitignore
3038 file, prepend each added line with a slash, and ignore leading slashes
3039 from the existing lines.
3040 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
3042 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3044 Portability fix for GNU make 3.79.1.
3045 * top/GNUmakefile: Avoid 'else COND', which older GNU make
3046 versions do not understand.
3048 2008-08-01 Bruno Haible <bruno@clisp.org>
3050 Work around bug of HP-UX 10.20 cc with -0.0 literal.
3051 * tests/test-isnanf.h (zero): New variable.
3052 (main): Avoid literal -0.0f.
3053 * tests/test-isnand.h (zero): New variable.
3054 (main): Avoid literal -0.0.
3055 * tests/test-isnanl.h (zero): New variable.
3056 (main): Avoid literal -0.0L.
3057 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
3058 (test_float, test_double, test_long_double): Avoid literals -0.0f,
3060 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
3061 (test_signbitd): Avoid literal -0.0.
3062 (test_signbitl): Avoid literal -0.0L.
3063 * tests/test-ceilf1.c (zero): New variable.
3064 (main): Avoid literal -0.0f.
3065 * tests/test-ceill.c (zero): New variable.
3066 (main): Avoid literal -0.0L.
3067 * tests/test-floorf1.c (zero): New variable.
3068 (main): Avoid literal -0.0f.
3069 * tests/test-floorl.c (zero): New variable.
3070 (main): Avoid literal -0.0L.
3071 * tests/test-roundf1.c (zero): New variable.
3072 (main): Avoid literal -0.0f.
3073 * tests/test-round1.c (zero): New variable.
3074 (main): Avoid literal -0.0.
3075 * tests/test-roundl.c (zero): New variable.
3076 (main): Avoid literal -0.0L.
3077 * tests/test-truncf1.c (zero): New variable.
3078 (main): Avoid literal -0.0f.
3079 * tests/test-trunc1.c (zero): New variable.
3080 (main): Avoid literal -0.0.
3081 * tests/test-truncl.c (zero): New variable.
3082 (main): Avoid literal -0.0L.
3083 * tests/test-frexp.c (zero): New variable.
3084 (main): Avoid literal -0.0.
3085 * tests/test-frexpl.c (zero): New variable.
3086 (main): Avoid literal -0.0L.
3087 * tests/test-ldexpl.c (zero): New variable.
3088 (main): Avoid literal -0.0L.
3089 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
3090 (zerod, zerol): New variables.
3091 (test_function): Avoid literals -0.0, -0.0L.
3092 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
3093 (zerod, zerol): New variables.
3094 (test_function): Avoid literals -0.0, -0.0L.
3095 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
3096 (zerod, zerol): New variables.
3097 (test_function): Avoid literals -0.0, -0.0L.
3098 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
3099 (zerod, zerol): New variables.
3100 (test_function): Avoid literals -0.0, -0.0L.
3101 * tests/test-strtod.c (zero): New variable.
3102 (main): Avoid literal -0.0.
3103 Reported by Jonathan C. Patschke <jp@centtech.com>.
3105 2008-07-31 Jim Meyering <meyering@redhat.com>
3107 sha256.h: correct definition of SHA224_DIGEST_SIZE
3108 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
3109 Reported by Paulie Pena IV <paulie4@gmail.com>.
3110 Define as 224 / 8, rather than as a literal.
3111 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
3112 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
3113 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
3115 2008-07-31 Bruno Haible <bruno@clisp.org>
3117 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
3118 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
3119 Reported by Jonathan Patschke <jp@centtech.com>.
3121 2008-07-31 Bruno Haible <bruno@clisp.org>
3123 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
3124 Reported by Paolo Bonzini <bonzini@gnu.org>.
3126 2008-07-30 Eric Blake <ebb9@byu.net>
3128 test-strtod: allow compilation without -lm
3129 * tests/test-strtod.c (main): Avoid link dependence on fabs.
3130 Reported by Dennis Clarke <blastwave@gmail.com>.
3132 2008-07-28 Jim Meyering <meyering@redhat.com>
3134 bootstrap: work also when there are no .po files in po/
3135 * build-aux/bootstrap (update_po_files): Complete the change
3136 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
3138 2008-07-27 Jim Meyering <meyering@redhat.com>
3140 * users.txt: Add zile.
3142 2008-07-26 Ben Pfaff <blp@gnu.org>
3144 Add missing dependencies on new m4/exponent[fdl].m4 files.
3145 * modules/isnanf-nolibm: Add m4/exponentf.m4.
3146 * modules/isnand-nolibm: Add m4/exponentd.m4.
3147 * modules/isnanl-nolibm: Add m4/exponentl.m4.
3148 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
3149 m4/isnan[fdl].m4, because the macros actually used moved.
3150 Reported by Jim Meyering.
3152 2008-07-14 Ben Pfaff <blp@gnu.org>
3155 * lib/isinf.c: New file.
3156 * lib/math.in.h: Define isinf macro if we have decided to replace
3158 * m4/isinf.m4: New file.
3159 * m4/math_h.m4: Initialize and substitute variables for isinf
3161 * modules/isinf: New file.
3162 * modules/isinf-tests: New file.
3163 * modules/math: Add substitutions for new module.
3164 * tests/test-isinf.c: New file.
3165 * doc/posix-functions/isinf.texi: Mention new module.
3166 * MODULES.html.sh: Mention new module.
3168 2008-07-14 Ben Pfaff <blp@gnu.org>
3170 Factor out some macros for use by additional modules.
3171 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
3173 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
3175 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
3177 * m4/exponentf.m4: New file.
3178 * m4/exponentd.m4: New file.
3179 * m4/exponentl.m4: New file.
3180 * modules/isnanf: Use new file m4/exponentf.m4.
3181 * modules/isnand: Use new file m4/exponentd.m4.
3182 * modules/isnanl: Use new file m4/exponentl.m4.
3184 2008-07-23 Ulrich Drepper <drepper@redhat.com>
3186 mktime.c: normalize tp->tm_isdst value to -1/0/1.
3187 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
3188 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
3189 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
3191 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
3192 readlink on platforms without PATH_MAX.
3194 2008-07-21 Eric Blake <ebb9@byu.net>
3196 Warn, not fail, on stale version.
3197 * top/GNUmakefile (_curr-ver): Tone down previous patch.
3199 Don't allow installation with stale devel version number.
3200 * top/GNUmakefile (_is-install-target): New macro.
3201 (_curr-ver): Forbid installation with stale version number.
3203 2008-07-20 Bruno Haible <bruno@clisp.org>
3205 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
3207 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
3209 2008-07-20 Bruno Haible <bruno@clisp.org>
3211 * lib/c-stack.h (c_stack_action): Add documentation.
3212 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
3214 2008-07-20 Bruno Haible <bruno@clisp.org>
3216 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
3217 * modules/readlink (License): Likewise.
3219 2008-07-17 Eric Blake <ebb9@byu.net>
3221 * modules/c-stack (Link): Fix typo.
3223 Make c-stack use libsigsegv, when available.
3224 * modules/c-stack (Depends-on): Add libsigsegv.
3225 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
3227 * lib/c-stack.c (SIGSTKSZ): Define fallback.
3228 (segv_handler, overflow_handler, c_stack_action)
3229 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
3230 implementation when libsigsegv is available, but only when using
3231 the library is necessary.
3232 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
3233 comment, explaining why XSI check fails on Linux.
3234 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
3235 * tests/test-c-stack2.sh: Tweak skip message.
3236 * NEWS: Document new link-time requirements.
3238 2008-07-16 Eric Blake <ebb9@byu.net>
3240 c-stack: Expose false positives when not using libsigsegv.
3241 * modules/c-stack-tests (Files): Expand test.
3242 * tests/test-c-stack.c (main): Add means to conditionally trigger
3243 non-overflow SIGSEGV.
3244 * tests/test-c-stack2.sh: New file.
3246 2008-07-14 Bruno Haible <bruno@clisp.org>
3248 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
3249 Reported by Eric Blake.
3251 2008-07-14 Sam Steingold <sds@gnu.org>
3252 Bruno Haible <bruno@clisp.org>
3254 New module libsigsegv.
3255 * modules/libsigsegv: New file.
3256 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
3258 * MODULES.html.sh (Signal handling): New section.
3260 2008-07-14 Bruno Haible <bruno@clisp.org>
3262 * modules/unictype/ctype-* (Description): Add the word "function".
3263 Improves the resulting doc in MODULES.html.
3265 2008-07-12 Ben Pfaff <blp@gnu.org>
3267 Add longlong module.
3268 * modules/longlong: New file.
3270 2008-07-12 Bruno Haible <bruno@clisp.org>
3272 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
3275 2008-07-10 Ben Pfaff <blp@gnu.org>
3278 * doc/posix-functions/isnan.texi: Mention new module.
3279 * lib/math.in.h: Define isnan macro if we have decided to replace
3281 * m4/isnan.m4: New file.
3282 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
3283 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
3285 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
3287 * m4/math_h.m4: Initialize and substitute variables for isnan
3289 * modules/isnan: New file.
3290 * modules/isnan-tests: New file.
3291 * modules/math: Add substitutions for new module.
3292 * tests/test-isnan.c: New file.
3293 * MODULES.html.sh: Mention new module.
3295 2008-07-10 Ben Pfaff <blp@gnu.org>
3298 * lib/isnanf.m4: New file.
3299 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
3300 (gl_HAVE_ISNANF_IN_LIBM): New macro.
3301 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
3302 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
3303 * modules/isnanf: New file.
3304 * modules/isnanf-tests: New file.
3305 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
3307 * tests/test-isnanf-nolibm.c: factored most of its contents into
3308 new file tests/test-isnanf.h.
3309 * tests/test-isnanf.h: New file.
3310 * tests/test-isnanf.c: New file.
3311 * MODULES.html.sh: Mention new module.
3312 * doc/glibc-functions/isnanf.texi: Mention new module.
3314 2008-07-10 Ben Pfaff <blp@gnu.org>
3317 * lib/isnand.h: New file.
3318 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
3319 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
3320 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
3322 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
3323 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
3324 (gl_HAVE_ISNAND_IN_LIBM): New macro.
3325 * modules/isnand: New file.
3326 * modules/isnand-tests: New file.
3327 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
3329 * tests/test-isnand-nolibm.c: factored most of its contents into
3330 new file tests/test-isnand.h.
3331 * tests/test-isnand.h: New file.
3332 * tests/test-isnand.c: New file.
3333 * MODULES.html.sh: Mention new module.
3335 2008-07-10 Ben Pfaff <blp@gnu.org>
3337 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
3338 * lib/isnand.h: Rename lib/isnand-nolibm.h.
3339 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
3340 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
3341 * modules/isnanf-nolibm: Update references to renamed files.
3342 * modules/isnand-nolibm: Likewise.
3343 * modules/isnanf-nolibm-tests: Likewise.
3344 * modules/isnand-nolibm-tests: Likewise.
3345 * lib/frexp.c: Likewise.
3346 * lib/isfinite.c: Likewise.
3347 * lib/signbitd.c: Likewise.
3348 * lib/signbitf.c: Likewise.
3349 * lib/vasnprintf.c: Likewise.
3350 * tests/test-ceilf1.c: Likewise.
3351 * tests/test-ceilf2.c: Likewise.
3352 * tests/test-floorf1.c: Likewise.
3353 * tests/test-floorf2.c: Likewise.
3354 * tests/test-frexp.c: Likewise.
3355 * tests/test-round1.c: Likewise.
3356 * tests/test-round2.c: Likewise.
3357 * tests/test-roundf1.c: Likewise.
3358 * tests/test-strtod.c: Likewise.
3359 * tests/test-trunc1.c: Likewise.
3360 * tests/test-trunc2.c: Likewise.
3361 * tests/test-truncf1.c: Likewise.
3362 * tests/test-truncf2.c: Likewise.
3363 * NEWS: Mention the renamed header files.
3365 2008-07-11 Jim Meyering <meyering@redhat.com>
3367 vc-list-files: make the last-resort awk code more portable
3368 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
3369 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
3370 does not support it.
3372 2008-07-10 Eric Blake <ebb9@byu.net>
3374 Work with tar's bootstrap.
3375 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
3376 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
3379 2008-07-09 Jim Meyering <meyering@redhat.com>
3381 posix-shell.m4: fix typo that made this test malfunction
3382 * m4/posix-shell.m4: Remove capitalization in variable name.
3384 2008-07-08 Bruno Haible <bruno@clisp.org>
3386 * m4/onceonly.m4: Update comments.
3387 Reported by Ben Pfaff <blp@cs.stanford.edu>.
3389 2008-07-04 Jim Meyering <meyering@redhat.com>
3391 * users.txt: Add vc-dwim.
3392 (bison, coreutils): Use the gitweb URL.
3394 2008-07-03 Jim Meyering <meyering@redhat.com>
3396 * users.txt: Add libffcall. From Sam Steingold.
3398 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
3400 getdate.y: do not ignore TZ with relative day, month or year offset
3401 * lib/getdate.y (get_date): Move the tz-handling block to follow the
3402 relative-date-handling, since otherwise, the latter would clobber the
3403 sole output (an updated Start value) of the tz-handling block.
3404 * tests/test-getdate.c: Tests for the fix
3406 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3408 Recognize 'foo_LIBRARIES += libgnu.a'.
3409 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
3410 makefile snippet has already specified an installation location,
3413 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
3415 getdate.y: factor out common actions
3416 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
3417 Use them in place of open-coded actions.
3419 2008-07-01 Simon Josefsson <simon@josefsson.org>
3421 Add self-test for getdate module.
3422 * modules/getdate-tests: New file.
3423 * tests/test-getdate.c: New file.
3425 2008-06-29 Bruno Haible <bruno@clisp.org>
3427 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
3429 Reported by Sylvain Beucler <beuc@beuc.net>.
3431 2008-06-29 Bruno Haible <bruno@clisp.org>
3433 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
3434 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
3436 2008-06-29 Bruno Haible <bruno@clisp.org>
3438 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
3440 Reported by Sylvain Beucler <beuc@beuc.net>.
3442 2008-06-26 Jim Meyering <meyering@redhat.com>
3444 make several modules depend on the "open" module
3445 This provides slightly increased consistency when opening-for-write
3446 the name of a non-directory spelled with a trailing slash.
3447 * modules/chdir-safer: Likewise.
3448 * modules/chown: Likewise.
3449 * modules/clean-temp: Likewise.
3450 * modules/copy-file: Likewise.
3451 * modules/fchdir: Likewise.
3452 * modules/fcntl-safer: Likewise.
3453 * modules/pipe: Likewise.
3454 * modules/utime: Likewise.
3455 Prompted by Eric Blake and Bruno Haible.
3457 2008-06-24 Andreas Schwab <schwab@suse.de>
3459 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
3460 literals can be used as initializers for global variables.
3462 2008-06-23 Eric Blake <ebb9@byu.net>
3464 Make gnulib-cache.m4 easier to diff.
3465 * gnulib-tool (func_import): Allow newlines when reading cached
3466 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
3468 2008-06-23 Bruno Haible <bruno@clisp.org>
3470 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
3471 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
3472 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
3473 m4/signalblocking.m4.
3474 (gl_PREREQ_SIGACTION): Don't invoke it.
3475 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
3476 gl_PREREQ_SIG_HANDLER_H.
3477 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3478 Don't check for sigaction here.
3480 2008-06-23 Bruno Haible <bruno@clisp.org>
3482 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
3483 (install_handlers): Don't set the SA_RESETHAND flag.
3485 2008-06-23 Bruno Haible <bruno@clisp.org>
3487 * m4/sigaction.m4: Comment fixes.
3488 * lib/signal.in.h: Likewise.
3490 2008-06-23 Eric Blake <ebb9@byu.net>
3493 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
3495 Avoid SA_ namespace.
3496 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
3497 Reported by Ralf Wildenhues.
3499 Avoid test failure due to SA_RESTORER.
3500 * tests/test-sigaction.c (SA_MASK): New macro.
3501 (main): Avoid failing due to extension flags being set.
3502 Reported by Jim Meyering.
3504 Revert use of sig-handler.h in sigprocmask.c.
3505 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
3506 it requires the existence of struct sigaction.
3507 * lib/sigprocmask.c (handler_t): Restore typedef.
3508 (rpl_signal, old_handlers): Use local type.
3510 2008-06-22 Bruno Haible <bruno@clisp.org>
3512 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
3514 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3516 2008-06-22 Bruno Haible <bruno@clisp.org>
3518 * doc/posix-functions/siginterrupt.texi: Move note.
3520 * lib/signal.in.h (SA_RESTART): New macro.
3521 * lib/sigaction.c: Update comment.
3523 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
3525 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
3526 (gl_PREREQ_SIGPROCMASK): Invoke it.
3527 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
3529 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
3531 * lib/sigprocmask.c: Update a comment.
3533 2008-06-21 Eric Blake <ebb9@byu.net>
3535 Use sigaction module rather than signal().
3536 * modules/c-stack (Depends-on): Add sigaction.
3537 * modules/fatal-signal (Depends-on): Likewise.
3538 * modules/nanosleep (Depends-on): Likewise.
3539 * modules/sigprocmask (Files): Add sig-handler.h.
3540 * modules/sigaction (Files): Likewise.
3541 * lib/sig-handler.h (get_handler): New file, suggested by Paul
3543 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
3544 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
3545 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3546 (init_fatal_signals): Likewise.
3547 * lib/nanosleep.c (rpl_nanosleep): Likewise.
3548 (siginterrupt): Delete fallback.
3549 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
3551 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
3554 New module sigaction, for mingw.
3555 * modules/sigaction: New module...
3556 * modules/sigaction-tests: ...and its test.
3557 * m4/sigaction.m4: New file.
3558 * lib/sigaction.c: Likewise.
3559 * tests/test-sigaction.c: Likewise.
3560 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
3561 * modules/signal (Makefile.am): Likewise.
3562 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
3564 * doc/posix-headers/signal.texi (signal.h): Mention provided
3566 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
3567 that sigaction is preferable.
3568 * doc/posix-functions/sigaction.texi (sigaction): Mention new
3570 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
3573 Improve robustness of sigprocmask by overriding signal.
3574 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
3576 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
3577 (SIGKILL, SIGSTOP): Provide fallbacks.
3578 (rpl_signal): Implement.
3579 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
3580 signal can be called inside handlers.
3582 Fix nanosleep module on mingw.
3583 * modules/nanosleep (Depends-on): Add sys_select.
3584 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
3586 Fix licensing of sigprocmask.
3587 * modules/raise (License): Relicense as LGPL.
3589 2008-06-21 Bruno Haible <bruno@clisp.org>
3591 * lib/propername.c (proper_name_utf8): Don't use the transliterated
3592 result if it contains question marks.
3593 Reported by Michael Geng <linux@michaelgeng.de>.
3595 2008-06-19 Bruno Haible <bruno@clisp.org>
3598 * doc/gnulib.texi: Include updated-stamp.texi.
3599 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
3600 (updated-stamp.texi): New rule.
3601 (gnulib.info): Depend on it.
3602 * doc/.gitignore: Add updated-stamp.texi.
3603 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
3605 2008-06-19 Bruno Haible <bruno@clisp.org>
3607 * doc/Makefile (gnulib.info): Update and simplify dependencies.
3608 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3610 2008-06-19 Eric Blake <ebb9@byu.net>
3612 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
3613 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
3614 Reported by Stepan Kasal.
3616 2008-06-18 Bruno Haible <bruno@clisp.org>
3618 * lib/fatal-signal.c (init_fatal_signals): Add comment.
3619 Reported by Eric Blake.
3621 2008-06-18 Eric Blake <ebb9@byu.net>
3623 Work around cygwin 1.5.25 strsignal bug.
3624 * tests/test-strsignal.c: Allow for const char *.
3625 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
3627 2008-06-18 Simon Josefsson <simon@josefsson.org>
3629 * users.txt: Update URL to article and add author/date
3632 2008-06-17 Bruno Haible <bruno@clisp.org>
3634 New macro gl_DISABLE_THREADS.
3635 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
3636 if the user did not pass --enable-threads or --disable-threads option.
3637 (gl_DISABLE_THREADS): New macro.
3638 Reported by Eric Blake <ebb9@byu.net>.
3640 2008-06-17 Bruno Haible <bruno@clisp.org>
3642 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
3643 when the macro ignores it.
3644 Based on a patch by Eric Blake <ebb9@byu.net>.
3646 2008-06-17 Bruno Haible <bruno@clisp.org>
3648 * modules/tls (License): Change to LGPLv2+.
3649 Reported by Eric Blake.
3651 2008-06-17 Eric Blake <ebb9@byu.net>
3653 Simplify c-stack prerequisites.
3654 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
3655 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
3656 no longer requires <ucontext.h> to exist. Optimize setrlimit
3658 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
3661 Move c-stack test into testsuite.
3662 * modules/c-stack-tests: New file.
3663 * lib/c-stack.c [DEBUG]: Move test program...
3664 * tests/test-c-stack.c: ...into this new file. Skip rather than
3665 fail test if sigaltstack is lacking.
3666 * tests/test-c-stack.sh: New driver file.
3668 2008-06-16 Eric Blake <ebb9@byu.net>
3670 Use raise module consistently.
3671 * modules/fatal-signal (Depends-on): Add raise.
3672 * modules/sigprocmask (Depends-on): Likewise.
3673 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
3674 * lib/sigprocmask.c (sigprocmask): Likewise.
3675 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3676 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
3678 Fix compliance bug in sigpending.
3679 * lib/sigprocmask.c (sigpending): Return pending array via
3680 parameter, not return value.
3682 2008-06-14 Eric Blake <ebb9@byu.net>
3684 Improve obstack-printf test code.
3685 * tests/test-obstack-printf.c (test_function): Fix comment, and
3686 simplify usage of obstack_* in macros. Add a test for coverage.
3687 Reported by Bruno Haible.
3689 2008-06-14 Bruno Haible <bruno@clisp.org>
3691 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
3692 array size as a constant, not as a const variable.
3693 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
3694 AC_USE_SYSTEM_EXTENSIONS.
3695 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
3696 Test whether the obstack_printf function actually exists.
3697 * modules/obstack-printf (Depends-on): Add extensions.
3698 (Include): Remove obstack.h.
3699 * modules/obstack-printf-posix (Depends-on): Add extensions.
3700 (Include): Remove obstack.h.
3702 2008-06-13 Eric Blake <ebb9@byu.net>
3704 Add obstack-printf and obstack-printf-posix modules.
3705 * modules/obstack-printf: New file.
3706 * modules/obstack-printf-posix: Likewise.
3707 * MODULES.html.sh (Misc): Mention them.
3708 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
3710 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
3712 * modules/stdio (Makefile.am): Accomodate new modules.
3713 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
3714 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
3716 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
3718 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
3719 (gl_REPLACE_OBSTACK_PRINTF): New macros
3720 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
3721 * tests/test-obstack-printf.c: New file.
3722 * modules/obstack-printf-tests: Likewise.
3723 * modules/obstack-printf-posix-tests: Likewise.
3725 2008-06-11 Bruno Haible <bruno@clisp.org>
3727 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
3728 * lib/open.c: Include errno.h.
3729 (open): Fail when attempting to write to a file that has a trailing
3731 * tests/test-open.c (main): Test against trailing slash bug.
3732 * doc/posix-functions/open.texi: Mention the trailing slash bug.
3734 2008-06-10 Bruno Haible <bruno@clisp.org>
3736 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
3737 for $? to work inside the trap command, with various /bin/sh-s.
3738 * tests/test-vc-list-files-cvs.sh: Likewise.
3740 2008-06-10 Bruno Haible <bruno@clisp.org>
3742 * lib/acl-internal.h: Don't include gettext.h here.
3743 * lib/set-mode-acl.c: Include gettext.h here.
3744 * lib/copy-acl.c: Likewise.
3746 2008-06-10 Bruno Haible <bruno@clisp.org>
3748 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
3749 * lib/wait-process.c (wait_subprocess): Likewise.
3750 * lib/execute.h (execute): Add termsigp argument.
3751 * lib/execute.c (execute): Likewise.
3752 * lib/csharpcomp.c (compile_csharp_using_pnet,
3753 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
3754 * lib/csharpexec.c (execute_csharp_using_pnet,
3755 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
3756 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
3757 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
3758 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
3759 is_jikes_present): Update.
3760 * lib/javaexec.c (execute_java_class): Update.
3761 * lib/javaversion.c (execute_and_read_line): Update.
3762 * NEWS: Document the changes.
3763 Reported by Eric Blake.
3765 2008-06-10 Eric Blake <ebb9@byu.net>
3767 Add missing include.
3768 * tests/test-strstr.c (includes): Add <signal.h>.
3769 * tests/test-strcasestr.c (includes): Likewise.
3770 * tests/test-memmem.c (includes): Likewise.
3772 2008-06-10 Bruno Haible <bruno@clisp.org>
3774 * lib/wait-process.c (wait_subprocess): Add an assertion.
3776 2008-06-10 Bruno Haible <bruno@clisp.org>
3778 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
3780 2008-06-10 Bruno Haible <bruno@clisp.org>
3782 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
3784 * tests/test-strcasestr.c (main): Likewise.
3785 * tests/test-strstr.c (main): Likewise.
3787 2008-06-09 Bruno Haible <bruno@clisp.org>
3789 Work around the Solaris 10 ACE ACLs ABI change.
3790 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
3791 declare if ACL_NO_TRIVIAL is present.
3792 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
3793 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
3794 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
3795 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
3796 define if ACL_NO_TRIVIAL is present.
3797 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
3798 and use the current ABI.
3799 (file_has_acl): Use same #if condition as elsewhere.
3800 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
3801 in use, and use the current ABI.
3802 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
3803 Reported by Jim Meyering.
3805 2008-06-09 Eric Blake <ebb9@byu.net>
3807 Work around environments that (stupidly) ignore SIGALRM.
3808 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
3809 before using alarm().
3810 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3811 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3812 Reported by Ian Beckwith <ianb@erislabs.net>.
3814 Produce autobuild blurb earlier in log.
3815 * modules/autobuild (configure.ac-early): Move AB_INIT here.
3817 2008-06-09 Jim Meyering <meyering@redhat.com>
3818 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
3820 utimens.c: correct kernel bug work-around
3821 OndÅ™ej VaÅ¡Ãk found that the invalid return value of 280 indicates
3822 failure, not success, and the kernel bug we're trying to work
3823 around affects not just the utimensat call, but also the fallback
3825 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
3827 [HAVE_FUTIMENS]: Use the same work-around, here.
3829 2008-06-09 Jim Meyering <meyering@redhat.com>
3831 add more guards around definition of ACE_-related code
3832 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
3833 ALLOW and ACE_OWNER are also defined.
3835 2008-06-08 Bruno Haible <bruno@clisp.org>
3837 * lib/acl-internal.h: Add me as co-author.
3838 * lib/file-has-acl.c: Likewise.
3839 * lib/set-mode-acl.c: Likewise.
3840 * lib/copy-acl.c: Likewise.
3842 2008-06-08 Bruno Haible <bruno@clisp.org>
3844 Add support for AIX ACLs.
3845 * lib/acl-internal.h (acl_nontrivial): New declaration.
3846 * lib/file-has-acl.c (acl_nontrivial): New function.
3847 (file_has_acl): Add implementation using AIX 4 ACL API.
3848 * lib/set-mode-acl.c (qset_acl): Likewise.
3849 * lib/copy-acl.c (qcopy_acl): Likewise.
3851 2008-06-08 Bruno Haible <bruno@clisp.org>
3853 Add support for HP-UX ACLs.
3854 * lib/acl-internal.h (acl_nontrivial): New declaration.
3855 * lib/file-has-acl.c (acl_nontrivial): New function.
3856 (file_has_acl): Add implementation using HP-UX 11 ACL API.
3857 * lib/set-mode-acl.c (qset_acl): Likewise.
3858 * lib/copy-acl.c (qcopy_acl): Likewise.
3860 2008-06-08 Bruno Haible <bruno@clisp.org>
3862 Add support for Cygwin ACLs.
3863 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
3864 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
3865 the chmod_or_fchmod call.
3866 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
3868 2008-06-08 Bruno Haible <bruno@clisp.org>
3870 Fix bug with setuid modes in Solaris 10+ code.
3871 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
3872 succeeded, when the mode contains some special bits.
3874 2008-06-08 Bruno Haible <bruno@clisp.org>
3876 Add support for Solaris 7..10 ACLs.
3877 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
3879 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
3881 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
3882 * lib/set-mode-acl.c (qset_acl): Likewise.
3883 * lib/copy-acl.c (qcopy_acl): Likewise.
3885 2008-06-08 Bruno Haible <bruno@clisp.org>
3887 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
3889 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
3890 (acl_access_nontrivial): Remove MacOS X case.
3891 (file_has_acl): Use acl_extended_nontrivial.
3892 * lib/copy-acl.c (qcopy_acl): Likewise.
3894 2008-06-08 Bruno Haible <bruno@clisp.org>
3896 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
3898 2008-06-08 Jim Meyering <meyering@redhat.com>
3900 * modules/acl (Maintainer): Add Bruno Haible.
3902 2008-06-07 Bruno Haible <bruno@clisp.org>
3904 Improve support for Tru64 ACLs.
3905 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
3908 2008-06-07 Bruno Haible <bruno@clisp.org>
3910 Add support for MacOS X ACLs.
3911 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
3912 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
3913 * lib/set-mode-acl.c (qset_acl): Likewise.
3914 * lib/copy-acl.c (qcopy_acl): Likewise.
3916 2008-06-07 Bruno Haible <bruno@clisp.org>
3918 Fix memory leak introduced on 2008-05-22.
3919 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
3922 2008-06-07 Bruno Haible <bruno@clisp.org>
3924 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
3925 to construct an empty ACL.
3927 2008-06-07 Bruno Haible <bruno@clisp.org>
3929 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
3931 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
3933 2008-06-07 Bruno Haible <bruno@clisp.org>
3935 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
3936 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
3938 2008-06-07 Bruno Haible <bruno@clisp.org>
3940 * doc/posix-functions/_setjmp.texi: Explain the use of this function
3941 regardless of POSIX.
3942 * doc/posix-functions/_longjmp.texi: Likewise.
3943 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
3944 SystemV platform in this case.
3946 2008-06-06 Eric Blake <ebb9@byu.net>
3948 Document abort() bugs.
3949 * doc/posix-functions/abort.texi (abort): Mention anomalies.
3951 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
3952 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
3954 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
3955 siglongjmp, but only as a macro.
3956 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
3958 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
3960 Tweak documentation to cover cygwin argz bugs.
3961 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
3962 argz bug fix; no code change needed since no cygwin releases
3963 occurred between the last fix and the bug being tested.
3964 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
3965 module and recently fixed cygwin bugs.
3966 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
3967 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
3968 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
3969 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
3970 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
3972 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
3973 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
3974 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
3975 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
3976 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
3977 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
3980 Avoid gcc warning on cygwin.
3981 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
3982 !ACL_NO_TRIVIAL]: Avoid unused variable.
3984 2008-06-05 Eric Blake <ebb9@byu.net>
3986 Be tolerant of UNKNOWN version in gnulib-tool test dir.
3987 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
3988 git-version-gen fails to come up with a version.
3989 Reported by Simon Josefsson.
3991 2008-06-05 Jim Meyering <meyering@redhat.com>
3992 Paul Eggert <eggert@cs.ucla.edu>
3994 utimens.c: work around a probable Linux kernel bug
3995 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
3996 appears to be a kernel bug that causes utimensat to return 280
3997 instead of 0, indicating success.
3999 2008-06-04 Bruno Haible <bruno@clisp.org>
4001 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
4004 2008-06-04 Bruno Haible <bruno@clisp.org>
4006 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
4007 * lib/file-has-acl.c (acl_access_nontrivial): New function.
4008 (file_has_acl): Use it. Save errno afterwards.
4009 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
4011 2008-06-03 Bruno Haible <bruno@clisp.org>
4013 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
4014 draft code. Simplify #ifs.
4015 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
4016 Put Solaris code after POSIX-draft code. Fix comments regarding
4017 Solaris 10, HP-UX. Mention Cygwin.
4018 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
4020 2008-06-03 Eric Blake <ebb9@byu.net>
4022 Provide fallback for older kernels.
4023 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
4024 Provide runtime fallback if kernel lacks support.
4025 Reported by Mike Frysinger.
4027 2008-06-02 Bruno Haible <bruno@clisp.org>
4029 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
4032 2008-06-02 Bruno Haible <bruno@clisp.org>
4034 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
4035 * lib/copy-acl.c (qcopy_acl): Update comment.
4037 2008-06-02 Bruno Haible <bruno@clisp.org>
4039 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
4042 2008-06-02 Bruno Haible <bruno@clisp.org>
4044 * tests/test-file-has-acl.sh: Use different code for Cygwin.
4045 * tests/test-set-mode-acl.sh: Likewise.
4046 * tests/test-copy-acl.sh: Likewise.
4047 * tests/test-copy-file.sh: Likewise.
4049 2008-06-02 Bruno Haible <bruno@clisp.org>
4051 * tests/test-file-has-acl.sh: Remove unused code.
4053 2008-06-01 Bruno Haible <bruno@clisp.org>
4055 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
4056 (copy_acl): Just a wrapper around qcopy_acl that emits the error
4058 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
4060 2008-06-01 Bruno Haible <bruno@clisp.org>
4062 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
4063 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
4064 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
4066 * modules/acl-tests (configure.ac): Remove tests now contained in
4069 2008-06-02 Jim Meyering <meyering@redhat.com>
4071 announce-gen: use a better key-server host name
4072 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
4073 it may be more consistently reliable. Suggested by Werner Koch
4074 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
4076 2008-06-01 Bruno Haible <bruno@clisp.org>
4078 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
4079 Reported by Voroskoi Andras <voroskoi@gmail.com>.
4081 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
4083 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
4085 2008-06-01 Bruno Haible <bruno@clisp.org>
4088 * tests/test-file-has-acl.sh: New file.
4089 * tests/test-file-has-acl.c: New file.
4090 * tests/test-set-mode-acl.sh: New file.
4091 * tests/test-set-mode-acl.c: New file.
4092 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
4093 * tests/test-copy-acl.c: New file.
4094 * modules/acl-tests: New file, based on modules/copy-file-tests.
4095 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
4096 (Depends-on): Add acl-tests.
4097 (configure.ac): Remove checks.
4098 (Makefile.am): Don't create test-sameacls program here any more.
4100 2008-06-01 Bruno Haible <bruno@clisp.org>
4102 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
4103 * tests/test-sameacls.c: Include progname.h.
4104 (main): Invoke set_program_name. Portability fixes for MacOS X,
4107 2008-06-01 Bruno Haible <bruno@clisp.org>
4109 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
4111 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
4113 2008-06-01 Bruno Haible <bruno@clisp.org>
4115 * modules/rpmatch (Depends-on): Add strdup.
4117 2008-06-01 Bruno Haible <bruno@clisp.org>
4119 * lib/pipe.c: Include unistd-safer.h.
4120 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
4121 * modules/pipe (Depends-on): Add unistd-safer.
4123 2008-05-30 Simon Josefsson <simon@josefsson.org>
4125 * modules/autobuild (configure.ac): Call AB_INIT.
4127 2008-05-30 Simon Josefsson <simon@josefsson.org>
4129 * tests/test-getaddrinfo.c: Don't print debug messages by default.
4130 Suggested by Bruno Haible <bruno@clisp.org>.
4132 2008-05-30 Simon Josefsson <simon@josefsson.org>
4134 * tests/test-base64.c: Cast size_t to unsigned long when invoking
4135 printf. Use %lu instead of %d. Reported by Bruno Haible
4138 2008-05-29 Eric Blake <ebb9@byu.net>
4140 Prefer new POSIX 200x interfaces over futimesat.
4141 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
4142 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
4144 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
4146 2008-05-28 Bruno Haible <bruno@clisp.org>
4148 * modules/stpcpy (License): Change to LGPLv2+.
4149 Requested by David Lutterkort <dlutter@redhat.com>.
4151 2008-05-27 Bruno Haible <bruno@clisp.org>
4153 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
4155 Reported by Jose E. Marchesi <jemarch@gnu.org>.
4157 2008-05-27 Bruno Haible <bruno@clisp.org>
4159 * modules/iconv_open (Link): New section, from module 'iconv'.
4160 * modules/striconv (Link): Likewise.
4161 * modules/striconveh (Link): Likewise.
4162 * modules/xstriconv (Link): Likewise.
4163 * modules/unicodeio (Link): Likewise.
4164 * modules/propername (Link): Likewise.
4165 Reported by Jim Meyering.
4167 2008-05-26 Jim Meyering <meyering@redhat.com>
4169 sha256: do not artificially restrict buffer length to be < 2^32
4170 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
4172 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
4175 avoid unaligned access errors, e.g., on sparc
4176 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
4177 direct access through a possibly-unaligned uint64* pointer.
4178 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
4179 direct access through a possibly-unaligned uint32* pointer.
4180 Prompted by this patch from Tom "spot" Callaway:
4181 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
4183 sha512.c: fix typo in comment
4184 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
4186 2008-05-25 Bruno Haible <bruno@clisp.org>
4188 * lib/set-mode-acl.c: Renamed from lib/acl.c.
4189 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
4190 (Makefile.am): Update lib_SOURCES.
4192 2008-05-25 Bruno Haible <bruno@clisp.org>
4194 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
4196 2008-05-25 Jim Meyering <meyering@redhat.com>
4198 useless-if-before-free: freed expr may have white-space differences
4199 * build-aux/useless-if-before-free: Recognize cases in which the
4200 freed expression differs from the tested one in embedded white
4201 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
4202 $1 was used, so we can't make any regexp shy. Improved tests now
4205 useless-if-before-free: accept white space in the expression.
4206 * build-aux/useless-if-before-free: For now, any white space
4207 in the expression must be identical in the free argument.
4209 useless-if-before-free: efficiency tweak
4210 * build-aux/useless-if-before-free: Make the expression-matching
4212 Make the *outer* regexp shy, not the expr-matching one.
4214 update code-in-comment to accept cast of free arg
4215 * build-aux/useless-if-before-free: Update regexp.
4217 2008-05-25 Bruno Haible <bruno@clisp.org>
4219 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
4220 * modules/copy-file-tests (Files, Makefile.am): Update.
4221 * tests/test-copy-file.c (func_test_copy): Update.
4223 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
4225 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
4227 2008-05-23 Bruno Haible <bruno@clisp.org>
4229 Improve support for ACLs on OSF/1.
4230 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
4231 Remove fallback for unknown flavors of ACLs.
4233 2008-05-22 Bruno Haible <bruno@clisp.org>
4235 Add support for ACLs on OSF/1.
4236 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
4238 (acl_free_text): New macro fallback.
4239 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
4241 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
4242 acl_free_text function. Require AC_C_INLINE.
4244 2008-05-22 Bruno Haible <bruno@clisp.org>
4246 Make copy_acl work on MacOS X 10.5.
4247 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
4248 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
4249 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
4250 If MODE_INSIDE_ACL, don't assume that every system has the same text
4251 representation for ACLs as FreeBSD.
4252 * lib/copy-acl.c (copy_acl): Add support for platforms with
4254 * lib/file-has-acl.c (file_has_acl): Likewise.
4255 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
4256 FreeBSD, MacOS X, or IRIX, respectively.
4258 2008-05-22 Bruno Haible <bruno@clisp.org>
4260 * lib/acl.h: Don't include <sys/acl.h>.
4261 (GETACLCNT): Move fallback to lib/acl-internal.h.
4262 * lib/acl-internal.h: Include <sys/acl.h> here.
4263 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
4265 2008-05-22 Bruno Haible <bruno@clisp.org>
4267 Split off copy_acl function to separate file.
4268 * lib/copy-acl.c: New file, extracted from lib/acl.c.
4269 * lib/acl.c (copy_acl): Moved function to separate file.
4270 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
4271 * modules/acl (Files): Add lib/copy-acl.c.
4272 (Makefiles.am): Augment lib_SOURCES.
4274 2008-05-22 Bruno Haible <bruno@clisp.org>
4276 * modules/copy-file-tests: New file.
4277 * tests/test-copy-file.sh: New file.
4278 * tests/test-copy-file.c: New file.
4279 * tests/test-copy-file-sameacls.c: New file.
4281 2008-05-22 Eric Blake <ebb9@byu.net>
4284 * tests/test-memcmp.c (main): Pass NULL indirectly.
4286 2008-05-21 Bruno Haible <bruno@clisp.org>
4288 Add reference doc about ACLs.
4289 * doc/acl-resources.txt: New file.
4290 * doc/acl-cygwin.txt: New file.
4292 2008-05-21 Bruno Haible <bruno@clisp.org>
4294 Avoid one more warning from gcc.
4295 * lib/vasnprintf.c (IF_LINT): Update comments.
4296 (VASNPRINTF): Use it also for the 'prefix' array initializer.
4298 2008-05-21 Jim Meyering <meyering@redhat.com>
4300 avoid a warning from gcc
4301 * lib/vasnprintf.c (IF_LINT): Define.
4302 (scale10_round_decimal_long_double):
4303 Use it to avoid a "may be used uninitialized" warning.
4304 (scale10_round_decimal_double): Likewise.
4306 2008-05-21 Simon Josefsson <simon@josefsson.org>
4308 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
4311 2008-05-20 Bruno Haible <bruno@clisp.org>
4313 * tests/test-memcmp.c (main): Test also the sign of the result. Test
4314 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
4316 2008-05-20 Simon Josefsson <simon@josefsson.org>
4318 * modules/memcmp-tests: New file.
4319 * tests/test-memcmp.c: New file.
4321 2008-05-19 Bruno Haible <bruno@clisp.org>
4323 * modules/propername (Notice, configure.ac): Put quoted "..." into
4325 * lib/propername.h: Update comments accordingly.
4326 Reported by Eric Blake.
4328 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
4330 * modules/getpass-gnu (Depends-on): Add fseeko.
4332 2008-05-19 Simon Josefsson <simon@josefsson.org>
4334 * modules/base64-tests: New file.
4336 2008-05-19 Bo Borgerson <gigabo@gmail.com>
4338 * lib/base64.c (base64_decode_ctx): If a decode context structure
4339 was passed in use it to ignore newlines. If a context structure
4340 was _not_ passed in, continue to treat newlines as garbage (this
4341 is the historical behavior). Formerly base64_decode.
4342 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
4343 takes a decode context structure.
4344 * lib/base64.h (base64_decode): Macro for four-argument calls.
4345 (base64_decode_alloc): Likewise.
4346 * lib/base64.c (base64_decode_ctx): If a decode context structure
4347 was passed in use it to ignore newlines. If a context structure
4348 was _not_ passed in, continue to treat newlines as garbage (this
4349 is the historical behavior). Formerly base64_decode.
4350 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
4351 takes a decode context structure.
4352 * lib/base64.h (base64_decode): Macro for four-argument calls.
4353 (base64_decode_alloc): Likewise.
4355 2008-05-19 Jim Meyering <meyering@redhat.com>
4357 avoid a warning from gcc
4358 * lib/trim.c (IF_LINT): Define.
4359 (trim2): Use it to avoid a "may be used uninitialized" warning.
4362 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
4364 2008-05-19 Bruno Haible <bruno@clisp.org>
4366 * doc/glibc-functions/getpass.texi: Document limits of other
4369 2008-05-19 Simon Josefsson <simon@josefsson.org>
4370 Bruno Haible <bruno@clisp.org>
4372 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
4374 2008-05-18 Bruno Haible <bruno@clisp.org>
4376 * modules/propername: New file, from GNU gettext.
4377 * lib/propername.h: New file, from GNU gettext.
4378 * lib/propername.c: New file, from GNU gettext.
4379 * MODULES.html.sh (Internationalization functions): Add propername.
4381 2008-05-16 Jim Meyering <meyering@redhat.com>
4382 Bruno Haible <bruno@clisp.org>
4384 Avoid some warnings from "gcc -Wshadow".
4385 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
4387 2008-05-15 Eric Blake <ebb9@byu.net>
4389 Extend previous patch to cygwin 1.7.0.
4390 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
4391 fast implementation in cygwin >= 1.7.0.
4392 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4393 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4395 2008-05-15 Bruno Haible <bruno@clisp.org>
4397 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
4398 implementation in glibc >= 2.9.
4399 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4400 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4402 2008-05-15 Bruno Haible <bruno@clisp.org>
4404 * MODULES.html.sh (Internationalization functions): Remove linebreak.
4405 (Unicode string functions): Add unilbrk/*.
4406 Reported by Karl Berry.
4408 2008-05-15 Eric Blake <ebb9@byu.net>
4410 Fix violation of <stdbool.h> replacement in regex.
4411 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
4412 * lib/regexec.c (re_search_internal): Likewise.
4413 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
4415 2008-05-15 Jim Meyering <meyering@redhat.com>
4417 avoid distracting test output when git or cvs is not found
4418 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
4419 * tests/test-vc-list-files-git.sh: Likewise.
4421 2008-05-15 Eric Blake <ebb9@byu.net>
4423 Glibc finally accepted the memmem speedup code, bugzilla #5514.
4424 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
4426 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
4427 * doc/posix-functions/strstr.texi (strstr): Likewise.
4428 * lib/str-two-way.h (MAX): Sychronize with glibc.
4430 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
4432 * lib/regcomp.c (optimize_utf8): Add a note on why we test
4434 (calc_first): Initialize constraint field.
4435 (duplicate_node_closure): Use it instead of special casing ANCHORS.
4437 (duplicate_node): Merge constraint field for all node types.
4438 (calc_eclosure_iter): Look at constraint field for all node types.
4439 * lib/regex_internal.c (create_cd_newstate): Don't look at
4442 2008-05-14 Bruno Haible <bruno@clisp.org>
4444 Help GCC to do better code generation.
4445 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
4446 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
4447 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
4448 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
4449 Declare with attribute 'malloc' if supported.
4451 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
4453 use "echo STR|wc -c" rather than unportable "expr length STR"
4454 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
4455 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
4457 2008-05-14 Jim Meyering <meyering@redhat.com>
4459 use dd ibs=$n count=1 ... rather than less-portable head -c$n
4460 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
4461 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
4462 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
4465 2008-05-14 Eric Blake <ebb9@byu.net>
4467 Avoid quadratic growth in gl_LIBSOURCES.
4468 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
4469 Suggested by Bruno Haible.
4472 * modules/xmemdup0-tests: New file.
4473 * tests/test-xmemdup0.c: Likewise.
4475 2008-05-13 Eric Blake <ebb9@byu.net>
4477 Split xmemdup0 into its own module.
4478 * modules/xmemdup0: New file.
4479 * lib/xmemdup0.h: Likewise.
4480 * lib/xmemdup0.c: Likewise.
4481 * MODULES.html.sh (Memory management functions): Add xmemdup0.
4482 * lib/xalloc.h (xmemdup0): Remove.
4483 * lib/xmalloc.c (xmemdup0): Likewise.
4485 2008-05-13 Eric Blake <ebb9@byu.net>
4486 Bruno Haible <bruno@clisp.org>
4488 Reduce number of forks required during autoconf.
4489 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
4490 and gl_LIBSOURCES_DIR.
4491 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
4492 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
4494 <m4_foreach_w>: Move...
4495 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
4497 2008-05-13 Eric Blake <ebb9@byu.net>
4499 * gnulib-tool: Fix various comment typos.
4501 2008-05-12 Bruno Haible <bruno@clisp.org>
4503 Tailor the linebreaking algorithm.
4504 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
4506 2008-05-12 Bruno Haible <bruno@clisp.org>
4508 Update to Unicode 5.0.0.
4509 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
4510 LBP_JV, LBP_JT. Redistribute values.
4511 (unilbrk_table): Change size.
4512 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
4513 Unicode TR#14 rev. 22.
4514 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
4515 LBP_JV, LBP_JT. Redistribute values.
4516 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
4517 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
4519 * lib/unilbrk/lbrkprop1.h: Regenerated.
4520 * lib/unilbrk/lbrkprop2.h: Regenerated.
4521 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
4522 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
4523 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
4525 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
4527 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
4529 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4530 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4531 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
4532 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
4533 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
4534 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
4536 2008-05-11 Bruno Haible <bruno@clisp.org>
4538 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
4540 2008-05-11 Bruno Haible <bruno@clisp.org>
4542 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
4543 * modules/unilbrk/gen-lbrk: New file.
4545 2008-05-11 Bruno Haible <bruno@clisp.org>
4547 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
4548 * m4/sha512.m4 (gl_SHA512): Likewise.
4550 2008-05-11 Jim Meyering <meyering@redhat.com>
4552 New modules: crypto/sha256, crypto/sha512 (from coreutils)
4553 * modules/crypto/sha256: New file.
4554 * modules/crypto/sha512: Likewise.
4555 * lib/sha256.c: Likewise.
4556 * lib/sha256.h: Likewise.
4557 * lib/sha512.c: Likewise.
4558 * lib/sha512.h: Likewise.
4559 * lib/u64.h: Likewise.
4560 * m4/sha256.m4: Likewise.
4561 * m4/sha512.m4: Likewise.
4562 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
4564 2008-05-10 Bruno Haible <bruno@clisp.org>
4566 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
4567 (Input/Output <stdio.h>): Add xprintf.
4568 (Signal handling <signal.h>): Add strsignal.
4569 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
4570 (Core language properties): Add func.
4571 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
4572 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
4574 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
4575 (Input/output): New section.
4576 (File system functions): Add openat-die, stat-macros.
4577 (Networking functions): Add sockets.
4578 (Unicode string functions): Add unictype/*.
4579 (Support for building libraries and executables): Add gperf.
4580 (Support for building documentation): Add agpl-3.0.
4581 (Misc): Add nocrash.
4583 2008-05-10 Bruno Haible <bruno@clisp.org>
4585 * modules/unictype/gen-ctype: New file.
4587 2008-05-10 Jim Meyering <meyering@redhat.com>
4589 Make chdir-safer.c more efficient on a system with no symlinks.
4590 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
4591 also if ELOOP is zero. Suggested by Bruno Haible.
4593 Make chdir-safer.c slightly safer.
4594 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
4595 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
4597 Avoid compile failure on systems without ELOOP (like mingw).
4598 * lib/chdir-safer.c (ELOOP): Define if not already defined.
4599 Reported by Bruno Haible.
4601 2008-05-10 Bruno Haible <bruno@clisp.org>
4603 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
4604 (is_utf8_encoding): Use a case-insensitive comparison.
4605 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
4608 2008-05-10 Bruno Haible <bruno@clisp.org>
4610 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
4611 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
4612 * lib/unilbrk/ulc-common.h (iconv_string_length,
4613 iconv_string_keeping_offsets): Remove declarations.
4614 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
4615 Don't include <iconv.h>, streq.h, xsize.h.
4616 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
4618 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
4619 <iconv.h>, streq.h, xsize.h.
4620 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
4622 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
4623 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
4624 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
4625 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
4627 2008-05-10 Bruno Haible <bruno@clisp.org>
4629 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
4630 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
4632 * modules/unilbrk/u32-width-linebreaks-tests: New file.
4633 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
4635 * modules/unilbrk/u16-width-linebreaks-tests: New file.
4636 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
4638 * modules/unilbrk/u8-width-linebreaks-tests: New file.
4639 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
4641 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
4642 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
4644 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
4645 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
4647 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
4648 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
4650 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
4651 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
4653 2008-05-10 Bruno Haible <bruno@clisp.org>
4655 Split up 'linebreak' module.
4656 * lib/unilbrk.h: New file, based on lib/linebreak.h.
4657 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
4658 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
4660 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
4661 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
4662 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
4664 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
4666 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
4668 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
4669 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
4670 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
4672 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
4674 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
4676 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
4678 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
4680 * modules/unilbrk/base: New file.
4681 * modules/unilbrk/tables: New file.
4682 * modules/unilbrk/u8-possible-linebreaks: New file.
4683 * modules/unilbrk/u16-possible-linebreaks: New file.
4684 * modules/unilbrk/u32-possible-linebreaks: New file.
4685 * modules/unilbrk/ulc-common: New file.
4686 * modules/unilbrk/ulc-possible-linebreaks: New file.
4687 * modules/unilbrk/u8-width-linebreaks: New file.
4688 * modules/unilbrk/u16-width-linebreaks: New file.
4689 * modules/unilbrk/u32-width-linebreaks: New file.
4690 * modules/unilbrk/ulc-width-linebreaks: New file.
4691 * lib/linebreak.h: Remove file.
4692 * lib/linebreak.c: Remove file.
4693 * m4/linebreak.m4: Remove file.
4694 * modules/linebreak: Remove file.
4695 * NEWS: Mention the changes.
4697 2008-05-09 Eric Blake <ebb9@byu.net>
4700 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
4702 * lib/xmalloc.c (xmemdup0): New C implementation.
4704 2008-05-08 Bruno Haible <bruno@clisp.org>
4706 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
4708 2008-05-07 Eric Blake <ebb9@byu.net>
4710 Support cross-compilation of <wctype.h>.
4711 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
4714 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
4716 * build-aux/vc-list-files: Add support for bzr.
4718 2008-05-03 Jim Meyering <meyering@redhat.com>
4720 avoid failed assertion with tight malloc
4721 * tests/test-getndelim2.c: Correct an off-by-one assertion.
4723 2008-05-03 Simon Josefsson <simon@josefsson.org>
4725 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
4726 are needed from arpa/inet.h.
4727 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
4728 Reported by Bruno Haible.
4730 2008-05-02 Jim Meyering <meyering@redhat.com>
4732 avoid compilation error on FreeBSD 6
4733 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
4735 2008-05-01 Jim Meyering <meyering@redhat.com>
4737 useless-if-before-free: correct --help's exit status description
4738 * build-aux/useless-if-before-free (usage): Like grep, exit 0
4739 for one or more matches, etc. Reported by Bruno Haible.
4741 vc-list-files: make the stand-alone gnulib test work
4742 * modules/vc-list-files-tests (configure.ac):
4743 Define and AC_SUBST abs_aux_dir.
4744 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
4745 $(abs_top_srcdir) to each script and having each of them
4746 duplicate the work of setting PATH, set PATH here, using
4747 the new variable, abs_aux_dir instead.
4748 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
4749 * tests/test-vc-list-files-git.sh: Likewise.
4750 Reported by Bruno Haible.
4752 2008-05-01 Bruno Haible <bruno@clisp.org>
4754 * lib/getndelim2.c (getndelim2): Fix newsize computation during
4755 reallocation. Rename 'done' to 'found_delimiter'.
4757 2008-05-01 Jim Meyering <meyering@redhat.com>
4759 vc-list-files: accommodate /bin/sh like the one from Solaris 10
4760 * build-aux/vc-list-files: Use `...`, not $(...).
4762 2008-04-30 Jim Meyering <meyering@redhat.com>
4764 add tests for vc-list-files
4765 * modules/vc-list-files-tests: New module.
4766 * tests/test-vc-list-files-cvs.sh: New file.
4767 * tests/test-vc-list-files-git.sh: New file.
4769 avoid a warning from gcc
4770 * lib/getndelim2.c (IF_LINT): Define.
4771 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
4773 vc-list-files: work properly with build-aux/cvsu, too
4774 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
4775 to all cvs-based clauses.
4777 vc-list-files: work properly in the CVS+awk case, too
4778 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
4780 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
4781 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
4782 take more than one file argument, so . Add quotes, just in case $dir
4783 ever contains a shell meta-character. Prompted by Soren Hansen in
4784 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
4786 2008-04-29 Eric Blake <ebb9@byu.net>
4788 Optimize getndelim2 to use block operations when possible.
4789 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
4790 freadseek, and memchr2.
4791 * lib/getndelim2.c (getndelim2): Use them for block reads.
4793 2008-04-29 Bruno Haible <bruno@clisp.org>
4795 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
4796 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4797 * modules/inet_ntop (Depends-on): Add extensions.
4798 * modules/inet_pton (Depends-on): Likewise.
4799 Reported by Simon Josefsson.
4801 2008-04-29 Jim Meyering <meyering@redhat.com>
4803 When the is more than one match in a block, match all of them.
4804 * build-aux/useless-if-before-free: Iterate through each block
4805 until there are no more matches.
4807 Fix broken useless-if-before-free script.
4808 * build-aux/useless-if-before-free: Fix typo: missing "?" after
4809 the expression to match cast of argument to free-like function.
4811 2008-04-29 Eric Blake <ebb9@byu.net>
4814 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
4816 2008-04-29 Jim Meyering <meyering@redhat.com>
4818 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
4819 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
4820 by gnulib to exist and to declare e.g., inet_ntop.
4821 Don't include "inet_ntop.h", now removed.
4823 * m4/arpa_inet_h.m4: Remove trailing blanks.
4825 2008-04-29 Eric Blake <ebb9@byu.net>
4827 Silence valgrind on safe reads beyond potential array bounds.
4828 * lib/rawmemchr.valgrind: New file.
4829 * lib/strchrnul.valgrind: Likewise.
4830 * modules/rawmemchr (Files): Distribute new file.
4831 * modules/strchrnul (Files): Likewise.
4832 Suggested by Bruno Haible.
4834 2008-04-29 Bruno Haible <bruno@clisp.org>
4836 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
4837 (inet_ntop, inet_pton): Change portability warning's wording.
4838 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
4839 Invoke gl_CHECK_NEXT_HEADERS.
4840 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
4841 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
4843 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4844 * modules/arpa_inet (Description): No longer only for systems that
4846 (Depends-on): Add include_next.
4847 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
4850 2008-04-29 Jim Meyering <meyering@redhat.com>
4852 * modules/mkdir (License): Re-license as LGPLv2+.
4854 2008-04-29 Bruno Haible <bruno@clisp.org>
4856 * modules/rawmemchr (Maintainer): Set to Eric.
4857 * modules/strchrnul (Maintainer): Likewise.
4859 2008-04-29 Simon Josefsson <simon@josefsson.org>
4861 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
4862 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
4864 * modules/arpa_inet (arpa/inet.h): Use them.
4866 2008-04-28 Eric Blake <ebb9@byu.net>
4869 * modules/getndelim2-tests: New file.
4870 * tests/test-getndelim2.c: Likewise.
4871 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
4873 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
4875 * MODULES.html.sh: Document new module.
4877 2008-04-20 Bruno Haible <bruno@clisp.org>
4879 * lib/c-stack.c (die): Use raise.
4880 * modules/c-stack (Depends-on): Add raise.
4882 2008-04-28 Bruno Haible <bruno@clisp.org>
4884 Expect rpmatch to be declared.
4885 * lib/yesno.c (rpmatch): Remove declaration.
4888 * lib/stdlib.in.h (rpmatch): New declaration.
4889 * lib/rpmatch.c: Include <stdlib.h> first.
4890 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
4891 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
4892 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
4894 * modules/rpmatch (Depends-on): Add stdlib, extensions.
4895 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4896 (Include): Set to <stdlib.h>.
4897 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
4899 * NEWS: Document the change.
4901 2008-04-28 Bruno Haible <bruno@clisp.org>
4903 Change rpmatch to use nl_langinfo when appropriate.
4904 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
4906 (localized_pattern): New function/macro.
4907 (try): Remove match, nomatch arguments. Copy the pattern into safe
4908 memory before caching it.
4909 (rpmatch): Use localized_pattern. Add translator comments.
4910 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
4911 Suggested by Eric Blake.
4912 * modules/rpmatch (Depends-on): Add stdbool.
4914 2008-04-28 Eric Blake <ebb9@byu.net>
4916 Add rawmemchr module, matching glibc.
4917 * modules/string (Makefile.am): New indicator.
4918 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
4919 * lib/string.in.h (rawmemchr): Declare when appropriate.
4920 * modules/rawmemchr: New file.
4921 * m4/rawmemchr.m4: Likewise.
4922 * lib/rawmemchr.c: Likewise.
4923 * modules/rawmemchr-tests: Likewise.
4924 * tests/test-rawmemchr.c: Likewise.
4925 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
4927 * modules/strchrnul (Depends-on): Add rawmemchr.
4928 * lib/strchrnul.c (strchrnul): Optimize a corner case.
4931 * tests/test-strchrnul.c: Reindent.
4932 * lib/strchrnul.c: Likewise.
4934 Optimize and test strchrnul.
4935 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
4936 * modules/strchrnul-tests: New file.
4937 * tests/test-strchrnul.c: Likewise.
4939 Remove intprops dependency.
4940 * modules/memchr (Depends-on): Remove intprops.
4941 * modules/memrchr (Depends-on): Likewise.
4942 * modules/memchr2 (Depends-on): Likewise.
4943 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
4944 * lib/memrchr.c (__memrchr): Likewise.
4945 * lib/memrchr2.c (memchr2): Likewise.
4946 Reported by Simon Josefsson.
4948 2008-04-28 Simon Josefsson <simon@josefsson.org>
4950 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
4951 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4953 2008-04-28 Simon Josefsson <simon@josefsson.org>
4955 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
4957 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
4959 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
4961 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
4963 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
4965 * m4/inet_pton.m4: Don't check for header files.
4967 * m4/inet_ntop.m4: Don't check for header files.
4969 2008-04-28 Simon Josefsson <simon@josefsson.org>
4971 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
4972 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
4973 trigger for cygwin).
4974 Reported by Bruno Haible <bruno@clisp.org>.
4976 2008-04-28 Bruno Haible <bruno@clisp.org>
4978 * doc/posix-functions/strdup.texi: Mention mingw problem.
4980 2008-04-27 Bruno Haible <bruno@clisp.org>
4982 * modules/stat-time-tests (Depends-on): Add sleep.
4983 * tests/test-stat-time.c (force_unlink): New function.
4985 (test_mtime): Remove the ctime related tests.
4986 (test_ctime): New function, containing the ctime related tests.
4987 (main): Call test_ctime, except on native Windows platforms.
4989 2008-04-27 Bruno Haible <bruno@clisp.org>
4991 * lib/rpmatch.c (rpmatch): Add some comments.
4992 Reported by James Youngman <jay@gnu.org>.
4994 2008-04-27 Bruno Haible <bruno@clisp.org>
4996 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
4999 2008-04-27 Bruno Haible <bruno@clisp.org>
5001 Make test-yesno.sh work on mingw.
5002 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
5003 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
5004 (main): Set stdin to binary mode.
5005 * modules/yesno-tests (Depends-on): Add binary-io.
5007 2008-04-27 Bruno Haible <bruno@clisp.org>
5009 Fix 'isfinite' on x86, x86_64, ia64 platforms.
5010 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
5011 argument that lie outside the IEEE 854 domain.
5012 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
5013 (gl_ISFINITE): Use it.
5014 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
5016 2008-04-27 Bruno Haible <bruno@clisp.org>
5018 Allow local renaming in config.h.
5019 * lib/memrchr.c (memrchr): Don't undefine outside libc.
5021 2008-04-27 Bruno Haible <bruno@clisp.org>
5023 * lib/memchr.c (__memchr): Change type of 'i'.
5024 * lib/memchr2.c (memchr2): Likewise.
5026 2008-04-26 Eric Blake <ebb9@byu.net>
5027 and Bruno Haible <bruno@clisp.org>
5029 Optimize and test memrchr.
5030 * modules/memrchr (Depends-on): Add intprops.
5031 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
5032 * modules/memrchr-tests: New file.
5033 * tests/test-memrchr.c: New file.
5035 2008-04-26 Bruno Haible <bruno@clisp.org>
5037 Add tentative support for DragonFly BSD.
5038 * lib/stdio-impl.h: Add macros for DragonFly BSD.
5039 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
5041 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
5042 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
5043 * lib/fpurge.c (fpurge): Likewise.
5044 * lib/freadable.c (freaadable): Likewise.
5045 * lib/freadahead.c (freadahead): Likewise.
5046 * lib/freading.c (freading): Likewise.
5047 * lib/freadptr.c (freadptr): Likewise.
5048 * lib/freadseek.c (freadptrinc): Likewise.
5049 * lib/fseeko.c (fseeko): Likewise.
5050 * lib/fseterr.c (fseterr): Likewise.
5051 * lib/fwritable.c (fwritable): Likewise.
5052 * lib/fwriting.c (fwriting): Likewise.
5054 2008-04-26 Bruno Haible <bruno@clisp.org>
5056 * lib/stdio-impl.h: New file.
5057 * lib/fbufmode.c: Include stdio-impl.h.
5058 (fbufmode): Use fp_, remove redundant #defines.
5059 * lib/fflush.c: Include stdio-impl.h.
5060 (clear_ungetc_buffer): Remove redundant #defines.
5061 * lib/fpurge.c: Include stdio-impl.h.
5062 (fpurge): Remove redundant #defines.
5063 * lib/freadable.c: Include stdio-impl.h.
5064 (freadable): Remove redundant #defines.
5065 * lib/freadahead.c: Include stdio-impl.h.
5066 (freadahead): Remove redundant #defines.
5067 * lib/freading.c: Include stdio-impl.h.
5068 (freading): Remove redundant #defines.
5069 * lib/freadptr.c: Include stdio-impl.h.
5070 (freadptr): Remove redundant #defines.
5071 * lib/freadseek.c: Include stdio-impl.h.
5072 (freadptrinc): Remove redundant #defines.
5073 * lib/fseeko.c: Include stdio-impl.h.
5074 (rpl_fseeko): Remove redundant #defines.
5075 * lib/fseterr.c: Include stdio-impl.h.
5076 (fseterr): Remove redundant #defines.
5077 * lib/fwritable.c: Include stdio-impl.h.
5078 (fwritable: Remove redundant #defines.
5079 * lib/fwriting.c: Include stdio-impl.h.
5080 (fwriting): Remove redundant #defines.
5081 * modules/fbufmode (Files): Add lib/stdio-impl.h.
5082 * modules/fflush (Files): Likewise.
5083 * modules/fpurge (Files): Likewise.
5084 * modules/freadable (Files): Likewise.
5085 * modules/freadahead (Files): Likewise.
5086 * modules/freading (Files): Likewise.
5087 * modules/freadptr (Files): Likewise.
5088 * modules/freadseek (Files): Likewise.
5089 * modules/fseeko (Files): Likewise.
5090 * modules/fseterr (Files): Likewise.
5091 * modules/fwritable (Files): Likewise.
5092 * modules/fwriting (Files): Likewise.
5094 2008-04-26 Bruno Haible <bruno@clisp.org>
5096 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
5097 restore_seek_optimization, update_fpos_cache): New functions, extracted
5099 (rpl_fflush): Use them.
5100 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
5101 (gl_REPLACE_FFLUSH): Use it.
5103 2008-04-26 Bruno Haible <bruno@clisp.org>
5105 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
5107 * tests/test-xstrtoimax.sh: Likewise.
5108 * tests/test-xstrtoumax.sh: Likewise.
5109 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5111 2008-04-26 Bruno Haible <bruno@clisp.org>
5113 * modules/memchr-tests: New file.
5114 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
5116 2008-04-26 Eric Blake <ebb9@byu.net>
5117 Bruno Haible <bruno@clisp.org>
5119 * lib/memchr.c: Include intprops.h.
5120 (__memchr): Optimize parallel detection of matching bytes. Rename local
5121 variables. Add explanatory comments.
5123 2008-04-26 Bruno Haible <bruno@clisp.org>
5125 Fix module 'memchr', broken since 2000-10-28.
5126 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
5128 2008-04-26 Bruno Haible <bruno@clisp.org>
5130 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
5133 2008-04-25 Eric Blake <ebb9@byu.net>
5135 Use native fstatat on cygwin 1.7.0.
5136 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
5139 2008-04-23 Eric Blake <ebb9@byu.net>
5141 Improve memchr2 performance.
5142 * lib/memchr2.c (memchr2): Further optimize parallel detection of
5144 * modules/memchr2 (Depends-on): Use intprops.h.
5146 2008-04-23 Simon Josefsson <simon@josefsson.org>
5148 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
5149 an inline function instead of a CPP macro. Patch by Ben Pfaff
5150 <blp@cs.stanford.edu>.
5152 2008-04-23 Simon Josefsson <simon@josefsson.org>
5154 * lib/arpa_inet.in.h: New file.
5156 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
5157 (Makefile.am): Sed in substitute header file.
5159 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
5160 gl_ARPA_INET_MODULE_INDICATOR. Use them.
5162 * modules/inet_ntop (configure.ac): Use
5163 gl_ARPA_INET_MODULE_INDICATOR.
5165 * modules/inet_pton (configure.ac): Use
5166 gl_ARPA_INET_MODULE_INDICATOR.
5168 2008-04-22 Jim Meyering <meyering@redhat.com>
5170 * modules/verify (License): Re-license as LGPLv2+.
5172 2008-04-22 Simon Josefsson <simon@josefsson.org>
5174 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
5175 parameter to void* as per POSIX standard (MinGW uses char*).
5177 2008-04-21 Bruno Haible <bruno@clisp.org>
5179 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5180 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
5181 Define to replacements if REPLACE_ISWCNTRL is 1.
5182 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
5183 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
5184 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
5185 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
5187 * doc/posix-functions/iswalpha.texi: Likewise.
5188 * doc/posix-functions/iswblank.texi: Likewise.
5189 * doc/posix-functions/iswcntrl.texi: Likewise.
5190 * doc/posix-functions/iswdigit.texi: Likewise.
5191 * doc/posix-functions/iswgraph.texi: Likewise.
5192 * doc/posix-functions/iswlower.texi: Likewise.
5193 * doc/posix-functions/iswprint.texi: Likewise.
5194 * doc/posix-functions/iswpunct.texi: Likewise.
5195 * doc/posix-functions/iswspace.texi: Likewise.
5196 * doc/posix-functions/iswupper.texi: Likewise.
5197 * doc/posix-functions/iswxdigit.texi: Likewise.
5198 Reported by Alain Guibert.
5200 2008-04-21 Bruno Haible <bruno@clisp.org>
5202 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
5203 Patch by Alain Guibert.
5205 2008-04-21 Bruno Haible <bruno@clisp.org>
5207 Fix test failures on mingw.
5208 * tests/test-xstrtol.c (print_no_progname): New function.
5209 (main): Install it in error_print_progname hook.
5210 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
5211 * tests/test-xstrtoimax.sh: Likewise.
5212 * tests/test-xstrtoumax.sh: Likewise.
5214 2008-04-21 Bruno Haible <bruno@clisp.org>
5216 Fix test failure on mingw.
5217 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
5219 2008-04-21 Bruno Haible <bruno@clisp.org>
5221 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
5222 Actually assign a value.
5224 2008-04-20 Bruno Haible <bruno@clisp.org>
5226 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
5228 * lib/canonicalize.c (canonicalize_file_name): Elide if the
5229 'canonicalize-lgpl' module is also used.
5230 * lib/canonicalize-lgpl.c: Undo last change.
5231 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
5233 2008-04-20 Bruno Haible <bruno@clisp.org>
5235 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
5236 config.h. Provide _mkdir based fallback for mingw.
5237 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
5238 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
5239 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
5240 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
5241 rather than defining mkdir in config.h.
5242 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
5243 (gl_SYS_STAT_H_DEFAULTS): New macro.
5244 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
5246 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
5247 HAVE_DECL_MKDIR and HAVE_IO_H.
5249 2008-04-20 Bruno Haible <bruno@clisp.org>
5251 * lib/isapipe.c: Port to native Windows platforms.
5253 2008-04-20 Bruno Haible <bruno@clisp.org>
5255 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
5257 2008-04-21 Eric Blake <ebb9@byu.net>
5259 Work around preprocessors that don't handle UINTMAX_MAX.
5260 * lib/memchr2.c (memchr2): Avoid embedded #if.
5261 Reported by Alain Guibert, fix suggested by Bruno Haible.
5263 2008-04-21 Simon Josefsson <simon@josefsson.org>
5265 * doc/posix-functions/strftime.texi (strftime): Explain better
5266 Windows incompatibility. Suggested by Micah Cowan
5269 2008-04-20 Bruno Haible <bruno@clisp.org>
5271 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
5274 2008-04-20 Bruno Haible <bruno@clisp.org>
5276 Fix test failure on platforms with non-GNU iconv.
5277 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
5278 (U_TO_U8): Use it, rather than u16_to_u8.
5279 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
5280 units at the end of the input string.
5281 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
5283 2008-04-20 Bruno Haible <bruno@clisp.org>
5285 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
5286 when the resulting length is 0.
5287 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
5289 2008-04-20 Bruno Haible <bruno@clisp.org>
5291 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
5293 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
5295 2008-04-20 Bruno Haible <bruno@clisp.org>
5297 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
5298 * modules/tsearch-tests (configure.ac): Test for initstate function.
5300 2008-04-20 Bruno Haible <bruno@clisp.org>
5302 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
5303 for nlink_t if missing.
5304 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
5306 2008-04-19 Bruno Haible <bruno@clisp.org>
5308 Work around snprintf bug on Linux libc5.
5309 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
5310 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
5312 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5313 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
5315 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5316 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
5317 * modules/snprintf (Files): Add m4/printf.m4.
5318 * modules/vsnprintf (Files): Likewise.
5319 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
5320 * doc/posix-functions/vsnprintf.texi: Likewise.
5322 2008-04-19 Bruno Haible <bruno@clisp.org>
5324 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
5325 from 0.0058 to less than 10^-7.
5327 2008-04-19 Bruno Haible <bruno@clisp.org>
5329 Fix rounding when a precision is given.
5330 * lib/vasnprintf.c (is_borderline): New function.
5331 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
5333 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
5335 * tests/test-vasprintf-posix.c (test_function): Likewise.
5336 * tests/test-snprintf-posix.h (test_function): Likewise.
5337 * tests/test-sprintf-posix.h (test_function): Likewise.
5338 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
5339 * tests/test-printf-posix.h (test_function): Likewise.
5340 * tests/test-printf-posix.output: Update.
5341 Reported by John Darrington <john@darrington.wattle.id.au> via
5342 Ben Pfaff <blp@cs.stanford.edu>.
5344 2008-04-18 Simon Josefsson <simon@josefsson.org>
5346 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
5347 Suggested by Bruno Haible <bruno@clisp.org>.
5349 2008-04-17 Bruno Haible <bruno@clisp.org>
5351 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
5352 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
5354 Patch by Bruce Merry <bmerry@gmail.com>.
5356 2008-04-17 Simon Josefsson <simon@josefsson.org>
5358 * doc/posix-functions/strftime.texi (strftime): Mention that %e
5359 doesn't work under Windows.
5361 2008-04-16 Bruno Haible <bruno@clisp.org>
5363 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
5365 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
5366 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
5367 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
5368 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
5369 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
5370 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
5371 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
5373 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
5374 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
5375 Northern Sotho, Uighur.
5377 2008-04-16 Bruno Haible <bruno@clisp.org>
5379 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
5380 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
5381 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
5382 Reported by Daniel Bergström <daniel@octocode.com>.
5384 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
5385 Bruno Haible <bruno@clisp.org>
5387 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
5389 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
5390 New functions, mostly extracted from gl_locale_name_default.
5391 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
5393 2008-04-16 Eric Blake <ebb9@byu.net>
5395 Adjust strtod detection to catch glibc 2.7 bug.
5396 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
5397 Reported by John Gatewood Ham.
5399 2008-04-16 Bruno Haible <bruno@clisp.org>
5401 Add tentative support for Linux libc5.
5402 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
5403 * lib/fpurge.c (fpurge): Likewise.
5404 * lib/freadable.c (freadable): Likewise.
5405 * lib/freadahead.c (freadahead): Likewise.
5406 * lib/freading.c (freading): Likewise.
5407 * lib/freadptr.c (freadptr): Likewise.
5408 * lib/freadseek.c (freadptrinc): Likewise.
5409 * lib/fseeko.c (rpl_fseeko): Likewise.
5410 * lib/fseterr.c (fseterr): Likewise.
5411 * lib/fwritable.c (fwritable): Likewise.
5412 * lib/fwriting.c (fwriting): Likewise.
5413 Reported by Alain Guibert <alguibert+bts@free.fr>.
5415 2008-04-15 Bruno Haible <bruno@clisp.org>
5417 * modules/mathl (configure.ac): Define module indicator.
5419 2008-04-15 Bruno Haible <bruno@clisp.org>
5421 * lib/logl.c (logl): Remove unused variables.
5423 2008-04-15 Bruno Haible <bruno@clisp.org>
5425 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
5428 2008-04-15 Bruno Haible <bruno@clisp.org>
5430 * lib/trim.c (trim2): Fix argument of isspace() macro.
5432 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
5434 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
5436 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
5438 2008-04-14 Bruno Haible <bruno@clisp.org>
5440 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
5441 AC_LANG_PROGRAM argument.
5442 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
5443 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
5444 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
5445 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
5446 * m4/math_h.m4 (gl_MATH_H): Likewise.
5447 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
5448 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5449 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
5450 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
5451 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
5452 * m4/regex.m4 (gl_REGEX): Likewise.
5453 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
5454 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
5455 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5456 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
5457 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
5458 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5459 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5460 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
5462 2008-04-14 Jim Meyering <meyering@redhat.com>
5464 test-strtod: fix typos: s/abs/fabs/
5465 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
5467 2008-04-13 Bruno Haible <bruno@clisp.org>
5469 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
5470 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
5471 module is also used and while not building the reloc-wrapper.
5473 2008-04-13 Bruno Haible <bruno@clisp.org>
5475 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
5477 2008-04-13 Bruno Haible <bruno@clisp.org>
5479 Fix AIX compilation failure introduced on 2008-04-02.
5480 * tests/test-frexp.c (exp): Undefine before redefining.
5481 * tests/test-frexpl.c (exp): Likewise.
5483 2008-04-13 Bruno Haible <bruno@clisp.org>
5485 Work around a HP-UX stdio bug.
5486 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
5487 * tests/test-ftello.c (main): Likewise.
5488 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
5489 * doc/posix-functions/ftello.texi: Likewise.
5491 2008-04-13 Bruno Haible <bruno@clisp.org>
5493 Make test-signbit pass on HP-UX/hppa.
5494 * tests/test-signbit.c (minus_zerol): New variable.
5495 (test_signbitl): Use it.
5497 2008-04-13 Bruno Haible <bruno@clisp.org>
5499 Make truncl work on OSF/1 4.0.
5500 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
5501 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
5502 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
5503 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
5505 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
5507 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
5509 2008-04-13 Bruno Haible <bruno@clisp.org>
5511 * lib/unictype.h: Remove trailing comma from enumeration definitions.
5513 2008-04-13 Bruno Haible <bruno@clisp.org>
5515 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
5516 expression, so as to avoid HP-UX 11 cc compiler bug.
5518 2008-04-13 Bruno Haible <bruno@clisp.org>
5520 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
5522 2008-04-13 Bruno Haible <bruno@clisp.org>
5524 * lib/git-merge-changelog.c: Remove empty declaration outside of
5527 2008-04-13 Bruno Haible <bruno@clisp.org>
5529 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
5531 2008-04-13 Bruno Haible <bruno@clisp.org>
5533 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
5534 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
5535 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
5536 also if it exists but lacks definitions of the SHUT_* macros.
5537 * modules/sys_socket (Description): Update.
5538 Reported by Elbert Pol <e.pol@chello.nl>.
5540 2008-04-13 Bruno Haible <bruno@clisp.org>
5542 * lib/localcharset.c (OS2): Don't redefine if already defined.
5543 Reported by Elbert Pol <e.pol@chello.nl>.
5545 2008-04-13 Bruno Haible <bruno@clisp.org>
5547 * lib/binary-io.h [__EMX__]: Include <io.h>.
5548 Reported by Elbert Pol <e.pol@chello.nl>.
5550 2008-04-12 Bruno Haible <bruno@clisp.org>
5552 * lib/fpucw.h: Enable the definitions also for x86_64.
5553 Needed for NetBSD/x86_64.
5554 Reported by Thomas Klausner <tk@giga.or.at>.
5556 2008-04-12 Bruno Haible <bruno@clisp.org>
5558 * tests/test-strtod.c: Include isnand.h.
5559 (main): Use isnand instead of isnan.
5560 Reported by Jim Meyering.
5562 2008-04-12 Bruno Haible <bruno@clisp.org>
5564 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
5565 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5567 2008-04-12 Jim Meyering <meyering@redhat.com>
5569 * m4/math_h.m4 (gl_MATH_H): Fix typos.
5571 2008-04-12 Bruno Haible <bruno@clisp.org>
5573 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
5574 Reported by Elbert Pol <e.pol@chello.nl>.
5576 2008-04-12 Eric Blake <ebb9@byu.net>
5578 Work around Solaris 10 math.h bug.
5579 * m4/math_h.m4 (gl_MATH_H): Check for bug.
5580 (gl_MATH_H_DEFAULTS): Set up default.
5581 * modules/math (Makefile.am): Replace new indicators.
5582 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
5583 * tests/test-math.c (main): Test this.
5584 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
5585 * doc/posix-headers/math.texi (math.h): Mention bug.
5586 Reported by Nelson H. F. Beebe and Jim Meyering.
5588 2008-04-11 Bruno Haible <bruno@clisp.org>
5590 Adapt to future versions of Apple GCC.
5591 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
5592 Reported by Peter O'Gorman <peter@pogma.com>.
5594 2008-04-11 Bruno Haible <bruno@clisp.org>
5596 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
5598 2008-04-11 Bruno Haible <bruno@clisp.org>
5600 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
5602 * modules/getaddrinfo-tests (Makefile.am): Define
5603 test_getaddrinfo_LDADD.
5605 2008-04-11 Bruno Haible <bruno@clisp.org>
5607 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
5608 (init): Fix syntax error.
5609 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
5612 2008-04-11 Bruno Haible <bruno@clisp.org>
5614 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
5615 * modules/glob (Depends-on): Add stdbool.
5617 2008-04-11 Bruno Haible <bruno@clisp.org>
5619 * lib/trim.c: Include <string.h>.
5621 2008-04-11 Eric Blake <ebb9@byu.net>
5623 Avoid compile failure on OS/2.
5624 * lib/regex_internal.h (internal_function): Disable optimization
5625 on OS/2 (__EMX__), where it caused compiler error.
5626 Reported by Elbert Pol.
5628 2008-04-11 Bruno Haible <bruno@clisp.org>
5630 Flush the standard error stream before aborting. Needed on mingw.
5631 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
5632 * tests/test-array_list.c (ASSERT): Likewise.
5633 * tests/test-array_oset.c (ASSERT): Likewise.
5634 * tests/test-avltree_list.c (ASSERT): Likewise.
5635 * tests/test-avltree_oset.c (ASSERT): Likewise.
5636 * tests/test-avltreehash_list.c (ASSERT): Likewise.
5637 * tests/test-binary-io.c (ASSERT): Likewise.
5638 * tests/test-byteswap.c (ASSERT): Likewise.
5639 * tests/test-c-ctype.c (ASSERT): Likewise.
5640 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
5641 * tests/test-c-strcasestr.c (ASSERT): Likewise.
5642 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
5643 * tests/test-c-strstr.c (ASSERT): Likewise.
5644 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
5645 * tests/test-canonicalize.c (ASSERT): Likewise.
5646 * tests/test-carray_list.c (ASSERT): Likewise.
5647 * tests/test-ceilf1.c (ASSERT): Likewise.
5648 * tests/test-ceilf2.c (ASSERT): Likewise.
5649 * tests/test-ceill.c (ASSERT): Likewise.
5650 * tests/test-count-one-bits.c (ASSERT): Likewise.
5651 * tests/test-fbufmode.c (ASSERT): Likewise.
5652 * tests/test-fflush2.c (ASSERT): Likewise.
5653 * tests/test-floorf1.c (ASSERT): Likewise.
5654 * tests/test-floorf2.c (ASSERT): Likewise.
5655 * tests/test-floorl.c (ASSERT): Likewise.
5656 * tests/test-fopen.c (ASSERT): Likewise.
5657 * tests/test-fpending.c (ASSERT): Likewise.
5658 * tests/test-fprintf-posix.c (ASSERT): Likewise.
5659 * tests/test-fpurge.c (ASSERT): Likewise.
5660 * tests/test-freadable.c (ASSERT): Likewise.
5661 * tests/test-freadahead.c (ASSERT): Likewise.
5662 * tests/test-freading.c (ASSERT): Likewise.
5663 * tests/test-freadptr.c (ASSERT): Likewise.
5664 * tests/test-freadptr2.c (ASSERT): Likewise.
5665 * tests/test-freadseek.c (ASSERT): Likewise.
5666 * tests/test-freopen.c (ASSERT): Likewise.
5667 * tests/test-frexp.c (ASSERT): Likewise.
5668 * tests/test-frexpl.c (ASSERT): Likewise.
5669 * tests/test-fseek.c (ASSERT): Likewise.
5670 * tests/test-fseeko.c (ASSERT): Likewise.
5671 * tests/test-fstrcmp.c (ASSERT): Likewise.
5672 * tests/test-ftell.c (ASSERT): Likewise.
5673 * tests/test-ftello.c (ASSERT): Likewise.
5674 * tests/test-func.c (ASSERT): Likewise.
5675 * tests/test-fwritable.c (ASSERT): Likewise.
5676 * tests/test-fwriting.c (ASSERT): Likewise.
5677 * tests/test-getdelim.c (ASSERT): Likewise.
5678 * tests/test-getline.c (ASSERT): Likewise.
5679 * tests/test-i-ring.c (ASSERT): Likewise.
5680 * tests/test-iconv-utf.c (ASSERT): Likewise.
5681 * tests/test-iconv.c (ASSERT): Likewise.
5682 * tests/test-isfinite.c (ASSERT): Likewise.
5683 * tests/test-isnand.c (ASSERT): Likewise.
5684 * tests/test-isnanf.c (ASSERT): Likewise.
5685 * tests/test-isnanl.h (ASSERT): Likewise.
5686 * tests/test-ldexpl.c (ASSERT): Likewise.
5687 * tests/test-linked_list.c (ASSERT): Likewise.
5688 * tests/test-linkedhash_list.c (ASSERT): Likewise.
5689 * tests/test-localename.c (ASSERT): Likewise.
5690 * tests/test-lseek.c (ASSERT): Likewise.
5691 * tests/test-mbscasecmp.c (ASSERT): Likewise.
5692 * tests/test-mbscasestr1.c (ASSERT): Likewise.
5693 * tests/test-mbscasestr2.c (ASSERT): Likewise.
5694 * tests/test-mbscasestr3.c (ASSERT): Likewise.
5695 * tests/test-mbscasestr4.c (ASSERT): Likewise.
5696 * tests/test-mbschr.c (ASSERT): Likewise.
5697 * tests/test-mbscspn.c (ASSERT): Likewise.
5698 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
5699 * tests/test-mbspbrk.c (ASSERT): Likewise.
5700 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
5701 * tests/test-mbsrchr.c (ASSERT): Likewise.
5702 * tests/test-mbsspn.c (ASSERT): Likewise.
5703 * tests/test-mbsstr1.c (ASSERT): Likewise.
5704 * tests/test-mbsstr2.c (ASSERT): Likewise.
5705 * tests/test-mbsstr3.c (ASSERT): Likewise.
5706 * tests/test-memchr2.c (ASSERT): Likewise.
5707 * tests/test-memmem.c (ASSERT): Likewise.
5708 * tests/test-open.c (ASSERT): Likewise.
5709 * tests/test-printf-frexp.c (ASSERT): Likewise.
5710 * tests/test-printf-frexpl.c (ASSERT): Likewise.
5711 * tests/test-printf-posix.c (ASSERT): Likewise.
5712 * tests/test-quotearg.c (ASSERT): Likewise.
5713 * tests/test-rbtree_list.c (ASSERT): Likewise.
5714 * tests/test-rbtree_oset.c (ASSERT): Likewise.
5715 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
5716 * tests/test-round1.c (ASSERT): Likewise.
5717 * tests/test-roundf1.c (ASSERT): Likewise.
5718 * tests/test-roundl.c (ASSERT): Likewise.
5719 * tests/test-signbit.c (ASSERT): Likewise.
5720 * tests/test-sleep.c (ASSERT): Likewise.
5721 * tests/test-snprintf-posix.c (ASSERT): Likewise.
5722 * tests/test-snprintf.c (ASSERT): Likewise.
5723 * tests/test-sprintf-posix.c (ASSERT): Likewise.
5724 * tests/test-stat-time.c (ASSERT): Likewise.
5725 * tests/test-strcasestr.c (ASSERT): Likewise.
5726 * tests/test-strerror.c (ASSERT): Likewise.
5727 * tests/test-striconv.c (ASSERT): Likewise.
5728 * tests/test-striconveh.c (ASSERT): Likewise.
5729 * tests/test-striconveha.c (ASSERT): Likewise.
5730 * tests/test-strsignal.c (ASSERT): Likewise.
5731 * tests/test-strstr.c (ASSERT): Likewise.
5732 * tests/test-strtod.c (ASSERT): Likewise.
5733 * tests/test-trunc1.c (ASSERT): Likewise.
5734 * tests/test-trunc2.c (ASSERT): Likewise.
5735 * tests/test-truncf1.c (ASSERT): Likewise.
5736 * tests/test-truncf2.c (ASSERT): Likewise.
5737 * tests/test-truncl.c (ASSERT): Likewise.
5738 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
5739 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
5740 * tests/test-vasnprintf.c (ASSERT): Likewise.
5741 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
5742 * tests/test-vasprintf.c (ASSERT): Likewise.
5743 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
5744 * tests/test-vprintf-posix.c (ASSERT): Likewise.
5745 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
5746 * tests/test-vsnprintf.c (ASSERT): Likewise.
5747 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
5748 * tests/test-wcwidth.c (ASSERT): Likewise.
5749 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
5750 * tests/test-xprintf-posix.c (ASSERT): Likewise.
5751 * tests/test-xvasprintf.c (ASSERT): Likewise.
5752 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
5753 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
5754 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
5755 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
5756 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
5757 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
5758 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
5759 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
5760 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
5761 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
5762 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
5763 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
5764 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
5765 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
5766 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
5767 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
5768 * tests/unictype/test-block_list.c (ASSERT): Likewise.
5769 * tests/unictype/test-block_of.c (ASSERT): Likewise.
5770 * tests/unictype/test-block_test.c (ASSERT): Likewise.
5771 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
5772 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
5773 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
5774 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
5775 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
5776 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
5777 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
5778 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
5779 * tests/unictype/test-combining.c (ASSERT): Likewise.
5780 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
5781 * tests/unictype/test-digit.c (ASSERT): Likewise.
5782 * tests/unictype/test-mirror.c (ASSERT): Likewise.
5783 * tests/unictype/test-numeric.c (ASSERT): Likewise.
5784 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
5785 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
5786 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
5787 * tests/unictype/test-scripts.c (ASSERT): Likewise.
5788 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
5789 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
5790 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
5791 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
5792 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
5793 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
5794 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
5795 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
5796 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
5797 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
5798 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
5799 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
5800 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
5801 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
5802 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
5803 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
5804 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
5805 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
5806 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
5807 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
5808 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
5809 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
5810 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
5811 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
5812 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
5813 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
5814 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
5815 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
5816 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
5817 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
5818 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
5819 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
5820 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
5821 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
5822 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
5823 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
5824 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
5825 Reported by Eric Blake.
5827 2008-04-11 Bruno Haible <bruno@clisp.org>
5829 * lib/wchar.in.h: Tweak comment.
5831 2008-04-11 Bruno Haible <bruno@clisp.org>
5833 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
5834 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
5836 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
5838 2008-04-11 Bruno Haible <bruno@clisp.org>
5840 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
5842 2008-04-11 Simon Josefsson <simon@josefsson.org>
5844 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
5845 of attempting to use non-existing /dev/*random. Based on patch
5846 from Adam Strzelecki <ono@java.pl> in
5847 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
5849 2008-04-08 Bruno Haible <bruno@clisp.org>
5851 Add tentative support for emx+gcc.
5852 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
5853 * lib/fpurge.c (fpurge): Likewise.
5854 * lib/freadable.c (freadable): Likewise.
5855 * lib/freadahead.c (freadahead): Likewise.
5856 * lib/freading.c (freading): Likewise.
5857 * lib/freadptr.c (freadptr): Likewise.
5858 * lib/freadseek.c (freadptrinc): Likewise.
5859 * lib/fseeko.c (rpl_fseeko): Likewise.
5860 * lib/fseterr.c (fseterr): Likewise.
5861 * lib/fwritable.c (fwritable): Likewise.
5862 * lib/fwriting.c (fwriting): Likewise.
5863 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
5865 2008-04-09 Eric Blake <ebb9@byu.net>
5867 Avoid some autoconf warnings.
5868 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
5869 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
5870 * m4/afs.m4 (gl_AFS): Likewise.
5871 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
5872 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
5873 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5874 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
5875 (gl_INTEGER_TYPE_SUFFIX): Likewise.
5876 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
5877 (AC_CHECK_DECLS_ONCE): Likewise.
5879 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
5880 gnulib-tool requires autoconf 2.59 or better.
5881 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
5883 2008-04-08 Eric Blake <ebb9@byu.net>
5885 Use 'git describe --match' if present (added in git 1.5.5).
5886 * build-aux/git-version-gen: Limit result to tags that match 'v*'
5889 2008-04-08 Bruno Haible <bruno@clisp.org>
5891 Add tentative support for OpenServer.
5892 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
5894 * lib/fpurge.c (fpurge): Likewise.
5895 * lib/freadable.c (freadable): Likewise.
5896 * lib/freadahead.c (freadahead): Likewise.
5897 * lib/freading.c (freading): Likewise.
5898 * lib/freadptr.c (freadptr): Likewise.
5899 * lib/freadseek.c (freadptrinc): Likewise.
5900 * lib/fseeko.c (rpl_fseeko): Likewise.
5901 * lib/fseterr.c (fseterr): Likewise.
5902 * lib/fwritable.c (fwritable): Likewise.
5903 * lib/fwriting.c (fwriting): Likewise.
5904 Reported by Roger Cornelius <rac@tenzing.org> and
5905 Brian K. White <brian@aljex.com>.
5907 2008-04-06 Jim Meyering <meyering@redhat.com>
5909 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
5911 2008-04-06 Bruno Haible <bruno@clisp.org>
5913 Avoid possible error with non-ASCII bytes in UTF-8 locales.
5914 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
5915 * tests/test-printf-posix.sh: Likewise.
5916 * tests/test-vfprintf-posix.sh: Likewise.
5917 * tests/test-vprintf-posix.sh: Likewise.
5918 * tests/test-xprintf-posix.sh: Likewise.
5920 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5922 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
5923 hide error from 'ls', needed on OS/2.
5924 Report by Elbert Pol <elbert.pol@gmail.com>.
5926 2008-04-04 Eric Blake <ebb9@byu.net>
5928 Make test-fseeko.c failures meaningful.
5929 * tests/test-fseeko.c: Print line number on failure.
5930 * tests/test-fseek.c: Likewise.
5931 Reported by Nelson H. F. Beebe.
5933 Improve strtod bug detection check.
5934 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
5935 required for Solaris 10.
5936 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
5938 2008-04-04 Bruno Haible <bruno@clisp.org>
5940 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
5943 2008-04-03 Eric Blake <ebb9@byu.net>
5945 Ensure sane .version contents.
5946 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
5948 * build-aux/git-version-gen: Improve documentation.
5950 Make GNU make output nicer.
5951 * top/GNUmakefile [!_have-Makefile]: Add dependency on
5952 MAKECMDGOALS to enforce message for all command line targets. Set
5953 srcdir for use in maint.mk.
5955 Another maintainer tweak.
5956 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
5957 a target that regenerates version.
5959 2008-04-03 Jim Meyering <meyering@redhat.com>
5961 vc-list-files: don't cause coreutils "make po-check" failure
5962 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
5964 2008-04-03 Eric Blake <ebb9@byu.net>
5966 Allow VPATH usage of vc-list-files.
5967 * build-aux/vc-list-files (scriptversion): Add timestamp.
5968 (options): Add --help, --version, -C.
5969 (CVS): Support installed cvsu.
5971 2008-04-02 Bruno Haible <bruno@clisp.org>
5973 Avoid some "statement with no effect" warnings from gcc.
5974 * tests/test-wctype.c (main): Explicitly ignore unused values.
5975 Reported by Jim Meyering.
5977 2008-04-02 Jim Meyering <meyering@redhat.com>
5979 Avoid some warnings from "gcc -Wshadow".
5980 * tests/test-frexp.c (exp): Define to a different identifier.
5981 * tests/test-frexpl.c (exp): Likewise.
5983 2008-04-03 Jim Meyering <meyering@redhat.com>
5985 bootstrap: remove dangling *.[ch] symlinks from lib
5986 * build-aux/bootstrap [dangling symlink removal]: Move find's
5987 -depth option to precede all others, to avoid a warning.
5988 Remove *.[ch] files too, and from "$source_base" (usually lib/).
5990 2008-04-02 Bruno Haible <bruno@clisp.org>
5992 Avoid some warnings from "gcc -Wshadow".
5993 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
5994 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
5995 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
5996 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
5997 Reported by Jim Meyering.
5999 2008-04-01 Bruno Haible <bruno@clisp.org>
6001 Fix test to work on IRIX 6.5 with cc.
6002 * tests/test-math.c (numeric_equal): New function.
6005 2008-04-01 Bruno Haible <bruno@clisp.org>
6007 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
6009 2008-04-01 Bruno Haible <bruno@clisp.org>
6011 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
6012 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6013 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
6014 (Depends-on): Remove math.
6016 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
6017 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6018 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
6019 (Depends-on): Remove math.
6021 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
6022 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6023 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
6024 (Depends-on): Remove math.
6025 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
6026 (Depends-on): Remove math.
6028 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
6029 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6030 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
6031 (Depends-on): Remove math.
6032 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
6033 (Depends-on): Remove math.
6035 * tests/test-round1.c: Include nan.h.
6036 (main): Use NaNd instead of NAN.
6037 * modules/round-tests (Files): Add tests/nan.h.
6039 * tests/test-trunc1.c: Include nan.h.
6040 (main): Use NaNd instead of NAN.
6041 * modules/trunc-tests (Files): Add tests/nan.h.
6043 * tests/test-roundf1.c: Include nan.h.
6044 (main): Use NaNf instead of NAN.
6045 * modules/roundf-tests (Files): Add tests/nan.h.
6047 * tests/test-truncf1.c: Include nan.h.
6048 (main): Use NaNf instead of NAN.
6049 * modules/truncf-tests (Files): Add tests/nan.h.
6051 * tests/test-ceilf1.c: Include nan.h.
6052 (main): Use NaNf instead of NAN.
6053 * modules/ceilf-tests (Files): Add tests/nan.h.
6055 * tests/test-floorf1.c: Include nan.h.
6056 (main): Use NaNf instead of NAN.
6057 * modules/floorf-tests (Files): Add tests/nan.h.
6059 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
6060 (main): Use NaNf instead of NAN.
6061 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
6063 * tests/test-isnand.c: Include nan.h instead of <math.h>.
6064 (main): Use NaNd instead of NAN.
6065 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
6067 * tests/test-frexp.c: Include nan.h.
6068 (main): Use NaNd instead of NAN.
6069 * modules/frexp-tests (Files): Add tests/nan.h.
6071 * lib/isnan.c: Don't include <math.h>.
6072 (FUNC): Don't use NAN macro.
6073 * modules/isnand-nolibm (Depends-on): Remove math.
6074 * modules/isnanf-nolibm (Depends-on): Remove math.
6075 * modules/isnanl (Depends-on): Remove math.
6076 * modules/isnanl-nolibm (Depends-on): Remove math.
6078 * tests/nan.h: New file.
6080 2008-04-01 Eric Blake <ebb9@byu.net>
6083 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
6084 values to be the right type.
6086 For now, cater to gnulib strtod inaccuracies.
6087 * tests/test-strtod.c (main): Allow 1-ulp error on expected
6088 fractional results. While not as nice from a QoI perspective, it
6089 is a quicker patch than correctly implementing decimal to binary
6092 2008-03-31 Eric Blake <ebb9@byu.net>
6094 Guarantee a definition of NAN.
6095 * lib/math.in.h (NAN): Define if missing.
6096 * tests/test-math.c (main): Test it.
6097 * doc/posix-headers/math.texi (math.h): Document this.
6098 * lib/isnan.c (rpl_isnand): Use it.
6099 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
6100 * tests/test-floorf1.c (NaN): Likewise.
6101 * tests/test-frexp.c (NaN): Likewise.
6102 * tests/test-isnand.c (NaN): Likewise.
6103 * tests/test-isnanf.c (NaN): Likewise.
6104 * tests/test-round1.c (NaN): Likewise.
6105 * tests/test-roundf1.c (NaN): Likewise.
6106 * tests/test-snprintf-posix.h (NaN): Likewise.
6107 * tests/test-sprintf-posix.h (NaN): Likewise.
6108 * tests/test-trunc1.c (NaN): Likewise.
6109 * tests/test-truncf1.c (NaN): Likewise.
6110 * tests/test-vasnprintf-posix.c (NaN): Likewise.
6111 * tests/test-vasprintf-posix.c (NaN): Likewise.
6112 * modules/isnand-nolibm (Depends-on): Add math.
6113 * modules/isnanf-nolibm (Depends-on): Likewise.
6114 * modules/isnanl (Depends-on): Likewise.
6115 * modules/isnanl-nolibm (Depends-on): Likewise.
6116 * modules/snprintf-posix-tests (Depends-on): Likewise.
6117 * modules/sprintf-posix-tests (Depends-on): Likewise.
6118 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
6119 * modules/vsprintf-posix-tests (Depends-on): Likewise.
6120 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
6121 * modules/vasprintf-posix-tests (Depends-on): Likewise.
6123 2008-03-31 Bruno Haible <bruno@clisp.org>
6125 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
6126 * doc/posix-functions/strtod.texi: Likewise.
6128 2008-03-31 Bruno Haible <bruno@clisp.org>
6130 * tests/test-strtod.c (main): Don't use C99 syntax.
6132 2008-03-31 Bruno Haible <bruno@clisp.org>
6134 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
6135 Reported by Eric Blake.
6137 2008-03-31 Jim Meyering <meyering@redhat.com>
6139 Don't compare actual signbit return values.
6140 * tests/test-strtod.c (main): Rather, compare only their
6141 zero/non-zero nature.
6143 2008-03-31 Eric Blake <ebb9@byu.net>
6145 More strtod documentation.
6146 * doc/posix-functions/strtod.texi (strtod): Interpret more test
6147 failures as distinct bugs.
6149 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
6151 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
6152 Problem reported by Erik Benada in
6153 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
6155 2008-03-30 Bruno Haible <bruno@clisp.org>
6157 * tests/test-strtod.c: Add comments about which assertion fails on which
6159 * doc/posix-functions/strtod.texi: Add info about many more platforms.
6161 2008-03-30 Eric Blake <ebb9@byu.net>
6163 Test signbit behavior on zeros.
6164 * tests/test-signbit.c (test_signbitf): Add tests for zero.
6165 (test_signbitd, test_signbitl): Likewise.
6167 More strtod touchups.
6168 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
6169 sign of negative underflow, for now. Use .5, not .1.
6170 * doc/posix-functions/strtod.texi (strtod): Mention these
6172 Reported by Jim Meyering.
6174 2008-03-30 Bruno Haible <bruno@clisp.org>
6176 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
6177 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
6179 2008-03-30 Bruno Haible <bruno@clisp.org>
6181 Avoid failure when attempting to return empty iconv results on some
6183 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
6184 allocation, don't report ENOMEM when the resulting string is empty.
6186 2008-03-30 Bruno Haible <bruno@clisp.org>
6189 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
6190 Don't consider the width for tmp_length. Check count against tmp_length
6191 before doing the padding. Ensure enough allocation during padding.
6193 2008-03-30 Eric Blake <ebb9@byu.net>
6196 * lib/strtod.c (strtod): Avoid compiler warnings.
6197 Reported by Jim Meyering.
6199 2008-03-30 Bruno Haible <bruno@clisp.org>
6201 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
6202 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
6203 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
6204 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
6205 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
6206 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
6207 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
6208 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
6210 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
6211 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
6212 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
6213 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
6214 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
6215 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
6216 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
6217 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
6219 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
6220 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
6221 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
6222 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
6223 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
6224 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
6225 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
6226 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
6228 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
6229 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
6231 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
6232 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
6234 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
6235 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
6237 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
6238 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
6239 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
6241 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
6242 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
6243 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
6245 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
6246 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
6247 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
6249 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
6250 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
6251 * modules/vasprintf (Depends-on): Add EOVERFLOW.
6253 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
6254 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
6255 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
6256 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
6257 (Depends-on): Add EOVERFLOW.
6258 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
6259 (Depends-on): Add EOVERFLOW.
6260 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
6261 (Depends-on): Add EOVERFLOW.
6262 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
6263 (Depends-on): Add EOVERFLOW.
6264 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
6265 (Depends-on): Add EOVERFLOW.
6266 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
6267 (Depends-on): Add EOVERFLOW.
6268 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
6269 (Depends-on): Add EOVERFLOW.
6270 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
6271 (Depends-on): Add EOVERFLOW.
6273 * lib/sprintf.c (EOVERFLOW): Remove fallback.
6274 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
6275 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
6277 * lib/snprintf.c (EOVERFLOW): Remove fallback.
6278 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
6279 * modules/snprintf (Depends-on): Add EOVERFLOW.
6281 * lib/poll.c (EOVERFLOW): Remove fallback.
6282 * modules/poll (Depends-on): Add EOVERFLOW.
6284 * lib/getugroups.c (EOVERFLOW): Remove fallback.
6285 * modules/getugroups (Depends-on): Add EOVERFLOW.
6287 * lib/getdelim.c (EOVERFLOW): Remove fallback.
6288 * modules/getdelim (Depends-on): Add EOVERFLOW.
6290 * lib/ftell.c (EOVERFLOW): Remove fallback.
6291 * modules/ftell (Depends-on): Add EOVERFLOW.
6293 * lib/fprintf.c (EOVERFLOW): Remove fallback.
6294 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
6295 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
6297 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
6299 * modules/EOVERFLOW-tests: New file.
6300 * tests/test-EOVERFLOW.c: New file.
6302 * modules/EOVERFLOW: New file.
6303 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
6305 2008-03-30 Bruno Haible <bruno@clisp.org>
6307 Fix bug introduced on 2007-06-10.
6308 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
6309 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
6311 2008-03-30 Bruno Haible <bruno@clisp.org>
6313 Improve freadseek's efficiency after ungetc.
6314 * lib/freadseek.c: Include freadahead.h.
6315 (freadptrinc): New function, extracted from freadseek.
6316 (freadseek): Use it in a loop. Use freadahead to determine the number
6318 * modules/freadseek (Depends-on): Add freadahead.
6319 (configure.ac): Require AC_C_INLINE.
6321 2008-03-30 Bruno Haible <bruno@clisp.org>
6323 * lib/freadseek.c (freadseek): Don't ignore the return value of
6326 2008-03-29 Eric Blake <ebb9@byu.net>
6328 Add hex float support.
6329 * modules/strtod (Depends-on): Add c-ctype.
6330 (Link): Mention POW_LIB.
6331 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
6332 whitespace between 'e' and exponent.
6333 * tests/test-strtod.c (main): Enable hex float tests.
6334 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
6337 Document various strtod bugs, with some fixes.
6338 * doc/posix-functions/strtod.texi (strtod): Document bugs with
6339 "-0x", "inf", "nan", and hex constants.
6340 * doc/posix-functions/atof.texi (atof): Likewise.
6341 * modules/stdlib (Makefile.am): Support strtod.
6342 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
6343 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
6344 detect additional strtod bugs.
6345 * lib/stdlib.in.h (rpl_strtod): Add declarations.
6346 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
6347 bool where appropriate. Parse 'inf' and 'nan'.
6348 * tests/test-strtod.c: New file.
6349 * modules/strtod (Depends-on): Add stdbool, stdlib.
6350 (configure.ac): Turn on module indicator.
6351 * modules/strtod-tests: New module.
6353 2008-03-29 Eric Blake <ebb9@byu.net>
6356 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
6357 * modules/ftell-tests (Depends-on): Add binary-io.
6358 * modules/ftello-tests (Depends-on): Likewise.
6359 * tests/test-ftell.c (main): Enhance test to cover behavior after
6360 ungetc. Enforce binary mode.
6361 * tests/test-ftello.c (main): Likewise.
6363 Pass test-freadseek on cygwin.
6364 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
6365 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
6368 * tests/test-fflush2.c (main): Fix typo.
6370 2008-03-29 Bruno Haible <bruno@clisp.org>
6372 * tests/test-fflush2.c (main): Temporarily disable the contents of
6374 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
6375 Reported by Eric Blake.
6377 2008-03-28 Simon Josefsson <simon@josefsson.org>
6379 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
6380 (GC_SHA224_DIGEST_SIZE): Add.
6382 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
6383 (gc_hash_digest_length): Likewise.
6384 (gc_hash_buffer): Likewise.
6386 2008-03-25 Bruno Haible <bruno@clisp.org>
6388 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
6389 detail which gettext release to use.
6390 Reported by Simon Josefsson.
6392 2008-03-26 Jim Meyering <meyering@redhat.com>
6394 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
6395 * modules/gnumakefile (clean-GNUmakefile): Also, use
6396 test ... && ... || : syntax rather than if-then ... fi.
6398 gnumakefile: Don't double-quote-expand $(VPATH) value.
6399 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
6401 2008-03-24 Eric Blake <ebb9@byu.net>
6403 Alter GNUmakefile to install into top directory.
6404 * modules/maintainer-makefile: Split, and add dependency...
6405 * modules/gnumakefile: to this new module.
6406 * build-aux/GNUmakefile: Move...
6407 * top/GNUmakefile: ...here.
6408 * build-aux/maint.mk: Move...
6409 * top/maint.mk: ...here.
6410 * MODULES.html.sh (Support for maintaining...): Document new
6413 2008-03-23 Bruno Haible <bruno@clisp.org>
6415 * gnulib-tool: New options --vc-files, --no-vc-files.
6416 (func_usage): Document them.
6417 (vc_files): New variable.
6418 (func_import): Consider vc_files.
6419 (func_create_testdir): Set vc_files to empty.
6420 Suggested by Jim Meyering and Karl Berry.
6422 2008-03-23 Bruno Haible <bruno@clisp.org>
6424 Fix regex compilation error on HP-UX 11.
6425 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
6426 * modules/regex (Files): Add m4/mbstate_t.m4.
6427 Reported by Ton Voon <ton.voon@altinity.com>.
6429 2008-03-23 Bruno Haible <bruno@clisp.org>
6431 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
6433 2008-03-23 Eric Blake <ebb9@byu.net>
6434 Bruno Haible <bruno@clisp.org>
6436 Install files from top/ in the destination directory.
6437 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
6438 augmentation also for the files from top/.
6439 (func_import, func_create_testdir): Rewrite file names:
6440 top/filename -> filename.
6442 2008-03-23 Bruno Haible <bruno@clisp.org>
6444 Tweak "gnulib --version" output.
6445 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
6447 2008-03-23 Bruno Haible <bruno@clisp.org>
6449 Tweak "gnulib --version" output.
6450 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
6451 rather than contents of ChangeLog, when possible.
6453 2008-03-21 Eric Blake <ebb9@byu.net>
6455 More --version tweaks.
6456 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
6457 date of last ChangeLog entry.
6459 2008-03-21 Jim Meyering <meyering@redhat.com>
6461 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
6463 2008-03-20 Eric Blake <ebb9@byu.net>
6466 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
6468 2008-03-20 Simon Josefsson <simon@josefsson.org>
6470 * build-aux/GNUmakefile: Make git-version-gen optional. Add
6471 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
6473 2008-03-20 Eric Blake <ebb9@byu.net>
6475 Sync GNUmakefile with coreutils.
6476 * build-aux/GNUmakefile (have-Makefile): Rename...
6477 (_have-Makefile): ...to this, for namespace consideration.
6478 (GNUmakefile.cfg): Include, if present.
6479 (_autoreconf): Define a default.
6480 (_is-dist-target): New rule for rebuilds to pick up intra-release
6482 (maint-cfg.mk): Rename...
6483 (cfg.mk): ...to this.
6485 2008-03-18 Jim Meyering <meyering@redhat.com>
6487 New script and module: mktempd
6488 * MODULES.html.sh (maint+release support): Add mktempd.
6489 * build-aux/mktempd: New file.
6490 * modules/mktempd: New file.
6492 2008-03-15 Jim Meyering <meyering@redhat.com>
6495 * lib/sha1.c, lib/md5.c: 63 != ~63.
6496 Reported by Andreas Schwab.
6498 sha1.c, md5.c: Hoist a redundant expression.
6499 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
6500 "ctx->buflen" only once, before calling *_process_block.
6501 * lib/md5.c (md5_process_bytes): Likewise.
6503 2008-03-14 Eric Blake <ebb9@byu.net>
6505 Bump copyright year in files generated by gnulib-tool.
6506 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
6507 gnulib-tool, rather than hard-coding it.
6509 Fix 'gnulib-tool --version' output to work with git.
6510 * gnulib-tool (func_gnulib_dir): New function, extracted from...
6512 (func_version): Use it to invoke git-version-gen, rather than
6513 relying on CVS keyword expansion. Modernize wording.
6514 (cvsdatestamp, last_checkin_date, version): Kill unused
6517 2008-03-12 Jim Meyering <meyering@redhat.com>
6519 Recognize optional cast of the argument to free.
6520 * build-aux/useless-if-before-free: Update regexps.
6522 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
6524 2008-03-11 Bruno Haible <bruno@clisp.org>
6526 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
6527 by a single package.
6528 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
6529 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
6530 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
6531 Reported by Sam Steingold <sds@gnu.org>.
6533 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
6535 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
6538 2008-03-11 Bruno Haible <bruno@clisp.org>
6540 Avoid conflicts between local macro definitions.
6541 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
6542 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
6544 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
6545 Bruno Haible <bruno@clisp.org>
6547 Make va_copy work with some version of xlc on AIX 5.1.
6548 * lib/stdarg.in.h: New file.
6549 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
6550 On AIX, use a <stdarg.h> file substitute.
6551 * modules/stdarg (Files): Add lib/stdarg.in.h.
6552 (Depends-on): Add include_next.
6553 (Makefile.am): Build a stdarg.h substitute if requested.
6554 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
6556 2008-03-10 Bruno Haible <bruno@clisp.org>
6558 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
6559 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
6560 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
6562 2008-03-10 Bruno Haible <bruno@clisp.org>
6564 * modules/stdlib (Depends-on): Add include_next, remove
6567 2008-03-09 Bruno Haible <bruno@clisp.org>
6569 * lib/freadahead.h (freadahead): Document more precisely.
6570 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
6571 the sum of both buffer sizes.
6572 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
6573 * NEWS: Document the change.
6575 2008-03-09 Bruno Haible <bruno@clisp.org>
6577 Extend freadptr to return also the buffer size.
6578 * lib/freadptr.h (freadptr): Add sizep argument.
6579 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
6580 (freadptr): Add sizep argument. Determine buffer size like freadahead
6582 * tests/test-freadptr.c: Don't include freadahead.h.
6583 (main): Adapt for new calling convention of freadptr.
6584 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
6585 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
6586 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
6587 tests/test-freadptr2.sh.
6588 (Depends): Remove freadahead.
6589 (TESTS): Add test-freadptr2.sh.
6590 (check_PROGRAMS): Add test-freadptr2.
6592 2008-03-09 Bruno Haible <bruno@clisp.org>
6594 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
6595 Report and solution by Simon Josefsson.
6597 2008-03-06 Bruno Haible <bruno@clisp.org>
6599 Make fflush after ungetc work on BSD platforms.
6600 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
6601 * tests/test-fflush2.c: New file.
6602 * tests/test-fflush2.sh: New file.
6603 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
6604 tests/test-fflush2.c.
6605 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
6606 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
6608 2008-03-06 Eric Blake <ebb9@byu.net>
6610 Likewise for ftello.
6611 * modules/ftello (Dependencies): Add extensions.
6612 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
6614 2008-03-06 Bruno Haible <bruno@clisp.org>
6616 * modules/fseeko (Dependencies): Add extensions.
6617 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
6618 Needed on glibc systems.
6620 2008-03-06 Bruno Haible <bruno@clisp.org>
6622 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
6624 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6626 2008-03-06 Bruno Haible <bruno@clisp.org>
6628 * users.txt: Add libgnupdf.
6630 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
6632 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
6633 (Header File Substitutes, Function Substitutes,
6634 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
6635 (Build robot for gnulib): Fix typo.
6637 2008-03-06 Bruno Haible <bruno@clisp.org>
6639 * doc/gnulib-tool.texi (VCS Issues): Small updates.
6640 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6642 2008-03-06 Bruno Haible <bruno@clisp.org>
6644 * doc/func.texi: New file, extracted from doc/gnulib.texi.
6645 * doc/gnulib.texi: Include it.
6647 2008-03-06 Simon Josefsson <simon@josefsson.org>
6649 * modules/func (License): Change license to unlimited; there was
6650 no LGPL parts in the module anyway.
6652 2008-03-06 Simon Josefsson <simon@josefsson.org>
6654 * modules/__func__: Renamed to modules/func.
6655 * modules/__func__-tests: Renamed to modules/func-tests.
6656 * tests/test-__func__.c: Renamed to tests/test-func.c.
6657 * m4/__func__.m4: Renamed to m4/func.m4.
6658 * doc/gnulib.texi (__func__): Section renamed to func.
6659 Suggested by Eric Blake <ebb9@byu.net>.
6661 2008-03-06 Simon Josefsson <simon@josefsson.org>
6663 * doc/gnulib.texi (__func__): Use C99 terminology when talking
6664 about __func__. Make example self-contained. Suggested by Eric
6665 Blake <ebb9@byu.net>.
6667 * tests/test-__func__.c (main): Avoid extraneous () around __func.
6668 Suggested by Eric Blake <ebb9@byu.net>.
6670 2008-03-06 Simon Josefsson <simon@josefsson.org>
6672 * modules/__func__: New file.
6673 * modules/__func__-tests: New file.
6674 * tests/test-__func__.c: New file.
6675 * m4/__func__.m4: New file.
6676 * doc/gnulib.texi (__func__): Document __func__ module.
6678 2008-03-05 Simon Josefsson <simon@josefsson.org>
6680 * modules/byteswap (License): Re-license as LGPLv2+.
6682 2008-03-05 Simon Josefsson <simon@josefsson.org>
6684 * doc/Makefile: Add pdf target.
6686 2008-03-05 Simon Josefsson <simon@josefsson.org>
6688 * modules/inline (License): Use 'unlimited', since there are only
6689 *.m4 files in this module.
6691 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
6692 Bruno Haible <bruno@clisp.org>
6694 Add support for HP C 7.1 on OpenVMS 8.3.
6695 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
6697 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
6699 Update VMS specifics.
6700 * lib/getopt.c [VMS]: Remove include of unixlib.h.
6702 2008-03-02 Jim Meyering <meyering@redhat.com>
6704 Remove the last dependency on the "free" module.
6705 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
6706 Reported by Bob Proulx.
6708 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
6710 Remove useless "if" tests before free. Deprecate "free" module.
6711 * doc/posix-functions/free.texi: Mention that this
6712 module is no longer useful.
6713 * modules/free (Notice): Say this module is obsolete.
6714 * modules/readutmp (Depends-on): Remove free.
6715 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
6716 * lib/putenv.c (putenv): Likewise.
6717 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
6718 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
6719 * tests/test-c-strcasestr.c (main): Likewise.
6720 * tests/test-c-strstr.c (main): Likewise.
6721 * tests/test-mbscasestr1.c (main): Likewise.
6722 * tests/test-mbscasestr2.c (main): Likewise.
6723 * tests/test-mbsstr1.c (main): Likewise.
6724 * tests/test-mbsstr2.c (main): Likewise.
6725 * tests/test-memmem.c (main): Likewise.
6726 * tests/test-strcasestr.c (main): Likewise.
6727 * tests/test-striconv.c (main): Likewise.
6728 * tests/test-striconveh.c (main): Likewise.
6729 * tests/test-striconveha.c (main): Likewise.
6730 * tests/test-strstr.c (main): Likewise.
6732 * build-aux/git-version-gen: Adjust a comment and the Usage string.
6734 bootstrap: sync from coreutils again
6735 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
6737 2008-03-01 Jim Meyering <meyering@redhat.com>
6739 bootstrap: sync from coreutils
6740 * build-aux/bootstrap (update_po_files): Copy a .po file into place
6741 also when the target doesn't exist.
6743 2008-03-01 Eric Blake <ebb9@byu.net>
6745 Fix bugs in last patch.
6746 * lib/memchr2.c (memchr2): Fix typo.
6747 * tests/test-memchr2.c: Test previous bug, and don't use GNU
6749 Reported by Bruce Korb.
6751 New module 'memchr2'.
6752 * modules/memchr2: New file.
6753 * modules/memchr2-tests: Likewise.
6754 * lib/memchr2.h: Likewise.
6755 * lib/memchr2.c: Likewise, based on memchr.c.
6756 * tests/test-memchr2.c: New test.
6757 * MODULES.html.sh (String handling): Add memchr2.
6759 2008-02-29 Bruno Haible <bruno@clisp.org>
6761 * modules/freadseek-tests: New file.
6762 * tests/test-freadseek.sh: New file.
6763 * tests/test-freadseek.c: New file.
6765 New module 'freadseek'.
6766 * modules/freadseek: New file.
6767 * lib/freadseek.h: New file.
6768 * lib/freadseek.c: New file.
6769 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
6771 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
6773 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
6776 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
6777 program_invocation_name and program_invocation_short_name are
6780 2008-02-28 Bruno Haible <bruno@clisp.org>
6782 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
6783 * tests/test-freadptr.sh: Also test non-seekable stdin.
6785 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
6787 * build-aux/bootstrap (source_base, m4_base)
6788 (doc_base, tests_base): New variables.
6789 (gnulib_tool_options): Do not hardcode base directories, use
6790 the above variables instead.
6792 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
6794 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
6796 2008-02-28 Bruno Haible <bruno@clisp.org>
6798 * modules/freadptr-tests: New file.
6799 * tests/test-freadptr.sh: New file.
6800 * tests/test-freadptr.c: New file.
6802 New module 'freadptr'.
6803 * modules/freadptr: New file.
6804 * lib/freadptr.h: New file.
6805 * lib/freadptr.c: New file.
6806 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
6808 2008-02-26 Karl Berry <karl@freefriends.org>
6811 * libltdl/argz.c (argz_add, argz_count): New functions.
6812 * libltdl/argz.in.h: Declare them.
6813 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
6815 2008-02-22 Bruno Haible <bruno@clisp.org>
6817 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
6818 is a pointer type. Needed for HP-UX 10.
6819 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
6820 * doc/posix-functions/gmtime_r.texi: Likewise.
6821 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
6823 2008-02-24 Bruno Haible <bruno@clisp.org>
6825 * modules/environ-tests: New file.
6826 * tests/test-environ.c: New file.
6828 New module 'environ'.
6829 * modules/environ: New file.
6830 * lib/unistd.in.h (environ): New declaration.
6831 * m4/environ.m4: New file.
6832 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
6834 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
6836 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
6838 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
6839 wrong claim that 'environ' is missing on some systems.
6840 * modules/execute (Depends-on): Add environ.
6841 * lib/execute.c (environ): Remove fallback declaration.
6842 * modules/pipe (Depends-on): Add environ.
6843 * lib/pipe.c (environ): Remove fallback declaration.
6844 * modules/setenv (Depends-on): Add environ.
6845 * lib/setenv.c (environ): Remove fallback declaration.
6846 * modules/unsetenv (Depends-on): Add environ.
6847 * lib/unsetenv.c (environ): Remove fallback declaration.
6848 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
6850 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
6851 (gl_PREREQ_UNSETENV): Likewise.
6853 2008-02-24 Bruno Haible <bruno@clisp.org>
6855 * doc/posix-functions/environ.texi: Document the MacOS X problem.
6857 2008-02-20 Bob Proulx <bob@proulx.com>
6859 Enable use of older two part flavor 'git describe'.
6860 * build-aux/git-version-gen: If using the older two part flavor of
6861 git version then recreate the third part now present in the
6862 newer three part flavor of git describe.
6864 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
6866 * lib/fts.c (fts_build): Typo correction to comment.
6868 2008-02-17 Bruno Haible <bruno@clisp.org>
6870 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
6871 generating no-op conflicts.
6873 2008-02-17 Bruno Haible <bruno@clisp.org>
6876 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
6877 result_entries, rather than an index-based loop.
6879 2008-02-17 Bruno Haible <bruno@clisp.org>
6882 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
6884 (entry_create): New function.
6885 (entry_hashcode): Use the cached hashcode if possible.
6886 (read_changelog_file, try_split_merged_entry): Use entry_create.
6888 2008-02-17 Bruno Haible <bruno@clisp.org>
6890 Speed up from O(n^2) to O(n) for long ChangeLog files.
6891 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
6892 (read_changelog_file): Change implementation of entries_reversed list
6894 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
6896 2008-02-17 Bruno Haible <bruno@clisp.org>
6898 New option --split-merged-entry.
6899 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
6900 (find_paragraph_end, try_split_merged_entry): New functions.
6901 (long_options): Add option --split-merged-entry.
6902 (usage): Document option --split-merged-entry.
6903 (main): Implement option --split-merged-entry.
6904 Reported by Eric Blake.
6906 2008-02-17 Bruno Haible <bruno@clisp.org>
6908 * lib/git-merge-changelog.c: Include c-strstr.h.
6909 (main): Support the "git pull --rebase" situation.
6910 * modules/git-merge-changelog (Depends-on): Add c-strstr.
6911 Reported by Eric Blake.
6913 2008-02-16 Eric Blake <ebb9@byu.net>
6915 Avoid doubling \ in common case of "c-maybe" quoting style.
6916 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
6917 eliding outer quotes.
6918 * lib/quotearg.h: Document this.
6919 * tests/test-quotearg.c (result_strings, inputs, results_g)
6920 (flag_results, locale_results): Test it by adding a new string to
6922 (compare_strings): Test new string.
6924 2008-02-13 Eric Blake <ebb9@byu.net>
6926 Avoid trigraph quoting in default output.
6927 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
6928 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
6929 unless explicitly requested.
6930 * tests/test-quotearg.c (flag_results, main): Add additional tests.
6932 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
6934 Don't rely on signed integer overflowing to negative value.
6935 * lib/getugroups.c (getugroups): Include <limits.h>.
6936 Instead, compare against INT_MAX, and increment only if the test passes.
6938 2008-02-13 Jim Meyering <meyering@redhat.com>
6939 and Eric Blake <ebb9@byu.net>
6941 Avoid shadowing warning and compile errors on Linux.
6942 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
6943 forwarding macros on Linux.
6944 (dcgettext): Define a stub, for Linux.
6945 (results_g, main): Avoid warnings.
6947 2008-02-12 Eric Blake <ebb9@byu.net>
6949 Silence warning in last patch.
6950 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
6952 Quotearg part 4: add tests, fix c-maybe colon quoting.
6953 * lib/quotearg.h: Improve documentation.
6954 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
6955 escapes when adding outer quotes. When quoting trigraphs, use
6956 valid C notation. When quoting NUL, omit extra characters if next
6957 character is not digit. Alter prototype.
6958 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
6960 * modules/quotearg-tests: New module.
6961 * tests/test-quotearg.c: New test.
6963 2008-02-07 Eric Blake <ebb9@byu.net>
6965 Quotearg part 3: add flag to control outer quote elision.
6966 * lib/quotearg.h (c_maybe_quoting_style): New style.
6967 (enum quoting_flags): Better documentation of flags.
6968 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
6970 (quotearg_buffer_restyled): Handle new flag to elide outer
6973 Quotearg part 2: add flag that can control NUL elision.
6974 * lib/quotearg.h (set_quoting_flags): New prototype.
6975 * lib/quotearg.c (struct quoting_options): Add flag field.
6976 (set_quoting_flags): New function.
6977 (quotearg_buffer_restyled): Add flags parameter.
6978 (quotearg_alloc_mem): Set the flag if length cannot be returned.
6979 (quotearg_n_options): Set the flag, since length cannot be
6981 (quoting_options_from_style): Default flags correctly.
6983 Quotearg part 1: more wrappers, restore quotearg_char state.
6984 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
6985 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
6986 (quotearg_colon_mem): New wrappers.
6987 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
6988 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
6990 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
6991 (quotearg_colon_mem): New functions.
6993 2008-02-11 Bruno Haible <bruno@clisp.org>
6995 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
6996 library in the current directory: it does not work with parallel make.
6997 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6999 2008-02-11 Bruno Haible <bruno@clisp.org>
7001 * .gitattributes: New file.
7003 2008-02-11 Jim Meyering <meyering@redhat.com>
7005 useless-if-before-free: Fix reversed exit values.
7006 * build-aux/useless-if-before-free: Use correct values
7007 for EXIT_MATCH and EXIT_NO_MATCH.
7009 * build-aux/useless-if-before-free: Close stdout carefully.
7011 2008-02-10 Bruno Haible <bruno@clisp.org>
7013 New module 'git-merge-changelog'.
7014 * modules/git-merge-changelog: New file.
7015 * lib/git-merge-changelog.c: New file.
7017 2008-02-10 Jim Meyering <meyering@redhat.com>
7019 useless-if-before-free: New option: --list (-l).
7021 useless-if-before-free: Don't exit immediately upon open failure.
7022 * build-aux/useless-if-before-free: Exit 2 for errors.
7023 Upon failure to open a file, don't exit immediately.
7024 Rather, just warn and continue with any remaining files.
7026 2008-02-10 Bruno Haible <bruno@clisp.org>
7028 New abstract list operation 'node_set_value'.
7029 * lib/gl_list.h (gl_list_node_set_value): New function.
7030 (struct gl_list_implementation): New field node_set_value.
7031 * lib/gl_list.c (gl_list_node_set_value): New function.
7032 * lib/gl_array_list.c (gl_array_node_set_value): New function.
7033 (gl_array_list_implementation): Update.
7034 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
7035 (gl_carray_list_implementation): Update.
7036 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
7037 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
7038 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
7039 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
7040 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
7041 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
7042 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
7044 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
7045 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
7046 (gl_sublist_list_implementation): Update.
7048 2008-02-10 Bruno Haible <bruno@clisp.org>
7050 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
7051 Needed when ELEMENT is #defined to 'some_type *'.
7053 2008-02-10 Jim Meyering <meyering@redhat.com>
7055 New script and module: useless-if-before-free
7056 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
7057 * build-aux/useless-if-before-free: New file.
7058 * modules/useless-if-before-free: New file.
7060 * build-aux/gitlog-to-changelog: Use committer date, not author date.
7062 xstrtol_error: Fix typo.
7063 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
7064 s/exit_failure/exit_status/.
7066 2008-02-09 Jim Meyering <meyering@redhat.com>
7068 New script and module: gitlog-to-changelog
7069 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
7070 * modules/gitlog-to-changelog: New file.
7071 * build-aux/gitlog-to-changelog: New file.
7073 2008-02-08 Jim Meyering <meyering@redhat.com>
7075 Avoid two "parameter unused" warnings.
7076 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
7079 Use "git COMMAND", not "git-COMMAND".
7080 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
7081 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
7082 * build-aux/git-version-gen: Use "git status", not "git-status".
7084 2008-02-07 Bruno Haible <bruno@clisp.org>
7086 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
7087 Avoids a crash on Windows Vista.
7088 Reported by Adam Strzelecki <ono@java.pl> via
7089 Simon Josefsson <simon@josefsson.org>.
7091 2008-02-06 Bruno Haible <bruno@clisp.org>
7093 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
7094 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
7095 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
7096 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
7097 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7098 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7099 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
7100 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
7101 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7102 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7103 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7104 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7105 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7106 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7107 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7108 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
7110 * tests/test-snprintf-posix.h (test_function): Likewise.
7111 * tests/test-sprintf-posix.h (test_function): Likewise.
7112 * tests/test-vasprintf-posix.c (test_function): Likewise.
7113 * doc/posix-functions/fprintf.texi: Update.
7114 * doc/posix-functions/printf.texi: Update.
7115 * doc/posix-functions/snprintf.texi: Update.
7116 * doc/posix-functions/sprintf.texi: Update.
7117 * doc/posix-functions/vfprintf.texi: Update.
7118 * doc/posix-functions/vprintf.texi: Update.
7119 * doc/posix-functions/vsnprintf.texi: Update.
7120 * doc/posix-functions/vsprintf.texi: Update.
7121 Reported by Peter Fales <psfales@alcatel-lucent.com>.
7123 2008-02-06 Bruno Haible <bruno@clisp.org>
7125 Fix bug introduced on 2008-01-26.
7126 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
7128 2008-02-06 Bruno Haible <bruno@clisp.org>
7130 Fix bug introduced on 2007-06-10.
7131 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
7132 !NEED_PRINTF_FLAG_ZERO.
7134 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
7136 getloadavg: use libperfstat on AIX5
7137 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
7139 2008-02-03 Bruno Haible <bruno@clisp.org>
7141 * lib/diffseq.h: Add comments about required #includes.
7142 Reported by Michael Biggs <gnulib@doubleplum.net>.
7144 2008-02-01 Bruno Haible <bruno@clisp.org>
7146 * users.txt: Add gnuit.
7148 2008-01-31 Bruno Haible <bruno@clisp.org>
7150 * lib/md4.c (set_uint32): Mark as inline.
7151 * lib/md5.c (set_uint32): Likewise.
7152 * lib/sha1.c (set_uint32): Likewise.
7153 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
7154 * m4/md5.m4 (gl_MD5): Likewise.
7155 * m4/sha1.m4 (gl_SHA1): Likewise.
7157 2008-01-31 Jim Meyering <meyering@redhat.com>
7159 Use "sizeof VAR", rather than a literal "4".
7160 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
7161 * lib/md4.c (md4_read_ctx): Likewise.
7162 * lib/sha1.c (sha1_read_ctx): Likewise.
7164 2008-01-31 Simon Josefsson <simon@josefsson.org>
7166 * tests/test-sha1.c: New file, based on test-md5.c.
7168 * modules/crypto/sha1-tests: New file.
7170 2008-01-31 Simon Josefsson <simon@josefsson.org>
7172 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
7174 2008-01-31 Jim Meyering <meyering@redhat.com>
7176 Prefer "sizeof v" over the equivalent "4".
7177 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
7178 * lib/md5.c (set_uint32): Likewise.
7179 * lib/sha1.c (set_uint32): Likewise.
7181 2008-01-31 Simon Josefsson <simon@josefsson.org>
7183 * lib/sha1.c (set_uint32): Mark function as static.
7185 2008-01-31 Simon Josefsson <simon@josefsson.org>
7187 md2: clarify comments to say that alignment is not required.
7188 * lib/md2.h: Remove warning about alignment in comment.
7189 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
7190 never been required.
7192 2008-01-31 Simon Josefsson <simon@josefsson.org>
7194 md4: adapt alignment constraint fix from sha1.
7195 * lib/md4.c (set_uint32): New function, from sha1.c
7196 (md4_read_ctx): Use it.
7197 (md4_finish_ctx): Doc fix.
7198 * lib/md4.h: Doc fix.
7200 2008-01-31 Simon Josefsson <simon@josefsson.org>
7202 md5: adapt alignment constraint fix from sha1.
7203 * lib/md5.c (set_uint32): New function, from sha1.c
7204 (md5_read_ctx): Use it.
7205 (md5_finish_ctx): Doc fix.
7206 * lib/md5.h: Doc fix.
7208 2008-01-30 Peter Palfrader <weasel@debian.org>
7210 sha1: remove the result buffer alignment constraint
7211 * lib/sha1.c (set_uint32): New function.
7212 (sha1_read_ctx): Rewrite to remove the result buffer alignment
7214 (sha1_finish_ctx): Remove comment warning about alignment constraint.
7215 * lib/sha1.h: Likewise.
7217 2008-01-30 Andreas Schwab <schwab@suse.de>
7218 Bruno Haible <bruno@clisp.org>
7220 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
7221 correct definition of LDBL_MIN_EXP.
7223 2008-01-30 Karl Berry <karl@gnu.org>
7225 * config/srclist-update: try to preserve x bit on updates.
7226 * config/srclistvars.sh: update for karl.
7228 2008-01-29 Jim Meyering <meyering@redhat.com>
7230 vasnprintf.c: Avoid warning about unused label
7231 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
7232 "overflow" label definition and associated code with the
7233 same cpp condition that guards the sole use of that label.
7235 2008-01-26 Bruno Haible <bruno@clisp.org>
7237 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
7238 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
7239 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
7240 * lib/isnanl-nolibm.h (isnanl): Likewise.
7241 Reported by Paul Eggert <eggert@cs.ucla.edu>.
7243 2008-01-26 Bruno Haible <bruno@clisp.org>
7245 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
7246 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
7248 2008-01-26 Bruno Haible <bruno@clisp.org>
7250 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
7251 GCC >= 4.0 built-in.
7252 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
7254 2008-01-26 Bruno Haible <bruno@clisp.org>
7256 Rename isnan, applicable to 'double' only, to isnand.
7257 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
7258 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
7259 (configure.ac): Update.
7260 (Include): Replace "isnan.h" with "isnand.h".
7261 * m4/isnand.m4: Renamed from m4/isnan.m4.
7262 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
7263 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
7265 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
7266 instead of HAVE_ISNAN_IN_LIBC.
7267 (isnand): Renamed from isnan.
7268 * lib/isnand.c: New file.
7269 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
7270 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
7271 (Makefile.am): Update.
7272 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
7273 Include isnand.h instead of isnan.h.
7274 (main): Test isnand instead of isnan.
7275 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
7277 * modules/frexp (Depends-on): Likewise.
7278 * modules/frexp-tests (Depends-on): Likewise.
7279 * modules/frexp-nolibm (Depends-on): Likewise.
7280 * modules/frexp-nolibm-tests (Depends-on): Likewise.
7281 * modules/isfinite (Depends-on): Likewise.
7282 * modules/round-tests (Depends-on): Likewise.
7283 * modules/signbit (Depends-on): Likewise.
7284 * modules/signbit-tests (Depends-on): Likewise.
7285 * modules/snprintf-posix (Depends-on): Likewise.
7286 * modules/sprintf-posix (Depends-on): Likewise.
7287 * modules/trunc-tests (Depends-on): Likewise.
7288 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7289 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7290 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7291 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7292 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7293 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7294 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7295 * modules/vasnprintf-posix (Depends-on): Likewise.
7296 * modules/vasprintf-posix (Depends-on): Likewise.
7297 * modules/vfprintf-posix (Depends-on): Likewise.
7298 * modules/vsnprintf-posix (Depends-on): Likewise.
7299 * modules/vsprintf-posix (Depends-on): Likewise.
7300 * lib/frexp.c: Include isnand.h instead of isnan.h.
7301 (ISNAN): Set to isnand instead of isnan.
7302 * lib/isfinite.c: Include isnand.h instead of isnan.h.
7303 (gl_isfinited): Use isnand instead of isnan.
7304 * lib/signbitd.c: Include isnand.h instead of isnan.h.
7305 (gl_signbitd): Use isnand instead of isnan.
7306 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
7307 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
7308 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
7309 (main): Use isnand instead of isnan.
7310 * tests/test-round1.c: Include isnand.h.
7311 (main): Use isnand instead of isnan.
7312 * tests/test-round2.c: Include isnand.h instead of isnan.h.
7313 (ISNAN): Set to isnand instead of isnan.
7314 * tests/test-trunc1.c: Include isnand.h.
7315 (main): Use isnand instead of isnan.
7316 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
7317 (equal): Use isnand instead of isnan.
7318 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
7320 * NEWS: Mention the change.
7322 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
7323 Bruno Haible <bruno@clisp.org>
7325 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
7326 the GCC builtins for signbits are present and set
7327 REPLACE_SIGNBIT_USING_GCC if so.
7328 * lib/math.in.h (signbit): Define using GCC builtins if
7329 REPLACE_SIGNBIT_USING_GCC is set.
7330 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
7331 REPLACE_SIGNBIT_USING_GCC.
7332 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
7334 2008-01-25 Jim Meyering <meyering@redhat.com>
7336 Prefer <config.h> over "config.h". See autoconf doc for explanation.
7337 * lib/poll.c: Include <config.h>, not "config.h".
7338 * tests/test-getaddrinfo.c: Likewise.
7340 2008-01-25 Simon Josefsson <simon@josefsson.org>
7342 * modules/sockets-tests: New file.
7344 2008-01-24 Simon Josefsson <simon@josefsson.org>
7346 * modules/sockets: New module, can be used to call WSA_Startup and
7347 WSA_Cleanup when needed.
7349 * lib/sockets.h, lib/sockets.c: New files.
7351 * m4/sockets.m4: New file.
7353 * tests/test-sockets.c: New file.
7355 2008-01-19 Bruno Haible <bruno@clisp.org>
7357 * doc/posix-headers: Renamed from doc/headers.
7358 * doc/posix-functions: Renamed from doc/functions.
7359 * doc/gnulib.texi: Update.
7361 2008-01-19 Bruno Haible <bruno@clisp.org>
7363 * doc/glibc-functions/strcasestr.texi: Include contents of
7364 doc/functions/strcasestr.texi, fixing the list of platforms.
7365 * doc/functions/strcasestr.texi: Remove file.
7367 2008-01-19 Bruno Haible <bruno@clisp.org>
7369 * doc/glibc-functions/memmem.texi: Include contents of
7370 doc/functions/memmem.texi.
7371 * doc/functions/memmem.texi: Remove file.
7373 2008-01-18 Bruno Haible <bruno@clisp.org>
7375 * doc/glibc-functions/*.texi: New files.
7376 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
7377 to use the new files.
7379 2008-01-17 Bruno Haible <bruno@clisp.org>
7381 * tests/test-gethostname.c (main): Fix printf statement.
7383 2008-01-17 Simon Josefsson <simon@josefsson.org>
7385 * modules/gethostname-tests: New file.
7387 * tests/test-gethostname.c: New file.
7389 2008-01-17 Simon Josefsson <simon@josefsson.org>
7391 * lib/gethostname.c: Include string.h unconditionally, strncpy is
7392 used by the UNAME case. Reported by Bruno Haible
7395 2008-01-17 Eric Blake <ebb9@byu.net>
7397 Convert c-strcasestr to be more efficient.
7398 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
7399 (Depends-on): Add c-strcase, remove malloca, strnlen.
7400 * tests/test-c-strcasestr.c (main): Enhance test.
7401 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
7403 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
7405 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
7406 Use it in creating po/Makevars.
7408 2008-01-15 Simon Josefsson <simon@josefsson.org>
7410 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
7411 Applications that requires it should initialize libgcrypt
7414 2008-01-16 Simon Josefsson <simon@josefsson.org>
7416 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
7418 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
7420 Fix problem with getdate on mingw32 reported by Simon Josefsson
7421 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
7422 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
7423 tzname", when deciding whether to declare tzname.
7424 * lib/strftime.c (tzname): Likewise.
7426 2008-01-15 Bruno Haible <bruno@clisp.org>
7428 Work around a MacOS X 10.5 bug in frexpl().
7429 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
7430 * doc/functions/frexpl.texi: Document the bug.
7431 Reported by Elias Pipping <pipping@gentoo.org>.
7433 2008-01-14 Eric Blake <ebb9@byu.net>
7435 Touch up previous patch.
7436 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
7437 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
7439 Convert strcasestr module to use Two-Way algorithm.
7440 * modules/strcasestr-simple: New module, based on the old
7441 strcasestr, but with Two-Way rather than KMP.
7442 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
7443 * lib/string.in.h (rpl_strcasestr): Declare.
7444 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
7446 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
7447 * modules/string (Makefile.am): Support strcasestr.
7448 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
7449 * modules/strcasestr-tests (Depends-on): Check for alarm.
7450 * tests/test-strcasestr.c: Augment test.
7451 * lib/str-two-way.h: Clean up stray macro.
7452 * NEWS: Document new module.
7453 * MODULES.html.sh (string handling): Likewise.
7454 * doc/functions/strcasestr.texi: New file.
7455 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
7456 here, since it is not a POSIX function.
7458 2008-01-14 Colin Watson <cjwatson@debian.org>
7459 Bruno Haible <bruno@clisp.org>
7461 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
7462 works fine; if not, set REPLACE_STRSIGNAL.
7463 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
7464 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7466 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
7467 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
7468 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
7470 2008-01-14 Bruno Haible <bruno@clisp.org>
7472 * modules/strsignal (Include): Change to <string.h>.
7474 2008-01-14 Colin Watson <cjwatson@debian.org>
7476 * modules/argp (Notice): Add a notice recommending to change
7478 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
7480 2008-01-13 Colin Watson <cjwatson@debian.org>
7482 * modules/strsignal-tests: New file.
7483 * tests/test-strsignal.c: New file.
7485 * lib/strsignal.c: New file, from glibc with modifications.
7486 * lib/siglist.h: New file, from glibc with modifications.
7487 * lib/string.in.h (strsignal): New declaration.
7488 * m4/strsignal.m4: New file.
7489 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7490 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
7491 * modules/strsignal: New file.
7492 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
7493 HAVE_DECL_STRSIGNAL.
7495 2008-01-13 Bruno Haible <bruno@clisp.org>
7497 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
7498 locale encoding is not ASCII. Needed for OpenBSD 4.0.
7499 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
7500 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7502 2008-01-13 Bruno Haible <bruno@clisp.org>
7504 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
7505 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
7506 * lib/argp.h (__attribute__): Likewise.
7507 * lib/c-stack.c (__attribute__): Likewise.
7508 * lib/error.h (__attribute__): Likewise.
7509 * lib/fts.c (__attribute__): Likewise.
7510 * lib/openat.h (__attribute__): Likewise.
7511 * lib/stdio.in.h (__attribute__): Likewise.
7512 * lib/string.in.h (__attribute__): Likewise.
7513 * lib/utimens.c (__attribute__): Likewise.
7514 * lib/vasnprintf.h (__attribute__): Likewise.
7515 * lib/xalloc.h (__attribute__): Likewise.
7516 * lib/xprintf.h (__attribute__): Likewise.
7517 * lib/xstrtol.h (__attribute__): Likewise.
7518 * lib/xvasprintf.h (__attribute__): Likewise.
7520 2008-01-12 Bruno Haible <bruno@clisp.org>
7522 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
7523 * doc/glibc-headers/a.out.texi: New file.
7524 * doc/glibc-headers/aliases.texi: New file.
7525 * doc/glibc-headers/alloca.texi: New file.
7526 * doc/glibc-headers/ar.texi: New file.
7527 * doc/glibc-headers/argp.texi: New file.
7528 * doc/glibc-headers/argz.texi: New file.
7529 * doc/glibc-headers/byteswap.texi: New file.
7530 * doc/glibc-headers/crypt.texi: New file.
7531 * doc/glibc-headers/endian.texi: New file.
7532 * doc/glibc-headers/envz.texi: New file.
7533 * doc/glibc-headers/err.texi: New file.
7534 * doc/glibc-headers/error.texi: New file.
7535 * doc/glibc-headers/execinfo.texi: New file.
7536 * doc/glibc-headers/fpu_control.texi: New file.
7537 * doc/glibc-headers/fstab.texi: New file.
7538 * doc/glibc-headers/fts.texi: New file.
7539 * doc/glibc-headers/getopt.texi: New file.
7540 * doc/glibc-headers/ieee754.texi: New file.
7541 * doc/glibc-headers/ifaddrs.texi: New file.
7542 * doc/glibc-headers/libintl.texi: New file.
7543 * doc/glibc-headers/mcheck.texi: New file.
7544 * doc/glibc-headers/mntent.texi: New file.
7545 * doc/glibc-headers/obstack.texi: New file.
7546 * doc/glibc-headers/paths.texi: New file.
7547 * doc/glibc-headers/printf.texi: New file.
7548 * doc/glibc-headers/pty.texi: New file.
7549 * doc/glibc-headers/resolv.texi: New file.
7550 * doc/glibc-headers/shadow.texi: New file.
7551 * doc/glibc-headers/sysexits.texi: New file.
7552 * doc/glibc-headers/ttyent.texi: New file.
7554 2008-01-12 Jim Meyering <meyering@redhat.com>
7556 announce-gen: emit Gnulib's git-based version string.
7557 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
7558 New option --gnulib-version=V, where V is expected to be
7559 the output of running git describe in the gnulib directory.
7560 (get_tool_versions): Request feedback on xdelta. I suspect it's
7561 not useful, and plan to stop publishing an xdelta file with each
7564 * build-aux/announce-gen: Also check for lzma-compressed files.
7566 2008-01-11 Bruno Haible <bruno@clisp.org>
7568 * tests/test-memmem.c (main): Increase maximum allowed time.
7569 * tests/test-strstr.c (main): Likewise.
7571 2008-01-11 Bruno Haible <bruno@clisp.org>
7573 * doc/functions/memmem.texi: Add more precisions about platforms.
7574 * doc/functions/strstr.texi: Likewise.
7576 2008-01-10 Eric Blake <ebb9@byu.net>
7578 * m4/strstr.m4: Delete cruft from copy-n-paste.
7579 Reported by Bruno Haible.
7581 2008-01-10 Bruno Haible <bruno@clisp.org>
7583 Make c-strstr rely on strstr.
7584 * lib/c-strstr.c: Don't include str-kmp.h.
7585 (c_strstr): Define in terms of strstr.
7586 * modules/c-strstr (Files): Remove lib/str-kmp.h.
7587 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
7589 2008-01-10 Bruno Haible <bruno@clisp.org>
7591 * doc/gnulib.texi (String Functions in C Locale): New section.
7592 * doc/c-ctype.texi: New file.
7593 * doc/c-strcase.texi: New file.
7594 * doc/c-strcaseeq.texi: New file.
7595 * doc/c-strcasestr.texi: New file.
7596 * doc/c-strstr.texi: New file.
7597 * doc/c-strtod.texi: New file.
7598 * doc/c-strtold.texi: New file.
7600 2008-01-10 Eric Blake <ebb9@byu.net>
7602 * lib/relocatable.h: Fix a comment.
7604 2008-01-10 Eric Blake <ebb9@byu.net>
7606 Share two-way algorithm.
7607 * lib/str-two-way.h: New file, merged from...
7608 * lib/memmem.c: ...here...
7609 * lib/strstr.c: ...and here.
7610 * modules/memmem (Files): Use it.
7611 * modules/strstr (Files): Likewise.
7613 Avoid quadratic strstr implementations.
7614 * lib/strstr.c: New file.
7615 * m4/strstr.m4: Likewise.
7616 * modules/strstr: Likewise.
7617 * modules/strstr-tests: Likewise.
7618 * tests/test-strstr.c: Likewise.
7619 * lib/string.in.h (rpl_strstr): Declare.
7620 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
7621 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
7622 * modules/string (Makefile.am): Likewise.
7623 * MODULES.html.sh (string handling): Mention new module.
7624 * doc/functions/strstr.texi (strstr): Document the bug.
7626 2008-01-10 Bruno Haible <bruno@clisp.org>
7628 * lib/relocatable.h (relocate): State whether result is freshly
7630 * lib/relocatable.c (relocate): Return a freshly allocated string
7631 instead of a pointer to a privately held string.
7632 Reported by Sylvain Beucler <beuc@gnu.org>.
7634 2008-01-10 Colin Watson <cjwatson@debian.org>
7636 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
7639 2008-01-09 Bruno Haible <bruno@clisp.org>
7641 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
7643 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
7644 if it's only a guess.
7645 * modules/memmem: Simplify by depending on memmem-simple.
7647 2008-01-09 Bruno Haible <bruno@clisp.org>
7649 Work around OpenBSD 4.0 tdelete() bug.
7650 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
7651 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
7652 macros and don't redefine the enum values.
7653 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
7654 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
7655 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
7657 2008-01-09 Bruno Haible <bruno@clisp.org>
7659 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
7660 (main): Don't perform the tests if setlocale did not install a UTF-8
7661 locale. Needed on OpenBSD 4.0.
7662 * modules/wcwidth-tests (Depends-on): Add localcharset.
7664 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
7666 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
7667 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
7668 * NEWS: announce this.
7669 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
7671 2008-01-09 Simon Josefsson <simon@josefsson.org>
7672 and Eric Blake <ebb9@byu.net>
7674 Add memmem-simple module.
7675 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
7676 (gl_FUNC_MEMMEM): Separate performance from presence checks.
7677 * modules/memmem-simple: New file.
7678 * modules/memmem (Description): Tweak.
7679 * MODULES.html.sh (string handling): Mention new module.
7680 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
7681 addressed by memmem-simple.
7682 * NEWS: Document the difference.
7684 2008-01-09 Eric Blake <ebb9@byu.net>
7686 Give gcc some memmem optimization hints.
7687 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
7688 (strcasestr): Declare as pure.
7689 * modules/memmem (Maintainer): Claim my implementation.
7691 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7693 Support AIX 6.1 and higher.
7694 * build-aux/config.libpath: Likewise.
7695 * build-aux/config.rpath: Likewise.
7697 2008-01-08 Jim Meyering <meyering@redhat.com>
7698 Bruno Haible <bruno@clisp.org>
7700 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
7701 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
7702 Reported by Peter Fales in
7703 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
7705 2008-01-08 Bruno Haible <bruno@clisp.org>
7707 * modules/unictype/category-of (Depends-on): Add
7708 unictype/category-none.
7709 * modules/unictype/category-and-tests (Depends-on): Add
7710 unictype/category-{L,N,Lu,Nd}.
7711 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
7712 * modules/unictype/category-or-tests (Depends-on): Add
7713 unictype/category-{L,N}.
7714 * modules/unictype/category-name-tests (Depends-on): Add
7715 unictype/category-{Z,Nl}.
7716 Reported by Simon Josefsson.
7718 2008-01-08 Bruno Haible <bruno@clisp.org>
7720 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
7722 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
7723 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
7724 Reported by Peter Miller <millerp@canb.auug.org.au>.
7726 2008-01-08 Eric Blake <ebb9@byu.net>
7728 Rewrite memmem to guarantee linear complexity without malloc.
7729 * lib/memmem.c (memmem): Use Two-Way rather than
7730 Knuth-Morris-Pratt, to allow O(1) space usage.
7731 (critical_factorization, two_way_short_needle)
7732 (two_way_long_needle): New functions.
7733 (knuth_morris_pratt): Delete.
7734 * modules/memmem (Depends-on): No longer need malloca or stdbool.
7736 * tests/test-memmem.c (main): Add tests for periodic needle and
7737 sublinear performance.
7738 * doc/functions/memmem.texi (memmem): Document other deficiencies
7739 in cygwin and older glibc.
7741 2008-01-08 Bruno Haible <bruno@clisp.org>
7743 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
7746 2008-01-08 Mike Frysinger <vapier@gentoo.org>
7748 Add a configure time option: --disable-acl.
7749 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
7752 2008-01-06 Simon Josefsson <simon@josefsson.org>
7754 * tests/test-localename.c: Don't include obsolete "setenv.h".
7756 * modules/localename-tests (Depends-on): Need unsetenv.
7758 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7760 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
7762 2008-01-06 Colin Watson <cjwatson@debian.org>
7764 * users.txt: Add man-db.
7766 2008-01-07 Bruno Haible <bruno@clisp.org>
7768 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
7769 previous section name.
7771 2008-01-07 Bruno Haible <bruno@clisp.org>
7773 * lib/progname.c (set_program_name): Don't strip off a leading
7774 "lt-" prefix outside a .libs directory.
7775 Suggested by Paul Eggert.
7777 2008-01-01 Sylvain Beucler <beuc@gnu.org>
7778 Bruno Haible <bruno@clisp.org>
7780 Improve memory cleanup in 'relocatable' module.
7781 * lib/relocatable.h (compute_curr_prefix): Change return type to
7783 * lib/relocatable.c (compute_curr_prefix): Change return type to
7784 'char *'. Free curr_installdir after use.
7785 (relocate): Free curr_prefix_better after use.
7786 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
7788 2008-01-01 Bruno Haible <bruno@clisp.org>
7790 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
7791 failure on older glibc systems.
7792 Reported by Peter Fales <psfales@alcatel-lucent.com>.
7794 2008-01-05 Eric Blake <ebb9@byu.net>
7796 Avoid quadratic system memmem.
7797 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
7798 Reported by Ralf Wildenhues.
7800 Fix memmem test for mingw.
7801 * modules/memmem-tests (configure.ac): Check for alarm.
7802 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
7804 * doc/functions/memmem.texi: New file.
7805 * doc/gnulib.texi (Function Substitutes): Add memmem.
7806 Reported by Bruno Haible.
7808 2008-01-04 Bruno Haible <bruno@clisp.org>
7810 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
7811 Require gl_HEADER_STRINGS_H_DEFAULTS, not
7812 gl_HEADER_STRING_H_DEFAULTS.
7814 2008-01-04 Eric Blake <ebb9@byu.net>
7816 Shorten duration of memmem test.
7817 * tests/test-memmem.c (main): Use alarm to declare failure if test
7819 Reported by Ralf Wildenhues.
7821 2007-12-21 Simon Josefsson <simon@josefsson.org>
7823 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
7824 string, needed by strerror.
7826 2008-01-03 Colin Watson <cjwatson@debian.org>
7827 Bruno Haible <bruno@clisp.org>
7829 * doc/gnulib-tool.texi (Localization): New section.
7831 2008-01-02 Bruno Haible <bruno@clisp.org>
7833 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
7834 variables to 'unsigned char *' type.
7835 Reported by Paul Eggert.
7837 2008-01-02 Jim Meyering <jim@meyering.net>
7839 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
7841 2007-12-31 Jim Meyering <jim@meyering.net>
7843 Avoid use of private FTS type name.
7844 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
7846 2007-12-30 Karl Berry <karl@gnu.org>
7848 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
7849 work around defect in Texinfo and/or the standalone Info browser.
7851 2007-12-30 Bruno Haible <bruno@clisp.org>
7853 Unify 5 copies of the KMP code.
7854 * lib/str-kmp.h: New file.
7855 * lib/c-strcasestr.c: Include str-kmp.h.
7856 (knuth_morris_pratt): Remove function.
7857 (c_strcasestr): Update.
7858 * lib/c-strstr.c: Include str-kmp.h.
7859 (knuth_morris_pratt): Remove function.
7860 (c_strcasestr): Update.
7861 * lib/mbscasestr.c: Include str-kmp.h.
7862 (knuth_morris_pratt_unibyte): Remove function.
7863 * lib/mbsstr.c: Include str-kmp.h.
7864 (knuth_morris_pratt_unibyte): Remove function.
7865 * lib/strcasestr.c: Include str-kmp.h.
7866 (knuth_morris_pratt): Remove function.
7867 (strcasestr): Update.
7868 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
7869 * modules/c-strstr (Files): Likewise.
7870 * modules/mbscasestr (Files): Likewise.
7871 * modules/mbsstr (Files): Likewise.
7872 * modules/strcasestr (Files): Likewise.
7873 Suggested by Paul Eggert.
7875 2007-12-30 Bruno Haible <bruno@clisp.org>
7877 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
7880 2007-12-30 Bruno Haible <bruno@clisp.org>
7882 * lib/xmalloca.h: Include xalloc.h.
7883 (xnmalloca): New macro.
7885 2007-12-30 Bruno Haible <bruno@clisp.org>
7887 * lib/malloca.h (nmalloca): New macro.
7888 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
7889 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
7890 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
7891 knuth_morris_pratt_multibyte): Likewise.
7892 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
7893 knuth_morris_pratt_multibyte): Likewise.
7894 * lib/memmem.c (knuth_morris_pratt): Likewise.
7895 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
7897 2007-12-25 Bruno Haible <bruno@clisp.org>
7899 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
7900 * lib/glob.c: Don't include openat.h.
7901 (link_exists2_p): Add back the code that deals with the
7902 !GLOB_ALTDIRFUNC case.
7903 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
7904 let it do the filename concatenation.
7905 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
7906 * modules/glob (Depends-on): Remove openat.
7908 2007-12-31 Bruno Haible <bruno@clisp.org>
7910 * modules/dirfd (License): Change to LGPLv2+.
7911 Approved by Jim Meyering.
7913 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
7915 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
7916 when multiplying M by sizeof (size_t).
7918 2007-12-10 Martin Lambers <marlam@marlam.de>
7920 Override getpagesize on mingw.
7921 * lib/getpagesize.c: New file.
7922 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
7923 * modules/getpagesize (Files): Add lib/getpagesize.c.
7924 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
7925 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7926 REPLACE_GETPAGESIZE.
7927 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
7929 2007-12-25 Bruno Haible <bruno@clisp.org>
7931 * modules/localcharset (Notice): New field.
7932 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
7933 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
7935 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
7936 Bruno Haible <bruno@clisp.org>
7938 Avoid using the syntax symbol() in formatted documentation.
7939 * MODULES.html.sh (func_module): When replacing symbol() with a
7940 hyperlink, remove the parentheses. Show an error if some remain.
7941 Recognize and render the '...' syntax.
7942 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
7943 Rework. Add paragraph about GCC's inlining.
7944 * doc/alloca.texi: Likewise.
7945 * doc/error.texi: Remove parentheses from symbol reference.
7946 * doc/gnulib-intro.texi: Likewise.
7947 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
7948 * modules/fnmatch (Description): Reword to say "the ... function".
7949 * modules/full-read (Description): Likewise.
7950 * modules/full-write (Description): Likewise.
7951 * modules/safe-read (Description): Likewise.
7952 * modules/safe-write (Description): Likewise.
7953 * modules/strchrnul (Description): Likewise.
7954 * modules/trim (Description): Likewise.
7955 * modules/error (Description): Remove parentheses from symbol
7957 * modules/verror (Description): Likewise.
7958 Reported by Karl Berry.
7960 2007-12-25 Bruno Haible <bruno@clisp.org>
7962 Fixup after 2007-10-16 commit.
7963 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
7965 2007-12-24 Bruno Haible <bruno@clisp.org>
7967 Make --enable-relocatable work with DESTDIR.
7968 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
7969 to compute installdir from destprog.
7970 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
7971 also set the RELOC_DESTDIR variable.
7972 Reported by Левашев Иван <octagram@bluebottle.com>.
7974 2007-12-24 Bruno Haible <bruno@clisp.org>
7976 Fix link error due to xalloc_die().
7977 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
7979 * lib/relocwrapper.c: Update comments.
7980 * build-aux/install-reloc: Remove xreadlink.c from file list.
7981 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
7983 Reported by Левашев Иван <octagram@bluebottle.com>.
7985 2007-12-24 Bruno Haible <bruno@clisp.org>
7987 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
7988 * lib/setenv.h: Remove file.
7989 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
7991 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
7992 (Depends-on): Add stdlib.
7993 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
7995 (Include): Replace setenv.h with <stdlib.h>.
7996 * modules/unsetenv: New file.
7997 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
7998 * lib/unsetenv.c: Include <stdlib.h> first.
7999 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
8000 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
8001 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
8002 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
8003 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
8004 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
8005 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
8006 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
8007 * doc/functions/unsetenv.texi: Update.
8008 * modules/xsetenv (Depends-on): Add unsetenv.
8009 * modules/getdate (Depends-on): Likewise.
8010 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
8011 * lib/xsetenv.c: Don't include setenv.h.
8012 * lib/getdate.y: Likewise.
8013 * lib/relocwrapper.c: Likewise.
8014 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
8015 (Depends-on): Add stdlib.
8016 * NEWS: Mention the changes.
8017 Reported by Левашев Иван <octagram@bluebottle.com>.
8019 2007-12-23 Bruno Haible <bruno@clisp.org>
8021 * lib/memmem.c (memmem): Use lowercase variable names. Tab
8024 2007-12-23 Bruno Haible <bruno@clisp.org>
8026 * lib/c-strcasestr.c: Add more comments.
8027 * lib/c-strstr.c: Likewise.
8028 * lib/mbscasestr.c: Likewise.
8029 * lib/mbsstr.c: Likewise.
8030 * lib/strcasestr.c: Likewise.
8031 * lib/memmem.c: Likewise.
8033 2007-12-23 Bruno Haible <bruno@clisp.org>
8035 * tests/test-memmem.c: Include <string.h> first.
8037 2007-12-22 Bruno Haible <bruno@clisp.org>
8039 * gnulib-tool (func_create_testdir): Change $auxdir while generating
8040 the contents of $testsbase.
8041 Reported by Ralf Wildenhues.
8043 2007-12-22 Bruno Haible <bruno@clisp.org>
8045 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
8046 two variables local_ldadd_before, local_ldadd_last.
8048 2007-12-20 Eric Blake <ebb9@byu.net>
8050 Work around circular library issue when cross-compiling.
8051 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
8052 that progname.o does not need to pull in rpl_memcmp.
8054 2007-12-19 Eric Blake <ebb9@byu.net>
8056 Fix memmem to avoid O(n^2) worst-case complexity.
8057 * lib/memmem.c (knuth_morris_pratt): New function.
8058 (memmem): Use it if first few naive iterations fail.
8059 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
8060 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
8061 * modules/memchr (License): Likewise.
8062 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
8064 * tests/test-memmem.c: Rewrite, borrowing ideas from
8065 test-mbsstr1.c; the old version wouldn't even compile!
8066 * modules/memmem-tests: New file.
8067 * lib/string.in.h (rpl_memmem): Add declaration.
8068 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
8069 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
8072 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
8074 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
8075 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
8076 before any system include files, and undef after them all. This
8077 should fix a problem on VMS reported by John E. Malmberg in
8078 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
8080 2007-12-17 Eric Blake <ebb9@byu.net>
8082 Revert addition of verify, for BSD/OS.
8083 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
8084 can't handle large files, for the sake of obsolete platforms.
8085 * modules/fseeko (Depends-on): Remove verify.
8086 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
8087 * doc/functions/ftello.texi (ftello): Likewise.
8088 * doc/functions/fgetpos.texi (fgetpos): Likewise.
8089 Reported by Larry Jones.
8091 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
8093 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
8094 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
8096 2007-12-17 Jim Meyering <meyering@redhat.com>
8098 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
8099 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
8100 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
8101 * modules/getcwd (Depends-on): Add openat.
8102 Reported by Petr Salinger.
8104 2007-12-17 Bruno Haible <bruno@clisp.org>
8106 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
8107 avoid a segmentation fault of the configure test on x86_64 systems.
8109 2007-12-15 Jim Meyering <meyering@redhat.com>
8111 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
8113 2007-12-13 Eric Blake <ebb9@byu.net>
8116 * tests/test-fseek.c (main): Also test ungetc handling.
8117 * tests/test-fseeko.c (main): Likewise.
8118 * modules/fseeko (Depends-on): Add verify.
8119 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
8121 Reported by Larry Jones.
8123 Fix fseeko on mingw.
8124 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
8127 Beef up fseek tests.
8128 * tests/test-fseek.c (main): Also test eof handling.
8129 * tests/test-fseeko.c (main): Likewise.
8130 Reported by Larry Jones.
8132 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
8134 Fix fseeko on BSD-based platforms.
8135 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
8138 2007-12-12 Eric Blake <ebb9@byu.net>
8140 Allow circular dependency of separate libtests.a
8141 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
8144 2007-12-11 Eric Blake <ebb9@byu.net>
8146 Fix bug with -0.0L in previous patch.
8147 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
8148 * tests/test-isnan.c (main): Also test on zeroes.
8149 * tests/test-isnanf.c (main): Likewise.
8150 * tests/test-isnanl.h (main): Likewise.
8152 Detect pseudo-denormals on x86 even when cross-compiling.
8153 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
8154 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
8155 invalid bit patterns that happen to satisfy ==.
8157 Avoid link failures with separate libtests.a.
8158 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
8159 last, to satisfy circular dependencies.
8161 2007-12-11 Eric Blake <ebb9@byu.net>
8162 and Bruno Haible <bruno@clisp.org>
8164 Fix OpenBSD 4.0 <float.h> handling of long double.
8165 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
8166 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
8167 * doc/headers/float.texi (float.h): Document OpenBSD bug.
8169 2007-12-11 Jim Meyering <meyering@redhat.com>
8171 * users.txt: Add libvirt.
8173 Support versions of autoconf prior to 2.59c.
8174 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
8175 if it is not already defined.
8177 2007-12-09 Bruno Haible <bruno@clisp.org>
8179 Let 'gnulib-tool --import' collect sources needed for the tests in
8180 tests/ rather than in lib/.
8181 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
8182 argument. If true, add rules to generate libtests.a, and put libtests.a
8183 into $(LDADD). Consider source files in subdirectories and set
8185 (func_emit_initmacro_start, func_emit_initmacro_end,
8186 func_emit_initmacro_done): Pass all arguments explicitly.
8187 (func_import): Determine two module lists main_modules,
8188 testsrelated_modules. Determine use_libtests. Determine two variables
8189 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
8190 instead of just sed_transform_lib_file. Determine two variables
8191 main_files and testsrelated_files. Compute 'files' as the union of
8192 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
8193 func_add_or_update. In the generated gnulib-comp.m4, collect the
8194 object files for tests/ in different variables than those for lib/.
8195 Substitute LIBTESTS_LIBDEPS.
8196 (func_create_testdir): Combine the uses_subdirs results from
8197 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
8199 2007-12-09 Bruno Haible <bruno@clisp.org>
8201 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
8202 the build-aux directory.
8204 2007-12-09 Bruno Haible <bruno@clisp.org>
8206 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
8207 introduced on 2006-09-09.
8209 2007-12-07 Jim Meyering <meyering@redhat.com>
8211 Let these macros work also with autoconf-2.59.
8212 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
8213 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
8214 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8216 2007-12-06 Jim Meyering <meyering@redhat.com>
8218 Avoid a configure-time syntax error in gl_FUNC_ACL.
8219 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
8220 function in each branch, before testing the cache variable.
8222 2007-12-04 Eric Blake <ebb9@byu.net>
8224 Make scripts executable.
8225 * build-aux/config.guess: Add execute permissions.
8226 * build-aux/config.sub: Likewise.
8227 * build-aux/gendocs.sh: Likewise.
8230 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
8232 * doc/functions/frexp.texi (frexp): Document the bug.
8234 Make cygwin fseeko check more reliable.
8235 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
8236 version numbers, rather than unrelated feature check.
8237 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
8238 * doc/functions/ftello.texi (ftello): Likewise.
8239 Reported by Bruno Haible.
8241 * m4/strerror.m4: Bump version number.
8243 2007-12-03 Bruno Haible <bruno@clisp.org>
8245 * doc/functions/mprotect.texi: Mention the mingw problem.
8247 2007-12-03 Eric Blake <ebb9@byu.net>
8249 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
8250 REPLACE_STRERROR is initialized before this macro.
8252 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
8254 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
8255 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
8256 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
8257 put -lsec in even for programs other than 'ls'. This fixes a problem
8258 for gettext reported by Bruno Haible in
8259 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
8260 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
8261 Add support for Solaris 10. This isn't efficient, but should get the
8264 2007-12-03 James Youngman <jay@gnu.org>
8266 * doc/regexprops-generic.texi: change "an close-group" to "a
8267 close-group" and "illegal" to "not allowed".
8269 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8271 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
8272 pr_byname.h. Needed for the rare case when the maintainer has done
8273 "make maintainer-clean" in the source directory and then attempts a
8274 build outside the source directory.
8275 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
8278 2007-12-02 Martin Lambers <marlam@marlam.de>
8279 Bruno Haible <bruno@clisp.org>
8281 * lib/getpagesize.h: Remove file.
8282 * lib/unistd.in.h: Include declaration of getpagesize here.
8283 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
8284 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
8286 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
8287 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
8288 * modules/getpagesize (Files): Remove lib/getpagesize.h.
8289 (Depends-on): Add unistd.
8290 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8291 (Include): Use <unistd.h> instead of getpagesize.h.
8292 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
8293 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
8294 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
8295 gl_GETPAGESIZE invocation, already handled by module dependency.
8296 * lib/pagealign_alloc.c: Don't include getpagesize.h.
8298 2007-12-02 Bruno Haible <bruno@clisp.org>
8300 * modules/strings-tests: New file.
8301 * tests/test-strings.c: New file.
8303 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
8304 * lib/strings.in.h: New file.
8305 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
8306 * m4/strings_h.m4: New file.
8307 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
8308 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
8309 * modules/strings: New file.
8310 * modules/string (Makefile.am): Update.
8311 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
8312 Reported by Karl Berry.
8314 2007-12-01 Eric Blake <ebb9@byu.net>
8316 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
8317 accomodate fix in cygwin 1.5.25.
8319 2007-12-01 Jim Meyering <meyering@redhat.com>
8321 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
8322 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
8323 that would inhibit utf8-optimization of a regexp containing line-
8324 or buffer-anchors, e.g., `^', `$'.
8326 2007-11-30 Bruno Haible <bruno@clisp.org>
8328 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
8329 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
8330 glthread_recursive_lock_init.
8331 * lib/lock.c (glthread_recursive_lock_init)
8332 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
8333 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8335 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
8337 New function qset_acl, like set_acl but with syscall semantics.
8338 * lib/acl.h (qset_acl): New decl.
8339 * lib/acl.c (qset_acl): New function.
8340 (set_acl): Use new function. Use more-consistent diagnostics.
8342 2007-11-28 Jim Meyering <meyering@redhat.com>
8344 * modules/physmem (License): Change from GPL to LGPLv2+.
8346 2007-11-26 Bruno Haible <bruno@clisp.org>
8348 * lib/vasnprintf.c (decode_long_double): Don't abort if the
8349 'long double' type has excess precision.
8350 Reported by Jim Meyering in
8351 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
8353 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8355 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
8356 Sync from <http://gnu.org/licenses>.
8357 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
8358 with license text from same location.
8359 * doc/maintain.texi, doc/standards.texi: Sync from
8360 <http://savannah.gnu.org/projects/gnustandards>.
8362 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
8363 and Jim Meyering <meyering@redhat.com>
8365 Adjust getdate' grammar to accept a slightly more regular language.
8366 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
8367 Before, the former was rejected.
8368 * lib/getdate.y (digits_to_date_time): New function, factored
8370 (number): ...here. Just call digits_to_date_time.
8371 (hybrid): New non-terminal to handle an <unsigned number,
8372 signed relative offset> sequence consistently.
8374 2007-11-18 Jim Meyering <meyering@redhat.com>
8376 Pull my changes from coreutils:
8377 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
8378 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
8379 use of $gnulib_tool_option_extras, so that it's separated from the
8382 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
8383 * build-aux/bootstrap (cp_mark_as_generated): Create any required
8384 parent destination directories before copying a file into place.
8386 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
8388 bootstrap: work also with 4-argument variant of AC_INIT
8389 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
8391 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
8393 Port test-getaddrinfo to Solaris.
8394 Problem reported by Bruno Haible in
8395 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
8396 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
8397 explanation of setting 'hints'.
8398 Don't reject an implementation merely because it returns EAI_SERVICE.
8399 (EAI_SERVICE): Define to 0 if not defined.
8401 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
8403 The license of gnu-make and posix-shell is now "GPLed build tool".
8404 * modules/gnu-make (License): Likewise.
8405 * modules/posix-shell (License): Likewise.
8407 New module posix-shell, for determining a POSIX shell
8408 or perhaps something that is close enough to a POSIX shell.
8409 * m4/posix-shell.m4: New file.
8410 * modules/posix-shell: New file.
8412 * MODULES.html.sh: Mention new module.
8414 New module gnu-make, for determining whether we're using GNU Make.
8415 * m4/gnu-make.m4: New file.
8416 * modules/gnu-make: New file.
8417 * MODULES.html.sh: Mention new module.
8419 2007-11-14 Jim Meyering <meyering@redhat.com>
8421 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
8422 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
8423 use this macro to create a function _definition_.
8424 Remove useless "#undef ARGMATCH_DIE".
8426 2007-11-14 Bruno Haible <bruno@clisp.org>
8428 * lib/config.charset: Update for OpenBSD 4.1.
8429 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
8431 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
8433 Document 64-bit #if problems in stdint.texi.
8434 * doc/headers/stdint.texi (stdint.h): Mention problems with
8435 64-bit-#if, and how to work around them.
8437 Don't insist on 'long long int' support in the preprocessor. It
8438 breaks too many things. For example, PRIdMAX still uses a 'long
8439 long int' format with the latest Sun compiler, even though
8440 HAVE_LONG_LONG_INT isn't defined due to that compiler's
8441 preprocessor problem. This causes the latest coreutils to dump
8442 core on Solaris 10 sparc with the Sun C compiler.
8443 Instead, fix the 2007-10-16 problem in a different way, by evaluating
8444 the troublesome expressions at configure-time, not at #if-time.
8445 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
8447 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
8448 compile-time C checks, done at 'configure'-time.
8449 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
8450 * modules/inttypes (Makefile): Substitute the new symbols that
8451 gl_INTTYPES_H now generates.
8452 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
8454 2007-11-12 Bruno Haible <bruno@clisp.org>
8456 Tests for Unicode character classification functions.
8458 * modules/unictype/bidicategory-byname-tests: New file.
8459 * modules/unictype/bidicategory-name-tests: New file.
8460 * modules/unictype/bidicategory-of-tests: New file.
8461 * modules/unictype/bidicategory-test-tests: New file.
8462 * modules/unictype/block-list-tests: New file.
8463 * modules/unictype/block-of-tests: New file.
8464 * modules/unictype/block-test-tests: New file.
8465 * modules/unictype/category-C-tests: New file.
8466 * modules/unictype/category-Cc-tests: New file.
8467 * modules/unictype/category-Cf-tests: New file.
8468 * modules/unictype/category-Cn-tests: New file.
8469 * modules/unictype/category-Co-tests: New file.
8470 * modules/unictype/category-Cs-tests: New file.
8471 * modules/unictype/category-L-tests: New file.
8472 * modules/unictype/category-Ll-tests: New file.
8473 * modules/unictype/category-Lm-tests: New file.
8474 * modules/unictype/category-Lo-tests: New file.
8475 * modules/unictype/category-Lt-tests: New file.
8476 * modules/unictype/category-Lu-tests: New file.
8477 * modules/unictype/category-M-tests: New file.
8478 * modules/unictype/category-Mc-tests: New file.
8479 * modules/unictype/category-Me-tests: New file.
8480 * modules/unictype/category-Mn-tests: New file.
8481 * modules/unictype/category-N-tests: New file.
8482 * modules/unictype/category-Nd-tests: New file.
8483 * modules/unictype/category-Nl-tests: New file.
8484 * modules/unictype/category-No-tests: New file.
8485 * modules/unictype/category-P-tests: New file.
8486 * modules/unictype/category-Pc-tests: New file.
8487 * modules/unictype/category-Pd-tests: New file.
8488 * modules/unictype/category-Pe-tests: New file.
8489 * modules/unictype/category-Pf-tests: New file.
8490 * modules/unictype/category-Pi-tests: New file.
8491 * modules/unictype/category-Po-tests: New file.
8492 * modules/unictype/category-Ps-tests: New file.
8493 * modules/unictype/category-S-tests: New file.
8494 * modules/unictype/category-Sc-tests: New file.
8495 * modules/unictype/category-Sk-tests: New file.
8496 * modules/unictype/category-Sm-tests: New file.
8497 * modules/unictype/category-So-tests: New file.
8498 * modules/unictype/category-Z-tests: New file.
8499 * modules/unictype/category-Zl-tests: New file.
8500 * modules/unictype/category-Zp-tests: New file.
8501 * modules/unictype/category-Zs-tests: New file.
8502 * modules/unictype/category-and-not-tests: New file.
8503 * modules/unictype/category-and-tests: New file.
8504 * modules/unictype/category-byname-tests: New file.
8505 * modules/unictype/category-name-tests: New file.
8506 * modules/unictype/category-none-tests: New file.
8507 * modules/unictype/category-of-tests: New file.
8508 * modules/unictype/category-or-tests: New file.
8509 * modules/unictype/category-test-withtable-tests: New file.
8510 * modules/unictype/combining-class-tests: New file.
8511 * modules/unictype/ctype-alnum-tests: New file.
8512 * modules/unictype/ctype-alpha-tests: New file.
8513 * modules/unictype/ctype-blank-tests: New file.
8514 * modules/unictype/ctype-cntrl-tests: New file.
8515 * modules/unictype/ctype-digit-tests: New file.
8516 * modules/unictype/ctype-graph-tests: New file.
8517 * modules/unictype/ctype-lower-tests: New file.
8518 * modules/unictype/ctype-print-tests: New file.
8519 * modules/unictype/ctype-punct-tests: New file.
8520 * modules/unictype/ctype-space-tests: New file.
8521 * modules/unictype/ctype-upper-tests: New file.
8522 * modules/unictype/ctype-xdigit-tests: New file.
8523 * modules/unictype/decimal-digit-tests: New file.
8524 * modules/unictype/digit-tests: New file.
8525 * modules/unictype/mirror-tests: New file.
8526 * modules/unictype/numeric-tests: New file.
8527 * modules/unictype/property-alphabetic-tests: New file.
8528 * modules/unictype/property-ascii-hex-digit-tests: New file.
8529 * modules/unictype/property-bidi-arabic-digit-tests: New file.
8530 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
8531 * modules/unictype/property-bidi-block-separator-tests: New file.
8532 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
8533 * modules/unictype/property-bidi-common-separator-tests: New file.
8534 * modules/unictype/property-bidi-control-tests: New file.
8535 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
8536 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
8537 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
8538 * modules/unictype/property-bidi-european-digit-tests: New file.
8539 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
8540 * modules/unictype/property-bidi-left-to-right-tests: New file.
8541 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
8542 * modules/unictype/property-bidi-other-neutral-tests: New file.
8543 * modules/unictype/property-bidi-pdf-tests: New file.
8544 * modules/unictype/property-bidi-segment-separator-tests: New file.
8545 * modules/unictype/property-bidi-whitespace-tests: New file.
8546 * modules/unictype/property-byname-tests: New file.
8547 * modules/unictype/property-combining-tests: New file.
8548 * modules/unictype/property-composite-tests: New file.
8549 * modules/unictype/property-currency-symbol-tests: New file.
8550 * modules/unictype/property-dash-tests: New file.
8551 * modules/unictype/property-decimal-digit-tests: New file.
8552 * modules/unictype/property-default-ignorable-code-point-tests: New file.
8553 * modules/unictype/property-deprecated-tests: New file.
8554 * modules/unictype/property-diacritic-tests: New file.
8555 * modules/unictype/property-extender-tests: New file.
8556 * modules/unictype/property-format-control-tests: New file.
8557 * modules/unictype/property-grapheme-base-tests: New file.
8558 * modules/unictype/property-grapheme-extend-tests: New file.
8559 * modules/unictype/property-grapheme-link-tests: New file.
8560 * modules/unictype/property-hex-digit-tests: New file.
8561 * modules/unictype/property-hyphen-tests: New file.
8562 * modules/unictype/property-id-continue-tests: New file.
8563 * modules/unictype/property-id-start-tests: New file.
8564 * modules/unictype/property-ideographic-tests: New file.
8565 * modules/unictype/property-ids-binary-operator-tests: New file.
8566 * modules/unictype/property-ids-trinary-operator-tests: New file.
8567 * modules/unictype/property-ignorable-control-tests: New file.
8568 * modules/unictype/property-iso-control-tests: New file.
8569 * modules/unictype/property-join-control-tests: New file.
8570 * modules/unictype/property-left-of-pair-tests: New file.
8571 * modules/unictype/property-line-separator-tests: New file.
8572 * modules/unictype/property-logical-order-exception-tests: New file.
8573 * modules/unictype/property-lowercase-tests: New file.
8574 * modules/unictype/property-math-tests: New file.
8575 * modules/unictype/property-non-break-tests: New file.
8576 * modules/unictype/property-not-a-character-tests: New file.
8577 * modules/unictype/property-numeric-tests: New file.
8578 * modules/unictype/property-other-alphabetic-tests: New file.
8579 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
8580 * modules/unictype/property-other-grapheme-extend-tests: New file.
8581 * modules/unictype/property-other-id-continue-tests: New file.
8582 * modules/unictype/property-other-id-start-tests: New file.
8583 * modules/unictype/property-other-lowercase-tests: New file.
8584 * modules/unictype/property-other-math-tests: New file.
8585 * modules/unictype/property-other-uppercase-tests: New file.
8586 * modules/unictype/property-paired-punctuation-tests: New file.
8587 * modules/unictype/property-paragraph-separator-tests: New file.
8588 * modules/unictype/property-pattern-syntax-tests: New file.
8589 * modules/unictype/property-pattern-white-space-tests: New file.
8590 * modules/unictype/property-private-use-tests: New file.
8591 * modules/unictype/property-punctuation-tests: New file.
8592 * modules/unictype/property-quotation-mark-tests: New file.
8593 * modules/unictype/property-radical-tests: New file.
8594 * modules/unictype/property-sentence-terminal-tests: New file.
8595 * modules/unictype/property-soft-dotted-tests: New file.
8596 * modules/unictype/property-space-tests: New file.
8597 * modules/unictype/property-terminal-punctuation-tests: New file.
8598 * modules/unictype/property-test-tests: New file.
8599 * modules/unictype/property-titlecase-tests: New file.
8600 * modules/unictype/property-unassigned-code-value-tests: New file.
8601 * modules/unictype/property-unified-ideograph-tests: New file.
8602 * modules/unictype/property-uppercase-tests: New file.
8603 * modules/unictype/property-variation-selector-tests: New file.
8604 * modules/unictype/property-white-space-tests: New file.
8605 * modules/unictype/property-xid-continue-tests: New file.
8606 * modules/unictype/property-xid-start-tests: New file.
8607 * modules/unictype/property-zero-width-tests: New file.
8608 * modules/unictype/scripts-tests: New file.
8609 * modules/unictype/syntax-c-ident-tests: New file.
8610 * modules/unictype/syntax-c-whitespace-tests: New file.
8611 * modules/unictype/syntax-java-ident-tests: New file.
8612 * modules/unictype/syntax-java-whitespace-tests: New file.
8613 * tests/unictype/test-bidi_byname.c: New file.
8614 * tests/unictype/test-bidi_name.c: New file.
8615 * tests/unictype/test-bidi_of.c: New file.
8616 * tests/unictype/test-bidi_test.c: New file.
8617 * tests/unictype/test-block_list.c: New file.
8618 * tests/unictype/test-block_of.c: New file.
8619 * tests/unictype/test-block_test.c: New file.
8620 * tests/unictype/test-categ_and.c: New file.
8621 * tests/unictype/test-categ_and_not.c: New file.
8622 * tests/unictype/test-categ_byname.c: New file.
8623 * tests/unictype/test-categ_name.c: New file.
8624 * tests/unictype/test-categ_none.c: New file.
8625 * tests/unictype/test-categ_of.c: New file.
8626 * tests/unictype/test-categ_or.c: New file.
8627 * tests/unictype/test-categ_test_withtable.c: New file.
8628 * tests/unictype/test-combining.c: New file.
8629 * tests/unictype/test-decdigit.c: New file.
8630 * tests/unictype/test-digit.c: New file.
8631 * tests/unictype/test-mirror.c: New file.
8632 * tests/unictype/test-numeric.c: New file.
8633 * tests/unictype/test-pr_byname.c: New file.
8634 * tests/unictype/test-pr_test.c: New file.
8635 * tests/unictype/test-predicate-part1.h: New file.
8636 * tests/unictype/test-predicate-part2.h: New file.
8637 * tests/unictype/test-scripts.c: New file.
8638 * tests/unictype/test-sy_c_ident.c: New file.
8639 * tests/unictype/test-sy_java_ident.c: New file.
8641 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
8643 * tests/unictype/test-categ_Cc.c: Likewise.
8644 * tests/unictype/test-categ_Cf.c: Likewise.
8645 * tests/unictype/test-categ_Cn.c: Likewise.
8646 * tests/unictype/test-categ_Co.c: Likewise.
8647 * tests/unictype/test-categ_Cs.c: Likewise.
8648 * tests/unictype/test-categ_L.c: Likewise.
8649 * tests/unictype/test-categ_Ll.c: Likewise.
8650 * tests/unictype/test-categ_Lm.c: Likewise.
8651 * tests/unictype/test-categ_Lo.c: Likewise.
8652 * tests/unictype/test-categ_Lt.c: Likewise.
8653 * tests/unictype/test-categ_Lu.c: Likewise.
8654 * tests/unictype/test-categ_M.c: Likewise.
8655 * tests/unictype/test-categ_Mc.c: Likewise.
8656 * tests/unictype/test-categ_Me.c: Likewise.
8657 * tests/unictype/test-categ_Mn.c: Likewise.
8658 * tests/unictype/test-categ_N.c: Likewise.
8659 * tests/unictype/test-categ_Nd.c: Likewise.
8660 * tests/unictype/test-categ_Nl.c: Likewise.
8661 * tests/unictype/test-categ_No.c: Likewise.
8662 * tests/unictype/test-categ_P.c: Likewise.
8663 * tests/unictype/test-categ_Pc.c: Likewise.
8664 * tests/unictype/test-categ_Pd.c: Likewise.
8665 * tests/unictype/test-categ_Pe.c: Likewise.
8666 * tests/unictype/test-categ_Pf.c: Likewise.
8667 * tests/unictype/test-categ_Pi.c: Likewise.
8668 * tests/unictype/test-categ_Po.c: Likewise.
8669 * tests/unictype/test-categ_Ps.c: Likewise.
8670 * tests/unictype/test-categ_S.c: Likewise.
8671 * tests/unictype/test-categ_Sc.c: Likewise.
8672 * tests/unictype/test-categ_Sk.c: Likewise.
8673 * tests/unictype/test-categ_Sm.c: Likewise.
8674 * tests/unictype/test-categ_So.c: Likewise.
8675 * tests/unictype/test-categ_Z.c: Likewise.
8676 * tests/unictype/test-categ_Zl.c: Likewise.
8677 * tests/unictype/test-categ_Zp.c: Likewise.
8678 * tests/unictype/test-categ_Zs.c: Likewise.
8679 * tests/unictype/test-ctype_alnum.c: Likewise.
8680 * tests/unictype/test-ctype_alpha.c: Likewise.
8681 * tests/unictype/test-ctype_blank.c: Likewise.
8682 * tests/unictype/test-ctype_cntrl.c: Likewise.
8683 * tests/unictype/test-ctype_digit.c: Likewise.
8684 * tests/unictype/test-ctype_graph.c: Likewise.
8685 * tests/unictype/test-ctype_lower.c: Likewise.
8686 * tests/unictype/test-ctype_print.c: Likewise.
8687 * tests/unictype/test-ctype_punct.c: Likewise.
8688 * tests/unictype/test-ctype_space.c: Likewise.
8689 * tests/unictype/test-ctype_upper.c: Likewise.
8690 * tests/unictype/test-ctype_xdigit.c: Likewise.
8691 * tests/unictype/test-decdigit.h: Likewise.
8692 * tests/unictype/test-digit.h: Likewise.
8693 * tests/unictype/test-numeric.h: Likewise.
8694 * tests/unictype/test-pr_alphabetic.c: Likewise.
8695 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
8696 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8697 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8698 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
8699 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8700 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
8701 * tests/unictype/test-pr_bidi_control.c: Likewise.
8702 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
8703 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
8704 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8705 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
8706 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8707 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8708 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8709 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8710 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
8711 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
8712 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
8713 * tests/unictype/test-pr_combining.c: Likewise.
8714 * tests/unictype/test-pr_composite.c: Likewise.
8715 * tests/unictype/test-pr_currency_symbol.c: Likewise.
8716 * tests/unictype/test-pr_dash.c: Likewise.
8717 * tests/unictype/test-pr_decimal_digit.c: Likewise.
8718 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
8719 * tests/unictype/test-pr_deprecated.c: Likewise.
8720 * tests/unictype/test-pr_diacritic.c: Likewise.
8721 * tests/unictype/test-pr_extender.c: Likewise.
8722 * tests/unictype/test-pr_format_control.c: Likewise.
8723 * tests/unictype/test-pr_grapheme_base.c: Likewise.
8724 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8725 * tests/unictype/test-pr_grapheme_link.c: Likewise.
8726 * tests/unictype/test-pr_hex_digit.c: Likewise.
8727 * tests/unictype/test-pr_hyphen.c: Likewise.
8728 * tests/unictype/test-pr_id_continue.c: Likewise.
8729 * tests/unictype/test-pr_id_start.c: Likewise.
8730 * tests/unictype/test-pr_ideographic.c: Likewise.
8731 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
8732 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
8733 * tests/unictype/test-pr_ignorable_control.c: Likewise.
8734 * tests/unictype/test-pr_iso_control.c: Likewise.
8735 * tests/unictype/test-pr_join_control.c: Likewise.
8736 * tests/unictype/test-pr_left_of_pair.c: Likewise.
8737 * tests/unictype/test-pr_line_separator.c: Likewise.
8738 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
8739 * tests/unictype/test-pr_lowercase.c: Likewise.
8740 * tests/unictype/test-pr_math.c: Likewise.
8741 * tests/unictype/test-pr_non_break.c: Likewise.
8742 * tests/unictype/test-pr_not_a_character.c: Likewise.
8743 * tests/unictype/test-pr_numeric.c: Likewise.
8744 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8745 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
8746 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
8747 * tests/unictype/test-pr_other_id_continue.c: Likewise.
8748 * tests/unictype/test-pr_other_id_start.c: Likewise.
8749 * tests/unictype/test-pr_other_lowercase.c: Likewise.
8750 * tests/unictype/test-pr_other_math.c: Likewise.
8751 * tests/unictype/test-pr_other_uppercase.c: Likewise.
8752 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
8753 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
8754 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
8755 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
8756 * tests/unictype/test-pr_private_use.c: Likewise.
8757 * tests/unictype/test-pr_punctuation.c: Likewise.
8758 * tests/unictype/test-pr_quotation_mark.c: Likewise.
8759 * tests/unictype/test-pr_radical.c: Likewise.
8760 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8761 * tests/unictype/test-pr_soft_dotted.c: Likewise.
8762 * tests/unictype/test-pr_space.c: Likewise.
8763 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8764 * tests/unictype/test-pr_titlecase.c: Likewise.
8765 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8766 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8767 * tests/unictype/test-pr_uppercase.c: Likewise.
8768 * tests/unictype/test-pr_variation_selector.c: Likewise.
8769 * tests/unictype/test-pr_white_space.c: Likewise.
8770 * tests/unictype/test-pr_xid_continue.c: Likewise.
8771 * tests/unictype/test-pr_xid_start.c: Likewise.
8772 * tests/unictype/test-pr_zero_width.c: Likewise.
8773 * tests/unictype/test-sy_c_whitespace.c: Likewise.
8774 * tests/unictype/test-sy_java_whitespace.c: Likewise.
8776 2007-11-12 Bruno Haible <bruno@clisp.org>
8778 Unicode character classification functions.
8779 * lib/unictype.h: New file.
8780 * modules/unictype/base: New file.
8781 * modules/unictype/category-L: New file.
8782 * modules/unictype/category-Lu: New file.
8783 * modules/unictype/category-Ll: New file.
8784 * modules/unictype/category-Lt: New file.
8785 * modules/unictype/category-Lm: New file.
8786 * modules/unictype/category-Lo: New file.
8787 * modules/unictype/category-M: New file.
8788 * modules/unictype/category-Mn: New file.
8789 * modules/unictype/category-Mc: New file.
8790 * modules/unictype/category-Me: New file.
8791 * modules/unictype/category-N: New file.
8792 * modules/unictype/category-Nd: New file.
8793 * modules/unictype/category-Nl: New file.
8794 * modules/unictype/category-No: New file.
8795 * modules/unictype/category-P: New file.
8796 * modules/unictype/category-Pc: New file.
8797 * modules/unictype/category-Pd: New file.
8798 * modules/unictype/category-Ps: New file.
8799 * modules/unictype/category-Pe: New file.
8800 * modules/unictype/category-Pi: New file.
8801 * modules/unictype/category-Pf: New file.
8802 * modules/unictype/category-Po: New file.
8803 * modules/unictype/category-S: New file.
8804 * modules/unictype/category-Sm: New file.
8805 * modules/unictype/category-Sc: New file.
8806 * modules/unictype/category-Sk: New file.
8807 * modules/unictype/category-So: New file.
8808 * modules/unictype/category-Z: New file.
8809 * modules/unictype/category-Zs: New file.
8810 * modules/unictype/category-Zl: New file.
8811 * modules/unictype/category-Zp: New file.
8812 * modules/unictype/category-C: New file.
8813 * modules/unictype/category-Cc: New file.
8814 * modules/unictype/category-Cf: New file.
8815 * modules/unictype/category-Cs: New file.
8816 * modules/unictype/category-Co: New file.
8817 * modules/unictype/category-Cn: New file.
8818 * modules/unictype/category-or: New file.
8819 * modules/unictype/category-of: New file.
8820 * modules/unictype/category-test: New file.
8821 * modules/unictype/category-test-withtable: New file.
8822 * modules/unictype/category-byname: New file.
8823 * modules/unictype/category-none: New file.
8824 * modules/unictype/category-and: New file.
8825 * modules/unictype/category-and-not: New file.
8826 * modules/unictype/category-name: New file.
8827 * modules/unictype/combining-class: New file.
8828 * modules/unictype/category-all: New file.
8829 * modules/unictype/bidicategory-all: New file.
8830 * modules/unictype/bidicategory-byname: New file.
8831 * modules/unictype/bidicategory-name: New file.
8832 * modules/unictype/bidicategory-of: New file.
8833 * modules/unictype/bidicategory-test: New file.
8834 * modules/unictype/decimal-digit: New file.
8835 * modules/unictype/digit: New file.
8836 * modules/unictype/numeric: New file.
8837 * modules/unictype/mirror: New file.
8838 * modules/unictype/property-white-space: New file.
8839 * modules/unictype/property-alphabetic: New file.
8840 * modules/unictype/property-other-alphabetic: New file.
8841 * modules/unictype/property-not-a-character: New file.
8842 * modules/unictype/property-default-ignorable-code-point: New file.
8843 * modules/unictype/property-other-default-ignorable-code-point: New
8845 * modules/unictype/property-deprecated: New file.
8846 * modules/unictype/property-logical-order-exception: New file.
8847 * modules/unictype/property-variation-selector: New file.
8848 * modules/unictype/property-private-use: New file.
8849 * modules/unictype/property-unassigned-code-value: New file.
8850 * modules/unictype/property-uppercase: New file.
8851 * modules/unictype/property-other-uppercase: New file.
8852 * modules/unictype/property-lowercase: New file.
8853 * modules/unictype/property-other-lowercase: New file.
8854 * modules/unictype/property-titlecase: New file.
8855 * modules/unictype/property-soft-dotted: New file.
8856 * modules/unictype/property-id-start: New file.
8857 * modules/unictype/property-other-id-start: New file.
8858 * modules/unictype/property-id-continue: New file.
8859 * modules/unictype/property-other-id-continue: New file.
8860 * modules/unictype/property-xid-start: New file.
8861 * modules/unictype/property-xid-continue: New file.
8862 * modules/unictype/property-pattern-white-space: New file.
8863 * modules/unictype/property-pattern-syntax: New file.
8864 * modules/unictype/property-join-control: New file.
8865 * modules/unictype/property-grapheme-base: New file.
8866 * modules/unictype/property-grapheme-extend: New file.
8867 * modules/unictype/property-other-grapheme-extend: New file.
8868 * modules/unictype/property-grapheme-link: New file.
8869 * modules/unictype/property-bidi-control: New file.
8870 * modules/unictype/property-bidi-left-to-right: New file.
8871 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
8872 * modules/unictype/property-bidi-arabic-right-to-left: New file.
8873 * modules/unictype/property-bidi-european-digit: New file.
8874 * modules/unictype/property-bidi-eur-num-separator: New file.
8875 * modules/unictype/property-bidi-eur-num-terminator: New file.
8876 * modules/unictype/property-bidi-arabic-digit: New file.
8877 * modules/unictype/property-bidi-common-separator: New file.
8878 * modules/unictype/property-bidi-block-separator: New file.
8879 * modules/unictype/property-bidi-segment-separator: New file.
8880 * modules/unictype/property-bidi-whitespace: New file.
8881 * modules/unictype/property-bidi-non-spacing-mark: New file.
8882 * modules/unictype/property-bidi-boundary-neutral: New file.
8883 * modules/unictype/property-bidi-pdf: New file.
8884 * modules/unictype/property-bidi-embedding-or-override: New file.
8885 * modules/unictype/property-bidi-other-neutral: New file.
8886 * modules/unictype/property-hex-digit: New file.
8887 * modules/unictype/property-ascii-hex-digit: New file.
8888 * modules/unictype/property-ideographic: New file.
8889 * modules/unictype/property-unified-ideograph: New file.
8890 * modules/unictype/property-radical: New file.
8891 * modules/unictype/property-ids-binary-operator: New file.
8892 * modules/unictype/property-ids-trinary-operator: New file.
8893 * modules/unictype/property-zero-width: New file.
8894 * modules/unictype/property-space: New file.
8895 * modules/unictype/property-non-break: New file.
8896 * modules/unictype/property-iso-control: New file.
8897 * modules/unictype/property-format-control: New file.
8898 * modules/unictype/property-dash: New file.
8899 * modules/unictype/property-hyphen: New file.
8900 * modules/unictype/property-punctuation: New file.
8901 * modules/unictype/property-line-separator: New file.
8902 * modules/unictype/property-paragraph-separator: New file.
8903 * modules/unictype/property-quotation-mark: New file.
8904 * modules/unictype/property-sentence-terminal: New file.
8905 * modules/unictype/property-terminal-punctuation: New file.
8906 * modules/unictype/property-currency-symbol: New file.
8907 * modules/unictype/property-math: New file.
8908 * modules/unictype/property-other-math: New file.
8909 * modules/unictype/property-paired-punctuation: New file.
8910 * modules/unictype/property-left-of-pair: New file.
8911 * modules/unictype/property-combining: New file.
8912 * modules/unictype/property-composite: New file.
8913 * modules/unictype/property-decimal-digit: New file.
8914 * modules/unictype/property-numeric: New file.
8915 * modules/unictype/property-diacritic: New file.
8916 * modules/unictype/property-extender: New file.
8917 * modules/unictype/property-ignorable-control: New file.
8918 * modules/unictype/property-test: New file.
8919 * modules/unictype/property-byname: New file.
8920 * modules/unictype/property-all: New file.
8921 * modules/unictype/scripts: New file.
8922 * modules/unictype/scripts-all: New file.
8923 * modules/unictype/block-of: New file.
8924 * modules/unictype/block-test: New file.
8925 * modules/unictype/block-list: New file.
8926 * modules/unictype/block-all: New file.
8927 * modules/unictype/syntax-c-whitespace: New file.
8928 * modules/unictype/syntax-java-whitespace: New file.
8929 * modules/unictype/syntax-c-ident: New file.
8930 * modules/unictype/syntax-java-ident: New file.
8931 * modules/unictype/ctype-alnum: New file.
8932 * modules/unictype/ctype-alpha: New file.
8933 * modules/unictype/ctype-cntrl: New file.
8934 * modules/unictype/ctype-digit: New file.
8935 * modules/unictype/ctype-graph: New file.
8936 * modules/unictype/ctype-lower: New file.
8937 * modules/unictype/ctype-print: New file.
8938 * modules/unictype/ctype-punct: New file.
8939 * modules/unictype/ctype-space: New file.
8940 * modules/unictype/ctype-upper: New file.
8941 * modules/unictype/ctype-xdigit: New file.
8942 * modules/unictype/ctype-blank: New file.
8943 * lib/unictype/bidi_byname.c: New file.
8944 * lib/unictype/bidi_name.c: New file.
8945 * lib/unictype/bidi_of.c: New file.
8946 * lib/unictype/bidi_test.c: New file.
8947 * lib/unictype/bitmap.h: New file.
8948 * lib/unictype/block_test.c: New file.
8949 * lib/unictype/blocks.c: New file.
8950 * lib/unictype/categ_C.c: New file.
8951 * lib/unictype/categ_Cc.c: New file.
8952 * lib/unictype/categ_Cf.c: New file.
8953 * lib/unictype/categ_Cn.c: New file.
8954 * lib/unictype/categ_Co.c: New file.
8955 * lib/unictype/categ_Cs.c: New file.
8956 * lib/unictype/categ_L.c: New file.
8957 * lib/unictype/categ_Ll.c: New file.
8958 * lib/unictype/categ_Lm.c: New file.
8959 * lib/unictype/categ_Lo.c: New file.
8960 * lib/unictype/categ_Lt.c: New file.
8961 * lib/unictype/categ_Lu.c: New file.
8962 * lib/unictype/categ_M.c: New file.
8963 * lib/unictype/categ_Mc.c: New file.
8964 * lib/unictype/categ_Me.c: New file.
8965 * lib/unictype/categ_Mn.c: New file.
8966 * lib/unictype/categ_N.c: New file.
8967 * lib/unictype/categ_Nd.c: New file.
8968 * lib/unictype/categ_Nl.c: New file.
8969 * lib/unictype/categ_No.c: New file.
8970 * lib/unictype/categ_P.c: New file.
8971 * lib/unictype/categ_Pc.c: New file.
8972 * lib/unictype/categ_Pd.c: New file.
8973 * lib/unictype/categ_Pe.c: New file.
8974 * lib/unictype/categ_Pf.c: New file.
8975 * lib/unictype/categ_Pi.c: New file.
8976 * lib/unictype/categ_Po.c: New file.
8977 * lib/unictype/categ_Ps.c: New file.
8978 * lib/unictype/categ_S.c: New file.
8979 * lib/unictype/categ_Sc.c: New file.
8980 * lib/unictype/categ_Sk.c: New file.
8981 * lib/unictype/categ_Sm.c: New file.
8982 * lib/unictype/categ_So.c: New file.
8983 * lib/unictype/categ_Z.c: New file.
8984 * lib/unictype/categ_Zl.c: New file.
8985 * lib/unictype/categ_Zp.c: New file.
8986 * lib/unictype/categ_Zs.c: New file.
8987 * lib/unictype/categ_and.c: New file.
8988 * lib/unictype/categ_and_not.c: New file.
8989 * lib/unictype/categ_byname.c: New file.
8990 * lib/unictype/categ_name.c: New file.
8991 * lib/unictype/categ_none.c: New file.
8992 * lib/unictype/categ_of.c: New file.
8993 * lib/unictype/categ_or.c: New file.
8994 * lib/unictype/categ_test.c: New file.
8995 * lib/unictype/combining.c: New file.
8996 * lib/unictype/ctype_alnum.c: New file.
8997 * lib/unictype/ctype_alpha.c: New file.
8998 * lib/unictype/ctype_blank.c: New file.
8999 * lib/unictype/ctype_cntrl.c: New file.
9000 * lib/unictype/ctype_digit.c: New file.
9001 * lib/unictype/ctype_graph.c: New file.
9002 * lib/unictype/ctype_lower.c: New file.
9003 * lib/unictype/ctype_print.c: New file.
9004 * lib/unictype/ctype_punct.c: New file.
9005 * lib/unictype/ctype_space.c: New file.
9006 * lib/unictype/ctype_upper.c: New file.
9007 * lib/unictype/ctype_xdigit.c: New file.
9008 * lib/unictype/decdigit.c: New file.
9009 * lib/unictype/digit.c: New file.
9010 * lib/unictype/identsyntaxmap.h: New file.
9011 * lib/unictype/mirror.c: New file.
9012 * lib/unictype/numeric.c: New file.
9013 * lib/unictype/pr_alphabetic.c: New file.
9014 * lib/unictype/pr_ascii_hex_digit.c: New file.
9015 * lib/unictype/pr_bidi_arabic_digit.c: New file.
9016 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
9017 * lib/unictype/pr_bidi_block_separator.c: New file.
9018 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
9019 * lib/unictype/pr_bidi_common_separator.c: New file.
9020 * lib/unictype/pr_bidi_control.c: New file.
9021 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
9022 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
9023 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
9024 * lib/unictype/pr_bidi_european_digit.c: New file.
9025 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
9026 * lib/unictype/pr_bidi_left_to_right.c: New file.
9027 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
9028 * lib/unictype/pr_bidi_other_neutral.c: New file.
9029 * lib/unictype/pr_bidi_pdf.c: New file.
9030 * lib/unictype/pr_bidi_segment_separator.c: New file.
9031 * lib/unictype/pr_bidi_whitespace.c: New file.
9032 * lib/unictype/pr_byname.c: New file.
9033 * lib/unictype/pr_byname.gperf: New file.
9034 * lib/unictype/pr_combining.c: New file.
9035 * lib/unictype/pr_composite.c: New file.
9036 * lib/unictype/pr_currency_symbol.c: New file.
9037 * lib/unictype/pr_dash.c: New file.
9038 * lib/unictype/pr_decimal_digit.c: New file.
9039 * lib/unictype/pr_default_ignorable_code_point.c: New file.
9040 * lib/unictype/pr_deprecated.c: New file.
9041 * lib/unictype/pr_diacritic.c: New file.
9042 * lib/unictype/pr_extender.c: New file.
9043 * lib/unictype/pr_format_control.c: New file.
9044 * lib/unictype/pr_grapheme_base.c: New file.
9045 * lib/unictype/pr_grapheme_extend.c: New file.
9046 * lib/unictype/pr_grapheme_link.c: New file.
9047 * lib/unictype/pr_hex_digit.c: New file.
9048 * lib/unictype/pr_hyphen.c: New file.
9049 * lib/unictype/pr_id_continue.c: New file.
9050 * lib/unictype/pr_id_start.c: New file.
9051 * lib/unictype/pr_ideographic.c: New file.
9052 * lib/unictype/pr_ids_binary_operator.c: New file.
9053 * lib/unictype/pr_ids_trinary_operator.c: New file.
9054 * lib/unictype/pr_ignorable_control.c: New file.
9055 * lib/unictype/pr_iso_control.c: New file.
9056 * lib/unictype/pr_join_control.c: New file.
9057 * lib/unictype/pr_left_of_pair.c: New file.
9058 * lib/unictype/pr_line_separator.c: New file.
9059 * lib/unictype/pr_logical_order_exception.c: New file.
9060 * lib/unictype/pr_lowercase.c: New file.
9061 * lib/unictype/pr_math.c: New file.
9062 * lib/unictype/pr_non_break.c: New file.
9063 * lib/unictype/pr_not_a_character.c: New file.
9064 * lib/unictype/pr_numeric.c: New file.
9065 * lib/unictype/pr_other_alphabetic.c: New file.
9066 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
9067 * lib/unictype/pr_other_grapheme_extend.c: New file.
9068 * lib/unictype/pr_other_id_continue.c: New file.
9069 * lib/unictype/pr_other_id_start.c: New file.
9070 * lib/unictype/pr_other_lowercase.c: New file.
9071 * lib/unictype/pr_other_math.c: New file.
9072 * lib/unictype/pr_other_uppercase.c: New file.
9073 * lib/unictype/pr_paired_punctuation.c: New file.
9074 * lib/unictype/pr_paragraph_separator.c: New file.
9075 * lib/unictype/pr_pattern_syntax.c: New file.
9076 * lib/unictype/pr_pattern_white_space.c: New file.
9077 * lib/unictype/pr_private_use.c: New file.
9078 * lib/unictype/pr_punctuation.c: New file.
9079 * lib/unictype/pr_quotation_mark.c: New file.
9080 * lib/unictype/pr_radical.c: New file.
9081 * lib/unictype/pr_sentence_terminal.c: New file.
9082 * lib/unictype/pr_soft_dotted.c: New file.
9083 * lib/unictype/pr_space.c: New file.
9084 * lib/unictype/pr_terminal_punctuation.c: New file.
9085 * lib/unictype/pr_test.c: New file.
9086 * lib/unictype/pr_titlecase.c: New file.
9087 * lib/unictype/pr_unassigned_code_value.c: New file.
9088 * lib/unictype/pr_unified_ideograph.c: New file.
9089 * lib/unictype/pr_uppercase.c: New file.
9090 * lib/unictype/pr_variation_selector.c: New file.
9091 * lib/unictype/pr_white_space.c: New file.
9092 * lib/unictype/pr_xid_continue.c: New file.
9093 * lib/unictype/pr_xid_start.c: New file.
9094 * lib/unictype/pr_zero_width.c: New file.
9095 * lib/unictype/scripts.c: New file.
9096 * lib/unictype/sy_c_ident.c: New file.
9097 * lib/unictype/sy_c_whitespace.c: New file.
9098 * lib/unictype/sy_java_ident.c: New file.
9099 * lib/unictype/sy_java_whitespace.c: New file.
9101 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
9103 * lib/unictype/blocks.h: Likewise.
9104 * lib/unictype/categ_C.h: Likewise.
9105 * lib/unictype/categ_Cc.h: Likewise.
9106 * lib/unictype/categ_Cf.h: Likewise.
9107 * lib/unictype/categ_Cn.h: Likewise.
9108 * lib/unictype/categ_Co.h: Likewise.
9109 * lib/unictype/categ_Cs.h: Likewise.
9110 * lib/unictype/categ_L.h: Likewise.
9111 * lib/unictype/categ_Ll.h: Likewise.
9112 * lib/unictype/categ_Lm.h: Likewise.
9113 * lib/unictype/categ_Lo.h: Likewise.
9114 * lib/unictype/categ_Lt.h: Likewise.
9115 * lib/unictype/categ_Lu.h: Likewise.
9116 * lib/unictype/categ_M.h: Likewise.
9117 * lib/unictype/categ_Mc.h: Likewise.
9118 * lib/unictype/categ_Me.h: Likewise.
9119 * lib/unictype/categ_Mn.h: Likewise.
9120 * lib/unictype/categ_N.h: Likewise.
9121 * lib/unictype/categ_Nd.h: Likewise.
9122 * lib/unictype/categ_Nl.h: Likewise.
9123 * lib/unictype/categ_No.h: Likewise.
9124 * lib/unictype/categ_P.h: Likewise.
9125 * lib/unictype/categ_Pc.h: Likewise.
9126 * lib/unictype/categ_Pd.h: Likewise.
9127 * lib/unictype/categ_Pe.h: Likewise.
9128 * lib/unictype/categ_Pf.h: Likewise.
9129 * lib/unictype/categ_Pi.h: Likewise.
9130 * lib/unictype/categ_Po.h: Likewise.
9131 * lib/unictype/categ_Ps.h: Likewise.
9132 * lib/unictype/categ_S.h: Likewise.
9133 * lib/unictype/categ_Sc.h: Likewise.
9134 * lib/unictype/categ_Sk.h: Likewise.
9135 * lib/unictype/categ_Sm.h: Likewise.
9136 * lib/unictype/categ_So.h: Likewise.
9137 * lib/unictype/categ_Z.h: Likewise.
9138 * lib/unictype/categ_Zl.h: Likewise.
9139 * lib/unictype/categ_Zp.h: Likewise.
9140 * lib/unictype/categ_Zs.h: Likewise.
9141 * lib/unictype/categ_of.h: Likewise.
9142 * lib/unictype/combining.h: Likewise.
9143 * lib/unictype/ctype_alnum.h: Likewise.
9144 * lib/unictype/ctype_alpha.h: Likewise.
9145 * lib/unictype/ctype_blank.h: Likewise.
9146 * lib/unictype/ctype_cntrl.h: Likewise.
9147 * lib/unictype/ctype_digit.h: Likewise.
9148 * lib/unictype/ctype_graph.h: Likewise.
9149 * lib/unictype/ctype_lower.h: Likewise.
9150 * lib/unictype/ctype_print.h: Likewise.
9151 * lib/unictype/ctype_punct.h: Likewise.
9152 * lib/unictype/ctype_space.h: Likewise.
9153 * lib/unictype/ctype_upper.h: Likewise.
9154 * lib/unictype/ctype_xdigit.h: Likewise.
9155 * lib/unictype/decdigit.h: Likewise.
9156 * lib/unictype/digit.h: Likewise.
9157 * lib/unictype/mirror.h: Likewise.
9158 * lib/unictype/numeric.h: Likewise.
9159 * lib/unictype/pr_alphabetic.h: Likewise.
9160 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9161 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9162 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9163 * lib/unictype/pr_bidi_block_separator.h: Likewise.
9164 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9165 * lib/unictype/pr_bidi_common_separator.h: Likewise.
9166 * lib/unictype/pr_bidi_control.h: Likewise.
9167 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9168 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9169 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9170 * lib/unictype/pr_bidi_european_digit.h: Likewise.
9171 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9172 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9173 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9174 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9175 * lib/unictype/pr_bidi_pdf.h: Likewise.
9176 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9177 * lib/unictype/pr_bidi_whitespace.h: Likewise.
9178 * lib/unictype/pr_combining.h: Likewise.
9179 * lib/unictype/pr_composite.h: Likewise.
9180 * lib/unictype/pr_currency_symbol.h: Likewise.
9181 * lib/unictype/pr_dash.h: Likewise.
9182 * lib/unictype/pr_decimal_digit.h: Likewise.
9183 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9184 * lib/unictype/pr_deprecated.h: Likewise.
9185 * lib/unictype/pr_diacritic.h: Likewise.
9186 * lib/unictype/pr_extender.h: Likewise.
9187 * lib/unictype/pr_format_control.h: Likewise.
9188 * lib/unictype/pr_grapheme_base.h: Likewise.
9189 * lib/unictype/pr_grapheme_extend.h: Likewise.
9190 * lib/unictype/pr_grapheme_link.h: Likewise.
9191 * lib/unictype/pr_hex_digit.h: Likewise.
9192 * lib/unictype/pr_hyphen.h: Likewise.
9193 * lib/unictype/pr_id_continue.h: Likewise.
9194 * lib/unictype/pr_id_start.h: Likewise.
9195 * lib/unictype/pr_ideographic.h: Likewise.
9196 * lib/unictype/pr_ids_binary_operator.h: Likewise.
9197 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9198 * lib/unictype/pr_ignorable_control.h: Likewise.
9199 * lib/unictype/pr_iso_control.h: Likewise.
9200 * lib/unictype/pr_join_control.h: Likewise.
9201 * lib/unictype/pr_left_of_pair.h: Likewise.
9202 * lib/unictype/pr_line_separator.h: Likewise.
9203 * lib/unictype/pr_logical_order_exception.h: Likewise.
9204 * lib/unictype/pr_lowercase.h: Likewise.
9205 * lib/unictype/pr_math.h: Likewise.
9206 * lib/unictype/pr_non_break.h: Likewise.
9207 * lib/unictype/pr_not_a_character.h: Likewise.
9208 * lib/unictype/pr_numeric.h: Likewise.
9209 * lib/unictype/pr_other_alphabetic.h: Likewise.
9210 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9211 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9212 * lib/unictype/pr_other_id_continue.h: Likewise.
9213 * lib/unictype/pr_other_id_start.h: Likewise.
9214 * lib/unictype/pr_other_lowercase.h: Likewise.
9215 * lib/unictype/pr_other_math.h: Likewise.
9216 * lib/unictype/pr_other_uppercase.h: Likewise.
9217 * lib/unictype/pr_paired_punctuation.h: Likewise.
9218 * lib/unictype/pr_paragraph_separator.h: Likewise.
9219 * lib/unictype/pr_pattern_syntax.h: Likewise.
9220 * lib/unictype/pr_pattern_white_space.h: Likewise.
9221 * lib/unictype/pr_private_use.h: Likewise.
9222 * lib/unictype/pr_punctuation.h: Likewise.
9223 * lib/unictype/pr_quotation_mark.h: Likewise.
9224 * lib/unictype/pr_radical.h: Likewise.
9225 * lib/unictype/pr_sentence_terminal.h: Likewise.
9226 * lib/unictype/pr_soft_dotted.h: Likewise.
9227 * lib/unictype/pr_space.h: Likewise.
9228 * lib/unictype/pr_terminal_punctuation.h: Likewise.
9229 * lib/unictype/pr_titlecase.h: Likewise.
9230 * lib/unictype/pr_unassigned_code_value.h: Likewise.
9231 * lib/unictype/pr_unified_ideograph.h: Likewise.
9232 * lib/unictype/pr_uppercase.h: Likewise.
9233 * lib/unictype/pr_variation_selector.h: Likewise.
9234 * lib/unictype/pr_white_space.h: Likewise.
9235 * lib/unictype/pr_xid_continue.h: Likewise.
9236 * lib/unictype/pr_xid_start.h: Likewise.
9237 * lib/unictype/pr_zero_width.h: Likewise.
9238 * lib/unictype/scripts.h: Likewise.
9239 * lib/unictype/scripts_byname.gperf: Likewise.
9240 * lib/unictype/sy_c_ident.h: Likewise.
9241 * lib/unictype/sy_c_whitespace.h: Likewise.
9242 * lib/unictype/sy_java_ident.h: Likewise.
9243 * lib/unictype/sy_java_whitespace.h: Likewise.
9245 * lib/unictype/Makefile: New file.
9246 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
9248 * lib/unictype/3level.h: New file, copied from glibc.
9249 * lib/unictype/3levelbit.h: New file.
9251 2007-11-11 Bruno Haible <bruno@clisp.org>
9253 * modules/gperf: New file.
9254 * modules/iconv_open (Depends-on): Add it.
9255 (Makefile.am): Remove the GPERF definition.
9257 2007-11-11 Bruno Haible <bruno@clisp.org>
9259 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
9260 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
9262 2007-11-11 Bruno Haible <bruno@clisp.org>
9264 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
9265 (usage): Remove function.
9267 2007-11-11 Bruno Haible <bruno@clisp.org>
9269 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
9271 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
9273 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
9275 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
9276 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
9277 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
9279 2007-11-11 Bruno Haible <bruno@clisp.org>
9281 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
9282 roundf were declared but do not exist on functions.
9283 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
9284 roundl were declared but do not exist on functions.
9285 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
9286 HAVE_FLOORL_AND_CEILL, respectively.
9287 Needed for Sun C on Solaris 10.
9289 2007-11-11 Bruno Haible <bruno@clisp.org>
9291 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
9292 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
9293 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
9294 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
9295 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
9296 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
9297 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
9299 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
9300 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
9301 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
9302 of HAVE_DECL_ROUND*.
9303 * modules/math (Makefile.am): Update.
9305 2007-11-10 Bruno Haible <bruno@clisp.org>
9307 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
9308 ptrdiff_t as m4/intl.m4.
9310 2007-11-10 Jim Meyering <meyering@redhat.com>
9312 Avoid link failure for the argmatch test.
9313 * tests/test-argmatch.c (usage): Define function to avoid a link
9314 failure: argmatch_die requires a usage function.
9316 2007-11-09 Bruno Haible <bruno@clisp.org>
9318 * doc/functions/snprintf.texi: Mention BeOS deficiency.
9319 * doc/functions/vsnprintf.texi: Likewise.
9320 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
9321 with a size argument < 2.
9323 2007-11-09 Bruno Haible <bruno@clisp.org>
9325 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
9326 buffer. Fixes an inefficiency introduced on 2007-11-03.
9328 2007-11-09 Bruno Haible <bruno@clisp.org>
9330 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
9331 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
9333 2007-11-08 Jim Meyering <meyering@redhat.com>
9335 Change cache variable name prefix "jm_" to "gl_" everywhere.
9336 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
9337 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
9338 * m4/uptime.m4: s/gl_/jm_/
9340 2007-11-07 Bruno Haible <bruno@clisp.org>
9342 Update to GNU gettext 0.17.
9343 * m4/intl.m4: Update to GNU gettext 0.17.
9344 * m4/po.m4: Likewise.
9345 * modules/gettext (Files): Remove m4/ulonglong.m4.
9346 (configure.ac): Require gettext infrastructure from version 0.17.
9348 2007-11-06 Bruno Haible <bruno@clisp.org>
9350 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
9351 symbolic values are not defined in a public header.
9352 * lib/freadable.c (freadable) [QNX]: Likewise.
9353 * lib/freadahead.c (freadahead) [QNX]: Likewise.
9354 * lib/freading.c (freading) [QNX]: Likewise.
9355 * lib/fseterr.c (fseterr) [QNX]: Likewise.
9356 * lib/fwritable.c (fwritable) [QNX]: Likewise.
9357 * lib/fwriting.c (fwriting) [QNX]: Likewise.
9358 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
9359 Reported by Alain Magloire.
9361 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
9363 2007-11-05 Bruno Haible <bruno@clisp.org>
9365 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
9366 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
9367 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
9368 Reported by Eric Blake.
9370 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9371 Bruno Haible <bruno@clisp.org>
9373 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
9374 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
9375 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
9376 (malloc): Undefine also before including <stdlib.h>.
9377 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
9378 Needed on OSF/1 4.0.
9380 2007-11-05 Jim Meyering <meyering@redhat.com>
9382 git-version-gen: sync from coreutils.
9383 * build-aux/git-version-gen: Add comments.
9384 Change the first '-' to '.' in the snapshot version string,
9385 e.g., 6.9-377-08144 -> 6.9.377-08144
9386 Remove first parameter.
9387 Don't declare a version "-dirty" merely because a time
9390 2007-11-04 Bruno Haible <bruno@clisp.org>
9392 * lib/lock.h: Protect all macro definitions containing an 'if'
9393 statement through a "do { ... } while (0)".
9394 * lib/tls.h: Likewise.
9396 2007-11-04 Bruno Haible <bruno@clisp.org>
9398 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
9400 2007-11-04 Bruno Haible <bruno@clisp.org>
9402 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
9403 * modules/fprintf-posix (Depends-on): Add nocrash.
9404 * modules/snprintf-posix (Depends-on): Likewise.
9405 * modules/sprintf-posix (Depends-on): Likewise.
9406 * modules/vasnprintf-posix (Depends-on): Likewise.
9407 * modules/vasprintf-posix (Depends-on): Likewise.
9408 * modules/vfprintf-posix (Depends-on): Likewise.
9409 * modules/vsnprintf-posix (Depends-on): Likewise.
9410 * modules/vsprintf-posix (Depends-on): Likewise.
9411 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9412 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9413 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9414 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9415 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9416 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9417 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9419 2007-11-04 Bruno Haible <bruno@clisp.org>
9421 * modules/nocrash: New file.
9422 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
9423 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
9425 2007-11-04 Bruno Haible <bruno@clisp.org>
9427 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
9429 * tests/test-vasprintf-posix.c (test_function): Likewise.
9430 * tests/test-snprintf-posix.h (test_function): Likewise.
9431 * tests/test-sprintf-posix.h (test_function): Likewise.
9433 Fix *printf behaviour for large precisions on mingw and BeOS.
9434 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
9435 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
9436 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
9437 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
9438 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9439 gl_PRINTF_PRECISION and test its result. Invoke
9440 gl_PREREQ_VASNPRINTF_PRECISION.
9441 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9442 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9443 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9444 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9445 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9446 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9447 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9448 * doc/functions/fprintf.texi: Update.
9449 * doc/functions/printf.texi: Update.
9450 * doc/functions/snprintf.texi: Update.
9451 * doc/functions/sprintf.texi: Update.
9452 * doc/functions/vfprintf.texi: Update.
9453 * doc/functions/vprintf.texi: Update.
9454 * doc/functions/vsnprintf.texi: Update.
9455 * doc/functions/vsprintf.texi: Update.
9457 2007-11-04 Bruno Haible <bruno@clisp.org>
9459 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
9461 2007-11-04 Bruno Haible <bruno@clisp.org>
9463 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
9464 Reported by Sylvain Beucler <beuc@gnu.org>.
9466 2007-11-03 Bruno Haible <bruno@clisp.org>
9468 * tests/test-fprintf-posix2.sh: New file.
9469 * tests/test-fprintf-posix2.c: New file.
9470 * modules/fprintf-posix-tests (Files): Add them.
9471 (TESTS): Add test-fprintf-posix2.sh.
9472 (configure.ac): Check for getrlimit and setrlimit.
9473 (check_PROGRAMS): Add test-fprintf-posix2.
9475 * tests/test-printf-posix2.sh: New file.
9476 * tests/test-printf-posix2.c: New file.
9477 * modules/printf-posix-tests (Files): Add them.
9478 (TESTS): Add test-printf-posix2.sh.
9479 (configure.ac): Check for getrlimit and setrlimit.
9480 (check_PROGRAMS): Add test-printf-posix2.
9482 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
9483 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
9484 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
9485 (decode_double): New function, copied from decode_long_double.
9486 (scale10_round_decimal_decoded): New function, extracted from
9487 scale10_round_decimal_long_double.
9488 (scale10_round_decimal_long_double): Use it.
9489 (scale10_round_decimal_double): New function.
9490 (floorlog10): New function.
9491 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
9492 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
9493 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
9494 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9495 gl_PRINTF_ENOMEM and test its result. Invoke
9496 gl_PREREQ_VASNPRINTF_ENOMEM.
9497 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9498 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9499 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9500 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9501 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9502 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9503 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9504 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
9505 * modules/snprintf-posix (Depends-on): Likewise.
9506 * modules/sprintf-posix (Depends-on): Likewise.
9507 * modules/vasnprintf-posix (Depends-on): Likewise.
9508 * modules/vasprintf-posix (Depends-on): Likewise.
9509 * modules/vfprintf-posix (Depends-on): Likewise.
9510 * modules/vsnprintf-posix (Depends-on): Likewise.
9511 * modules/vsprintf-posix (Depends-on): Likewise.
9512 * doc/functions/fprintf.texi: Update.
9513 * doc/functions/printf.texi: Update.
9514 * doc/functions/snprintf.texi: Update.
9515 * doc/functions/sprintf.texi: Update.
9516 * doc/functions/vfprintf.texi: Update.
9517 * doc/functions/vprintf.texi: Update.
9518 * doc/functions/vsnprintf.texi: Update.
9519 * doc/functions/vsprintf.texi: Update.
9521 2007-11-03 Bruno Haible <bruno@clisp.org>
9523 * modules/frexp-nolibm-tests: New file.
9525 * modules/frexp-nolibm: New file.
9526 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
9528 2007-11-03 Bruno Haible <bruno@clisp.org>
9530 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
9531 value is C99 compliant.
9532 Needed for OSF/1 5.1.
9534 2007-11-03 Bruno Haible <bruno@clisp.org>
9536 Fix out-of-memory handling of vasnprintf.
9537 * lib/printf-parse.c: Include <errno.h>.
9538 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
9539 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
9542 2007-11-02 Eric Blake <ebb9@byu.net>
9544 Fix tests on cygwin.
9545 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
9547 2007-11-01 Bruno Haible <bruno@clisp.org>
9549 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
9551 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
9552 needed for POSIX compatibility.
9554 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
9556 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
9557 for compatibility with GNU.
9559 2007-11-01 Bruno Haible <bruno@clisp.org>
9561 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
9562 (putenv): Renamed from rpl_putenv. Change argument type from
9563 'const char *' to 'char *'.
9564 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
9565 of defining putenv in config.h, just set REPLACE_PUTENV.
9566 * modules/putenv (Depends-on): Add stdlib.
9567 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9568 (Include): Use <stdlib.h>.
9569 * lib/stdlib.in.h (putenv): New declaration.
9570 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
9572 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
9574 Needed for MacOS X 10.5.0.
9575 Reported by Peter O'Gorman <peter@pogma.com>.
9577 2007-11-01 Jim Meyering <meyering@redhat.com>
9579 Treat an empty date string exactly like "0".
9580 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
9581 if the remaining date string (to be parsed) is empty, use "0".
9582 Reported by Mischa Molhoek and discussed in this thread:
9583 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
9585 2007-10-31 Bruno Haible <bruno@clisp.org>
9587 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
9588 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
9589 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
9590 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
9591 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
9592 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
9594 2007-10-31 Bruno Haible <bruno@clisp.org>
9596 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
9597 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
9598 (AC_TYPE_LONG_LONG_INT): Use it.
9599 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
9601 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
9603 * modules/stdint (Files): Remove m4/ulonglong.m4.
9604 * modules/strtoull (Files): Use m4/longlong.m4 instead of
9606 * modules/strtoumax (Files): Likewise.
9608 2007-10-30 Bruno Haible <bruno@clisp.org>
9610 * modules/xvasprintf-posix: New file.
9611 Suggested by Eric Blake.
9613 2007-10-30 Bruno Haible <bruno@clisp.org>
9615 * modules/xprintf-posix-tests: New file.
9616 * tests/test-xprintf-posix.sh: New file.
9617 * tests/test-xprintf-posix.c: New file.
9618 * tests/test-xfprintf-posix.c: New file.
9620 * modules/xprintf-posix: New file.
9622 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9624 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
9625 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
9626 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
9628 2007-10-29 Bruno Haible <bruno@clisp.org>
9630 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
9631 contain the special marker '_cv_'.
9632 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9633 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9634 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9635 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
9636 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9637 Reported by Ralf Wildenhues.
9639 2007-10-29 Bruno Haible <bruno@clisp.org>
9641 * gnulib-tool (func_import): When --lgpl is not specified, set
9642 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
9644 Reported by Simon Josefsson.
9646 2007-10-28 Bruno Haible <bruno@clisp.org>
9648 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
9649 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
9651 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
9652 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
9655 2007-10-28 Bruno Haible <bruno@clisp.org>
9657 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
9658 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
9660 2007-10-28 Bruno Haible <bruno@clisp.org>
9662 Fix link errors with Sun C 5.0 on Solaris 10.
9663 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
9664 function is declared but not present in the compiler's libm.
9665 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9666 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9667 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
9668 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
9669 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
9670 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
9671 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
9672 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
9673 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
9674 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
9675 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
9678 2007-10-28 Bruno Haible <bruno@clisp.org>
9680 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
9681 gl_FUNC_FLOORL. Cache the result.
9682 (gl_FUNC_FLOORL): Use it.
9683 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
9684 gl_FUNC_CEILL. Cache the result.
9685 (gl_FUNC_CEILL): Use it.
9687 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
9688 gl_FUNC_FLOOR. Cache the result.
9689 (gl_FUNC_FLOOR): Use it.
9690 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
9691 gl_FUNC_CEIL. Cache the result.
9692 (gl_FUNC_CEIL): Use it.
9694 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
9695 gl_FUNC_FLOORF. Cache the result.
9696 (gl_FUNC_FLOORF): Use it.
9697 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
9698 gl_FUNC_CEILF. Cache the result.
9699 (gl_FUNC_CEILF): Use it.
9701 2007-10-28 Bruno Haible <bruno@clisp.org>
9703 * gnulib-tool: Allow specifying the LGPL version number through
9704 --lgpl=2 or --lgpl=3.
9705 (func_usage): Document --lgpl with argument.
9706 Handle --lgpl=... arguments.
9707 (func_import): Recognize also gl_LGPL calls with an argument. When
9708 --lgpl=2 is used and the module's license is just LGPL, report an
9709 error. Set sed_transform_lib_file according to the lgpl variable. In
9710 the generated files, use --lgpl or gl_LGPL invocations with argument,
9712 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
9714 * doc/gnulib-tool.texi (Modified imports): Update explanation of
9717 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9718 Bruno Haible <bruno@clisp.org>
9720 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
9721 (u16_uctomb_aux): Likewise.
9722 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
9724 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
9726 2007-10-28 Bruno Haible <bruno@clisp.org>
9728 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
9729 Invoke AM_GETTEXT_OPTION if it exists.
9730 * modules/vasprintf: Likewise.
9731 * modules/verror: Likewise.
9732 * modules/xprintf: Likewise.
9733 * modules/xvasprintf: Likewise.
9735 2007-10-27 Ben Pfaff <blp@gnu.org>
9737 * lib/math.in.h: Define isfinite macro and prototypes for
9738 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
9740 * m4/math_h.m4: New substitutions for isfinite module.
9741 * lib/isfinite.c: New file.
9742 * m4/isfinite.m4: New file.
9743 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
9744 * modules/isfinite: New file.
9745 * modules/isfinite-tests: New file.
9746 * tests/tests-isfinite.c: New file.
9747 * doc/functions/isfinite.texi: Mention isfinite module.
9748 * MODULES.html.sh: Mention new module.
9750 2007-10-27 Ben Pfaff <blp@gnu.org>
9752 Ralf Wildenhues reported that Tru64 4.0D declares the round
9753 functions but does not have definitions.
9754 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
9755 cannot be found in any library, set the output variable to
9756 "missing" instead of "".
9757 * m4/round.m4: Also use our substitute if we cannot find round in
9758 any library, even if it is declared.
9759 * m4/roundf.m4: Likewise for roundf.
9760 * m4/roundl.m4: Likewise for roundl.
9761 * lib/math.in.h: Undefine roundf, round, roundl before defining
9762 their replacements, to allow for hypothetical systems where these
9763 may be defined as macros but not available in libraries.
9765 2007-10-27 Bruno Haible <bruno@clisp.org>
9767 * doc/gnulib.texi: Invoke @firstparagraphindent.
9768 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
9770 (Source changes): New section.
9772 2007-10-26 Bruno Haible <bruno@clisp.org>
9774 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
9775 borrowed from autoconf.
9777 2007-10-26 Bruno Haible <bruno@clisp.org>
9779 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
9780 strerror returned the empty string. Needed on HP-UX 11.00.
9782 2007-10-24 Micah Cowan <micah@cowan.name>
9784 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
9785 * build-aux/bootstrap: Remove support for now-unnecessary option,
9786 --cvs-user, and envvars CVS_USER, CVS_RSH.
9788 2007-10-24 Jim Meyering <meyering@redhat.com>
9790 Avoid diagnostics from sha1sum when there is no cached checksum.
9791 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
9792 if the po.s1 file hasn't been created yet.
9794 * build-aux/bootstrap: Sync from coreutils:
9795 2007-10-24 Jim Meyering <meyering@redhat.com>
9796 Get gnulib from the git repository, not from an obsolete cvs one.
9797 * build-aux/bootstrap: Suggestion from Micah Cowan.
9798 2007-10-04 Jim Meyering <jim@meyering.net>
9799 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
9800 (update_po_files): Work also when there are no .po files in po/.
9802 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
9804 * README: Append ".git" to git and cg examples.
9805 Problem reported by Benoit Sigoure.
9807 2007-10-23 Micah Cowan <micah@cowan.name>
9809 * users.txt: Add wget.
9811 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9813 Fix linking of some unistdio tests on FreeBSD.
9814 * modules/unistdio/u16-vsnprintf-tests
9815 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
9816 * modules/unistdio/u16-vsprintf-tests
9817 (test_u16_vsnprintf1_LDADD): Likewise.
9818 * modules/unistdio/u32-vsnprintf-tests
9819 (test_u32_vsnprintf1_LDADD): Likewise.
9820 * modules/unistdio/u32-vsprintf-tests
9821 (test_u32_vsprintf1_LDADD): Likewise.
9822 * modules/unistdio/u8-vsnprintf-tests
9823 (test_u8_vsnprintf1_LDADD): Likewise.
9824 * modules/unistdio/u8-vsprintf-tests
9825 (test_u8_vsprintf1_LDADD): Likewise.
9826 * modules/unistdio/ulc-vsnprintf-tests
9827 (test_ulc_vsnprintf1_LDADD): Likewise.
9828 * modules/unistdio/ulc-vsprintf-tests
9829 (test_ulc_vsprintf1_LDADD): Likewise.
9831 Fix linking of some uniconv tests on FreeBSD.
9832 * modules/uniconv/u16-conv-from-enc-tests
9833 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
9834 * modules/uniconv/u16-conv-to-enc-tests
9835 (test_u16_conv_to_enc_LDADD): Likewise.
9836 * modules/uniconv/u16-strconv-from-enc-tests
9837 (test_u16_strconv_from_enc_LDADD): Likewise.
9838 * modules/uniconv/u16-strconv-to-enc-tests
9839 (test_u16_strconv_to_enc_LDADD): Likewise.
9840 * modules/uniconv/u32-conv-from-enc-tests
9841 (test_u32_conv_from_enc_LDADD): Likewise.
9842 * modules/uniconv/u32-conv-to-enc-tests
9843 (test_u32_conv_to_enc_LDADD): Likewise.
9844 * modules/uniconv/u32-strconv-from-enc-tests
9845 (test_u32_strconv_from_enc_LDADD): Likewise.
9846 * modules/uniconv/u32-strconv-to-enc-tests
9847 (test_u32_strconv_to_enc_LDADD): Likewise.
9848 * modules/uniconv/u8-conv-from-enc-tests
9849 (test_u8_conv_from_enc_LDADD): Likewise.
9850 * modules/uniconv/u8-conv-to-enc-tests
9851 (test_u8_conv_to_enc_LDADD): Likewise.
9852 * modules/uniconv/u8-strconv-from-enc-tests
9853 (test_u8_strconv_from_enc_LDADD): Likewise.
9854 * modules/uniconv/u8-strconv-to-enc-tests
9855 (test_u8_strconv_to_enc_LDADD): Likewise.
9857 2007-10-22 Bruno Haible <bruno@clisp.org>
9859 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
9862 2007-10-22 Eric Blake <ebb9@byu.net>
9864 Tweak x*printf documentation.
9865 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
9866 variable name and comments.
9867 Suggested by Bruno Haible.
9869 2007-10-22 Bruno Haible <bruno@clisp.org>
9871 * lib/acl.c (copy_acl): Fix file name in comment.
9873 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
9875 Fix Tru64 problem with stdbool.h.
9876 * lib/stdbool.in.h (false, true):
9877 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
9878 Don't declare as an enum in this situation; it runs afoul of Tru64.
9879 Problem reported by Steven M. Schweda in
9880 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
9882 2007-10-22 Eric Blake <ebb9@byu.net>
9884 Also wrap vf?printf.
9885 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
9886 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
9887 (xvprintf, xvfprintf): New functions.
9889 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9891 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
9892 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
9894 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
9895 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
9897 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
9899 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
9902 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9905 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
9906 Undef `sys' after including sys/table.h, for Tru64 4.0D.
9908 * tests/test-i-ring.c: Work for C89.
9910 2007-10-22 Bruno Haible <bruno@clisp.org>
9912 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
9913 -1u, in preprocessor expression, so that we don't test for the bug
9914 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
9915 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
9917 2007-10-22 Eric Blake <ebb9@byu.net>
9919 * tests/test-yesno.sh: Silence stderr during test.
9921 2007-10-22 Simon Josefsson <simon@josefsson.org>
9923 * modules/crypto/gc-camellia: New file.
9925 * m4/gc-camellia.m4: New file.
9927 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
9929 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
9931 2007-10-22 Simon Josefsson <simon@josefsson.org>
9933 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
9934 --help to stdout. Reported by sms@antinode.org (Steven
9937 2007-10-22 Simon Josefsson <simon@josefsson.org>
9939 * users.txt: Fix link to libksba.
9941 2007-10-21 Ben Pfaff <blp@gnu.org>
9943 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
9944 round.c roundf implementation that depends on floorf and ceilf to
9945 be tested unconditionally.
9947 2007-10-21 Ben Pfaff <blp@gnu.org>
9949 * m4/check-libm-func.m4: Removed.
9950 * m4/check-math-lib.m4: New file.
9951 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
9952 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
9953 definition and lack of AC_LIBOBJ([roundf]).
9954 * m4/roundl.m4: Ditto, and similarly for roundl.
9955 * modules/round: Reference new m4 file.
9956 * modules/roundf: Ditto.
9957 * modules/roundl: Ditto.
9958 * tests/test-round2.c (main): Use ROUND instead of round.
9959 Bug report from Bruno Haible.
9961 2007-10-21 Bruno Haible <bruno@clisp.org>
9963 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
9966 2007-10-21 Bruno Haible <bruno@clisp.org>
9968 * tests/test-wcwidth.c (main): Allow negative result for some control
9971 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
9972 Needed on OSF/1 5.1.
9974 2007-10-21 Bruno Haible <bruno@clisp.org>
9976 * tests/test-floorf1.c: Include isnanf.h.
9977 (main): Use isnanf() instead of isnan().
9978 * tests/test-ceilf1.c: Include isnanf.h.
9979 (main): Use isnanf() instead of isnan().
9980 * tests/test-truncf1.c: Include isnanf.h.
9981 (main): Use isnanf() instead of isnan().
9982 * tests/test-roundf1.c: Include isnanf.h.
9983 (main): Use isnanf() instead of isnan().
9985 2007-10-21 Eric Blake <ebb9@byu.net>
9987 * users.txt: Update URL for m4.
9989 2007-10-21 Bruno Haible <bruno@clisp.org>
9991 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
9993 2007-10-21 Bruno Haible <bruno@clisp.org>
9995 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
9996 Git's management files if the CVS files are not present.
9998 2007-10-20 Bruno Haible <bruno@clisp.org>
10000 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
10003 2007-10-20 Ben Pfaff <blp@gnu.org>
10005 * lib/math.in.h: Declare round, roundf, roundl if we are providing
10007 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
10008 * lib/round.c: New file.
10009 * lib/roundf.c: New file.
10010 * lib/roundl.c: New file.
10011 * m4/round.m4: New file.
10012 * m4/roundf.m4: New file.
10013 * m4/roundl.m4: New file.
10014 * m4/check-libm-func-m4: New file.
10015 * modules/math: Replace round, roundf, roundl related @VARS@ in
10017 * modules/round: New file.
10018 * modules/round-tests: New file.
10019 * modules/roundf: New file.
10020 * modules/roundf-tests: New file.
10021 * modules/roundl: New file.
10022 * modules/roundl-tests: New file.
10023 * tests/test-round1.c: New file.
10024 * tests/test-round2.c: New file.
10025 * tests/test-roundf1.c: New file.
10026 * tests/test-roundf2.c: New file.
10027 * tests/test-roundl.c: New file.
10028 * doc/functions/round.texi: Mention round module.
10029 * doc/functions/roundf.texi: Mention roundf module.
10030 * doc/functions/roundl.texi: Mention roundl module.
10031 * MODULES.html.sh: Mention new modules.
10032 Thanks to Bruno Haible for suggestions.
10034 2007-10-20 Jim Meyering <meyering@redhat.com>
10036 * lib/xprintf.c: Include <config.h> unconditionally.
10038 Change xprintf's license to GPL.
10039 * modules/xprintf (License): s/LGPL/GPL/, since this module
10040 depends on modules (exit and exitfail) which are GPL.
10041 Suggestion from Bruno Haible.
10044 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
10045 Use a clearer diagnostic.
10046 Patch from Bruno Haible.
10048 2007-10-20 Bruno Haible <bruno@clisp.org>
10050 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
10051 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
10052 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10054 2007-10-20 Bruno Haible <bruno@clisp.org>
10056 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
10057 precision in the comparison result > x - 1 or similar.
10058 * tests/test-ceilf2.c (correct_result_p): Likewise.
10059 * tests/test-truncf2.c (correct_result_p): Likewise.
10060 * tests/test-trunc2.c (correct_result_p): Likewise.
10061 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10063 2007-10-20 Bruno Haible <bruno@clisp.org>
10065 * modules/ceil: New file.
10066 * m4/ceil.m4: New file.
10067 * doc/functions/ceil.texi: Mention the 'ceil' module.
10069 2007-10-20 Bruno Haible <bruno@clisp.org>
10071 * modules/floor: New file.
10072 * m4/floor.m4: New file.
10073 * doc/functions/floor.texi: Mention the 'floor' module.
10075 2007-10-20 Bruno Haible <bruno@clisp.org>
10077 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
10079 * modules/floorf-tests (Depends-on): Likewise.
10080 * modules/truncf-tests (Depends-on): Likewise.
10081 * modules/trunc-tests (Depends-on): Likewise.
10082 Reported by Ben Pfaff.
10084 2007-10-19 Jim Meyering <meyering@redhat.com>
10086 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
10087 Don't bother testing specific errno values. Just test ferror.
10089 New module: xprintf
10090 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
10092 2007-10-19 Bruno Haible <bruno@clisp.org>
10094 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
10096 * modules/javaexec (Makefile.am): Likewise.
10097 * modules/relocatable-prog (Makefile.am): Likewise.
10098 Suggested by Jim Meyering.
10100 2007-10-18 Bruno Haible <bruno@clisp.org>
10102 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
10103 Reported by Jim Meyering.
10105 2007-10-18 Eric Blake <ebb9@byu.net>
10107 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
10109 2007-10-18 Bruno Haible <bruno@clisp.org>
10111 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
10112 the format string into writable memory. Needed in Fortify conditions.
10114 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
10115 Bruno Haible <bruno@clisp.org>
10117 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
10118 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
10119 * modules/trim (Depends-on): Add mbchar.
10120 (configure.ac): Add gl_FUNC_MBRTOWC.
10121 (Makefile.am): Augment lib_SOURCES.
10123 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
10125 Modify glob.c to use fstatat and dirfd, to simplify it.
10126 Suggested by Eric Blake.
10127 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
10128 Don't include <stdbool.h>; not used.
10129 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
10130 (link_exists_p): Simplify implementation, since we can now assume
10132 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
10134 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10136 * gnulib-tool (func_get_dependencies): Fix sed script to
10139 2007-10-17 Bruno Haible <bruno@clisp.org>
10141 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
10142 allow locale names without encoding suffix.
10143 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10144 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10146 2007-10-16 Bruno Haible <bruno@clisp.org>
10148 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
10149 * lib/getgroups.c (getgroups): Likewise.
10150 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
10152 2007-10-16 Bruno Haible <bruno@clisp.org>
10154 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
10155 * modules/malloc-posix (License): Likewise.
10156 * modules/realloc-posix (License): Likewise.
10157 * modules/calloc-posix (License): Likewise.
10158 * modules/intprops (License): Change from GPL to LGPL, with
10159 Paul Eggert's approval.
10161 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
10163 Merge glibc changes into lib/glob.c.
10165 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
10166 2007-10-15 04:59:03 UTC. Here are the changes:
10168 2007-10-14 Ulrich Drepper <drepper@redhat.com>
10170 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
10172 * lib/glob.c: Add some branch prediction throughout.
10174 2007-10-07 Ulrich Drepper <drepper@redhat.com>
10177 * lib/glob.c (glob): Recognize patterns starting \/.
10179 2007-02-14 Jakub Jelinek <jakub@redhat.com>
10182 * lib/glob.c (attribute_hidden): Define if not defined.
10183 (glob): Unescape dirname, filename or username when needed and not
10184 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
10185 is NULL. Handle unescaped [ in pattern without closing ].
10186 Don't pass GLOB_CHECK down to recursive glob for directories.
10187 (__glob_pattern_type): New function.
10188 (__glob_pattern_p): Implement using __glob_pattern_type.
10189 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10190 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10191 Remove unreachable code.
10193 2006-09-30 Ulrich Drepper <drepper@redhat.com>
10195 * lib/glob.c (glob_in_dir): Add some comments and asserts to
10196 explain why there are no leaks.
10198 2006-09-25 Jakub Jelinek <jakub@redhat.com>
10201 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10202 time, rather allocate increasingly bigger arrays of pointers, if
10203 possible with alloca, if too large with malloc.
10205 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
10207 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
10208 Problem reported by H.Merijn Brand in
10209 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
10210 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
10211 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
10213 2007-10-15 Bruno Haible <bruno@clisp.org>
10215 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
10216 with explicit rpl_ prefix.
10217 * lib/fopen.c (fopen): Likewise.
10218 * lib/freopen.c (freopen): Likewise.
10219 * lib/iconv.c (iconv): Likewise.
10220 * lib/iconv_close.c (iconv_close): Likewise.
10222 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10224 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
10226 2007-10-15 Bruno Haible <bruno@clisp.org>
10228 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
10229 <stddef.h> instead of <stdlib.h> since we only need NULL.
10230 Reported by Ben Pfaff <blp@cs.stanford.edu>.
10232 2007-10-15 Bruno Haible <bruno@clisp.org>
10234 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
10235 Replace paragraph talking about LIBOBJS.
10236 Reported by Colin Watson <cjwatson@debian.org>.
10238 2007-10-15 Bruno Haible <bruno@clisp.org>
10240 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
10241 <stdlib.h> before using NULL.
10243 2007-10-15 Simon Josefsson <simon@josefsson.org>
10245 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
10246 Reported by Albert Chin <china@thewrittenword.com>.
10248 2007-10-14 Bruno Haible <bruno@clisp.org>
10250 * modules/iconv_open-utf-tests: New file.
10251 * tests/test-iconv-utf.c: New file.
10253 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
10254 * modules/iconv_open-utf: New file.
10255 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
10256 (iconv, iconv_close): New declarations.
10257 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
10259 (iconv_open): Add special handling of conversion between UTF-8 and
10260 UTF-{16,32}{BE,LE}.
10261 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
10262 * lib/iconv_close.c: New file.
10263 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
10264 gl_FUNC_ICONV_OPEN.
10265 (gl_FUNC_ICONV_OPEN): Use it.
10266 (gl_FUNC_ICONV_OPEN_UTF): New macro.
10267 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
10268 and REPLACE_ICONV_UTF.
10269 * modules/iconv_open (Depends-on): Add c-strcase.
10270 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
10272 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
10274 2007-10-13 Albert Chin <china@thewrittenword.com>
10275 Bruno Haible <bruno@clisp.org>
10277 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
10278 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
10280 2007-10-13 Bruno Haible <bruno@clisp.org>
10282 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
10283 defined, use the ISO C99 inline semantics.
10284 * lib/argp.h (ARGP_EI): Likewise.
10286 2007-10-13 Bruno Haible <bruno@clisp.org>
10288 Handle 'inline' change in gcc 4.3.0.
10289 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
10290 argp_fmtstream_write, argp_fmtstream_set_lmargin,
10291 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
10292 argp_fmtstream_point): Disable 'extern' declaration if the function
10293 definition is going to be provided inline.
10294 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
10295 semantics, not the ISO C99 inline semantics.
10296 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
10297 'extern' declaration if the function definition is going to be provided
10299 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
10300 the GNU C inline semantics, not the ISO C99 inline semantics. With
10301 GCC 4.2, avoid a warning.
10303 2007-10-13 Bruno Haible <bruno@clisp.org>
10305 * lib/freading.h (freading): Enable the use of __freading for
10307 * lib/freading.c (freading): Likewise.
10309 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
10311 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
10312 "warning: C99 inline functions are not supported; using GNU89".
10314 2007-10-12 Bruno Haible <bruno@clisp.org>
10316 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
10318 * tests/test-ceilf2.c: New file.
10319 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
10321 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
10322 * modules/ceilf-tests: Update.
10324 2007-10-12 Bruno Haible <bruno@clisp.org>
10326 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
10328 * tests/test-floorf2.c: New file.
10329 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
10331 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
10332 * modules/floorf-tests: Update.
10334 2007-10-12 Bruno Haible <bruno@clisp.org>
10336 * tests/test-trunc2.c: New file.
10337 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
10339 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
10340 * modules/trunc-tests: Update.
10342 2007-10-12 Bruno Haible <bruno@clisp.org>
10344 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
10346 * tests/test-truncf2.c: New file.
10347 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
10349 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
10350 * modules/truncf-tests: Update.
10352 2007-10-11 Eric Blake <ebb9@byu.net>
10354 Don't claim strerror is broken on Interix.
10355 * doc/functions/strerror.texi (strerror): Known broken systems are
10356 now Solaris 8, and not Interix.
10357 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
10358 Interix on cross-compile.
10359 Reported by Martin Koeppe in
10360 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
10362 2007-10-11 Bruno Haible <bruno@clisp.org>
10364 * modules/i-ring-tests: New file.
10365 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
10368 2007-10-11 Bruno Haible <bruno@clisp.org>
10370 * modules/filenamecat-tests: New file.
10371 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
10372 * lib/filenamecat.c: Remove test code.
10374 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
10376 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
10378 * lib/strerror.c: Include <string.h> always, to test interface,
10379 and to remove the need for the dummy.
10380 Include intprops.h to compute width instead of doing it ourselves
10381 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
10382 (strerror): Define it to return NULL if there's no system strerror.
10383 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
10384 Omit !HAVE_STRERROR code. We don't need to worry about supporting
10385 ancient pre-strerror Unix systems well any more. Saying "unknown
10386 system error" is enough.
10387 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
10388 simpler strerror.c implementation.
10389 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
10390 Simplify the tests to reflect the simpler strerror implementation.
10391 * modules/strerror (Depends-on): Add intprops.
10393 2007-10-09 Eric Blake <ebb9@byu.net>
10395 Silence test-fpending.
10396 * modules/fpending-tests (Files): Add wrapper script.
10397 * tests/test-fpending.sh: New file.
10399 2007-10-09 Bruno Haible <bruno@clisp.org>
10401 * MODULES.html.sh (func_module): Don't create a hyperlink for
10402 function names like 'printf_frexp'.
10403 (Misc): Add crc, memxor.
10404 (Characteristics of floating types): New section.
10405 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
10406 isnanf-nolibm, signbit, trunc, truncf, truncl.
10407 (Enhancements for ISO C 99 functions): New subsection Input/output.
10408 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
10409 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
10410 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
10411 (Compatibility checks for POSIX:2001 functions): Add clock-time.
10412 (Enhancements for POSIX:2001 functions): Add chdir-long.
10413 (File system functions): Add areadlink, chdir-safer, read-file.
10414 Remove cycle-check.
10415 (File system as inode set): New section.
10416 (Date and time): Add gethrxtime.
10417 (Multithreading): Add openmp.
10418 (Internationalization functions): Add localename.
10419 (Unicode string functions): Add unistr/u*-mbsnlen.
10420 (Support for maintaining and releasing projects): Add git-version-gen.
10421 (Lone files): Remove directories.
10423 2007-10-08 Ben Pfaff <blp@gnu.org>
10425 * lib/xmalloca.h: Fix typo in comment.
10427 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
10429 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
10430 when avoiding problems with integer overflow. Use a portable test
10433 2007-10-08 Simon Josefsson <simon@josefsson.org>
10435 * modules/dummy (License): Change to LGPLv2+.
10436 * modules/float (License): Likewise
10437 * modules/realloc (License): Likewise
10438 * modules/stdlib (License): Likewise
10440 2007-10-07 Bruno Haible <bruno@clisp.org>
10442 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
10443 * floor.c (TWO_MANT_DIG): Likewise.
10444 * ceil.c (TWO_MANT_DIG): Likewise.
10445 Reported by Ben Pfaff.
10447 2007-10-07 Bruno Haible <bruno@clisp.org>
10449 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
10450 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
10451 * lib/frexp.c (FUNC): Likewise.
10452 * lib/printf-frexp.h (printf_frexp): Likewise.
10453 * lib/printf-frexpl.h (printf_frexpl): Likewise.
10454 * lib/printf-frexp.c (FUNC): Likewise.
10455 Suggested by Jim Meyering.
10457 2007-10-07 Jim Meyering <meyering@redhat.com>
10459 Make xnanosleep's integer overflow test more robust.
10460 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
10461 so that gcc-4.3.0 doesn't optimize away this test for overflow.
10463 2007-10-07 Bruno Haible <bruno@clisp.org>
10465 * NEWS: Mention the license change.
10467 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
10468 abbreviations in the modules files.
10470 Change copyright notice from GPLv2+ to GPLv3+.
10471 * README: Change copyright notice.
10472 * MODULES.html.sh: Likewise.
10473 * build-aux/bootstrap.conf: Likewise.
10474 * build-aux/config.libpath: Likewise.
10475 * build-aux/csharpcomp.sh.in: Likewise.
10476 * build-aux/csharpexec.sh.in: Likewise.
10477 * build-aux/install-reloc: Likewise.
10478 * build-aux/javacomp.sh.in: Likewise.
10479 * build-aux/javaexec.sh.in: Likewise.
10480 * build-aux/ldd.sh.in: Likewise.
10481 * build-aux/reloc-ldflags: Likewise.
10482 * build-aux/relocatable.sh.in: Likewise.
10483 * build-aux/x-to-1.in: Likewise.
10484 * check-module: Likewise.
10485 * config/srclistvars.sh: Likewise.
10486 * gnulib-tool: Likewise.
10487 * lib/acl-internal.h: Likewise.
10488 * lib/acl.c: Likewise.
10489 * lib/acl.h: Likewise.
10490 * lib/acl_entries.c: Likewise.
10491 * lib/areadlink-with-size.c: Likewise.
10492 * lib/areadlink.c: Likewise.
10493 * lib/areadlink.h: Likewise.
10494 * lib/argmatch.c: Likewise.
10495 * lib/argmatch.h: Likewise.
10496 * lib/argp-ba.c: Likewise.
10497 * lib/argp-eexst.c: Likewise.
10498 * lib/argp-fmtstream.c: Likewise.
10499 * lib/argp-fmtstream.h: Likewise.
10500 * lib/argp-fs-xinl.c: Likewise.
10501 * lib/argp-help.c: Likewise.
10502 * lib/argp-namefrob.h: Likewise.
10503 * lib/argp-parse.c: Likewise.
10504 * lib/argp-pin.c: Likewise.
10505 * lib/argp-pv.c: Likewise.
10506 * lib/argp-pvh.c: Likewise.
10507 * lib/argp-xinl.c: Likewise.
10508 * lib/argp.h: Likewise.
10509 * lib/at-func.c: Likewise.
10510 * lib/atanl.c: Likewise.
10511 * lib/backupfile.c: Likewise.
10512 * lib/backupfile.h: Likewise.
10513 * lib/basename.c: Likewise.
10514 * lib/binary-io.h: Likewise.
10515 * lib/byteswap.in.h: Likewise.
10516 * lib/c-stack.c: Likewise.
10517 * lib/c-stack.h: Likewise.
10518 * lib/c-strcasestr.c: Likewise.
10519 * lib/c-strcasestr.h: Likewise.
10520 * lib/c-strstr.c: Likewise.
10521 * lib/c-strstr.h: Likewise.
10522 * lib/c-strtod.c: Likewise.
10523 * lib/calloc.c: Likewise.
10524 * lib/canon-host.c: Likewise.
10525 * lib/canon-host.h: Likewise.
10526 * lib/canonicalize-lgpl.c: Likewise.
10527 * lib/canonicalize.c: Likewise.
10528 * lib/canonicalize.h: Likewise.
10529 * lib/ceil.c: Likewise.
10530 * lib/ceilf.c: Likewise.
10531 * lib/ceill.c: Likewise.
10532 * lib/chdir-long.c: Likewise.
10533 * lib/chdir-long.h: Likewise.
10534 * lib/chdir-safer.c: Likewise.
10535 * lib/chdir-safer.h: Likewise.
10536 * lib/chown.c: Likewise.
10537 * lib/classpath.c: Likewise.
10538 * lib/classpath.h: Likewise.
10539 * lib/clean-temp.c: Likewise.
10540 * lib/clean-temp.h: Likewise.
10541 * lib/cloexec.c: Likewise.
10542 * lib/close-stream.c: Likewise.
10543 * lib/closein.c: Likewise.
10544 * lib/closein.h: Likewise.
10545 * lib/closeout.c: Likewise.
10546 * lib/closeout.h: Likewise.
10547 * lib/concat-filename.c: Likewise.
10548 * lib/copy-file.c: Likewise.
10549 * lib/copy-file.h: Likewise.
10550 * lib/count-one-bits.h: Likewise.
10551 * lib/crc.c: Likewise.
10552 * lib/crc.h: Likewise.
10553 * lib/creat-safer.c: Likewise.
10554 * lib/csharpcomp.c: Likewise.
10555 * lib/csharpcomp.h: Likewise.
10556 * lib/csharpexec.c: Likewise.
10557 * lib/csharpexec.h: Likewise.
10558 * lib/cycle-check.c: Likewise.
10559 * lib/cycle-check.h: Likewise.
10560 * lib/diacrit.c: Likewise.
10561 * lib/diacrit.h: Likewise.
10562 * lib/diffseq.h: Likewise.
10563 * lib/dirchownmod.c: Likewise.
10564 * lib/dirent.in.h: Likewise.
10565 * lib/dirfd.c: Likewise.
10566 * lib/dirfd.h: Likewise.
10567 * lib/dirname.c: Likewise.
10568 * lib/dirname.h: Likewise.
10569 * lib/dummy.c: Likewise.
10570 * lib/dup-safer.c: Likewise.
10571 * lib/dup2.c: Likewise.
10572 * lib/eealloc.h: Likewise.
10573 * lib/error.c: Likewise.
10574 * lib/error.h: Likewise.
10575 * lib/euidaccess.c: Likewise.
10576 * lib/exclude.c: Likewise.
10577 * lib/exclude.h: Likewise.
10578 * lib/execute.c: Likewise.
10579 * lib/execute.h: Likewise.
10580 * lib/exitfail.c: Likewise.
10581 * lib/exitfail.h: Likewise.
10582 * lib/expl.c: Likewise.
10583 * lib/fatal-signal.c: Likewise.
10584 * lib/fatal-signal.h: Likewise.
10585 * lib/fbufmode.c: Likewise.
10586 * lib/fbufmode.h: Likewise.
10587 * lib/fchdir.c: Likewise.
10588 * lib/fchmodat.c: Likewise.
10589 * lib/fchownat.c: Likewise.
10590 * lib/fcntl--.h: Likewise.
10591 * lib/fcntl-safer.h: Likewise.
10592 * lib/fcntl.in.h: Likewise.
10593 * lib/fd-safer.c: Likewise.
10594 * lib/fflush.c: Likewise.
10595 * lib/file-has-acl.c: Likewise.
10596 * lib/file-set.c: Likewise.
10597 * lib/file-type.c: Likewise.
10598 * lib/file-type.h: Likewise.
10599 * lib/fileblocks.c: Likewise.
10600 * lib/filemode.c: Likewise.
10601 * lib/filemode.h: Likewise.
10602 * lib/filename.h: Likewise.
10603 * lib/filenamecat.c: Likewise.
10604 * lib/filenamecat.h: Likewise.
10605 * lib/findprog.c: Likewise.
10606 * lib/findprog.h: Likewise.
10607 * lib/float.in.h: Likewise.
10608 * lib/floor.c: Likewise.
10609 * lib/floorf.c: Likewise.
10610 * lib/floorl.c: Likewise.
10611 * lib/fopen-safer.c: Likewise.
10612 * lib/fopen.c: Likewise.
10613 * lib/fpending.c: Likewise.
10614 * lib/fpending.h: Likewise.
10615 * lib/fprintf.c: Likewise.
10616 * lib/fprintftime.h: Likewise.
10617 * lib/fpucw.h: Likewise.
10618 * lib/fpurge.c: Likewise.
10619 * lib/fpurge.h: Likewise.
10620 * lib/freadable.c: Likewise.
10621 * lib/freadable.h: Likewise.
10622 * lib/freadahead.c: Likewise.
10623 * lib/freadahead.h: Likewise.
10624 * lib/freading.c: Likewise.
10625 * lib/freading.h: Likewise.
10626 * lib/free.c: Likewise.
10627 * lib/freopen.c: Likewise.
10628 * lib/frexp.c: Likewise.
10629 * lib/frexpl.c: Likewise.
10630 * lib/fseek.c: Likewise.
10631 * lib/fseterr.c: Likewise.
10632 * lib/fseterr.h: Likewise.
10633 * lib/fstatat.c: Likewise.
10634 * lib/fstrcmp.c: Likewise.
10635 * lib/fstrcmp.h: Likewise.
10636 * lib/fsusage.c: Likewise.
10637 * lib/fsusage.h: Likewise.
10638 * lib/ftell.c: Likewise.
10639 * lib/ftello.c: Likewise.
10640 * lib/fts-cycle.c: Likewise.
10641 * lib/fts.c: Likewise.
10642 * lib/fts_.h: Likewise.
10643 * lib/full-read.c: Likewise.
10644 * lib/full-read.h: Likewise.
10645 * lib/full-write.c: Likewise.
10646 * lib/full-write.h: Likewise.
10647 * lib/fwritable.c: Likewise.
10648 * lib/fwritable.h: Likewise.
10649 * lib/fwriteerror.c: Likewise.
10650 * lib/fwriteerror.h: Likewise.
10651 * lib/fwriting.c: Likewise.
10652 * lib/fwriting.h: Likewise.
10653 * lib/gcd.c: Likewise.
10654 * lib/gcd.h: Likewise.
10655 * lib/getcwd.c: Likewise.
10656 * lib/getdate.h: Likewise.
10657 * lib/getdate.y: Likewise.
10658 * lib/getdomainname.c: Likewise.
10659 * lib/getdomainname.h: Likewise.
10660 * lib/getgroups.c: Likewise.
10661 * lib/gethostname.c: Likewise.
10662 * lib/gethrxtime.c: Likewise.
10663 * lib/gethrxtime.h: Likewise.
10664 * lib/getloadavg.c: Likewise.
10665 * lib/getndelim2.c: Likewise.
10666 * lib/getndelim2.h: Likewise.
10667 * lib/getnline.c: Likewise.
10668 * lib/getnline.h: Likewise.
10669 * lib/getopt.c: Likewise.
10670 * lib/getopt.in.h: Likewise.
10671 * lib/getopt1.c: Likewise.
10672 * lib/getopt_int.h: Likewise.
10673 * lib/getpagesize.h: Likewise.
10674 * lib/getsubopt.c: Likewise.
10675 * lib/gettime.c: Likewise.
10676 * lib/getugroups.c: Likewise.
10677 * lib/getugroups.h: Likewise.
10678 * lib/getusershell.c: Likewise.
10679 * lib/gl_anyavltree_list1.h: Likewise.
10680 * lib/gl_anyavltree_list2.h: Likewise.
10681 * lib/gl_anyhash_list1.h: Likewise.
10682 * lib/gl_anyhash_list2.h: Likewise.
10683 * lib/gl_anylinked_list1.h: Likewise.
10684 * lib/gl_anylinked_list2.h: Likewise.
10685 * lib/gl_anyrbtree_list1.h: Likewise.
10686 * lib/gl_anyrbtree_list2.h: Likewise.
10687 * lib/gl_anytree_list1.h: Likewise.
10688 * lib/gl_anytree_list2.h: Likewise.
10689 * lib/gl_anytree_oset.h: Likewise.
10690 * lib/gl_anytreehash_list1.h: Likewise.
10691 * lib/gl_anytreehash_list2.h: Likewise.
10692 * lib/gl_array_list.c: Likewise.
10693 * lib/gl_array_list.h: Likewise.
10694 * lib/gl_array_oset.c: Likewise.
10695 * lib/gl_array_oset.h: Likewise.
10696 * lib/gl_avltree_list.c: Likewise.
10697 * lib/gl_avltree_list.h: Likewise.
10698 * lib/gl_avltree_oset.c: Likewise.
10699 * lib/gl_avltree_oset.h: Likewise.
10700 * lib/gl_avltreehash_list.c: Likewise.
10701 * lib/gl_avltreehash_list.h: Likewise.
10702 * lib/gl_carray_list.c: Likewise.
10703 * lib/gl_carray_list.h: Likewise.
10704 * lib/gl_linked_list.c: Likewise.
10705 * lib/gl_linked_list.h: Likewise.
10706 * lib/gl_linkedhash_list.c: Likewise.
10707 * lib/gl_linkedhash_list.h: Likewise.
10708 * lib/gl_list.c: Likewise.
10709 * lib/gl_list.h: Likewise.
10710 * lib/gl_oset.c: Likewise.
10711 * lib/gl_oset.h: Likewise.
10712 * lib/gl_rbtree_list.c: Likewise.
10713 * lib/gl_rbtree_list.h: Likewise.
10714 * lib/gl_rbtree_oset.c: Likewise.
10715 * lib/gl_rbtree_oset.h: Likewise.
10716 * lib/gl_rbtreehash_list.c: Likewise.
10717 * lib/gl_rbtreehash_list.h: Likewise.
10718 * lib/gl_sublist.c: Likewise.
10719 * lib/gl_sublist.h: Likewise.
10720 * lib/group-member.c: Likewise.
10721 * lib/group-member.h: Likewise.
10722 * lib/hard-locale.c: Likewise.
10723 * lib/hard-locale.h: Likewise.
10724 * lib/hash-pjw.c: Likewise.
10725 * lib/hash-pjw.h: Likewise.
10726 * lib/hash-triple.c: Likewise.
10727 * lib/hash.c: Likewise.
10728 * lib/hash.h: Likewise.
10729 * lib/human.c: Likewise.
10730 * lib/human.h: Likewise.
10731 * lib/i-ring.c: Likewise.
10732 * lib/i-ring.h: Likewise.
10733 * lib/idcache.c: Likewise.
10734 * lib/imaxabs.c: Likewise.
10735 * lib/imaxdiv.c: Likewise.
10736 * lib/inet_pton.c: Likewise.
10737 * lib/inet_pton.h: Likewise.
10738 * lib/intprops.h: Likewise.
10739 * lib/inttostr.c: Likewise.
10740 * lib/inttostr.h: Likewise.
10741 * lib/inttypes.in.h: Likewise.
10742 * lib/isapipe.c: Likewise.
10743 * lib/isdir.c: Likewise.
10744 * lib/isnan.c: Likewise.
10745 * lib/isnan.h: Likewise.
10746 * lib/isnanf.c: Likewise.
10747 * lib/isnanf.h: Likewise.
10748 * lib/isnanl-nolibm.h: Likewise.
10749 * lib/isnanl.c: Likewise.
10750 * lib/isnanl.h: Likewise.
10751 * lib/javacomp.c: Likewise.
10752 * lib/javacomp.h: Likewise.
10753 * lib/javaexec.c: Likewise.
10754 * lib/javaexec.h: Likewise.
10755 * lib/javaversion.c: Likewise.
10756 * lib/javaversion.h: Likewise.
10757 * lib/javaversion.java: Likewise.
10758 * lib/lbrkprop.h: Likewise.
10759 * lib/lchmod.h: Likewise.
10760 * lib/lchown.c: Likewise.
10761 * lib/ldexpl.c: Likewise.
10762 * lib/linebreak.c: Likewise.
10763 * lib/linebreak.h: Likewise.
10764 * lib/linebuffer.c: Likewise.
10765 * lib/linebuffer.h: Likewise.
10766 * lib/locale.in.h: Likewise.
10767 * lib/logl.c: Likewise.
10768 * lib/long-options.c: Likewise.
10769 * lib/long-options.h: Likewise.
10770 * lib/lstat.c: Likewise.
10771 * lib/lstat.h: Likewise.
10772 * lib/math.in.h: Likewise.
10773 * lib/mbchar.c: Likewise.
10774 * lib/mbchar.h: Likewise.
10775 * lib/mbfile.h: Likewise.
10776 * lib/mbiter.h: Likewise.
10777 * lib/mbscasecmp.c: Likewise.
10778 * lib/mbscasestr.c: Likewise.
10779 * lib/mbschr.c: Likewise.
10780 * lib/mbscspn.c: Likewise.
10781 * lib/mbslen.c: Likewise.
10782 * lib/mbsncasecmp.c: Likewise.
10783 * lib/mbsnlen.c: Likewise.
10784 * lib/mbspbrk.c: Likewise.
10785 * lib/mbspcasecmp.c: Likewise.
10786 * lib/mbsrchr.c: Likewise.
10787 * lib/mbssep.c: Likewise.
10788 * lib/mbsspn.c: Likewise.
10789 * lib/mbsstr.c: Likewise.
10790 * lib/mbstok_r.c: Likewise.
10791 * lib/mbswidth.c: Likewise.
10792 * lib/mbswidth.h: Likewise.
10793 * lib/mbuiter.h: Likewise.
10794 * lib/memcasecmp.c: Likewise.
10795 * lib/memcasecmp.h: Likewise.
10796 * lib/memchr.c: Likewise.
10797 * lib/memcmp.c: Likewise.
10798 * lib/memcoll.c: Likewise.
10799 * lib/memcoll.h: Likewise.
10800 * lib/memcpy.c: Likewise.
10801 * lib/memrchr.c: Likewise.
10802 * lib/mkancesdirs.c: Likewise.
10803 * lib/mkdir-p.c: Likewise.
10804 * lib/mkdir-p.h: Likewise.
10805 * lib/mkdir.c: Likewise.
10806 * lib/mkdirat.c: Likewise.
10807 * lib/mkdtemp.c: Likewise.
10808 * lib/mkstemp-safer.c: Likewise.
10809 * lib/mkstemp.c: Likewise.
10810 * lib/modechange.c: Likewise.
10811 * lib/modechange.h: Likewise.
10812 * lib/mountlist.c: Likewise.
10813 * lib/mountlist.h: Likewise.
10814 * lib/mpsort.c: Likewise.
10815 * lib/nanosleep.c: Likewise.
10816 * lib/obstack.c: Likewise.
10817 * lib/obstack.h: Likewise.
10818 * lib/open-safer.c: Likewise.
10819 * lib/open.c: Likewise.
10820 * lib/openat-die.c: Likewise.
10821 * lib/openat-priv.h: Likewise.
10822 * lib/openat-proc.c: Likewise.
10823 * lib/openat.c: Likewise.
10824 * lib/openat.h: Likewise.
10825 * lib/pagealign_alloc.c: Likewise.
10826 * lib/pagealign_alloc.h: Likewise.
10827 * lib/physmem.c: Likewise.
10828 * lib/physmem.h: Likewise.
10829 * lib/pipe-safer.c: Likewise.
10830 * lib/pipe.c: Likewise.
10831 * lib/pipe.h: Likewise.
10832 * lib/posixtm.c: Likewise.
10833 * lib/posixtm.h: Likewise.
10834 * lib/posixver.c: Likewise.
10835 * lib/printf-frexp.c: Likewise.
10836 * lib/printf-frexp.h: Likewise.
10837 * lib/printf-frexpl.c: Likewise.
10838 * lib/printf-frexpl.h: Likewise.
10839 * lib/printf.c: Likewise.
10840 * lib/progname.c: Likewise.
10841 * lib/progname.h: Likewise.
10842 * lib/progreloc.c: Likewise.
10843 * lib/putenv.c: Likewise.
10844 * lib/quote.c: Likewise.
10845 * lib/quote.h: Likewise.
10846 * lib/quotearg.c: Likewise.
10847 * lib/quotearg.h: Likewise.
10848 * lib/raise.c: Likewise.
10849 * lib/readline.c: Likewise.
10850 * lib/readline.h: Likewise.
10851 * lib/readlink.c: Likewise.
10852 * lib/readtokens.c: Likewise.
10853 * lib/readtokens.h: Likewise.
10854 * lib/readtokens0.c: Likewise.
10855 * lib/readtokens0.h: Likewise.
10856 * lib/readutmp.c: Likewise.
10857 * lib/readutmp.h: Likewise.
10858 * lib/realloc.c: Likewise.
10859 * lib/relocwrapper.c: Likewise.
10860 * lib/rename-dest-slash.c: Likewise.
10861 * lib/rename.c: Likewise.
10862 * lib/rmdir.c: Likewise.
10863 * lib/rpmatch.c: Likewise.
10864 * lib/safe-read.c: Likewise.
10865 * lib/safe-read.h: Likewise.
10866 * lib/safe-write.c: Likewise.
10867 * lib/safe-write.h: Likewise.
10868 * lib/same-inode.h: Likewise.
10869 * lib/same.c: Likewise.
10870 * lib/same.h: Likewise.
10871 * lib/save-cwd.c: Likewise.
10872 * lib/save-cwd.h: Likewise.
10873 * lib/savedir.c: Likewise.
10874 * lib/savedir.h: Likewise.
10875 * lib/savewd.c: Likewise.
10876 * lib/savewd.h: Likewise.
10877 * lib/search.in.h: Likewise.
10878 * lib/setenv.c: Likewise.
10879 * lib/setenv.h: Likewise.
10880 * lib/settime.c: Likewise.
10881 * lib/sh-quote.c: Likewise.
10882 * lib/sh-quote.h: Likewise.
10883 * lib/sig2str.c: Likewise.
10884 * lib/sig2str.h: Likewise.
10885 * lib/signal.in.h: Likewise.
10886 * lib/signbitd.c: Likewise.
10887 * lib/signbitf.c: Likewise.
10888 * lib/signbitl.c: Likewise.
10889 * lib/sigprocmask.c: Likewise.
10890 * lib/sincosl.c: Likewise.
10891 * lib/sleep.c: Likewise.
10892 * lib/sprintf.c: Likewise.
10893 * lib/sqrtl.c: Likewise.
10894 * lib/stat-time.h: Likewise.
10895 * lib/stdio--.h: Likewise.
10896 * lib/stdio-safer.h: Likewise.
10897 * lib/stdlib--.h: Likewise.
10898 * lib/stdlib-safer.h: Likewise.
10899 * lib/stdlib.in.h: Likewise.
10900 * lib/stpcpy.c: Likewise.
10901 * lib/stpncpy.c: Likewise.
10902 * lib/strchrnul.c: Likewise.
10903 * lib/strcspn.c: Likewise.
10904 * lib/strerror.c: Likewise.
10905 * lib/strftime.c: Likewise.
10906 * lib/strftime.h: Likewise.
10907 * lib/striconveh.c: Likewise.
10908 * lib/striconveh.h: Likewise.
10909 * lib/striconveha.c: Likewise.
10910 * lib/striconveha.h: Likewise.
10911 * lib/stripslash.c: Likewise.
10912 * lib/strnlen1.c: Likewise.
10913 * lib/strnlen1.h: Likewise.
10914 * lib/strtod.c: Likewise.
10915 * lib/strtoimax.c: Likewise.
10916 * lib/strtok_r.c: Likewise.
10917 * lib/strtol.c: Likewise.
10918 * lib/strtoll.c: Likewise.
10919 * lib/strtoul.c: Likewise.
10920 * lib/strtoull.c: Likewise.
10921 * lib/sysexits.in.h: Likewise.
10922 * lib/tempname.c: Likewise.
10923 * lib/tempname.h: Likewise.
10924 * lib/timespec.h: Likewise.
10925 * lib/tls.c: Likewise.
10926 * lib/tls.h: Likewise.
10927 * lib/tmpdir.c: Likewise.
10928 * lib/tmpdir.h: Likewise.
10929 * lib/tmpfile-safer.c: Likewise.
10930 * lib/tmpfile.c: Likewise.
10931 * lib/trigl.c: Likewise.
10932 * lib/trigl.h: Likewise.
10933 * lib/trim.c: Likewise.
10934 * lib/trim.h: Likewise.
10935 * lib/trunc.c: Likewise.
10936 * lib/truncf.c: Likewise.
10937 * lib/truncl.c: Likewise.
10938 * lib/tsearch.c: Likewise.
10939 * lib/unicodeio.c: Likewise.
10940 * lib/unicodeio.h: Likewise.
10941 * lib/unistd--.h: Likewise.
10942 * lib/unistd-safer.h: Likewise.
10943 * lib/unistdio/ulc-fprintf.c: Likewise.
10944 * lib/unistdio/ulc-vfprintf.c: Likewise.
10945 * lib/unlinkdir.c: Likewise.
10946 * lib/unlinkdir.h: Likewise.
10947 * lib/unlocked-io.h: Likewise.
10948 * lib/unsetenv.c: Likewise.
10949 * lib/userspec.c: Likewise.
10950 * lib/utime.c: Likewise.
10951 * lib/utimecmp.c: Likewise.
10952 * lib/utimecmp.h: Likewise.
10953 * lib/utimens.c: Likewise.
10954 * lib/verify.h: Likewise.
10955 * lib/verror.c: Likewise.
10956 * lib/verror.h: Likewise.
10957 * lib/version-etc-fsf.c: Likewise.
10958 * lib/version-etc.c: Likewise.
10959 * lib/version-etc.h: Likewise.
10960 * lib/vfprintf.c: Likewise.
10961 * lib/vprintf.c: Likewise.
10962 * lib/vsprintf.c: Likewise.
10963 * lib/w32spawn.h: Likewise.
10964 * lib/wait-process.c: Likewise.
10965 * lib/wait-process.h: Likewise.
10966 * lib/wcwidth.c: Likewise.
10967 * lib/write-any-file.c: Likewise.
10968 * lib/xalloc-die.c: Likewise.
10969 * lib/xalloc.h: Likewise.
10970 * lib/xasprintf.c: Likewise.
10971 * lib/xgetcwd.c: Likewise.
10972 * lib/xgetcwd.h: Likewise.
10973 * lib/xgetdomainname.c: Likewise.
10974 * lib/xgetdomainname.h: Likewise.
10975 * lib/xgethostname.c: Likewise.
10976 * lib/xmalloc.c: Likewise.
10977 * lib/xmalloca.c: Likewise.
10978 * lib/xmalloca.h: Likewise.
10979 * lib/xmemcoll.c: Likewise.
10980 * lib/xnanosleep.c: Likewise.
10981 * lib/xreadlink.c: Likewise.
10982 * lib/xreadlink.h: Likewise.
10983 * lib/xsetenv.c: Likewise.
10984 * lib/xsetenv.h: Likewise.
10985 * lib/xstriconv.c: Likewise.
10986 * lib/xstriconv.h: Likewise.
10987 * lib/xstrndup.c: Likewise.
10988 * lib/xstrndup.h: Likewise.
10989 * lib/xstrtod.c: Likewise.
10990 * lib/xstrtod.h: Likewise.
10991 * lib/xstrtol-error.c: Likewise.
10992 * lib/xstrtol.c: Likewise.
10993 * lib/xstrtol.h: Likewise.
10994 * lib/xtime.h: Likewise.
10995 * lib/xvasprintf.c: Likewise.
10996 * lib/xvasprintf.h: Likewise.
10997 * lib/yesno.c: Likewise.
10998 * lib/yesno.h: Likewise.
10999 * posix-modules: Likewise.
11000 * tests/test-alloca-opt.c: Likewise.
11001 * tests/test-arcfour.c: Likewise.
11002 * tests/test-arctwo.c: Likewise.
11003 * tests/test-argmatch.c: Likewise.
11004 * tests/test-argp-2.sh: Likewise.
11005 * tests/test-argp.c: Likewise.
11006 * tests/test-arpa_inet.c: Likewise.
11007 * tests/test-array_list.c: Likewise.
11008 * tests/test-array_oset.c: Likewise.
11009 * tests/test-atexit.c: Likewise.
11010 * tests/test-avltree_list.c: Likewise.
11011 * tests/test-avltree_oset.c: Likewise.
11012 * tests/test-avltreehash_list.c: Likewise.
11013 * tests/test-base64.c: Likewise.
11014 * tests/test-binary-io.c: Likewise.
11015 * tests/test-byteswap.c: Likewise.
11016 * tests/test-c-ctype.c: Likewise.
11017 * tests/test-c-strcasecmp.c: Likewise.
11018 * tests/test-c-strcasestr.c: Likewise.
11019 * tests/test-c-strncasecmp.c: Likewise.
11020 * tests/test-c-strstr.c: Likewise.
11021 * tests/test-canonicalize-lgpl.c: Likewise.
11022 * tests/test-canonicalize.c: Likewise.
11023 * tests/test-carray_list.c: Likewise.
11024 * tests/test-ceilf.c: Likewise.
11025 * tests/test-ceill.c: Likewise.
11026 * tests/test-count-one-bits.c: Likewise.
11027 * tests/test-crc.c: Likewise.
11028 * tests/test-dirname.c: Likewise.
11029 * tests/test-fbufmode.c: Likewise.
11030 * tests/test-fcntl.c: Likewise.
11031 * tests/test-fflush.c: Likewise.
11032 * tests/test-floorf.c: Likewise.
11033 * tests/test-floorl.c: Likewise.
11034 * tests/test-fopen.c: Likewise.
11035 * tests/test-fprintf-posix.c: Likewise.
11036 * tests/test-fprintf-posix.h: Likewise.
11037 * tests/test-fpurge.c: Likewise.
11038 * tests/test-freadable.c: Likewise.
11039 * tests/test-freadahead.c: Likewise.
11040 * tests/test-freading.c: Likewise.
11041 * tests/test-freopen.c: Likewise.
11042 * tests/test-frexp.c: Likewise.
11043 * tests/test-frexpl.c: Likewise.
11044 * tests/test-fseek.c: Likewise.
11045 * tests/test-fseeko.c: Likewise.
11046 * tests/test-fseterr.c: Likewise.
11047 * tests/test-fstrcmp.c: Likewise.
11048 * tests/test-ftell.c: Likewise.
11049 * tests/test-ftello.c: Likewise.
11050 * tests/test-fwritable.c: Likewise.
11051 * tests/test-fwriting.c: Likewise.
11052 * tests/test-getaddrinfo.c: Likewise.
11053 * tests/test-getpass.c: Likewise.
11054 * tests/test-gettimeofday.c: Likewise.
11055 * tests/test-hmac-md5.c: Likewise.
11056 * tests/test-hmac-sha1.c: Likewise.
11057 * tests/test-iconv.c: Likewise.
11058 * tests/test-iconvme.c: Likewise.
11059 * tests/test-inttypes.c: Likewise.
11060 * tests/test-isnan.c: Likewise.
11061 * tests/test-isnanf.c: Likewise.
11062 * tests/test-isnanl-nolibm.c: Likewise.
11063 * tests/test-isnanl.c: Likewise.
11064 * tests/test-isnanl.h: Likewise.
11065 * tests/test-ldexpl.c: Likewise.
11066 * tests/test-linked_list.c: Likewise.
11067 * tests/test-linkedhash_list.c: Likewise.
11068 * tests/test-locale.c: Likewise.
11069 * tests/test-localename.c: Likewise.
11070 * tests/test-lock.c: Likewise.
11071 * tests/test-lseek.c: Likewise.
11072 * tests/test-malloca.c: Likewise.
11073 * tests/test-math.c: Likewise.
11074 * tests/test-mbscasecmp.c: Likewise.
11075 * tests/test-mbscasestr1.c: Likewise.
11076 * tests/test-mbscasestr2.c: Likewise.
11077 * tests/test-mbscasestr3.c: Likewise.
11078 * tests/test-mbscasestr4.c: Likewise.
11079 * tests/test-mbschr.c: Likewise.
11080 * tests/test-mbscspn.c: Likewise.
11081 * tests/test-mbsncasecmp.c: Likewise.
11082 * tests/test-mbspbrk.c: Likewise.
11083 * tests/test-mbspcasecmp.c: Likewise.
11084 * tests/test-mbsrchr.c: Likewise.
11085 * tests/test-mbsspn.c: Likewise.
11086 * tests/test-mbsstr1.c: Likewise.
11087 * tests/test-mbsstr2.c: Likewise.
11088 * tests/test-mbsstr3.c: Likewise.
11089 * tests/test-md5.c: Likewise.
11090 * tests/test-memmem.c: Likewise.
11091 * tests/test-netinet_in.c: Likewise.
11092 * tests/test-open.c: Likewise.
11093 * tests/test-printf-frexp.c: Likewise.
11094 * tests/test-printf-frexpl.c: Likewise.
11095 * tests/test-printf-posix.c: Likewise.
11096 * tests/test-printf-posix.h: Likewise.
11097 * tests/test-rbtree_list.c: Likewise.
11098 * tests/test-rbtree_oset.c: Likewise.
11099 * tests/test-rbtreehash_list.c: Likewise.
11100 * tests/test-read-file.c: Likewise.
11101 * tests/test-rijndael.c: Likewise.
11102 * tests/test-search.c: Likewise.
11103 * tests/test-signbit.c: Likewise.
11104 * tests/test-sleep.c: Likewise.
11105 * tests/test-snprintf-posix.c: Likewise.
11106 * tests/test-snprintf-posix.h: Likewise.
11107 * tests/test-snprintf.c: Likewise.
11108 * tests/test-sprintf-posix.c: Likewise.
11109 * tests/test-sprintf-posix.h: Likewise.
11110 * tests/test-stat-time.c: Likewise.
11111 * tests/test-stdbool.c: Likewise.
11112 * tests/test-stdint.c: Likewise.
11113 * tests/test-stdio.c: Likewise.
11114 * tests/test-stdlib.c: Likewise.
11115 * tests/test-stpncpy.c: Likewise.
11116 * tests/test-strcasestr.c: Likewise.
11117 * tests/test-striconv.c: Likewise.
11118 * tests/test-striconveh.c: Likewise.
11119 * tests/test-striconveha.c: Likewise.
11120 * tests/test-string.c: Likewise.
11121 * tests/test-sys_select.c: Likewise.
11122 * tests/test-sys_socket.c: Likewise.
11123 * tests/test-sys_stat.c: Likewise.
11124 * tests/test-sys_time.c: Likewise.
11125 * tests/test-sysexits.c: Likewise.
11126 * tests/test-time.c: Likewise.
11127 * tests/test-tls.c: Likewise.
11128 * tests/test-trunc.c: Likewise.
11129 * tests/test-truncf.c: Likewise.
11130 * tests/test-truncl.c: Likewise.
11131 * tests/test-unistd.c: Likewise.
11132 * tests/test-vasnprintf-posix.c: Likewise.
11133 * tests/test-vasnprintf-posix2.c: Likewise.
11134 * tests/test-vasnprintf.c: Likewise.
11135 * tests/test-vasprintf-posix.c: Likewise.
11136 * tests/test-vasprintf.c: Likewise.
11137 * tests/test-verify.c: Likewise.
11138 * tests/test-vfprintf-posix.c: Likewise.
11139 * tests/test-vprintf-posix.c: Likewise.
11140 * tests/test-vsnprintf-posix.c: Likewise.
11141 * tests/test-vsnprintf.c: Likewise.
11142 * tests/test-vsprintf-posix.c: Likewise.
11143 * tests/test-wchar.c: Likewise.
11144 * tests/test-wctype.c: Likewise.
11145 * tests/test-wcwidth.c: Likewise.
11146 * tests/test-xstrtol.c: Likewise.
11147 * tests/test-xvasprintf.c: Likewise.
11148 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
11149 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
11150 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11151 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11152 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11153 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
11154 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11155 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11156 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11157 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
11158 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11159 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11160 * tests/uniname/test-uninames.c: Likewise.
11161 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
11162 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
11163 * tests/unistdio/test-u16-printf1.h: Likewise.
11164 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
11165 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
11166 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
11167 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
11168 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11169 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11170 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
11171 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
11172 * tests/unistdio/test-u32-printf1.h: Likewise.
11173 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
11174 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
11175 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
11176 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
11177 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11178 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11179 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
11180 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
11181 * tests/unistdio/test-u8-printf1.h: Likewise.
11182 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
11183 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
11184 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
11185 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
11186 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11187 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11188 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
11189 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
11190 * tests/unistdio/test-ulc-printf1.h: Likewise.
11191 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
11192 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
11193 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
11194 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
11195 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11196 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11197 * tests/uniwidth/test-u16-strwidth.c: Likewise.
11198 * tests/uniwidth/test-u16-width.c: Likewise.
11199 * tests/uniwidth/test-u32-strwidth.c: Likewise.
11200 * tests/uniwidth/test-u32-width.c: Likewise.
11201 * tests/uniwidth/test-u8-strwidth.c: Likewise.
11202 * tests/uniwidth/test-u8-width.c: Likewise.
11203 * tests/uniwidth/test-uc_width.c: Likewise.
11204 * config/srclist-update: Likewise.
11205 (fixlicense): Update to GPLv3+.
11207 Change copyright notice from LGPLv2.1+ to LGPLv3+.
11208 * tests/test-tsearch.c: Change copyright notice.
11210 Change copyright notice from LGPLv2.0+ to LGPLv3+.
11211 * lib/c-strcaseeq.h: Change copyright notice.
11212 * lib/streq.h: Likewise.
11213 * lib/uniconv.h: Likewise.
11214 * lib/uniconv/u-conv-from-enc.h: Likewise.
11215 * lib/uniconv/u-conv-to-enc.h: Likewise.
11216 * lib/uniconv/u-strconv-from-enc.h: Likewise.
11217 * lib/uniconv/u-strconv-to-enc.h: Likewise.
11218 * lib/uniconv/u16-conv-from-enc.c: Likewise.
11219 * lib/uniconv/u16-conv-to-enc.c: Likewise.
11220 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
11221 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
11222 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
11223 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
11224 * lib/uniconv/u32-conv-from-enc.c: Likewise.
11225 * lib/uniconv/u32-conv-to-enc.c: Likewise.
11226 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
11227 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
11228 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
11229 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
11230 * lib/uniconv/u8-conv-from-enc.c: Likewise.
11231 * lib/uniconv/u8-conv-to-enc.c: Likewise.
11232 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
11233 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
11234 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
11235 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
11236 * lib/uniname.h: Likewise.
11237 * lib/uniname/uniname.c: Likewise.
11238 * lib/unistdio.h: Likewise.
11239 * lib/unistdio/u-asnprintf.h: Likewise.
11240 * lib/unistdio/u-asprintf.h: Likewise.
11241 * lib/unistdio/u-printf-args.c: Likewise.
11242 * lib/unistdio/u-printf-args.h: Likewise.
11243 * lib/unistdio/u-printf-parse.h: Likewise.
11244 * lib/unistdio/u-snprintf.h: Likewise.
11245 * lib/unistdio/u-sprintf.h: Likewise.
11246 * lib/unistdio/u-vasprintf.h: Likewise.
11247 * lib/unistdio/u-vsnprintf.h: Likewise.
11248 * lib/unistdio/u-vsprintf.h: Likewise.
11249 * lib/unistdio/u16-asnprintf.c: Likewise.
11250 * lib/unistdio/u16-asprintf.c: Likewise.
11251 * lib/unistdio/u16-printf-parse.c: Likewise.
11252 * lib/unistdio/u16-snprintf.c: Likewise.
11253 * lib/unistdio/u16-sprintf.c: Likewise.
11254 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
11255 * lib/unistdio/u16-u16-asprintf.c: Likewise.
11256 * lib/unistdio/u16-u16-snprintf.c: Likewise.
11257 * lib/unistdio/u16-u16-sprintf.c: Likewise.
11258 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
11259 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
11260 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
11261 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
11262 * lib/unistdio/u16-vasnprintf.c: Likewise.
11263 * lib/unistdio/u16-vasprintf.c: Likewise.
11264 * lib/unistdio/u16-vsnprintf.c: Likewise.
11265 * lib/unistdio/u16-vsprintf.c: Likewise.
11266 * lib/unistdio/u32-asnprintf.c: Likewise.
11267 * lib/unistdio/u32-asprintf.c: Likewise.
11268 * lib/unistdio/u32-printf-parse.c: Likewise.
11269 * lib/unistdio/u32-snprintf.c: Likewise.
11270 * lib/unistdio/u32-sprintf.c: Likewise.
11271 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
11272 * lib/unistdio/u32-u32-asprintf.c: Likewise.
11273 * lib/unistdio/u32-u32-snprintf.c: Likewise.
11274 * lib/unistdio/u32-u32-sprintf.c: Likewise.
11275 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
11276 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
11277 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
11278 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
11279 * lib/unistdio/u32-vasnprintf.c: Likewise.
11280 * lib/unistdio/u32-vasprintf.c: Likewise.
11281 * lib/unistdio/u32-vsnprintf.c: Likewise.
11282 * lib/unistdio/u32-vsprintf.c: Likewise.
11283 * lib/unistdio/u8-asnprintf.c: Likewise.
11284 * lib/unistdio/u8-asprintf.c: Likewise.
11285 * lib/unistdio/u8-printf-parse.c: Likewise.
11286 * lib/unistdio/u8-snprintf.c: Likewise.
11287 * lib/unistdio/u8-sprintf.c: Likewise.
11288 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
11289 * lib/unistdio/u8-u8-asprintf.c: Likewise.
11290 * lib/unistdio/u8-u8-snprintf.c: Likewise.
11291 * lib/unistdio/u8-u8-sprintf.c: Likewise.
11292 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
11293 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
11294 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
11295 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
11296 * lib/unistdio/u8-vasnprintf.c: Likewise.
11297 * lib/unistdio/u8-vasprintf.c: Likewise.
11298 * lib/unistdio/u8-vsnprintf.c: Likewise.
11299 * lib/unistdio/u8-vsprintf.c: Likewise.
11300 * lib/unistdio/ulc-asnprintf.c: Likewise.
11301 * lib/unistdio/ulc-asprintf.c: Likewise.
11302 * lib/unistdio/ulc-printf-parse.c: Likewise.
11303 * lib/unistdio/ulc-snprintf.c: Likewise.
11304 * lib/unistdio/ulc-sprintf.c: Likewise.
11305 * lib/unistdio/ulc-vasnprintf.c: Likewise.
11306 * lib/unistdio/ulc-vasprintf.c: Likewise.
11307 * lib/unistdio/ulc-vsnprintf.c: Likewise.
11308 * lib/unistdio/ulc-vsprintf.c: Likewise.
11309 * lib/unistr.h: Likewise.
11310 * lib/unistr/u-cpy-alloc.h: Likewise.
11311 * lib/unistr/u-cpy.h: Likewise.
11312 * lib/unistr/u-endswith.h: Likewise.
11313 * lib/unistr/u-move.h: Likewise.
11314 * lib/unistr/u-set.h: Likewise.
11315 * lib/unistr/u-startswith.h: Likewise.
11316 * lib/unistr/u-stpcpy.h: Likewise.
11317 * lib/unistr/u-stpncpy.h: Likewise.
11318 * lib/unistr/u-strcat.h: Likewise.
11319 * lib/unistr/u-strcpy.h: Likewise.
11320 * lib/unistr/u-strcspn.h: Likewise.
11321 * lib/unistr/u-strdup.h: Likewise.
11322 * lib/unistr/u-strlen.h: Likewise.
11323 * lib/unistr/u-strncat.h: Likewise.
11324 * lib/unistr/u-strncpy.h: Likewise.
11325 * lib/unistr/u-strnlen.h: Likewise.
11326 * lib/unistr/u-strpbrk.h: Likewise.
11327 * lib/unistr/u-strspn.h: Likewise.
11328 * lib/unistr/u-strstr.h: Likewise.
11329 * lib/unistr/u-strtok.h: Likewise.
11330 * lib/unistr/u16-check.c: Likewise.
11331 * lib/unistr/u16-chr.c: Likewise.
11332 * lib/unistr/u16-cmp.c: Likewise.
11333 * lib/unistr/u16-cpy-alloc.c: Likewise.
11334 * lib/unistr/u16-cpy.c: Likewise.
11335 * lib/unistr/u16-endswith.c: Likewise.
11336 * lib/unistr/u16-mblen.c: Likewise.
11337 * lib/unistr/u16-mbsnlen.c: Likewise.
11338 * lib/unistr/u16-mbtouc-aux.c: Likewise.
11339 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
11340 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
11341 * lib/unistr/u16-mbtouc.c: Likewise.
11342 * lib/unistr/u16-mbtoucr.c: Likewise.
11343 * lib/unistr/u16-move.c: Likewise.
11344 * lib/unistr/u16-next.c: Likewise.
11345 * lib/unistr/u16-prev.c: Likewise.
11346 * lib/unistr/u16-set.c: Likewise.
11347 * lib/unistr/u16-startswith.c: Likewise.
11348 * lib/unistr/u16-stpcpy.c: Likewise.
11349 * lib/unistr/u16-stpncpy.c: Likewise.
11350 * lib/unistr/u16-strcat.c: Likewise.
11351 * lib/unistr/u16-strchr.c: Likewise.
11352 * lib/unistr/u16-strcmp.c: Likewise.
11353 * lib/unistr/u16-strcpy.c: Likewise.
11354 * lib/unistr/u16-strcspn.c: Likewise.
11355 * lib/unistr/u16-strdup.c: Likewise.
11356 * lib/unistr/u16-strlen.c: Likewise.
11357 * lib/unistr/u16-strmblen.c: Likewise.
11358 * lib/unistr/u16-strmbtouc.c: Likewise.
11359 * lib/unistr/u16-strncat.c: Likewise.
11360 * lib/unistr/u16-strncmp.c: Likewise.
11361 * lib/unistr/u16-strncpy.c: Likewise.
11362 * lib/unistr/u16-strnlen.c: Likewise.
11363 * lib/unistr/u16-strpbrk.c: Likewise.
11364 * lib/unistr/u16-strrchr.c: Likewise.
11365 * lib/unistr/u16-strspn.c: Likewise.
11366 * lib/unistr/u16-strstr.c: Likewise.
11367 * lib/unistr/u16-strtok.c: Likewise.
11368 * lib/unistr/u16-to-u32.c: Likewise.
11369 * lib/unistr/u16-to-u8.c: Likewise.
11370 * lib/unistr/u16-uctomb-aux.c: Likewise.
11371 * lib/unistr/u16-uctomb.c: Likewise.
11372 * lib/unistr/u32-check.c: Likewise.
11373 * lib/unistr/u32-chr.c: Likewise.
11374 * lib/unistr/u32-cmp.c: Likewise.
11375 * lib/unistr/u32-cpy-alloc.c: Likewise.
11376 * lib/unistr/u32-cpy.c: Likewise.
11377 * lib/unistr/u32-endswith.c: Likewise.
11378 * lib/unistr/u32-mblen.c: Likewise.
11379 * lib/unistr/u32-mbsnlen.c: Likewise.
11380 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
11381 * lib/unistr/u32-mbtouc.c: Likewise.
11382 * lib/unistr/u32-mbtoucr.c: Likewise.
11383 * lib/unistr/u32-move.c: Likewise.
11384 * lib/unistr/u32-next.c: Likewise.
11385 * lib/unistr/u32-prev.c: Likewise.
11386 * lib/unistr/u32-set.c: Likewise.
11387 * lib/unistr/u32-startswith.c: Likewise.
11388 * lib/unistr/u32-stpcpy.c: Likewise.
11389 * lib/unistr/u32-stpncpy.c: Likewise.
11390 * lib/unistr/u32-strcat.c: Likewise.
11391 * lib/unistr/u32-strchr.c: Likewise.
11392 * lib/unistr/u32-strcmp.c: Likewise.
11393 * lib/unistr/u32-strcpy.c: Likewise.
11394 * lib/unistr/u32-strcspn.c: Likewise.
11395 * lib/unistr/u32-strdup.c: Likewise.
11396 * lib/unistr/u32-strlen.c: Likewise.
11397 * lib/unistr/u32-strmblen.c: Likewise.
11398 * lib/unistr/u32-strmbtouc.c: Likewise.
11399 * lib/unistr/u32-strncat.c: Likewise.
11400 * lib/unistr/u32-strncmp.c: Likewise.
11401 * lib/unistr/u32-strncpy.c: Likewise.
11402 * lib/unistr/u32-strnlen.c: Likewise.
11403 * lib/unistr/u32-strpbrk.c: Likewise.
11404 * lib/unistr/u32-strrchr.c: Likewise.
11405 * lib/unistr/u32-strspn.c: Likewise.
11406 * lib/unistr/u32-strstr.c: Likewise.
11407 * lib/unistr/u32-strtok.c: Likewise.
11408 * lib/unistr/u32-to-u16.c: Likewise.
11409 * lib/unistr/u32-to-u8.c: Likewise.
11410 * lib/unistr/u32-uctomb.c: Likewise.
11411 * lib/unistr/u8-check.c: Likewise.
11412 * lib/unistr/u8-chr.c: Likewise.
11413 * lib/unistr/u8-cmp.c: Likewise.
11414 * lib/unistr/u8-cpy-alloc.c: Likewise.
11415 * lib/unistr/u8-cpy.c: Likewise.
11416 * lib/unistr/u8-endswith.c: Likewise.
11417 * lib/unistr/u8-mblen.c: Likewise.
11418 * lib/unistr/u8-mbsnlen.c: Likewise.
11419 * lib/unistr/u8-mbtouc-aux.c: Likewise.
11420 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
11421 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
11422 * lib/unistr/u8-mbtouc.c: Likewise.
11423 * lib/unistr/u8-mbtoucr.c: Likewise.
11424 * lib/unistr/u8-move.c: Likewise.
11425 * lib/unistr/u8-next.c: Likewise.
11426 * lib/unistr/u8-prev.c: Likewise.
11427 * lib/unistr/u8-set.c: Likewise.
11428 * lib/unistr/u8-startswith.c: Likewise.
11429 * lib/unistr/u8-stpcpy.c: Likewise.
11430 * lib/unistr/u8-stpncpy.c: Likewise.
11431 * lib/unistr/u8-strcat.c: Likewise.
11432 * lib/unistr/u8-strchr.c: Likewise.
11433 * lib/unistr/u8-strcmp.c: Likewise.
11434 * lib/unistr/u8-strcpy.c: Likewise.
11435 * lib/unistr/u8-strcspn.c: Likewise.
11436 * lib/unistr/u8-strdup.c: Likewise.
11437 * lib/unistr/u8-strlen.c: Likewise.
11438 * lib/unistr/u8-strmblen.c: Likewise.
11439 * lib/unistr/u8-strmbtouc.c: Likewise.
11440 * lib/unistr/u8-strncat.c: Likewise.
11441 * lib/unistr/u8-strncmp.c: Likewise.
11442 * lib/unistr/u8-strncpy.c: Likewise.
11443 * lib/unistr/u8-strnlen.c: Likewise.
11444 * lib/unistr/u8-strpbrk.c: Likewise.
11445 * lib/unistr/u8-strrchr.c: Likewise.
11446 * lib/unistr/u8-strspn.c: Likewise.
11447 * lib/unistr/u8-strstr.c: Likewise.
11448 * lib/unistr/u8-strtok.c: Likewise.
11449 * lib/unistr/u8-to-u16.c: Likewise.
11450 * lib/unistr/u8-to-u32.c: Likewise.
11451 * lib/unistr/u8-uctomb-aux.c: Likewise.
11452 * lib/unistr/u8-uctomb.c: Likewise.
11453 * lib/unitypes.h: Likewise.
11454 * lib/uniwidth.h: Likewise.
11455 * lib/uniwidth/cjk.h: Likewise.
11456 * lib/uniwidth/u16-strwidth.c: Likewise.
11457 * lib/uniwidth/u16-width.c: Likewise.
11458 * lib/uniwidth/u32-strwidth.c: Likewise.
11459 * lib/uniwidth/u32-width.c: Likewise.
11460 * lib/uniwidth/u8-strwidth.c: Likewise.
11461 * lib/uniwidth/u8-width.c: Likewise.
11462 * lib/uniwidth/width.c: Likewise.
11464 2007-10-07 Bruno Haible <bruno@clisp.org>
11466 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
11467 The file is still under LGPL (see modules/inttypes).
11469 2007-10-06 Bruno Haible <bruno@clisp.org>
11471 * modules/trunc (Dependencies): Add 'extensions'.
11472 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
11473 Reported by Ben Pfaff <blp@gnu.org>.
11475 2007-10-06 Bruno Haible <bruno@clisp.org>
11477 * modules/freopen-tests: New file.
11478 * tests/test-freopen.c: New file.
11480 * modules/fopen-tests: New file.
11481 * tests/test-fopen.c: New file.
11483 * modules/fopen: New file.
11484 * lib/fopen.c: New file.
11485 * m4/fopen.m4: New file.
11486 * modules/freopen: New file.
11487 * lib/freopen.c: New file.
11488 * m4/freopen.m4: New file.
11489 * lib/stdio.in.h (fopen, freopen): New declarations.
11490 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
11491 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
11492 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
11493 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
11494 * doc/functions/fopen.texi: Mention the 'fopen' module.
11495 * doc/functions/freopen.texi: Mention the 'freopen' module.
11497 2007-10-06 Bruno Haible <bruno@clisp.org>
11499 * modules/open-tests: New file.
11500 * tests/test-open.c: New file.
11502 * modules/open: New file.
11503 * lib/open.c: New file.
11504 * m4/open.m4: New file.
11505 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
11507 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
11508 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
11510 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
11511 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
11513 * doc/functions/open.texi: Mention the 'open' module.
11515 2007-10-04 Bruno Haible <bruno@clisp.org>
11517 * modules/ceill-tests: New file.
11518 * tests/test-ceill.c: New file.
11520 * modules/ceill: New file.
11521 * lib/ceill.c: Replace entire file.
11522 * m4/ceill.m4: New file.
11523 * lib/math.in.h (ceill): Replace declaration.
11524 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
11525 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
11526 * doc/functions/ceill.texi: Mention the 'ceill' module.
11527 * modules/mathl (Files): Remove lib/ceill.c.
11528 (Depends-on): Add ceill.
11530 2007-10-04 Bruno Haible <bruno@clisp.org>
11532 * modules/ceilf-tests: New file.
11533 * tests/test-ceilf.c: New file.
11535 * modules/ceilf: New file.
11536 * lib/ceil.c: New file.
11537 * lib/ceilf.c: New file.
11538 * m4/ceilf.m4: New file.
11539 * lib/math.in.h (ceilf): New declaration.
11540 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
11542 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
11544 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
11546 2007-10-04 Bruno Haible <bruno@clisp.org>
11548 * modules/floorl-tests: New file.
11549 * tests/test-floorl.c: New file.
11551 * modules/floorl: New file.
11552 * lib/floorl.c: Replace entire file.
11553 * m4/floorl.m4: New file.
11554 * lib/math.in.h (floorl): Replace declaration.
11555 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
11556 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
11557 * doc/functions/floorl.texi: Mention the 'floorl' module.
11558 * modules/mathl (Files): Remove lib/floorl.c.
11559 (Depends-on): Add floorl.
11561 2007-10-04 Bruno Haible <bruno@clisp.org>
11563 * modules/floorf-tests: New file.
11564 * tests/test-floorf.c: New file.
11566 * modules/floorf: New file.
11567 * lib/floor.c: New file.
11568 * lib/floorf.c: New file.
11569 * m4/floorf.m4: New file.
11570 * lib/math.in.h (floorf): New declaration.
11571 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
11573 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
11575 * doc/functions/floorf.texi: Mention the 'floorf' module.
11577 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
11578 Bruno Haible <bruno@clisp.org>
11580 Advertise for the Git server instead of the CVS server.
11581 * doc/gnulib-intro.texi (Steady Development): Mention the Git
11582 repository instead of the CVS one.
11583 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
11584 about all VCS systems generically.
11585 * doc/gnulib.texi (Introduction): Capitalize `Git'.
11587 2007-10-04 Bruno Haible <bruno@clisp.org>
11589 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
11591 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
11593 2007-10-04 Bruno Haible <bruno@clisp.org>
11595 * modules/truncl-tests: New file.
11596 * tests/test-truncl.c: New file.
11598 * modules/truncl: New file.
11599 * lib/truncl.c: New file.
11600 * m4/truncl.m4: New file.
11601 * lib/math.in.h (truncl): New declaration.
11602 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
11604 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
11606 * doc/functions/truncl.texi: Mention the 'truncl' module.
11608 2007-10-04 Bruno Haible <bruno@clisp.org>
11610 * modules/truncf-tests: New file.
11611 * tests/test-truncf.c: New file.
11613 * modules/truncf: New file.
11614 * lib/trunc.c: Make paramerizable through USE_* macros.
11615 * lib/truncf.c: New file.
11616 * m4/truncf.m4: New file.
11617 * lib/math.in.h (truncf): New declaration.
11618 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
11620 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
11622 * doc/functions/truncf.texi: Mention the 'truncf' module.
11624 2007-10-03 Bruno Haible <bruno@clisp.org>
11626 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
11627 augmentation also for tests modules.
11628 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
11629 * modules/atexit-tests (Makefile.am): Likewise.
11630 * modules/binary-io-tests (Makefile.am): Likewise.
11631 * modules/c-strcase-tests (Makefile.am): Likewise.
11632 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
11633 * modules/canonicalize-tests (Makefile.am): Likewise.
11634 * modules/closein-tests (Makefile.am): Likewise.
11635 * modules/fprintf-posix-tests (Makefile.am): Likewise.
11636 * modules/freadahead-tests (Makefile.am): Likewise.
11637 * modules/fseek-tests (Makefile.am): Likewise.
11638 * modules/fseeko-tests (Makefile.am): Likewise.
11639 * modules/ftell-tests (Makefile.am): Likewise.
11640 * modules/ftello-tests (Makefile.am): Likewise.
11641 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
11642 * modules/isnanl-tests (Makefile.am): Likewise.
11643 * modules/lseek-tests (Makefile.am): Likewise.
11644 * modules/mbscasecmp-tests (Makefile.am): Likewise.
11645 * modules/mbscasestr-tests (Makefile.am): Likewise.
11646 * modules/mbschr-tests (Makefile.am): Likewise.
11647 * modules/mbscspn-tests (Makefile.am): Likewise.
11648 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
11649 * modules/mbspbrk-tests (Makefile.am): Likewise.
11650 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
11651 * modules/mbsrchr-tests (Makefile.am): Likewise.
11652 * modules/mbsspn-tests (Makefile.am): Likewise.
11653 * modules/mbsstr-tests (Makefile.am): Likewise.
11654 * modules/printf-posix-tests (Makefile.am): Likewise.
11655 * modules/snprintf-posix-tests (Makefile.am): Likewise.
11656 * modules/sprintf-posix-tests (Makefile.am): Likewise.
11657 * modules/tsearch-tests (Makefile.am): Likewise.
11658 * modules/uniname/uniname-tests (Makefile.am): Likewise.
11659 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
11660 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
11661 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
11662 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11663 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
11664 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
11665 * modules/vprintf-posix-tests (Makefile.am): Likewise.
11666 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
11667 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
11668 * modules/xstrtoimax-tests (Makefile.am): Likewise.
11669 * modules/xstrtol-tests (Makefile.am): Likewise.
11670 * modules/xstrtoumax-tests (Makefile.am): Likewise.
11671 * modules/yesno-tests (Makefile.am): Likewise.
11673 2007-10-03 Bruno Haible <bruno@clisp.org>
11675 * modules/trunc-tests: New file.
11676 * tests/test-trunc.c: New file.
11678 * modules/trunc: New file.
11679 * lib/trunc.c: New file.
11680 * m4/trunc.m4: New file.
11681 * lib/math.in.h (trunc): New declaration.
11682 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
11684 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
11686 * doc/functions/trunc.texi: Mention the 'trunc' module.
11688 2007-10-03 Bruno Haible <bruno@clisp.org>
11690 * tests/test-fpending.c: New file, mostly copied
11691 from coreutils/lib/t-fpending.c.
11692 * modules/fpending-tests: New file.
11694 2007-10-03 Bruno Haible <bruno@clisp.org>
11696 Port the stdio extensions to QNX (untested).
11697 * lib/fseterr.c (fseterr): Add support for QNX.
11698 * lib/fbufmode.c (fbufmode): Likewise.
11699 * lib/freadable.c (freadable): Likewise.
11700 * lib/fwritable.c (fwritable): Likewise.
11701 * lib/freading.c (freading): Likewise.
11702 * lib/fwriting.c (fwriting): Likewise.
11703 * lib/freadahead.c (freadahed): Likewise.
11704 * lib/fpurge.c (fpurge): Likewise.
11705 * lib/fseeko.c (rpl_fseeko): Likewise.
11707 2007-10-03 Bruno Haible <bruno@clisp.org>
11708 Jim Meyering <jim@meyering.net>
11709 Eric Blake <ebb9@byu.net>
11711 * doc/relocatable.texi: Use @command instead of @program.
11713 2007-10-02 Jim Meyering <jim@meyering.net>
11715 Perform one more "_.h" -> ".in.h" substitution.
11716 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
11717 instead of unistd_.h here, too.
11719 2007-10-01 Bruno Haible <bruno@clisp.org>
11721 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
11722 Needed for the alloca-opt module.
11724 2007-09-30 Bruno Haible <bruno@clisp.org>
11726 * lib/alloca.in.h: Renamed from lib/alloca_.h.
11727 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
11729 * lib/argz.in.h: Renamed from lib/argz_.h.
11730 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
11731 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
11732 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
11734 * lib/dirent.in.h: Renamed from lib/dirent_.h.
11735 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
11737 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
11738 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
11740 * lib/float.in.h: Renamed from lib/float_.h.
11741 * modules/float (Files, Makefile.am): Use float.in.h instead of
11743 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
11744 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
11746 * lib/getopt.in.h: Renamed from lib/getopt_.h.
11747 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
11749 * lib/glob.in.h: Renamed from lib/glob_.h.
11750 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
11751 * lib/iconv.in.h: Renamed from lib/iconv_.h.
11752 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
11754 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
11755 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
11757 * lib/locale.in.h: Renamed from lib/locale_.h.
11758 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
11760 * lib/math.in.h: Renamed from lib/math_.h.
11761 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
11762 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
11763 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
11764 of netinet_in_.h. Add dependency.
11765 * lib/poll.in.h: Renamed from lib/poll_.h.
11766 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
11767 * lib/search.in.h: Renamed from lib/search_.h.
11768 * modules/search (Files, Makefile.am): Use search.in.h instead of
11770 * lib/signal.in.h: Renamed from lib/signal_.h.
11771 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
11773 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
11774 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
11776 * lib/stdint.in.h: Renamed from lib/stdint_.h.
11777 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
11779 * lib/stdio.in.h: Renamed from lib/stdio_.h.
11780 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
11782 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
11783 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
11785 * lib/string.in.h: Renamed from lib/string_.h.
11786 * modules/string (Files, Makefile.am): Use string.in.h instead of
11788 * doc/gnulib-tool.texi (Initial import): Update.
11789 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
11790 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
11791 of sys_select_.h. Add dependency.
11792 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
11793 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
11795 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
11796 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
11798 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
11799 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
11801 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
11802 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
11804 * lib/time.in.h: Renamed from lib/time_.h.
11805 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
11806 * lib/unistd.in.h: Renamed from lib/unistd_.h.
11807 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
11809 * lib/wchar.in.h: Renamed from lib/wchar_.h.
11810 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
11812 * lib/wctype.in.h: Renamed from lib/wctype_.h.
11813 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
11815 * build-aux/bootstrap (slurp): Update.
11816 * lib/.cppi-disable: Update.
11818 2007-09-30 Bruno Haible <bruno@clisp.org>
11820 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
11823 2007-09-30 Bruno Haible <bruno@clisp.org>
11825 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
11827 2007-09-29 Bruno Haible <bruno@clisp.org>
11829 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
11831 2007-09-29 Bruno Haible <bruno@clisp.org>
11833 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
11834 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
11835 * build-aux/install-reloc: Compile also areadlink.c.
11836 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
11838 2007-09-29 Bruno Haible <bruno@clisp.org>
11840 * gnulib-tool (func_emit_initmacro_done): Indentation.
11842 2007-09-29 Bruno Haible <bruno@clisp.org>
11844 * README: Add CVS checkout update instructions.
11845 Info from Bob Proulx <bob@proulx.com>.
11847 2007-09-28 Eric Blake <ebb9@byu.net>
11849 Provide move-if-change.
11850 * build-aux/move-if-change: New file, based on best practice
11851 rather than any canonical upstream location.
11853 2007-09-28 Jim Meyering <jim@meyering.net>
11855 Fix canonicalize loop-detection corner case.
11856 Do not attempt to stat the symlink values stored via seen_triple.
11857 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
11858 on linux-2.6.18, (but not 2.6.22).
11859 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
11860 triple_compare. The former compares dev,ino,filename, while the latter
11861 would actually stat dirname(filename) when dev and ino were equal.
11862 * lib/hash-triple.c: Install <string.h>.
11864 (triple_compare_ino_str): New function.
11865 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
11867 2007-09-28 Eric Blake <ebb9@byu.net>
11869 Enforce that AC_REPLACE_FUNCS files exist.
11870 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
11871 override check for typos.
11873 Fix test-closein on Solaris 10.
11874 * tests/test-closein.c (main): Don't assume stdin can be inherited
11875 closed on all systems.
11876 * tests/test-closein.sh: Likewise.
11877 Reported by Piotr Tarnowski.
11879 2007-09-28 Jim Meyering <jim@meyering.net>
11881 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
11883 2007-09-27 Jim Meyering <jim@meyering.net>
11885 canonicalize: Avoid a false-positive cycle failure.
11886 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
11887 Sort. Remove cycle-check.
11888 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
11890 (seen_triple): New function.
11891 (canonicalize_filename_mode): Use it instead of cycle-check.
11892 * tests/test-canonicalize.c: Add a test for this bug.
11893 * tests/test-canonicalize.sh: Set up and run the test.
11895 New module, file-set, from coreutils.
11896 * modules/file-set: Define it.
11897 * lib/file-set.c, lib/file-set.h: Implement.
11899 New module, hash-triple, from coreutils.
11900 * modules/hash-triple: Define it.
11901 * lib/hash-triple.c, lib/hash-triple.h: Implement.
11903 2007-09-25 Eric Blake <ebb9@byu.net>
11905 Fix strerror on Interix.
11906 * lib/string_.h (strerror): Declare replacement.
11907 * doc/functions/strerror.texi (strerror): Document the Interix
11909 * modules/string (Makefile.am): Support new hooks.
11910 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
11911 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
11912 gl_FUNC_STRERROR_SEPARATE.
11913 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
11914 * lib/strerror.c (rpl_strerror): Provide replacement.
11915 * modules/strerror (Depends-on): Add string.
11916 (configure.ac): Detect use of module.
11917 * tests/test-strerror.c: New file.
11918 * modules/strerror-tests: New test module.
11919 * modules/argp (Depends-on): Add strerror.
11920 * modules/error (Depends-on): Likewise.
11921 Reported by Martin Koeppe.
11923 2007-09-24 Bruno Haible <bruno@clisp.org>
11925 * README: Update git instructions.
11927 2007-09-24 Eric Blake <ebb9@byu.net>
11929 Revert fpending breakage from 2007-09-08.
11930 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
11933 2007-09-24 Jim Meyering <jim@meyering.net>
11935 filenamecat.c: Add a test.
11936 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
11937 showing how the function works when DIR is the empty string.
11939 2007-09-21 Simon Josefsson <simon@josefsson.org>
11941 * tests/test-canonicalize.sh: Turn on executable bit.
11943 2007-09-19 Eric Blake <ebb9@byu.net>
11945 * README: Update CVS instructions.
11947 2007-09-18 Bruno Haible <bruno@clisp.org>
11949 * modules/areadlink: New file.
11950 * lib/areadlink.h (areadlink): New declaration.
11951 * lib/areadlink.c: New file, based on lib/xreadlink.c.
11953 2007-09-17 Jim Meyering <jim@meyering.net>
11955 * lib/savewd.c (ESTALE) [!defined]: Define.
11956 Reported to be required on Interix by Martin Koeppe.
11958 2007-09-17 Bruno Haible <bruno@clisp.org>
11960 * gnulib-tool (func_version): Use $version.
11962 2007-09-16 Bruno Haible <bruno@clisp.org>
11964 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
11965 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
11966 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
11967 Reported by Greg Schafer <gschafer@zip.com.au>.
11969 2007-09-15 Bruno Haible <bruno@clisp.org>
11971 * gnulib-tool (sed): Try a little harder to make bash understand the
11973 Reported by Bruce Korb <bruce.korb@gmail.com>.
11975 2007-09-13 Eric Blake <ebb9@byu.net>
11977 * ChangeLog: Remove conflict markers.
11979 2007-09-13 Simon Josefsson <simon@josefsson.org>
11981 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
11982 Reported by Bruno Haible <bruno@clisp.org>.
11984 2007-09-12 Bruno Haible <bruno@clisp.org>
11986 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
11987 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
11990 2007-09-12 Eric Blake <ebb9@byu.net>
11992 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
11993 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
11994 Autoconf definition.
11995 * modules/euidaccess (Depends-on): Add extensions, for
11996 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
11997 * modules/fnmatch (Depends-on): Likewise.
11998 * modules/getaddrinfo (Depends-on): Likewise.
11999 * modules/getdelim (Depends-on): Likewise.
12000 * modules/getline (Depends-on): Likewise.
12001 * modules/getsubopt (Depends-on): Likewise.
12002 * modules/gettext (Depends-on): Likewise.
12003 * modules/group-member (Depends-on): Likewise.
12004 * modules/mbchar (Depends-on): Likewise.
12005 * modules/memmem (Depends-on): Likewise.
12006 * modules/mempcpy (Depends-on): Likewise.
12007 * modules/memrchr (Depends-on): Likewise.
12008 * modules/pagealign_alloc (Depends-on): Likewise.
12009 * modules/readutmp (Depends-on): Likewise.
12010 * modules/stpcpy (Depends-on): Likewise.
12011 * modules/stpncpy (Depends-on): Likewise.
12012 * modules/strchrnul (Depends-on): Likewise.
12013 * modules/strndup (Depends-on): Likewise.
12014 * modules/strsep (Depends-on): Likewise.
12015 * modules/strverscmp (Depends-on): Likewise.
12016 * modules/vasprintf (Depends-on): Likewise.
12017 * modules/wcwidth (Depends-on): Likewise.
12018 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
12019 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
12020 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
12021 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
12022 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12023 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12024 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
12025 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
12026 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
12027 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
12028 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12029 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
12030 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
12031 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12032 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
12033 * m4/readutmp.m4 (gl_READUTMP): Likewise.
12034 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12035 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
12036 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12037 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
12038 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
12039 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
12040 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
12041 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
12042 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
12043 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12044 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
12045 so that lock.m4 can be used in gettext without extensions module.
12047 2007-09-11 Bruno Haible <bruno@clisp.org>
12049 * m4/isc-posix.m4: Remove file.
12050 Suggested by Eric Blake.
12052 2007-09-11 Eric Blake <ebb9@byu.net>
12054 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
12056 2007-09-10 Bruno Haible <bruno@clisp.org>
12058 * posix-modules: Fix typo in error message.
12059 Reported by Matt <mkraai@beckman.com>.
12061 2007-09-09 Bruno Haible <bruno@clisp.org>
12063 * doc/functions/getdelim.texi: Update list of platforms lacking the
12065 * doc/functions/getline.texi: Likewise.
12067 2007-09-09 Jim Meyering <jim@meyering.net>
12069 * lib/hash.c (hash_initialize): Detect calloc failure.
12070 Reported by Bruno Haible.
12072 2007-09-09 Bruno Haible <bruno@clisp.org>
12074 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
12075 malloc or realloc fails.
12077 2007-09-09 Bruno Haible <bruno@clisp.org>
12079 * modules/getcwd (Depends-on): Add malloc-posix.
12080 * modules/glob (Depends-on): Likewise.
12081 * modules/putenv (Depends-on): Likewise.
12082 * modules/strdup (Depends-on): Likewise.
12083 * modules/getdelim (Depends-on): Add realloc-posix.
12084 * modules/read-file (Depends-on): Likewise.
12086 2007-09-09 Bruno Haible <bruno@clisp.org>
12088 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
12089 (gl_FUNC_MALLOC_POSIX): Require it.
12090 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
12091 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
12092 * modules/realloc (Files): Add m4/malloc.m4.
12093 * modules/calloc (Files): Likewise.
12095 2007-09-09 Bruno Haible <bruno@clisp.org>
12097 * modules/malloc-posix: New file.
12098 * modules/malloc (Depends-on): Add malloc-posix.
12099 * lib/malloc.c: Include errno.h.
12100 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
12101 and a POSIX-compatible malloc into a single function. Set ENOMEM
12102 when returning NULL.
12103 * m4/malloc.m4: New file.
12104 * doc/functions/malloc.texi: Mention the malloc-posix module.
12105 * lib/stdlib_.h (malloc): New declaration.
12106 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12107 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
12108 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
12109 and HAVE_MALLOC_POSIX.
12111 2007-09-09 Bruno Haible <bruno@clisp.org>
12113 * modules/realloc-posix: New file.
12114 * modules/realloc (Depends-on): Add realloc-posix.
12115 * lib/realloc.c: Include errno.h.
12116 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
12117 and a POSIX-compatible realloc into a single function. Set ENOMEM
12118 when returning NULL.
12119 * m4/realloc.m4: New file.
12120 * doc/functions/realloc.texi: Mention the realloc-posix module.
12121 * lib/stdlib_.h (realloc): New declaration.
12122 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12123 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
12124 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
12125 and HAVE_REALLOC_POSIX.
12127 2007-09-09 Bruno Haible <bruno@clisp.org>
12129 * modules/calloc-posix: New file.
12130 * modules/calloc (Depends-on): Add calloc-posix.
12131 * lib/calloc.c: Include errno.h.
12132 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
12133 and a POSIX-compatible calloc into a single function. Set ENOMEM
12134 when returning NULL.
12135 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
12136 * doc/functions/calloc.texi: Mention the calloc-posix module.
12137 * lib/stdlib_.h (calloc): New declaration.
12138 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12139 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
12140 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
12141 and HAVE_CALLOC_POSIX.
12143 2007-09-09 Bruno Haible <bruno@clisp.org>
12145 Allow for modules to show an arbitrary notice.
12146 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
12147 * gnulib-tool: New option --extract-notice.
12148 (func_usage): Document it.
12149 (sed_extract_prog): Update.
12150 (func_get_notice): New function.
12151 (func_modules_notice): New function.
12152 (func_import, func_create_testdir): Invoke it.
12153 Suggested by Jim Meyering.
12155 2007-09-09 Bruno Haible <bruno@clisp.org>
12157 * gnulib-tool: New options --verbose, --quiet.
12158 (func_usage): Document them.
12159 (verbose): New variable.
12160 (func_execute_command): New function.
12161 (func_import): Don't show the module list and the file list if
12163 (func_create_testdir): Likewise. Use func_execute_command.
12164 (func_create_megatestdir): Use func_execute_command.
12166 2007-09-08 Bruno Haible <bruno@clisp.org>
12168 * gnulib-tool (func_import): Prefer rsync over wget when available,
12169 for fetching the PO files.
12171 2007-09-08 Bruno Haible <bruno@clisp.org>
12173 * posix-modules: New file. Portions copied from gnulib-tool.
12174 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
12176 2007-09-08 Jim Meyering <jim@meyering.net>
12178 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
12179 * lib/fpending.h: Rename from __fpending.h.
12180 * lib/fpending.c: Rename from __fpending.c.
12181 Include "fpending.h", not "__fpending.h".
12182 * lib/__fpending.h, lib/__fpending.c: Remove files.
12183 * modules/fpending (Files): Reflect new file names.
12184 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
12186 2007-09-08 Bruno Haible <bruno@clisp.org>
12188 * m4/inttypes-h.m4: Remove stub file.
12190 2007-09-07 Simon Josefsson <simon@josefsson.org>
12192 * doc/headers/stdint.texi: Discuss #include_next issue.
12194 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
12196 * build-aux/bootstrap: Remove obsolete comment about wget --help.
12198 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12200 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
12203 2007-09-03 Jim Meyering <jim@meyering.net>
12205 New module: git-version-gen.
12206 * modules/git-version-gen: New file.
12208 Import changes from coreutils for bootstrap script.
12210 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
12212 bootstrap: uses rsync to download the .po files
12213 * build-aux/bootstrap (po_download_command_format): New global.
12214 (download_po_files): Use rsync.
12215 (update_po_files): Don't remove .po files after download,
12216 so future rsync runs can take advantage of the copies.
12218 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
12220 Solve the unnecessary-.po-file-regeneration problem once and for all.
12221 * build-aux/bootstrap (download_po_files): New function, renamed from
12222 get_translations. Now, downloads, but doesn't update LINGUAS.
12223 (update_po_files): New function.
12225 bootstrap: Ignore more.
12226 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
12227 uniwidth to e.g., lib/.gitignore.
12228 (slurp): Handle the sys_stat_.h -> sys mapping, too.
12230 * build-aux/bootstrap: New setting: vc_ignore.
12231 (insert_sorted_if_absent): Create $file if absent.
12232 Adapt to new, possibly empty, list: $vc_ignore.
12234 bootstrap: generate more ignorable names
12235 * build-aux/bootstrap (slurp): When generating ignorable names,
12236 also map .sin to .sed, .gperf to .c, and .y to .c.
12238 2007-09-03 Jim Meyering <jim@meyering.net>
12240 * build-aux/git-version-gen: New file, from coreutils. For details, see
12241 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
12243 2007-09-02 Bruno Haible <bruno@clisp.org>
12245 Fix mis-recognition of 'mcs' on QNX 6.
12246 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
12247 output contains the string "Mono".
12248 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
12249 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
12251 2007-09-01 Bruno Haible <bruno@clisp.org>
12253 Fix collision between uniwidth/* and linebreak modules.
12254 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
12255 u32_width): Remove declarations.
12256 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
12257 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
12258 streq3, streq2, streq1, streq0): Remove functions.
12259 (STREQ): Remove macro.
12260 (is_cjk_encoding): Remove function.
12261 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
12262 (uc_width, u8_width, u16_width, u32_width): Remove functions.
12263 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
12264 * NEWS: Document the change.
12266 2007-09-01 Bruno Haible <bruno@clisp.org>
12268 * lib/streq.h: Add double-inclusion guard.
12270 2007-09-01 Karl Berry <karl@gnu.org>
12272 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
12274 2007-08-28 Jim Meyering <jim@meyering.net>
12276 Rename mreadlink_with_size to areadlink_with_size.
12277 * NEWS: Document the change.
12278 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
12279 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
12280 * lib/mreadlink.h: Rename this to...
12281 * lib/areadlink.h: ...this.
12282 * modules/mreadlink-with-size: Rename this to...
12283 * modules/areadlink-with-size: ...this.
12284 * lib/canonicalize.c: Reflect the renaming.
12285 * modules/canonicalize: Likewise.
12287 2007-08-26 Bruno Haible <bruno@clisp.org>
12289 * gnulib-tool (func_import): When deciding which files to remove,
12290 consider also dangling symbolic links.
12291 Reported by Eric Blake.
12293 2007-08-26 Bruno Haible <bruno@clisp.org>
12295 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
12297 2007-08-23 Simon Josefsson <simon@josefsson.org>
12299 * lib/readline.c: Don't include getline.h, the prototype is now
12302 2007-08-23 Jim Meyering <jim@meyering.net>
12305 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
12306 around the funlockfile call, since funlockfile never sets errno.
12307 Don't set errno upon failed realloc.
12309 2007-08-22 Eric Blake <ebb9@byu.net>
12312 * lib/getdelim.c (getdelim): Revert regression that required *n to
12313 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
12314 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
12315 getdelim, rather than whether implementation is missing.
12316 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
12317 * lib/stdio_.h (getline): Also declare if replacement is
12319 * doc/functions/getdelim.texi: New file.
12320 * doc/functions/getline.texi: Likewise.
12321 * doc/gnulib.texi (Function Substitutes): Add new files.
12322 Reported by Bruno Haible.
12324 2007-08-22 Ludovic Courtès <ludo@gnu.org>
12326 * users.txt: Add Guile.
12328 2007-08-22 Eric Blake <ebb9@byu.net>
12330 * tests/test-getdelim.c (main): Use remove, not unlink.
12331 * tests/test-getline.c (main): Likewise.
12333 Move getline and getdelim into stdio.h, per POSIX 200x.
12334 * modules/getline (Files): Remove getline.h.
12335 (Depends-on): Add stdio.
12336 (configure.ac): Add module indicator.
12337 * modules/getdelim (Files): Remove getdelim.h.
12338 (Depends-on): Add stdio.
12339 (configure.ac): Add module indicator.
12340 * modules/stdio (Makefile.am): Work with new indicators.
12341 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
12342 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
12343 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12344 * lib/getdelim.h: Delete.
12345 * lib/getline.h: Delete.
12346 * lib/stdio_.h (getdelim, getline): Declare.
12347 * modules/getdelim-tests: New module.
12348 * modules/getline-tests: Likewise.
12349 * tests/test-getdelim.c: New file.
12350 * tests/test-getline.c: Likewise.
12351 * NEWS: Document the change.
12352 * lib/getline.c: Update choice of header.
12353 * lib/csharpcomp.c: Likewise.
12354 * lib/getpass.c: Likewise.
12355 * lib/javacomp.c: Likewise.
12356 * lib/javaversion.c: Likewise.
12357 * lib/yesno.c: Likewise.
12358 * lib/getdelim.c: Likewise.
12359 (getdelim): Set errno on failure, and avoid memory leak.
12361 2007-08-19 Bruno Haible <bruno@clisp.org>
12363 * modules/closein (Depends-on): Add freadahead.
12364 * lib/closein.c: Include freadahead.h.
12365 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
12368 2007-08-19 Bruno Haible <bruno@clisp.org>
12370 * modules/freadahead-tests: New file.
12371 * tests/test-freadahead.sh: New file.
12372 * tests/test-freadahead.c: New file.
12374 * modules/freadahead: New file.
12375 * lib/freadahead.h: New file.
12376 * lib/freadahead.c: New file.
12377 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
12378 fbufmode, fpurge, freadable, fwritable.
12380 2007-08-19 Eric Blake <ebb9@byu.net>
12382 Test yesno in combination with closein.
12383 * lib/yesno.c (yesno): Document use of stdin.
12384 * modules/yesno-tests (Files): New module.
12385 * tests/test-yesno.c (main): New file.
12386 * tests/test-yesno.sh: Likewise.
12388 2007-08-19 Bruno Haible <bruno@clisp.org>
12390 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
12391 * lib/fseeko.c (rpl_fseeko): Likewise.
12392 * lib/fseterr.c (fseterr): Likewise.
12394 2007-08-19 Bruno Haible <bruno@clisp.org>
12396 * tests/test-lseek.c (main): Disable a test for BeOS.
12397 * doc/functions/lseek.texi: Document the BeOS bug.
12399 2007-08-19 Bruno Haible <bruno@clisp.org>
12400 Eric Blake <ebb9@byu.net>
12402 * lib/lseek.c: Include <sys/stat.h>.
12403 (rpl_lseek): Add workaround code also for Unix platforms.
12405 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
12406 * doc/functions/lseek.texi: Document BeOS definiency.
12408 2007-08-18 Bruno Haible <bruno@clisp.org>
12410 * modules/fstrcmp-tests: New file.
12411 * tests/test-fstrcmp.c: New file.
12413 2007-08-18 Bruno Haible <bruno@clisp.org>
12415 * modules/fstrcmp: New file, from GNU gettext with modifications.
12416 * lib/fstrcmp.h: New file, from GNU gettext.
12417 * lib/fstrcmp.c: New file, from GNU gettext.
12418 * MODULES.html.sh (String handling): Add fstrcmp.
12420 2007-08-18 Bruno Haible <bruno@clisp.org>
12422 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
12424 (diag, compareseq): Remove const from the ctxt argument.
12425 (USE_HEURISTIC): Undefine at the end.
12427 2007-08-18 Jim Meyering <jim@meyering.net>
12429 New file: lib/idcache.h
12430 * NEWS: Mention the addition.
12431 * modules/idcache (Files): Add lib/idcache.h
12432 * lib/idcache.c: Include "idcache.h".
12433 Don't include <sys/types.h>.
12434 Add a FIXME comment.
12435 Move file-scoped "static" declarations to the top.
12436 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
12438 2007-08-17 Bruno Haible <bruno@clisp.org>
12439 and Paul Eggert <eggert@cs.ucla.edu>
12441 * MODULES.html.sh: Add diffseq.
12442 * modules/diffseq: New file.
12443 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
12444 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
12446 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
12448 Import changes from coreutils for bootstrap script.
12450 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
12452 * build-aux/bootstrap (slurp): Work even in environments where
12453 "ls" defaults to "ls -A". Put in a FIXME, though, since the
12454 current code does not slurp files whose names start with ".", and
12455 this looks like it might be a troublesome area.
12457 2007-07-11 Jim Meyering <jim@meyering.net>
12459 If there's a GPL vN copyright comment, require that N == 3.
12461 2007-07-08 Jim Meyering <jim@meyering.net>
12463 Run the coreutils-specific code only if tests/Makefile.am.in exists.
12464 * build-aux/bootstrap (mam_template): Move definition out of loop.
12466 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
12468 * build-aux/bootstrap (symlink_to_dir): Rename function from
12469 symlink_to_gnulib. Add a directory parameter. Update all
12471 (cp_mark_as_generated): Also check for -- and link to -- files in
12474 2007-07-08 Jim Meyering <jim@meyering.net>
12476 Adapt to deeper hierarchy in gnulib.
12477 * build-aux/bootstrap (symlink_to_dir): If the destination
12478 directory doesn't exist, create it. This is required at least for
12479 "lib/uniwidth/cjk.h".
12481 2007-05-15 Jim Meyering <jim@meyering.net>
12483 * build-aux/bootstrap: Now that generated Makefile.am files
12484 are no longer under version control, they must be created at
12487 2007-08-14 Ben Pfaff <blp@gnu.org>
12489 * lib/count-one-bits.h: Add comments. From Bruno Haible.
12491 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
12493 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
12494 given the changes below.
12495 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
12496 even on hosts that have padding bits beyond the supported 64.
12498 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
12500 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
12501 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
12502 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
12504 (xstrtol_error): Remove.
12505 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
12506 but with a different signature.
12507 (ATTRIBUTE_NORETURN, __attribute__): New macros.
12508 * lib/xstrtol-error.c: Include exitfail.h.
12509 (xstrtol_fatal): New function, with a different signature from the
12510 old xstrtol_error, so that the caller need not worry about passing
12511 in an exit status, or about storage management of the option argument.
12512 (xstrtol_error): Now a static function. Redo signature to
12513 implement xstrtol_fatal. Output the correct number of hyphens in
12514 front of the option so that the caller need not worry about
12515 storage management.
12517 (_): Remove; not used now.
12518 * modules/xstrtol: Depend on getopt.
12519 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
12520 of old STRTOL_FATAL_ERROR macro.
12521 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
12523 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
12524 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
12526 2007-08-08 Eric Blake <ebb9@byu.net>
12528 * lib/xstrtol-error.c: Add missing include.
12530 Move xstrtol messages into gnulib domain, when --pobase is used.
12531 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
12532 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
12533 * modules/xstrtol (Files): Distribute new file.
12534 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
12535 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
12536 * tests/test-xstrtol.c: ...into new file.
12537 * tests/test-xstrtoul.c: Also test xstrtoul.
12538 * tests/test-xstrtoimax.c: Also test xstrtoimax.
12539 * tests/test-xstrtoumax.c: Also test xstrtoumax.
12540 * tests/test-xstrtol.sh: Drive the tests.
12541 * tests/test-xstrtoimax.sh: Likewise.
12542 * tests/test-xstrtoumax.sh: Likewise.
12543 * modules/xstrtol-tests: New module.
12544 * modules/xstrtoimax-tests: Likewise.
12545 * modules/xstrtoumax-tests: Likewise.
12547 2007-08-08 Jim Meyering <jim@meyering.net>
12549 New function: mfile_name_concat.
12550 * lib/filenamecat.c (mfile_name_concat): New function, just like
12551 file_name_concat, but return NULL upon failure rather than exiting
12553 * lib/filenamecat.h: Declare it.
12555 2007-08-07 Bruno Haible <bruno@clisp.org>
12557 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
12558 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
12560 Reported by Eric Blake.
12562 2007-08-07 Simon Josefsson <simon@josefsson.org>
12564 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
12565 * modules/crypto/arcfour (License): Likewise.
12566 * modules/crypto/des-tests (License): Likewise.
12567 * modules/crypto/gc-arctwo-tests (License): Likewise.
12568 * modules/crypto/gc-des-tests (License): Likewise.
12569 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
12570 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
12571 * modules/crypto/gc-md2-tests (License): Likewise.
12572 * modules/crypto/gc-md4-tests (License): Likewise.
12573 * modules/crypto/gc-md5-tests (License): Likewise.
12574 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
12575 * modules/crypto/gc-rijndael-tests (License): Likewise.
12576 * modules/crypto/gc-sha1-tests (License): Likewise.
12577 * modules/crypto/gc-tests (License): Likewise.
12578 * modules/crypto/hmac-md5 (License): Likewise.
12579 * modules/crypto/hmac-sha1 (License): Likewise.
12580 * modules/crypto/md2-tests (License): Likewise.
12581 * modules/crypto/md4-tests (License): Likewise.
12582 * modules/crypto/md5 (License): Likewise.
12583 * modules/crypto/rijndael (License): Likewise.
12584 * modules/crypto/sha1 (License): Likewise.
12585 * modules/memxor (License): Likewise.
12587 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
12588 and Bruno Haible <bruno@clisp.org>
12590 * NEWS: Describe interface changes to human, xstrtol.
12591 * lib/human.h: Include <xstrtol.h>.
12592 (human_options): Return enum strtol_error, not int. Remove
12593 bool arg; take int * instead.
12594 * lib/human.c: Don't include "gettext.h".
12595 (_): Remove; no longer used.
12596 Don't include <xstrtol.h>, since human.h does it.
12597 (human_options): Adjust to abovementioned interface changes.
12598 Do not report error to stderr; that's now the caller's
12600 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
12602 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
12603 Str, Argument_type_string. All uses changed. Put " argument"
12604 in diagnostics to make them clearer. Change wording of suffix
12605 message for clarity.
12606 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
12607 Argument_type_string.
12608 (STRTOL_FATAL_WARN): Remove; no longer used.
12609 * modules/human (Depends-on): Remove gettext-h.
12611 2007-08-06 Simon Josefsson <simon@josefsson.org>
12613 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
12615 2007-07-31 Bruno Haible <bruno@clisp.org>
12617 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
12618 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
12619 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
12621 2007-07-31 Bruno Haible <bruno@clisp.org>
12623 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
12624 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
12626 2007-07-30 Bruno Haible <bruno@clisp.org>
12628 * modules/base64 (License): Use the synonymous term "LGPLv2+".
12629 * modules/c-ctype (License): Likewise.
12630 * modules/c-strcase (License): Likewise.
12631 * modules/check-version (License): Likewise.
12632 * modules/iconv (License): Likewise.
12633 * modules/iconv_open (License): Likewise.
12634 * modules/read-file (License): Likewise.
12635 * modules/striconv (License): Likewise.
12636 * modules/strverscmp (License): Likewise.
12637 * modules/vasprintf (License): Likewise.
12638 * modules/crypto/des (License): Likewise.
12639 * modules/crypto/gc (License): Likewise.
12640 * modules/crypto/gc-arcfour (License): Likewise.
12641 * modules/crypto/gc-arctwo (License): Likewise.
12642 * modules/crypto/gc-des (License): Likewise.
12643 * modules/crypto/gc-hmac-md5 (License): Likewise.
12644 * modules/crypto/gc-hmac-sha1 (License): Likewise.
12645 * modules/crypto/gc-md2 (License): Likewise.
12646 * modules/crypto/gc-md4 (License): Likewise.
12647 * modules/crypto/gc-md5 (License): Likewise.
12648 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
12649 * modules/crypto/gc-random (License): Likewise.
12650 * modules/crypto/gc-rijndael (License): Likewise.
12651 * modules/crypto/gc-sha1 (License): Likewise.
12652 * modules/crypto/md2 (License): Likewise.
12653 * modules/crypto/md4 (License): Likewise.
12655 2007-07-30 Jim Meyering <jim@meyering.net>
12657 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
12658 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
12659 it has valid stat data. This bug would cause du not to count the
12660 sizes of inaccessible directories.
12661 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
12662 in <http://bugzilla.redhat.com/250077>.
12664 2007-07-25 Peter O'Gorman <peter@pogma.com>
12665 Bruno Haible <bruno@clisp.org>
12667 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
12668 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
12669 #include_next, gives a diagnostic about it, but reports no error in
12671 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
12673 2007-07-24 Ben Pfaff <blp@gnu.org>
12675 Improve name: "count-one-bits" is better than "popcount".
12676 * MODULES.html.sh: Update name.
12677 * lib/popcount.h: Renamed lib/count-one-bits.h.
12678 (popcount): Renamed count_one_bits.
12679 (popcountl): Renamed count_one_bits_l.
12680 (popcountll): Renamed count_one_bits_ll.
12681 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
12682 * modules/popcount: Renamed module/count-one-bits.
12683 * modules/popcount-tests: Renamed module/count-one-bits-tests.
12684 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
12686 2007-07-23 Ben Pfaff <blp@gnu.org>
12688 * lib/popcount.h (popcount32): Reduce size of constants, to allow
12689 better code generation, and add U to large constants to avoid
12690 warnings, in non-GCC case.
12691 Suggested by Bruno Haible.
12693 2007-07-23 Ben Pfaff <blp@gnu.org>
12695 * lib/popcount.h: Use verify_true instead of if...abort.
12696 * modules/popcount: Depend on verify module.
12697 Suggested by Jim Meyering.
12699 2007-07-23 Bruno Haible <bruno@clisp.org>
12701 * gnulib-tool (func_import): Create a .cvsignore file also when the
12702 directory is not yet in CVS but the toplevel directory is. When
12703 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
12704 Reported by Karl Berry.
12706 2007-07-22 Ben Pfaff <blp@gnu.org>
12708 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
12710 Suggested by Eric Blake.
12712 2007-07-22 Ben Pfaff <blp@gnu.org>
12714 New module: popcount.
12715 * MODULES.html.sh: Add popcount.
12716 * modules/popcount: New file.
12717 * modules/popcount-tests: New file.
12718 * tests/test-popcount.c: New file.
12719 * lib/popcount.h: New file.
12720 * m4/popcount.m4: New file.
12722 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
12724 * build-aux/announce-gen: Update to GPLv3.
12726 * build-aux/config.guess: Update from config.
12728 2007-07-21 Bruno Haible <bruno@clisp.org>
12730 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
12731 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
12733 2007-07-20 Jim Meyering <jim@meyering.net>
12735 * check-module: Diagnose a self-dependency.
12737 2007-07-19 Bruno Haible <bruno@clisp.org>
12739 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
12741 Reported by Eric Blake.
12743 2007-07-18 Bruno Haible <bruno@clisp.org>
12745 * gnulib-tool: New options --po-base, --po-domain.
12746 (func_usage): Document them.
12747 (pobase, po_domain): New variables.
12748 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
12749 DEFAULT_TEXT_DOMAIN.
12750 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
12751 (func_import): Consider pobase and po_domain. Create a po/ directory.
12752 (func_create_testdir): Set pobase and po_domain to empty.
12753 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
12754 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
12756 2007-07-18 Bruno Haible <bruno@clisp.org>
12758 * gnulib-tool (func_get_automake_snippet): Synthesize also an
12759 EXTRA_DIST augmentation for files in build-aux/.
12761 2007-07-16 Bruno Haible <bruno@clisp.org>
12763 * modules/lseek (License): Use the synonymous term "LGPLv2+".
12764 * modules/getdelim (License): Likewise.
12766 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12768 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
12769 * modules/d-type (License): Likewise.
12770 * modules/extensions (License): Likewise.
12771 * modules/fnmatch (License): Likewise.
12772 * modules/fseeko (License): Likewise.
12773 * modules/getaddrinfo (License): Likewise.
12774 * modules/getline (License): Likewise.
12775 * modules/getlogin_r (License): Likewise.
12776 * modules/getpass (License): Likewise.
12777 * modules/gettimeofday (License): Likewise.
12778 * modules/glob (License): Likewise.
12779 * modules/inet_ntop (License): Likewise.
12780 * modules/malloc (License): Likewise.
12781 * modules/malloca (License): Likewise.
12782 * modules/memmem (License): Likewise.
12783 * modules/mempcpy (License): Likewise.
12784 * modules/memset (License): Likewise.
12785 * modules/minmax (License): Likewise.
12786 * modules/mktime (License): Likewise.
12787 * modules/netinet_in (License): Likewise.
12788 * modules/pathmax (License): Likewise.
12789 * modules/poll (License): Likewise.
12790 * modules/regex (License): Likewise.
12791 * modules/snprintf (License): Likewise.
12792 * modules/stdbool (License): Likewise.
12793 * modules/stdint (License): Likewise.
12794 * modules/stdio (License): Likewise.
12795 * modules/strcase (License): Likewise.
12796 * modules/strcasestr (License): Likewise.
12797 * modules/strdup (License): Likewise.
12798 * modules/string (License): Likewise.
12799 * modules/strndup (License): Likewise.
12800 * modules/strnlen (License): Likewise.
12801 * modules/strpbrk (License): Likewise.
12802 * modules/strptime (License): Likewise.
12803 * modules/strsep (License): Likewise.
12804 * modules/sys_select (License): Likewise.
12805 * modules/sys_socket (License): Likewise.
12806 * modules/sys_stat (License): Likewise.
12807 * modules/sys_time (License): Likewise.
12808 * modules/time (License): Likewise.
12809 * modules/time_r (License): Likewise.
12810 * modules/timegm (License): Likewise.
12811 * modules/unistd (License): Likewise.
12812 * modules/vsnprintf (License): Likewise.
12813 * modules/wctype (License): Likewise.
12815 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12817 * modules/argz (License): LGPLv2+.
12819 2007-07-15 Karl Berry <karl@gnu.org>
12821 * doc/gnulib.texi: revise node structure per new fdl.texi.
12823 2007-07-14 Bruno Haible <bruno@clisp.org>
12825 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
12827 * lib/uniname/uninames.h: Regenerated.
12829 2007-07-14 Karl Berry <karl@gnu.org>
12831 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
12832 omitting sectioning and index commands.
12834 2007-07-13 Bruno Haible <bruno@clisp.org>
12836 New gnulib-tool option --more-symlinks.
12837 * gnulib-tool (func_usage): Document --more-symlinks.
12838 (do_copyrights): New variable.
12839 Recognize option --more-symlinks.
12840 (func_import): Don't add a copyright notice transform to
12841 sed_transform_lib_file if do_copyrights is empty.
12843 2007-07-13 Bruno Haible <bruno@clisp.org>
12845 * lib/vasnprintf.c (decimal_point_char): Define also if
12846 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
12847 && !NEED_PRINTF_DIRECTIVE_A.
12848 Reported by Clemens Koller <clemens.koller@anagramm.de> via
12849 Gary V. Vaughan <gary@gnu.org>.
12851 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
12853 * lib/inttypes_.h: Undo previous change, since it was fixed
12854 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
12856 2007-07-13 Bruno Haible <bruno@clisp.org>
12858 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
12859 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
12861 2007-07-13 Jim Meyering <jim@meyering.net>
12863 df: Don't fail for Tru64's "file-on-file mount".
12864 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
12865 so we fall through and use statfs instead. Details here:
12866 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
12867 Reported by Albert Chin.
12869 2007-07-13 Bruno Haible <bruno@clisp.org>
12871 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
12872 * modules/configmake (License): Likewise.
12873 * modules/gettext (License): Likewise.
12874 * modules/gettext-h (License): Likewise.
12875 * modules/include_next (License): Likewise.
12876 * modules/link-warning (License): Likewise.
12877 * modules/localcharset (License): Likewise.
12878 * modules/localename (License): Likewise.
12879 * modules/lock (License): Likewise.
12880 * modules/relocatable-lib-lgpl (License): Likewise.
12881 * modules/size_max (License): Likewise.
12882 * modules/vasnprintf (License): Likewise.
12883 * modules/wchar (License): Likewise.
12884 * modules/xsize (License): Likewise.
12886 2007-07-13 Bruno Haible <bruno@clisp.org>
12888 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
12889 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
12891 2007-07-12 Bruno Haible <bruno@clisp.org>
12893 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
12894 in the modules files.
12896 2007-07-11 Karl Berry <karl@gnu.org>
12898 * MODULES.html.sh (func_module): use
12899 sed -e '\|^'"${includefile}"'$|d'
12900 instead of /.../d, to avoid errors on $includefile's containing /.
12902 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
12904 * gnulib-tool (func_import): Avoid duplication of --avoid
12906 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
12907 names to `_' in variable names.
12909 2007-07-10 Eric Blake <ebb9@byu.net>
12911 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
12912 * NEWS: Document this change.
12914 2007-07-08 Bruno Haible <bruno@clisp.org>
12916 Update to Unicode 5.0.
12917 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
12918 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
12919 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
12920 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
12921 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
12922 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
12923 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
12924 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
12925 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
12926 U+10A3F, U+1D242..U+1D244.
12927 (nonspacing_table_ind): Update.
12928 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
12929 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
12931 2007-07-08 Bruno Haible <bruno@clisp.org>
12933 Update to Unicode 5.0.
12934 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
12935 code transform. Extend the name index field of unicode_name_to_code and
12936 unicode_code_to_name from 16 to 24 bits.
12937 * lib/uniname/uniname.c (unicode_character_name,
12938 unicode_name_character): Add the range 0x12xxx to the code transform.
12939 * lib/uniname/uninames.h: Regenerated.
12940 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
12942 2007-07-07 Bruno Haible <bruno@clisp.org>
12944 * modules/wcwidth-tests: New file.
12945 * tests/test-wcwidth.c: New file.
12947 Work around MacOS X wcwidth() bug.
12948 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
12949 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
12950 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
12951 original wcwidth in non-UTF-8 locales.
12952 * modules/wcwidth (Depends-on): Add localcharset, streq,
12954 * doc/functions/wcwidth.texi: Update.
12956 2007-07-07 Bruno Haible <bruno@clisp.org>
12958 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
12959 (wcwidth): New declaration.
12960 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
12962 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
12963 here. Prepare for creating <wchar.h> unconditionally.
12964 * modules/wchar (Depends-on): Add link-warning.
12965 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
12966 REPLACE_WCWIDTH, and GL_LINK_WARNING.
12967 * lib/wcwidth.h: Remove file.
12968 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
12969 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
12970 * modules/wcwidth (Files): Remove lib/wcwidth.h.
12971 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
12972 (Include): Replace wcwidth.h with <wchar.h>.
12973 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
12974 * lib/mbchar.h: Don't include wcwidth.h.
12975 * lib/mbswidth.c: Likewise.
12976 * NEWS: Mention the change.
12978 2007-07-07 Bruno Haible <bruno@clisp.org>
12980 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
12981 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
12982 definition with an external declaration.
12983 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
12984 defined as a function. Remove AC_C_INLINE requirement.
12985 * modules/wcwidth (Files): Add lib/wcwidth.c.
12986 (Makefile.am): Remove redundant statement.
12988 2007-07-07 Bruno Haible <bruno@clisp.org>
12990 * MODULES.html.sh (Unicode string functions): Add the new modules.
12992 * tests/uniwidth/test-u32-strwidth.c: New file.
12993 * modules/uniwidth/u32-strwidth-tests: New file.
12995 * lib/uniwidth/u32-strwidth.c: New file.
12996 * modules/uniwidth/u32-strwidth: New file.
12998 * tests/uniwidth/test-u16-strwidth.c: New file.
12999 * modules/uniwidth/u16-strwidth-tests: New file.
13001 * lib/uniwidth/u16-strwidth.c: New file.
13002 * modules/uniwidth/u16-strwidth: New file.
13004 * tests/uniwidth/test-u8-strwidth.c: New file.
13005 * modules/uniwidth/u8-strwidth-tests: New file.
13007 * lib/uniwidth/u8-strwidth.c: New file.
13008 * modules/uniwidth/u8-strwidth: New file.
13010 * tests/uniwidth/test-u32-width.c: New file.
13011 * modules/uniwidth/u32-width-tests: New file.
13013 * lib/uniwidth/u32-width.c: New file.
13014 * modules/uniwidth/u32-width: New file.
13016 * tests/uniwidth/test-u16-width.c: New file.
13017 * modules/uniwidth/u16-width-tests: New file.
13019 * lib/uniwidth/u16-width.c: New file.
13020 * modules/uniwidth/u16-width: New file.
13022 * tests/uniwidth/test-u8-width.c: New file.
13023 * modules/uniwidth/u8-width-tests: New file.
13025 * lib/uniwidth/u8-width.c: New file.
13026 * modules/uniwidth/u8-width: New file.
13028 * tests/uniwidth/test-uc_width.c: New file.
13029 * modules/uniwidth/width-tests: New file.
13031 * lib/uniwidth/width.c: New file, from GNU libiconv.
13032 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
13033 * modules/uniwidth/width: New file.
13035 * lib/uniwidth.h: New file, from GNU libiconv.
13036 * modules/uniwidth/base: New file.
13038 2007-07-07 Bruno Haible <bruno@clisp.org>
13040 * lib/uniname.h: New file, from GNU gettext.
13041 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
13042 * lib/uniname/uninames.h: New file, from GNU gettext.
13043 * lib/uniname/uniname.c: New file, from GNU gettext.
13044 * tests/uniname/test-uninames.sh: New file.
13045 * tests/uniname/test-uninames.c: New file, from GNU gettext.
13046 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
13047 * modules/uniname/base: New file.
13048 * modules/uniname/uniname: New file.
13049 * modules/uniname/uniname-tests: New file.
13050 * MODULES.html.sh (Unicode string functions): Add the new modules.
13052 2007-07-06 Bruno Haible <bruno@clisp.org>
13054 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
13056 2007-07-06 Bruno Haible <bruno@clisp.org>
13058 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
13059 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
13060 includes <cygwin/sys_time.h> which includes <sys/select.h> which
13061 include <sys/time.h>.
13062 Reported by Eric Blake.
13064 2007-07-06 Eric Blake <ebb9@byu.net>
13066 Fix testing canonicalize on cygwin.
13067 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
13068 Revert patch from 2007-06-19.
13069 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
13070 canonicalize module is also in use.
13071 * tests/test-canonicalize.c: New file.
13072 * tests/test-canonicalize.sh: Likewise.
13073 * modules/canonicalize-tests: Likewise.
13075 2007-07-06 Jim Meyering <jim@meyering.net>
13077 * lib/getugroups.c (getugroups): Detect getgrent failure.
13078 Adjust comment to reflect reality: this function may return -1.
13080 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
13082 * build-aux/bootstrap (TP_URL,get_translations): Update to use
13083 the new TP address.
13085 (gnulib_mk): New variable.
13087 2007-07-05 Jim Meyering <jim@meyering.net>
13089 Don't let endgrent clobber errno, no matter how improbable.
13090 * lib/getugroups.c (getugroups): Save and restore errno around
13093 Close the group DB even when failing with 2^31 or more members.
13094 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
13096 2007-07-04 Jim Meyering <jim@meyering.net>
13098 * lib/getugroups.h: New file.
13099 * lib/getugroups.c: Include "getugroups.h".
13100 Remove uses of "register" keyword.
13101 Move local variable, "cp", down into scope where used.
13102 Give "username" parameter the "const" attribute.
13103 * modules/getugroups (Files): Add lib/getugroups.h
13105 2007-07-04 Karl Berry <karl@gnu.org>
13107 * MODULES.html.sh (func_all_modules): Complete rename of
13108 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
13110 2007-07-02 Bruno Haible <bruno@clisp.org>
13112 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
13113 mode, when inttypes.h comes from gnulib.
13114 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
13116 2007-07-02 Simon Josefsson <simon@josefsson.org>
13118 * NEWS: Mention lgpl module name change.
13120 * modules/lgpl-2.1: Renamed from lgpl.
13122 * NEWS: Mention gpl module name change.
13124 * modules/gpl-3.0: New file, based on gpl-2.0.
13126 * modules/gpl-2.0: Renamed from gpl.
13128 * modules/gpl: Fix filename, doc/gpl.texi is now found at
13131 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
13133 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
13134 #define __STDC_LIMIT_MACROS temporarily while including
13135 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
13136 Problem reported by Joel E. Denny in
13137 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
13139 2007-07-01 Bruno Haible <bruno@clisp.org>
13141 * lib/unistdio.h: New file.
13142 * lib/unistdio/u-asnprintf.h: New file.
13143 * lib/unistdio/u-asprintf.h: New file.
13144 * lib/unistdio/u-printf-args.c: New file.
13145 * lib/unistdio/u-printf-args.h: New file.
13146 * lib/unistdio/u-printf-parse.h: New file.
13147 * lib/unistdio/u-snprintf.h: New file.
13148 * lib/unistdio/u-sprintf.h: New file.
13149 * lib/unistdio/u-vasprintf.h: New file.
13150 * lib/unistdio/u-vsnprintf.h: New file.
13151 * lib/unistdio/u-vsprintf.h: New file.
13152 * lib/unistdio/ulc-asnprintf.c: New file.
13153 * lib/unistdio/ulc-asprintf.c: New file.
13154 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
13155 * lib/unistdio/ulc-printf-parse.c: New file.
13156 * lib/unistdio/ulc-snprintf.c: New file.
13157 * lib/unistdio/ulc-sprintf.c: New file.
13158 * lib/unistdio/ulc-vasnprintf.c: New file.
13159 * lib/unistdio/ulc-vasprintf.c: New file.
13160 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
13161 * lib/unistdio/ulc-vsnprintf.c: New file.
13162 * lib/unistdio/ulc-vsprintf.c: New file.
13163 * lib/unistdio/u8-asnprintf.c: New file.
13164 * lib/unistdio/u8-asprintf.c: New file.
13165 * lib/unistdio/u8-printf-parse.c: New file.
13166 * lib/unistdio/u8-snprintf.c: New file.
13167 * lib/unistdio/u8-sprintf.c: New file.
13168 * lib/unistdio/u8-vasnprintf.c: New file.
13169 * lib/unistdio/u8-vasprintf.c: New file.
13170 * lib/unistdio/u8-vsnprintf.c: New file.
13171 * lib/unistdio/u8-vsprintf.c: New file.
13172 * lib/unistdio/u8-u8-asnprintf.c: New file.
13173 * lib/unistdio/u8-u8-asprintf.c: New file.
13174 * lib/unistdio/u8-u8-snprintf.c: New file.
13175 * lib/unistdio/u8-u8-sprintf.c: New file.
13176 * lib/unistdio/u8-u8-vasnprintf.c: New file.
13177 * lib/unistdio/u8-u8-vasprintf.c: New file.
13178 * lib/unistdio/u8-u8-vsnprintf.c: New file.
13179 * lib/unistdio/u8-u8-vsprintf.c: New file.
13180 * lib/unistdio/u16-asnprintf.c: New file.
13181 * lib/unistdio/u16-asprintf.c: New file.
13182 * lib/unistdio/u16-printf-parse.c: New file.
13183 * lib/unistdio/u16-snprintf.c: New file.
13184 * lib/unistdio/u16-sprintf.c: New file.
13185 * lib/unistdio/u16-vasnprintf.c: New file.
13186 * lib/unistdio/u16-vasprintf.c: New file.
13187 * lib/unistdio/u16-vsnprintf.c: New file.
13188 * lib/unistdio/u16-vsprintf.c: New file.
13189 * lib/unistdio/u16-u16-asnprintf.c: New file.
13190 * lib/unistdio/u16-u16-asprintf.c: New file.
13191 * lib/unistdio/u16-u16-snprintf.c: New file.
13192 * lib/unistdio/u16-u16-sprintf.c: New file.
13193 * lib/unistdio/u16-u16-vasnprintf.c: New file.
13194 * lib/unistdio/u16-u16-vasprintf.c: New file.
13195 * lib/unistdio/u16-u16-vsnprintf.c: New file.
13196 * lib/unistdio/u16-u16-vsprintf.c: New file.
13197 * lib/unistdio/u32-asnprintf.c: New file.
13198 * lib/unistdio/u32-asprintf.c: New file.
13199 * lib/unistdio/u32-printf-parse.c: New file.
13200 * lib/unistdio/u32-snprintf.c: New file.
13201 * lib/unistdio/u32-sprintf.c: New file.
13202 * lib/unistdio/u32-vasnprintf.c: New file.
13203 * lib/unistdio/u32-vasprintf.c: New file.
13204 * lib/unistdio/u32-vsnprintf.c: New file.
13205 * lib/unistdio/u32-vsprintf.c: New file.
13206 * lib/unistdio/u32-u32-asnprintf.c: New file.
13207 * lib/unistdio/u32-u32-asprintf.c: New file.
13208 * lib/unistdio/u32-u32-snprintf.c: New file.
13209 * lib/unistdio/u32-u32-sprintf.c: New file.
13210 * lib/unistdio/u32-u32-vasnprintf.c: New file.
13211 * lib/unistdio/u32-u32-vasprintf.c: New file.
13212 * lib/unistdio/u32-u32-vsnprintf.c: New file.
13213 * lib/unistdio/u32-u32-vsprintf.c: New file.
13214 * tests/unistdio/test-ulc-asnprintf1.c: New file.
13215 * tests/unistdio/test-ulc-asnprintf1.h: New file.
13216 * tests/unistdio/test-ulc-printf1.h: New file.
13217 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
13218 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
13219 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
13220 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
13221 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
13222 * tests/unistdio/test-ulc-vasprintf1.c: New file.
13223 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
13224 * tests/unistdio/test-ulc-vsprintf1.c: New file.
13225 * tests/unistdio/test-u8-asnprintf1.c: New file.
13226 * tests/unistdio/test-u8-asnprintf1.h: New file.
13227 * tests/unistdio/test-u8-printf1.h: New file.
13228 * tests/unistdio/test-u8-vasnprintf1.c: New file.
13229 * tests/unistdio/test-u8-vasnprintf2.c: New file.
13230 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
13231 * tests/unistdio/test-u8-vasnprintf3.c: New file.
13232 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
13233 * tests/unistdio/test-u8-vasprintf1.c: New file.
13234 * tests/unistdio/test-u8-vsnprintf1.c: New file.
13235 * tests/unistdio/test-u8-vsprintf1.c: New file.
13236 * tests/unistdio/test-u16-asnprintf1.c: New file.
13237 * tests/unistdio/test-u16-asnprintf1.h: New file.
13238 * tests/unistdio/test-u16-printf1.h: New file.
13239 * tests/unistdio/test-u16-vasnprintf1.c: New file.
13240 * tests/unistdio/test-u16-vasnprintf2.c: New file.
13241 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
13242 * tests/unistdio/test-u16-vasnprintf3.c: New file.
13243 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
13244 * tests/unistdio/test-u16-vasprintf1.c: New file.
13245 * tests/unistdio/test-u16-vsnprintf1.c: New file.
13246 * tests/unistdio/test-u16-vsprintf1.c: New file.
13247 * tests/unistdio/test-u32-asnprintf1.c: New file.
13248 * tests/unistdio/test-u32-asnprintf1.h: New file.
13249 * tests/unistdio/test-u32-printf1.h: New file.
13250 * tests/unistdio/test-u32-vasnprintf1.c: New file.
13251 * tests/unistdio/test-u32-vasnprintf2.c: New file.
13252 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
13253 * tests/unistdio/test-u32-vasnprintf3.c: New file.
13254 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
13255 * tests/unistdio/test-u32-vasprintf1.c: New file.
13256 * tests/unistdio/test-u32-vsnprintf1.c: New file.
13257 * tests/unistdio/test-u32-vsprintf1.c: New file.
13258 * modules/unistdio/base: New file.
13259 * modules/unistdio/u-printf-args: New file.
13260 * modules/unistdio/ulc-asnprintf: New file.
13261 * modules/unistdio/ulc-asprintf: New file.
13262 * modules/unistdio/ulc-fprintf: New file.
13263 * modules/unistdio/ulc-printf-parse: New file.
13264 * modules/unistdio/ulc-snprintf: New file.
13265 * modules/unistdio/ulc-sprintf: New file.
13266 * modules/unistdio/ulc-vasnprintf: New file.
13267 * modules/unistdio/ulc-vasprintf: New file.
13268 * modules/unistdio/ulc-vfprintf: New file.
13269 * modules/unistdio/ulc-vsnprintf: New file.
13270 * modules/unistdio/ulc-vsprintf: New file.
13271 * modules/unistdio/u8-asnprintf: New file.
13272 * modules/unistdio/u8-asprintf: New file.
13273 * modules/unistdio/u8-printf-parse: New file.
13274 * modules/unistdio/u8-snprintf: New file.
13275 * modules/unistdio/u8-sprintf: New file.
13276 * modules/unistdio/u8-vasnprintf: New file.
13277 * modules/unistdio/u8-vasprintf: New file.
13278 * modules/unistdio/u8-vsnprintf: New file.
13279 * modules/unistdio/u8-vsprintf: New file.
13280 * modules/unistdio/u8-u8-asnprintf: New file.
13281 * modules/unistdio/u8-u8-asprintf: New file.
13282 * modules/unistdio/u8-u8-snprintf: New file.
13283 * modules/unistdio/u8-u8-sprintf: New file.
13284 * modules/unistdio/u8-u8-vasnprintf: New file.
13285 * modules/unistdio/u8-u8-vasprintf: New file.
13286 * modules/unistdio/u8-u8-vsnprintf: New file.
13287 * modules/unistdio/u8-u8-vsprintf: New file.
13288 * modules/unistdio/u16-asnprintf: New file.
13289 * modules/unistdio/u16-asprintf: New file.
13290 * modules/unistdio/u16-printf-parse: New file.
13291 * modules/unistdio/u16-snprintf: New file.
13292 * modules/unistdio/u16-sprintf: New file.
13293 * modules/unistdio/u16-vasnprintf: New file.
13294 * modules/unistdio/u16-vasprintf: New file.
13295 * modules/unistdio/u16-vsnprintf: New file.
13296 * modules/unistdio/u16-vsprintf: New file.
13297 * modules/unistdio/u16-u16-asnprintf: New file.
13298 * modules/unistdio/u16-u16-asprintf: New file.
13299 * modules/unistdio/u16-u16-snprintf: New file.
13300 * modules/unistdio/u16-u16-sprintf: New file.
13301 * modules/unistdio/u16-u16-vasnprintf: New file.
13302 * modules/unistdio/u16-u16-vasprintf: New file.
13303 * modules/unistdio/u16-u16-vsnprintf: New file.
13304 * modules/unistdio/u16-u16-vsprintf: New file.
13305 * modules/unistdio/u32-asnprintf: New file.
13306 * modules/unistdio/u32-asprintf: New file.
13307 * modules/unistdio/u32-printf-parse: New file.
13308 * modules/unistdio/u32-snprintf: New file.
13309 * modules/unistdio/u32-sprintf: New file.
13310 * modules/unistdio/u32-vasnprintf: New file.
13311 * modules/unistdio/u32-vasprintf: New file.
13312 * modules/unistdio/u32-vsnprintf: New file.
13313 * modules/unistdio/u32-vsprintf: New file.
13314 * modules/unistdio/u32-u32-asnprintf: New file.
13315 * modules/unistdio/u32-u32-asprintf: New file.
13316 * modules/unistdio/u32-u32-snprintf: New file.
13317 * modules/unistdio/u32-u32-sprintf: New file.
13318 * modules/unistdio/u32-u32-vasnprintf: New file.
13319 * modules/unistdio/u32-u32-vasprintf: New file.
13320 * modules/unistdio/u32-u32-vsnprintf: New file.
13321 * modules/unistdio/u32-u32-vsprintf: New file.
13322 * modules/unistdio/ulc-asnprintf-tests: New file.
13323 * modules/unistdio/ulc-vasnprintf-tests: New file.
13324 * modules/unistdio/ulc-vasprintf-tests: New file.
13325 * modules/unistdio/ulc-vsnprintf-tests: New file.
13326 * modules/unistdio/ulc-vsprintf-tests: New file.
13327 * modules/unistdio/u8-asnprintf-tests: New file.
13328 * modules/unistdio/u8-vasnprintf-tests: New file.
13329 * modules/unistdio/u8-vasprintf-tests: New file.
13330 * modules/unistdio/u8-vsnprintf-tests: New file.
13331 * modules/unistdio/u8-vsprintf-tests: New file.
13332 * modules/unistdio/u16-asnprintf-tests: New file.
13333 * modules/unistdio/u16-vasnprintf-tests: New file.
13334 * modules/unistdio/u16-vasprintf-tests: New file.
13335 * modules/unistdio/u16-vsnprintf-tests: New file.
13336 * modules/unistdio/u16-vsprintf-tests: New file.
13337 * modules/unistdio/u32-asnprintf-tests: New file.
13338 * modules/unistdio/u32-vasnprintf-tests: New file.
13339 * modules/unistdio/u32-vasprintf-tests: New file.
13340 * modules/unistdio/u32-vsnprintf-tests: New file.
13341 * modules/unistdio/u32-vsprintf-tests: New file.
13342 * MODULES.html.sh (Unicode string functions): Add the new modules.
13344 2007-07-01 Bruno Haible <bruno@clisp.org>
13346 * lib/sprintf.c (sprintf): Limit the available length estimation,
13347 to avoid address wraparound.
13348 * lib/vsprintf.c (vsprintf): Likewise.
13349 * modules/sprintf-posix (Dependencies): Add stdint.
13350 * modules/vsprintf-posix (Dependencies): Likewise.
13352 2007-07-01 Bruno Haible <bruno@clisp.org>
13354 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
13355 Windows PATH as well. Conservative double-quoting. Comments.
13357 2007-07-01 Bruno Haible <bruno@clisp.org>
13358 Eric Blake <ebb9@byu.net>
13359 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13361 * gnulib-tool (self_abspathname): Fix algorithm to cope with
13362 empty components in $PATH, denoting '.'.
13364 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13366 * gnulib-tool: Fix indentation.
13367 (func_create_megatestdir): Likewise.
13368 Report by Bruno Haible.
13370 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13372 Sync from Automake.
13373 * build-aux/gnupload: Fix shell portability issues with for loops.
13374 Report by Karl Berry.
13376 2007-06-29 Simon Josefsson <simon@josefsson.org>
13378 * build-aux/maint.mk (POURL): Use translationproject.org.
13380 2007-06-27 Simon Josefsson <simon@josefsson.org>
13381 Bruno Haible <bruno@clisp.org>
13383 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
13384 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
13385 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
13386 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
13387 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
13389 2007-06-27 Bruno Haible <bruno@clisp.org>
13391 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
13392 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
13394 2007-06-26 Karl Berry <karl@gnu.org>
13396 * MODULES.html.sh: remove xreadlink-with-size.
13398 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
13400 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
13401 method that I hope also handles the double-include problem noted
13403 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
13405 2007-06-23 Bruno Haible <bruno@clisp.org>
13407 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13408 Don't let the 'mostlyclean' target fail if the last subdirectory could
13410 Reported by Karl Berry.
13412 2007-06-23 Bruno Haible <bruno@clisp.org>
13414 * gnulib-tool (echo): Add a speedier workaround for ksh.
13415 * tests/test-echo.sh: Likewise.
13417 2007-06-23 Bruno Haible <bruno@clisp.org>
13419 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
13420 * tests/test-echo.sh: Likewise.
13422 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13424 * gnulib-tool (IFS): Initialize early, so we don't set it to
13426 (self_abspathname): Rewrite algorithm to set it, reindent.
13427 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
13428 (func_create_megatestdir): Merge some sed scripts.
13430 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
13432 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
13433 exposed by Sun Studio 11 cc on Solaris 8.
13435 2007-06-22 Bruno Haible <bruno@clisp.org>
13437 * gnulib-tool (echo): Ensure the echo primitive does not interpret
13439 * tests/test-echo.sh: New file.
13441 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13443 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
13444 simplify `sed_replace_build_aux' scripts, they are portable but
13445 echoing them with `echo' is not.
13446 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
13448 2007-06-21 Karl Berry <karl@gnu.org>
13450 * config/srclist.txt: guess we can't handle the licenses via
13451 srclist at the moment.
13453 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
13455 * MODULES.html.sh: Add include_next.
13456 * modules/include_next: New file.
13458 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
13460 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
13462 (gl_CHECK_NEXT_HEADERS): New macro.
13463 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
13464 the obsolescent gl_ABSOLUTE_HEADER.
13465 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
13466 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
13467 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
13468 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13469 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13470 * m4/math_h.m4 (gl_MATH_H): Likewise.
13471 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
13472 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13473 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13474 * m4/stdint.m4 (gl_STDINT_H): Likewise.
13475 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
13476 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
13477 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
13478 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13479 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13480 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13481 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
13482 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
13483 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13484 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13485 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
13486 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
13487 * m4/inttypes.m4 (gl_INTTYPES_H): Define
13488 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
13489 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
13490 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
13491 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
13492 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
13493 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
13494 * lib/float_.h: Likewise.
13495 * lib/inttypes_.h: Likewise.
13496 * lib/math_.h: Likewise.
13497 * lib/search_.h: Likewise.
13498 * lib/signal_.h: Likewise.
13499 * lib/stdint_.h: Likewise.
13500 * lib/stdio_.h: Likewise.
13501 * lib/stdlib_.h: Likewise.
13502 * lib/string_.h: Likewise.
13503 * lib/sys_stat_.h: Likewise.
13504 * lib/sys_time_.h: Likewise.
13505 * lib/time_.h: Likewise.
13506 * lib/unistd_.h: Likewise.
13507 * lib/wchar_.h: Likewise.
13508 * lib/wctype_.h: Likewise.
13509 * lib/dirent_.h: Likewise.
13510 * lib/iconv_.h: Likewise.
13511 * lib/locale_.h: Likewise.
13512 * lib/netinet_in_.h: Likewise.
13513 * lib/sys_select_.h: Likewise.
13514 * lib/sys_socket_.h: Likewise.
13515 * lib/sysexits_.h: Likewise.
13516 * modules/fcntl (Depends-on): Depend on include_next, not
13518 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
13519 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
13520 * modules/fchdir: Likewise.
13521 * modules/float: Likewise.
13522 * modules/iconv_open: Likewise.
13523 * modules/inttypes: Likewise.
13524 * modules/locale: Likewise.
13525 * modules/math: Likewise.
13526 * modules/netinet_in: Likewise.
13527 * modules/search: Likewise.
13528 * modules/signal: Likewise.
13529 * modules/stdint: Likewise.
13530 * modules/stdio: Likewise.
13531 * modules/stdlib: Likewise.
13532 * modules/string: Likewise.
13533 * modules/sys_select: Likewise.
13534 * modules/sys_socket: Likewise.
13535 * modules/sys_stat: Likewise.
13536 * modules/sys_time: Likewise.
13537 * modules/sysexits: Likewise.
13538 * modules/time: Likewise.
13539 * modules/unistd: Likewise.
13540 * modules/wchar: Likewise.
13541 * modules/wctype: Likewise.
13542 * modules/sys_stat: Change maintainer to "all".
13543 * modules/unistd: Likewise.
13545 2007-06-20 Karl Berry <karl@gnu.org>
13547 * config/srclist.txt: track www changes in license files.
13549 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
13551 * build-aux/bootstrap: Remove stray dot.
13552 Make sure build_aux settings are honored when linking
13553 gnulib_extra_files.
13555 2007-06-19 Eric Blake <ebb9@byu.net>
13557 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
13558 Allow compilation on cygwin.
13560 2007-06-19 Jim Meyering <jim@meyering.net>
13562 xreadlink-with-size: Remove module. No longer used.
13563 Ex-callers now use xreadlink or mreadlink-with-size.
13564 * modules/xreadlink-with-size: Remove module.
13565 * lib/xreadlink-with-size.c: Remove file.
13566 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
13567 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
13568 just before the function definition *is* accurate.
13570 Eliminate one way canonicalize_filename_mode could exit.
13571 * lib/canonicalize.c (canonicalize_filename_mode):
13572 Use mreadlink_with_size, not xreadlink_with_size.
13574 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
13576 Detect porting problems to FreeBSD/arm, which has time_t wider than
13577 long int. Original problem reported for GNU diff by Xin Li in
13578 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
13579 * modules/getdate (Depends-on): Add intprops, verify.
13580 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
13581 is an integer type no wider than long int.
13583 2007-06-18 Jim Meyering <jim@meyering.net>
13585 New module: mreadlink-with-size.
13586 * MODULES.html.sh: Add mreadlink-with-size.
13587 * modules/mreadlink-with-size: New module
13588 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
13589 not xreadlink-with-size.
13590 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
13592 2007-06-16 Bruno Haible <bruno@clisp.org>
13594 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
13595 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
13596 Reported by Gary V. Vaughan <gary@gnu.org>.
13598 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
13600 Revamp lchown so that it lives in unistd.h where it belongs.
13601 * lib/lchown.h: Remove.
13602 * lib/dirchownmod.c: Don't include lib/lchown.h.
13603 * lib/fchownat.c: Likewise.
13604 * lib/openat.c: Likewise.
13605 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
13606 does not follow symlinks.
13607 (EOPNOTSUPP): Define if not defined.
13608 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
13610 (lchown): New decl.
13611 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
13612 Do not check for lchown decl.
13613 Set REPLACE_LCHOWN.
13614 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
13616 * modules/chown: Make it clear it follows symlinks.
13617 * modules/lchown: Make it clear it doesn't follow symlinks.
13618 (Files): Remove lib/lchown.h
13619 (Depends-on): Add unistd.
13620 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
13621 (Include): Include <unistd.h>, not "lchown.h".
13622 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
13625 2007-06-15 Jim Meyering <jim@meyering.net>
13627 Change license (GPL to LGPL) of fsusage and dependents.
13628 * modules/fsusage (License): Change to LGPL.
13629 * modules/full-read (License): Likewise.
13630 * modules/full-write (License): Likewise.
13631 * modules/safe-read (License): Likewise.
13632 * modules/safe-write (License): Likewise.
13634 2007-06-14 Ben Pfaff <blp@gnu.org>
13636 Missing part of allocsa -> malloca transition.
13637 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
13640 2007-06-12 Bruno Haible <bruno@clisp.org>
13642 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
13643 to ia64, x86_64, i386.
13644 Reported by Eric Blake.
13646 2007-06-12 Bruno Haible <bruno@clisp.org>
13648 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
13649 cross-compiling to x86_64.
13651 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
13653 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
13654 glitch reported by Ralf Wildenhues in
13655 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
13657 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
13660 2007-06-11 Bruno Haible <bruno@clisp.org>
13662 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
13663 replacement string.
13664 Reported by Eric Blake.
13666 2007-06-10 Bruno Haible <bruno@clisp.org>
13668 Prepare vasnprintf code for use with Unicode strings.
13669 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
13670 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
13672 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
13673 a_u32_string variants.
13674 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
13675 * lib/printf-args.c: Don't include config.h and the specification
13676 header if PRINTF_FETCHARGS is already defined.
13677 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
13678 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
13679 TYPE_U16_STRING, TYPE_U32_STRING.
13680 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
13681 u16_directive, u16_directives, u32_directive, u32_directives): New
13683 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
13685 * lib/printf-parse.c: Don't include config.h and the specification
13686 header if PRINTF_PARSE is already defined. Eliminate the set of
13687 parameters for WIDE_CHAR_VERSION; the user of this file must provide
13688 them now. Include c-ctype.h.
13689 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
13690 directive and CHAR_T_ONLY_ASCII.
13691 * lib/vasnprintf.c: Don't include config.h and the specification header
13692 if VASNPRINTF is already defined.
13693 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
13694 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
13695 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
13696 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
13697 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
13698 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
13700 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
13701 pad_ourselves also in this case, with the 'c' and 's' directives, and
13702 with a different notion of "width".
13703 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
13705 2007-06-10 Bruno Haible <bruno@clisp.org>
13707 * modules/unistr/u32-mbsnlen: New file.
13708 * lib/unistr/u32-mbsnlen.c: New file.
13710 * modules/unistr/u16-mbsnlen: New file.
13711 * lib/unistr/u16-mbsnlen.c: New file.
13713 * modules/unistr/u8-mbsnlen: New file.
13714 * lib/unistr/u8-mbsnlen.c: New file.
13716 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
13719 2007-06-10 Bruno Haible <bruno@clisp.org>
13721 * lib/string_.h (mbsnlen): New declaration.
13722 * lib/mbsnlen.c: New file.
13723 * m4/mbsnlen.m4: New file.
13724 * modules/mbsnlen: New file.
13725 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
13726 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
13727 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
13729 2007-06-10 Bruno Haible <bruno@clisp.org>
13731 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
13733 2007-06-10 Bruno Haible <bruno@clisp.org>
13735 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
13736 * lib/mbuiter.h: Likewise.
13738 2007-06-10 Bruno Haible <bruno@clisp.org>
13740 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
13743 2007-06-10 Karl Berry <karl@gnu.org>
13745 * config/srclist.txt: remove gettext entries, Bruno prefers
13746 to update individually.
13748 2007-06-10 Bruno Haible <bruno@clisp.org>
13750 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
13751 'maxlen'. Ensure only length + width bytes are allocated, not
13752 length + 1 + width.
13754 2007-06-09 Bruno Haible <bruno@clisp.org>
13756 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
13757 (CHAR_T): Remove macro.
13758 (VASNPRINTF): Update.
13760 2007-06-09 Bruno Haible <bruno@clisp.org>
13762 * MODULES.html.sh (Unicode string functions): Add the new modules.
13764 * modules/uniconv/u32-conv-to-enc: New file.
13765 * lib/uniconv/u32-conv-to-enc.c: New file.
13766 * modules/uniconv/u32-conv-to-enc-tests: New file.
13767 * tests/uniconv/test-u32-conv-to-enc.c: New file.
13769 * modules/uniconv/u16-conv-to-enc: New file.
13770 * lib/uniconv/u16-conv-to-enc.c: New file.
13771 * lib/uniconv/u-conv-to-enc.h: New file.
13772 * modules/uniconv/u16-conv-to-enc-tests: New file.
13773 * tests/uniconv/test-u16-conv-to-enc.c: New file.
13775 * modules/uniconv/u8-conv-to-enc: New file.
13776 * lib/uniconv/u8-conv-to-enc.c: New file.
13777 * modules/uniconv/u8-conv-to-enc-tests: New file.
13778 * tests/uniconv/test-u8-conv-to-enc.c: New file.
13780 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13781 u32_conv_to_encoding): New declarations.
13783 2007-06-09 Bruno Haible <bruno@clisp.org>
13785 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
13787 2007-06-09 Bruno Haible <bruno@clisp.org>
13789 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
13790 * modules/malloca: Renamed from modules/allocsa, updated.
13791 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
13792 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
13793 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
13794 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
13795 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
13796 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
13797 * modules/xmalloca: Renamed from modules/xallocsa, updated.
13798 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
13799 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
13800 * modules/c-strcasestr (Depends-on): Update.
13801 * lib/c-strcasestr.c: Update.
13802 * modules/c-strstr (Depends-on): Update.
13803 * lib/c-strstr.c: Update.
13804 * modules/canonicalize-lgpl (Depends-on): Update.
13805 * lib/canonicalize-lgpl.c: Update.
13806 * modules/clean-temp (Depends-on): Update.
13807 * lib/clean-temp.c: Update.
13808 * modules/csharpcomp (Depends-on): Update.
13809 * lib/csharpcomp.c: Update.
13810 * modules/csharpexec (Depends-on): Update.
13811 * lib/csharpexec.c: Update.
13812 * modules/javacomp (Depends-on): Update.
13813 * lib/javacomp.c: Update.
13814 * modules/javaexec (Depends-on): Update.
13815 * lib/javaexec.c: Update.
13816 * modules/mbscasestr (Depends-on): Update.
13817 * lib/mbscasestr.c: Update.
13818 * modules/mbsstr (Depends-on): Update.
13819 * lib/mbsstr.c: Update.
13820 * modules/setenv (Depends-on): Update.
13821 * lib/setenv.c: Update.
13822 * modules/strcasestr (Depends-on): Update.
13823 * lib/strcasestr.c: Update.
13824 * modules/striconveha (Depends-on): Update.
13825 * lib/striconveha.c: Update.
13826 * modules/relocatable-prog-wrapper (Files): Update.
13827 * lib/relocwrapper.c: Update.
13828 * build-aux/install-reloc: Update.
13829 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
13831 2007-06-08 Bruno Haible <bruno@clisp.org>
13834 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
13835 * lib/fpurge.c (fpurge): Likewise.
13836 * lib/freading.c (freading): Likewise.
13837 * lib/fseeko.c (rpl_fseeko): Likewise.
13838 * lib/fseterr.c (fseterr): Likewise.
13839 * lib/fwriting.c (fwriting): Likewise.
13840 * tests/test-fflush.c (main): Avoid a failure on uClibc.
13842 2007-06-08 Bruno Haible <bruno@clisp.org>
13844 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
13845 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
13846 * modules/gettext (Files): Add m4/intlmacosx.m4.
13848 2007-06-07 Bruno Haible <bruno@clisp.org>
13850 * modules/localename-tests: New file.
13851 * tests/test-localename.c: New file.
13853 New module 'localename'.
13854 * lib/localename.h: New file.
13855 * lib/localename.c: New file, from GNU gettext.
13856 * m4/localename.m4: New file.
13857 * modules/localename: New file.
13859 2007-06-07 Bruno Haible <bruno@clisp.org>
13861 Work around the lack of <wchar.h> on some builds of uClibc.
13862 * doc/headers/wchar.texi: Update.
13863 * lib/wchar_.h: Include <wchar.h> only if it exists.
13864 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
13865 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
13866 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
13868 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
13869 * modules/mbfile (Depends-on): Add wchar.
13870 * modules/mbiter (Depends-on): Likewise.
13871 * modules/mbuiter (Depends-on): Likewise.
13872 Reported by Simon Josefsson.
13874 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
13876 Work around problem reported by Steven M. Schweda in
13877 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
13878 Tru64 5.1B with the Compaq compiler environment installed declares
13879 an 'isblank' function but does not define it in the C library.
13880 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
13881 * lib/regex_internal.h (isblank): Likewise.
13882 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
13883 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13885 2007-06-05 Bruno Haible <bruno@clisp.org>
13887 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
13889 * modules/printf-safe: New file.
13890 * modules/fprintf-posix (Depends-on): Add printf-safe.
13891 * modules/printf-posix (Depends-on): Likewise.
13892 * modules/snprintf-posix (Depends-on): Likewise.
13893 * modules/sprintf-posix (Depends-on): Likewise.
13894 * modules/vasnprintf-posix (Depends-on): Likewise.
13895 * modules/vasprintf-posix (Depends-on): Likewise.
13896 * modules/vfprintf-posix (Depends-on): Likewise.
13897 * modules/vprintf-posix (Depends-on): Likewise.
13898 * modules/vsnprintf-posix (Depends-on): Likewise.
13899 * modules/vsprintf-posix (Depends-on): Likewise.
13900 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
13901 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
13902 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
13903 "no" on i386, x86_64, ia64.
13904 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
13905 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13906 on i386, x86_64, ia64.
13907 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
13908 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13909 on i386, x86_64, ia64.
13910 * tests/test-vasnprintf-posix.c: Include float.h.
13911 (LDBL80_WORDS): New macro.
13912 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13913 on i386, x86_64, ia64.
13914 * tests/test-vasprintf-posix.c: Include float.h.
13915 (LDBL80_WORDS): New macro.
13916 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13917 on i386, x86_64, ia64.
13918 * tests/test-snprintf-posix.c: Include float.h.
13919 * tests/test-sprintf-posix.c: Likewise.
13920 * tests/test-vsnprintf-posix.c: Likewise.
13921 * tests/test-vsprintf-posix.c: Likewise.
13923 2007-06-05 Bruno Haible <bruno@clisp.org>
13925 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
13926 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
13927 non-IEEE numbers on i386, x86_64, ia64.
13928 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
13929 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
13930 * tests/test-isnanl.h: Include float.h.
13931 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
13933 2007-06-05 Bruno Haible <bruno@clisp.org>
13935 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
13936 also the %a / %A. Handle the %a / %A code before this extra handling.
13938 2007-06-05 Bruno Haible <bruno@clisp.org>
13940 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
13941 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
13943 2007-06-05 Bruno Haible <bruno@clisp.org>
13945 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
13946 typo in variable name.
13948 2007-06-05 Eric Blake <ebb9@byu.net>
13950 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
13951 Reported by Simon Josefsson.
13953 2007-06-04 Bruno Haible <bruno@clisp.org>
13955 Avoid test failures on some PowerPC platforms.
13956 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
13957 Define differently for PowerPC.
13958 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
13959 Reported by Gary V. Vaughan <gary@gnu.org>.
13961 2007-06-02 Bruno Haible <bruno@clisp.org>
13963 Fix test-stdint failure on FreeBSD/ia64.
13964 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
13965 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
13966 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
13967 * doc/headers/stdint.texi: Update.
13969 2007-06-01 Bruno Haible <bruno@clisp.org>
13971 * tests/test-binary-io.c (main): Pass a third argument to open().
13972 Reported by Gary V. Vaughan <gary@gnu.org>.
13974 2007-06-01 Bruno Haible <bruno@clisp.org>
13976 * doc/functions/frexpl.texi: Update for mingw.
13978 2007-06-01 Bruno Haible <bruno@clisp.org>
13980 * tests/test-lseek.c (main): Disable test of errno for invalid third
13982 * doc/functions/lseek.texi: Update.
13983 Reported by Gary V. Vaughan <gary@gnu.org>.
13985 2007-05-28 Bruno Haible <bruno@clisp.org>
13987 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
13989 2007-05-31 Eric Blake <ebb9@byu.net>
13991 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
13994 2007-05-30 Eric Blake <ebb9@byu.net>
13995 and Bruno Haible <bruno@clisp.org>
13997 Work around mingw test failures exposed by m4-1.4.9b.
13998 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
13999 * tests/test-unistd.c: Disable uid_t and git_t tests for the
14002 2007-05-30 Bruno Haible <bruno@clisp.org>
14004 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
14005 assuming that they are closed. Needed on HP-UX 11.
14007 2007-05-29 Bruno Haible <bruno@clisp.org>
14009 Fix a problem with #include_next.
14010 * lib/dirent_.h: Split the double-inclusion guard.
14011 * lib/fcntl_.h: Likewise.
14012 * lib/float_.h: Likewise.
14013 * lib/iconv_.h: Likewise.
14014 * lib/inttypes_.h: Likewise.
14015 * lib/locale_.h: Likewise.
14016 * lib/math_.h: Likewise.
14017 * lib/netinet_in_.h: Likewise.
14018 * lib/search_.h: Likewise.
14019 * lib/signal_.h: Likewise.
14020 * lib/stdint_.h: Likewise.
14021 * lib/stdio_.h: Likewise.
14022 * lib/stdlib_.h: Likewise.
14023 * lib/string_.h: Likewise.
14024 * lib/sys_select_.h: Likewise.
14025 * lib/sys_socket_.h: Likewise.
14026 * lib/sys_stat_.h: Likewise.
14027 * lib/sys_time_.h: Likewise.
14028 * lib/sysexits_.h: Likewise.
14029 * lib/time_.h: Likewise.
14030 * lib/unistd_.h: Likewise.
14031 * lib/wchar_.h: Likewise.
14032 * lib/wctype_.h: Likewise.
14034 2007-05-29 Bruno Haible <bruno@clisp.org>
14036 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
14039 2007-05-29 Bruno Haible <bruno@clisp.org>
14041 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
14043 Reported by Eric Blake.
14045 2007-05-29 Bruno Haible <bruno@clisp.org>
14047 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
14050 2007-05-29 Eric Blake <ebb9@byu.net>
14051 Bruno Haible <bruno@clisp.org>
14053 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
14056 2007-05-28 Eric Blake <ebb9@byu.net>
14058 * modules/closein-tests (test_closein_LDADD): Support test on
14059 cygwin with libtool.
14061 2007-05-28 Bruno Haible <bruno@clisp.org>
14063 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
14064 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
14065 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
14066 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
14067 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
14068 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
14069 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
14070 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
14071 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
14073 2007-05-28 Eric Blake <ebb9@byu.net>
14075 Unconditionally include <config.h> in unit tests.
14076 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
14077 * tests/test-allocsa.c, tests/test-arcfour.c,
14078 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
14079 tests/test-array_list.c, tests/test-array_oset.c,
14080 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
14081 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
14082 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
14083 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
14084 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
14085 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
14086 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
14087 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
14088 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
14089 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
14090 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
14091 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
14092 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
14093 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
14094 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
14095 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
14096 test-md5.c, test-memmem.c, test-printf-posix.c,
14097 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
14098 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
14099 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
14100 test-strcasestr.c, test-striconv.c, test-striconveh.c,
14101 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
14102 test-vasnprintf-posix2.c, test-vasnprintf.c,
14103 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
14104 test-vfprintf-posix.c, test-vprintf-posix.c,
14105 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
14106 test-xvasprintf.c: Likewise.
14108 2007-05-28 Bruno Haible <bruno@clisp.org>
14110 * gnulib-tool (func_import): Remember the --with-tests command-line
14111 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
14112 Reported by Eric Blake.
14114 2007-05-28 Bruno Haible <bruno@clisp.org>
14116 * modules/ftell-tests: New file.
14117 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
14118 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
14120 * lib/ftell.c: New file.
14121 * modules/ftell: New file.
14122 * m4/ftell.m4: New file.
14123 * doc/functions/ftell.texi: Update.
14124 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
14126 * lib/stdio_.h (rpl_ftell): New declaration.
14127 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
14130 2007-05-28 Eric Blake <ebb9@byu.net>
14132 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
14134 2007-05-28 Bruno Haible <bruno@clisp.org>
14136 * modules/fseek-tests: New file.
14137 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
14138 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
14140 * lib/fseek.c: New file.
14141 * modules/fseek: New file.
14142 * m4/fseek.m4: New file.
14143 * doc/functions/fseek.texi: Update.
14144 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
14146 * lib/stdio_.h (rpl_fseek): New declaration.
14147 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
14150 2007-05-28 Bruno Haible <bruno@clisp.org>
14152 * lib/stdio_.h (fflush): More comments.
14154 2007-05-28 Bruno Haible <bruno@clisp.org>
14156 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
14159 2007-05-28 Eric Blake <ebb9@byu.net>
14161 Improve lseek module.
14162 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
14163 * lib/unistd_.h (lseek): Scale back link warning message.
14164 * tests/test-lseek.c: Beef up test.
14165 * tests/test-lseek.sh: Exercise more facets of lseek.
14166 Reported by Bruno Haible.
14168 2007-05-28 Bruno Haible <bruno@clisp.org>
14170 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
14173 2007-05-27 Bruno Haible <bruno@clisp.org>
14175 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
14177 2007-05-27 Bruno Haible <bruno@clisp.org>
14179 * modules/openmp: New file.
14180 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
14183 2007-05-26 Bruno Haible <bruno@clisp.org>
14185 * modules/chdir-long (Depends-on): Add fchdir.
14186 * modules/chdir-safer (Depends-on): Likewise.
14187 * modules/fts (Depends-on): Likewise.
14188 * modules/fts-lgpl (Depends-on): Likewise.
14189 * modules/openat (Depends-on): Likewise.
14190 * modules/savewd (Depends-on): Likewise.
14192 2007-05-24 Eric Blake <ebb9@byu.net>
14194 Fix lseek on mingw.
14195 * modules/lseek: New module.
14196 * m4/lseek.m4: New file.
14197 * lib/lseek.c: New file.
14198 * modules/lseek-tests: New file.
14199 * tests/test-lseek.c: New file.
14200 * tests/test-lseek.sh: New file.
14201 * MODULES.html.sh: Document lseek module.
14202 * modules/fflush (Depends-on): Add lseek, fseeko.
14203 * modules/fseeko (Depends-on): Likewise.
14204 * modules/ftello (Depends-on): Likewise.
14205 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
14207 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
14209 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
14210 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
14211 * lib/ftello.c (rpl_ftello): Likewise.
14212 * tests/test-fseeko.c (main): Test this.
14213 * tests/test-fseeko.sh: Likewise.
14214 * tests/test-ftello.c (main): Likewise.
14215 * tests/test-ftello.sh: Likewise.
14216 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
14217 implies replacing fseek.
14218 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
14220 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
14221 * modules/unistd (Makefile.am): Likewise.
14222 * lib/unistd_.h (lseek): Declare a replacement.
14223 * doc/functions/lseek.texi (lseek): Document this fix.
14224 * doc/functions/fseek.texi (fseek): Likewise.
14225 * doc/functions/ftell.texi (ftell): Likewise.
14227 2007-05-24 Bruno Haible <bruno@clisp.org>
14229 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
14230 in the printed representation of a NaN.
14231 * tests/test-vasprintf-posix.c (test_function): Likewise.
14232 * tests/test-snprintf-posix.h (test_function): Likewise.
14233 * tests/test-sprintf-posix.h (test_function): Likewise.
14234 Reported by Eric Blake.
14236 2007-05-23 Eric Blake <ebb9@byu.net>
14238 Fix fseeko/ftello on cygwin 1.5.24.
14239 * doc/functions/fseeko.texi (fseeko): Document the fix.
14240 * doc/functions/ftello.texi (ftello): Document the fix.
14241 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
14242 * doc/functions/stdout.text (stdout): New file.
14243 * doc/functions/stderr.text (stderr): New file.
14244 * doc/gnulib.texi (Function Substitutes): Use new files.
14245 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
14247 * tests/test-ftello.c (main): Likewise for ftello.
14248 * tests/test-fseeko.sh: New file.
14249 * tests/test-ftello.sh: New file.
14250 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
14251 with seekable stdin.
14252 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
14253 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
14254 (gl_REPLACE_FSEEKO): New macro.
14255 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
14256 * modules/fseeko (Files): Distribute fseeko.c.
14257 * modules/ftello (Files): Distribute ftello.c.
14258 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
14260 * lib/ftello.c (rpl_ftello): New file.
14261 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
14263 (gl_STDIN_LARGE_OFFSET): New macro.
14264 * modules/stdio (Makefile.am): Perform the replacement.
14265 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
14267 2007-05-23 Bruno Haible <bruno@clisp.org>
14269 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
14270 GNULIB_POSIXCHECK is defined.
14272 2007-05-21 Bruno Haible <bruno@clisp.org>
14274 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
14275 Check also the output for NaN arguments. When cross-compiling, guess
14277 * lib/vasnprintf.c: Update comments.
14278 * tests/test-vasnprintf-posix.c (strisnan): New function.
14279 (test_function): Use it.
14280 * tests/test-vasprintf-posix.c (strisnan): New function.
14281 (test_function): Use it.
14282 * tests/test-snprintf-posix.h (strisnan): New function.
14283 (test_function): Use it.
14284 * tests/test-sprintf-posix.h (strisnan): New function.
14285 (test_function): Use it.
14286 Reported by Eric Blake.
14288 2007-05-20 Bruno Haible <bruno@clisp.org>
14290 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
14291 numbers that fails on BeOS.
14292 * doc/functions/frexpl.texi: Update.
14294 2007-05-20 Jim Meyering <jim@meyering.net>
14296 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
14297 forced upon us by glibc-2.6.
14299 2007-05-20 Bruno Haible <bruno@clisp.org>
14301 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
14302 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
14303 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
14304 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
14305 NEED_PRINTF_INFINITE.
14306 (is_infinitel): New function.
14307 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
14308 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
14309 gl_PREREQ_VASNPRINTF_INFINITE.
14310 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
14311 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14312 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
14313 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
14314 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
14315 gl_PREREQ_VASNPRINTF_INFINITE.
14316 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14317 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14318 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14319 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14320 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14321 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14322 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14323 * doc/functions/fprintf.texi: Update.
14324 * doc/functions/printf.texi: Update.
14325 * doc/functions/snprintf.texi: Update.
14326 * doc/functions/sprintf.texi: Update.
14327 * doc/functions/vfprintf.texi: Update.
14328 * doc/functions/vprintf.texi: Update.
14329 * doc/functions/vsnprintf.texi: Update.
14330 * doc/functions/vsprintf.texi: Update.
14332 2007-05-20 Bruno Haible <bruno@clisp.org>
14334 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
14335 was not found in libc.
14336 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14338 2007-05-20 Bruno Haible <bruno@clisp.org>
14340 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
14341 printed as "-nan" instead of "nan".
14342 * tests/test-vasprintf-posix.c (test_function): Likewise.
14343 * tests/test-snprintf-posix.h (test_function): Likewise.
14344 * tests/test-sprintf-posix.h (test_function): Likewise.
14345 Needed for HP-UX 11.
14347 2007-05-20 Jim Meyering <jim@meyering.net>
14349 Fix buggy test for the fchownat-deref bug.
14350 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
14351 symlink required for the run-test. Without it, this test would
14352 always declare that fchownat doesn't work, and client code would
14353 unnecessarily use the replacement function with fixed libc.
14354 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
14355 Reported by Greg Schafer.
14357 2007-05-19 Bruno Haible <bruno@clisp.org>
14359 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
14360 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
14361 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
14362 Needed for IRIX 6.5 and Solaris 2.5.1.
14364 2007-05-19 Bruno Haible <bruno@clisp.org>
14366 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
14367 (test_function): Skip tests involving -0.0 on platforms where
14369 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
14370 (test_function): Skip tests involving -0.0 on platforms where
14372 * tests/test-snprintf-posix.h (have_minus_zero): New function.
14373 (test_function): Skip tests involving -0.0 on platforms where
14375 * tests/test-sprintf-posix.h (have_minus_zero): New function.
14376 (test_function): Skip tests involving -0.0 on platforms where
14378 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
14380 * tests/test-printf-posix.h (test_function): Likewise.
14381 * tests/test-printf-posix.output: Remove all -0.0 related results.
14382 Needed for IRIX 6.5.
14384 2007-05-19 Bruno Haible <bruno@clisp.org>
14386 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
14387 printed as "nan0x7fffffff" instead of "nan".
14388 * tests/test-vasprintf-posix.c (test_function): Likewise.
14389 * tests/test-snprintf-posix.h (test_function): Likewise.
14390 * tests/test-sprintf-posix.h (test_function): Likewise.
14391 * tests/test-fprintf-posix.h (NaN): Remove macro.
14392 (test_function): Remove all NaN related tests.
14393 * tests/test-printf-posix.h (NaN): Remove macro.
14394 (test_function): Remove all NaN related tests.
14395 * tests/test-printf-posix.output: Remove all NaN related results.
14396 Needed for IRIX 6.5.
14398 2007-05-19 Bruno Haible <bruno@clisp.org>
14400 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
14401 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14403 2007-05-19 Bruno Haible <bruno@clisp.org>
14405 * lib/float_.h: New file.
14406 * m4/float_h.m4: New file.
14407 * modules/float: New file.
14408 * modules/isnanl (Dependencies): Add float.
14409 * modules/isnanl-nolibm (Dependencies): Likewise.
14410 * modules/mathl (Dependencies): Likewise.
14411 * modules/printf-frexpl (Dependencies): Likewise.
14412 * modules/signbit (Dependencies): Likewise.
14413 * modules/vasnprintf (Dependencies): Likewise.
14414 * doc/headers/float.texi: Update.
14416 2007-05-19 Jim Meyering <jim@meyering.net>
14418 * lib/utimens.c (gl_futimens): Rename from futimens,
14419 now that glibc-2.6 declares futimens.
14420 * lib/utimens.h: Likewise.
14422 2007-05-19 Bruno Haible <bruno@clisp.org>
14424 Avoid test failures on mingw.
14425 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
14426 * tests/test-printf-posix.sh: Likewise.
14427 * tests/test-vfprintf-posix.sh: Likewise.
14428 * tests/test-vprintf-posix.sh: Likewise.
14430 2007-05-19 Bruno Haible <bruno@clisp.org>
14432 Fix *printf result for NaN, Inf, -0.0 on mingw.
14433 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
14434 * lib/vasnprintf.c: Include math.h and isnan.h.
14435 (is_infinite_or_zero): New function.
14436 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
14437 values in the %f, %F, %e, %E, %g, %G directives.
14438 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
14439 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14440 gl_PRINTF_INFINITE and test its result. Invoke
14441 gl_PREREQ_VASNPRINTF_INFINITE.
14442 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14443 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14444 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14445 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14446 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14447 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14448 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14449 * doc/functions/fprintf.texi: Update.
14450 * doc/functions/printf.texi: Update.
14451 * doc/functions/snprintf.texi: Update.
14452 * doc/functions/sprintf.texi: Update.
14453 * doc/functions/vfprintf.texi: Update.
14454 * doc/functions/vprintf.texi: Update.
14455 * doc/functions/vsnprintf.texi: Update.
14456 * doc/functions/vsprintf.texi: Update.
14458 2007-05-19 Bruno Haible <bruno@clisp.org>
14460 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
14461 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
14462 Instead of multiplying with 10^k, set extra_zeroes to k.
14463 (scale10_round_long_double): Remove function.
14465 2007-05-18 Bruno Haible <bruno@clisp.org>
14467 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
14468 introduced on 2007-05-06.
14470 2007-05-18 Bruno Haible <bruno@clisp.org>
14472 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
14474 * tests/test-vasprintf-posix.c (test_function): Likewise.
14475 * tests/test-snprintf-posix.h (test_function): Likewise.
14476 * tests/test-sprintf-posix.h (test_function): Likewise.
14478 2007-05-18 Bruno Haible <bruno@clisp.org>
14480 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
14481 (strmatch): New function.
14482 (test_function): Test the %f directive on numbers of various exponents.
14483 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
14484 (strmatch): New function.
14485 (test_function): Test the %f directive on numbers of various exponents.
14486 * tests/test-snprintf-posix.h (strmatch): New function.
14487 (test_function): Test the %f directive on numbers of various exponents.
14488 * tests/test-sprintf-posix.h (strmatch): New function.
14489 (test_function): Test the %f directive on numbers of various exponents.
14490 * tests/test-snprintf-posix.c (SIZEOF): New macro.
14491 * tests/test-sprintf-posix.c (SIZEOF): New macro.
14492 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
14493 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
14495 2007-05-18 Bruno Haible <bruno@clisp.org>
14497 Add support for 'long double' number output.
14498 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
14499 * lib/vasnprintf.c: Include math.h and float+.h.
14500 (mp_limb_t): New type.
14501 (GMP_LIMB_BITS): New macro.
14502 (mp_twolimb_t): New type.
14503 (GMP_TWOLIMB_BITS): New macro.
14505 (multiply, divide, convert_to_decimal, decode_long_double,
14506 scale10_round_long_double, scale10_round_decimal_long_double,
14507 floorlog10l): New functions.
14508 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
14509 for the %f, %F, %e, %E, %g, %G directives.
14510 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
14511 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14512 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
14513 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
14514 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14515 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14516 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14517 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14518 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14519 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14520 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14521 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
14522 * modules/snprintf-posix (Depends-on): Likewise.
14523 * modules/sprintf-posix (Depends-on): Likewise.
14524 * modules/vasnprintf-posix (Depends-on): Likewise.
14525 * modules/vasprintf-posix (Depends-on): Likewise.
14526 * modules/vfprintf-posix (Depends-on): Likewise.
14527 * modules/vsnprintf-posix (Depends-on): Likewise.
14528 * modules/vsprintf-posix (Depends-on): Likewise.
14529 * modules/vasnprintf (Files): Add lib/float+.h.
14530 * doc/functions/fprintf.texi: Update.
14531 * doc/functions/printf.texi: Update.
14532 * doc/functions/snprintf.texi: Update.
14533 * doc/functions/sprintf.texi: Update.
14534 * doc/functions/vfprintf.texi: Update.
14535 * doc/functions/vprintf.texi: Update.
14536 * doc/functions/vsnprintf.texi: Update.
14537 * doc/functions/vsprintf.texi: Update.
14539 2007-05-18 Bruno Haible <bruno@clisp.org>
14541 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
14543 2007-05-18 Bruno Haible <bruno@clisp.org>
14545 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
14546 for printing 64-bit integers. Needed for mingw.
14548 2007-05-18 Bruno Haible <bruno@clisp.org>
14550 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
14551 gl_FUNC_FREXPL_WORKS.
14552 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
14554 2007-05-18 Bruno Haible <bruno@clisp.org>
14556 * modules/frexpl-nolibm-tests: New file.
14558 * modules/frexpl-nolibm: New file.
14559 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
14561 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
14563 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
14564 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
14565 GCC 4.2, which otherwise issues a lot of warnings.
14566 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
14567 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
14569 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
14570 * modules/iconv_open (iconv.h): Likewise.
14571 * modules/locale (locale.h): Likewise.
14572 * modules/netinet_in (netinet/in.h): Likewise.
14573 * modules/sys_select (sys_select.h): Likewise.
14574 * modules/sys_socket (sys/socket.h): Likewise.
14575 * modules/sys_stat (sys/stat.h): Likewise.
14576 * modules/sysexits (sysexits.h): Likewise.
14577 * modules/unistd (unistd.h): Likewise.
14579 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14581 * modules/closein-tests (Makefile.am): Distribute
14584 2007-05-17 Bruno Haible <bruno@clisp.org>
14586 * tests/test-printf-posix.output: Renamed from
14587 tests/test-fprintf-posix.out.
14588 * modules/fprintf-posix-tests: Update.
14589 * modules/printf-posix-tests: Update.
14590 * modules/vfprintf-posix-tests: Update.
14591 * modules/vprintf-posix-tests: Update.
14592 * tests/test-fprintf-posix.sh: Update.
14593 * tests/test-printf-posix.sh: Update.
14594 * tests/test-vfprintf-posix.sh: Update.
14595 * tests/test-vprintf-posix.sh: Update.
14596 Reported by Ralf Wildenhues.
14598 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
14600 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
14601 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
14602 GCC 4.2, which otherwise issues a lot of warnings.
14603 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
14604 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
14605 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
14606 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
14607 it should no longer be needed.
14608 * lib/string_.h: Likewise.
14609 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
14610 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
14611 * modules/inttypes (inttypes.h): Likewise.
14612 * modules/math (math.h): Likewise.
14613 * modules/search (search.h): Likewise.
14614 * modules/signal (signal.h): Likewise.
14615 * modules/stdint (stdint.h): Likewise.
14616 * modules/stdio (stdio.h): Likewise.
14617 * modules/stdlib (stdlib.h): Likewise.
14618 * modules/string (string.h): Likewise.
14619 * modules/sys_time (sys/time.h): Likewise.
14620 * modules/time (time.h): Likewise.
14621 * modules/wchar (wchar.h): Likewise.
14622 * modules/wctype (wtype.h): Likewise.
14624 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
14626 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
14628 2007-05-13 Bruno Haible <bruno@clisp.org>
14630 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
14631 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14632 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
14633 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
14634 (gl_PREREQ_STRTOK_R): Don't require it here.
14636 2007-05-13 Bruno Haible <bruno@clisp.org>
14638 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
14639 when used in C++ mode.
14641 2007-05-12 Bruno Haible <bruno@clisp.org>
14643 * lib/linebuffer.h: Tweak doc.
14644 * lib/linebuffer.c: Likewise.
14646 2007-05-12 James Youngman <jay@gnu.org>
14648 * lib/linebuffer.c (readlinebuffer_delim): New function,
14649 like readlinebuffer, but use a caller-specified delimiter.
14650 (readlinebuffer): Just call readlinebuffer_delim with '\n'
14652 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
14654 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
14656 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
14657 * modules/openat (Files): Remove openat-die.c.
14658 (Depends-on): Add openat-die.
14659 * modules/openat-die: New module.
14661 2007-05-06 Bruno Haible <bruno@clisp.org>
14663 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
14664 Update with info about Cygwin.
14665 * doc/functions/fprintf.texi: Update.
14666 * doc/functions/printf.texi: Update.
14667 * doc/functions/snprintf.texi: Update.
14668 * doc/functions/sprintf.texi: Update.
14669 * doc/functions/vfprintf.texi: Update.
14670 * doc/functions/vprintf.texi: Update.
14671 * doc/functions/vsnprintf.texi: Update.
14672 * doc/functions/vsprintf.texi: Update.
14673 Reported by Eric Blake.
14675 2007-05-06 Bruno Haible <bruno@clisp.org>
14677 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
14678 padding ourselves for the floating-point directives.
14679 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
14680 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
14681 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14682 gl_PRINTF_FLAG_ZERO and test its result. Invoke
14683 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
14684 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14685 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
14686 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14687 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14688 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14689 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14690 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14691 * tests/test-snprintf-posix.h (test_function): Also check the width
14692 and some flags in the %f directive.
14693 * tests/test-sprintf-posix.h (test_function): Likewise.
14694 * tests/test-vasnprintf-posix.c (test_function): Likewise.
14695 * tests/test-vasprintf-posix.c (test_function): Likewise.
14696 * doc/functions/fprintf.texi: Update.
14697 * doc/functions/printf.texi: Update.
14698 * doc/functions/snprintf.texi: Update.
14699 * doc/functions/sprintf.texi: Update.
14700 * doc/functions/vfprintf.texi: Update.
14701 * doc/functions/vprintf.texi: Update.
14702 * doc/functions/vsnprintf.texi: Update.
14703 * doc/functions/vsprintf.texi: Update.
14705 2007-05-06 Bruno Haible <bruno@clisp.org>
14707 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
14708 pass the ' flag character to sprintf or snprintf.
14709 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
14710 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
14711 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14712 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
14713 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
14714 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14715 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
14716 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14717 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14718 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14719 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14720 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14721 * tests/test-snprintf-posix.h (test_function): Also check the grouping
14723 * tests/test-sprintf-posix.h (test_function): Likewise.
14724 * tests/test-vasnprintf-posix.c (test_function): Likewise.
14725 * tests/test-vasprintf-posix.c (test_function): Likewise.
14726 * doc/functions/fprintf.texi: Update.
14727 * doc/functions/printf.texi: Update.
14728 * doc/functions/snprintf.texi: Update.
14729 * doc/functions/sprintf.texi: Update.
14730 * doc/functions/vfprintf.texi: Update.
14731 * doc/functions/vprintf.texi: Update.
14732 * doc/functions/vsnprintf.texi: Update.
14733 * doc/functions/vsprintf.texi: Update.
14735 2007-05-01 Bruno Haible <bruno@clisp.org>
14737 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
14739 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
14741 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
14742 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
14744 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
14746 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
14747 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
14748 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
14750 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
14752 * lib/argp-help.c (struct hol_entry): New member `ord'.
14753 (HOL_ENTRY_PTRCMP): Use ord for comparison
14754 (hol_sort): Initialize ord.
14756 2007-05-01 Bruno Haible <bruno@clisp.org>
14758 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
14759 Reported by Eric Blake.
14760 * doc/gnulib.texi (Function Substitutes): Update.
14762 2007-05-01 Bruno Haible <bruno@clisp.org>
14764 * doc/functions.texi: Remove file, now redundant through
14765 doc/functions/*.texi.
14767 2007-05-01 Bruno Haible <bruno@clisp.org>
14769 * modules/argp (Depends-on): Add sleep.
14771 2007-05-01 Bruno Haible <bruno@clisp.org>
14773 * modules/sleep-tests: New file.
14774 * tests/test-sleep.c: New file.
14776 * modules/sleep: New file.
14777 * lib/sleep.c: New file.
14778 * m4/sleep.m4: New file.
14779 * lib/unistd_.h (sleep): New declaration.
14780 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
14782 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
14783 * doc/functions/sleep.texi: Document the sleep module.
14785 2007-05-01 Bruno Haible <bruno@clisp.org>
14787 * lib/sigprocmask.h: Remove file.
14788 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
14789 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
14790 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
14791 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
14792 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14793 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
14794 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
14795 HAVE_SIGSET_T as a shell variable.
14796 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
14797 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
14798 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
14799 (Depends-on): Add signal. Remove verify.
14800 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
14801 (Include): Mention <signal.h> instead of sigprocmask.h.
14802 * NEWS: Mention the change.
14803 * lib/fatal-signal.c: Don't include sigprocmask.h.
14805 2007-05-01 Bruno Haible <bruno@clisp.org>
14807 * modules/signal: New file.
14808 * lib/signal_.h: New file.
14809 * m4/signal_h.m4: New file.
14811 2007-05-01 Bruno Haible <bruno@clisp.org>
14813 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
14814 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
14815 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
14816 HAVE_WCTYPE_CTMP_BUG into wctype.h.
14818 2007-05-01 Bruno Haible <bruno@clisp.org>
14820 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
14822 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
14823 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
14824 * modules/sys_stat (Makefile.am): Substitute their values into
14827 2007-05-01 Bruno Haible <bruno@clisp.org>
14829 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
14830 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
14831 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
14833 2007-05-01 Bruno Haible <bruno@clisp.org>
14835 * doc/header/assert.texi: Undo last change: don't mention the gnulib
14836 'assert' module here.
14838 2007-05-01 Bruno Haible <bruno@clisp.org>
14840 * doc/functions/*.texi: New files.
14841 * doc/functions/google-ranking.txt: New file.
14842 * doc/gnulib.texi (Function Substitutes): New chapter.
14843 (ctime, inet_ntoa): Remove sections.
14844 * doc/ctime.texi: Remove file.
14845 * doc/inet_ntoa.texi: Remove file.
14846 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
14848 (%.info): New rule, specifying a --reference-limit.
14850 2007-05-01 Bruno Haible <bruno@clisp.org>
14852 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
14854 2007-05-01 Bruno Haible <bruno@clisp.org>
14856 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
14857 the portability of 'mkdir' to mingw systems.
14859 2007-05-01 Bruno Haible <bruno@clisp.org>
14861 * doc/headers/google-ranking.txt: New file.
14863 2007-04-30 Eric Blake <ebb9@byu.net>
14865 Prefer fseeko to fseek.
14866 * modules/getpass (Depends-on): Add fseeko.
14867 * lib/getpass.c (getpass): Use fseeko, not fseek.
14869 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
14871 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
14872 assumes the sorting is stable, while most qsort implementations
14873 are not. Use argument addresses to ensure they never compare as
14876 * tests/test-argp-2.sh (usage-indent test): Fix output
14877 (func_compare): Restore diff options
14878 * tests/test-argp.c: Restore #include "progname.h"
14880 2007-04-29 Bruno Haible <bruno@clisp.org>
14882 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
14883 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14884 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
14885 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14886 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
14887 (configure.ac): Define CHECK_SNPRINTF_POSIX.
14888 (TESTS, check_PROGRAMS): Add test-snprintf.
14889 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
14890 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
14891 (TESTS, check_PROGRAMS): Add test-vsnprintf.
14892 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
14893 assertions that fail on HP-UX, OSF/1, or IRIX.
14894 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
14896 2007-04-29 Bruno Haible <bruno@clisp.org>
14898 * MODULES.html.sh (posix_functions): Remove 'contents'.
14900 2007-04-29 Karl Berry <karl@gnu.org>
14902 * config/srclist.txt (gendocs_template_min): new entry.
14904 2007-04-29 Bruno Haible <bruno@clisp.org>
14906 Work around fpurge bug on BSD systems.
14907 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
14908 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
14909 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
14910 fpurge to rpl_fpurge if the system already has this function.
14911 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
14912 the case where the system already has this function. Correct invariants
14914 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
14917 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
14919 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
14920 proposed by Sven Verdoolaege.
14922 * tests/test-argp.c: Fix option ordering. Test deeply clustered
14924 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
14925 (usage and help tests): Update
14927 2007-04-29 Bruno Haible <bruno@clisp.org>
14929 * tests/test-fflush.c (main): Use a file of size 17, not 10.
14930 Print more information in case of failure. Disable a test on BeOS.
14932 2007-04-29 Bruno Haible <bruno@clisp.org>
14934 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
14935 This helps debugging on systems on which no gdb is available.
14937 2007-04-29 Bruno Haible <bruno@clisp.org>
14939 * lib/freading.h: Improve comments.
14940 * lib/fwriting.h: Likewise.
14941 * tests/test-freading.c (main): Don't check freading immediately after
14942 repositioning. Needed for glibc.
14944 2007-04-29 Bruno Haible <bruno@clisp.org>
14946 * lib/freading.c (freading): Trivial simplification.
14948 2007-04-28 Bruno Haible <bruno@clisp.org>
14950 * tests/test-fwriting.c (main): Also test the interaction between
14951 fflush and fwriting.
14952 * modules/fwriting-tests (Depends-on): Add fflush.
14954 * tests/test-freading.c (main): Also test the interaction between
14955 fflush and freading.
14956 * modules/freading-tests (Depends-on): Add fflush.
14958 2007-04-28 Bruno Haible <bruno@clisp.org>
14960 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
14962 Suggested by Eric Blake.
14964 2007-04-28 Jim Meyering <jim@meyering.net>
14966 Avoid false-negative in gl_STDINT_H's C99 conformance test.
14967 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
14968 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
14970 2007-04-27 Eric Blake <ebb9@byu.net>
14972 * doc/headers/assert.texi (assert.h): Document assert module use.
14974 2007-04-27 Bruno Haible <bruno@clisp.org>
14976 * doc/headers/*.texi: New files.
14977 * doc/gnulib.texi (Header File Substitutes): New chapter.
14978 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
14980 (standards.info ,standards.html, standards.dvi): Update dependencies.
14981 (mostlyclean, clean): New targets.
14983 2007-04-27 Bruno Haible <bruno@clisp.org>
14985 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
14986 * modules/sysexits (Files, Makefile.am): Update.
14988 * lib/sys_socket_.h: Renamed from lib/socket_.h.
14989 * modules/sys_socket (Files, Makefile.am): Update.
14991 * lib/sys_stat_.h: Renamed from lib/stat_.h.
14992 * modules/sys_stat (Files, Makefile.am): Update.
14994 2007-04-27 Eric Blake <ebb9@byu.net>
14996 * lib/freading.h: Improve comments.
14997 * lib/fwriting.h: Likewise.
14998 * lib/fflush.c: Likewise.
15000 Fix closein for mingw.
15001 * modules/closein-tests: Add tests for closein.
15002 * tests/test-closein.c: New file.
15003 * tests/test-closein.sh: Likewise.
15004 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
15005 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
15007 2007-04-27 Bruno Haible <bruno@clisp.org>
15009 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
15011 * lib/math_.h [__DECC]: Likewise.
15012 * lib/stdio_.h [__DECC]: Likewise.
15013 * lib/stdlib_.h [__DECC]: Likewise.
15014 * lib/string_.h [__DECC]: Likewise.
15015 * lib/time_.h [__DECC]: Likewise.
15016 * lib/wchar_.h [__DECC]: Likewise.
15017 * lib/wctype_.h [__DECC]: Likewise.
15019 2007-04-27 Bruno Haible <bruno@clisp.org>
15021 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
15023 2007-04-27 Bruno Haible <bruno@clisp.org>
15025 * lib/fflush.c: Add comments.
15026 * modules/fpurge-tests (Depends-on): Add fflush.
15027 * modules/freadable-tests (Depends-on): Likewise.
15028 * modules/fwritable-tests (Depends-on): Likewise.
15030 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
15032 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
15033 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
15034 Report by Bruno Haible <bruno@clisp.org>.
15036 2007-04-26 Eric Blake <ebb9@byu.net>
15038 Fix fflush on mingw.
15039 * modules/fflush (Depends-on): Add freading.
15040 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
15043 2007-04-26 Eric Blake <ebb9@byu.net>
15044 and Bruno Haible <bruno@clisp.org>
15046 Implement freading and fwriting.
15047 * lib/freading.c: New file.
15048 * lib/freading.h: Likewise.
15049 * m4/freading.m4: Likewise.
15050 * modules/freading: Likewise.
15051 * modules/freading-tests: Likewise.
15052 * tests/test-freading.c: Likewise.
15053 * lib/fwriting.c: New file.
15054 * lib/fwriting.h: Likewise.
15055 * m4/fwriting.m4: Likewise.
15056 * modules/fwriting: Likewise.
15057 * modules/fwriting-tests: Likewise.
15058 * tests/test-fwriting.c: Likewise.
15059 * MODULES.html.sh (File stream based Input/Output): Mention them.
15061 2007-04-26 Bruno Haible <bruno@clisp.org>
15063 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
15064 'long' when we assume it.
15065 Suggested by Eric Blake.
15067 2007-04-26 Bruno Haible <bruno@clisp.org>
15069 Ensure fseeko, ftello are declared on glibc systems.
15070 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
15071 * modules/fseeko (configure.ac-early): Likewise.
15072 * modules/ftello (configure.ac-early): Likewise.
15073 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
15074 AC_FUNC_FSEEKO for this.
15075 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
15076 (gl_CHECK_FSEEKO): Remove macro.
15078 2007-04-26 Bruno Haible <bruno@clisp.org>
15080 * tests/test-fflush.c (main): Also check the ftell result after
15081 fflush and fseek/fseeko.
15082 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
15083 file descriptor position cache in the stream.
15084 * lib/fseeko.c (rpl_fseeko): Likewise.
15086 2007-04-26 Bruno Haible <bruno@clisp.org>
15088 * modules/fflush-tests (Depends-on): Add fseeko.
15090 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
15091 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15093 * lib/argz_.h: ensure error_t definition is obtained in same
15094 mechanism system argz.h would have.
15095 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
15096 argz facilities are known bad. Err on the side of caution if
15099 2007-04-25 Eric Blake <ebb9@byu.net>
15101 * lib/fpurge.c (includes): Use stdlib.h for free.
15102 * tests/test-fflush.c (main): Also test fflush-fseeko.
15104 2007-04-25 Bruno Haible <bruno@clisp.org>
15106 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
15107 * lib/fseeko.c: New file.
15108 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
15109 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
15110 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
15112 (gl_FUNC_FSEEKO): Invoke it.
15113 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
15114 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
15115 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
15117 2007-04-25 Bruno Haible <bruno@clisp.org>
15119 * modules/fflush (Depends-on): Add ftello.
15121 2007-04-25 Bruno Haible <bruno@clisp.org>
15123 * modules/ftello-tests: New file.
15124 * tests/test-ftello.c: New file.
15126 * modules/ftello: New file.
15127 * m4/ftello.m4: New file.
15128 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
15130 * lib/stdio_.h (ftello): New declaration.
15131 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
15134 2007-04-25 Bruno Haible <bruno@clisp.org>
15136 * modules/fseeko-tests: New file.
15137 * tests/test-fseeko.c: New file.
15139 * modules/fseeko: New file.
15140 * m4/fseeko.m4: New file.
15141 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
15143 * lib/stdio_.h (fseeko): New declaration.
15144 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
15147 2007-04-25 Bruno Haible <bruno@clisp.org>
15149 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
15151 2007-04-25 Bruno Haible <bruno@clisp.org>
15153 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
15154 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
15155 * tests/test-unistd.c: Likewise.
15156 * tests/test-fcntl.c: Likewise.
15158 2007-04-23 Eric Blake <ebb9@byu.net>
15160 * lib/fflush.c: Fix missing include.
15161 Reported by Bruno Haible.
15163 2007-04-23 Bruno Haible <bruno@clisp.org>
15165 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
15166 Reported by Eric Blake.
15168 2007-04-23 Bruno Haible <bruno@clisp.org>
15170 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
15172 2007-04-23 Bruno Haible <bruno@clisp.org>
15174 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
15176 2007-04-23 Bruno Haible <bruno@clisp.org>
15178 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
15179 Needed on HP-UX 11.
15181 2007-04-16 Eric Blake <ebb9@byu.net>
15183 Make fflush rely on fpurge.
15184 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
15185 open coding all variants.
15186 * modules/fflush (Depends-on): Add fpurge and unistd.
15187 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
15188 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
15190 Fix --with-tests compilation on cygwin.
15191 * modules/argmatch-tests (Makefile.am): List gnulib library first
15193 * modules/argp-tests (Makefile.am): Likewise.
15194 * modules/array-list-tests (Makefile.am): Likewise.
15195 * modules/array-oset-tests (Makefile.am): Likewise.
15196 * modules/avltree-list-tests (Makefile.am): Likewise.
15197 * modules/avltree-oset-tests (Makefile.am): Likewise.
15198 * modules/avltreehash-list-tests (Makefile.am): Likewise.
15199 * modules/carray-list-tests (Makefile.am): Likewise.
15200 * modules/dirname-tests (Makefile.am): Likewise.
15201 * modules/frexp-tests (Makefile.am): Likewise.
15202 * modules/isnanl-tests (Makefile.am): Likewise.
15203 * modules/linked-list-tests (Makefile.am): Likewise.
15204 * modules/linkedhash-list-tests (Makefile.am): Likewise.
15205 * modules/lock-tests (Makefile.am): Likewise.
15206 * modules/rbtree-list-tests (Makefile.am): Likewise.
15207 * modules/rbtree-oset-tests (Makefile.am): Likewise.
15208 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
15209 * modules/tls-tests (Makefile.am): Likewise.
15210 * modules/tsearch-tests (Makefile.am): Likewise.
15211 * modules/xvasprintf-tests (Makefile.am): Likewise.
15213 Fix fpurge for cygwin.
15214 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
15216 * modules/fpurge-tests (Depends-on): Clean up trash.
15218 2007-04-16 Simon Josefsson <simon@josefsson.org>
15220 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
15222 * m4/autobuild.m4: Re-indent.
15224 2007-04-13 Bruno Haible <bruno@clisp.org>
15226 * modules/fpurge-tests: New file.
15227 * tests/test-fpurge.c: New file.
15229 * modules/fpurge: New file.
15230 * lib/fpurge.h: New file.
15231 * lib/fpurge.c: New file.
15232 * m4/fpurge.m4: New file.
15234 2007-04-13 Bruno Haible <bruno@clisp.org>
15236 * modules/fbufmode-tests: New file.
15237 * tests/test-fbufmode.c: New file.
15239 * modules/fbufmode: New file.
15240 * lib/fbufmode.h: New file.
15241 * lib/fbufmode.c: New file.
15242 * m4/fbufmode.m4: New file.
15244 2007-04-13 Bruno Haible <bruno@clisp.org>
15246 * modules/fwritable-tests: New file.
15247 * tests/test-fwritable.c: New file.
15249 * modules/fwritable: New file.
15250 * lib/fwritable.h: New file.
15251 * lib/fwritable.c: New file.
15252 * m4/fwritable.m4: New file.
15254 2007-04-13 Bruno Haible <bruno@clisp.org>
15256 * modules/freadable-tests: New file.
15257 * tests/test-freadable.c: New file.
15259 * modules/freadable: New file.
15260 * lib/freadable.h: New file.
15261 * lib/freadable.c: New file.
15262 * m4/freadable.m4: New file.
15264 2007-04-13 Bruno Haible <bruno@clisp.org>
15266 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
15269 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
15271 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
15272 gzip bootstrap.conf to avoid dragging in i18n machinery.
15273 (gnulib_tool_option): Use it.
15275 2007-04-13 Bruno Haible <bruno@clisp.org>
15277 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
15279 * tests/test-vasprintf-posix.c (test_function): Likewise.
15280 * tests/test-snprintf-posix.h (test_function): Likewise.
15281 * tests/test-sprintf-posix.h (test_function): Likewise.
15282 * tests/test-fprintf-posix.h (test_function): Likewise.
15283 * tests/test-printf-posix.h (test_function): Likewise.
15284 * tests/test-fprintf-posix.out: Likewise.
15286 2007-04-13 Bruno Haible <bruno@clisp.org>
15288 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
15289 * modules/tls-tests (configure.ac): Likewise.
15290 Reported by Arto C. Nirkko <anirkko@insel.ch>.
15292 2007-04-13 Bruno Haible <bruno@clisp.org>
15294 * lib/tls.c (glthread_tls_get): Fix return type.
15295 Patch by Arto C. Nirkko <anirkko@insel.ch>.
15297 2007-04-12 Eric Blake <ebb9@byu.net>
15299 * modules/gettime (Depends-on): Remove gettime.
15300 Reported by Dmitry V. Levin.
15302 2007-04-12 Bruno Haible <bruno@clisp.org>
15304 * modules/fflush (Include): Mention <stdio.h>.
15305 * modules/strtoimax (Include): Mention <inttypes.h>.
15306 * modules/strtoumax (Include): Likewise.
15308 2007-04-12 Eric Blake <ebb9@byu.net>
15310 * .cvsignore: New file.
15311 * .gitignore: Likewise.
15313 2007-04-12 Bruno Haible <bruno@clisp.org>
15315 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
15316 not before, since $(LDADD) often contains libgnu.a.
15317 * modules/striconv-tests (test_striconv_LDADD): Likewise.
15318 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
15319 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
15322 2007-04-12 Eric Blake <ebb9@byu.net>
15324 Work around glibc's failure to flush stdin on fclose.
15325 * lib/closein.c (close_stdin): Flush stdin before closing.
15327 Work around glibc's failure to reset seekable stdin on exit.
15328 * modules/closein: New module.
15329 * lib/closein.c: New file.
15330 * lib/closein.h: Likewise.
15331 * m4/closein.m4: Likewise.
15332 * MODULES.html.sh (File stream based Input/Output): Document it.
15334 2007-04-12 Simon Josefsson <simon@josefsson.org>
15336 * gnulib-tool: Rename generated 'autobuild' script to
15337 'do-autobuild' in --create-megatestdir output.
15339 * doc/gnulib.texi (Build robot for gnulib): Fix.
15341 2007-04-12 Simon Josefsson <simon@josefsson.org>
15343 * modules/sysexits (Depends-on): Add absolute-header.
15345 2007-04-12 Eric Blake <ebb9@byu.net>
15347 No need to preserve errno on success.
15348 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
15349 Reported by Bruno Haible.
15351 2007-04-12 Simon Josefsson <simon@josefsson.org>
15353 * MODULES.html.sh (Support for maintaining and releasing
15354 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
15356 2007-04-12 Simon Josefsson <simon@josefsson.org>
15358 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
15360 2007-04-12 Simon Josefsson <simon@josefsson.org>
15362 * modules/autobuild: New module.
15364 * m4/autobuild.m4: New file.
15366 2007-04-11 Bruno Haible <bruno@clisp.org>
15368 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
15369 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
15370 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
15371 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
15372 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15373 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15374 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15375 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15376 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15377 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15378 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
15379 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15380 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15381 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
15382 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15383 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15384 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
15385 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15386 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15387 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
15388 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15389 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15390 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
15391 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15392 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15393 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
15394 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15395 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15396 Reported by Eric Blake.
15398 2007-04-11 Bruno Haible <bruno@clisp.org>
15400 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
15402 2007-04-10 Bruno Haible <bruno@clisp.org>
15404 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
15405 for NaN and Infinity. Needed on FreeBSD 6.1.
15406 * tests/test-vasnprintf-posix.c (test_function): Undo last change
15407 regarding results for "%010a" of Infinity and NaN.
15408 * tests/test-vasprintf-posix.c (test_function): Likewise.
15409 * tests/test-snprintf-posix.h (test_function): Likewise.
15410 * tests/test-sprintf-posix.h (test_function): Likewise.
15411 * tests/test-fprintf-posix.h (test_function): Likewise.
15412 * tests/test-printf-posix.h (test_function): Likewise.
15413 * tests/test-fprintf-posix.out: Likewise.
15415 2007-04-10 Bruno Haible <bruno@clisp.org>
15417 * modules/locale-tests: New file.
15418 * tests/test-locale.c: New file.
15420 * modules/locale: New file.
15421 * lib/locale_.h: New file.
15422 * m4/locale_h.m4: New file.
15424 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
15425 Bruno Haible <bruno@clisp.org>
15427 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
15428 be determined, test for availability of the copysignf, copysign,
15429 copysignl functions.
15430 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
15431 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
15432 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
15434 2007-04-09 Eric Blake <ebb9@byu.net>
15436 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
15437 * modules/stdio (Makefile.am): Support fflush.
15438 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15439 * modules/fflush: New file.
15440 * lib/fflush.c: Likewise.
15441 * m4/fflush.m4: Likewise.
15442 * modules/fflush-tests: New test.
15443 * tests/test-fflush.c: Likewise.
15444 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
15446 2007-04-06 Bruno Haible <bruno@clisp.org>
15448 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
15449 (VASNPRINTF): Use signbit for faster determination whether to print a
15451 * modules/vasnprintf (Files): Remove lib/float+.h.
15452 * modules/fprintf-posix (Depends-on): Add signbit.
15453 * modules/snprintf-posix (Depends-on): Likewise.
15454 * modules/sprintf-posix (Depends-on): Likewise.
15455 * modules/vasnprintf-posix (Depends-on): Likewise.
15456 * modules/vasprintf-posix (Depends-on): Likewise.
15457 * modules/vfprintf-posix (Depends-on): Likewise.
15458 * modules/vsnprintf-posix (Depends-on): Likewise.
15459 * modules/vsprintf-posix (Depends-on): Likewise.
15461 2007-04-06 Bruno Haible <bruno@clisp.org>
15463 * tests/test-frexp.c (main): Test also the sign bit of zero results.
15464 * tests/test-frexpl.c (main): Likewise.
15465 * tests/test-ldexpl.c (main): Likewise.
15466 * modules/frexp-tests (Depends-on): Add signbit.
15467 * modules/frexpl-tests (Depdends-on): Likewise.
15468 * modules/ldexpl-tests (Depdends-on): Likewise.
15470 2007-04-06 Bruno Haible <bruno@clisp.org>
15472 * modules/signbit-tests: New file.
15473 * tests/test-signbit.c: New file.
15475 * modules/signbit: New file.
15476 * lib/signbitf.c: New file.
15477 * lib/signbitd.c: New file.
15478 * lib/signbitl.c: New file.
15479 * m4/signbit.m4: New file.
15480 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
15481 (signbit): New macro.
15482 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
15484 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
15485 REPLACE_FREXPL into math.h.
15487 2007-04-06 Bruno Haible <bruno@clisp.org>
15489 * modules/isnanf-nolibm-tests: New file.
15490 * tests/test-isnanf.c: New file.
15492 * modules/isnanf-nolibm: New file.
15493 * lib/isnanf.h: New file.
15494 * lib/isnanf.c: New file.
15495 * lib/isnan.c: Consider the USE_FLOAT macro.
15496 * m4/isnanf.m4: New file.
15498 2007-04-06 Bruno Haible <bruno@clisp.org>
15500 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
15501 (Link): New section.
15503 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
15505 2007-04-06 Bruno Haible <bruno@clisp.org>
15507 Assume the 'long double' type.
15508 * m4/longdouble.m4: Remove file.
15509 * config/srclist.txt: Don't mention longdouble.m4.
15510 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
15511 * lib/float+.h: Likewise.
15512 * lib/frexp.c: Likewise.
15513 * lib/printf-args.h: Likewise.
15514 * lib/printf-args.c: Likewise.
15515 * lib/printf-frexp.c: Likewise.
15516 * lib/printf-parse.c: Likewise.
15517 * lib/vasnprintf.c: Likewise.
15518 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
15519 * m4/intl.m4: Likewise.
15520 * m4/isnanl.m4: Likewise.
15521 * m4/printf.m4: Likewise.
15522 * m4/printf-frexpl.m4: Likewise.
15523 * m4/vasnprintf.m4: Likewise.
15524 * modules/allocsa (Files): Remove m4/longdouble.m4.
15525 * modules/gettext (Files): Likewise.
15526 * modules/relocatable-prog-wrapper (Files): Likewise.
15527 * modules/vasnprintf (Files): Likewise.
15528 * modules/isnanl (Files): Likewise.
15529 (Include): Simplify.
15530 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
15531 (Include): Simplify.
15532 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
15533 (Include): Simplify.
15534 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
15535 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15536 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
15537 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15538 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
15539 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15540 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
15541 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15542 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
15543 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15544 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
15545 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15546 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
15547 * tests/test-isnanl.c: Likewise.
15548 * tests/test-snprintf-posix.h: Likewise.
15549 * tests/test-sprintf-posix.h: Likewise.
15550 * tests/test-vasnprintf-posix.c: Likewise.
15551 * tests/test-vasnprintf-posix2.c: Likewise.
15552 * tests/test-vasprintf-posix.c: Likewise.
15554 2007-04-06 Bruno Haible <bruno@clisp.org>
15556 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
15557 * lib/math_.h [__DECC]: Include the overridden include file through
15558 #include_next, outside the double-inclusion guard.
15559 * lib/stdio_.h [__DECC]: Likewise.
15560 * lib/stdlib_.h [__DECC]: Likewise.
15561 * lib/string_.h [__DECC]: Likewise.
15562 * lib/time_.h [__DECC]: Likewise.
15563 * lib/wchar_.h [__DECC]: Likewise.
15564 * lib/wctype_.h [__DECC]: Likewise.
15565 * lib/inttypes_.h [__DECC]: Likewise.
15566 Reported by Albert Chin <china@thewrittenword.com> in
15567 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
15569 2007-04-04 Eric Blake <ebb9@byu.net>
15571 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
15574 2007-04-04 Bruno Haible <bruno@clisp.org>
15576 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
15577 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
15579 2007-04-04 Bruno Haible <bruno@clisp.org>
15581 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
15582 results for "%010a" of Infinity and NaN.
15583 * tests/test-vasprintf-posix.c (test_function): Likewise.
15584 * tests/test-snprintf-posix.h (test_function): Likewise.
15585 * tests/test-sprintf-posix.h (test_function): Likewise.
15586 * tests/test-fprintf-posix.h (test_function): Remove these tests.
15587 * tests/test-printf-posix.h (test_function): Likewise.
15588 * tests/test-fprintf-posix.out: Update.
15589 Needed for FreeBSD 6.1.
15591 2007-04-04 Bruno Haible <bruno@clisp.org>
15593 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
15594 directly used by the gnulib modules nor by gnulib-tool.
15596 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
15598 * DEPENDENCIES: Give overall description of version dependency
15599 desirability. Use more-typical names for apps.
15600 Add shell, coreutils, diffutils, grep, tar, gzip.
15602 2007-04-04 Simon Josefsson <simon@josefsson.org>
15604 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
15606 2007-04-04 Karl Berry <karl@gnu.org>
15608 * MODULES.html.sh (func_module): missing '.
15610 2007-04-03 Bruno Haible <bruno@clisp.org>
15612 * modules/argmatch-tests (Makefile.am): New variable
15613 test_argmatch_LDADD.
15614 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
15615 * modules/array-list-tests (Makefile.am): New variable
15616 test_array_list_LDADD.
15617 * modules/array-oset-tests (Makefile.am): New variable
15618 test_array_oset_LDADD.
15619 * modules/avltree-list-tests (Makefile.am): New variable
15620 test_avltree_list_LDADD.
15621 * modules/avltree-oset-tests (Makefile.am): New variable
15622 test_avltree_oset_LDADD.
15623 * modules/avltreehash-list-tests (Makefile.am): New variable
15624 test_avltreehash_list_LDADD.
15625 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
15626 test_canonicalize_lgpl_LDADD.
15627 * modules/carray-list-tests (Makefile.am): New variable
15628 test_carray_list_LDADD.
15629 * modules/dirname-tests (Makefile.am): New variable
15630 test_dirname_LDADD.
15631 * modules/linked-list-tests (Makefile.am): New variable
15632 test_linked_list_LDADD.
15633 * modules/linkedhash-list-tests (Makefile.am): New variable
15634 test_linkedhash_list_LDADD.
15635 * modules/rbtree-list-tests (Makefile.am): New variable
15636 test_rbtree_list_LDADD.
15637 * modules/rbtree-oset-tests (Makefile.am): New variable
15638 test_rbtree_oset_LDADD.
15639 * modules/rbtreehash-list-tests (Makefile.am): New variable
15640 test_rbtreehash_list_LDADD.
15641 * modules/xvasprintf-tests (Makefile.am): New variable
15642 test_xvasprintf_LDADD.
15643 Reported by Eric Blake.
15645 2007-04-03 Eric Blake <ebb9@byu.net>
15647 * DEPENDENCIES: Weaken m4 requirements.
15649 2007-04-03 Bruno Haible <bruno@clisp.org>
15651 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
15652 * modules/isnanl-tests (configure.ac): Likewise.
15654 2007-04-03 Ben Pfaff <blp@gnu.org>
15656 * modules/iconv_open: Add $(srcdir)/ to source directory
15657 references in Makefile fragments that call gperf, to fix VPATH
15660 2007-04-03 Bruno Haible <bruno@clisp.org>
15662 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
15663 * lib/ldexpl.c: Undo last change.
15665 2007-04-03 Bruno Haible <bruno@clisp.org>
15667 * modules/printf-frexpl (Depends-on): Undo last change.
15668 (Files): Add m4/ldexpl.m4.
15670 2007-04-03 Bruno Haible <bruno@clisp.org>
15672 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
15673 * modules/isnanl (Link): New section.
15675 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
15676 * modules/frexp (Link): New section.
15678 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
15679 * modules/frexpl (Link): New section.
15681 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
15682 * modules/ldexpl (Link): New section.
15684 2007-04-03 Bruno Haible <bruno@clisp.org>
15686 * modules/TEMPLATE-EXTENDED: New file.
15687 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
15689 2007-04-03 Bruno Haible <bruno@clisp.org>
15691 * DEPENDENCIES: New file.
15692 Suggested by Simon Josefsson.
15694 2007-04-03 Bruno Haible <bruno@clisp.org>
15696 * doc/gnulib.texi: Escape @.
15698 2007-04-03 James Youngman <jay@gnu.org>
15699 and Paul Eggert <eggert@cs.ucla.edu>
15701 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
15702 birthtime on all systems that have birthtime, not just those which
15703 use st_birthtimensec rather than st_birthtim. Putting zero in
15704 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
15705 that the birth time is not available for files on an NFS mount.
15707 2007-04-03 Simon Josefsson <simon@josefsson.org>
15709 * modules/memxor: Move back from crypto/, suggested by Bruno.
15710 * modules/crypto/hmac-sha1: Fix memxor dependency.
15712 * modules/crypto/gc: Moved from ../.
15714 2007-04-02 Eric Blake <ebb9@byu.net>
15716 * lib/ldexpl.c (includes): Avoid libm.
15718 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
15720 2007-04-02 Bruno Haible <bruno@clisp.org>
15722 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
15725 2007-04-02 Bruno Haible <bruno@clisp.org>
15727 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
15728 x86 or x86_64 platforms running MacOS X.
15729 Reported by Ryan Schmidt <@ryandesign.com>.
15731 2007-04-02 Bruno Haible <bruno@clisp.org>
15733 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
15736 2007-04-01 Simon Josefsson <simon@josefsson.org>
15738 * modules/crypto/arcfour: Moved from ../.
15739 * modules/crypto/arcfour-tests: Moved from ../.
15740 * modules/crypto/arctwo: Moved from ../.
15741 * modules/crypto/arctwo-tests: Moved from ../.
15742 * modules/crypto/des: Moved from ../.
15743 * modules/crypto/des-tests: Moved from ../.
15744 * modules/crypto/gc-arcfour: Moved from ../.
15745 * modules/crypto/gc-arcfour-tests: Moved from ../.
15746 * modules/crypto/gc-arctwo: Moved from ../.
15747 * modules/crypto/gc-arctwo-tests: Moved from ../.
15748 * modules/crypto/gc-des: Moved from ../.
15749 * modules/crypto/gc-des-tests: Moved from ../.
15750 * modules/crypto/gc-hmac-md5: Moved from ../.
15751 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
15752 * modules/crypto/gc-hmac-sha1: Moved from ../.
15753 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
15754 * modules/crypto/gc-md2: Moved from ../.
15755 * modules/crypto/gc-md2-tests: Moved from ../.
15756 * modules/crypto/gc-md4: Moved from ../.
15757 * modules/crypto/gc-md4-tests: Moved from ../.
15758 * modules/crypto/gc-md5: Moved from ../.
15759 * modules/crypto/gc-md5-tests: Moved from ../.
15760 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
15761 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
15762 * modules/crypto/gc-random: Moved from ../.
15763 * modules/crypto/gc-rijndael: Moved from ../.
15764 * modules/crypto/gc-rijndael-tests: Moved from ../.
15765 * modules/crypto/gc-sha1: Moved from ../.
15766 * modules/crypto/gc-sha1-tests: Moved from ../.
15767 * modules/crypto/gc-tests: Moved from ../.
15768 * modules/crypto/hmac-md5: Moved from ../.
15769 * modules/crypto/hmac-md5-tests: Moved from ../.
15770 * modules/crypto/hmac-sha1: Moved from ../.
15771 * modules/crypto/hmac-sha1-tests: Moved from ../.
15772 * modules/crypto/md2: Moved from ../.
15773 * modules/crypto/md2-tests: Moved from ../.
15774 * modules/crypto/md4: Moved from ../.
15775 * modules/crypto/md4-tests: Moved from ../.
15776 * modules/crypto/md5: Moved from ../.
15777 * modules/crypto/md5-tests: Moved from ../.
15778 * modules/crypto/memxor: Moved from ../.
15779 * modules/crypto/rijndael: Moved from ../.
15780 * modules/crypto/rijndael-tests: Moved from ../.
15781 * modules/crypto/sha1: Moved from ../.
15783 2007-03-30 James Youngman <jay@gnu.org>
15785 * tests/test-stat-time.c (prepare_test): use chmod() rather than
15786 rename() to change the ctime of a file (because ctime is unaffected
15787 by rename on jfs2 on AIX 5.1).
15788 (main): Start by doing cleanup, in case a previous run failed leaving
15791 2007-03-31 Bruno Haible <bruno@clisp.org>
15793 Support old proprietary implementations of iconv.
15794 * modules/iconv_open: New file.
15795 * lib/iconv_.h: New file.
15796 * m4/iconv_h.m4: New file.
15797 * lib/iconv_open.c: New file.
15798 * lib/iconv_open-aix.gperf: New file.
15799 * lib/iconv_open-hpux.gperf: New file.
15800 * lib/iconv_open-irix.gperf: New file.
15801 * lib/iconv_open-osf.gperf: New file.
15802 * m4/iconv_open.m4: New file.
15803 * modules/linebreak (Depends-on): Add iconv_open.
15804 * modules/striconv (Depends-on): Likewise.
15805 * modules/striconveh (Depends-on): Likewise.
15806 * modules/unicodeio (Depends-on): Likewise.
15807 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
15809 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
15810 conversion if cd is (iconv_t)(-1).
15811 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
15814 2007-03-31 Bruno Haible <bruno@clisp.org>
15816 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
15817 work on Solaris either. Protect also second use of "autodetect_jp".
15819 2007-03-31 Bruno Haible <bruno@clisp.org>
15821 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
15822 the function is not present.
15824 2007-03-31 Bruno Haible <bruno@clisp.org>
15826 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
15827 the function is not present.
15829 2007-03-31 Bruno Haible <bruno@clisp.org>
15831 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
15832 a bug in HP-UX iconv_open().
15834 2007-03-31 Bruno Haible <bruno@clisp.org>
15836 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
15837 (Mathematics <math.h>): New section, add fpieee.
15838 (Input/output <stdio.h>): Add fseterr.
15839 (Mathematics <math.h>): New section, add printf-frexp.
15840 (Container data structures): Add sublist.
15841 (Core language properties): Add fpucw, inline.
15842 (Functions for greatest-width integer types <inttypes.h>): Add
15843 imaxabs, imaxdiv, inttypes.
15844 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
15845 isnanl-nolibm, ldexp.
15846 (Mathematics <math.h>): New section, add printf-frexpl.
15847 (Support for systems lacking POSIX:2001): Add fprintf-posix,
15848 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
15849 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
15850 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
15851 (Unicode string functions): Add unistr/u*-mbtoucr.
15852 (Java): Add javacomp-script, javaexec-script.
15853 (C#): Add csharpcomp-script, csharpexec-script.
15854 (Support for building libraries and executables): Add havelib,
15856 (Support for maintaining and releasing projects): Renamed from
15857 'Support for maintaining and release projects'. Add announce-gen.
15859 2007-03-31 Bruno Haible <bruno@clisp.org>
15861 * README: Talk primarily about git.
15862 (git and CVS): Renamed from CVS.
15863 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
15864 gnulib is available through git.
15865 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
15867 2007-03-30 Bruno Haible <bruno@clisp.org>
15869 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
15870 * lib/poll_.h: Likewise.
15871 * lib/stat_.h: Likewise.
15872 * lib/sys_time_.h: Likewise.
15873 * lib/sysexit_.h: Likewise.
15874 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
15875 * lib/stdbool_.h: Likewise.
15876 * lib/byteswap_.h: Add double-inclusion guard.
15878 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
15880 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
15882 2007-03-30 Karl Berry <karl@gnu.org>
15884 * config/srclist-update: double space after USA in the license
15885 substitution, since that's how it's usually (?) written.
15887 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
15889 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
15890 reported by Bruno Haible.
15892 2007-03-29 Bruno Haible <bruno@clisp.org>
15894 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
15895 a bug in AIX iconv().
15897 2007-03-29 Bruno Haible <bruno@clisp.org>
15899 * modules/ldexpl-tests: New file.
15900 * tests/test-ldexpl.c: New file.
15902 2007-03-29 Bruno Haible <bruno@clisp.org>
15904 * lib/ldexpl.c: Include fpucw.h.
15905 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
15907 * modules/ldexpl (Depends-on): Add fpucw.
15909 2007-03-29 Bruno Haible <bruno@clisp.org>
15911 * modules/ldexpl: New file.
15912 * m4/ldexpl.m4: New file.
15913 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
15915 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
15917 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
15919 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
15920 gl_FUNC_LDEXPL_WORKS.
15921 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
15922 * modules/mathl (Files): Remove lib/ldexpl.c.
15923 (Depends-on): Add ldexpl.
15925 2007-03-29 Bruno Haible <bruno@clisp.org>
15927 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
15929 2007-03-29 Bruno Haible <bruno@clisp.org>
15931 * tests/test-striconveh.c (main): Don't assume that a direct conversion
15932 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
15933 and possibly also HP-UX.
15934 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
15935 work on AIX, IRIX, HP-UX, OSF/1.
15936 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15937 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15938 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15939 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15940 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
15941 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15943 2007-03-29 Bruno Haible <bruno@clisp.org>
15945 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
15947 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
15949 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
15950 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
15952 2007-03-29 Eric Blake <ebb9@byu.net>
15954 * lib/acl-internal.h: Remove redundant include.
15955 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
15956 Cygwin when a file is locked.
15958 2007-03-29 Bruno Haible <bruno@clisp.org>
15960 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
15962 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
15964 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
15966 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
15967 try to remove a parent directory if the child couldn't be removed
15968 (except for the first rmdir, which could fail because the child
15969 doesn't exist). Problem reported by Jeff Blaine in
15970 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
15972 2007-03-28 Bruno Haible <bruno@clisp.org>
15974 * lib/striconveh.c (utf8conv_carefully): New function.
15975 (mem_cd_iconveh_internal): Invoke it.
15977 2007-03-28 Bruno Haible <bruno@clisp.org>
15979 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
15980 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
15982 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
15983 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
15986 2007-03-28 Bruno Haible <bruno@clisp.org>
15988 * modules/unistr/u8-mbtoucr: New file.
15989 * lib/unistr/u8-mbtoucr.c: New file.
15990 * modules/unistr/u16-mbtoucr: New file.
15991 * lib/unistr/u16-mbtoucr.c: New file.
15992 * modules/unistr/u16-mbtoucr: New file.
15993 * lib/unistr/u16-mbtoucr.c: New file.
15994 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
15996 2007-03-27 Simon Josefsson <simon@josefsson.org>
15997 Bruno Haible <bruno@clisp.org>
15999 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
16000 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
16001 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
16003 * m4/stdio_h.m4: Add stubs for vasprintf too.
16005 * modules/stdio: Support vasprintf in sed command.
16007 * modules/vasprintf: Depend on stdio for prototypes. Remove
16008 vasprintf.h. Add stdio module indicator.
16010 * lib/stdio_.h: Declare asprintf and vasprintf, based on
16013 * lib/vasprintf.h: File removed.
16015 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
16016 * lib/vasprintf.c: Ditto.
16017 * lib/xvasprintf.c: Ditto.
16018 * tests/test-vasprintf-posix.c: Ditto.
16019 * tests/test-vasprintf.c: Ditto.
16021 2007-03-27 Bruno Haible <bruno@clisp.org>
16023 Make vasnprintf multithread-safe.
16024 * lib/vasnprintf.c (decimal_point_char): New function.
16025 (VASNPRINTF): Use it.
16026 Suggested by Simon Josefsson.
16028 2007-03-27 Eric Blake <ebb9@byu.net>
16030 Support sub-second birthtime on cygwin.
16031 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
16032 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
16033 (get_stat_birthtime): Also work with st_birthtim.
16035 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
16037 * lib/stat-time.h (USE_BIRTHTIME): Remove.
16038 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
16039 (get_stat_birthtime_ns): Do not try to use "spare" fields.
16040 (get_stat_birthtime_ns): Simplify compile-time tests.
16041 (get_stat_birthtime): Change the API to look like
16042 get_stat_mtime etc., except return a negative tv_nsec on error.
16043 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
16044 Don't check for "spare" fields.
16045 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
16046 or for struct stat.st_birthtime, as these tests aren't used.
16047 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
16049 2007-03-27 Bruno Haible <bruno@clisp.org>
16051 * lib/stat-time.h: Include <sys/stat.h>.
16053 2007-03-27 James Youngman <jay@gnu.org>
16055 * lib/stat-time.h (get_stat_birthtime): New function for
16056 retrieving st_birthtime as provided by UFS2 (hence *BSD).
16057 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
16059 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
16060 * modules/stat-time-test: New file.
16061 * tests/test-stat-time.c: New test, devised by Bruno Haible.
16063 2007-03-26 Bruno Haible <bruno@clisp.org>
16065 Better support of signalling NaNs.
16066 * lib/atanl.c: Include isnanl.h.
16067 (atanl): Perform test for NaN at the beginning of the function and
16068 through a call to isnanl.
16069 * lib/cosl.c: Include isnanl.h.
16070 (cosl): Perform test for NaN at the beginning of the function and
16071 through a call to isnanl.
16072 * lib/ldexpl.c: Include isnanl.h.
16073 (ldexpl): Perform test for NaN through a call to isnanl.
16074 * lib/logl.c: Include isnanl.h.
16075 (logl): Perform test for NaN at the beginning of the function and
16076 through a call to isnanl.
16077 * lib/sinl.c: Include isnanl.h.
16078 (sinl): Perform test for NaN at the beginning of the function and
16079 through a call to isnanl.
16080 * lib/sqrtl.c: Include isnanl.h.
16081 (sqrtl): Perform test for NaN at the beginning of the function and
16082 through a call to isnanl.
16083 * lib/tanl.c: Include isnanl.h.
16084 (tanl): Perform test for NaN at the beginning of the function and
16085 through a call to isnanl.
16086 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
16087 * modules/mathl (Depends-on): Add isnanl.
16089 2007-03-26 Eric Blake <ebb9@byu.net>
16091 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
16092 regression in logic sense of previous patch.
16094 2007-03-26 Bruno Haible <bruno@clisp.org>
16096 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
16097 unportable shell command "if ! ...".
16098 Reported by Ralf Wildenhues.
16100 2007-03-25 Bruno Haible <bruno@clisp.org>
16102 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
16103 <sysexits.h> file, and only add EX_CONFIG.
16104 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
16105 absolute file name and whether it is sufficient. Substitute also
16106 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
16107 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
16108 ABSOLUTE_SYSEXITS_H into sysexits.h.
16110 2007-03-25 Bruno Haible <bruno@clisp.org>
16112 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
16115 2007-03-25 Bruno Haible <bruno@clisp.org>
16117 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
16118 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
16120 2007-03-25 Bruno Haible <bruno@clisp.org>
16122 * lib/vasnprintf.c: Include langinfo.h.
16123 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
16125 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
16126 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
16127 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16128 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16129 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16130 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16131 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16132 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
16133 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16134 Reported by Simon Josefsson.
16136 2007-03-25 Bruno Haible <bruno@clisp.org>
16138 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
16139 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
16140 * modules/vasnprintf (Depends-on): Add stdint.
16142 2007-03-25 Bruno Haible <bruno@clisp.org>
16144 * modules/fpieee: New file.
16145 * m4/fpieee.m4: New file.
16146 * modules/isnan-nolibm (Depends-on): Add fpieee.
16147 * modules/isnanl-nolibm (Depends-on): Add fpieee.
16148 * modules/isnanl (Depends-on): Add fpieee.
16150 2007-03-25 Bruno Haible <bruno@clisp.org>
16152 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
16154 2007-03-25 Bruno Haible <bruno@clisp.org>
16156 Avoid test failures on IRIX 6.5.
16157 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
16159 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
16163 2007-03-25 Bruno Haible <bruno@clisp.org>
16165 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
16166 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
16167 exists but doesn't work.
16168 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
16169 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
16170 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
16171 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
16173 2007-03-25 Bruno Haible <bruno@clisp.org>
16175 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
16176 returns inf. Needed on IRIX 6.5.
16178 2007-03-25 Bruno Haible <bruno@clisp.org>
16180 * tests/test-frexpl.c: Include isnanl-nolibm.h.
16181 (main): Use isnanl instead of x != x idiom.
16182 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
16184 * tests/test-frexp.c: Include isnan.h.
16185 (main): Use isnan instead of x != x idiom.
16186 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
16188 2007-03-25 Bruno Haible <bruno@clisp.org>
16190 * tests/test-frexp.c (NaN): New function/macro.
16191 (main): Use it instead of 0.0 / 0.0.
16192 * tests/test-isnan.c (NaN): New function/macro.
16193 (main): Use it instead of 0.0 / 0.0.
16194 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
16195 (test_function): Use it instead of 0.0 / 0.0.
16196 * tests/test-vasprintf-posix.c (NaN): New function/macro.
16197 (test_function): Use it instead of 0.0 / 0.0.
16198 * tests/test-snprintf-posix.h (NaN): New function/macro.
16199 (test_function): Use it instead of 0.0 / 0.0.
16200 * tests/test-sprintf-posix.h (NaN): New function/macro.
16201 (test_function): Use it instead of 0.0 / 0.0.
16202 * tests/test-fprintf-posix.h (NaN): New function/macro.
16203 (test_function): Use it instead of 0.0 / 0.0.
16204 * tests/test-printf-posix.h (NaN): New function/macro.
16205 (test_function): Use it instead of 0.0 / 0.0.
16207 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
16209 2007-03-25 Bruno Haible <bruno@clisp.org>
16211 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
16213 2007-03-25 Bruno Haible <bruno@clisp.org>
16215 * lib/regexec.c (merge_state_with_log): Make static.
16217 2007-03-25 Bruno Haible <bruno@clisp.org>
16219 * lib/trigl.c (kernel_rem_pio2): Make static.
16221 2007-03-25 Bruno Haible <bruno@clisp.org>
16223 * lib/sincosl.c (sincosl_table): Make static.
16225 2007-03-25 Bruno Haible <bruno@clisp.org>
16227 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
16228 if the compiler does not support C99.
16230 2007-03-25 Bruno Haible <bruno@clisp.org>
16232 * modules/time (Makefile.am): Ensure all rule action lines start with a
16235 2007-03-24 Bruno Haible <bruno@clisp.org>
16237 * modules/tsearch-tests: New file.
16238 * tests/test-tsearch.sh: New file.
16239 * tests/test-tsearch.c: New file, mostly copied from glibc.
16241 * modules/search-tests: New file.
16242 * tests/test-search.c: New file.
16244 * modules/search: New file.
16245 * lib/search_.h: New file, incorporating lib/tsearch.h.
16246 * m4/search_h.m4: New file.
16247 * lib/tsearch.h: Remove file.
16248 * lib/tsearch.c: Include search.h instead of tsearch.h.
16249 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
16251 * modules/tsearch (Files): Remove lib/tsearch.h.
16252 (Depends-on): Add search.
16253 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
16254 (Include): Change tsearch.h into search.h.
16256 2007-03-24 Bruno Haible <bruno@clisp.org>
16258 * modules/fpucw: New file.
16259 * lib/fpucw.h: New file.
16260 * lib/frexp.c: Include fpucw.h.
16261 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
16263 * lib/printf-frexp.c: Include fpucw.h.
16264 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
16266 * lib/vasnprintf.c: Include fpucw.h.
16267 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
16268 'long double' calculations.
16269 * tests/test-frexpl.c: Include fpucw.h.
16270 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
16271 * tests/test-printf-frexpl.c: Include fpucw.h.
16272 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
16273 * modules/frexpl (Depends-on): Add fpucw.
16274 * modules/printf-frexpl (Depends-on): Likewise.
16275 * modules/fprintf-posix (Depends-on): Likewise.
16276 * modules/snprintf-posix (Depends-on): Likewise.
16277 * modules/sprintf-posix (Depends-on): Likewise.
16278 * modules/vasnprintf-posix (Depends-on): Likewise.
16279 * modules/vasprintf-posix (Depends-on): Likewise.
16280 * modules/vfprintf-posix (Depends-on): Likewise.
16281 * modules/vsnprintf-posix (Depends-on): Likewise.
16282 * modules/vsprintf-posix (Depends-on): Likewise.
16283 * modules/frexpl-tests (Depends-on): Likewise.
16284 * modules/printf-frexpl-tests (Depends-on): Likewise.
16286 2007-03-24 Bruno Haible <bruno@clisp.org>
16288 * lib/float+.h: New file.
16289 * lib/isnan.c: Include float+.h.
16291 (FUNC): Compare only SIZE bytes of the value.
16292 * lib/vasnprintf.c: Include float+.h.
16293 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
16294 SIZEOF_LDBL or SIZEOF_DBL bytes.
16295 * modules/isnan-nolibm (Files): Add lib/float+.h.
16296 * modules/isnanl-nolibm (Files): Add lib/float+.h.
16297 * modules/isnanl (Files): Add lib/float+.h.
16298 * modules/vasnprintf (Files): Add lib/float+.h.
16300 2007-03-24 Bruno Haible <bruno@clisp.org>
16302 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
16303 include isnanl-nolibm.h.
16305 2007-03-24 Bruno Haible <bruno@clisp.org>
16307 * tests/test-read-file.c (main): Don't produce spurious output for
16308 expected situations. Make the test fail if it encountered unexpected
16311 2007-03-24 Bruno Haible <bruno@clisp.org>
16313 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
16314 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
16316 2007-03-24 Bruno Haible <bruno@clisp.org>
16318 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
16320 2007-03-24 Bruno Haible <bruno@clisp.org>
16322 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
16323 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
16325 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
16326 * modules/utf8-ucs4: Turn into a symbolic link to module
16329 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
16331 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
16332 unistr/u8-mbtouc-unsafe.
16334 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
16335 * modules/utf16-ucs4: Turn into a symbolic link to module
16338 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
16340 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
16341 unistr/u16-mbtouc-unsafe.
16343 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
16344 * modules/ucs4-utf8: Turn into a symbolic link to module
16347 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
16348 * modules/ucs4-utf16: Turn into a symbolic link to module
16351 2007-03-24 Bruno Haible <bruno@clisp.org>
16353 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
16354 Enable the function only if HAVE_INLINE.
16355 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
16356 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
16357 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
16358 Enable the function only if HAVE_INLINE.
16359 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
16360 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
16361 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
16362 Enable the function only if HAVE_INLINE.
16363 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
16364 Enable the function only if HAVE_INLINE.
16365 * modules/utf8-ucs4: Update.
16366 * modules/utf8-ucs4-unsafe: Update.
16367 * modules/utf16-ucs4: Update.
16368 * modules/utf16-ucs4-unsafe: Update.
16369 * modules/ucs4-utf8: Update.
16370 * modules/ucs4-utf16: Update.
16372 2007-03-24 Bruno Haible <bruno@clisp.org>
16374 * lib/utf8-ucs4.h: Remove file.
16375 * lib/utf8-ucs4-unsafe.h: Remove file.
16376 * lib/utf16-ucs4.h: Remove file.
16377 * lib/utf16-ucs4-unsafe.h: Remove file.
16378 * lib/ucs4-utf8.h: Remove file.
16379 * lib/ucs4-utf16.h: Remove file.
16380 * lib/unistr.h: Include their previous contents.
16381 * m4/utf-ucs4.m4: Remove file.
16382 * m4/ucs4-utf.m4: Remove file.
16383 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
16384 (Depends-on): Add unistr/base.
16385 (configure.ac): Remove gl_UTF_UCS4.
16386 (Makefile.am): Update.
16387 (Include): Change to unistr.h.
16388 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
16389 (Depends-on): Add unistr/base.
16390 (configure.ac): Remove gl_UTF_UCS4.
16391 (Makefile.am): Update.
16392 (Include): Change to unistr.h.
16393 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
16394 (Depends-on): Add unistr/base.
16395 (configure.ac): Remove gl_UTF_UCS4.
16396 (Makefile.am): Update.
16397 (Include): Change to unistr.h.
16398 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
16399 (Depends-on): Add unistr/base.
16400 (configure.ac): Remove gl_UTF_UCS4.
16401 (Makefile.am): Update.
16402 (Include): Change to unistr.h.
16403 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
16404 (Depends-on): Add unistr/base.
16405 (configure.ac): Remove gl_UCS4_UTF.
16406 (Makefile.am): Update.
16407 (Include): Change to unistr.h.
16408 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
16409 (Depends-on): Add unistr/base.
16410 (configure.ac): Remove gl_UCS4_UTF.
16411 (Makefile.am): Update.
16412 (Include): Change to unistr.h.
16413 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
16414 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
16415 utf8-ucs4-unsafe.h.
16416 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
16417 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
16418 utf16-ucs4-unsafe.h.
16419 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
16420 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
16421 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
16422 * lib/unistr/u8-strchr.c: Likewise.
16423 * lib/unistr/u8-strrchr.c: Likewise.
16424 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
16425 * lib/unistr/u16-strchr.c: Likewise.
16426 * lib/unistr/u16-strrchr.c: Likewise.
16427 * lib/striconveh.c: Update.
16428 * lib/linebreak.c: Update.
16430 2007-03-24 Bruno Haible <bruno@clisp.org>
16432 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
16433 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
16435 2007-03-22 Bruno Haible <bruno@clisp.org>
16437 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
16439 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
16441 * MODULES.html.sh (File system functions): New module write-any-file.
16442 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
16443 * m4/write-any-file.m4: New files.
16445 2007-03-23 Eric Blake <ebb9@byu.net>
16447 * gnulib-tool: Rearrange space-tab sequences, since some editors
16450 2007-03-23 Eric Blake <ebb9@byu.net>
16452 * lib/version-etc.c (version_etc_va): Update license wording to
16453 be more concise. Recommended by Richard Stallman.
16455 2007-03-22 Bruno Haible <bruno@clisp.org>
16457 * lib/poll.c (MSG_PEEK): New fallback definition.
16459 2007-03-22 Bruno Haible <bruno@clisp.org>
16461 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
16462 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
16464 Fixes a compilation error on BeOS.
16466 2007-03-22 Bruno Haible <bruno@clisp.org>
16468 * modules/frexpl-tests: New file.
16469 * tests/test-frexpl.c: New file.
16471 * modules/frexpl: New file.
16472 * m4/frexpl.m4: New file.
16473 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
16474 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
16475 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
16476 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
16477 (Depends-on): Add frexpl. Remove isnanl-nolibm.
16478 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
16480 2007-03-22 Bruno Haible <bruno@clisp.org>
16482 * lib/frexpl.c: Share code with lib/frexp.c.
16483 * modules/mathl (Files): Add lib/frexp.c.
16484 (Depends-on): Add isnanl-nolibm.
16486 2007-03-22 Bruno Haible <bruno@clisp.org>
16488 * modules/printf-frexp (Files): Add m4/frexp.m4.
16489 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
16490 only if the found frexp function actually works.
16492 2007-03-22 Bruno Haible <bruno@clisp.org>
16494 * lib/frexp.c: Remove older implementation that uses divisions.
16496 2007-03-21 Bruno Haible <bruno@clisp.org>
16498 * modules/frexp-tests: New file.
16499 * tests/test-frexp.c: New file.
16501 * modules/frexp: New file.
16502 * lib/frexp.c: New file.
16503 * m4/frexp.m4: New file.
16504 * lib/math_.h (frexp): New declaration.
16505 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
16507 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
16509 2007-03-21 Bruno Haible <bruno@clisp.org>
16511 * modules/isnanl-tests: New file.
16512 * tests/test-isnanl.c: New file.
16514 * modules/isnanl: New file.
16515 * lib/isnanl.h: New file.
16516 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
16517 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
16518 gl_FUNC_ISNANL_WORKS.
16519 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
16522 2007-03-21 Bruno Haible <bruno@clisp.org>
16524 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
16527 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
16528 * lib/vasnprintf.c: Update.
16529 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
16530 tests/test-isnanl.h, remove tests/test-isnanl.c.
16531 (Makefile.am): Update.
16532 * tests/test-isnanl-nolibm.c: New file.
16533 * tests/test-isnanl.h: New file.
16534 * tests/test-isnanl.c: Remove file.
16536 2007-03-21 Jim Meyering <jim@meyering.net>
16538 When trying to open ".", treat ESTALE like EACCES.
16539 * lib/savewd.c (savewd_save): Resort to forking not just upon
16540 failure with EACCES, but also when errno is ESTALE.
16542 2007-03-20 Bruno Haible <bruno@clisp.org>
16544 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
16545 Needed on AIX 5.1. Reported by Matthew Woehlke.
16547 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
16549 Suggestions by Bruno Haible:
16550 * lib/acl-internal.h: Include "gettext.h" rather than rolling
16552 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
16553 * modules/acl (Depends-on): Add gettext.
16555 2007-03-19 Bruno Haible <bruno@clisp.org>
16557 * modules/iconvme: Remove file.
16558 * lib/iconvme.h: Remove file.
16559 * lib/iconvme.c: Remove file.
16560 * m4/iconvme.m4: Remove file.
16562 2007-03-19 Bruno Haible <bruno@clisp.org>
16564 * doc/relocatable-maint.texi: Break long shell script line.
16565 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
16567 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
16569 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
16570 handle file_has_acl.
16571 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
16572 * lib/acl.c: Move header inclusions and related macro defns into
16573 lib/acl-internal.h.
16574 (S_ISLNK): Remove defn, since that's now done for us.
16575 (file_has_acl): Move to lib/file-has-acl.c.
16576 Call acl_trivial if available. This is the crucial part of the fix.
16577 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
16578 shared within the library. Rewrite a bit, partly to make it compatible
16579 with the GNU coding style.
16580 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
16581 Remove unnecessary double-quotes.
16582 Don't test for acl_to_text; the build will catch that.
16583 Replace acl_entries if it doesn't exist and it is needed.
16584 Check for -lsec and acl_trivial (as used on Solaris 10).
16585 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
16586 lib/file-has-acl.c.
16587 (Depends-on): Add sys_stat, for S_ISLNK.
16589 2007-03-19 Ben Pfaff <blp@gnu.org>
16591 * doc/gnulib.texi: Fix typos.
16592 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
16594 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
16596 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
16597 If size is zero here, buf must be zero.
16599 2007-03-19 Simon Josefsson <simon@josefsson.org>
16601 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
16604 2007-03-18 Bruno Haible <bruno@clisp.org>
16606 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
16607 Suggested by Eric Blake.
16609 2007-03-18 Ben Pfaff <blp@gnu.org>
16611 * doc/relocatable.texi: Recommend using as prefix a directory
16612 that does not exist and will never be created. Based on
16613 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
16616 2007-03-17 Bruno Haible <bruno@clisp.org>
16618 * lib/fchownat.c: Include lchown.h.
16620 2007-03-17 Bruno Haible <bruno@clisp.org>
16622 Fix endless loop when the given allocated size was > INT_MAX.
16623 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
16624 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
16625 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
16626 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
16627 * lib/sprintf.c (sprintf): Likewise.
16629 2007-03-17 Bruno Haible <bruno@clisp.org>
16631 * tests/test-argp-2.sh (func_compare): Output a context diff.
16633 2007-03-17 Bruno Haible <bruno@clisp.org>
16635 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
16636 locale's decimal-point character.
16638 2007-03-17 Bruno Haible <bruno@clisp.org>
16640 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
16641 before comparing it. Needed because on some platforms (e.g. x86) a
16642 'long double' occupies less bytes than sizeof (long double).
16644 2007-03-17 Bruno Haible <bruno@clisp.org>
16646 * tests/test-crc.c (main): Make printf statements 64-bit clean.
16647 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
16648 * tests/test-getaddrinfo.c (simple): Likewise.
16649 * tests/test-read-file.c (main): Likewise.
16651 2007-03-17 Bruno Haible <bruno@clisp.org>
16653 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
16655 2007-03-17 Bruno Haible <bruno@clisp.org>
16657 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
16660 2007-03-17 Bruno Haible <bruno@clisp.org>
16662 * tests/test-c-strcasecmp.c: Include c-strcase.h.
16663 * tests/test-c-strncasecmp.c: Likewise.
16665 2007-03-17 Bruno Haible <bruno@clisp.org>
16667 * modules/stdlib (Depends-on): Add unistd.
16668 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
16669 Needed for MacOS X 10.3.
16671 2007-03-17 Bruno Haible <bruno@clisp.org>
16673 * lib/unistr/u-strdup.h: Include <stdlib.h>.
16675 2007-03-17 Bruno Haible <bruno@clisp.org>
16677 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
16679 2007-03-17 Bruno Haible <bruno@clisp.org>
16681 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
16682 to reflect files copied from gnulib (with or without modifications).
16683 Suggested by Jim Meyering.
16685 2007-03-17 Eric Blake <ebb9@byu.net>
16687 * NEWS: Document stdlib change from 2007-02-18.
16689 2007-03-17 Jim Meyering <jim@meyering.net>
16691 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
16692 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
16693 someone uses a name containing shell meta-characters.
16694 Reported by Alfred M. Szmidt.
16696 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
16698 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
16700 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
16701 and copy gettext configuration files only if configure.ac contains
16702 a use of AM_GNU_GETTEXT_VERSION.
16704 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
16706 * build-aux/bootstrap (gnulib_name): New variable.
16707 (gnulib_tool_options): Use it.
16709 2007-03-13 Simon Josefsson <simon@josefsson.org>
16711 * tests/test-des.c: Use new namespace.
16713 2007-03-15 Bruno Haible <bruno@clisp.org>
16715 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
16716 Reported by James Youngman <jay@gnu.org>.
16718 2007-03-15 Bruno Haible <bruno@clisp.org>
16720 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
16721 declared prototype. Needed with cc on OSF/1 5.1.
16723 2007-03-15 Bruno Haible <bruno@clisp.org>
16725 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
16726 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
16727 (struct gl_list_implementation): Add dispose_fn argument to the
16728 'create_empty', 'create' methods.
16729 (struct gl_list_impl_base): Add field 'dispose_fn'.
16730 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
16732 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
16733 dispose_fn argument.
16734 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
16735 dispose_fn on the dropped values.
16736 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
16737 dispose_fn argument.
16738 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
16740 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
16741 (gl_tree_remove_node): Call dispose_fn on the dropped value.
16742 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
16743 (gl_tree_remove_node): Call dispose_fn on the dropped value.
16744 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
16746 (gl_tree_list_free): Call dispose_fn on the dropped values.
16747 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
16748 the dropped values.
16749 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
16750 Add dispose_fn argument.
16751 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
16752 Call dispose_fn on the dropped values.
16753 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
16754 Add dispose_fn argument.
16755 (gl_sublist_create): Initialize the 'dispose_fn' field.
16756 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
16757 * tests/test-array_list.c (main): Update.
16758 * tests/test-carray_list.c (main): Update.
16759 * tests/test-avltree_list.c (main): Update.
16760 * tests/test-rbtree_list.c (main): Update.
16761 * tests/test-avltreehash_list.c (main): Update.
16762 * tests/test-rbtreehash_list.c (main): Update.
16763 * tests/test-linked_list.c (main): Update.
16764 * tests/test-linkedhash_list.c (main): Update.
16765 * tests/test-array_oset.c (main): Update.
16767 2007-03-15 Bruno Haible <bruno@clisp.org>
16769 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
16770 (gl_oset_create_empty): Add dispose_fn argument.
16771 (struct gl_oset_implementation): Add dispose_fn argument to
16772 'create_empty' method.
16773 (struct gl_oset_impl_base): Add dispose_fn field.
16774 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
16775 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
16776 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
16778 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
16779 (gl_tree_oset_free): Call dispose_fn on the dropped values.
16780 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
16782 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
16784 * tests/test-array_oset.c (main): Update.
16785 * tests/test-avltree_oset.c (main): Update.
16786 * tests/test-rbtree_oset.c (main): Update.
16787 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
16789 2007-03-13 Bruno Haible <bruno@clisp.org>
16791 * tests/test-stdbool.c (i): Update after last patch.
16793 2007-03-12 Bruno Haible <bruno@clisp.org>
16795 * lib/quotearg.c: Include <wctype.h> early, before the definition of
16796 the iswprint macro. Needed on Solaris 2.5.1.
16798 2007-03-12 Bruno Haible <bruno@clisp.org>
16800 * tests/test-printf-frexp.c (main): Declare x as volatile.
16802 2007-03-12 Simon Josefsson <simon@josefsson.org>
16804 * doc/gnulib.texi (Build robot for gnulib): New section.
16806 2007-03-12 Jim Meyering <jim@meyering.net>
16808 * build-aux/bootstrap: New file.
16809 * build-aux/bootstrap.conf: New file, from coreutils.
16811 2007-03-11 Bruno Haible <bruno@clisp.org>
16813 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
16815 2007-03-12 Simon Josefsson <simon@josefsson.org>
16817 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
16818 avoid collisions with 'des_setkey'. Reported by Bruno Haible
16819 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
16821 2007-03-11 Bruno Haible <bruno@clisp.org>
16823 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
16824 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
16826 2007-03-11 Bruno Haible <bruno@clisp.org>
16828 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
16829 formula. Needed for SunPRO C 5.0.
16831 2007-03-11 Bruno Haible <bruno@clisp.org>
16833 * modules/long-options (Depends-on): Add getopt.
16835 2007-03-11 Bruno Haible <bruno@clisp.org>
16837 * modules/modechange (Depends-on): Add stdbool.
16839 2007-03-11 Bruno Haible <bruno@clisp.org>
16841 * modules/i-ring (Depends-on): Add stdbool.
16843 2007-03-11 Bruno Haible <bruno@clisp.org>
16845 * modules/gc-des (Depends-on): Add stdbool.
16847 2007-03-11 Bruno Haible <bruno@clisp.org>
16849 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
16851 2007-03-11 Bruno Haible <bruno@clisp.org>
16853 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
16855 2007-03-11 Bruno Haible <bruno@clisp.org>
16857 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
16859 2007-03-11 Bruno Haible <bruno@clisp.org>
16861 * lib/vasnprintf.c (sprintf): Undefine.
16863 2007-03-11 Bruno Haible <bruno@clisp.org>
16865 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
16866 initializers in SunPRO C and Compaq C compilers.
16868 2007-03-11 Bruno Haible <bruno@clisp.org>
16870 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
16871 decrementing code ANSI C compliant.
16873 2007-03-11 Bruno Haible <bruno@clisp.org>
16875 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
16876 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
16878 2007-03-11 Bruno Haible <bruno@clisp.org>
16880 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
16881 <stdbool.h> substitute doesn't pass.
16883 2007-03-11 Bruno Haible <bruno@clisp.org>
16885 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
16887 2007-03-11 Bruno Haible <bruno@clisp.org>
16889 * gnulib-tool (func_create_megatestdir): Create also an autobuild
16890 script, for submission to autobuild.josefsson.org.
16892 2007-03-10 Bruno Haible <bruno@clisp.org>
16894 * modules/canonicalize-lgpl-tests: New file.
16895 * tests/test-canonicalize-lgpl.sh: New file.
16896 * tests/test-canonicalize-lgpl.c: New file.
16898 * modules/c-strcase-tests: New file.
16899 * tests/test-c-strcase.sh: New file.
16900 * tests/test-c-strcasecmp.c: New file.
16901 * tests/test-c-strncasecmp.c: New file.
16903 * modules/atexit-tests: New file.
16904 * tests/test-atexit.sh: New file.
16905 * tests/test-atexit.c: New file.
16907 2007-03-10 Bruno Haible <bruno@clisp.org>
16909 * tests/test-binary-io.sh: Use temporary filenames that are not so
16910 likely to clash with those of other tests (in a parallel make).
16911 * tests/test-binary-io.c: Likewise.
16913 2007-03-10 Bruno Haible <bruno@clisp.org>
16915 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
16916 fallback; use #error instead.
16917 Suggested by Simon Josefsson.
16919 2007-03-10 Bruno Haible <bruno@clisp.org>
16921 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
16922 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
16923 first and the last.
16925 2007-03-10 Bruno Haible <bruno@clisp.org>
16927 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
16929 2007-03-10 Bruno Haible <bruno@clisp.org>
16931 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
16933 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
16934 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
16935 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
16937 2007-03-10 Bruno Haible <bruno@clisp.org>
16939 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
16941 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
16944 2007-03-09 Eric Blake <ebb9@byu.net>
16945 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
16947 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
16948 types are not being provided by gnulib.
16949 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
16950 types are supported.
16952 2007-03-10 Bruno Haible <bruno@clisp.org>
16954 * lib/stdio_.h (__attribute__): New macro.
16955 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
16956 vsprintf): Specify __attribute__ __format__ for GCC.
16957 Suggested by Eric Blake.
16959 2007-03-09 Bruno Haible <bruno@clisp.org>
16961 * modules/printf-posix-tests: New file.
16962 * tests/test-printf-posix.sh: New file.
16963 * tests/test-printf-posix.c: New file.
16965 * modules/printf-posix: New file.
16966 * lib/printf.c: New file.
16967 * m4/printf-posix-rpl.m4: New file.
16968 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
16970 * lib/stdio_.h (printf): New declaration.
16971 (format, __format__, ____printf____, ____scanf____, ____strftime____,
16972 ____strfmon____): New macros.
16973 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
16976 2007-03-09 Bruno Haible <bruno@clisp.org>
16978 * tests/test-vasnprintf-posix2.sh: New file.
16979 * tests/test-vasnprintf-posix2.c: New file.
16980 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
16981 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16982 (Makefile.am): Activate test-vasnprintf-posix2.sh.
16984 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
16985 a locale dependent decimal point, rather than always '.'.
16987 2007-03-09 Eric Blake <ebb9@byu.net>
16989 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
16990 spite of platforms like Tandem/NSK that define it to -1.
16992 2007-03-08 Bruno Haible <bruno@clisp.org>
16994 * modules/vprintf-posix-tests: New file.
16995 * tests/test-vprintf-posix.sh: New file.
16996 * tests/test-vprintf-posix.c: New file.
16997 * tests/test-printf-posix.h: New file.
16999 * modules/vprintf-posix: New file.
17000 * lib/vprintf.c: New file.
17001 * m4/vprintf-posix.m4: New file.
17002 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
17004 * lib/stdio_.h (vprintf): New declaration.
17005 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
17008 2007-03-08 Bruno Haible <bruno@clisp.org>
17010 * modules/fprintf-posix-tests: New file.
17011 * tests/test-fprintf-posix.sh: New file.
17012 * tests/test-fprintf-posix.c: New file.
17014 * modules/fprintf-posix: New file.
17015 * lib/fprintf.c: New file.
17016 * m4/fprintf-posix.m4: New file.
17017 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
17019 * lib/stdio_.h (fprintf): New declaration.
17020 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
17023 2007-03-08 Bruno Haible <bruno@clisp.org>
17025 * modules/vfprintf-posix-tests: New file.
17026 * tests/test-vfprintf-posix.sh: New file.
17027 * tests/test-vfprintf-posix.c: New file.
17028 * tests/test-fprintf-posix.h: New file.
17029 * tests/test-fprintf-posix.out: New file.
17031 * modules/vfprintf-posix: New file.
17032 * lib/vfprintf.c: New file.
17033 * m4/vfprintf-posix.m4: New file.
17034 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
17036 * lib/stdio_.h (vfprintf): New declaration.
17037 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
17040 2007-03-08 Bruno Haible <bruno@clisp.org>
17042 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
17044 2007-03-08 Bruno Haible <bruno@clisp.org>
17046 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
17047 instead of 'expr' invocations.
17048 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17049 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17050 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17051 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17052 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17053 Suggested by Paul Eggert.
17055 2007-03-08 Bruno Haible <bruno@clisp.org>
17057 * modules/fseterr-tests: New file.
17058 * tests/test-fseterr.c: New file.
17060 * modules/fseterr: New file.
17061 * lib/fseterr.h: New file.
17062 * lib/fseterr.c: New file.
17064 2007-03-08 Bruno Haible <bruno@clisp.org>
17066 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
17067 * lib/getopt_.h: Likewise.
17068 * lib/mbswidth.h: Likewise.
17069 * lib/setenv.h: Likewise.
17070 * lib/vasnprintf.h: Likewise.
17071 * lib/vasprintf.h: Likewise.
17072 * lib/verror.h: Likewise.
17073 * lib/xsetenv.h: Likewise.
17074 * lib/xvasprintf.h: Likewise.
17076 2007-03-08 Jim Meyering <jim@meyering.net>
17078 * users.txt: Add parted.
17080 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
17082 2007-03-07 Bruno Haible <bruno@clisp.org>
17084 * m4/printf.m4: Make the shell script snippets copy&pastable.
17086 2007-03-02 Bruno Haible <bruno@clisp.org>
17088 * lib/netinet_in_.h: New file.
17089 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
17090 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
17091 * modules/netinet_in (Files): Add lib/netinet_in_.h.
17092 (Depends-on): Add absolute-header.
17093 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
17096 2007-03-03 Bruno Haible <bruno@clisp.org>
17098 * lib/sys_select_.h: New file.
17099 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
17100 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
17101 * modules/sys_select (Files): Add lib/sys_select_.h.
17102 (Depends-on): Add absolute-header.
17103 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
17106 2007-03-02 Bruno Haible <bruno@clisp.org>
17108 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
17109 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
17111 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
17112 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
17113 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
17114 * modules/sys_socket (Depends-on): Add absolute-header.
17115 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
17116 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
17117 (Include): Remove requirement of inclusion of <sys/types.h>.
17119 2007-03-02 Bruno Haible <bruno@clisp.org>
17121 * lib/byteswap_.h (bswap_32): Fix formula.
17123 2007-03-06 Bruno Haible <bruno@clisp.org>
17125 * modules/sprintf-posix-tests: New file.
17126 * tests/test-sprintf-posix.c: New file.
17128 * modules/sprintf-posix: New file.
17129 * lib/sprintf.c: New file.
17130 * m4/sprintf-posix.m4: New file.
17131 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
17133 * lib/stdio_.h (sprintf): New declaration.
17134 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
17137 2007-03-06 Bruno Haible <bruno@clisp.org>
17139 * modules/vsprintf-posix-tests: New file.
17140 * tests/test-vsprintf-posix.c: New file.
17141 * tests/test-sprintf-posix.h: New file.
17143 * modules/vsprintf-posix: New file.
17144 * lib/vsprintf.c: New file.
17145 * m4/vsprintf-posix.m4: New file.
17146 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
17148 * lib/stdio_.h (vsprintf): New declaration.
17149 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
17152 2007-03-06 Bruno Haible <bruno@clisp.org>
17154 * modules/vsnprintf (Depend-on): Remove minmax.
17156 2007-03-06 Bruno Haible <bruno@clisp.org>
17158 * modules/snprintf-posix-tests: New file.
17159 * tests/test-snprintf-posix.c: New file.
17161 * modules/snprintf-posix: New file.
17162 * m4/snprintf-posix.m4: New file.
17163 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
17165 (gl_FUNC_SNPRINTF): Invoke it.
17166 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
17167 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
17169 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
17171 2007-03-06 Bruno Haible <bruno@clisp.org>
17173 * modules/vsnprintf-posix-tests: New file.
17174 * tests/test-vsnprintf-posix.c: New file.
17175 * tests/test-snprintf-posix.h: New file.
17177 * modules/vsnprintf-posix: New file.
17178 * m4/vsnprintf-posix.m4: New file.
17179 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
17181 (gl_FUNC_VSNPRINTF): Invoke it.
17182 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
17183 * lib/stdio_.h (vsnprintf): Define as a replacement if
17184 REPLACE_VSNPRINTF is set.
17185 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
17187 2007-03-06 Bruno Haible <bruno@clisp.org>
17189 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
17190 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
17192 2007-03-06 Bruno Haible <bruno@clisp.org>
17194 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
17195 (asinl): Declare also if HAVE_DECL_ASINL is set.
17196 (atanl): Declare also if HAVE_DECL_ATANL is set.
17197 (ceill): Declare also if HAVE_DECL_CEILL is set.
17198 (cosl): Declare also if HAVE_DECL_COSL is set.
17199 (expl): Declare also if HAVE_DECL_EXPL is set.
17200 (floorl): Declare also if HAVE_DECL_FLOORL is set.
17201 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
17202 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
17203 (logl): Declare also if HAVE_DECL_LOGL is set.
17204 (sinl): Declare also if HAVE_DECL_SINL is set.
17205 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
17206 (tanl): Declare also if HAVE_DECL_TANL is set.
17207 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
17208 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
17209 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
17210 declaration of frexpl, ldexpl.
17211 * modules/printf-frexpl (Depends-on): Add math.
17212 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
17214 2007-03-05 Bruno Haible <bruno@clisp.org>
17216 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
17217 frexpl and ldexpl are declared.
17218 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
17220 2007-03-05 Bruno Haible <bruno@clisp.org>
17222 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
17223 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
17225 2007-03-05 Bruno Haible <bruno@clisp.org>
17227 * lib/stdio_.h: Include <stddef.h>.
17229 2007-03-05 Bruno Haible <bruno@clisp.org>
17231 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
17233 2007-03-05 Bruno Haible <bruno@clisp.org>
17235 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
17236 NetBSD 4, from Ralf Wildenhues.
17238 2007-03-04 Bruno Haible <bruno@clisp.org>
17240 * lib/vasprintf.h: Update #if logic for the case when the functions
17241 exist but are overridden.
17243 2007-03-04 Bruno Haible <bruno@clisp.org>
17245 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
17246 implementations: glibc-2.4 and MacOS X 10.3.
17247 * tests/test-vasnprintf-posix.c (test_function): Test also the case
17248 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
17249 * tests/test-vasprintf-posix.c (test_function): Likewise.
17251 2007-03-04 Bruno Haible <bruno@clisp.org>
17253 * modules/vasprintf-posix-tests: New file.
17254 * tests/test-vasprintf-posix.c: New file.
17256 * modules/vasprintf-posix: New file.
17257 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
17259 * m4/vasprintf-posix.m4: New file.
17260 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
17262 (gl_FUNC_VASPRINTF): Invoke it.
17263 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
17265 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
17267 2007-03-04 Bruno Haible <bruno@clisp.org>
17269 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
17270 REPLACE_GETTIMEOFDAY.
17271 * modules/sys_time (Makefile.am): Likewise.
17272 * m4/sys_time_h.m4: Likewise.
17273 * m4/gettimeofday.m4: Likewise.
17275 2007-03-04 Bruno Haible <bruno@clisp.org>
17277 * modules/vasnprintf-posix-tests: New file.
17278 * tests/test-vasnprintf-posix.c: New file.
17280 * modules/vasnprintf-posix: New file.
17281 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
17283 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
17284 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
17285 REPLACE_VASNPRINTF is defined.
17286 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
17287 gl_FUNC_VASNPRINTF.
17288 (gl_FUNC_VASNPRINTF): Invoke it.
17289 * m4/vasnprintf-posix.m4: New file.
17290 * m4/printf.m4: New file.
17292 2007-03-04 Bruno Haible <bruno@clisp.org>
17294 Compile progreloc.c only if --enable-relocatable is specified.
17295 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
17296 if --enable-relocatable was specified.
17297 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
17300 2007-03-04 Jim Meyering <jim@meyering.net>
17302 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
17303 Use it consistently, rather than enumerating errno constants.
17305 2007-03-04 Bruno Haible <bruno@clisp.org>
17307 * modules/xvasprintf-tests: New file.
17308 * tests/test-xvasprintf.c: New file.
17310 * modules/vasprintf-tests: New file.
17311 * tests/test-vasprintf.c: New file.
17313 * modules/vasnprintf-tests: New file.
17314 * tests/test-vasnprintf.c: New file.
17316 * modules/vsnprintf-tests: New file.
17317 * tests/test-vsnprintf.c: New file.
17319 * modules/snprintf-tests: New file.
17320 * tests/test-snprintf.c: New file.
17322 2007-03-04 Bruno Haible <bruno@clisp.org>
17324 Compile relocatable.c only if --enable-relocatable is specified.
17325 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
17326 gl_RELOCATABLE_LIBRARY.
17327 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
17328 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
17329 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
17330 gl_RELOCATABLE_LIBRARY.
17331 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
17332 (Makefile.am): Remove lib_SOURCES.
17333 * modules/relocatable-lib-lgpl (configure.ac): Invoke
17334 gl_RELOCATABLE_LIBRARY.
17335 (Makefile.am): Remove lib_SOURCES.
17336 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
17338 * modules/relocatable-prog-wrapper (configure.ac): Invoke
17339 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
17341 2007-03-04 Bruno Haible <bruno@clisp.org>
17343 * modules/argmatch-tests: New file.
17344 * tests/test-argmatch.c: New file.
17346 * tests/test-allocsa.c (main): Halve the number of loop runs.
17348 * modules/alloca-opt-tests: New file.
17349 * tests/test-alloca-opt.c: New file.
17351 2007-03-04 Jim Meyering <jim@meyering.net>
17353 Work around difference between Linux ACLs and Solaris 10 ZFS.
17354 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
17357 2007-03-03 Bruno Haible <bruno@clisp.org>
17359 * modules/relocatable-prog (Depends-on): Add back progreloc's
17360 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
17362 2007-03-03 Bruno Haible <bruno@clisp.org>
17364 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
17365 * modules/relocatable-lib: New file.
17367 2007-03-03 Bruno Haible <bruno@clisp.org>
17369 * modules/relocatable-prog: Renamed from modules/relocatable.
17370 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
17372 2007-03-03 Bruno Haible <bruno@clisp.org>
17374 * modules/relocatable-script (Files): Add doc/relocatable.texi,
17375 m4/relocatable-lib.m4.
17376 (Depends-on): Remove 'relocatable'.
17377 (configure.ac): Add gl_RELOCATABLE_NOP.
17379 2007-03-03 Bruno Haible <bruno@clisp.org>
17381 * modules/relocatable-prog-wrapper: New file.
17382 * modules/relocatable (Depends-on): Add it. Remove all other
17383 dependencies except progname.
17384 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
17386 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
17387 (gl_FUNC_STRERROR): Nop.
17388 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
17390 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
17391 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
17393 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
17394 (gl_FUNC_READLINK): Update.
17396 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
17398 2007-03-03 Bruno Haible <bruno@clisp.org>
17400 * lib/xreadlink.c: Include <unistd.h> unconditionally.
17401 * modules/xreadlink (Depends-on): Add unistd.
17402 * modules/xreadlink-with-size (Depends-on): Likewise.
17404 2007-03-03 Bruno Haible <bruno@clisp.org>
17406 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
17407 extracted from gt_FUNC_SETENV.
17408 (gt_FUNC_SETENV): Remove macro.
17409 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
17410 remove gt_FUNC_SETENV.
17412 2007-03-03 Bruno Haible <bruno@clisp.org>
17414 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
17415 ENABLE_RELOCATABLE here.
17416 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
17418 2007-03-03 Bruno Haible <bruno@clisp.org>
17420 * modules/rbtreehash-list-tests (Depends-on): Add progname.
17421 * tests/test-rbtreehash_list.c: Include progname.h.
17422 (main): Call set_program_name.
17424 * modules/rbtree-oset-tests (Depends-on): Add progname.
17425 * tests/test-rbtree_oset.c: Include progname.h.
17426 (main): Call set_program_name.
17428 * modules/rbtree-list-tests (Depends-on): Add progname.
17429 * tests/test-rbtree_list.c: Include progname.h.
17430 (main): Call set_program_name.
17432 * modules/linked-list-tests (Depends-on): Add progname.
17433 * tests/test-linked_list.c: Include progname.h.
17434 (main): Call set_program_name.
17436 2007-03-03 Bruno Haible <bruno@clisp.org>
17438 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
17439 All uses of __restrict changed to _Restrict_.
17440 * lib/glob_.h (__restrict): Remove macro.
17442 2007-03-02 Bruno Haible <bruno@clisp.org>
17444 * modules/gettext (configure.ac): Require gettext infrastructure
17445 from version 0.16.1.
17447 2007-03-02 Bruno Haible <bruno@clisp.org>
17449 * modules/linkedhash-list-tests (Depends-on): Add progname.
17450 * tests/test-linkedhash_list.c: Include progname.h.
17451 (main): Call set_program_name.
17453 * modules/carray-list-tests (Depends-on): Add progname.
17454 * tests/test-carray_list.c: Include progname.h.
17455 (main): Call set_program_name.
17457 * modules/avltreehash-list-tests (Depends-on): Add progname.
17458 * tests/test-avltreehash_list.c: Include progname.h.
17459 (main): Call set_program_name.
17461 * modules/avltree-oset-tests (Depends-on): Add progname.
17462 * tests/test-avltree_oset.c: Include progname.h.
17463 (main): Call set_program_name.
17465 * modules/avltree-list-tests (Depends-on): Add progname.
17466 * tests/test-avltree_list.c: Include progname.h.
17467 (main): Call set_program_name.
17469 * modules/array-oset-tests (Depends-on): Add progname.
17470 * tests/test-array_oset.c: Include progname.h.
17471 (main): Call set_program_name.
17473 * modules/array-list-tests (Depends-on): Add progname.
17474 * tests/test-array_list.c: Include progname.h.
17475 (main): Call set_program_name.
17477 * modules/argp-tests (Depends-on): Add progname.
17478 * tests/test-argp.c: Include argp.h first. Include progname.h.
17479 (main): Call set_program_name.
17481 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
17483 * doc/gnulib-tool.texi (Initial import): Reword description of
17484 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
17485 limited effect even if defined after the first system include.
17487 2007-03-01 Bruno Haible <bruno@clisp.org>
17489 * build-aux/config.libpath: Update to libtool-1.5.22.
17490 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17492 2007-03-01 Bruno Haible <bruno@clisp.org>
17494 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
17496 Reported by Ralf Wildenhues.
17498 2007-03-01 Bruno Haible <bruno@clisp.org>
17500 * build-aux/install-reloc: Remove object files left over by some
17502 Reported by Ralf Wildenhues.
17504 2007-03-01 Bruno Haible <bruno@clisp.org>
17506 * build-aux/install-reloc: Break long lines.
17508 2007-03-01 Bruno Haible <bruno@clisp.org>
17510 * doc/relocatable.texi: Document that it may not work on OpenBSD.
17511 Reported by Ralf Wildenhues.
17513 2007-03-01 Bruno Haible <bruno@clisp.org>
17515 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
17516 include ordering constraints.
17518 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
17520 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
17521 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
17522 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
17523 as another example.
17524 * lib/time_.h: Fix misspelling.
17525 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
17526 Require gl_HEADER_TIME_H_DEFAULTS.
17527 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
17528 * m4/time_r.m4 (gl_TIME_R): Likewise.
17529 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
17531 2007-03-01 Bruno Haible <bruno@clisp.org>
17533 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
17534 * m4/utimens.m4 (gl_UTIMENS): Likewise.
17536 2007-03-01 Jim Meyering <jim@meyering.net>
17538 * modules/xreadlink (Maintainer): Add my name.
17539 * modules/xreadlink-with-size (Depends-on): Alphabetize.
17541 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
17542 Bruno Haible <bruno@clisp.org>
17544 * build-aux/install-reloc: Compile also c-ctype.c.
17545 * build-aux/relocatable.sh.in: New file.
17546 * doc/relocatable.texi: New file.
17547 * doc/relocatable-maint.texi: New file.
17548 * doc/gnulib.texi: Include relocatable-maint.texi.
17549 * lib/progreloc.c: Include unistd.h unconditionally.
17550 * lib/relocwrapper.c: Include unistd.h unconditionally.
17552 (add_dotbin): Use c_tolower.
17553 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
17554 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
17555 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
17556 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
17557 to m4/relocatable-lib.m4.
17558 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
17559 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
17560 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
17561 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
17562 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
17563 * modules/relocatable: New file.
17564 * modules/relocatable-lib: New file.
17565 * modules/relocatable-script: New file.
17567 2007-02-28 Bruno Haible <bruno@clisp.org>
17569 Import --enable-relocatable infrastructure.
17570 * build-aux/config.libpath: New file, from GNU gettext.
17571 * build-aux/install-reloc: New file, from GNU gettext.
17572 * build-aux/reloc-ldflags: New file, from GNU gettext.
17573 * lib/relocatable.h: New file, from GNU gettext.
17574 * lib/relocatable.c: New file, from GNU gettext.
17575 * lib/relocwrapper.c: New file, from GNU gettext.
17576 * m4/relocatable.m4: New file, from GNU gettext.
17578 2007-02-28 Bruno Haible <bruno@clisp.org>
17580 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
17582 * modules/xreadlink: New file, from GNU gettext with modifications.
17583 * lib/xreadlink.c: New file, from GNU gettext.
17584 * lib/xreadlink.h: Add comments.
17585 (xreadlink): New declaration.
17587 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
17588 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
17589 lib/xreadlink-with-size.c.
17590 (configure.ac): Remove gl_XREADLINK invocation.
17591 (Makefile.am): Augment lib_SOURCES.
17592 * m4/xreadlink.m4: Remove file.
17593 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
17594 (xreadlink_with_size): Renamed from xreadink.
17595 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
17596 * modules/canonicalize (Depends-on): Replace xreadlink with
17597 xreadlink-with-size.
17598 * lib/canonicalize.c (canonicalize_filename_mode): Update.
17600 2007-02-25 Jim Meyering <jim@meyering.net>
17602 * build-aux/announce-gen: When complaining about excess arguments,
17605 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
17607 * README: Document signed integer overflow situation more
17610 2007-02-25 Bruno Haible <bruno@clisp.org>
17612 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
17613 'a' or 'A' conversion.
17615 2007-02-25 Bruno Haible <bruno@clisp.org>
17617 * modules/filename: Renamed from modules/pathname.
17618 (Files): Replace lib/pathname.h with lib/filename.h. Replace
17619 lib/concatpath.c with lib/concat-filename.c.
17620 (Makefile.am): Update.
17621 (Include): Replace pathname.h with filename.h.
17622 * lib/filename.h: Renamed from lib/pathname.h.
17623 (concatenated_filename): Renamed from concatenated_pathname.
17624 * lib/concat-filename.c: Renamed from lib/concatpath.c.
17625 (concatenated_filename): Renamed from concatenated_pathname.
17626 * lib/findprog.c: Include filename.h instead of pathname.h.
17627 (find_in_path): Update.
17628 * lib/javacomp.c: Include filename.h instead of pathname.h.
17629 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
17630 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
17631 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
17632 is_oldgcj_14_13_usable, is_javac_usable): Update.
17633 * lib/javaexec.c: Include filename.h instead of pathname.h.
17634 (execute_java_class): Update.
17635 * modules/findprog: Update.
17636 * modules/javacomp: Update.
17637 * modules/javaexec: Update.
17638 * MODULES.html.sh (File system functions): Add 'filename', remove
17641 2007-02-25 Bruno Haible <bruno@clisp.org>
17643 * modules/printf-frexpl-tests: New file.
17644 * tests/test-printf-frexpl.c: New file.
17646 * modules/printf-frexpl: New file.
17647 * lib/printf-frexpl.h: New file.
17648 * lib/printf-frexpl.c: New file.
17649 * m4/printf-frexpl.m4: New file.
17651 2007-02-25 Bruno Haible <bruno@clisp.org>
17653 * modules/printf-frexp-tests: New file.
17654 * tests/test-printf-frexp.c: New file.
17656 * modules/printf-frexp: New file.
17657 * lib/printf-frexp.h: New file.
17658 * lib/printf-frexp.c: New file.
17659 * m4/printf-frexp.m4: New file.
17661 2007-02-25 Bruno Haible <bruno@clisp.org>
17663 Assume automake >= 1.10 for the tests.
17664 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
17665 * modules/arctwo-tests: Likewise.
17666 * modules/argp-tests: Likewise.
17667 * modules/avltree-list-tests: Likewise.
17668 * modules/avltree-oset-tests: Likewise.
17669 * modules/avltreehash-list-tests: Likewise.
17670 * modules/carray-list-tests: Likewise.
17671 * modules/crc-tests: Likewise.
17672 * modules/des-tests: Likewise.
17673 * modules/gc-arcfour-tests: Likewise.
17674 * modules/gc-arctwo-tests: Likewise.
17675 * modules/gc-des-tests: Likewise.
17676 * modules/gc-hmac-md5-tests: Likewise.
17677 * modules/gc-hmac-sha1-tests: Likewise.
17678 * modules/gc-md2-tests: Likewise.
17679 * modules/gc-md4-tests: Likewise.
17680 * modules/gc-md5-tests: Likewise.
17681 * modules/gc-pbkdf2-sha1-tests: Likewise.
17682 * modules/gc-rijndael-tests: Likewise.
17683 * modules/gc-sha1-tests: Likewise.
17684 * modules/gc-tests: Likewise.
17685 * modules/getaddrinfo-tests: Likewise.
17686 * modules/hmac-md5-tests: Likewise.
17687 * modules/hmac-sha1-tests: Likewise.
17688 * modules/linked-list-tests: Likewise.
17689 * modules/linkedhash-list-tests: Likewise.
17690 * modules/lock-tests: Likewise.
17691 * modules/md2-tests: Likewise.
17692 * modules/md4-tests: Likewise.
17693 * modules/md5-tests: Likewise.
17694 * modules/rbtree-list-tests: Likewise.
17695 * modules/rbtree-oset-tests: Likewise.
17696 * modules/rbtreehash-list-tests: Likewise.
17697 * modules/read-file-tests: Likewise.
17698 * modules/rijndael-tests: Likewise.
17699 * modules/stdint-tests: Likewise.
17700 * modules/tls-tests: Likewise.
17702 2007-02-24 Bruno Haible <bruno@clisp.org>
17704 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
17705 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
17706 function; instead check whether isnan with a double argument links.
17707 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
17708 function; instead check whether isnan with a 'long double' argument
17710 Reported by Eric Blake <ebb9@byu.net>.
17712 2007-02-24 Bruno Haible <bruno@clisp.org>
17714 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
17716 * lib/isnanl.c: Remove all code. Just include isnan.c.
17717 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
17719 2007-02-25 Jim Meyering <jim@meyering.net>
17721 Avoid conflicting types for 'unsetenv' on FreeBSD.
17722 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
17723 conflicting with FreeBSD's (5.0 and 6.1) function declaration
17726 2007-02-24 Bruno Haible <bruno@clisp.org>
17728 * modules/isnanl-nolibm-tests: New file.
17729 * tests/test-isnanl.c: New file.
17731 * modules/isnanl-nolibm: New file.
17732 * lib/isnanl.h: New file.
17733 * lib/isnanl.c: New file.
17734 * m4/isnanl.m4: New file.
17736 2007-02-24 Bruno Haible <bruno@clisp.org>
17738 * modules/isnan-nolibm-tests: New file.
17739 * tests/test-isnan.c: New file.
17741 * modules/isnan-nolibm: New file.
17742 * lib/isnan.h: New file.
17743 * lib/isnan.c: New file.
17744 * m4/isnan.m4: New file.
17746 2007-02-24 Bruno Haible <bruno@clisp.org>
17748 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
17749 assume that an exponent fits in 20 bits.
17751 2007-02-24 Jim Meyering <jim@meyering.net>
17753 * m4/regex.m4: Update the description of the configure-time option,
17754 --without-included-regex, to state accurately what the defaults are,
17755 and perhaps to give people an idea why using this option is risky.
17757 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
17759 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
17760 loops on small arguments. This attempts to avoid the problem
17761 Bruno Haible reported for AIX 4.3.2 in
17762 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
17764 2007-02-23 Bruno Haible <bruno@clisp.org>
17766 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
17767 Needed for help2man.
17769 2007-02-23 Karl Berry <karl@gnu.org>
17771 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
17772 exists, foo.h should be cvs-ignored, not committed.
17774 2007-02-23 Eric Blake <ebb9@byu.net>
17776 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
17777 * lib/stat-time.h (includes): Likewise.
17778 * lib/utimecmp.c (includes): Likewise.
17779 * lib/utimens.h (includes): Likewise.
17780 * lib/getdate.y (includes): Also include "timespec.h" for use
17781 internal to the module.
17782 * modules/utimens (Depends-on): Revert yesterday's patch.
17783 * modules/nanosleep (Depends-on): Add missing dependency.
17785 2007-02-22 Bruno Haible <bruno@clisp.org>
17787 * lib/glob.c: Don't include getlogin_r.h.
17789 2007-02-22 Jim Meyering <jim@meyering.net>
17791 * modules/utimens (Depends-on): Add timespec, required for
17792 utimens.h's inclusion of timespec.h.
17794 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
17796 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
17797 long unreadable paths in GNU/Linux. Problem reported by Andreas
17799 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
17800 I'll try to think of a better way to fix the Solaris problem.
17802 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
17803 like glibc; on Solaris 10, it fails with errno == EINVAL.
17804 POSIX says the behavior is unspecified if the first argument is NULL,
17805 so play it safe and never pass NULL to the system getcwd.
17807 2007-02-21 Jim Meyering <jim@meyering.net>
17809 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
17810 of gettimeofday. It would conflict with the one now always
17811 provided via sys_time_.h. Reported by Matthew Woehlke, as
17812 an IRIX 6.5 build failure.
17814 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
17816 Minor fixups to port to Solaris 10 with Sun C 5.8.
17817 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
17818 * modules/getcwd (Depends-on): Add dirfd.
17819 * lib/putenv.c (putenv): #undef it.
17820 (rpl_putenv): New decl.
17821 (malloc, free): Include <stdlib.h> rather than prototyping separately.
17823 2007-02-20 Bruno Haible <bruno@clisp.org>
17825 * modules/stdio-tests: New file.
17826 * tests/test-stdio.c: New file.
17828 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
17829 (Depends-on): Add stdio.
17830 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17831 (Include): Use <stdio.h> instead of vsnprintf.h.
17832 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
17833 HAVE_DECL_VSNPRINTF.
17834 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
17836 * modules/snprintf (Files): Remove lib/snprintf.h.
17837 (Depends-on): Add stdio.
17838 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17839 (Include): Use <stdio.h> instead of snprintf.h.
17840 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
17841 HAVE_DECL_SNPRINTF.
17842 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
17843 * lib/getaddrinfo.c: Likewise.
17845 * modules/stdio: New file.
17846 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
17847 * lib/snprintf.h: Remove file.
17848 * lib/vsnprintf.h: Remove file.
17849 * lib/.cppi-disable: Remove snprintf.h.
17850 * m4/stdio_h.m4: New file.
17851 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
17853 2007-02-20 Jim Meyering <jim@meyering.net>
17855 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
17856 used by e.g., mingw. From Bruno Haible.
17858 2007-02-19 Bruno Haible <bruno@clisp.org>
17860 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
17862 Reported by Ben Pfaff <blp@cs.stanford.edu>.
17864 2007-02-19 Bruno Haible <bruno@clisp.org>
17866 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
17869 2007-02-19 Bruno Haible <bruno@clisp.org>
17871 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
17873 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
17875 2007-02-19 Jim Meyering <jim@meyering.net>
17877 Don't use FD after a successful "fdopendir (fd)".
17878 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
17879 Reset it by calling dirfd on the just-obtained DIR*.
17881 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
17882 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
17884 2007-02-18 Bruno Haible <bruno@clisp.org>
17886 * lib/readlink.c: Include <unistd.h>.
17887 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
17889 * modules/readlink (Depends-on): Add unistd.
17890 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17891 (Include): Add <unistd.h>.
17893 * lib/getlogin_r.h: Remove file.
17894 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
17895 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
17896 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
17897 HAVE_DECL_GETLOGIN_R.
17898 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
17899 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17900 (Include): Use <unistd.h> instead of getlogin_r.h.
17902 * lib/getcwd.h: Remove file.
17903 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
17904 * lib/xgetcwd.c: Likewise.
17905 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
17906 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
17907 * modules/getcwd (Files): Remove lib/getcwd.h.
17908 (Depends-on): Add unistd.
17909 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17910 (Include): Use <unistd.h> instad of getcwd.h.
17912 * lib/ftruncate.c: Include <unistd.h> first.
17913 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
17914 Set HAVE_FTRUNCATE.
17915 * modules/ftruncate (Depends-on): Add unistd.
17916 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17918 * lib/fchdir.c: Include <unistd.h> first.
17919 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
17920 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
17921 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
17922 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17923 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
17925 * lib/dup2.c: Include <unistd.h> first.
17926 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
17928 * modules/dup2 (Depends-on): Add unistd.
17929 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17931 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
17932 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
17933 REPLACE_CHOWN. Don't define chown as a macro here.
17934 * modules/chown (Depends-on): Add unistd.
17935 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17937 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
17938 Add definition for GL_LINK_WARNING.
17939 (chown, dup2): New declarations.
17940 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
17942 (ftruncate): New declaration.
17943 (getcwd): New declaration, taken from old getcwd.h.
17944 (getlogin_r): New declaration, taken from old getlogin_r.h.
17945 (readlink): New declaration.
17946 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
17947 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
17948 (gl_PREREQ_UNISTD): Remove macro.
17949 (gl_UNISTD_MODULE_INDICATOR): New macro.
17950 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
17951 many new variables. Don't set UNISTD_H.
17952 * modules/unistd (Description): Change.
17953 (Depends-on): Add link-warning.
17954 (configure.ac): Update.
17955 (Makefile.am): Create unistd.h always. Substitute many new variables
17958 2007-02-18 Bruno Haible <bruno@clisp.org>
17960 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
17961 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
17963 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
17964 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
17965 * lib/getsubopt.h: Remove file.
17966 * modules/getsubopt (Files): Remove lib/getsubopt.h.
17967 (Depends-on): Add stdlib.
17968 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17969 (Includes): Use <stdlib.h> instead of getsubopt.h.
17970 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
17971 Set HAVE_GETSUBOPT.
17972 * lib/getsubopt.c: Don't include getsubopt.h.
17974 2007-02-18 Bruno Haible <bruno@clisp.org>
17976 * modules/fchdir (Depends-on): Add dup2.
17978 2007-02-18 Bruno Haible <bruno@clisp.org>
17980 * lib/stdlib_.h: Handle glibc's special invocation convention
17983 2007-02-18 Bruno Haible <bruno@clisp.org>
17985 * modules/stdlib-tests: New file.
17986 * tests/test-stdlib.c: New file.
17988 * modules/mkstemp (Files): Remove lib/mkstemp.h.
17989 (Depends-on): Add stdlib.
17990 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17991 (Includes): Use <stdlib.h> instead of mkstemp.h.
17992 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
17993 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
17994 * lib/mkstemp.c: Don't include mkstemp.h.
17995 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
17996 * lib/stdlib--.h: Don't include mkstemp.h.
17998 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
17999 (Depends-on): Add stdlib.
18000 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18001 (Includes): Use <stdlib.h> instead of mkdtemp.h.
18002 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
18004 * lib/mkdtemp.c: Don't include mkdtemp.h.
18005 * lib/clean-temp.c: Don't include mkdtemp.h.
18007 * modules/exit (Files): Remove lib/exit.h.
18008 (Depends-on): Add stdlib.
18009 (Makefile.am): Remove lib_SOURCES.
18010 (Include): Use <stdlib.h> instead of exit.h.
18011 * lib/argmatch.c: Don't include exit.h.
18012 * lib/execute.c: Likewise.
18013 * lib/pagealign_alloc.c: Likewise.
18014 * lib/pipe.c: Likewise.
18015 * lib/wait-process.c: Likewise.
18016 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
18017 * lib/exitfail.c: Likewise.
18018 * lib/savewd.c: Likewise.
18019 * lib/xsetenv.c: Likewise.
18021 * modules/stdlib: New file.
18022 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
18023 and extra comments about mkstemp().
18024 * lib/exit.h: Remove file.
18025 * lib/mkdtemp.h: Remove file.
18026 * lib/mkstemp.h: Remove file.
18027 * m4/stdlib_h.m4: New file.
18028 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
18030 2007-02-18 Bruno Haible <bruno@clisp.org>
18032 * modules/math-tests: New file.
18033 * tests/test-math.c: New file.
18035 * modules/math: New file.
18036 * modules/mathl (Files): Remove lib/mathl.h.
18037 (Depends-on): Add math.
18038 (Makefile.am): Don't mention mathl.h.
18039 (Include): Use <math.h> instead of mathl.h.
18040 * lib/math_.h: New file.
18041 * lib/mathl.h: Remove file.
18042 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
18044 * lib/asinl.c: Likewise.
18045 * lib/atanl.c: Likewise.
18046 * lib/ceill.c: Likewise.
18047 * lib/cosl.c: Likewise.
18048 * lib/expl.c: Likewise.
18049 * lib/floorl.c: Likewise.
18050 * lib/frexpl.c: Likewise.
18051 * lib/ldexpl.c: Likewise.
18052 * lib/logl.c: Likewise.
18053 * lib/sincosl.c: Likewise.
18054 * lib/sinl.c: Likewise.
18055 * lib/sqrtl.c: Likewise.
18056 * lib/tanl.c: Likewise.
18057 * lib/trigl.c: Likewise.
18058 * m4/math_h.m4: New file.
18059 * MODULES.html.sh (Mathematics): Add math.
18061 2007-02-17 Bruno Haible <bruno@clisp.org>
18063 * modules/wctype-tests: New file.
18064 * tests/test-wctype.c: New file.
18066 * modules/wchar-tests: New file.
18067 * tests/test-wchar.c: New file.
18069 * modules/unistd-tests: New file.
18070 * tests/test-unistd.c: New file.
18072 * modules/time-tests: New file.
18073 * tests/test-time.c: New file.
18075 * modules/sysexits-tests: New file.
18076 * tests/test-sysexits.c: New file.
18078 * modules/sys_time-tests: New file.
18079 * tests/test-sys_time.c: New file.
18081 * modules/sys_stat-tests: New file.
18082 * tests/test-sys_stat.c: New file.
18084 * modules/sys_socket-tests: New file.
18085 * tests/test-sys_socket.c: New file.
18087 * modules/sys_select-tests: New file.
18088 * tests/test-sys_select.c: New file.
18090 * modules/string-tests: New file.
18091 * tests/test-string.c: New file.
18093 * modules/stdbool-tests: New file.
18094 * tests/test-stdbool.c: New file.
18096 * modules/netinet_in-tests: New file.
18097 * tests/test-netinet_in.c: New file.
18099 * modules/inttypes-tests: New file.
18100 * tests/test-inttypes.c: New file.
18102 * modules/fcntl-tests: New file.
18103 * tests/test-fcntl.c: New file.
18105 * modules/byteswap-tests: New file.
18106 * tests/test-byteswap.c: New file.
18108 * modules/arpa_inet-tests: New file.
18109 * tests/test-arpa_inet.c: New file.
18111 2007-02-17 Bruno Haible <bruno@clisp.org>
18113 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
18114 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
18115 if the corresponding module is not enabled. Emit link warnings if
18116 the function is used nevertheless.
18117 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
18118 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
18119 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
18120 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
18121 * modules/inttypes (Depends-on): Add link-warning.
18122 (Makefile.am): Copy the contents of build-aux/link-warning.h into
18123 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
18124 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
18125 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
18126 * modules/imaxdiv (configure.ac): Likewise.
18127 * modules/strtoimax (configure.ac): Likewise.
18128 * modules/strtoumax (configure.ac): Likewise.
18130 2007-02-17 Bruno Haible <bruno@clisp.org>
18132 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
18133 gl_STRING_MODULE_INDICATOR_DEFAULTS.
18134 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
18135 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
18137 2007-02-17 Bruno Haible <bruno@clisp.org>
18139 * modules/link-warning: New file.
18140 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
18141 * lib/string_.h (GL_LINK_WARNING): Remove definition.
18142 * modules/string (Depends-on): Add link-warning.
18143 (Makefile.am): Copy the contents of build-aux/link-warning.h into
18145 * MODULES.html.sh (Support for building libraries and executables): Add
18148 2007-02-17 Bruno Haible <bruno@clisp.org>
18150 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
18151 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
18152 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
18155 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
18156 Bruno Haible <bruno@clisp.org>
18158 * modules/tmpfile: New file.
18159 * lib/tmpfile.c: New file.
18160 * m4/tmpfile.m4: New file.
18161 * MODULES.html.sh (func_all_modules): New section "Input/output".
18163 2007-02-15 Bruno Haible <bruno@clisp.org>
18165 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
18166 (supports_delete_on_close): New function.
18167 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
18169 2007-02-14 Bruno Haible <bruno@clisp.org>
18171 * modules/mbspcasecmp-tests: New file.
18172 * tests/test-mbspcasecmp.sh: New file.
18173 * tests/test-mbspcasecmp.c: New file.
18175 New module mbspcasecmp.
18176 * modules/mbspcasecmp: New file.
18177 * lib/mbspcasecmp.c: New file.
18178 * lib/string_.h (strncasecmp): Change warning message.
18179 (mbspcasecmp): New declaration.
18180 * m4/mbspcasecmp.m4: New file.
18181 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18182 GNULIB_MBSPCASECMP.
18183 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
18184 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
18186 2007-02-14 Bruno Haible <bruno@clisp.org>
18188 * modules/mbsncasecmp-tests: New file.
18189 * tests/test-mbsncasecmp.sh: New file.
18190 * tests/test-mbsncasecmp.c: New file.
18192 New module mbsncasecmp.
18193 * modules/mbsncasecmp: New file.
18194 * lib/mbsncasecmp.c: New file.
18195 * lib/string_.h (mbsncasecmp): New declaration.
18196 * m4/mbsncasecmp.m4: New file.
18197 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18198 GNULIB_MBSNCASECMP.
18199 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
18200 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
18202 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
18204 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
18205 Verify that it doesn't overlap with our flags.
18206 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
18207 do not have the desired effect in multibyte locales; instead, use
18209 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
18210 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
18211 we don't require GNU fnmatch ourselves (if our users require it, they
18212 should do so explicitly).
18214 Fix regex code so it doesn't rely on strcasecmp.
18215 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
18216 Otherwise, include gnulib's langinfo.h.
18217 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
18218 undesirable behavior in non-C locales. Instead, rely on localecharset.
18219 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
18220 * modules/regex (FILES): Remove m4/codeset.m4.
18221 (Depends-on): Add localcharset. Remove strcase.
18223 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18225 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
18226 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18228 2007-02-13 Bruno Haible <bruno@clisp.org>
18230 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
18231 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18233 2007-02-12 Bruno Haible <bruno@clisp.org>
18235 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
18236 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
18237 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
18238 time warning rather than a link error.
18240 2007-02-12 Bruno Haible <bruno@clisp.org>
18242 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
18243 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18244 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18246 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
18248 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
18251 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
18253 New module 'time', so that apps can include <time.h> as per
18254 POSIX and GNU instead of separate include files like time_r.h
18255 and timegm.h. This implementation tries out a simpler approach
18256 for replacing decls in standard include files (as compared to
18257 the string module), somewhat as an experiment.
18259 * config/srclist.txt: Comment out mktime.c for now.
18260 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
18261 since it doesn't apply any more. Use generic wording instead.
18262 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
18264 * lib/time_.h, m4/time_h.m4, modules/time: New files.
18265 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
18266 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
18267 Don't include <sys/types.h>; no longer needed since we assume C89.
18268 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
18269 * lib/strftime.c: Likewise.
18270 * lib/time_r.c: Likewise.
18271 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
18272 * lib/nanosleep.c: Include <time.h> first, to check interface.
18273 * lib/strptime.c: Likewise.
18274 * lib/time_r.c: Likewise.
18275 * lib/timegm.c: Likewise.
18276 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
18278 * lib/timegm.c: Don't include timegm.h; no longer needed.
18279 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
18280 time.h now handles any problems in that area.
18281 (struct timespec, nanosleep): Remove; time.h now arranges for these.
18282 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
18283 that time.h defines struct timespec.
18284 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
18285 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
18287 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
18288 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
18289 needed. Set REPLACE_LOCALTIME.
18290 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
18291 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
18292 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
18293 nanosleep; time_h.m4 now does that. Don't require
18294 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
18295 module handles this now.
18296 * modules/getdate (Depends-on): Remove timespec. Add time.
18297 * modules/nanosleep (Depends-on): Likewise.
18298 * modules/stat-time (Depends-on): Likewise.
18299 * modules/nanosleep (Include): Include time.h, not timespec.h.
18300 * modules/strptime (Files): Remove lib/strptime.h.
18301 (Depends-on): Add extensions, time.
18302 (Include): Include time.h, not strptime.h.
18303 * modules/time_r (Files): Remove lib/time_r.h.
18304 (Depends-on): Add time.
18305 (Include): Include time.h, not time_r.h.
18306 * modules/timegm: Likewise.
18307 * modules/timespec (Description): Now does timespec-related decls
18308 of our own, instead of struct timespec itself.
18309 (Depends-on): Add time; remove extensions.
18310 (Maintainer): Add self.
18311 * modules/utimecmp (Depends-on): Add time; remove timespec.
18312 * modules/utimens (Depends-on): Likewise.
18313 * modules/xnanosleep (Depends-on): Likewise.
18315 2007-02-11 Bruno Haible <bruno@clisp.org>
18317 * lib/c-strstr.c: Include allocsa.h.
18318 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18319 * lib/c-strcasestr.c: Include allocsa.h.
18320 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18321 * lib/strcasestr.c: Include allocsa.h.
18322 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18323 * lib/mbsstr.c: Include allocsa.h.
18324 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
18325 allocsa/freesa instead of malloc/free.
18326 * lib/mbscasestr.c: Include allocsa.h.
18327 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
18328 allocsa/freesa instead of malloc/free.
18329 * modules/c-strstr (Depends-on): Add allocsa.
18330 * modules/c-strcasestr (Depends-on): Likewise.
18331 * modules/strcasestr (Depends-on): Likewise.
18332 * modules/mbsstr (Depends-on): Likewise.
18333 * modules/mbscasestr (Depends-on): Likewise.
18335 2007-02-11 Bruno Haible <bruno@clisp.org>
18337 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
18339 * modules/mbsspn-tests: New file.
18340 * tests/test-mbsspn.sh: New file.
18341 * tests/test-mbsspn.c: New file.
18343 2007-02-11 Bruno Haible <bruno@clisp.org>
18345 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
18347 * modules/mbspbrk-tests: New file.
18348 * tests/test-mbspbrk.sh: New file.
18349 * tests/test-mbspbrk.c: New file.
18351 2007-02-11 Bruno Haible <bruno@clisp.org>
18353 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
18356 * modules/mbscspn-tests: New file.
18357 * tests/test-mbscspn.sh: New file.
18358 * tests/test-mbscspn.c: New file.
18360 2007-02-11 Bruno Haible <bruno@clisp.org>
18362 * modules/mbscasecmp-tests: New file.
18363 * tests/test-mbscasecmp.sh: New file.
18364 * tests/test-mbscasecmp.c: New file.
18366 2007-02-11 Bruno Haible <bruno@clisp.org>
18368 Ensure O(n) worst-case complexity of mbscasestr.
18369 * lib/mbscasestr.c: Include stdbool.h.
18370 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
18372 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
18373 the bookkeeping indicates that it's worth it.
18374 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
18376 * modules/mbscasestr-tests: New file.
18377 * tests/test-mbscasestr1.c: New file.
18378 * tests/test-mbscasestr2.sh: New file.
18379 * tests/test-mbscasestr2.c: New file.
18380 * tests/test-mbscasestr3.sh: New file.
18381 * tests/test-mbscasestr3.c: New file.
18382 * tests/test-mbscasestr4.sh: New file.
18383 * tests/test-mbscasestr4.c: New file.
18384 * m4/locale-tr.m4: New file.
18386 2007-02-11 Bruno Haible <bruno@clisp.org>
18388 Ensure O(n) worst-case complexity of mbsstr.
18389 * lib/mbsstr.c: Include stdbool.h.
18390 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
18392 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
18393 bookkeeping indicates that it's worth it.
18394 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
18396 * modules/mbsstr-tests: New file.
18397 * tests/test-mbsstr1.c: New file.
18398 * tests/test-mbsstr2.sh: New file.
18399 * tests/test-mbsstr2.c: New file.
18400 * tests/test-mbsstr3.sh: New file.
18401 * tests/test-mbsstr3.c: New file.
18402 * m4/locale-fr.m4: New file.
18404 2007-02-11 Bruno Haible <bruno@clisp.org>
18406 * lib/mbsrchr.c (mbsrchr): Fix bug.
18408 * modules/mbsrchr-tests: New file.
18409 * tests/test-mbsrchr.sh: New file.
18410 * tests/test-mbsrchr.c: New file.
18412 2007-02-11 Bruno Haible <bruno@clisp.org>
18414 * lib/mbschr.c (mbschr): Fix bug.
18416 * modules/mbschr-tests: New file.
18417 * tests/test-mbschr.sh: New file.
18418 * tests/test-mbschr.c: New file.
18419 * m4/locale-zh.m4: New file.
18421 2007-02-11 Bruno Haible <bruno@clisp.org>
18423 Support for copying multibyte string iterators.
18424 * lib/mbiter.h: Include <string.h>.
18425 (mbiter_multi_copy): New function.
18426 (mbi_copy): New macro.
18427 * lib/mbuiter.h: Include <string.h>.
18428 (mbuiter_multi_copy): New function.
18429 (mbui_copy): New macro.
18431 2007-02-11 Bruno Haible <bruno@clisp.org>
18434 * modules/mbslen: New file.
18435 * lib/mbslen.c: New file.
18436 * lib/string_.h (mbslen): New declaration.
18437 * m4/mbslen.m4: New file.
18438 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18440 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
18441 * MODULES.html.sh (Internationalization functions): Add mbslen.
18443 2007-02-11 Bruno Haible <bruno@clisp.org>
18445 Ensure O(n) worst-case complexity of strcasestr substitute.
18446 * lib/strcasestr.c: Include stdbool.h.
18447 (knuth_morris_pratt): New function.
18448 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
18449 bookkeeping indicates that it's worth it.
18450 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
18452 * modules/strcasestr-tests: New file.
18453 * tests/test-strcasestr.c: New file.
18455 2007-02-11 Bruno Haible <bruno@clisp.org>
18457 Ensure O(n) worst-case complexity of c_strcasestr.
18458 * lib/c-strcasestr.c: Include stdbool.h, string.h.
18459 (knuth_morris_pratt): New function.
18460 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
18461 the bookkeeping indicates that it's worth it.
18462 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
18464 * modules/c-strcasestr-tests: New file.
18465 * tests/test-c-strcasestr.c: New file.
18467 2007-02-11 Bruno Haible <bruno@clisp.org>
18469 Ensure O(n) worst-case complexity of c_strstr.
18470 * lib/c-strstr.c: Include stdbool.h, string.h.
18471 (knuth_morris_pratt): New function.
18472 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
18473 bookkeeping indicates that it's worth it.
18474 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
18476 * lib/c-strstr.c: Complete rewrite for maintainability.
18478 * modules/c-strstr-tests: New file.
18479 * tests/test-c-strstr.c: New file.
18481 2007-02-11 Bruno Haible <bruno@clisp.org>
18483 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
18484 5.2.1 and earlier, whereby \055 was treated just like the range
18486 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
18488 2007-02-08 Bruno Haible <bruno@clisp.org>
18490 * modules/regex (Depends-on): Add stdbool.
18491 Reported by Dalibor Topic <robilad@kaffe.org>.
18493 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
18495 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
18496 Prefer returning from main to exiting from it.
18497 Remove unnecessary parens after sizeof.
18499 2007-02-05 Bruno Haible <bruno@clisp.org>
18502 * modules/mbssep: New file.
18503 * lib/mbssep.c: New file.
18504 * lib/string_.h (strsep): Add a conditional link warning.
18505 (mbssep): New declaration.
18506 * m4/mbssep.m4: New file.
18507 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18509 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
18510 * MODULES.html.sh (Internationalization functions): Add mbssep.
18512 2007-02-05 Bruno Haible <bruno@clisp.org>
18514 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
18515 Optimize search in case of 1 delimiter.
18517 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
18519 * lib/acl.h: Include sys/types.h before sys/acl.h.
18521 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
18523 Merge upstream fix for glibc bugzilla #3957:
18525 2007-02-05 Jakub Jelinek <jakub@redhat.com>
18527 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
18528 bit for RE_HAT_LISTS_NOT_NEWLINE.
18529 (build_charclass_op): Remove bogus comment.
18531 2007-02-05 Simon Josefsson <simon@josefsson.org>
18533 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
18535 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
18537 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
18538 * lib/memmem.c [!defined _LIBC]: Include config.h.
18540 2007-02-04 Bruno Haible <bruno@clisp.org>
18542 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
18545 2007-02-04 Bruno Haible <bruno@clisp.org>
18547 New module mbstok_r.
18548 * modules/mbstok_r: New file.
18549 * lib/mbstok_r.c: New file.
18550 * lib/string_.h (strtok_r): Change argument names to match the
18551 comments. Add a conditional link warning.
18552 (mbstok_r): New declaration.
18553 * m4/mbstok_r.m4: New file.
18554 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18556 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
18557 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
18559 2007-02-04 Bruno Haible <bruno@clisp.org>
18562 * modules/mbsspn: New file.
18563 * lib/mbsspn.c: New file.
18564 * lib/string_.h (strspn): Add a conditional link warning.
18565 (mbsspn): New declaration.
18566 * m4/mbsspn.m4: New file.
18567 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18569 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
18570 * MODULES.html.sh (Internationalization functions): Add mbsspn.
18572 2007-02-04 Bruno Haible <bruno@clisp.org>
18574 New module mbspbrk.
18575 * modules/mbspbrk: New file.
18576 * lib/mbspbrk.c: New file.
18577 * lib/string_.h (strpbrk): Add a conditional link warning.
18578 (mbspbrk): New declaration.
18579 * m4/mbspbrk.m4: New file.
18580 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18582 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
18583 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
18585 2007-02-04 Bruno Haible <bruno@clisp.org>
18587 New module mbscspn.
18588 * modules/mbscspn: New file.
18589 * lib/mbscspn.c: New file.
18590 * lib/string_.h (strcspn): Add a conditional link warning.
18591 (mbscspn): New declaration.
18592 * m4/mbscspn.m4: New file.
18593 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18595 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
18596 * MODULES.html.sh (Internationalization functions): Add mbscspn.
18598 2007-02-04 Bruno Haible <bruno@clisp.org>
18600 New module mbscasestr, reduced goal of strcasestr.
18601 * modules/mbscasestr: New file.
18602 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
18603 (mbscasestr): Renamed from strcasestr.
18604 * lib/strcasestr.c: Don't include mbuiter.h.
18605 (strcasestr): Remove support for multibyte locales.
18606 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
18607 Change the conditional link warning.
18608 (mbscasestr): New declaration.
18609 * m4/mbscasestr.m4: New file.
18610 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
18611 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
18612 REPLACE_STRCASESTR.
18613 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
18614 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18615 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
18616 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
18617 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
18618 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
18619 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
18620 (Depends-on): Remove mbuiter.
18621 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
18623 2007-02-04 Bruno Haible <bruno@clisp.org>
18625 Simplify handling of strncasecmp.
18626 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
18627 the conditional link warning.
18628 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18629 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
18630 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
18631 * modules/strcase (configure.ac): Don't invoke
18632 gl_STRING_MODULE_INDICATOR.
18633 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
18635 2007-02-04 Bruno Haible <bruno@clisp.org>
18637 New module mbscasecmp, reduced goal of strcasecmp.
18638 * modules/mbscasecmp: New file.
18639 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
18640 (mbscasecmp): Renamed from strcasecmp.
18641 * lib/strcasecmp.c: Don't include mbuiter.h.
18642 (strcasecmp): Remove support for multibyte locales.
18643 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
18644 Change the conditional link warning.
18645 (mbscasecmp): New declaration.
18646 * m4/mbscasecmp.m4: New file.
18647 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
18648 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
18649 REPLACE_STRCASECMP.
18650 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
18651 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18653 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
18654 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
18655 * modules/strcase (Files): Remove m4/mbrtowc.m4.
18656 (Depends-on): Remove mbuiter.
18657 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
18659 2007-02-04 Bruno Haible <bruno@clisp.org>
18661 New module mbsstr. Remove module strstr.
18662 * modules/mbsstr: New file.
18663 * modules/strstr: Remove file.
18664 * lib/mbsstr.c: Renamed from lib/strstr.c.
18665 (mbsstr): Renamed from strstr.
18666 * lib/string_.h (strstr): Remove declaration. Change the conditional
18668 (mbsstr): New declaration.
18669 * m4/mbsstr.m4: New file.
18670 * m4/strstr.m4: Remove file.
18671 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
18673 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
18674 Don't initialize GNULIB_STRSTR.
18675 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
18676 substitute GNULIB_STRSTR and REPLACE_STRSTR.
18677 * MODULES.html.sh (Internationalization functions): Add mbsstr.
18678 (Support for systems lacking ANSI C 89): Remove strstr.
18680 2007-02-04 Bruno Haible <bruno@clisp.org>
18682 New module mbsrchr.
18683 * modules/mbsrchr: New file.
18684 * lib/mbsrchr.c: New file.
18685 * lib/string_.h (strrchr): Add a conditional link warning.
18686 (mbsrchr): New declaration.
18687 * m4/mbsrchr.m4: New file.
18688 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18690 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
18691 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
18693 2007-02-04 Bruno Haible <bruno@clisp.org>
18696 * modules/mbschr: New file.
18697 * lib/mbschr.c: New file.
18698 * lib/string_.h (strchr): Add a conditional link warning.
18699 (mbschr): New declaration.
18700 * m4/mbschr.m4: New file.
18701 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18703 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
18704 * MODULES.html.sh (Internationalization functions): Add mbschr.
18706 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
18708 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
18710 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
18712 2007-02-04 Bruno Haible <bruno@clisp.org>
18714 New module description section 'configure.ac-early'.
18715 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
18716 (func_get_autoconf_early_snippet): New function.
18717 (func_import, func_create_testdir): Use it. Remove special cases for
18718 modules 'extensions' and 'lock'.
18719 * modules/extensions (configure.ac-early): Require
18720 gl_USE_SYSTEM_EXTENSIONS.
18721 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
18723 2007-02-04 Bruno Haible <bruno@clisp.org>
18725 Make use of gcj-4.3's -fsource and -ftarget option.
18726 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
18727 and if so try the options -fsource and -ftarget.
18728 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
18729 source_version, ftarget_option, target_version arguments.
18730 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
18731 (is_envjavac_oldgcj_14_14_usable): Renamed from
18732 is_envjavac_gcj_14_14_usable.
18733 (is_envjavac_oldgcj_14_13_usable): Renamed from
18734 is_envjavac_gcj_14_13_usable.
18735 (is_gcj_present): Update.
18736 (is_gcj_43, is_gcj43_usable): New functions.
18737 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
18738 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
18739 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
18740 try the options -fsource and -ftarget.
18742 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
18744 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
18745 checking code. Set N = ceil (1.5 * N) rather than to a slightly
18748 2007-02-03 Jim Meyering <jim@meyering.net>
18750 Give tools a better chance to allocate space for very large buffers.
18751 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
18753 Make pwd and readlink work also when run with an unreadable parent dir
18754 on systems with openat support.
18755 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
18756 provided getcwd function, even when we have openat support.
18757 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
18759 2007-02-02 Bruno Haible <bruno@clisp.org>
18761 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
18762 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
18763 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
18764 portability problems if one of these functions is only used on specific
18766 Reported by Paul Eggert.
18768 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
18770 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
18771 is causing more trouble than it's curing.
18772 * lib/regex_internal.h (__mempcpy): Remove.
18773 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
18774 (and make the code a tad smaller to boot).
18775 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
18777 2007-02-02 Jim Meyering <jim@meyering.net>
18779 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
18780 section, not in the Makefile.am: one.
18782 2007-02-02 Eric Blake <ebb9@byu.net>
18784 * lib/strchrnul.c: Always include config.h first.
18786 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
18787 gnulib strstr is not necessary here.
18789 2007-02-02 Simon Josefsson <simon@josefsson.org>
18791 * m4/socklen.m4: Fix typo.
18793 2007-02-02 Eric Blake <ebb9@byu.net>
18795 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
18796 * modules/netinet_in (Makefile.am): Likewise.
18798 2007-02-01 Bruno Haible <bruno@clisp.org>
18800 * lib/string_.h (GL_LINK_WARNING): New macro.
18801 (strcasecmp, strstr, strcasestr): If provided by the system,
18802 conditionally define as a macro that leads to a warning instead of to
18804 (strncasecmp): Conditionally define as a macro that leads to a warning.
18806 2007-02-01 Karl Berry <karl@gnu.org>
18808 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
18810 2007-02-01 Bruno Haible <bruno@clisp.org>
18812 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
18815 2007-02-01 Eric Blake <ebb9@byu.net>
18817 * modules/regex (Depends-on): Revert dependence on mempcpy.
18818 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
18819 module's definition of mempcpy.
18820 Reported by Paul Eggert.
18822 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
18824 * lib/string_.h: If the gnulib module XYZ is not present, undefine
18825 the symbol XYZ before redefining it. This fixes a problem with
18826 programs that don't use XYZ, when compiled on systems that define
18827 XYZ to something else.
18829 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
18831 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
18832 occurs when "mkdir -m foo" creates a setgid directory that is (1)
18833 writeable to group or other and (2) is intended to have a special
18834 mode bit that is set or cleared. In such a case, the directory
18835 should be neither group- nor other-writeable until the special
18836 mode bits are right.
18838 2007-01-31 Eric Blake <ebb9@byu.net>
18840 * modules/mountlist (Depends-on): Add strstr.
18842 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
18844 * modules/string (Makefile.am): Remove redundant replacement.
18845 * modules/regex (Depends-on): Add mempcpy.
18847 2007-01-31 Bruno Haible <bruno@clisp.org>
18849 New module description field 'Link'.
18850 * gnulib-tool (func_usage): Document --extract-link-directive.
18851 (sed_extract_prog): Recognize 'Link' directive.
18852 (func_get_link_directive): New function.
18853 (func_import): Show summary of link directives.
18854 Handle --extract-link-directive option.
18855 * modules/acl (Link): New section.
18856 * modules/clock-time (Link): New section.
18857 * modules/euidaccess (Link): New section.
18858 * modules/gettext (Link): New section.
18859 * modules/iconv (Link): New section.
18860 * modules/lock (Link): New section.
18861 * modules/nanosleep (Link): New section.
18862 * modules/readline (Link): New section.
18864 2007-01-27 Bruno Haible <bruno@clisp.org>
18866 Enforce the use of gnulib modules for unportable <string.h> functions.
18867 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
18868 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
18869 (gl_HEADER_STRING_H_BODY): Require it.
18870 * lib/string_.h: If the gnulib module XYZ is not present, redefine
18871 the symbol XYZ to one that gives a link error.
18872 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
18873 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
18874 * modules/mempcpy (configure.ac): Likewise.
18875 * modules/memrchr (configure.ac): Likewise.
18876 * modules/stpcpy (configure.ac): Likewise.
18877 * modules/stpncpy (configure.ac): Likewise.
18878 * modules/strcase (configure.ac): Likewise.
18879 * modules/strcasestr (configure.ac): Likewise.
18880 * modules/strchrnul (configure.ac): Likewise.
18881 * modules/strdup (configure.ac): Likewise.
18882 * modules/strndup (configure.ac): Likewise.
18883 * modules/strnlen (configure.ac): Likewise.
18884 * modules/strpbrk (configure.ac): Likewise.
18885 * modules/strsep (configure.ac): Likewise.
18886 * modules/strstr (configure.ac): Likewise.
18887 * modules/strtok_r (configure.ac): Likewise.
18889 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
18891 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
18893 2007-01-30 Jim Meyering <jim@meyering.net>
18895 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
18897 2007-01-29 Bruno Haible <bruno@clisp.org>
18899 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
18900 * lib/execute.c: Likewise.
18901 * lib/pipe.c: Likewise.
18902 * lib/printf-args.h: Likewise.
18903 * lib/printf-args.c: Likewise.
18904 * lib/printf-parse.c: Likewise.
18905 * lib/vasnprintf.c: Likewise.
18907 2007-01-29 Eric Blake <ebb9@byu.net>
18909 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
18912 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
18914 * lib/strptime.h (strptime): Use 'restrict' for args where
18915 POSIX requires this.
18916 * lib/strptime.c (strptime): Likewise.
18917 Change license notice from LGPL to GPL, since gnulib-tool will
18918 change this as needed.
18919 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
18921 Include "strptime.h" first, to check interface.
18922 Do not #undef _LIBC and _NL_CURRENT.
18923 Do not include <stdlib.h>; no longer needed.
18924 Include "time_r.h" and declare ptime_locale_status
18925 only if _LIBC is not defined.
18926 (__P): Remove unused macro.
18927 (match_string): Bring back glibc version, but use it only if _LIBC
18929 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
18930 Remove unnecessary assertion and abort() call.
18931 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
18932 * m4/strptime.m4: Fix serial number comment.
18933 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
18934 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
18935 (Depends-on): Add time_r.
18937 2007-01-29 Bruno Haible <bruno@clisp.org>
18939 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18941 * modules/strptime (Depends-on): Add stdbool.
18942 * lib/strptime.h: Include <time.h> always. Add comments.
18944 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
18946 * modules/strptime: New file.
18947 * lib/strptime.h: New file.
18948 * lib/strptime.c: New file.
18949 * m4/strptime.m4: New file.
18951 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
18953 * MODULES.html.sh: New module mpsort.
18954 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
18956 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
18957 a circularity problem with HP-UX ia64 reported by Bob Proulx in
18958 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
18960 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
18962 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
18964 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
18965 the parameter matches the prototype.
18967 2007-01-28 Jim Meyering <jim@meyering.net>
18969 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
18970 sys/time.h here, reverting that part of the previous patch:
18971 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
18973 2007-01-28 Bruno Haible <bruno@clisp.org>
18975 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
18976 value of $(SYS_TIME_H).
18977 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
18978 remove it conditionally, too. [added by Jim Meyering]
18979 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
18980 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
18981 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
18982 GETTIMEOFDAY_REPLACEMENT to 1.
18984 2007-01-28 Bruno Haible <bruno@clisp.org>
18986 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
18987 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
18988 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
18989 Set UNISTD_H instead of UNISTD_H2.
18990 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
18992 2007-01-28 Bruno Haible <bruno@clisp.org>
18994 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
18995 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
18997 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18999 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
19000 (func_create_testdir): Ensure C locale for `grep' and `tr'
19002 (func_create_megatestdir): Avoid one `grep'. Fix bug in
19003 ACLOCAL_AMFLAGS parsing state machine.
19005 2007-01-27 Bruno Haible <bruno@clisp.org>
19007 * modules/unistr/base: Update.
19009 2007-01-27 Bruno Haible <bruno@clisp.org>
19011 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
19012 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
19013 * modules/unistr/u32-mbtouc-unsafe: Renamed from
19014 modules/unistr/u32-mbtouc.
19015 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
19016 * lib/unistr.h: Update.
19017 * lib/linebreak.c: Update.
19018 * modules/unistr/u32-mbtouc: Renamed from
19019 modules/unistr/u32-mbtouc-safe.
19020 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
19021 * lib/unistr.h: Update.
19022 * lib/unistr/u32-to-u8.c: Update.
19023 * lib/unistr/u32-to-u16.c: Update.
19025 2007-01-27 Bruno Haible <bruno@clisp.org>
19027 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
19028 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
19029 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
19030 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
19031 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
19032 * modules/unistr/u16-mbtouc-unsafe: Renamed from
19033 modules/unistr/u16-mbtouc.
19034 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
19035 * lib/unistr.h: Update.
19036 * lib/linebreak.c: Update.
19037 * modules/linebreak: Update.
19038 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
19039 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
19040 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
19041 * modules/unistr/u16-mbtouc: Renamed from
19042 modules/unistr/u16-mbtouc-safe.
19043 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
19044 * lib/unistr.h: Update.
19045 * lib/unistr/u16-to-u8.c: Update.
19046 * modules/unistr/u16-to-u8: Update.
19047 * lib/unistr/u16-to-u32.c: Update.
19048 * modules/unistr/u16-to-u32: Update.
19050 2007-01-27 Bruno Haible <bruno@clisp.org>
19052 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
19053 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
19054 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
19055 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
19056 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
19057 * modules/unistr/u8-mbtouc-unsafe: Renamed from
19058 modules/unistr/u8-mbtouc.
19059 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
19060 * lib/unistr.h: Update.
19061 * lib/striconveh.c: Update.
19062 * modules/striconveh: Update.
19063 * lib/linebreak.c: Update.
19064 * modules/linebreak: Update.
19065 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
19066 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
19067 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
19068 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
19069 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
19070 * lib/unistr.h: Update.
19071 * lib/striconveh.c: Update.
19072 * modules/striconveh: Update.
19073 * lib/unistr/u8-to-u16.c: Update.
19074 * modules/unistr/u8-to-u16: Update.
19075 * lib/unistr/u8-to-u32.c: Update.
19076 * modules/unistr/u8-to-u32: Update.
19078 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19081 * lib/argz.c: Do not include strings.h nor memory.h, include
19082 string.h unconditionally. Patch by Simon Josefsson.
19084 2007-01-27 Bruno Haible <bruno@clisp.org>
19086 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
19087 from gl_HEADER_STRING_H_BODY.
19088 (gl_HEADER_STRING_H_BODY): Require it.
19089 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
19090 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
19091 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
19092 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
19093 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19094 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
19095 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19096 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
19097 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
19098 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
19099 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
19100 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
19101 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
19102 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19103 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
19105 2007-01-27 Bruno Haible <bruno@clisp.org>
19107 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
19108 check_PROGRAMS into noinst_PROGRAMS.
19109 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
19110 check_PROGRAMS in this case.
19111 (func_import): Set for_test to false.
19112 (func_create_testdir): Set for_test to true.
19114 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19115 Bruno Haible <bruno@clisp.org>
19117 * modules/strcasestr (Files): Remove lib/strcasestr.h.
19118 (Depends-on): Add string.
19119 (Includes): Use <string.h> instead of strcasestr.h.
19120 * modules/string (Makefile.am): Also substitute the value of
19121 REPLACE_STRCASESTR.
19122 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
19123 assume strcasestr is declared in <string.h> not <strings.h>. Also
19124 set REPLACE_STRCASESTR.
19125 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
19126 REPLACE_STRCASESTR.
19127 * lib/strcasestr.h: Remove file.
19128 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
19129 * lib/string_.h (strcasestr): New declaration.
19131 2007-01-27 Bruno Haible <bruno@clisp.org>
19133 * lib/string_.h: Use 'extern'.
19135 2007-01-27 Jim Meyering <jim@meyering.net>
19137 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
19138 of set-but-not-used local, "q".
19140 * lib/mempcpy.c: Include <config.h> before <string.h>.
19141 This fixes a compilation error on HP-UX, due to the system's
19142 "restrict"-using mempcpy prototype.
19144 2007-01-26 Bruno Haible <bruno@clisp.org>
19146 Small optimization.
19147 * lib/javacomp.c: Include c-strstr.h.
19148 (is_envjavac_gcj): Use c_strstr instead of strstr.
19149 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
19151 2007-01-26 Bruno Haible <bruno@clisp.org>
19153 * MODULES.html.sh (Unicode string functions): Add the new modules.
19155 * modules/uniconv/u32-strconv-to-locale: New file.
19156 * lib/uniconv/u32-strconv-to-locale.c: New file.
19158 * modules/uniconv/u16-strconv-to-locale: New file.
19159 * lib/uniconv/u16-strconv-to-locale.c: New file.
19161 * modules/uniconv/u8-strconv-to-locale: New file.
19162 * lib/uniconv/u8-strconv-to-locale.c: New file.
19164 * modules/uniconv/u32-strconv-from-locale: New file.
19165 * lib/uniconv/u32-strconv-from-locale.c: New file.
19167 * modules/uniconv/u16-strconv-from-locale: New file.
19168 * lib/uniconv/u16-strconv-from-locale.c: New file.
19170 * modules/uniconv/u8-strconv-from-locale: New file.
19171 * lib/uniconv/u8-strconv-from-locale.c: New file.
19173 * modules/uniconv/u32-strconv-to-enc: New file.
19174 * lib/uniconv/u32-strconv-to-enc.c: New file.
19175 * modules/uniconv/u32-strconv-to-enc-tests: New file.
19176 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
19178 * modules/uniconv/u16-strconv-to-enc: New file.
19179 * lib/uniconv/u16-strconv-to-enc.c: New file.
19180 * lib/uniconv/u-strconv-to-enc.h: New file.
19181 * modules/uniconv/u16-strconv-to-enc-tests: New file.
19182 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
19184 * modules/uniconv/u8-strconv-to-enc: New file.
19185 * lib/uniconv/u8-strconv-to-enc.c: New file.
19186 * modules/uniconv/u8-strconv-to-enc-tests: New file.
19187 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
19189 * modules/uniconv/u32-strconv-from-enc: New file.
19190 * lib/uniconv/u32-strconv-from-enc.c: New file.
19191 * modules/uniconv/u32-strconv-from-enc-tests: New file.
19192 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
19194 * modules/uniconv/u16-strconv-from-enc: New file.
19195 * lib/uniconv/u16-strconv-from-enc.c: New file.
19196 * modules/uniconv/u16-strconv-from-enc-tests: New file.
19197 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
19199 * modules/uniconv/u8-strconv-from-enc: New file.
19200 * lib/uniconv/u8-strconv-from-enc.c: New file.
19201 * lib/uniconv/u-strconv-from-enc.h: New file.
19202 * modules/uniconv/u8-strconv-from-enc-tests: New file.
19203 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
19205 * modules/uniconv/u32-conv-from-enc: New file.
19206 * lib/uniconv/u32-conv-from-enc.c: New file.
19207 * modules/uniconv/u32-conv-from-enc-tests: New file.
19208 * tests/uniconv/test-u32-conv-from-enc.c: New file.
19210 * modules/uniconv/u16-conv-from-enc: New file.
19211 * lib/uniconv/u16-conv-from-enc.c: New file.
19212 * lib/uniconv/u-conv-from-enc.h: New file.
19213 * modules/uniconv/u16-conv-from-enc-tests: New file.
19214 * tests/uniconv/test-u16-conv-from-enc.c: New file.
19216 * modules/uniconv/u8-conv-from-enc: New file.
19217 * lib/uniconv/u8-conv-from-enc.c: New file.
19218 * modules/uniconv/u8-conv-from-enc-tests: New file.
19219 * tests/uniconv/test-u8-conv-from-enc.c: New file.
19221 * modules/uniconv/base: New file.
19222 * lib/uniconv.h: New file.
19224 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
19226 * doc/gnulib-tool.texi (Initial import): Update to match current
19227 behavior with strdup module.
19228 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
19229 * lib/memmem.h: Remove; all uses removed. This is now done
19231 * lib/mempcpy.h: Likewise.
19232 * lib/memrchr.h: Likewise.
19233 * lib/stpcpy.h: Likewise.
19234 * lib/stpncpy.h: Likewise.
19235 * lib/strcase.h: Likewise.
19236 * lib/strchrnul.h: Likewise.
19237 * lib/strdup.h: Likewise.
19238 * lib/strndup.h: Likewise.
19239 * lib/strnlen.h: Likewise.
19240 * lib/strpbrk.h: Likewise.
19241 * lib/strsep.h: Likewise.
19242 * lib/strstr.h: Likewise.
19243 * lib/strtok_r.h: Likewise.
19244 * lib/string_.h: New file.
19245 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
19246 Rely on <string.h> instead.
19247 * lib/canon-host.c: Likewise.
19248 * lib/chdir-long.c: Likewise.
19249 * lib/concatpath.c: Likewise.
19250 * lib/exclude.c: Likewise.
19251 * lib/fchdir.c: Likewise.
19252 * lib/getaddrinfo.c: Likewise.
19253 * lib/getcwd.c: Likewise.
19254 * lib/getsubopt.c: Likewise.
19255 * lib/glob.c: Likewise.
19256 * lib/hard-locale.c: Likewise.
19257 * lib/iconvme.c: Likewise.
19258 * lib/javacomp.c: Likewise.
19259 * lib/mempcpy.c: Likewise.
19260 * lib/memrchr.c: Likewise.
19261 * lib/regex_internal.h: Likewise.
19262 * lib/stpncpy.c: Likewise.
19263 * lib/strcasecmp.c: Likewise.
19264 * lib/strchrnul.c: Likewise.
19265 * lib/strdup.c: Likewise.
19266 * lib/striconv.c: Likewise.
19267 * lib/striconveh.c: Likewise.
19268 * lib/striconveha.c: Likewise.
19269 * lib/strncasecmp.c: Likewise.
19270 * lib/strndup.c: Likewise.
19271 * lib/strnlen.c: Likewise.
19272 * lib/strsep.c: Likewise.
19273 * lib/strstr.c: Likewise.
19274 * lib/strtok_r.c: Likewise.
19275 * lib/userspec.c: Likewise.
19276 * lib/w32spawn.h: Likewise.
19277 * lib/xstrndup.c: Likewise.
19278 * lib/mountlist.c (strstr): Remove decl.
19279 * m4/string_h.m4: New file.
19280 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
19281 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
19282 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
19283 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
19284 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
19285 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
19286 Set REPLACE_STRCASECMP if necessary.
19287 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
19288 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
19289 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
19290 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
19291 HAVE_DECL_STRDUP if necessary.
19292 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
19293 since gl_FUNC_STRNDUP does that now.
19294 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
19295 Check for decl here...
19296 (gl_PREREQ_STRNLEN): ... not here.
19297 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
19298 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
19299 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
19300 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
19302 * modules/string: New file.
19303 * modules/memmem (Files): Remove special-purpose include file.
19304 (Depends-on): Add string.
19305 (Include): Include <string.h>, not the removed file.
19306 * modules/mempcpy: Likewise.
19307 * modules/memrchr: Likewise.
19308 * modules/stpcpy: Likewise.
19309 * modules/stpncpy: Likewise.
19310 * modules/strcase: Likewise.
19311 * modules/strchrnul: Likewise.
19312 * modules/strdup: Likewise.
19313 * modules/strndup: Likewise.
19314 * modules/strnlen: Likewise.
19315 * modules/strpbrk: Likewise.
19316 * modules/strsep: Likewise.
19317 * modules/strstr: Likewise.
19318 * modules/strtok_r: Likewise.
19319 * tests/test-dirname.c: Don't include "strdup.h", since
19320 <string.h> now suffices.
19321 * tests/test-memmem.c: Don't include "memmem.h", since
19322 <string.h> now suffices.
19324 2007-01-25 Bruno Haible <bruno@clisp.org>
19326 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
19329 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
19330 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
19331 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
19332 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
19334 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
19335 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
19336 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
19337 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
19338 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
19339 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
19341 2007-01-24 Bruno Haible <bruno@clisp.org>
19343 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
19344 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
19345 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
19346 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
19348 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
19349 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
19350 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
19351 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
19352 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
19353 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
19355 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
19357 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
19358 Reported by Ralf Wildenhues.
19360 2007-01-24 Bruno Haible <bruno@clisp.org>
19362 Drop AC_REQUIRE calls that are redundant with the module dependencies.
19363 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
19365 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
19366 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
19367 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
19369 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
19371 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
19372 Don't use 'exit'; just return from 'main'.
19373 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
19375 * lib/fnmatch_.h: Readjust white space and comments to match
19376 glibc, to avoid spurious diffs.
19378 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
19380 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
19381 2004-12-01 change by Jakub Jelinek, since this code won't compile
19382 if !LIBC. Problem reported by Bob Proulx.
19384 2007-01-23 Bruno Haible <bruno@clisp.org>
19386 * lib/striconveh.c: Include c-strcaseeq.h.
19387 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
19388 * modules/striconveh (Depends-on): Add c-strcaseeq.
19390 2007-01-23 Bruno Haible <bruno@clisp.org>
19392 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
19394 * modules/c-strcaseeq: New file.
19395 * lib/c-strcaseeq.h: New file.
19397 * modules/streq: New file.
19398 * lib/streq.h: New file.
19400 2007-01-23 Bruno Haible <bruno@clisp.org>
19402 * modules/striconveha-tests: New file.
19403 * tests/test-striconveha.c: New file.
19405 * lib/striconveha.h: Include <stdbool.h>.
19406 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
19407 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
19408 (mem_iconveha_notranslit): Renamed from mem_iconveha.
19409 (mem_iconveha): New function.
19410 (str_iconveha_notranslit): Renamed from str_iconveha.
19411 (str_iconveha): New function.
19412 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
19415 2007-01-23 Bruno Haible <bruno@clisp.org>
19417 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
19418 encodings without forgiving before trying any encoding with handler.
19419 (str_iconveha): Try all encodings without forgiving before trying any
19420 encoding with handler.
19422 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
19424 Import the following changes from libc.
19426 2005-10-14 Ulrich Drepper <drepper@redhat.com>
19428 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
19430 2004-12-01 Jakub Jelinek <jakub@redhat.com>
19432 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
19433 normal_bracket label.
19435 2004-09-01 Jakub Jelinek <jakub@redhat.com>
19438 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
19439 to normal_bracket after fetching the next character.
19441 2007-01-22 Bruno Haible <bruno@clisp.org>
19443 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
19445 * lib/striconveh.c (iconv_carefully_1): New function.
19446 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
19448 (str_cd_iconveh): Update.
19449 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
19450 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
19451 * tests/test-striconveh.c (MAGIC): New macro.
19452 (new_offsets): New function.
19453 (main): Test call with and without offsets.
19455 2007-01-22 Bruno Haible <bruno@clisp.org>
19457 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
19458 * modules/sys_select (Makefile.am): Likewise.
19459 * modules/sys_socket (Makefile.am): Likewise.
19460 * modules/sys_time (Makefile.am): Likewise.
19462 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
19464 * modules/gettimeofday (License): Change from GPL to LGPL, since
19465 gettimeofday is a library function.
19467 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19469 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
19471 2007-01-21 Bruno Haible <bruno@clisp.org>
19473 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
19475 2007-01-21 Bruno Haible <bruno@clisp.org>
19477 * modules/striconveha: New file.
19478 * lib/striconveha.h: New file.
19479 * lib/striconveha.c: New file.
19480 * MODULES.html.sh (Internationalization functions): Add striconveha.
19481 * lib/striconv.c (str_iconv): Optimize the case of an empty input
19483 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
19485 2007-01-21 Bruno Haible <bruno@clisp.org>
19487 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
19488 * lib/striconveh.c (str_iconveh): Likewise.
19490 2007-01-21 Bruno Haible <bruno@clisp.org>
19492 * lib/striconveh.h (mem_iconveh): New declaration.
19493 * lib/striconveh.c (mem_iconveh): New function.
19494 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
19496 2007-01-21 Bruno Haible <bruno@clisp.org>
19498 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
19500 * lib/striconveh.h (mem_cd_iconveh): Change specification.
19501 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
19502 original result buffer.
19503 (str_cd_iconveh): Update.
19504 * tests/test-striconveh.c (main): Update.
19506 * lib/striconv.h (mem_cd_iconv): Change specification.
19507 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
19509 (str_cd_iconv): Update.
19510 * tests/test-striconv.c (main): Update.
19512 2007-01-21 Bruno Haible <bruno@clisp.org>
19514 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
19516 2007-01-20 Jim Meyering <jim@meyering.net>
19518 * lib/userspec.c (parse_with_separator): If a user or group string
19519 starts with "+", skip the corresponding name-to-ID look-up, since
19520 such a look-up must fail: user and group names may not include "+".
19522 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
19524 * lib/poll.c: Include sys/time.h and time.h unconditionally,
19525 since we now assume the sys_time module.
19526 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
19527 check for sys/time.h; no longer needed.
19528 * modules/poll (Depends-on): Depend on sys_time.
19530 2007-01-18 Bruno Haible <bruno@clisp.org>
19532 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
19533 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
19535 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
19538 * tests/test-gettimeofday.c: Include <time.h>.
19539 (dummy): Remove variable.
19541 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
19542 gl_HEADER_SYS_TIME_H.
19543 (gl_HEADER_SYS_TIME_H): New macro.
19545 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
19546 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19547 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19548 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
19549 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19550 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
19551 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
19552 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19553 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
19554 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
19555 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19557 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
19558 last change; it caused a compilation error when cross-compiling to
19561 2007-01-18 Jim Meyering <jim@meyering.net>
19563 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
19564 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
19565 than the race-prone "test -d sys || mkdir sys".
19566 (configure.ac): Use AC_PROG_MKDIR_P.
19567 * modules/sys_select: Likewise.
19568 * modules/sys_socket: Likewise.
19569 * modules/sys_time: Likewise.
19571 2007-01-18 Eric Blake <ebb9@byu.net>
19573 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
19574 replace gettimeofday.
19575 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
19576 name, to avoid infinite recursion.
19578 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
19580 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
19582 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
19583 assume timespec.h defines struct timeval.
19584 * lib/settime.c: Likewise.
19585 * lib/utimens.c: Likewise.
19586 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
19587 since we now assume the gettimeofday module.
19588 * lib/tempname.c (__gen_tempname): Likewise.
19589 * lib/gettimeofday.h: Remove.
19590 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
19591 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
19592 Include <time.h>, for 'time()'.
19593 (localtime_buffer_addr): Also use this workaround if
19594 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
19595 to simplify the uses. All uses changed.
19596 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
19597 that #undef is inside {}, and 'const' follows type name consistently.
19598 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
19599 (gettimeofday): Do not use the maximum possible value for
19600 tv->tv_usec, since that might break usages other than ls.c.
19601 Instead, we'll leave ls.c alone. This undoes today's patch
19602 by Bruno. Add a compile-time warning for 1s-clock resolution;
19603 we've never observed the problem but might as well keep the
19605 * lib/nanosleep.c: Include timespec.h first, for interface check.
19606 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
19607 now assume the sys_time module.
19608 * lib/tempname.c: Likewise.
19609 * lib/timespec.h: Likewise.
19610 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
19612 * lib/strftime.c: Likewise.
19613 * lib/timespec.h: Likewise.
19614 * lib/posixtm.c: Include posixtm.h first, for interface check.
19615 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
19616 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
19617 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
19618 * lib/sys_time_.h: New file.
19619 * lib/timespec.h (struct timespec): Use long int, not long.
19620 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
19621 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
19622 Remove obsolescent call to AC_HEADER_TIME.
19623 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19624 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19625 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
19626 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
19628 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
19629 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
19630 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
19631 into the sys_time module. Check for gettimeofday just once.
19632 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
19633 for gettimeofday signature to just check the signature. Merely
19634 compile it, since linking doesn't test signature. Improve test for
19635 whether gettimeofday.o is actually needed.
19636 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
19637 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
19638 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
19639 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19640 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
19641 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
19642 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
19643 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
19644 than worrying about sys/time.h.
19645 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
19646 Don't bother worrying about TIME_WITH_SYS_TIME.
19647 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
19648 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
19649 * m4/sys_time_h.m4: New file.
19650 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
19651 Don't include sys/time.h. Return from main rather than exiting.
19652 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
19654 * modules/gethrxtime (Depends-on): Add sys_time.
19655 * modules/gettime (Depends-on): Likewise.
19656 * modules/gettimeofday (Depends-on): Likewise.
19657 * modules/nanosleep (Depends-on): Likewise.
19658 * modules/settime (Depends-on): Likewise.
19659 * modules/tempname (Depends-on): Likewise.
19660 * modules/utimens (Depends-on): Likewise.
19661 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
19662 (Include:) Change back to <sys/time.h>.
19663 (Maintainer:) Add self.
19664 * modules/sys_time: New file.
19665 * modules/tempname (Depends-on): Add gettimeofday.
19666 * tests/test-gettimeofday.c: Include <sys/time.h>
19667 rather than gettimeofday.h.
19669 2007-01-17 Bruno Haible <bruno@clisp.org>
19671 * gnulib-tool (func_get_license): Revert last patch. Instead, let
19672 the license default to GPL.
19673 (func_create_testdir): Don't complain if a module is LGPL and its
19674 tests module depends on GPLed modules.
19676 2007-01-17 Bruno Haible <bruno@clisp.org>
19678 * lib/gettimeofday.c (gettimeofday): Add code for the case
19679 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
19680 maximum possible value for tv->tv_usec, rather than the minimum one.
19682 2005-10-08 Martin Lambers <marlam@marlam.de>
19683 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
19684 2007-01-16 Bruno Haible <bruno@clisp.org>
19686 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
19687 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
19688 gl_FUNC_GETTIMEOFDAY.
19689 (Include): Add gettimeofday.h.
19690 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
19691 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
19692 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
19693 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
19694 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
19695 * lib/gettimeofday.h: New file.
19696 * lib/gettimeofday.c: Include <sys/timeb.h>.
19697 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
19698 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19699 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
19700 fall back on time().
19702 * tests/test-gettimeofday.c: New file.
19703 * modules/gettimeofday-tests: New file.
19705 2007-01-16 Eric Blake <ebb9@byu.net>
19707 * modules/fnmatch (Depends-on): Depend on wchar.
19708 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
19709 * m4/fnmatch.m4: Likewise.
19710 * modules/mbchar (Makefile.am): Assume <wchar.h>.
19711 * m4/mbchar.m4: Likewise.
19712 * modules/mbswidth (Depends-on): Depend on wchar.
19713 * lib/mbswidth.c: Assume <wchar.h>.
19714 * m4/mbswidth.m4: Likewise.
19715 * modules/quotearg (Depends-on): Depend on wchar.
19716 * lib/quotearg.c: Assume <wchar.h>.
19717 * m4/quotearg.m4: Likewise.
19718 * modules/regex (Depends-on): Depend on wchar.
19719 * lib/regex_internal.h: Assume <wchar.h>.
19720 * m4/regex.m4: Likewise.
19721 * modules/stdint (Depends-on): Depend on wchar.
19722 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
19723 * m4/stdint.m4: Likewise.
19724 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
19725 * modules/strftime (Depends-on): Depend on wchar.
19726 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
19727 * modules/strtol (Depends-on): Depend on wchar.
19728 * lib/strtol.c: Assume <wchar.h>.
19729 * modules/wcwidth (Depends-on): Depend on wchar.
19730 * lib/wcwidth.h: Assume <wchar.h>.
19731 * m4/wcwidth.m4: Likewise.
19733 2007-01-16 Bruno Haible <bruno@clisp.org>
19735 * modules/csharpexec-script: New, created from...
19736 * modules/csharpexec: ... this.
19738 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
19740 * modules/javaexec-script: New, created from...
19741 * modules/javaexec: ... this.
19743 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19745 * modules/poll (Dependencies): Add sys_select.
19747 2007-01-15 Jim Meyering <jim@meyering.net>
19749 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
19750 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
19751 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
19752 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
19754 2007-01-15 Bruno Haible <bruno@clisp.org>
19756 * modules/striconveh: New file.
19757 * lib/striconveh.h: New file.
19758 * lib/striconveh.c: New file.
19759 * MODULES.html.sh (Internationalization functions): Add striconveh.
19761 * modules/striconveh-tests: New file.
19762 * tests/test-striconveh.c: New file.
19764 2007-01-15 Bruno Haible <bruno@clisp.org>
19766 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
19767 not from GNU libiconv or GNU libc.
19769 2007-01-15 Bruno Haible <bruno@clisp.org>
19771 * doc/gnulib-intro.texi (Copyright): Explain the different license
19772 terms for module descriptions, autoconf macros, tests, documentation.
19774 2007-01-14 Bruno Haible <bruno@clisp.org>
19776 * modules/striconv-tests: New file.
19777 * tests/test-striconv.c: New file.
19779 2007-01-14 Bruno Haible <bruno@clisp.org>
19781 * modules/iconv-tests: New file.
19782 * tests/test-iconv.c: New file.
19784 2007-01-14 Bruno Haible <bruno@clisp.org>
19786 * gnulib-tool (func_get_license): For test modules, use the license of
19789 2007-01-14 Bruno Haible <bruno@clisp.org>
19791 * modules/iconv (Include): Clarify that <iconv.h> can only be included
19792 if iconv is found to exist.
19794 2007-01-14 Bruno Haible <bruno@clisp.org>
19796 * modules/c-ctype-tests: New file.
19797 * tests/test-c-ctype.c: New file.
19799 2007-01-14 Bruno Haible <bruno@clisp.org>
19801 * modules/binary-io-tests: New file.
19802 * tests/test-binary-io.sh: New file.
19803 * tests/test-binary-io.c: New file.
19805 2007-01-14 Bruno Haible <bruno@clisp.org>
19807 * modules/array-oset-tests: New file.
19808 * tests/test-array_oset.c: New file.
19810 2007-01-14 Bruno Haible <bruno@clisp.org>
19812 * modules/array-list-tests: New file.
19813 * tests/test-array_list.c: New file.
19815 2007-01-14 Bruno Haible <bruno@clisp.org>
19817 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
19819 Reported by Simon Josefsson in
19820 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
19822 2007-01-14 Bruno Haible <bruno@clisp.org>
19824 * modules/allocsa-tests: New file.
19825 * tests/test-allocsa.c: New file.
19827 2007-01-14 Bruno Haible <bruno@clisp.org>
19829 * modules/fchdir (Depends-on): Add absolute-header.
19830 * modules/unistd (Depends-on): Likewise.
19832 2006-12-30 Bruno Haible <bruno@clisp.org>
19834 * modules/fchdir: New file.
19835 * modules/unistd (Files): Add lib/unistd_.h.
19836 (Makefile.am): Generate unistd.h from unistd_.h.
19837 * lib/fchdir.c: New file.
19838 * lib/dirent_.h: New file.
19839 * lib/unistd_.h: New file.
19840 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
19841 * m4/fchdir.m4: New file.
19842 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
19843 (gl_HEADER_UNISTD): Invoke it.
19844 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
19846 * lib/backupfile.c (opendir, closedir): Undefine.
19847 * lib/chown.c (open, close): Undefine.
19848 * lib/clean-temp.c (open, close): Undefine.
19849 * lib/copy-file.c (open, close): Undefine.
19850 * lib/execute.c (open, close): Undefine.
19851 * lib/fsusage.c (open, close): Undefine.
19852 * lib/gc-gnulib.c (open, close): Undefine.
19853 * lib/getcwd.c (opendir, closedir): Undefine.
19854 * lib/glob.c (opendir, closedir): Undefine.
19855 * lib/javacomp.c (open, close): Undefine.
19856 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
19857 * lib/openat-proc.c (open, close): Undefine.
19858 * lib/pagealign_alloc.c (open, close): Undefine.
19859 * lib/pipe.c (open, close): Undefine.
19860 * lib/progreloc.c (open, close): Undefine.
19861 * lib/savedir.c (opendir, closedir): Undefine.
19862 * lib/utime.c (open, close): Undefine.
19863 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
19865 2007-01-10 Bruno Haible <bruno@clisp.org>
19867 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
19869 2007-01-12 Eric Blake <ebb9@byu.net>
19871 Provide a robust <wchar.h>. Further simplifications are now
19872 possible in other modules, but not included here.
19873 * modules/wchar: New module.
19874 * m4/wchar.m4: New file.
19875 * lib/wchar_.h: Likewise.
19876 * modules/mbchar (Depends-on): Depend on wchar, as the first use
19878 * MODULES.html.sh (Extended multibyte and wide character utilities):
19881 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
19883 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
19884 to a reasonable default for memory allocation.
19885 (xreadlink): Don't allocate a huge buffer, to work around a buggy
19886 file system that reports garbage st_size values for symlinks.
19887 Problem reported by Liyang Hu.
19889 2007-01-11 Simon Josefsson <simon@josefsson.org>
19891 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
19892 Emacs .#* auto-save files).
19894 2007-01-11 Bruno Haible <bruno@clisp.org>
19896 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
19899 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
19901 Use @...@ consistently in lib/wctype_.h.
19902 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
19903 on it being set to 1 or 0.
19904 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
19905 go back to AC_SUBSTing it.
19906 * modules/wctype (Makefile.am): Undo previous change.
19908 2007-01-10 Eric Blake <ebb9@byu.net>
19910 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
19911 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
19912 * modules/wctype (Makefile.am): Likewise.
19913 Reported by Chris McGuire.
19915 2007-01-10 Jim Meyering <jim@meyering.net>
19917 fts.c: a small readability/maintainability improvement
19918 * lib/fts.c (fts_read): Make this code slightly more readable and
19919 maintainable by hoisting the "sp->fts_cur = p" assignments to
19920 immediately follow the statements that set P. Derived from
19921 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
19923 2007-01-10 Eric Blake <ebb9@byu.net>
19925 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
19926 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
19927 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19928 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19929 Reported by Chris McGuire.
19931 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19933 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
19936 2007-01-09 Bruno Haible <bruno@clisp.org>
19938 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
19939 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
19941 (func_module): Use them.
19943 2007-01-09 Bruno Haible <bruno@clisp.org>
19945 * modules/unistr/base: New file.
19946 * lib/unistr.h: New file.
19948 * modules/unistr/u8-to-u16: New file.
19949 * lib/unistr/u8-to-u16.c: New file.
19951 * modules/unistr/u8-to-u32: New file.
19952 * lib/unistr/u8-to-u32.c: New file.
19954 * modules/unistr/u16-to-u8: New file.
19955 * lib/unistr/u16-to-u8.c: New file.
19957 * modules/unistr/u16-to-u32: New file.
19958 * lib/unistr/u16-to-u32.c: New file.
19960 * modules/unistr/u32-to-u8: New file.
19961 * lib/unistr/u32-to-u8.c: New file.
19963 * modules/unistr/u32-to-u16: New file.
19964 * lib/unistr/u32-to-u16.c: New file.
19966 * modules/unistr/u8-check: New file.
19967 * modules/unistr/u16-check: New file.
19968 * modules/unistr/u32-check: New file.
19969 * lib/unistr/u8-check.c: New file.
19970 * lib/unistr/u16-check.c: New file.
19971 * lib/unistr/u32-check.c: New file.
19973 * modules/unistr/u8-chr: New file.
19974 * modules/unistr/u16-chr: New file.
19975 * modules/unistr/u32-chr: New file.
19976 * lib/unistr/u8-chr.c: New file.
19977 * lib/unistr/u16-chr.c: New file.
19978 * lib/unistr/u32-chr.c: New file.
19980 * modules/unistr/u8-cmp: New file.
19981 * modules/unistr/u16-cmp: New file.
19982 * modules/unistr/u32-cmp: New file.
19983 * lib/unistr/u8-cmp.c: New file.
19984 * lib/unistr/u16-cmp.c: New file.
19985 * lib/unistr/u32-cmp.c: New file.
19987 * modules/unistr/u8-cpy: New file.
19988 * modules/unistr/u16-cpy: New file.
19989 * modules/unistr/u32-cpy: New file.
19990 * lib/unistr/u8-cpy.c: New file.
19991 * lib/unistr/u16-cpy.c: New file.
19992 * lib/unistr/u32-cpy.c: New file.
19993 * lib/unistr/u-cpy.h: New file.
19995 * modules/unistr/u8-cpy-alloc: New file.
19996 * modules/unistr/u16-cpy-alloc: New file.
19997 * modules/unistr/u32-cpy-alloc: New file.
19998 * lib/unistr/u8-cpy-alloc.c: New file.
19999 * lib/unistr/u16-cpy-alloc.c: New file.
20000 * lib/unistr/u32-cpy-alloc.c: New file.
20001 * lib/unistr/u-cpy-alloc.h: New file.
20003 * modules/unistr/u8-endswith: New file.
20004 * modules/unistr/u16-endswith: New file.
20005 * modules/unistr/u32-endswith: New file.
20006 * lib/unistr/u8-endswith.c: New file.
20007 * lib/unistr/u16-endswith.c: New file.
20008 * lib/unistr/u32-endswith.c: New file.
20009 * lib/unistr/u-endswith.h: New file.
20011 * modules/unistr/u8-mblen: New file.
20012 * modules/unistr/u16-mblen: New file.
20013 * modules/unistr/u32-mblen: New file.
20014 * lib/unistr/u8-mblen.c: New file.
20015 * lib/unistr/u16-mblen.c: New file.
20016 * lib/unistr/u32-mblen.c: New file.
20018 * modules/unistr/u8-mbtouc: New file.
20019 * modules/unistr/u16-mbtouc: New file.
20020 * modules/unistr/u32-mbtouc: New file.
20021 * lib/unistr/u8-mbtouc.c: New file.
20022 * lib/unistr/u16-mbtouc.c: New file.
20023 * lib/unistr/u32-mbtouc.c: New file.
20025 * modules/unistr/u8-mbtouc-safe: New file.
20026 * modules/unistr/u16-mbtouc-safe: New file.
20027 * modules/unistr/u32-mbtouc-safe: New file.
20028 * lib/unistr/u8-mbtouc-safe.c: New file.
20029 * lib/unistr/u16-mbtouc-safe.c: New file.
20030 * lib/unistr/u32-mbtouc-safe.c: New file.
20032 * modules/unistr/u8-move: New file.
20033 * modules/unistr/u16-move: New file.
20034 * modules/unistr/u32-move: New file.
20035 * lib/unistr/u8-move.c: New file.
20036 * lib/unistr/u16-move.c: New file.
20037 * lib/unistr/u32-move.c: New file.
20038 * lib/unistr/u-move.h: New file.
20040 * modules/unistr/u8-next: New file.
20041 * modules/unistr/u16-next: New file.
20042 * modules/unistr/u32-next: New file.
20043 * lib/unistr/u8-next.c: New file.
20044 * lib/unistr/u16-next.c: New file.
20045 * lib/unistr/u32-next.c: New file.
20047 * modules/unistr/u8-prev: New file.
20048 * modules/unistr/u16-prev: New file.
20049 * modules/unistr/u32-prev: New file.
20050 * lib/unistr/u8-prev.c: New file.
20051 * lib/unistr/u16-prev.c: New file.
20052 * lib/unistr/u32-prev.c: New file.
20054 * modules/unistr/u8-set: New file.
20055 * modules/unistr/u16-set: New file.
20056 * modules/unistr/u32-set: New file.
20057 * lib/unistr/u8-set.c: New file.
20058 * lib/unistr/u16-set.c: New file.
20059 * lib/unistr/u32-set.c: New file.
20060 * lib/unistr/u-set.h: New file.
20062 * modules/unistr/u8-startswith: New file.
20063 * modules/unistr/u16-startswith: New file.
20064 * modules/unistr/u32-startswith: New file.
20065 * lib/unistr/u8-startswith.c: New file.
20066 * lib/unistr/u16-startswith.c: New file.
20067 * lib/unistr/u32-startswith.c: New file.
20068 * lib/unistr/u-startswith.h: New file.
20070 * modules/unistr/u8-stpcpy: New file.
20071 * modules/unistr/u16-stpcpy: New file.
20072 * modules/unistr/u32-stpcpy: New file.
20073 * lib/unistr/u8-stpcpy.c: New file.
20074 * lib/unistr/u16-stpcpy.c: New file.
20075 * lib/unistr/u32-stpcpy.c: New file.
20076 * lib/unistr/u-stpcpy.h: New file.
20078 * modules/unistr/u8-stpncpy: New file.
20079 * modules/unistr/u16-stpncpy: New file.
20080 * modules/unistr/u32-stpncpy: New file.
20081 * lib/unistr/u8-stpncpy.c: New file.
20082 * lib/unistr/u16-stpncpy.c: New file.
20083 * lib/unistr/u32-stpncpy.c: New file.
20084 * lib/unistr/u-stpncpy.h: New file.
20086 * modules/unistr/u8-strcat: New file.
20087 * modules/unistr/u16-strcat: New file.
20088 * modules/unistr/u32-strcat: New file.
20089 * lib/unistr/u8-strcat.c: New file.
20090 * lib/unistr/u16-strcat.c: New file.
20091 * lib/unistr/u32-strcat.c: New file.
20092 * lib/unistr/u-strcat.h: New file.
20094 * modules/unistr/u8-strchr: New file.
20095 * modules/unistr/u16-strchr: New file.
20096 * modules/unistr/u32-strchr: New file.
20097 * lib/unistr/u8-strchr.c: New file.
20098 * lib/unistr/u16-strchr.c: New file.
20099 * lib/unistr/u32-strchr.c: New file.
20101 * modules/unistr/u8-strcmp: New file.
20102 * modules/unistr/u16-strcmp: New file.
20103 * modules/unistr/u32-strcmp: New file.
20104 * lib/unistr/u8-strcmp.c: New file.
20105 * lib/unistr/u16-strcmp.c: New file.
20106 * lib/unistr/u32-strcmp.c: New file.
20108 * modules/unistr/u8-strcpy: New file.
20109 * modules/unistr/u16-strcpy: New file.
20110 * modules/unistr/u32-strcpy: New file.
20111 * lib/unistr/u8-strcpy.c: New file.
20112 * lib/unistr/u16-strcpy.c: New file.
20113 * lib/unistr/u32-strcpy.c: New file.
20114 * lib/unistr/u-strcpy.h: New file.
20116 * modules/unistr/u8-strcspn: New file.
20117 * modules/unistr/u16-strcspn: New file.
20118 * modules/unistr/u32-strcspn: New file.
20119 * lib/unistr/u8-strcspn.c: New file.
20120 * lib/unistr/u16-strcspn.c: New file.
20121 * lib/unistr/u32-strcspn.c: New file.
20122 * lib/unistr/u-strcspn.h: New file.
20124 * modules/unistr/u8-strdup: New file.
20125 * modules/unistr/u16-strdup: New file.
20126 * modules/unistr/u32-strdup: New file.
20127 * lib/unistr/u8-strdup.c: New file.
20128 * lib/unistr/u16-strdup.c: New file.
20129 * lib/unistr/u32-strdup.c: New file.
20130 * lib/unistr/u-strdup.h: New file.
20132 * modules/unistr/u8-strlen: New file.
20133 * modules/unistr/u16-strlen: New file.
20134 * modules/unistr/u32-strlen: New file.
20135 * lib/unistr/u8-strlen.c: New file.
20136 * lib/unistr/u16-strlen.c: New file.
20137 * lib/unistr/u32-strlen.c: New file.
20138 * lib/unistr/u-strlen.h: New file.
20140 * modules/unistr/u8-strmblen: New file.
20141 * modules/unistr/u16-strmblen: New file.
20142 * modules/unistr/u32-strmblen: New file.
20143 * lib/unistr/u8-strmblen.c: New file.
20144 * lib/unistr/u16-strmblen.c: New file.
20145 * lib/unistr/u32-strmblen.c: New file.
20147 * modules/unistr/u8-strmbtouc: New file.
20148 * modules/unistr/u16-strmbtouc: New file.
20149 * modules/unistr/u32-strmbtouc: New file.
20150 * lib/unistr/u8-strmbtouc.c: New file.
20151 * lib/unistr/u16-strmbtouc.c: New file.
20152 * lib/unistr/u32-strmbtouc.c: New file.
20154 * modules/unistr/u8-strncat: New file.
20155 * modules/unistr/u16-strncat: New file.
20156 * modules/unistr/u32-strncat: New file.
20157 * lib/unistr/u8-strncat.c: New file.
20158 * lib/unistr/u16-strncat.c: New file.
20159 * lib/unistr/u32-strncat.c: New file.
20160 * lib/unistr/u-strncat.h: New file.
20162 * modules/unistr/u8-strncmp: New file.
20163 * modules/unistr/u16-strncmp: New file.
20164 * modules/unistr/u32-strncmp: New file.
20165 * lib/unistr/u8-strncmp.c: New file.
20166 * lib/unistr/u16-strncmp.c: New file.
20167 * lib/unistr/u32-strncmp.c: New file.
20169 * modules/unistr/u8-strncpy: New file.
20170 * modules/unistr/u16-strncpy: New file.
20171 * modules/unistr/u32-strncpy: New file.
20172 * lib/unistr/u8-strncpy.c: New file.
20173 * lib/unistr/u16-strncpy.c: New file.
20174 * lib/unistr/u32-strncpy.c: New file.
20175 * lib/unistr/u-strncpy.h: New file.
20177 * modules/unistr/u8-strnlen: New file.
20178 * modules/unistr/u16-strnlen: New file.
20179 * modules/unistr/u32-strnlen: New file.
20180 * lib/unistr/u8-strnlen.c: New file.
20181 * lib/unistr/u16-strnlen.c: New file.
20182 * lib/unistr/u32-strnlen.c: New file.
20183 * lib/unistr/u-strnlen.h: New file.
20185 * modules/unistr/u8-strpbrk: New file.
20186 * modules/unistr/u16-strpbrk: New file.
20187 * modules/unistr/u32-strpbrk: New file.
20188 * lib/unistr/u8-strpbrk.c: New file.
20189 * lib/unistr/u16-strpbrk.c: New file.
20190 * lib/unistr/u32-strpbrk.c: New file.
20191 * lib/unistr/u-strpbrk.h: New file.
20193 * modules/unistr/u8-strrchr: New file.
20194 * modules/unistr/u16-strrchr: New file.
20195 * modules/unistr/u32-strrchr: New file.
20196 * lib/unistr/u8-strrchr.c: New file.
20197 * lib/unistr/u16-strrchr.c: New file.
20198 * lib/unistr/u32-strrchr.c: New file.
20200 * modules/unistr/u8-strspn: New file.
20201 * modules/unistr/u16-strspn: New file.
20202 * modules/unistr/u32-strspn: New file.
20203 * lib/unistr/u8-strspn.c: New file.
20204 * lib/unistr/u16-strspn.c: New file.
20205 * lib/unistr/u32-strspn.c: New file.
20206 * lib/unistr/u-strspn.h: New file.
20208 * modules/unistr/u8-strstr: New file.
20209 * modules/unistr/u16-strstr: New file.
20210 * modules/unistr/u32-strstr: New file.
20211 * lib/unistr/u8-strstr.c: New file.
20212 * lib/unistr/u16-strstr.c: New file.
20213 * lib/unistr/u32-strstr.c: New file.
20214 * lib/unistr/u-strstr.h: New file.
20216 * modules/unistr/u8-strtok: New file.
20217 * modules/unistr/u16-strtok: New file.
20218 * modules/unistr/u32-strtok: New file.
20219 * lib/unistr/u8-strtok.c: New file.
20220 * lib/unistr/u16-strtok.c: New file.
20221 * lib/unistr/u32-strtok.c: New file.
20222 * lib/unistr/u-strtok.h: New file.
20224 * modules/unistr/u8-uctomb: New file.
20225 * modules/unistr/u16-uctomb: New file.
20226 * modules/unistr/u32-uctomb: New file.
20227 * lib/unistr/u8-uctomb.c: New file.
20228 * lib/unistr/u16-uctomb.c: New file.
20229 * lib/unistr/u32-uctomb.c: New file.
20231 * MODULES.html.sh (Unicode string functions): Add the new modules.
20233 2007-01-08 Bruno Haible <bruno@clisp.org>
20235 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
20236 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
20239 2007-01-08 Karl Berry <karl@gnu.org>
20241 * doc/error.texi: mention that main() fns must set program_name
20242 when progname is used.
20244 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
20246 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
20247 WCTYPE_H is empty, for the benefit of builds from non-distclean
20248 directories. Problem reported by Eric Blake in
20249 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
20251 2007-01-08 Bruno Haible <bruno@clisp.org>
20253 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
20254 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
20255 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
20256 PROVIDE_CANONICALIZE_FILENAME_MODE.
20257 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
20259 2007-01-08 Bruno Haible <bruno@clisp.org>
20261 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
20262 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
20263 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
20264 * lib/fts.c: Likewise.
20265 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
20267 2006-12-25 Bruno Haible <bruno@clisp.org>
20269 * modules/utf8-ucs4-safe: New file.
20270 * lib/utf8-ucs4-safe.h: New file.
20271 * lib/unistr/utf8-ucs4-safe.c: New file.
20273 * modules/utf16-ucs4-safe: New file.
20274 * lib/utf16-ucs4-safe.h: New file.
20275 * lib/unistr/utf16-ucs4-safe.c: New file.
20277 * MODULES.html.sh (Unicode string functions): Add the new modules.
20279 2007-01-08 Bruno Haible <bruno@clisp.org>
20281 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
20282 (Depends-on): Add unitypes.
20283 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
20284 (u8_mbtouc_aux): Move out to separate file.
20285 (u8_mbtouc): Use ucs4_t, uint8_t types.
20286 * lib/unistr/utf8-ucs4.c: New file.
20288 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
20289 (Depends-on): Add unitypes.
20290 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
20291 (u16_mbtouc_aux): Move out to separate file.
20292 (u16_mbtouc): Use ucs4_t, uint16_t types.
20293 * lib/unistr/utf16-ucs4.c: New file.
20295 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
20296 (Depends-on): Add unitypes.
20297 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
20298 (u8_uctomb_aux): Move out to separate file.
20299 (u8_uctomb): Use ucs4_t, uint8_t types.
20300 * lib/unistr/ucs4-utf8.c: New file.
20302 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
20303 (Depends-on): Add unitypes.
20304 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
20305 (u16_uctomb_aux): Move out to separate file.
20306 (u16_uctomb): Use ucs4_t, uint16_t types.
20307 * lib/unistr/ucs4-utf16.c: New file.
20309 2006-12-25 Bruno Haible <bruno@clisp.org>
20311 * modules/unitypes: New file.
20312 * lib/unitypes.h: New file.
20313 * MODULES.html.sh (func_all_modules): New section "Unicode string
20314 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
20315 this section. Add unitypes.
20317 2007-01-08 Bruno Haible <bruno@clisp.org>
20319 Avoid variable names that conflict with those from libtool.
20320 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
20321 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
20322 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
20323 library_names_spec to acl_library_names_spec, hardcode_* to
20325 Reported by Ralf Wildenhues.
20327 2007-01-08 Bruno Haible <bruno@clisp.org>
20329 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
20331 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
20333 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
20334 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
20336 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
20338 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
20339 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
20340 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
20341 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
20343 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
20345 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
20346 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
20347 GC_USE_<algorithm>.
20348 * lib/gc-libgcrypt.c: Likewise.
20349 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
20350 * modules/gc-arctwo (configure.ac): Likewise.
20351 * modules/gc-des (configure.ac): Likewise.
20352 * modules/gc-hmac-md5 (configure.ac): Likewise.
20353 * modules/gc-hmac-sha1 (configure.ac): Likewise.
20354 * modules/gc-md2 (configure.ac): Likewise.
20355 * modules/gc-md4 (configure.ac): Likewise.
20356 * modules/gc-md5 (configure.ac): Likewise.
20357 * modules/gc-random (configure.ac): Likewise.
20358 * modules/gc-rijndael (configure.ac): Likewise.
20359 * modules/gc-sha1 (configure.ac): Likewise.
20361 2007-01-08 Bruno Haible <bruno@clisp.org>
20363 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
20365 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
20367 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
20369 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
20370 * modules/fcntl-safer (configure.ac): Likewise.
20371 * modules/fopen-safer (configure.ac): Likewise.
20372 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
20373 GNULIB_FWRITEERROR macro definition.
20375 2007-01-08 Bruno Haible <bruno@clisp.org>
20377 * m4/gnulib-common.m4: New file.
20378 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
20379 (func_get_filelist): Add m4/gnulib-common.m4.
20381 2007-01-08 Bruno Haible <bruno@clisp.org>
20383 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
20386 2007-01-08 Jim Meyering <jim@meyering.net>
20388 Use a more robust test for a "can't happen" condition.
20389 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
20390 narrowed the st_size value. Presuming the "can't happen" condition
20391 is true, that narrowing could conceivably convert an invalid st_size
20392 value into a valid one. Instead, use a change based on Matthew
20393 Woehlke's original patch.
20395 Slight readability improvement: use an assert-like macro
20396 in place of literal "abort ()" uses.
20397 * lib/fts.c (fts_assert): Define.
20398 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
20399 Use this macro instead of a bare 'abort'.
20401 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
20403 Don't worry about using IRIX 5.3's wctype.h broken definitions;
20404 simply work around them.
20405 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
20406 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
20407 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
20409 Don't bother to define as macros, since the standard doesn't require it.
20410 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
20411 longer worry about IRIX 5.3.
20412 (HAVE_WCTYPE_CTMP_BUG): Remove.
20414 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
20416 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
20417 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
20418 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
20419 Problems reported by Georg Schwarz for IRIX 5.3.
20421 * gnulib-tool (autoconf_minversion): Take the maximum version number
20422 found, not the minimum. Problem reported by James Youngman.
20424 2007-01-03 Karl Berry <karl@gnu.org>
20426 * doc/error.texi: new file, explaining interaction with progname.
20427 * doc/gnulib.texi: include it. Update copyright.
20429 2007-01-03 Simon Josefsson <simon@josefsson.org>
20431 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
20432 AC_CANONICAL_HOST, to improve autobuild outputs.
20434 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
20435 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20437 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
20438 sockets, server sockets, and other file descriptors. Count errors
20439 to compute the return value. Reorder the code a bit to be easier
20440 to follow. Don't set event bits that were not requested (except
20441 POLLERR and POLLHUP).
20443 2007-01-01 Bruno Haible <bruno@clisp.org>
20445 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
20447 2007-01-03 Jim Meyering <jim@meyering.net>
20449 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
20451 2007-01-02 Bruno Haible <bruno@clisp.org>
20453 * modules/settime (Include): Require timespec.h.
20454 * modules/nanosleep (Include): Likewise.
20456 2007-01-01 Bruno Haible <bruno@clisp.org>
20458 * gnulib-tool (func_emit_copyright_notice): Bump year.
20459 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
20461 2007-01-01 Bruno Haible <bruno@clisp.org>
20463 Improve support for OpenBSD.
20464 * build-aux/config.rpath (libname_spec): Export.
20465 (library_names_spec): New variable. Export.
20466 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
20467 library_names_spec from the config.rpath output. Locate shared library
20468 through the name pattern in library_names_spec.
20470 2007-01-01 Eric Blake <ebb9@byu.net>
20472 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
20474 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
20476 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
20477 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
20478 assume the C locale, and avoid an "eval" that could cause trouble.
20479 Problem with SORT reported by Bob Proulx.
20481 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
20482 Define. Trivial patch from Henning Nielsen Lund, originally
20483 sent to bug-grep@gnu.org today.
20485 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
20487 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
20488 struct stat. Problem reported by Henning Nielsen Lund.
20489 * lib/acl.c: Include acl.h first, to check interface. Don't
20490 bother to include sys/types.h and sys/stat.h again.
20492 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
20494 Import the following change from libc; problem reported by
20497 2005-10-13 Ulrich Drepper <drepper@redhat.com>
20500 * lib/argp.h: Remove __NTH for __argp_usage inline function.
20502 2006-12-28 Jim Meyering <jim@meyering.net>
20504 * build-aux/announce-gen: Do not assume that the package
20505 builds any of tar.gz, tar.bz2, and .xdelta files.
20506 Suggestion from Simon Josefsson.
20508 2006-12-28 Simon Josefsson <simon@josefsson.org>
20510 * modules/announce-gen: New file.
20512 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
20514 * lib/mbchar.h: Just include <wctype.h>; the wctype module
20515 handles its gotchas now.
20516 * lib/mbswidth.c: Likewise.
20517 * lib/wcwidth.h: Likewise.
20518 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
20519 and iswcntrl; the wctype module does this stuff now.
20520 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20521 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20522 * modules/mbchar (Depends-on): Add wctype.
20523 * modules/mbswidth (Depends-on): Likewise.
20524 * modules/wcwidth (Depends-on): Likewise.
20526 2006-12-27 Eric Blake <ebb9@byu.net>
20528 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
20529 module uses more than what <wctype.h> is required to provide.
20531 2006-12-26 Eric Blake <ebb9@byu.net>
20533 * gnulib-tool (sed_extract_prog): Avoid space-tab.
20535 2006-12-26 Eric Blake <ebb9@byu.net>
20537 * modules/absolute-header: New module.
20538 * modules/fcntl (Depends-on): Depend on it.
20539 * modules/inttypes (Depends-on): Likewise.
20540 * modules/stdint (Depends-on): Likewise.
20541 * modules/sys_stat (Depends-on): Likewise.
20542 * modules/wctype (Depends-on): Likewise.
20543 * MODULES.html.sh (Support for building libraries and
20544 executables): Document it.
20546 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
20548 * gnulib-tool (SED): Remove, undoing previous change.
20549 The problem was that it broke coreutils on Solaris, because
20550 "sed --posix" leaked into a makefile.
20551 (sed): New alias, if 'alias' and GNU sed.
20553 2006-12-24 Jim Meyering <jim@meyering.net>
20555 Work around an fchownat bug in glibc-2.4:
20556 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
20557 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
20558 in spite of the -P option.
20559 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
20561 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
20562 * modules/openat (Files): Add lib/fchownat.c.
20563 * lib/openat.c (fchownat): Don't define here. Move to...
20564 * lib/fchownat.c: ...this new file.
20566 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
20568 Fix bug reported by Bruno Haible in
20569 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
20570 where quotearg.c didn't compile on Mac OS X 10.2 because it
20571 lacks <wchar.h> and wint_t.
20572 * lib/wctype_.h (__wctype_wint_t): New type.
20573 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
20574 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
20575 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
20576 Arg is now of type __wctype_wint_t, not wint_t.
20577 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
20578 substitute HAVE_WINT_T.
20579 * modules/wctype (Files): Add m4/wint_t.m4.
20580 (wctype.h): Substitute HAVE_WINT_T.
20582 2006-12-23 Bruno Haible <bruno@clisp.org>
20584 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
20586 2006-12-23 Bruno Haible <bruno@clisp.org>
20588 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
20590 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
20593 2006-12-22 Bruno Haible <bruno@clisp.org>
20595 * lib/copy-file.c: Include acl.h.
20596 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
20597 Close the file descriptors only after being done with copy_acl.
20598 * modules/copy-file (Depends-on): Add acl.
20600 2006-12-22 Bruno Haible <bruno@clisp.org>
20602 * gnulib-tool (SED): New variable.
20603 Use $SED instead of sed everywhere.
20605 2006-12-22 Bruno Haible <bruno@clisp.org>
20607 * modules/no-c++: New file.
20608 * m4/no-c++.m4: New file.
20609 * MODULES.html.sh (Support for building libraries and executables):
20612 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
20614 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
20615 Include <limits.h>, and use its INT_MAX to rewrite the
20616 j loop so that it does not overflow 'int'. Problem reported by
20618 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
20619 Play it safe by shifting left by 1 rather than multiplying by 2,
20620 as GCC is less likely to optimize this away when the value
20621 is signed (when it assumes overflow leads to undefined behavior).
20622 Also, don't assume time_t uses two's complement.
20624 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
20626 * MODULES.html.sh: New module wctype.
20627 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
20628 * lib/fnmatch.c: Don't bother to include <wchar.h> before
20629 <wctype.h>, since the new wctype module should fix this.
20630 * lib/quotearg.c: Include <wctype.h> unconditionally, since
20631 the wctype module should arrange for it.
20632 * lib/regex_internal.h: Likewise.
20633 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
20634 since the wctype module should handle this now.
20635 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
20636 * modules/fnmatch (Depends-on): Add wctype.
20637 * modules/quotearg (Depends-on): Likewise.
20638 * modules/regex (Depends-on): Likewise.
20640 2006-12-19 Bruno Haible <bruno@clisp.org>
20642 * lib/strdup.h [C++]: Wrap definitions in extern "C".
20643 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
20645 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20647 * modules/savewd (Depends-on): Fix dependency on fcntl.
20649 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
20651 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
20652 conforms to C99, rather than relying on the user's environment
20653 setting of STDINT_H.
20655 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
20656 and Eric Blake <ebb9@byu.net>
20658 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
20659 This is more consistent with the other defines here.
20660 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
20661 Port to z/OS. Problem reported by Paul Gilmartin.
20662 Change local vars to use gl_ prefix rather than ac_.
20663 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
20664 with other defines.
20665 * modules/double-slash-root: New module.
20666 * modules/dirname (Files): Remove m4/double-slash-root.m4.
20667 (Depends-on): Add double-slash-root.
20668 * MODULES.html.sh (File system functions): Mention new module.
20670 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
20672 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
20673 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
20674 This is for the benefit of gzip, which doesn't do i18n.
20676 2006-12-12 Jim Meyering <jim@meyering.net>
20678 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
20679 Reported by Andreas Schwab <schwab@suse.de>.
20681 2006-12-12 Bruno Haible <bruno@clisp.org>
20683 Merge these changes.
20684 2006-09-05 Bruno Haible <bruno@clisp.org>
20685 * lib/iconvme.c (iconv_string): No need to save and restore errno when
20686 iconv_alloc succeeded.
20687 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
20688 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
20689 test for " && dest " at the end - dest is always != NULL there. Call
20690 iconv with 4xNULL arguments initially, to reset the state. Call iconv
20691 with 2xNULL arguments, also to flush the state storage. Handle the
20692 IRIX iconv behaviour. Realloc the final result, to throw away unused
20695 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
20697 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
20698 and fchmodat unconditionally, since glibc 2.4 has them.
20699 Problem reported by Arkadiusz Miskiewicz.
20701 2006-12-10 Bruno Haible <bruno@clisp.org>
20703 * gnulib-tool (func_import): Show the include files only for those
20704 modules that are copied and specified.
20705 Reported by Karl Berry.
20707 2006-12-08 Jim Meyering <jim@meyering.net>
20709 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
20710 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
20712 * build-aux/announce-gen: Add two new options, both optional:
20713 --bootstrap-tools=TOOL_LIST
20714 a comma-separated list of tools, e.g.,
20715 autoconf,automake,bison,gnulib
20716 --gnulib-snapshot-date=DATE
20717 if gnulib is in the bootstrap tool list,
20718 then report this as the snapshot date.
20719 If not specified, use the current date/time.
20720 If you specify a date here, be sure it's UTC.
20722 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20724 * tests/test-argp-2.sh: Fix test to match actual output.
20725 (func_compare): Fix sed script to be portable.
20727 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
20729 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
20730 workaround for this case. It is not autoconfigured now; offhand
20731 it's hard to see how to autoconfigure it.
20733 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
20735 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
20736 a directory that is about to be chowned. Such a directory's
20737 initial file permissions should permit the owner only and this
20738 should not be changed until after the chown, since the group and
20739 other bits would be incorrect if they granted permission before
20742 Fix porting problem for iswctype reported by Georg Schwarz in:
20743 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
20744 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
20745 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
20746 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
20747 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20749 2006-12-03 Jim Meyering <jim@meyering.net>
20751 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
20752 p->fts_statp may not yet be defined.
20753 (fts_read): Instead, set it in the caller, once p->fts_statp is
20754 sure to be defined, and corresponds to a top-level directory.
20755 This bug made du -x fail. Here's the coreutils test case:
20756 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
20757 Reported by Mike Frysinger.
20759 2006-12-01 Jim Meyering <jim@meyering.net>
20761 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
20762 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
20763 Reported by Simon Josefsson.
20765 2006-11-30 Jim Meyering <jim@meyering.net>
20767 * m4/warning.m4: Use the all-permissive copyright notice
20768 recommended by RMS (rather than LGPL).
20769 * m4/vararrays.m4: Likewise.
20770 * m4/flexmember.m4: Likewise.
20772 2006-11-29 Bruno Haible <bruno@clisp.org>
20774 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20775 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
20777 Reported by Simon Josefsson <simon@josefsson.org>.
20779 2006-11-28 James Youngman <jay@gnu.org>
20781 * README: Advise users that they might find the bug-gnulib@gnu.org
20782 and autotools-announce@gnu.org mailing lists useful.
20784 2006-11-28 Bruno Haible <bruno@clisp.org>
20786 * m4/ptrdiff_max.m4: Remove file.
20788 2006-11-21 Bruno Haible <bruno@clisp.org>
20790 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
20792 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20793 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
20795 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20796 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
20798 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20800 2006-11-28 Jim Meyering <jim@meyering.net>
20802 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
20803 warning from "gcc -Wshadow" about shadowing the builtin.
20805 2006-11-27 Bruno Haible <bruno@clisp.org>
20807 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
20809 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20811 2006-11-27 Bruno Haible <bruno@clisp.org>
20812 Paul Eggert <eggert@cs.ucla.edu>
20814 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
20816 2006-11-26 Bruno Haible <bruno@clisp.org>
20818 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20819 noinst_LTLIBRARIES.
20821 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
20822 Bruno Haible <bruno@clisp.org>
20824 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
20825 if compiling with "gcc -ansi".
20827 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
20829 Fix some incompatibilities with gcc -ansi -pedantic.
20830 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
20831 if compiling pedantically with GCC, unless it's C99 or later.
20832 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
20833 it mishandles gcc -ansi -pedantic as well.
20834 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
20836 * lib/regexec.c (check_node_accept_bytes): Don't use auto
20837 initializers for struct if -pedantic, unless it's C99 or later.
20839 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
20841 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
20842 Don't close an fd more than once. Identical atimes indicate
20843 success, not failure.
20845 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
20847 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
20849 2006-11-23 Jim Meyering <jim@meyering.net>
20851 * build-aux/announce-gen: New file. From coreutils.
20853 2006-11-22 Jim Meyering <jim@meyering.net>
20855 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
20856 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
20857 (fts_read): Use a temporary to narrow the overused st_size member
20858 before using it in a switch statement. Reported by Matthew Woehlke.
20860 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
20861 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
20863 2006-11-20 Bruno Haible <bruno@clisp.org>
20865 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
20866 changequote instead of pairs of brackets.
20867 Reported by Andreas Schwab <schwab@suse.de>.
20869 2006-11-21 Jim Meyering <jim@meyering.net>
20871 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
20872 so as to remain compatible with older compilers.
20873 Patch from Michael Deutschmann.
20875 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
20877 * MODULES.html.sh (File system functions): Add openat.
20879 * lib/openat.h (rpl_fstatat): New macro, if
20880 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
20881 (fstatat): Define to rpl_fstatat under the same conditions,
20882 unless COMPILING_FSTATAT.
20883 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
20884 seems to have the bug.
20885 * lib/fstatat.c: New file.
20886 * modules/openat (Files): Add it.
20888 2006-11-20 Bruno Haible <bruno@clisp.org>
20890 * Makefile: New file.
20892 2006-11-20 Jim Meyering <jim@meyering.net>
20894 The beginnings of syntax-related checks for gnulib.
20895 * lib/Makefile: New file.
20896 * lib/t-idcache: New script. Ensure that the two halves of
20897 idcache.c stay in sync.
20899 * lib/idcache.c: Adjust comments in user- and group- portions to
20900 be more accurate, and to be consistent with one another.
20902 2006-11-20 Jim Meyering <jim@meyering.net>
20904 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
20905 continue using the flexible array member (thus, this module performs
20906 half as many malloc calls), with the addition that...
20907 (getgroup, getuser): Consistently record a non-match via an empty
20908 "name" string, and map an empty string match to a NULL return value.
20909 * modules/idcache (Depends-on): Re-add flexmember.
20911 * lib/idcache.c (getuser): Remove all uses of the register keyword.
20912 (getuidbyname, getgroup, getgidbyname): Likewise.
20914 Use cleaner syntax: NULL rather than 0.
20915 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
20917 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
20919 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
20920 It mishandled the case where the group was missing.
20921 Problem reported by Greg Schafer.
20922 * modules/idcache: Likewise.
20924 2006-11-18 Jim Meyering <jim@meyering.net>
20926 * check-module (%exempt_header): Add exception for some
20927 conditionally-included headers.
20929 * modules/i-ring (Depends-on): Add verify.
20930 (License): Change to LGPL.
20932 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
20934 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
20935 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
20936 and inttostr.h. Use snprintf rather than uinttostr, so that
20937 LGPLed code doesn't depend on GPLed.
20939 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
20941 * modules/inline (License): Change from GPL to LGPL.
20943 2006-11-17 Jim Meyering <jim@meyering.net>
20945 * modules/d-type (License): Switch to LGPL.
20947 2006-11-15 Bruno Haible <bruno@clisp.org>
20949 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
20951 2006-11-15 Eric Blake <ebb9@byu.net>
20953 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
20954 the module dependency.
20956 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20957 Bruno Haible <bruno@clisp.org>
20959 * gnulib-tool (func_create_testdir): Add license consistency check.
20961 2006-11-15 Eric Blake <ebb9@byu.net>
20963 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
20964 random "(cached)" in configure output.
20966 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20968 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
20969 test for conforming inttypes.h is both announced and cached.
20971 * MODULES.html.sh (seen_modules, seen_files): New variables.
20972 (func_module): Rewrite to use a few less gnulib-tool and sed
20973 invocations. Avoid a couple of quadratic algorithms for ...
20974 (missed_modules, missed_files): ... these, with ...
20975 (func_append, func_tmpdir): ... these new functions, from
20976 gnulib-tool. Analogously, install traps for cleanup.
20978 * tests/test-gc.c (main): Remove unused variables.
20979 * tests/test-read-file.c: Include stdlib.h, for 'free'.
20981 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
20983 * modules/inttostr (License): Change to LGPL.
20985 2006-11-14 Eric Blake <ebb9@byu.net>
20987 * modules/tempname (License): Change to LGPL.
20989 2006-11-14 Eric Blake <ebb9@byu.net>
20991 * doc/functions.texi (Function Portability): *printf functions on
20992 Cygwin now understand all POSIX size specifiers.
20994 2006-11-14 Bruno Haible <bruno@clisp.org>
20996 * modules/c-ctype (License): Change to LGPL.
20998 2006-11-12 Bruno Haible <bruno@clisp.org>
21000 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21001 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
21002 for GNOME libraries, for which the include files are installed in
21003 subdirectories of $prefix/include.
21005 2006-11-12 Bruno Haible <bruno@clisp.org>
21007 * m4/lib-link.m4: Require at least autoconf-2.54.
21008 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
21009 name to underscores for the --with option.
21011 2006-11-13 Bruno Haible <bruno@clisp.org>
21013 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
21014 the tests directory.
21015 Reported by Ralf Wildenhues.
21017 2006-11-13 Bruno Haible <bruno@clisp.org>
21019 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
21020 (func_emit_initmacro_end): Undo the override here.
21021 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
21022 Works around the famous automake error in coreutils.
21024 2006-11-13 Eric Blake <ebb9@byu.net>
21026 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
21027 element, not its node.
21029 2006-11-12 Bruno Haible <bruno@clisp.org>
21031 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
21032 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
21034 2006-11-12 Bruno Haible <bruno@clisp.org>
21036 * gnulib-tool: New option --local-symlink.
21037 (func_usage): Document it.
21038 (lsymbolic): New variable.
21039 (func_import, func_create_testdir): If --symlink was not specified,
21040 test whether --local-symlink was specified and the file comes from
21041 the local_gnulib_dir.
21043 2006-11-12 Bruno Haible <bruno@clisp.org>
21045 * gnulib-tool (func_ln): New function.
21046 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
21048 2006-11-12 Bruno Haible <bruno@clisp.org>
21050 Finish support for source files in subdirectories.
21051 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
21052 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
21054 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
21056 2006-11-12 Bruno Haible <bruno@clisp.org>
21058 * gnulib-tool (func_get_automake_snippet): Synthesize also an
21059 EXTRA_lib_SOURCES augmentation.
21060 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
21062 2006-11-12 Jim Meyering <jim@meyering.net>
21064 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
21065 file descriptors. This also averts a failure on systems with
21066 native openat support when a traversed directory lacks "x" access.
21067 * lib/fts_.h: Include "i-ring.h"
21068 (struct FTS) [fts_fd_ring]: New member.
21069 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
21070 (FCHDIR): Add parentheses.
21071 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
21072 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
21073 When descending, rather than simply closing the previous
21074 fts_cwd_fd value, push that file descriptor onto the ring.
21075 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
21076 (fts_open): Initialize the new fd_ring member.
21077 (fts_close): Clear the ring.
21078 (fts_safe_changedir): When possible, use our new fd_ring to skip
21079 the diropen and fstat and dev/ino comparison that would normally
21080 accompany a virtual `chdir ("..")'.
21082 * modules/fts (Depends-on): Add i-ring.
21083 * modules/i-ring: New module.
21084 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
21085 * m4/i-ring.m4: New file.
21087 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21089 * gnulib-tool (func_create_testdir): Fix replacement of
21090 `build-aux' in configure.ac. Run autotools in gltests
21092 (func_create_testdir, func_create_megatestdir, test): There is
21093 no need for '--force' in most autotool invocations in a new
21094 tree. Actually fail the whole test if any of the tools, or the
21095 configure or make stages fail.
21097 Sync from Automake.
21098 * build-aux/gnupload: Revert last change. Add pointer to upload
21099 instructions of the GNU Maintenance Instructions.
21100 Suggestion by Karl Berry.
21102 2006-11-10 Jim Meyering <jim@meyering.net>
21104 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
21106 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
21108 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
21109 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
21110 (bind_textdomain_codeset) [! ENABLE_NLS]:
21111 Evaluate all the arguments. That way, callers get compatible behavior
21112 if the arguments have side effects. Also, it avoids some GCC
21113 diagnostics in some cases; Joel E. Denny reported problems when Bison
21114 was configured with --enable-gcc-warnigs.
21116 2006-11-10 Jim Meyering <jim@meyering.net>
21118 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
21119 relevant options in CFLAGS (like -O, -fno-inline) are taken into
21122 2006-11-10 Jim Meyering <jim@meyering.net>
21124 * modules/inline: New file/module.
21125 * modules/xalloc (Files): Remove m4/inline.m4.
21126 (Depends-on): Add inline, instead.
21127 * modules/oset: Likewise.
21128 * modules/list: Likewise.
21130 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
21132 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
21133 Problem reported by Matthew Woehlke.
21135 2006-11-09 Bruno Haible <bruno@clisp.org>
21137 * lib/tempname.c (gen_tempname): Remove variant that invokes
21139 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
21142 2006-11-08 Bruno Haible <bruno@clisp.org>
21144 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
21145 to 'yes' instead of 'cross-compiling'.
21147 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
21149 * lib/quotearg.h (quotearg_free): New decl.
21150 * lib/quotearg.c (quotearg_free): New function.
21151 (slot0, nslots, slotvec0, slotvec):
21152 Now file-scope so that quotearg_free can get at them.
21154 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21156 Sync from Automake.
21157 * build-aux/gnupload: Add missing 'gnu' to example URL.
21158 Report by Karl Berry.
21160 2006-11-08 Bruno Haible <bruno@clisp.org>
21162 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
21163 Suggested by Paul Eggert.
21165 2006-11-08 Jim Meyering <jim@meyering.net>
21167 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
21168 It's already included if !_LIBC.
21169 (fts_safe_changedir): Add a comment.
21171 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
21173 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
21174 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
21177 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
21178 definitions up, to avoid colliding with change below.
21179 (static_inline) [HAVE_INLINE]: New macro.
21180 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
21181 Provide extern decls when !HAVE_INLINE. Do not define unless
21182 static_inline is defined, either by us or by xmalloc.c. Use
21183 static_inline rather than static inline.
21184 (XCALLOC): Optimize sizeof(T) = 1 case.
21185 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
21187 2006-11-07 Bruno Haible <bruno@clisp.org>
21189 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
21190 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
21192 * modules/xalloc (Files): Add m4/inline.m4.
21194 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21196 * README: Fix typo.
21197 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
21198 (Miscellanous Notes): ...from this.
21200 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
21202 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
21203 Mention that offsetof should be used instead of sizeof.
21206 2006-11-07 Bruno Haible <bruno@clisp.org>
21208 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
21210 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
21212 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
21213 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
21214 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
21215 (gl_tree_add_before, gl_tree_add_after):
21216 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
21217 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
21218 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
21219 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
21220 (gl_linked_add_after, gl_linked_add_at): Likewise.
21221 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
21222 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
21223 (gl_tree_add_before, gl_tree_add_after): Likewise.
21224 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
21225 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
21226 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
21228 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21230 * lib/gl_oset.h: Use C comment style, not C++ comment style.
21232 2006-11-06 Bruno Haible <bruno@clisp.org>
21234 * m4/inline.m4: New file.
21235 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
21236 * modules/list (Files): Add m4/inline.m4.
21237 * modules/oset (Files): Likewise.
21239 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
21241 * lib/idcache.c: Include <stddef.h>, for offsetof.
21242 (struct userid.name): Change from char * to a flexible array member.
21244 * modules/idcache (Depends-on): Add flexmember.
21246 * MODULES.html.sh (Core language properties): New module flexmember.
21247 * modules/flexmember, m4/flexmember.m4: New files.
21249 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
21250 inline functions that are identical with the old xnmalloc_inline,
21251 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
21252 that we can avoid some unnecessary integer multiplications and
21253 divisions in the common case where the element size is known at
21255 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
21257 (xnboundedmalloc): Remove.
21258 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
21259 arguments, for consistency with rest of this header.
21260 (xcharalloc): Rewrite using XNMALLOC.
21261 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
21262 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
21263 versions have been moved to lib/xalloc.h and renamed to be the
21264 non-*_inline versions.
21265 (xmalloc, xrealloc): Implement without reference to the xnmalloc
21266 and xnrealloc functions, since those functions are now inline and
21268 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
21269 renaming described above.
21270 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
21271 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
21272 captures the dependency in AC_C_INLINE.
21274 New module canonicalize-lgpl, proposed by Charles Wilson in
21275 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
21276 with a few small changes afterwards.
21277 * MODULES.html.sh (File system functions): New module
21279 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
21280 and canonicalize_file_name.
21281 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
21282 * modules/canonicalize-lgpl: New files.
21284 2006-11-05 Bruno Haible <bruno@clisp.org>
21286 * gnulib-tool (func_import, func_create_testdir): Create directories
21287 also for files in subdirectories of lib/.
21289 2006-11-05 Bruno Haible <bruno@clisp.org>
21291 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
21294 2006-11-03 Bruno Haible <bruno@clisp.org>
21296 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
21297 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
21298 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
21299 (xnboundedmalloc): New inline function.
21300 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
21301 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
21303 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
21305 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
21306 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
21307 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
21309 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
21310 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
21312 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
21313 gl_tree_add_after): Use XMALLOC instead of xmalloc.
21314 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
21316 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
21317 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
21318 gl_tree_add_after): Use XMALLOC instead of xmalloc.
21319 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
21320 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
21321 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
21322 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
21324 2006-11-03 Bruno Haible <bruno@clisp.org>
21326 * lib/c-ctype.h [C++]: Define functions without name mangling.
21327 * lib/fwriteerror.h [C++]: Likewise.
21328 * lib/gcd.h [C++]: Likewise.
21329 * lib/linebreak.h [C++]: Likewise.
21331 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
21333 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
21334 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
21335 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
21336 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
21337 Check for functions and headers just once.
21338 Check for declaration of canonicalize_file_name.
21339 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
21341 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
21343 * gnulib-tool (func_import): Fix typo in actioncmd.
21345 2006-11-02 Bruno Haible <bruno@clisp.org>
21347 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
21348 newline sequence in the Makefile.am snippet as a space, like "make"
21350 Reported by Roger Persson <perrog@gmail.com>.
21352 2006-11-01 Bruno Haible <bruno@clisp.org>
21354 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
21355 already declared in <string.h>.
21356 * lib/strcase.h (strncasecmp): Don't declare it if yes.
21358 2006-11-01 Bruno Haible <bruno@clisp.org>
21360 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
21361 * lib/strcase.h: Include <string.h>.
21362 (strcasecmp): Define to rpl_strcasecmp here.
21364 2006-11-01 Bruno Haible <bruno@clisp.org>
21366 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
21368 2006-11-01 Eric Blake <ebb9@byu.net>
21370 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
21372 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
21374 2006-10-29 Bruno Haible <bruno@clisp.org>
21376 Make it compile in C++ mode.
21377 * lib/full-write.c (full_rw): Add a cast.
21379 2006-11-01 Bruno Haible <bruno@clisp.org>
21381 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
21382 be POSIX compliant.
21383 Reported by Roger Persson <perrog@gmail.com>.
21385 2006-11-01 Eric Blake <ebb9@byu.net>
21387 * lib/getopt_.h: Fix comments.
21389 2006-10-31 Eric Blake <ebb9@byu.net>
21391 * modules/tmpdir (Depends-on): Add sys_stat.
21392 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
21393 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
21394 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
21395 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
21398 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
21400 Avoid some C++ diagnostics reported by Bruno Haible.
21401 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
21403 (quotearg_alloc): Use xcharalloc rather than xmalloc.
21404 (struct slotvec): Move to top level.
21405 (quotearg_n_options): Rewrite to avoid xmalloc.
21406 * lib/xalloc.h (xcharalloc): New function.
21407 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
21408 [defined __cplusplus]: Add function template that provides result
21409 type propagation. This part of the change is from Bruno Haible.
21411 2006-10-29 Bruno Haible <bruno@clisp.org>
21413 Make it compile in C++ mode.
21414 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
21415 * lib/strnlen1.c (strnlen1): Cast memchr result.
21416 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
21417 * lib/clean-temp.c (string_equals, string_hash): Add casts.
21418 (create_temp_dir): Rename local variable 'template'.
21419 (compile_csharp_using_sscli): Add cast.
21420 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
21421 * lib/findprog.c (find_in_path): Likewise.
21422 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
21423 * lib/wait-process.c (register_slave_subprocess): Likewise.
21425 2006-10-22 Bruno Haible <bruno@clisp.org>
21427 * modules/tsearch: New file.
21428 * lib/tsearch.h: New file.
21429 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
21430 * m4/tsearch.m4: New file.
21431 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
21433 2006-10-29 Eric Blake <ebb9@byu.net>
21435 * lib/arcfour.c: Assume config.h.
21436 * lib/arctwo.c: Likewise.
21437 * lib/base64.c: Likewise.
21438 * lib/check-version.c: Likewise.
21439 * lib/crc.c: Likewise.
21440 * lib/des.c: Likewise.
21441 * lib/gc-gnulib.c: Likewise.
21442 * lib/gc-libgcrypt.c: Likewise.
21443 * lib/gc-pbkdf2-sha1.c: Likewise.
21444 * lib/getaddrinfo.c: Likewise.
21445 * lib/getdelim.c: Likewise.
21446 * lib/getline.c: Likewise.
21447 * lib/hmac-md5.c: Likewise.
21448 * lib/hmac-sha1.c: Likewise.
21449 * lib/iconvme.c: Likewise.
21450 * lib/md2.c: Likewise.
21451 * lib/md4.c: Likewise.
21452 * lib/memxor.c: Likewise.
21453 * lib/read-file.c: Likewise.
21454 * lib/readline.c: Likewise.
21455 * lib/rijndael-alg-fst.c: Likewise.
21456 * lib/rijndael-api-fst.c: Likewise.
21457 * lib/xgetdomainname.c: Likewise.
21459 2006-10-28 Eric Blake <ebb9@byu.net>
21461 * lib/xstrndup.c: Assume config.h.
21463 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
21465 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
21466 stat-macros.h is now for our own macros, whereas stat_h is for
21467 macros in the <sys/stat.h> name space.
21468 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
21469 (STAT_MACROS_H): Remove.
21470 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
21471 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
21472 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
21473 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
21474 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
21475 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
21476 Move these macros to ...
21477 * lib/stat_.h: here. Don't include stat-macros.h.
21478 * lib/canonicalize.c: Don't include stat-macros.h.
21479 * lib/chown.c: Likewise.
21480 * lib/euidaccess.c: Likewise.
21481 * lib/file-type.c: Likewise.
21482 * lib/filemode.c: Likewise.
21483 * lib/glob.c: Likewise.
21484 * lib/isapipe.c: Likewise.
21485 * lib/lchown.c: Likewise.
21486 * lib/lstat.c: Likewise.
21487 * lib/mkdir-p.c: Likewise.
21488 * lib/rmdir.c: Likewise.
21489 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
21490 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
21491 unless mkdir isn't declared, to speed up 'configure'.
21492 Always create sys/stat.h, since it's unlikely any real sys/stat.h
21493 would define all the S_* symbols.
21494 * modules/canonicalize (Depends-on):
21495 Depend on sys_stat, not stat-macros.
21496 * modules/chown: Likewise.
21497 * modules/euidaccess: Likewise.
21498 * modules/filemode: Likewise.
21499 * modules/file-type: Likewise.
21500 * modules/glob: Likewise.
21501 * modules/isapipe: Likewise.
21502 * modules/lchown: Likewise.
21503 * modules/lstat: Likewise.
21504 * modules/mkancesdirs: Likewise.
21505 * modules/rmdir: Likewise.
21506 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
21507 * modules/modechange: Likewise.
21508 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
21509 (configure.ac): Remove gl_STAT_MACROS.
21510 * modules/sys_stat (Depends-on): Remove stat-macros.
21512 2006-10-27 Bruno Haible <bruno@clisp.org>
21514 * m4/signed.m4: Remove file.
21515 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
21517 * modules/vasnprintf (Files): Remove m4/signed.m4.
21519 2006-10-27 Bruno Haible <bruno@clisp.org>
21521 Update to GNU gettext 0.16.
21522 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
21523 m4/inttypes-h.m4, m4/signed.m4.
21524 * m4/gettext.m4: Update to GNU gettext 0.16.
21525 * m4/intl.m4: New file, from GNU gettext.
21526 * m4/intldir.m4: New file, from GNU gettext.
21527 * config/srclist.txt: Update
21529 2006-10-27 Eric Blake <ebb9@byu.net>
21531 * MODULES.html.sh: Document tempname.
21532 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
21534 (Files): Move lib/tempname.c...
21535 * modules/tempname: ...to this new module.
21536 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
21537 (gl_PREREQ_TEMPNAME): Move...
21538 * m4/tempname.m4: ...to this new file.
21539 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
21540 * modules/sys_stat (Depends-on): Add stat-macros.
21541 * lib/stat_.h (includes): Pick up stat macros.
21542 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
21543 if stat macros are broken.
21544 * lib/tempname.c (includes): No need to include "stat-macros.h".
21545 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
21546 (direxists, __path_search) [!_LIBC]: Don't compile these in
21547 gnulib; the tmpdir module covers that.
21548 * lib/tempname.h: New file.
21550 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
21552 * COPYING: Explain how gnulib-tool converts licence headers.
21553 Almost all wording by Eric Blake.
21555 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
21557 * lib/mbchar.h (is_basic_table): Make read-only.
21558 * lib/mbchar.c (is_basic_table): Likewise.
21559 Reported by John Darrington.
21561 2006-10-25 Bruno Haible <bruno@clisp.org>
21563 * lib/progname.h (set_program_name): Undefine before defining.
21565 2006-10-25 Bruno Haible <bruno@clisp.org>
21567 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
21568 false for non-gcc C++ compilers.
21569 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21571 2006-10-24 Bruno Haible <bruno@clisp.org>
21573 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
21574 iconv implementations like Irix iconv.
21576 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
21578 * modules/vararrays: New file.
21579 * m4/vararrays.m4: New file, taken from diffutils.
21580 * MODULES.html.sh: New module vararrays.
21582 2006-10-24 Karl Berry <karl@gnu.org>
21584 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
21585 Don't call GNU Unix.
21587 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21589 * users.txt: Add Libtool.
21593 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
21595 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
21596 to gnulib's policy of including config.h unconditionally.
21598 2006-10-24 Bruno Haible <bruno@clisp.org>
21600 * modules/wcwidth (Files): Add m4/wint_t.m4.
21601 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
21602 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
21604 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
21606 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
21607 to pacify GCC with some -W flags enabled. Problem reported by
21610 2006-10-24 Jim Meyering <jim@meyering.net>
21612 * MODULES.html.sh: Remove uinttostr. It's not a module.
21613 Reported by Karl Berry.
21615 2006-10-23 Bruno Haible <bruno@clisp.org>
21617 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
21619 2006-10-24 Bruno Haible <bruno@clisp.org>
21621 * lib/gl_list.h: Use C comment style, not C++ comment style.
21623 2006-10-23 Eric Blake <ebb9@byu.net>
21625 * lib/getaddrinfo.c (includes): Add missing include.
21627 2006-10-23 Bruno Haible <bruno@clisp.org>
21628 Paul Eggert <eggert@cs.ucla.edu>
21630 Ability to rename obstack_free.
21631 * lib/obstack.h (__obstack_free): New macro. Declare instead of
21633 (obstack_free): Invoke the __obstack_free macro.
21634 * lib/obstack.c (obstack_free): Use __obstack_free macro.
21636 2006-10-23 Bruno Haible <bruno@clisp.org>
21637 Paul Eggert <eggert@cs.ucla.edu>
21639 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
21640 __argc, __argv from the declaration. (They are defined as macros on
21643 2006-10-22 Bruno Haible <bruno@clisp.org>
21645 * doc/gnulib-intro.texi: New file.
21646 * doc/gnulib.texi: Include it.
21648 2006-10-21 Bruno Haible <bruno@clisp.org>
21650 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
21651 "Introduction", "Miscellanous Notes", "Particular Modules".
21653 2006-10-21 Bruno Haible <bruno@clisp.org>
21655 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21656 Change mostlyclean-local rule to avoid sh syntax error from bash
21657 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
21659 2006-10-23 Jim Meyering <jim@meyering.net>
21661 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
21662 in place of snprintf.
21664 * modules/inttostr (Files): Add lib/uinttostr.c.
21665 * lib/uinttostr.c (inttostr): New file/function.
21666 * lib/inttostr.h (uinttostr): Declare.
21667 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
21668 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
21670 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
21672 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
21674 * lib/canonicalize.c (ELOOP): Define if not already defined.
21675 Problem reported by Bruno Haible in
21676 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
21678 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
21680 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
21681 Problem reported by Perry Smith and Ville Laurikari.
21683 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
21686 2006-10-19 Bruno Haible <bruno@clisp.org>
21688 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
21691 2006-10-19 Bruno Haible <bruno@clisp.org>
21693 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
21696 2006-10-19 Bruno Haible <bruno@clisp.org>
21698 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
21700 2006-10-19 Bruno Haible <bruno@clisp.org>
21702 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
21705 2006-10-19 Bruno Haible <bruno@clisp.org>
21707 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
21710 2006-10-19 Bruno Haible <bruno@clisp.org>
21712 * gnulib-tool (func_create_testdir): Don't include ftruncate and
21713 mountlist by default.
21715 2006-10-16 Bruno Haible <bruno@clisp.org>
21717 * lib/c-strstr.c: Include c-strstr.h.
21719 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
21721 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
21724 2006-10-18 Bruno Haible <bruno@clisp.org>
21726 * lib/lock.h [C++]: Wrap definitions in extern "C".
21728 2006-10-18 Bruno Haible <bruno@clisp.org>
21730 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
21733 2006-10-18 Bruno Haible <bruno@clisp.org>
21735 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
21737 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
21739 * lib/xstrtol.h: Include gettext.h.
21740 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
21741 Problem reported by Eric Blake.
21742 * modules/xstrtol (Depends-on): Add gettext-h.
21744 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
21746 * lib/strftime.c (advance): New macro.
21747 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
21748 incomplete type, so you can't add 0 to it. Problem and patch
21749 reported by Eelco Dolstra for dietlibc.
21751 2006-10-18 Jim Meyering <jim@meyering.net>
21753 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
21754 type for a local, and rename it: s/up/user_proc/.
21756 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
21758 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
21759 READ_UTMP_USER_PROCESS.
21760 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
21762 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
21764 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
21765 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
21767 2006-10-17 Eric Blake <ebb9@byu.net>
21769 * lib/sigprocmask.c (sigprocmask): Fix typo.
21771 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
21773 * modules/clean-temp (Makefile.am): Don't add to make output...
21774 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
21777 2006-10-17 Bruno Haible <bruno@clisp.org>
21779 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
21780 differently if DEFAULT_TEXT_DOMAIN is set.
21782 2006-10-16 Bruno Haible <bruno@clisp.org>
21784 * lib/clean-temp.c: Include fwriteerror.h.
21786 2006-10-16 Bruno Haible <bruno@clisp.org>
21788 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
21790 2006-10-16 Bruno Haible <bruno@clisp.org>
21792 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
21793 * lib/sigprocmask.h: Include <sys/types.h>.
21794 (sigset_t): Use the system's definition if present.
21796 2006-10-17 Eric Blake <ebb9@byu.net>
21798 * lib/xvasprintf.c (includes): Assume config.h.
21799 * lib/xasprintf.c (includes): Likewise.
21801 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
21803 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
21804 at least as wide as intmax_t.
21806 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
21808 (Imported from Automake.)
21809 * build-aux/gnupload: Update to version 1.1 of directive file.
21811 2006-10-16 Eric Blake <ebb9@byu.net>
21813 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
21814 match Automake 1.10a.
21816 2006-10-14 Bruno Haible <bruno@clisp.org>
21818 * modules/sigprocmask: New file.
21819 * lib/sigprocmask.h: New file.
21820 * lib/sigprocmask.c: New file.
21821 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
21822 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
21823 request sigprocmask.o.
21824 (gl_PREREQ_SIGPROCMASK): New macro.
21825 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
21826 (Depends-on): Add sigprocmask.
21827 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
21828 gt_SIGNALBLOCKING. Test for 'raise' only once.
21829 * lib/fatal-signal.c: Include sigprocmask.h.
21830 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
21831 unblock_fatal_signals): Define always.
21832 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21835 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
21837 Sync from Automake.
21838 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
21839 which incorrectly sets the mode of an existing destination
21840 directory. In some cases the unpatched install-sh could do the
21841 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
21842 system. We hope this is rare in practice, but it's clearly worth
21843 fixing. Problem reported by Alex Unleashed in
21844 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
21845 Also, don't bother to check for -m bugs unless we're using -m;
21846 suggested by Stepan Kasal.
21848 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21850 Sync from Automake.
21851 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
21852 `-c' flag, so they appear at the same position as in %FASTDEP%
21853 mode in depend2.am. Fixes build failure for FreeBSD's c89,
21854 which ignores unknown options only after the first non-option.
21855 Bug report against M4 by Nelson H. F. Beebe.
21857 2006-10-13 Jim Meyering <jim@meyering.net>
21859 Fix a bug in yesterday's change.
21860 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
21861 p->fts_statp->st_dev would be used uninitialized.
21862 Ensures that we always call fts_stat on the very first entry.
21863 Miklos Szeredi reported that find -xdev stopped working.
21865 2006-10-12 Bruno Haible <bruno@clisp.org>
21867 * gnulib-tool (func_get_automake_snippet): Append an automatically
21868 computed EXTRA_DIST augmentation.
21869 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
21870 * modules/alloca-opt (Makefile.am): Likewise.
21871 * modules/allocsa (Makefile.am): Likewise.
21872 * modules/arcfour (Makefile.am): Likewise.
21873 * modules/arctwo (Makefile.am): Likewise.
21874 * modules/argmatch (Makefile.am): Likewise.
21875 * modules/argz (Makefile.am): Likewise.
21876 * modules/atexit (Makefile.am): Likewise.
21877 * modules/backupfile (Makefile.am): Likewise.
21878 * modules/byteswap (Makefile.am): Likewise.
21879 * modules/c-strtod (Makefile.am): Likewise.
21880 * modules/c-strtold (Makefile.am): Likewise.
21881 * modules/calloc (Makefile.am): Likewise.
21882 * modules/canon-host (Makefile.am): Likewise.
21883 * modules/canonicalize (Makefile.am): Likewise.
21884 * modules/chdir-long (Makefile.am): Likewise.
21885 * modules/chdir-safer (Makefile.am): Likewise.
21886 * modules/check-version (Makefile.am): Likewise.
21887 * modules/chown (Makefile.am): Likewise.
21888 * modules/cloexec (Makefile.am): Likewise.
21889 * modules/close-stream (Makefile.am): Likewise.
21890 * modules/closeout (Makefile.am): Likewise.
21891 * modules/crc (Makefile.am): Likewise.
21892 * modules/csharpexec (Makefile.am): Likewise.
21893 * modules/cycle-check (Makefile.am): Likewise.
21894 * modules/des (Makefile.am): Likewise.
21895 * modules/dev-ino (Makefile.am): Likewise.
21896 * modules/dirfd (Makefile.am): Likewise.
21897 * modules/dirname (Makefile.am): Likewise.
21898 * modules/dup2 (Makefile.am): Likewise.
21899 * modules/eealloc (Makefile.am): Likewise.
21900 * modules/error (Makefile.am): Likewise.
21901 * modules/euidaccess (Makefile.am): Likewise.
21902 * modules/exclude (Makefile.am): Likewise.
21903 * modules/exitfail (Makefile.am): Likewise.
21904 * modules/fcntl-safer (Makefile.am): Likewise.
21905 * modules/fcntl (Makefile.am): Likewise.
21906 * modules/file-type (Makefile.am): Likewise.
21907 * modules/fileblocks (Makefile.am): Likewise.
21908 * modules/filemode (Makefile.am): Likewise.
21909 * modules/filenamecat (Makefile.am): Likewise.
21910 * modules/fnmatch (Makefile.am): Likewise.
21911 * modules/fopen-safer (Makefile.am): Likewise.
21912 * modules/fpending (Makefile.am): Likewise.
21913 * modules/fprintftime (Makefile.am): Likewise.
21914 * modules/free (Makefile.am): Likewise.
21915 * modules/fsusage (Makefile.am): Likewise.
21916 * modules/ftruncate (Makefile.am): Likewise.
21917 * modules/fts (Makefile.am): Likewise.
21918 * modules/gc-arcfour (Makefile.am): Likewise.
21919 * modules/gc-des (Makefile.am): Likewise.
21920 * modules/gc-hmac-md5 (Makefile.am): Likewise.
21921 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
21922 * modules/gc-md4 (Makefile.am): Likewise.
21923 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
21924 * modules/gc-sha1 (Makefile.am): Likewise.
21925 * modules/gc (Makefile.am): Likewise.
21926 * modules/getaddrinfo (Makefile.am): Likewise.
21927 * modules/getcwd (Makefile.am): Likewise.
21928 * modules/getdelim (Makefile.am): Likewise.
21929 * modules/getdomainname (Makefile.am): Likewise.
21930 * modules/getgroups (Makefile.am): Likewise.
21931 * modules/gethostname (Makefile.am): Likewise.
21932 * modules/gethrxtime (Makefile.am): Likewise.
21933 * modules/getline (Makefile.am): Likewise.
21934 * modules/getloadavg (Makefile.am): Likewise.
21935 * modules/getlogin_r (Makefile.am): Likewise.
21936 * modules/getndelim2 (Makefile.am): Likewise.
21937 * modules/getopt (Makefile.am): Likewise.
21938 * modules/getpagesize (Makefile.am): Likewise.
21939 * modules/getpass-gnu (Makefile.am): Likewise.
21940 * modules/getpass (Makefile.am): Likewise.
21941 * modules/getsubopt (Makefile.am): Likewise.
21942 * modules/gettime (Makefile.am): Likewise.
21943 * modules/gettimeofday (Makefile.am): Likewise.
21944 * modules/getugroups (Makefile.am): Likewise.
21945 * modules/getusershell (Makefile.am): Likewise.
21946 * modules/glob (Makefile.am): Likewise.
21947 * modules/group-member (Makefile.am): Likewise.
21948 * modules/hard-locale (Makefile.am): Likewise.
21949 * modules/hash (Makefile.am): Likewise.
21950 * modules/hmac-md5 (Makefile.am): Likewise.
21951 * modules/hmac-sha1 (Makefile.am): Likewise.
21952 * modules/human (Makefile.am): Likewise.
21953 * modules/idcache (Makefile.am): Likewise.
21954 * modules/imaxabs (Makefile.am): Likewise.
21955 * modules/imaxdiv (Makefile.am): Likewise.
21956 * modules/inet_ntop (Makefile.am): Likewise.
21957 * modules/inet_pton (Makefile.am): Likewise.
21958 * modules/intprops (Makefile.am): Likewise.
21959 * modules/inttostr (Makefile.am): Likewise.
21960 * modules/inttypes (Makefile.am): Likewise.
21961 * modules/isapipe (Makefile.am): Likewise.
21962 * modules/javaversion (Makefile.am): Likewise.
21963 * modules/lchmod (Makefile.am): Likewise.
21964 * modules/lchown (Makefile.am): Likewise.
21965 * modules/localcharset (Makefile.am): Likewise.
21966 * modules/long-options (Makefile.am): Likewise.
21967 * modules/lstat (Makefile.am): Likewise.
21968 * modules/malloc (Makefile.am): Likewise.
21969 * modules/mathl (Makefile.am): Likewise.
21970 * modules/mbchar (Makefile.am): Likewise.
21971 * modules/md2 (Makefile.am): Likewise.
21972 * modules/md4 (Makefile.am): Likewise.
21973 * modules/md5 (Makefile.am): Likewise.
21974 * modules/memcasecmp (Makefile.am): Likewise.
21975 * modules/memchr (Makefile.am): Likewise.
21976 * modules/memcmp (Makefile.am): Likewise.
21977 * modules/memcoll (Makefile.am): Likewise.
21978 * modules/memcpy (Makefile.am): Likewise.
21979 * modules/memmem (Makefile.am): Likewise.
21980 * modules/memmove (Makefile.am): Likewise.
21981 * modules/mempcpy (Makefile.am): Likewise.
21982 * modules/memrchr (Makefile.am): Likewise.
21983 * modules/memset (Makefile.am): Likewise.
21984 * modules/memxor (Makefile.am): Likewise.
21985 * modules/mkancesdirs (Makefile.am): Likewise.
21986 * modules/mkdir-p (Makefile.am): Likewise.
21987 * modules/mkdir (Makefile.am): Likewise.
21988 * modules/mkdtemp (Makefile.am): Likewise.
21989 * modules/mkstemp (Makefile.am): Likewise.
21990 * modules/mktime (Makefile.am): Likewise.
21991 * modules/modechange (Makefile.am): Likewise.
21992 * modules/mountlist (Makefile.am): Likewise.
21993 * modules/nanosleep (Makefile.am): Likewise.
21994 * modules/obstack (Makefile.am): Likewise.
21995 * modules/openat (Makefile.am): Likewise.
21996 * modules/pagealign_alloc (Makefile.am): Likewise.
21997 * modules/pathmax (Makefile.am): Likewise.
21998 * modules/physmem (Makefile.am): Likewise.
21999 * modules/poll (Makefile.am): Likewise.
22000 * modules/posixtm (Makefile.am): Likewise.
22001 * modules/posixver (Makefile.am): Likewise.
22002 * modules/putenv (Makefile.am): Likewise.
22003 * modules/quote (Makefile.am): Likewise.
22004 * modules/quotearg (Makefile.am): Likewise.
22005 * modules/raise (Makefile.am): Likewise.
22006 * modules/read-file (Makefile.am): Likewise.
22007 * modules/readline (Makefile.am): Likewise.
22008 * modules/readlink (Makefile.am): Likewise.
22009 * modules/readtokens (Makefile.am): Likewise.
22010 * modules/readutmp (Makefile.am): Likewise.
22011 * modules/realloc (Makefile.am): Likewise.
22012 * modules/regex (Makefile.am): Likewise.
22013 * modules/rename-dest-slash (Makefile.am): Likewise.
22014 * modules/rename (Makefile.am): Likewise.
22015 * modules/rijndael (Makefile.am): Likewise.
22016 * modules/rmdir (Makefile.am): Likewise.
22017 * modules/rpmatch (Makefile.am): Likewise.
22018 * modules/safe-read (Makefile.am): Likewise.
22019 * modules/safe-write (Makefile.am): Likewise.
22020 * modules/same-inode (Makefile.am): Likewise.
22021 * modules/same (Makefile.am): Likewise.
22022 * modules/save-cwd (Makefile.am): Likewise.
22023 * modules/savedir (Makefile.am): Likewise.
22024 * modules/setenv (Makefile.am): Likewise.
22025 * modules/settime (Makefile.am): Likewise.
22026 * modules/sha1 (Makefile.am): Likewise.
22027 * modules/sig2str (Makefile.am): Likewise.
22028 * modules/snprintf (Makefile.am): Likewise.
22029 * modules/stat-macros (Makefile.am): Likewise.
22030 * modules/stat-time (Makefile.am): Likewise.
22031 * modules/stdbool (Makefile.am): Likewise.
22032 * modules/stdint (Makefile.am): Likewise.
22033 * modules/stdlib-safer (Makefile.am): Likewise.
22034 * modules/stpcpy (Makefile.am): Likewise.
22035 * modules/stpncpy (Makefile.am): Likewise.
22036 * modules/strcase (Makefile.am): Likewise.
22037 * modules/strcasestr (Makefile.am): Likewise.
22038 * modules/strchrnul (Makefile.am): Likewise.
22039 * modules/strcspn (Makefile.am): Likewise.
22040 * modules/strdup (Makefile.am): Likewise.
22041 * modules/strerror (Makefile.am): Likewise.
22042 * modules/strftime (Makefile.am): Likewise.
22043 * modules/strndup (Makefile.am): Likewise.
22044 * modules/strnlen (Makefile.am): Likewise.
22045 * modules/strpbrk (Makefile.am): Likewise.
22046 * modules/strsep (Makefile.am): Likewise.
22047 * modules/strstr (Makefile.am): Likewise.
22048 * modules/strtod (Makefile.am): Likewise.
22049 * modules/strtoimax (Makefile.am): Likewise.
22050 * modules/strtok_r (Makefile.am): Likewise.
22051 * modules/strtol (Makefile.am): Likewise.
22052 * modules/strtoll (Makefile.am): Likewise.
22053 * modules/strtoul (Makefile.am): Likewise.
22054 * modules/strtoull (Makefile.am): Likewise.
22055 * modules/strtoumax (Makefile.am): Likewise.
22056 * modules/strverscmp (Makefile.am): Likewise.
22057 * modules/sys_socket (Makefile.am): Likewise.
22058 * modules/sys_stat (Makefile.am): Likewise.
22059 * modules/sysexits (Makefile.am): Likewise.
22060 * modules/time_r (Makefile.am): Likewise.
22061 * modules/timegm (Makefile.am): Likewise.
22062 * modules/timespec (Makefile.am): Likewise.
22063 * modules/tmpfile-safer (Makefile.am): Likewise.
22064 * modules/trim (Makefile.am): Likewise.
22065 * modules/unistd-safer (Makefile.am): Likewise.
22066 * modules/unlinkdir (Makefile.am): Likewise.
22067 * modules/unlocked-io (Makefile.am): Likewise.
22068 * modules/userspec (Makefile.am): Likewise.
22069 * modules/utime (Makefile.am): Likewise.
22070 * modules/utimecmp (Makefile.am): Likewise.
22071 * modules/utimens (Makefile.am): Likewise.
22072 * modules/vasnprintf (Makefile.am): Likewise.
22073 * modules/vasprintf (Makefile.am): Likewise.
22074 * modules/vsnprintf (Makefile.am): Likewise.
22075 * modules/xalloc (Makefile.am): Likewise.
22076 * modules/xgetcwd (Makefile.am): Likewise.
22077 * modules/xnanosleep (Makefile.am): Likewise.
22078 * modules/xreadlink (Makefile.am): Likewise.
22079 * modules/xstrtod (Makefile.am): Likewise.
22080 * modules/xstrtol (Makefile.am): Likewise.
22081 * modules/xstrtold (Makefile.am): Likewise.
22082 * modules/yesno (Makefile.am): Likewise.
22083 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
22085 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
22087 * modules/error (Makefile.am): Distribute files through
22088 EXTRA_DIST, not lib_SOURCES.
22090 2006-10-12 Eric Blake <ebb9@byu.net>
22092 * modules/error (Makefile.am): Distribute files in /lib.
22093 * modules/obstack (Makefile.am): Likewise.
22095 2006-10-12 Bruno Haible <bruno@clisp.org>
22097 * modules/acl (Makefile.am): Distribute all files in lib/ through
22099 * modules/arcfour (Makefile.am): Likewise.
22100 * modules/arctwo (Makefile.am): Likewise.
22101 * modules/argmatch (Makefile.am): Likewise.
22102 * modules/argz (Makefile.am): Likewise.
22103 * modules/atexit (Makefile.am): Likewise.
22104 * modules/backupfile (Makefile.am): Likewise.
22105 * modules/c-strtod (Makefile.am): Likewise.
22106 * modules/c-strtold (Makefile.am): Likewise.
22107 * modules/calloc (Makefile.am): Likewise.
22108 * modules/canon-host (Makefile.am): Likewise.
22109 * modules/canonicalize (Makefile.am): Likewise.
22110 * modules/chdir-long (Makefile.am): Likewise.
22111 * modules/chdir-safer (Makefile.am): Likewise.
22112 * modules/check-version (Makefile.am): Likewise.
22113 * modules/chown (Makefile.am): Likewise.
22114 * modules/cloexec (Makefile.am): Likewise.
22115 * modules/close-stream (Makefile.am): Likewise.
22116 * modules/closeout (Makefile.am): Likewise.
22117 * modules/crc (Makefile.am): Likewise.
22118 * modules/cycle-check (Makefile.am): Likewise.
22119 * modules/des (Makefile.am): Likewise.
22120 * modules/dirfd (Makefile.am): Likewise.
22121 * modules/dirname (Makefile.am): Likewise.
22122 * modules/dup2 (Makefile.am): Likewise.
22123 * modules/euidaccess (Makefile.am): Likewise.
22124 * modules/exclude (Makefile.am): Likewise.
22125 * modules/exitfail (Makefile.am): Likewise.
22126 * modules/fcntl-safer (Makefile.am): Likewise.
22127 * modules/file-type (Makefile.am): Likewise.
22128 * modules/fileblocks (Makefile.am): Likewise.
22129 * modules/filemode (Makefile.am): Likewise.
22130 * modules/filenamecat (Makefile.am): Likewise.
22131 * modules/fnmatch (Makefile.am): Likewise.
22132 * modules/fopen-safer (Makefile.am): Likewise.
22133 * modules/fpending (Makefile.am): Likewise.
22134 * modules/fprintftime (Makefile.am): Likewise.
22135 * modules/free (Makefile.am): Likewise.
22136 * modules/fsusage (Makefile.am): Likewise.
22137 * modules/ftruncate (Makefile.am): Likewise.
22138 * modules/fts (Makefile.am): Likewise.
22139 * modules/gc (Makefile.am): Likewise.
22140 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
22141 * modules/getaddrinfo (Makefile.am): Likewise.
22142 * modules/getcwd (Makefile.am): Likewise.
22143 * modules/getdelim (Makefile.am): Likewise.
22144 * modules/getdomainname (Makefile.am): Likewise.
22145 * modules/getgroups (Makefile.am): Likewise.
22146 * modules/gethostname (Makefile.am): Likewise.
22147 * modules/gethrxtime (Makefile.am): Likewise.
22148 * modules/getline (Makefile.am): Likewise.
22149 * modules/getloadavg (Makefile.am): Likewise.
22150 * modules/getlogin_r (Makefile.am): Likewise.
22151 * modules/getopt (Makefile.am): Likewise.
22152 * modules/getpass (Makefile.am): Likewise.
22153 * modules/getpass-gnu (Makefile.am): Likewise.
22154 * modules/getsubopt (Makefile.am): Likewise.
22155 * modules/gettime (Makefile.am): Likewise.
22156 * modules/gettimeofday (Makefile.am): Likewise.
22157 * modules/getugroups (Makefile.am): Likewise.
22158 * modules/getusershell (Makefile.am): Likewise.
22159 * modules/glob (Makefile.am): Likewise.
22160 * modules/group-member (Makefile.am): Likewise.
22161 * modules/hard-locale (Makefile.am): Likewise.
22162 * modules/hash (Makefile.am): Likewise.
22163 * modules/hmac-md5 (Makefile.am): Likewise.
22164 * modules/hmac-sha1 (Makefile.am): Likewise.
22165 * modules/human (Makefile.am): Likewise.
22166 * modules/idcache (Makefile.am): Likewise.
22167 * modules/imaxabs (Makefile.am): Likewise.
22168 * modules/imaxdiv (Makefile.am): Likewise.
22169 * modules/inet_ntop (Makefile.am): Likewise.
22170 * modules/inet_pton (Makefile.am): Likewise.
22171 * modules/inttostr (Makefile.am): Likewise.
22172 * modules/isapipe (Makefile.am): Likewise.
22173 * modules/lchown (Makefile.am): Likewise.
22174 * modules/long-options (Makefile.am): Likewise.
22175 * modules/lstat (Makefile.am): Likewise.
22176 * modules/malloc (Makefile.am): Likewise.
22177 * modules/mathl (Makefile.am): Likewise.
22178 * modules/mbchar (Makefile.am): Likewise.
22179 * modules/md2 (Makefile.am): Likewise.
22180 * modules/md4 (Makefile.am): Likewise.
22181 * modules/md5 (Makefile.am): Likewise.
22182 * modules/memcasecmp (Makefile.am): Likewise.
22183 * modules/memchr (Makefile.am): Likewise.
22184 * modules/memcmp (Makefile.am): Likewise.
22185 * modules/memcoll (Makefile.am): Likewise.
22186 * modules/memcpy (Makefile.am): Likewise.
22187 * modules/memmem (Makefile.am): Likewise.
22188 * modules/memmove (Makefile.am): Likewise.
22189 * modules/mempcpy (Makefile.am): Likewise.
22190 * modules/memrchr (Makefile.am): Likewise.
22191 * modules/memset (Makefile.am): Likewise.
22192 * modules/memxor (Makefile.am): Likewise.
22193 * modules/mkancesdirs (Makefile.am): Likewise.
22194 * modules/mkdir (Makefile.am): Likewise.
22195 * modules/mkdir-p (Makefile.am): Likewise.
22196 * modules/mkdtemp (Makefile.am): Likewise.
22197 * modules/mkstemp (Makefile.am): Likewise.
22198 * modules/mktime (Makefile.am): Likewise.
22199 * modules/modechange (Makefile.am): Likewise.
22200 * modules/mountlist (Makefile.am): Likewise.
22201 * modules/nanosleep (Makefile.am): Likewise.
22202 * modules/openat (Makefile.am): Likewise.
22203 * modules/pagealign_alloc (Makefile.am): Likewise.
22204 * modules/physmem (Makefile.am): Likewise.
22205 * modules/poll (Makefile.am): Likewise.
22206 * modules/posixtm (Makefile.am): Likewise.
22207 * modules/posixver (Makefile.am): Likewise.
22208 * modules/putenv (Makefile.am): Likewise.
22209 * modules/quote (Makefile.am): Likewise.
22210 * modules/quotearg (Makefile.am): Likewise.
22211 * modules/raise (Makefile.am): Likewise.
22212 * modules/read-file (Makefile.am): Likewise.
22213 * modules/readline (Makefile.am): Likewise.
22214 * modules/readlink (Makefile.am): Likewise.
22215 * modules/readtokens (Makefile.am): Likewise.
22216 * modules/readutmp (Makefile.am): Likewise.
22217 * modules/realloc (Makefile.am): Likewise.
22218 * modules/regex (Makefile.am): Likewise.
22219 * modules/rename (Makefile.am): Likewise.
22220 * modules/rename-dest-slash (Makefile.am): Likewise.
22221 * modules/rijndael (Makefile.am): Likewise.
22222 * modules/rmdir (Makefile.am): Likewise.
22223 * modules/rpmatch (Makefile.am): Likewise.
22224 * modules/safe-read (Makefile.am): Likewise.
22225 * modules/safe-write (Makefile.am): Likewise.
22226 * modules/same (Makefile.am): Likewise.
22227 * modules/save-cwd (Makefile.am): Likewise.
22228 * modules/savedir (Makefile.am): Likewise.
22229 * modules/setenv (Makefile.am): Likewise.
22230 * modules/settime (Makefile.am): Likewise.
22231 * modules/sha1 (Makefile.am): Likewise.
22232 * modules/sig2str (Makefile.am): Likewise.
22233 * modules/snprintf (Makefile.am): Likewise.
22234 * modules/stdlib-safer (Makefile.am): Likewise.
22235 * modules/stpcpy (Makefile.am): Likewise.
22236 * modules/stpncpy (Makefile.am): Likewise.
22237 * modules/strcase (Makefile.am): Likewise.
22238 * modules/strcasestr (Makefile.am): Likewise.
22239 * modules/strchrnul (Makefile.am): Likewise.
22240 * modules/strcspn (Makefile.am): Likewise.
22241 * modules/strdup (Makefile.am): Likewise.
22242 * modules/strerror (Makefile.am): Likewise.
22243 * modules/strftime (Makefile.am): Likewise.
22244 * modules/strndup (Makefile.am): Likewise.
22245 * modules/strnlen (Makefile.am): Likewise.
22246 * modules/strpbrk (Makefile.am): Likewise.
22247 * modules/strsep (Makefile.am): Likewise.
22248 * modules/strstr (Makefile.am): Likewise.
22249 * modules/strtod (Makefile.am): Likewise.
22250 * modules/strtoimax (Makefile.am): Likewise.
22251 * modules/strtok_r (Makefile.am): Likewise.
22252 * modules/strtol (Makefile.am): Likewise.
22253 * modules/strtoll (Makefile.am): Likewise.
22254 * modules/strtoul (Makefile.am): Likewise.
22255 * modules/strtoull (Makefile.am): Likewise.
22256 * modules/strtoumax (Makefile.am): Likewise.
22257 * modules/strverscmp (Makefile.am): Likewise.
22258 * modules/time_r (Makefile.am): Likewise.
22259 * modules/timegm (Makefile.am): Likewise.
22260 * modules/tmpfile-safer (Makefile.am): Likewise.
22261 * modules/unistd-safer (Makefile.am): Likewise.
22262 * modules/unlinkdir (Makefile.am): Likewise.
22263 * modules/userspec (Makefile.am): Likewise.
22264 * modules/utime (Makefile.am): Likewise.
22265 * modules/utimecmp (Makefile.am): Likewise.
22266 * modules/utimens (Makefile.am): Likewise.
22267 * modules/vasnprintf (Makefile.am): Likewise.
22268 * modules/vasprintf (Makefile.am): Likewise.
22269 * modules/vsnprintf (Makefile.am): Likewise.
22270 * modules/xalloc (Makefile.am): Likewise.
22271 * modules/xgetcwd (Makefile.am): Likewise.
22272 * modules/xnanosleep (Makefile.am): Likewise.
22273 * modules/xreadlink (Makefile.am): Likewise.
22274 * modules/xstrtod (Makefile.am): Likewise.
22275 * modules/xstrtol (Makefile.am): Likewise.
22276 * modules/xstrtold (Makefile.am): Likewise.
22277 * modules/yesno (Makefile.am): Likewise.
22279 2006-10-12 Jim Meyering <jim@meyering.net>
22281 * m4/getloadavg.m4: Revert the change below.
22283 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
22284 lib/getloadavg.c using "ls -L", not "test -f". The latter would
22285 fail with a symlink, which is what coreutils' ./bootstrap now
22286 creates by default.
22288 2006-10-12 Bruno Haible <bruno@clisp.org>
22290 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
22292 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
22293 MSVC and mingw explicitly.
22295 2006-10-11 Simon Josefsson <jas@extundo.com>
22296 Bruno Haible <bruno@clisp.org>
22298 Add support for multiple gnulib-tool invocations in the scope of a
22299 single configure.ac file.
22300 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
22301 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
22302 with the same contents as the _LIBADD variable.
22303 (func_emit_initmacro_start, func_emit_initmacro_end,
22304 func_emit_initmacro_done): New functions.
22305 (func_import, func_create_testdir): Invoke them. Allow the identifiers
22306 gl_LIBOBJS and gl_LTLIBOBJS.
22308 2006-10-11 Bruno Haible <bruno@clisp.org>
22310 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
22311 (func_create_testdir): Don't create po/Makefile.am, don't invoke
22312 autoreconf. Instead, invoke autopoint explicitly but move back the
22313 *.m4 files from gnulib.
22315 2006-10-11 Bruno Haible <bruno@clisp.org>
22317 * gnulib-tool (func_usage): Make module names after --create-testdir
22319 (func_create_testdir): If no module was specified, use nearly all
22322 2006-10-12 Jim Meyering <jim@meyering.net>
22324 Big performance improvement for fts-based tools that use FTS_NOSTAT.
22325 Avoid spurious inode-mismatch problems on non-POSIX file systems.
22326 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
22327 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
22328 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
22329 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
22330 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
22331 (fts_set_stat_required): New function.
22332 (fts_open): Defer the calls to fts_stat, if possible or requested.
22333 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
22334 into fts_stat itself.
22335 (fts_read): Perform any required (deferred) fts_stat call.
22336 (fts_build): Likewise, for the directory we're about to open and read.
22337 In the readdir loop, carefully decide whether each entry will require
22338 an eventual call to fts_stat, using dirent.d_type info if available.
22339 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
22340 a command line argument into this function. Update all callers.
22341 Map a return value of FTS_DOT to FTS_D for a command line argument.
22342 * modules/fts (Depends-on): Add d-type. Alphabetize.
22343 Thanks to Miklos Szeredi for his tenacity and for the initial
22344 bug report about "find" failing on a FUSE-based file system.
22346 * lib/fts.c (fts_open): Use consistent indentation.
22348 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
22350 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
22351 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
22352 reported by Jim Meyering. All uses of cache variables renamed
22353 to match Autoconf's.
22354 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
22357 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
22358 Fix misspelling in diagnostic.
22360 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
22362 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
22363 defined. Problem reported by Matthew Woehlke.
22365 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
22366 Add support for Tandem NonStop R series.
22367 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
22370 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
22371 (has_trailing_slash): Omit size arg; all callers changed.
22372 Omit 'inline', since it doesn't help performance and we'd
22373 need to configure it.
22374 Don't count //, ///, etc. as having a trailing slash.
22375 As a side effect, this removes a C99ism reported by Matthew Woehlke.
22376 (rpl_rename_dest_slash): On failure, use rename's errno rather
22377 than (in some cases) an incorrect or junk errno.
22378 Simplify code by removing need to compute length; this does
22379 cause it to make two passes instead of one over the file name,
22382 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
22383 change, since Autoconf's version may no longer be appropriate now
22384 that we are using CVS Autoconf's version. Add support for Tandem.
22386 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
22387 Bruno Haible <bruno@clisp.org>
22389 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
22390 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
22391 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
22392 gl_AC_TYPE_LONG_LONG.
22394 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
22395 instead of HAVE_LONG_LONG.
22396 * lib/printf-args.c (printf_fetchargs): Likewise.
22397 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
22398 * lib/vasnprintf.c (VASNPRINTF): Likewise.
22399 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
22400 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
22401 gl_AC_TYPE_LONG_LONG.
22403 2006-10-11 Bruno Haible <bruno@clisp.org>
22405 * m4/longlong.m4: Add comments.
22406 * m4/ulonglong.m4: Likewise.
22408 2006-10-10 Bruno Haible <bruno@clisp.org>
22410 Make it possible to #define stpcpy, strdup to aliases.
22411 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
22412 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
22414 2006-10-10 Bruno Haible <bruno@clisp.org>
22416 Make it possible to #define gcd to an alias.
22417 * lib/gcd.c: Include config.h.
22419 2006-10-10 Bruno Haible <bruno@clisp.org>
22421 Make it possible to #define c_isascii to an alias.
22422 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
22423 defined. Undefine the macros before defining them, to avoid gcc
22425 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
22426 define NO_C_CTYPE_MACROS early.
22428 2006-10-10 Bruno Haible <bruno@clisp.org>
22430 Make it possible to #define set_program_name to an alias.
22431 * lib/progname.c: Don't undefine set_program_name; instead, undefine
22432 ENABLE_RELOCATABLE early.
22434 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
22436 Port to Tandem NSK OSS, which has 64-bit signed int but at most
22437 32-bit unsigned int. Problem reported by Matthew Woehlke in:
22438 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
22439 More generally, don't assume that 64-bit signed int is available
22440 if unsigned int is, and vice versa.
22441 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
22442 unsigned symbols, not on their signed counterparts.
22443 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
22444 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
22445 (UINT64_C, UINTMAX_C):
22447 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
22448 unsigned counterparts.
22449 (Have_long_long, Unsigned): New macros.
22450 (Int): Renamed from INT.
22451 (strtoimax): Use the new macros.
22452 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
22453 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
22454 * modules/inttypes (inttypes.h): Substitute
22455 HAVE_UNSIGNED_LONG_LONG_INT.
22456 * modules/stdint (stdint.h): Likewise.
22457 (Files): Add m4/ulonglong.m4.
22459 2006-10-10 Bruno Haible <bruno@clisp.org>
22461 Fix a gcc -Wshadow warning.
22462 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
22464 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
22465 gl_linked_indexof_from_to): Likewise.
22466 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
22468 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
22470 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
22471 Reported by Eric Blake.
22473 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
22475 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
22476 for NetBSD. Problem reported by Bruno Haible.
22478 2006-10-09 Jim Meyering <jim@meyering.net>
22480 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
22481 Patch from Bruno Haible.
22483 2006-10-09 Jim Meyering <jim@meyering.net>
22485 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
22486 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
22487 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
22489 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
22491 Don't include <config.h> twice; this doesn't work in some cases,
22492 e.g., when config.h has "#define intmax_t long long int" and
22493 we include <config.h>, <inttypes.h>, <config.h> in that order.
22494 Problem reported by Matthew Woehlke in:
22495 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
22496 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
22497 * lib/fts-cycle.c: Don't include config.h.
22498 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
22499 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
22500 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
22501 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
22503 * lib/xstrtoumax.c: Likewise.
22504 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
22505 __strtol and the like, so that this module is more like its siblings.
22506 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
22507 Remove; no longer needed now that we assume gnulib inttypes.h.
22509 2006-10-08 Bruno Haible <bruno@clisp.org>
22511 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
22514 2006-10-07 Jim Meyering <jim@meyering.net>
22516 * modules/inttypes (inttypes.h): Revert what seems to have been
22517 an inadvertent part of today's change: use "|", not "/" in the
22518 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
22520 2006-10-07 Bruno Haible <bruno@clisp.org>
22522 * modules/sublist: New file.
22524 2006-10-07 Bruno Haible <bruno@clisp.org>
22526 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
22527 * modules/argz (argz.h): Likewise.
22528 * modules/arpa_inet (arpa/inet.h): Likewise.
22529 * modules/byteswap (byteswap.h): Likewise.
22530 * modules/configmake (configmake.h): Likewise.
22531 * modules/fcntl (fcntl.h): Likewise.
22532 * modules/fnmatch (fnmatch.h): Likewise.
22533 * modules/getopt (getopt.h): Likewise.
22534 * modules/glob (glob.h): Likewise.
22535 * modules/inttypes (inttypes.h): Likewise.
22536 * modules/netinet_in (netinet/in.h): Likewise.
22537 * modules/poll (poll.h): Likewise.
22538 * modules/stdbool (stdbool.h): Likewise.
22539 * modules/stdint (stdint.h): Likewise.
22540 * modules/sys_select (sys/select.h): Likewise.
22541 * modules/sys_socket (sys/socket.h): Likewise.
22542 * modules/sys_stat (sys/stat.h): Likewise.
22543 * modules/sysexits (sysexits.h): Likewise.
22544 * modules/unistd (unistd.h): Likewise.
22545 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22546 Add a "DO NOT EDIT" comment to the generated file.
22547 (func_import): Likewise for gnulib-comp.m4.
22549 2006-10-07 Bruno Haible <bruno@clisp.org>
22551 * lib/gl_sublist.h: New file.
22552 * lib/gl_sublist.c: New file.
22554 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
22556 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
22557 name (relative to the original working directory) and the file
22558 name component (relative to the temporary working directory). All
22560 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
22561 * lib/mkdir-p.c (make_dir_parents): Likewise.
22562 * lib/mkdir-p.h (make_dir_parents): Likewise.
22564 2006-10-06 Eric Blake <ebb9@byu.net>
22566 Define several macros for use by the clean-temp module.
22567 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
22568 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
22569 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
22571 * lib/clean-temp.h (close_stream_temp): New declaration.
22572 * lib/clean-temp.c (includes): Pull in headers according to what
22573 other modules are in use.
22574 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
22576 2006-10-06 Bruno Haible <bruno@clisp.org>
22578 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
22579 instead of fopen, fwriteerror.
22581 2006-10-06 Bruno Haible <bruno@clisp.org>
22583 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
22584 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
22586 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
22587 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
22588 Return an error indicator.
22589 Suggested by Eric Blake.
22591 2006-10-06 Bruno Haible <bruno@clisp.org>
22593 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
22594 Reported by Eric Blake.
22596 2006-10-06 Bruno Haible <bruno@clisp.org>
22598 * modules/closeout (Description): Mention stderr too.
22600 2006-10-06 Bruno Haible <bruno@clisp.org>
22601 and Paul Eggert <eggert@cs.ucla.edu>
22603 * lib/closeout.c (close_stdout): Also close stderr.
22604 * lib/closeout.h: Update comment.
22606 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
22608 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
22609 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
22610 * lib/dirchownmod.c: Include lchown.h.
22611 * lib/lchown.c: Don't include files that lchown.h now includes.
22612 Don't declare chown, since lchown.h now does that.
22613 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
22614 (lchown): Define to rpl_chown if lchown is declared but
22615 does not exist. Declare using a prototype if lchown is not
22616 declared. Add a copyright notice.
22617 * lib/mkstemp.h: Include <unistd.h>.
22618 * lib/openat.c: Include lchown.h.
22620 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
22621 we now test for that separately.
22622 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
22623 rather than O_NOFOLLOW, when testing whether it's possible to
22624 avoid a race condition reliably.
22625 * lib/savewd.c (savewd_chdir): Likewise.
22627 Remove macros that are no longer needed now that stdint.h is
22629 * lib/fsusage.c (UINTMAX_MAX): Remove.
22630 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
22631 * lib/utimecmp.c (SIZE_MAX): Remove.
22633 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
22635 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
22636 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
22639 2006-10-05 Bruno Haible <bruno@clisp.org>
22641 * lib/gl_list.h (gl_sortedlist_search_from_to,
22642 gl_sortedlist_indexof_from_to): New declarations.
22643 (gl_list_implementation): New fields sortedlist_search_from_to,
22644 sortedlist_indexof_from_to.
22645 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
22647 * lib/gl_list.c (gl_sortedlist_search_from_to,
22648 gl_sortedlist_indexof_from_to): New functions.
22649 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
22651 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
22652 (gl_array_sortedlist_search_from_to): New function.
22653 (gl_array_list_implementation): Update.
22654 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
22656 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
22657 (gl_carray_sortedlist_search_from_to): New function.
22658 (gl_carray_list_implementation): Update.
22659 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
22660 gl_linked_sortedlist_indexof_from_to): New functions.
22661 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22662 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22663 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
22664 gl_tree_sortedlist_indexof_from_to): New functions.
22665 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22666 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22668 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22669 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
22672 2006-10-05 Bruno Haible <bruno@clisp.org>
22674 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
22675 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
22676 (struct gl_list_implementation): Add fields search_from_to,
22677 indexof_from_to. Remove fields search, indexof.
22678 (gl_list_search): Use the search_from_to method.
22679 (gl_list_search_from, gl_list_search_from_to): New functions.
22680 (gl_list_indexof): Use the indexof_from_to method.
22681 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
22682 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
22683 (gl_list_search_from, gl_list_search_from_to): New functions.
22684 (gl_list_indexof): Use the indexof_from_to method.
22685 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
22686 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
22687 gl_array_indexof. Add start_index, end_index arguments.
22688 (gl_array_search_from_to): Renamed from gl_array_search. Add
22689 start_index, end_index arguments.
22690 (gl_array_remove, gl_array_list_implementation): Update.
22691 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
22692 gl_carray_indexof. Add start_index, end_index arguments.
22693 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
22694 start_index, end_index arguments.
22695 (gl_carray_remove, gl_carray_list_implementation): Update.
22696 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
22697 gl_linked_search. Add start_index, end_index arguments.
22698 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
22699 start_index, end_index arguments.
22700 (gl_linked_remove): Update.
22701 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22702 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22703 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
22705 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
22706 gl_tree_search. Add start_index, end_index arguments.
22707 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
22708 start_index, end_index arguments.
22709 (gl_tree_remove): Update.
22710 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22711 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22712 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
22714 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
22715 gl_tree_search. Add start_index, end_index arguments.
22716 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
22717 start_index, end_index arguments.
22718 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22720 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
22722 2006-10-05 Bruno Haible <bruno@clisp.org>
22724 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
22726 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
22727 fwriteerror_temp): New declarations.
22728 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
22729 (descriptors): New variable.
22730 (cleanup): First, close the descriptors.
22731 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
22732 fclose_temp, fwriteerror_temp): New functions.
22734 2006-10-04 Jim Meyering <jim@meyering.net>
22736 * lib/fts.c (fts_open): Tiny comment change.
22738 2006-10-04 Bruno Haible <bruno@clisp.org>
22740 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
22741 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
22743 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
22744 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
22745 gl_LOCK_EARLY_BODY.
22746 (gl_LOCK): Require gl_LOCK_BODY.
22748 2006-10-04 Bruno Haible <bruno@clisp.org>
22750 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
22751 (gl_oset_search_atleast): New declaration.
22752 (struct gl_oset_implementation): Add field 'search_atleast'.
22753 (gl_oset_search_atleast): New inline function.
22754 * lib/gl_oset.c (gl_oset_search_atleast): New function.
22755 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
22756 (gl_array_oset_implementation): Update.
22757 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
22758 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
22759 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
22761 2006-10-04 Bruno Haible <bruno@clisp.org>
22763 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
22765 2006-10-03 Bruno Haible <bruno@clisp.org>
22767 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
22768 from gl_avltreehash_list_implementation.
22770 2006-10-03 Bruno Haible <bruno@clisp.org>
22772 * lib/gl_oset.c (gl_oset_add): Fix return type.
22774 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
22776 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
22778 2006-10-02 Eric Blake <ebb9@byu.net>
22780 * modules/strnlen (Depends-on): Add extensions.
22782 2006-10-02 Eric Blake <ebb9@byu.net>
22784 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
22785 definition in 2.60+.
22787 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
22789 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
22792 2006-10-02 Bruno Haible <bruno@clisp.org>
22794 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
22795 to the AUTOMAKE_OPTIONS.
22796 Reported by Jim Meyering.
22798 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
22800 Work around bug in Solaris 10 /proc file system:
22801 /proc/self/fd/NNN/.. isn't the parent directory of
22802 the directory whose file descriptor is NNN. This needs to
22803 be worked around at run time, not compile time, since a
22804 program might be built on Solaris 8, where things work, and
22806 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
22807 to use the following interface instead:
22808 (OPENAT_BUFFER_SIZE): New macro.
22809 (openat_proc_name): New function.
22810 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
22811 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
22813 * lib/openat-proc.c: New file.
22814 * modules/openat (Files): Add lib/openat-proc.c.
22815 (Depends-on): Add same-inode, stdbool.
22816 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
22818 2006-09-29 Bruno Haible <bruno@clisp.org>
22820 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
22821 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
22822 argument. Set stdout_closed before testing for ferror, not after.
22823 (fwriteerror, fwriteerror_no_ebadf): New functions.
22825 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22827 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
22829 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
22831 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
22832 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
22834 2006-09-28 Jim Meyering <jim@meyering.net>
22836 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
22837 Include <unistd.h>.
22839 2006-09-28 Bruno Haible <bruno@clisp.org>
22841 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
22842 * modules/linkedhash-list (Depends-on): Likewise.
22843 * modules/rbtreehash-list (Depends-on): Likewise.
22845 2006-09-28 Bruno Haible <bruno@clisp.org>
22847 * lib/strndup.h: Simplify the redefinition of strndup.
22848 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
22849 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
22851 2006-09-28 Bruno Haible <bruno@clisp.org>
22853 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
22854 * lib/gl_linkedhash_list.c: Likewise.
22855 * lib/gl_rbtreehash_list.c: Likewise.
22857 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
22859 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
22862 * lib/__fpending.h: Don't include <stdio_ext.h> unless
22863 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
22864 it causes <stdio_ext.h> to cause a compile-time error.
22865 Problem reported by Nelson H. F. Beebe.
22866 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
22867 of HAVE_DECL___PENDING.
22869 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
22870 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
22873 2006-09-27 Jim Meyering <jim@meyering.net>
22875 This file could end up with a definition for a function
22876 named __strndup, rather than rpl_strndup on a system with
22877 incomplete weak_alias support.
22878 * lib/strndup.c (strndup): Rename from __strndup.
22879 Remove #defines that used to map __strndup to strndup.
22880 Don't use K&R prototypes.
22881 Remove LIBC-related code, since this file is not sync'd with glibc.
22882 * lib/strndup.h: Revamp, accordingly.
22883 * m4/strndup.m4: Modernize.
22885 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
22887 * modules/savewd (Depends-on): Add 'raise'.
22888 * lib/savewd.c: Include <signal.h>, for 'raise'.
22890 2006-09-26 Jim Meyering <jim@meyering.net>
22892 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
22893 when we detect Darwin 8.7.0's acl_get_file bug.
22894 Rearrange to perform the new (below) run-test while $LIBS
22895 contains any acl-related library. Set USE_ACL at the end.
22896 (gl_ACL_GET_FILE): New function.
22898 2006-09-26 Eric Blake <ebb9@byu.net>
22900 * lib/verror.c: Include <config.h> unconditionally.
22902 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
22904 * modules/clock-time (Maintainer): Add self.
22905 * modules/getlogin_r (Depends-on): Add extensions.
22907 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22909 * modules/clock-time: New module.
22910 * modules/nanosleep (Depends-on): Add clock-time.
22911 * modules/gethrxtime (Depends-on): Likewise.
22912 * modules/gettime (Depends-on): Likewise.
22913 * modules/settime (Depends-on): Likewise.
22915 * modules/fts-lgpl: Depend on openat.
22916 * modules/mkancesdirs: Depend on savewd.
22917 * modules/mkdir-p: Likewise.
22919 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22921 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
22923 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
22924 `gl_have_arbitrary_file_name_length_limit' to
22925 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
22926 actually works between configure runs.
22928 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22929 Bruno Haible <bruno@clisp.org>
22931 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
22933 2006-09-25 Jim Meyering <jim@meyering.net>
22935 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
22936 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
22938 2006-09-25 Eric Blake <ebb9@byu.net>
22940 * gnulib-tool (func_import, func_create_testdir): Fix typos in
22941 exec's in 2006-09-18 patch when shuffling fds.
22943 2006-09-25 Bruno Haible <bruno@clisp.org>
22945 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
22946 Reported by Jim Meyering.
22948 2006-09-24 Jim Meyering <jim@meyering.net>
22950 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
22951 compare a pointer against a literal "0". That caused failures with
22952 at least HP-UX's hpcc.
22954 2006-09-22 Simon Josefsson <jas@extundo.com>
22958 * modules/gc-hmac-sha1:
22959 * modules/gc-hmac-md5:
22961 * modules/gc-arcfour: Distribute more files.
22963 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22965 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
22966 (gl_linked_iterator_from_to): Initialize struct completely.
22967 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
22968 (gl_tree_iterator_from_to): Likewise
22969 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
22970 * lib/gl_array_list.c [lint] (gl_array_iterator)
22971 (gl_array_iterator_from_to): Likewise.
22972 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
22973 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
22974 (gl_carray_iterator_from_to): Likewise.
22976 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
22977 * lib/md4.c (md4_process_block): Remove unused variable.
22978 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
22979 parentheses for clarity.
22981 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22983 * modules/bison-i18n (Depends-on): Add gettext.
22985 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22987 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
22988 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
22989 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
22990 also add missing comma that caused broken test.
22991 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
22992 stdlib.h, for `abort'.
22993 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
22995 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
22996 include unistd.h if present, for `rmdir'.
22997 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
22999 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
23000 in the process include standard headers for prototypes.
23001 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
23002 gets declared on GNU/Linux.
23003 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
23004 unistd.h, for `rmdir'.
23005 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
23007 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
23009 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
23011 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
23013 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23015 * gnulib-tool (func_version): Create output all at once. This
23016 may help avoid triggering unnecessary SIGPIPEs, and at any
23017 rate it doesn't hurt.
23019 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23020 Bruno Haible <bruno@clisp.org>
23022 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
23023 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23024 * m4/signed.m4 (bh_C_SIGNED): Likewise.
23026 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
23027 (gl_FUNC_VASPRINTF): Invoke it.
23029 2006-09-22 Bruno Haible <bruno@clisp.org>
23031 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
23032 getloadavg.c as first argument.
23034 2006-09-22 Bruno Haible <bruno@clisp.org>
23036 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
23037 at the beginning of the gl_INIT macro.
23038 * modules/getloadavg (configure.ac): Pass $gl_source_base to
23041 2006-09-22 Bruno Haible <bruno@clisp.org>
23043 * gnulib-tool (func_create_megatestdir): Don't include the config-h
23045 Suggested by Ralf Wildenhues.
23047 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
23049 Import this patch from libc:
23051 2006-09-06 Jakub Jelinek <jakub@redhat.com>
23053 * lib/regex_internal.c (re_string_reconstruct): Handle
23054 offset < pstr->valid_raw_len && pstr->offsets_needed case.
23055 Ensure no bytes read before raw_mbs array. Pass a saved copy of
23056 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
23057 re_string_context_at.
23059 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
23061 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
23062 gl_REGEX now does it for us.
23063 (gl_REGEX): Add test taken from
23064 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
23066 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
23067 Check that large offsets work. Modernize Autoconf usages.
23068 Prefer "yes" to mean a good thing rather than a bad.
23069 Don't put "#define mkstemp" in config.h, as this might interfere
23070 with standard system headers that "#define mkstemp mkstemp64".
23072 * modules/mkstemp (Depends-on): Add extensions, so that
23073 mkstemp is visible on some platforms.
23074 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
23075 (Include): Change to "mkstemp.h" from <stdlib.h>.
23076 (Files): Add mkstemp.h.
23078 * lib/mkstemp.h: New file, since some standard headers
23080 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
23081 Include "mkstemp.h".
23082 Make the _LIBC code resemble glibc original more,
23083 e.g., use K&R style.
23084 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
23085 (mkstemp): Remove, since mkstemp.h does this for us.
23086 * lib/stdlib--.h: Include mkstemp.h.
23088 Import this patch from libc:
23090 2006-04-07 Ulrich Drepper <drepper@redhat.com>
23092 * lib/tempname.c (__gen_tempname): Change attempts_min
23093 into a macro. Use preprocessor to decide how to initialize
23094 attempts [Coverity CID 67].
23096 2006-09-20 Bruno Haible <bruno@clisp.org>
23098 * lib/mkdtemp.c: Import from libc.
23099 2006-04-07 Ulrich Drepper <drepper@redhat.com>
23100 * sysdeps/posix/tempname.c (__gen_tempname): Change
23101 attempts_min into a macro. Use preprocessor to decide how to
23102 initialize attempts [Coverity CID 67].
23103 2001-11-27 Paul Eggert <eggert@twinsun.com>
23104 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
23105 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
23107 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23109 * gnulib-tool (func_exit): New function, to allow to pass the
23110 exit status portably through the trap. Use everywhere.
23111 (--help, --version): Signal a write error.
23112 (trap): catch SIGPIPE, for write errors.
23113 Exit at the end of the trap, with the correct exit status.
23115 2006-09-19 Karl Berry <karl@gnu.org>
23117 * doc/gnulib.texi: note about the license texinfo files.
23119 2006-09-19 Eric Blake <ebb9@byu.net>
23121 * gnulib-tool: Avoid space-tab.
23123 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
23125 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
23126 that prevented coreutils 6.1 from building. Problem reported
23127 by Petter Reinholdtsen.
23129 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
23131 * gnulib-tool (avoidlist): Fix typo that broke options like
23132 --avoid=lock that are used by coreutils bootstrap.
23134 2006-09-18 Mark D. Baushke <mdb@gnu.org>
23136 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
23137 more systematically.
23139 2006-09-18 Jim Meyering <jim@meyering.net>
23141 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
23143 2006-09-18 Bruno Haible <bruno@clisp.org>
23145 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
23147 2006-09-18 Bruno Haible <bruno@clisp.org>
23149 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
23150 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
23151 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
23152 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
23153 * m4/gettext.m4: Require autoconf >= 2.52.
23154 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
23155 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
23156 of gl_cv_header_inttypes_h.
23158 2006-09-18 Bruno Haible <bruno@clisp.org>
23160 * lib/javaversion.c: Include configmake.h.
23162 2006-09-18 Bruno Haible <bruno@clisp.org>
23164 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
23165 avoid that the while loops be executed in a subshell.
23167 2006-09-18 Bruno Haible <bruno@clisp.org>
23169 * MODULES.html.sh (func_module): Break long lines.
23170 Suggested by Bruce Korb <bkorb@gnu.org>.
23172 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23174 Speed up by a factor of 1.12.
23175 * gnulib-tool (nl): New variable.
23176 (func_import): Rewrite include directive extraction to only read each
23179 2006-09-17 Bruno Haible <bruno@clisp.org>
23181 * modules/javaversion (Makefile.am): Remove DEFS setting.
23182 (Depends-on): Add configmake, for PKGDATADIR definition.
23184 2006-09-17 Bruno Haible <bruno@clisp.org>
23186 * gnulib-tool (func_create_testdir): Rewrite all files at once.
23188 2006-09-17 Bruno Haible <bruno@clisp.org>
23190 * gnulib-tool (func_append): New function, stolen from libtool.m4.
23191 (func_modules_transitive_closure, func_modules_add_dummy,
23192 func_modules_to_filelist, func_import, func_create_testdir,
23193 func_create_megatestdir, ...): Use it wherever possible.
23194 Suggested by Ralf Wildenhues.
23196 2006-09-16 Karl Berry <karl@gnu.org>
23198 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
23199 to avoid sectioning errors.
23200 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
23201 [ifinfo]: blank line after @center-ed titles.
23202 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
23203 Spell FSF address consistently with others.
23204 (These changes approved by rms.)
23206 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23208 Speed up by a factor of 1.61.
23209 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
23210 already checked module names again.
23212 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23214 Speed up by a factor of 1.13.
23215 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
23216 for new_files, and the input to func_add_or_update.
23218 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23220 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
23221 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
23223 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
23225 * modules/mkancesdirs (Depends-on): Add fcntl.
23226 * modules/savewd: New file.
23227 * MODULES.html.sh (File system functions): Add savewd.
23229 * modules/configmake (Makefile.am): Add support for the
23230 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
23232 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
23234 * m4/savewd.m4: New file.
23236 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
23238 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
23239 (dirchownmod): New arg FD. All callers changed.
23240 Use FD rather than opening the directory ourself, as opening is
23241 now the caller's responsibility.
23242 * lib/dirchownmod.h: Likewise.
23243 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
23244 hosts that require <sys/types.h> before <sys/stat.h>. Include
23245 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
23246 (test_dir): Remove.
23247 (mkancesdirs): Return length of prefix of FILE that has already
23248 been made, or -2 if there is a child doing the work. Redo
23249 algorithm so that it is O(N) rather than O(N**2). Optimize away
23250 ".", and treat ".." specially since it might stray back into
23251 already-created areas. Use a subprocess if necessary. New arg
23252 WD; all users changed. MAKE_DIR function should now return 1
23253 if it creates a directory that is not readable. Return -2 if
23254 a child process is spun off.
23255 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
23256 Adjust signature to match code.
23257 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
23258 (make_dir_parents): Use a subprocess if necessary. New arg WD;
23260 * lib/savewd.c, lib/savewd.h: New files.
23262 2006-09-15 Jim Meyering <jim@meyering.net>
23264 * modules/rename-dest-slash: New module.
23265 * MODULES.html.sh (posix_compat): Add it here.
23267 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
23269 2006-09-15 Jim Meyering <jim@meyering.net>
23271 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
23274 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
23276 2006-09-15 Jim Meyering <jim@meyering.net>
23278 * lib/rename-dest-slash.c (has_trailing_slash): Use
23279 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
23280 (rpl_rename_dest_slash): Perform the cheaper trailing slash
23281 test before testing whether SRC is a directory.
23282 Suggestions from Bruno Haible.
23284 Avoid a warning about an unused variable.
23285 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
23286 into the #ifdef block where it's used.
23288 * lib/rename-dest-slash.c: New file.
23290 2006-09-14 Bruno Haible <bruno@clisp.org>
23292 * lib/allocsa.c: Include <config.h> unconditionally.
23293 * lib/asnprintf.c: Likewise.
23294 * lib/asprintf.c: Likewise.
23295 * lib/c-strcasecmp.c: Likewise.
23296 * lib/c-strcasestr.c: Likewise.
23297 * lib/c-strncasecmp.c: Likewise.
23298 * lib/c-strstr.c: Likewise.
23299 * lib/classpath.c: Likewise.
23300 * lib/clean-temp.c: Likewise.
23301 * lib/concatpath.c: Likewise.
23302 * lib/copy-file.c: Likewise.
23303 * lib/csharpcomp.c: Likewise.
23304 * lib/csharpexec.c: Likewise.
23305 * lib/execute.c: Likewise.
23306 * lib/fatal-signal.c: Likewise.
23307 * lib/findprog.c: Likewise.
23308 * lib/fwriteerror.c: Likewise.
23309 * lib/gl_array_list.c: Likewise.
23310 * lib/gl_array_oset.c: Likewise.
23311 * lib/gl_avltree_list.c: Likewise.
23312 * lib/gl_avltree_oset.c: Likewise.
23313 * lib/gl_avltreehash_list.c: Likewise.
23314 * lib/gl_carray_list.c: Likewise.
23315 * lib/gl_linked_list.c: Likewise.
23316 * lib/gl_linkedhash_list.c: Likewise.
23317 * lib/gl_list.c: Likewise.
23318 * lib/gl_oset.c: Likewise.
23319 * lib/gl_rbtree_list.c: Likewise.
23320 * lib/gl_rbtree_oset.c: Likewise.
23321 * lib/gl_rbtreehash_list.c: Likewise.
23322 * lib/imaxabs.c: Likewise.
23323 * lib/imaxdiv.c: Likewise.
23324 * lib/javacomp.c: Likewise.
23325 * lib/javaexec.c: Likewise.
23326 * lib/javaversion.c: Likewise.
23327 * lib/linebreak.c: Likewise.
23328 * lib/localcharset.c: Likewise.
23329 * lib/lock.c: Likewise.
23330 * lib/mbchar.c: Likewise.
23331 * lib/mbswidth.c: Likewise.
23332 * lib/mkdtemp.c: Likewise.
23333 * lib/pipe.c: Likewise.
23334 * lib/printf-args.c: Likewise.
23335 * lib/printf-parse.c: Likewise.
23336 * lib/progname.c: Likewise.
23337 * lib/progreloc.c: Likewise.
23338 * lib/readlink.c: Likewise.
23339 * lib/sh-quote.c: Likewise.
23340 * lib/stpcpy.c: Likewise.
23341 * lib/stpncpy.c: Likewise.
23342 * lib/strcasecmp.c: Likewise.
23343 * lib/strcasestr.c: Likewise.
23344 * lib/strcspn.c: Likewise.
23345 * lib/striconv.c: Likewise.
23346 * lib/strncasecmp.c: Likewise.
23347 * lib/strnlen1.c: Likewise.
23348 * lib/strstr.c: Likewise.
23349 * lib/strtok_r.c: Likewise.
23350 * lib/tls.c: Likewise.
23351 * lib/tmpdir.c: Likewise.
23352 * lib/unicodeio.c: Likewise.
23353 * lib/unsetenv.c: Likewise.
23354 * lib/vasnprintf.c: Likewise.
23355 * lib/vasprintf.c: Likewise.
23356 * lib/wait-process.c: Likewise.
23357 * lib/xallocsa.c: Likewise.
23358 * lib/xsetenv.c: Likewise.
23359 * lib/xstriconv.c: Likewise.
23361 2006-09-13 Simon Josefsson <jas@extundo.com>
23363 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
23364 that internally, suggested by Ralf Wildenhues
23365 <Ralf.Wildenhues@gmx.de>.
23367 2006-09-13 Simon Josefsson <jas@extundo.com>
23369 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
23371 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23373 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
23375 * lib/_fpending.c: Include <config.h> unconditionally, since we no
23376 longer worry about uses that don't define HAVE_CONFIG_H.
23377 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
23378 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
23379 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
23380 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
23381 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
23382 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
23383 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
23384 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
23385 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
23386 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
23387 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
23388 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
23389 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
23390 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
23391 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
23392 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
23393 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
23394 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
23395 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
23396 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
23397 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
23398 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
23399 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
23400 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
23401 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
23402 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
23403 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
23404 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
23405 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
23406 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
23407 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
23408 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
23409 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
23410 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
23411 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
23412 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
23413 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
23414 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
23415 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
23416 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
23417 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
23420 2006-09-13 Eric Blake <ebb9@byu.net>
23422 * lib/getopt.c: Fix typo in last commit.
23424 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
23426 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
23429 2006-09-12 Jim Meyering <jim@meyering.net>
23431 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
23432 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
23433 Reported by Nelson H. F. Beebe.
23435 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
23437 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
23438 program_invocation_name and program_invocation_short_name are
23440 * lib/argp-namefrob.h: Move declarations of program_invocation_name
23441 and program_invocation_short_name to argp.h, so they are visible
23443 * lib/argp.h: Likewise
23445 2006-09-10 Bruno Haible <bruno@clisp.org>
23447 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
23448 m4/inttypes_h.m4, m4/uintmax_t.m4.
23450 2006-09-10 Bruno Haible <bruno@clisp.org>
23452 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
23453 gl_AC_TYPE_UINTMAX_T.
23455 2006-09-10 Bruno Haible <bruno@clisp.org>
23457 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
23459 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
23461 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
23462 convention. Text proposed by Bruno Haible.
23463 (struct argp_option): Document the use of N_() wrappers.
23465 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
23466 '\v', and translate the two parts separately, instead of feeding
23467 the whole string to gettext. This allows to exclude
23468 '\v' from the strings visible to the translator by writing doc
23469 strings as N_("..") "\v" N_("..").
23471 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
23473 * config/srclist.txt: Undo latest change; the bug was fixed.
23475 2006-09-09 Bruno Haible <bruno@clisp.org>
23477 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
23478 assignments if building a library without libtool.
23479 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
23480 in func_emit_lib_Makefile_am.
23481 (func_import): When building a static library libfoo.a, arrange to
23482 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
23483 (func_create_testdir): Likewise.
23484 * modules/gc (configure.ac, Makefile.am): If building statically,
23485 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
23486 * modules/iconvme (configure.ac, Makefile.am): Likewise.
23487 * modules/striconv (configure.ac, Makefile.am): Likewise.
23488 Based on a suggestion by Ralf Wildenhues.
23490 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
23492 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
23493 Check for unistd.h too, since Autoconf doesn't assume POSIX.
23496 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
23497 Add year_2050_test to catch glibc bug 2821
23498 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
23500 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
23501 Prefer #ifdef to #if.
23503 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
23504 Return from 'main' instead of calling 'exit'.
23506 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
23508 * lib/mktime.c (guess_time_tm): Fix bug where mktime
23509 returned the maximum time_t value rather than (time_t) -1.
23510 Problem originally reported by William Bardwell
23511 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
23513 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
23515 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
23518 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
23520 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
23523 2006-09-08 Jim Meyering <jim@meyering.net>
23525 Don't make generated files read-only. That would bother too many
23526 people. However, do retain the ability to work when targets are
23527 read-only: remove the destination and temporary files before writing
23528 them (when generated via sed or echo), or by using the -f option for
23529 both cp and mv commands. Suggestion to use -f from Paul Eggert.
23530 * modules/alloca-opt, modules/argz, modules/arpa_inet:
23531 * modules/byteswap, modules/configmake, modules/fcntl:
23532 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
23533 * modules/localcharset, modules/netinet_in, modules/poll:
23534 * modules/stdbool, modules/stdint, modules/sys_select:
23535 * modules/sys_socket, modules/sys_stat, modules/sysexits:
23537 2006-09-08 Jim Meyering <jim@meyering.net>
23539 Avoid new build failure on FreeBSD 6.0.
23540 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
23541 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
23542 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
23544 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23546 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
23548 2006-09-07 Jim Meyering <jim@meyering.net>
23550 Fix global typo in last change: use chmod u-w, not chmod u-x.
23551 Spotted by Paul Eggert and Bruce Korb.
23552 * modules/alloca-opt, modules/argz, modules/arpa_inet:
23553 * modules/byteswap, modules/configmake, modules/fcntl:
23554 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
23555 * modules/localcharset, modules/netinet_in, modules/poll:
23556 * modules/stdbool, modules/stdint, modules/sys_select:
23557 * modules/sys_socket, modules/sys_stat, modules/sysexits:
23559 2006-09-06 Jim Meyering <jim@meyering.net>
23561 Make generated files be read-only.
23562 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
23563 Ensure that each generated file is now read-only.
23564 * modules/argz: Likewise.
23565 * modules/arpa_inet: Likewise.
23566 * modules/byteswap: Likewise.
23567 * modules/configmake: Likewise.
23568 * modules/fcntl: Likewise.
23569 * modules/fnmatch: Likewise.
23570 * modules/getopt: Likewise.
23571 * modules/glob: Likewise.
23572 * modules/inttypes: Likewise.
23573 * modules/netinet_in: Likewise.
23574 * modules/poll: Likewise.
23575 * modules/stdbool: Likewise.
23576 * modules/stdint: Likewise.
23577 * modules/sys_select: Likewise.
23578 * modules/sys_socket: Likewise.
23579 * modules/sys_stat: Likewise.
23580 * modules/sysexits: Likewise.
23581 * modules/localcharset: Same as above, but continue using temporary
23582 file named "t-$@" (why different?) rather than the "$@-t" used
23585 * modules/sysexits (Makefile.am): Replace literal occurrences
23586 of "sysexit.h" more readable, and more consistent, "$@".
23588 2006-09-06 Bruno Haible <bruno@clisp.org>
23590 * modules/striconv: New file.
23591 * modules/xstriconv: New file.
23592 * MODULES.html.sh (Internationalization functions): Add striconv,
23595 2006-09-06 Bruno Haible <bruno@clisp.org>
23597 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
23598 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
23599 not using libtool correctly.
23601 2006-09-06 Bruno Haible <bruno@clisp.org>
23603 * lib/striconv.h: New file.
23604 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
23606 * lib/xstriconv.h: New file.
23607 * lib/xstriconv.c: New file.
23609 2006-09-06 Bruno Haible <bruno@clisp.org>
23611 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
23614 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23616 * lib/argz_.h: Sync from Libtool.
23618 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
23619 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23621 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
23623 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
23625 * modules/trim: New file.
23627 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
23629 * lib/trim.h: New file.
23630 * lib/trim.c: New file.
23632 2006-09-05 Bruno Haible <bruno@clisp.org>
23634 * MODULES.html.sh (String handling): Add trim.
23636 2006-09-04 Karl Berry <karl@gnu.org>
23638 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
23639 until next release.
23641 2006-09-03 Bruno Haible <bruno@clisp.org>
23643 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
23646 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
23648 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
23649 not gl_GETLOADAVG. Omit unneeded semicolons.
23650 Problems reported by Ralf Wildenhues in
23651 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
23652 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
23653 at the end, which is the usual gnulib style.
23655 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
23656 of doing all the work ourselves.
23657 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
23658 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
23660 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
23662 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
23663 Problem reported by Ralf Wildenhues in
23664 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
23666 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
23667 HAVE_STRUCT_STATFS_F_FSTYPENAME.
23669 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
23671 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
23672 yesterday's patch by changing test -n to test -z.
23674 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
23676 * modules/getloadavg (Files): Add m4/getloadavg.m4.
23677 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
23678 the former is now obsolescent.
23680 * modules/chdir-long (Depends-on): Add fcntl.
23682 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
23684 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
23685 obsolescent, and programs should use gnulib instead.
23686 * m4/getloadavg.m4: New file, with contents taken from Autoconf
23687 but with prefixes changed.
23689 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
23691 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
23692 or stdbool.h, because they might not exist while configuring.
23694 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
23695 Don't include unistd.h or limits.h; not needed, since chdir-long.h
23697 (O_DIRECTORY): Remove.
23699 2006-08-31 Eric Blake <ebb9@byu.net>
23701 * gnulib-tool: Don't let emacs change spaces to TAB.
23703 2006-08-31 Bruno Haible <bruno@clisp.org>
23705 * gnulib-tool: When calling func_import more than once, do it in a
23707 Reported by Eric Blake <ebb9@byu.net>.
23709 2006-08-31 Bruno Haible <bruno@clisp.org>
23711 * gnulib-tool (nl): Remove variable.
23712 (sed_transform_lib_file): Use more robust test for config-h module.
23713 (func_import): Fix typo in 2006-08-25 patch.
23715 2006-08-31 Bruno Haible <bruno@clisp.org>
23717 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
23718 specified, augment Makefile.am variables instead of assigning them.
23720 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
23722 Work around a bug in both the Linux and SunOS 64-bit kernels:
23723 nanosleep mishandles sleeps for longer than 2**31 seconds.
23724 Problem reported by Frank v Waveren in
23725 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
23726 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
23727 Check for nanosleep bug.
23728 (LIB_NANOSLEEP): Append clock_gettime library if needed.
23730 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
23732 Work around a bug in both the Linux and SunOS 64-bit kernels:
23733 nanosleep mishandles sleeps for longer than 2**31 seconds.
23734 Problem reported by Frank v Waveren in
23735 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
23736 * lib/nanosleep.c (BILLION): New constant.
23737 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
23738 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
23741 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
23743 * modules/nanosleep (Depends-on): Add gettime.
23745 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
23746 and Simon Josefsson <jas@extundo.com>
23747 and Oskar Liljeblad <oskar@osk.mine.nu>
23749 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
23750 * gnulib-tool (func_import): New license type 'unmodifiable license
23752 * modules/fdl: Use it. Longer description.
23753 * module/gpl, module/lgpl: New files.
23755 2006-08-30 Jim Meyering <jim@meyering.net>
23757 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
23758 shadowing the parameter.
23760 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23764 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23766 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
23767 sharing with gnulib. Report by Eric Blake.
23769 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
23771 * modules/isapipe: New file.
23772 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
23774 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
23776 * modules/configmake (Makefile.am): Add a comment, and omit
23777 the CONFIGMAKE_ prefix from generated macro names. Suggested
23780 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
23782 * m4/isapipe.m4: New file.
23784 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
23786 * lib/isapipe.c, lib/isapipe.h: New files.
23788 2006-08-29 Jim Meyering <jim@meyering.net>
23790 * modules/configmake (Makefile.am): Make configmake.h depend on
23791 Makefile. Otherwise, a stale configmake.h could hang around.
23793 2006-08-29 Eric Blake <ebb9@byu.net>
23795 * lib/error.c (error_at_line, print_errno_message): Match libc, after
23796 resolution of upstream bug 3044.
23798 2006-08-29 Bruno Haible <bruno@clisp.org>
23800 * modules/localcharset (Depends-on): Add configmake.
23801 (Makefile.am): Remove setting of LIBDIR through DEFS.
23803 2006-08-29 Bruno Haible <bruno@clisp.org>
23805 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
23808 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
23810 * modules/fcntl: New file.
23811 * modules/chdir-safer (Depends-on): Add fcntl.
23812 * modules/fts: Likewise.
23813 * modules/mkdir-p: Likewise.
23815 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
23816 This undoes the most recent change, since we're now addressing the
23817 problem in a different way.
23819 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
23820 into output, since the output might be called Makefile.am even
23821 if $makefile_name is something different.
23822 (func_import): Use $makefile_am rather than
23823 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
23826 * modules/inttypes (Files): Add m4/inttypes-h.m4.
23828 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
23830 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
23831 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
23832 recent change to stdint.m4, since we're now addressing the problem in a
23835 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
23837 * m4/fcntl_h.m4: New file.
23839 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
23841 * lib/fcntl_.h: New file.
23842 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
23844 * lib/dirchownmod.c: Likewise.
23845 * lib/fts.c: Likewise.
23847 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
23848 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
23849 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
23850 just before including <inttypes.h>, to avoid circular inclusion.
23852 2006-08-28 Jim Meyering <jim@meyering.net>
23854 * doc/visibility.texi: Actually read and correct the grammar of the
23855 sentence affected by yesterday's change.
23857 2006-08-28 Eric Blake <ebb9@byu.net>
23859 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
23862 2006-08-28 Eric Blake <ebb9@byu.net>
23864 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
23866 2006-08-28 Eric Blake <ebb9@byu.net>
23868 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
23870 2006-08-28 Bruno Haible <bruno@clisp.org>
23872 * modules/c-strstr: New file, from GNU gettext.
23873 * MODULES.html.sh (String handling): Add c-strstr.
23875 2006-08-28 Bruno Haible <bruno@clisp.org>
23877 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
23879 Reported by Eric Blake.
23881 2006-08-28 Bruno Haible <bruno@clisp.org>
23883 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
23884 (VASNPRINTF): Return a string of length > INT_MAX without failing.
23885 * lib/vasprintf.c: Include errno.h, limits.h.
23886 (EOVERFLOW): New fallback definition.
23887 (vasprintf): Test here whether the string length is > INT_MAX.
23888 * lib/vsnprintf.c: Include errno.h, limits.h.
23889 (EOVERFLOW): New fallback definition.
23890 (vsnprintf): Fix bug when generated string was too long for the buffer.
23891 Test here whether the string length is > INT_MAX.
23893 2006-08-28 Bruno Haible <bruno@clisp.org>
23895 * lib/inttypes_.h (SCNX*): Remove definitions.
23896 Reported by Eric Blake.
23898 2006-08-28 Bruno Haible <bruno@clisp.org>
23900 * lib/c-strstr.h: New file, from GNU gettext.
23901 * lib/c-strstr.c: New file, from GNU gettext.
23903 2006-08-28 Bruno Haible <bruno@clisp.org>
23905 * gnulib-tool: Reorder some statements.
23907 2006-08-28 Bruno Haible <bruno@clisp.org>
23909 * gnulib-tool: New option --makefile-name.
23910 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
23912 (func_import): Write $makefile_name to the cache file, and read it from
23913 there unless explicitly specified. Use $makefile_name as file name
23914 instead of Makefile.am. Adjust the recommendations accordingly.
23916 2006-08-28 Bruno Haible <bruno@clisp.org>
23918 * gnulib-tool (func_verify_module): Check against misapplying patch.
23920 2006-08-28 Bruno Haible <bruno@clisp.org>
23922 * gnulib-tool (func_relativize, func_relconcat): New functions.
23923 Give an error if --local-dir is given with --update.
23924 Remove trailing slashes from $local_gnulib_dir.
23925 (func_import): Store the relativized $local_gnulib_dir in
23926 gnulib-cache.m4, and read it from there if not specified explicitly.
23928 2006-08-28 Bruno Haible <bruno@clisp.org>
23930 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
23931 is the current directory. Respect also $local_gnulib_dir.
23933 2006-08-28 Bruno Haible <bruno@clisp.org>
23934 Simon Josefsson <jas@extundo.com>
23937 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
23939 2006-08-27 Jim Meyering <jim@meyering.net>
23941 * doc/visibility.texi: Remove duplicate word: "pointer".
23943 2006-08-26 Bruno Haible <bruno@clisp.org>
23945 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
23946 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
23947 (Makefile.am): Create inttypes.h from inttypes_.h.
23948 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
23950 * modules/imaxabs: New file.
23952 * modules/imaxdiv: New file.
23954 2006-08-26 Bruno Haible <bruno@clisp.org>
23956 * m4/inttypes.m4: New file.
23957 * m4/_inttypes_h.m4: Remove file.
23958 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
23960 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
23962 * m4/imaxabs.m4: New file.
23964 * m4/imaxdiv.m4: New file.
23966 2006-08-26 Bruno Haible <bruno@clisp.org>
23968 * lib/inttypes_.h: New file.
23969 * lib/inttypes.h: Remove file.
23970 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
23972 * lib/imaxabs.c: New file.
23974 * lib/imaxdiv.c: New file.
23976 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
23978 New config-h module, so that "make" output needn't be cluttered
23979 by -DHAVE_CONFIG_H.
23980 * MODULES.html.sh (Support for building libraries and executables):
23982 * modules/config-h: New file.
23983 * gnulib-tool (nl, sed_transform_lib_file): New vars.
23984 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
23985 the config-h module is used.
23987 New configmake module, so that "make" output needn't be cluttered
23988 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
23989 * MODULES.html.sh (Support for building libraries and executables):
23991 * modules/configmake: New file.
23993 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
23995 * m4/config-h.m4: New file.
23997 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
23999 * config/srclist.txt: Add elisp-comp.
24001 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
24003 * MODULES.html.sh (Support for building libraries and executables):
24005 * build-aux/elisp-comp: New file.
24006 * modules/elisp-comp: New file.
24008 2006-08-24 Bruno Haible <bruno@clisp.org>
24010 * gnulib-tool (func_create_testdir): Use non-default values of
24011 sourcebase and m4base.
24013 2006-08-24 Bruno Haible <bruno@clisp.org>
24015 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
24018 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
24020 * modules/openat (Depends-on): Add lchown.
24022 2006-08-23 Bruno Haible <bruno@clisp.org>
24024 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
24025 of gl_LOCK_EARLY instead of gl_LOCK.
24027 2006-08-23 Bruno Haible <bruno@clisp.org>
24029 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
24031 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
24033 2006-08-23 Bruno Haible <bruno@clisp.org>
24035 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
24038 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
24039 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
24040 (gl_LOCK): New macro.
24042 2006-08-22 Simon Josefsson <jas@extundo.com>
24044 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
24047 2006-08-22 Simon Josefsson <jas@extundo.com>
24049 * MODULES.html.sh: Add "Support for maintaining and release
24052 * build-aux/gnupload: New file, from coreutils.
24054 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
24056 Avoid the need for AC_LIBSOURCES in m4 macros.
24057 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
24058 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
24059 * modules/check-version (EXTRA_DIST): Add check-version.h.
24060 * modules/crc (EXTRA_DIST): Add crc.h.
24061 * modules/des (EXTRA_DIST): Add des.h.
24062 * modules/gc (EXTRA_DIST): Add gc.h.
24063 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
24064 * modules/getline (EXTRA_DIST): Add getline.h.
24065 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
24066 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
24067 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
24068 * modules/md2 (EXTRA_DIST): Add md2.h.
24069 * modules/md4 (EXTRA_DIST): Add md4.h.
24070 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
24071 * modules/read-file (EXTRA_DIST): Add read-file.h.
24072 * modules/readline (EXTRA_DIST): Add readline.h.
24073 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
24074 rijndael-api-fst.h.
24076 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
24078 * m4/rijndael.m4 (gl_ARCFOUR):
24079 * m4/arctwo.m4 (gl_ARCTWO):
24080 * m4/check-version.m4 (gl_CHECK_VERSION):
24081 * m4/crc.m4 (gl_CRC):
24082 * m4/des.m4 (gl_DES):
24083 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
24084 * m4/gc.m4 (gl_GC):
24085 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
24086 * m4/getline.m4 (gl_FUNC_GETLINE):
24087 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
24088 * m4/hmac-md5.m4 (gl_HMAC_MD5):
24089 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
24090 * m4/md2.m4 (gl_MD2):
24091 * m4/md4.m4 (gl_MD4):
24092 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
24093 * m4/read-file.m4 (gl_FUNC_READ_FILE):
24094 * m4/readline.m4 (gl_FUNC_READLINE):
24095 * m4/rijndael.m4 (gl_RIJNDAEL):
24096 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
24097 to get the necessary .h files and whatnot.
24099 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
24101 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
24102 gnulib rather than the other way around.
24103 * config/srclistvars.sh (COREUTILS): Remove.
24105 2006-08-22 Jim Meyering <jim@meyering.net>
24107 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
24109 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
24111 2006-08-22 Eric Blake <ebb9@byu.net>
24113 * modules/regexprops-generic: New file.
24114 * MODULES.html.sh (Support for building documentation): List it.
24116 2006-08-22 Eric Blake <ebb9@byu.net>
24118 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
24119 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24120 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
24121 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
24123 2006-08-22 Bruno Haible <bruno@clisp.org>
24125 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
24126 and lib_LTLIBRARIES like the other lib_* variables.
24128 2006-08-22 Bruno Haible <bruno@clisp.org>
24130 * build-aux/x-to-1.in: New file, from GNU gettext.
24132 2006-08-22 Bruno Haible <bruno@clisp.org>
24134 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
24137 2006-08-22 Bruno Haible <bruno@clisp.org>
24139 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
24142 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
24145 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
24147 Problem reported by Bruno Haible.
24149 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
24151 Avoid the need for AC_LIBSOURCES in m4 macros.
24152 * modules/acl (EXTRA_DIST): Add acl.h.
24153 * modules/argmatch (Files): Add m4/argmatch.m4.
24154 (configure.ac): Add gl_ARGMATCH.
24155 (EXTRA_DIST): Renamed from lib_SOURCES, for
24156 consistency with the other modules. Remove argmatch.c.
24157 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
24158 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
24159 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
24160 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
24161 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
24162 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
24163 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
24164 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
24165 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
24166 * modules/closeout (EXTRA_DIST): Add closeout.h.
24167 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
24168 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
24169 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
24170 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
24171 dirname.h; remove basename.c and stripslash.c.
24172 * modules/exclude (EXTRA_DIST): Add exclude.h.
24173 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
24174 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
24175 * modules/file-type (EXTRA_DIST): Add file-type.h.
24176 * modules/filemode (EXTRA_DIST): Add filemode.h.
24177 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
24178 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
24179 * modules/fpending (EXTRA_DIST): Add __fpending.h.
24180 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
24181 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
24182 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
24183 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
24184 * modules/getdate (EXTRA_DIST): Add getdate.c.
24185 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
24186 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
24187 * modules/getpass (EXTRA_DIST): Add getpass.h.
24188 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
24189 * modules/group-member (EXTRA_DIST): Add group-member.h.
24190 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
24191 * modules/hash (EXTRA_DIST): Add hash.h.
24192 * modules/human (EXTRA_DIST): Add human.h.
24193 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
24194 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
24195 * modules/lchown (EXTRA_DIST): Add lchown.h.
24196 * modules/long-options (EXTRA_DIST): Add long-options.h.
24197 * modules/lstat (EXTRA_DIST): Add lstat.h.
24198 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
24199 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
24200 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
24201 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
24202 * modules/memxor (EXTRA_DIST): Add memxor.h.
24203 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
24204 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
24205 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
24206 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
24207 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
24208 * modules/physmem (EXTRA_DIST): Add physmem.h.
24209 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
24210 * modules/posixver (EXTRA_DIST): Add posixver.h.
24211 * modules/quote (EXTRA_DIST): Add quote.h.
24212 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
24213 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
24214 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
24215 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
24216 regex_internal.h regexec.c.
24217 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
24218 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
24219 * modules/same (EXTRA_DIST): Add same.h.
24220 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
24221 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
24222 * modules/savedir (EXTRA_DIST): Add savedir.h.
24223 * modules/sha1 (EXTRA_DIST): Add sha1.h.
24224 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
24225 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
24226 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
24227 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
24228 * modules/strdup (EXTRA_DIST): Add strdup.h.
24229 * modules/strftime (EXTRA_DIST): Add strftime.h.
24230 * modules/strndup (EXTRA_DIST): Add strndup.h.
24231 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
24232 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
24233 * modules/time_r (EXTRA_DIST): Add time_r.h.
24234 * modules/timespec (EXTRA_DIST): Add timespec.h.
24235 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
24236 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
24237 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
24238 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
24239 * modules/userspec (EXTRA_DIST): Add userspec.h.
24240 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
24241 * modules/utimens (EXTRA_DIST): Add utimens.h.
24242 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
24243 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
24244 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
24245 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
24246 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
24247 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
24248 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
24249 * modules/yesno (EXTRA_DIST): Add yesno.h.
24251 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
24253 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
24255 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
24256 * m4/dev-ino.m4, same-inode.m4: Remove.
24258 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
24259 * m4/acl.m4 (AC_FUNC_ACL):
24260 * m4/backupfile.m4 (gl_BACKUPFILE):
24261 * m4/c-strtod.m4 (gl_C99_STRTOLD):
24262 * m4/canon-host.m4 (gl_CANON_HOST):
24263 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
24264 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
24265 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
24266 * m4/cloexec.m4 (gl_CLOEXEC):
24267 * m4/close-stream.m4 (gl_CLOSE_STREAM):
24268 * m4/closeout.m4 (gl_CLOSEOUT):
24269 * m4/dirfd.m4 (gl_FUNC_DIRFD):
24270 * m4/dirname.m4 (gl_DIRNAME):
24271 * m4/exclude.m4 (gl_EXCLUDE):
24272 * m4/exitfail.m4 (gl_EXITFAIL):
24273 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
24274 * m4/file-type.m4 (gl_FILE_TYPE):
24275 * m4/filemode.m4 (gl_FILEMODE):
24276 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
24277 * m4/fpending.m4 (gl_FUNC_FPENDING):
24278 * m4/fprintftime.m4 (gl_FPRINTFTIME):
24279 * m4/fts.m4 (gl_FUNC_FTS):
24280 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
24281 * m4/getdate.m4 (gl_GETDATE):
24282 * m4/gethrxtime.m4 (gl_GETHRXTIME):
24283 * m4/getpagesize.m4 (gl_GETPAGESIZE):
24284 * m4/getpass.m4 (gl_FUNC_GETPASS):
24285 * m4/gettime.m4 (gl_GETTIME):
24286 * m4/getugroups.m4 (gl_GETUGROUPS):
24287 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
24288 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
24289 * m4/hard-locale.m4 (gl_HARD_LOCALE):
24290 * m4/hash.m4 (gl_HASH):
24291 * m4/idcache.m4 (gl_IDCACHE):
24292 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
24293 * m4/lchown.m4 (gl_FUNC_LCHOWN):
24294 * m4/long-options.m4 (gl_LONG_OPTIONS):
24295 * m4/lstat.m4 (gl_FUNC_LSTAT):
24296 * m4/md5.m4 (gl_MD5):
24297 * m4/memcasecmp.m4 (gl_MEMCASECMP):
24298 * m4/memcoll.m4 (gl_MEMCOLL):
24299 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
24300 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
24301 * m4/memxor.m4 (gl_MEMXOR):
24302 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
24303 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
24304 * m4/modechange.m4 (gl_MODECHANGE):
24305 * m4/mountlist.m4 (gl_MOUNTLIST):
24306 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
24307 * m4/openat.m4 (gl_FUNC_OPENAT):
24308 * m4/pathmax.m4 (gl_PATHMAX):
24309 * m4/physmem.m4 (gl_PHYSMEM):
24310 * m4/posixtm.m4 (gl_POSIXTM):
24311 * m4/posixver.m4 (gl_POSIXVER):
24312 * m4/quote.m4 (gl_QUOTE):
24313 * m4/quotearg.m4 (gl_QUOTEARG):
24314 * m4/readtokens.m4 (gl_READTOKENS):
24315 * m4/readutmp.m4 (gl_READUTMP):
24316 * m4/regex.m4 (gl_REGEX):
24317 * m4/safe-read.m4 (gl_SAFE_READ):
24318 * m4/safe-write.m4 (gl_SAFE_WRITE):
24319 * m4/same.m4 (gl_SAME):
24320 * m4/save-cwd.m4 (gl_SAVE_CWD):
24321 * m4/savedir.m4 (gl_SAVEDIR):
24322 * m4/settime.m4 (gl_SETTIME):
24323 * m4/sha1.m4 (gl_SHA1):
24324 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
24325 * m4/stat-macros.m4 (gl_STAT_MACROS):
24326 * m4/stat-time.m4 (gl_STAT_TIME):
24327 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
24328 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
24329 * m4/strdup.m4 (gl_FUNC_STRDUP):
24330 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
24331 * m4/strndup.m4 (gl_FUNC_STRNDUP):
24332 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
24333 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
24334 * m4/time_r.m4 (gl_TIME_R):
24335 * m4/timespec.m4 (gl_TIMESPEC):
24336 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
24337 * m4/unlinkdir.m4 (gl_UNLINKDIR):
24338 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
24339 * m4/userspec.m4 (gl_USERSPEC):
24340 * m4/utimecmp.m4 (gl_UTIMECMP):
24341 * m4/utimens.m4 (gl_UTIMENS):
24342 * m4/xalloc.m4 (gl_XALLOC):
24343 * m4/xgetcwd.m4 (gl_XGETCWD):
24344 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
24345 * m4/xreadlink.m4 (gl_XREADLINK):
24346 * m4/xstrtod.m4 (gl_XSTRTOD):
24347 * m4/yesno.m4 (gl_YESNO):
24348 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
24349 to get the necessary .h files and whatnot.
24351 2006-08-21 Mark D. Baushke <mdb@gnu.org>
24352 Bruno Haible <bruno@clisp.org>
24354 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
24355 /bin/sh understanding of '!' conditional negation.
24357 2006-08-21 Jim Meyering <jim@meyering.net>
24359 * modules/openat (Depends-on): Really alphabetize.
24361 * modules/acl (Depends-on): Add error and quote.
24363 * check-module (find_included_lib_files): Add at-func.c to the
24364 ok-to-include-more-than-once white list.
24366 * modules/openat (Depends-on): Add lstat. Alphabetize.
24368 2006-08-21 Bruno Haible <bruno@clisp.org>
24370 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24371 Emit a pkgdata_DATA variable only if some snippets add contents to it.
24372 Reported by Martin Lambers <marlam@marlam.de>.
24374 2006-08-21 Bruno Haible <bruno@clisp.org>
24376 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
24377 specify an installation location, don't emit a noinst_LIBRARIES or
24378 noinst_LTLIBRARIES assignment.
24380 2006-08-21 Bruno Haible <bruno@clisp.org>
24383 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
24384 BeOS has mbrtowc() but no <wctype.h>.
24386 2006-08-21 Bruno Haible <bruno@clisp.org>
24389 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
24392 2006-08-21 Bruno Haible <bruno@clisp.org>
24395 * lib/mbchar.h: Include <wctype.h> only if it exists.
24397 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
24399 Remove files that are no longer needed by their respective modules.
24400 * m4/obstack.m4: Remove.
24401 * m4/strerror_r.m4: Remove.
24402 * m4/uint32_t.m4: Remove.
24403 * m4/uintptr_t.m4: Remove.
24404 * m4/ullong_max.m4: Remove.
24405 * m4/xstrtoimax.m4: Remove.
24406 * m4/xstrtoumax.m4: Remove.
24408 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
24409 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
24410 dependencies now capture this.
24412 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
24413 Do not use AC_LIBSOURCES, since gnulib modules now do this.
24414 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
24415 * m4/human.m4 (gl_HUMAN): Likewise.
24416 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
24417 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
24419 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
24421 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
24422 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
24424 * m4/human.m4 (gl_HUMAN): Likewise.
24425 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
24426 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
24427 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
24428 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
24429 * m4/xstrtol (gl_XSTRTOL): Likewise.
24431 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
24432 AC_TYPE_LONG_LONG_INT.
24433 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
24434 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
24435 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
24436 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
24438 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
24441 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
24442 (gl_PREREQ_XSTRTOUL): Remove.
24444 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
24446 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
24449 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
24451 Add and change modules to make it easier for coreutils to use
24453 * modules/backupfile (Files): Remove m4/d-ino.m4.
24454 (Depends-on): Add d-ino.
24455 * modules/cycle-check (Depends-on): Add stdint.
24456 (lib_SOURCES): Add cycle-check.h.
24457 * modules/d-ino: New module.
24458 * modules/d-type: New module.
24459 * modules/error (Files): Remove m4/strerror_r.m4.
24460 * modules/filemode (Files): Add m4/st_dm_mode.m4.
24461 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
24462 m4/inttypes_h.m4, m4/uintmax_t.m4.
24463 (Depends-on): Add stdint.
24464 (lib_SOURCES): Add fsusage.h.
24465 * modules/getcwd (Files): Remove d-ino.m4.
24466 (Depends-on): Add d-ino.
24467 * modules/getndelim2 (Depends-on): Add stdint.
24468 * modules/glob (Files): Remove m4/d-type.m4.
24469 (Depends-on): Add d-type.
24470 * modules/host-os: New module.
24471 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
24472 m4/inttypes_h.m4, m4/uintmax_t.m4.
24473 * Depends-on: Add stdint.
24474 (lib_SOURCES): Add human.h.
24475 * modules/inttostr (Files): Remove m4/intmax_t.m4,
24476 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
24477 m4/uintmax_t.m4, m4/ulonglong.m4.
24478 (Depends-on): Add stdint.
24479 (EXTRA_DIST): Add inttostr.h.
24480 * modules/lchmod: New module.
24481 * modules/link-follow: New module.
24482 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
24483 (Depends-on): Add lchmod.
24484 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
24485 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
24486 (Depends-on): Add stdint.
24487 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
24488 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
24489 (Depends-on): Add stdint.
24490 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
24491 * modules/perl: New module.
24492 * modules/regex (Depends-on): Add stdint.
24493 * modules/rmdir-errno: New module.
24494 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
24496 (Depends-on): Add stdint.
24497 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
24499 (Depends-on): Add stdint.
24500 * modules/unlink-busy: New module.
24501 * modules/utimecmp (Depends-on): Add stdint.
24502 * modules/uptime: New module.
24503 * modules/winsz-ioctl: New module.
24504 * modules/winsz-termios: New module.
24505 * modules/xnanosleep (Depends-on): Add nanosleep.
24506 * modules/ullong_max: Remove.
24507 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
24508 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
24509 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
24510 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
24511 (Depends-on): Add inttypes.
24512 (lib_SOURCES): Add xstrtol.h.
24513 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
24514 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
24515 * MODULES.html.sh: Move 'assert' into the assert section.
24516 Move 'dummy' into the linking section.
24518 Add section for compatibility checks for POSIX:2001 functions,
24519 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
24520 winsz-ioctl, and winsz-termios into it.
24522 Add top-level Misc section and put host-os, perl, and uptime
24525 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
24527 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
24528 now assume the stdint module. Do not include inttypes.h.
24529 * lib/fsusage.h: Likewise.
24530 * lib/getndelim2.c: Likewise.
24531 * lib/human.h: Likewise.
24532 * lib/inttostr.h: Likewise.
24533 * lib/obstack.c: Likewise.
24534 * lib/regex_internal.h: Likewise.
24535 * lib/tempname.c: Likewise.
24536 * lib/utimecmp.c: Likewise.
24537 * lib/xstrtol.h: Likewise.
24539 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
24541 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
24542 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
24543 * lib/xtime.h: Likewise.
24545 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
24547 * modules/openat (Files): Add lib/fchmodat.c.
24548 Fixes problem reported by Jay Youngman.
24550 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
24552 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
24553 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
24555 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
24556 Bruno Haible <bruno@clisp.org>
24558 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
24559 and is a script that invokes bison. Tighten the code. Add comments.
24561 2006-08-18 Jim Meyering <jim@meyering.net>
24563 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
24564 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
24565 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
24566 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
24568 2006-08-18 Bruno Haible <bruno@clisp.org>
24570 * modules/bison-i18n: New file.
24571 * MODULES.html.sh (Internationalization functions): Add it.
24573 2006-08-18 Bruno Haible <bruno@clisp.org>
24575 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
24576 sys/statvfs.h. When getmntinfo was found, check its declaration and
24577 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
24579 2006-08-18 Bruno Haible <bruno@clisp.org>
24581 * m4/bison-i18n.m4: New file, from bison.
24583 2006-08-18 Bruno Haible <bruno@clisp.org>
24585 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
24586 (ME_DUMMY): Treat "kernfs" as a dummy.
24587 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
24589 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
24591 Update from coreutils.
24593 2006-08-15 Jim Meyering <jim@meyering.net>
24595 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
24597 2006-01-17 Jim Meyering <jim@meyering.net>
24599 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
24601 2006-01-11 Jim Meyering <jim@meyering.net>
24603 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
24604 Check for the lchmod function.
24606 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
24608 Update from coreutils.
24610 * lib/__fpending.h: Add copyright notice.
24611 * lib/fprintftime.h: Likewise.
24612 * lib/savedir.c: Use (C) in copyright notice.
24613 * lib/savedir.h: Likewise.
24615 2006-08-15 Jim Meyering <jim@meyering.net>
24617 * lib/at-func.c: New file, with the logic of all emulated at-functions.
24618 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
24619 in support of the EXPECTED_ERRNO macro.
24620 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
24621 definitions. Instead, define the appropriate symbols and include
24623 * lib/mkdirat.c (mkdirat): Likewise.
24624 * lib/fchmodat.c (fchmodat): Likewise.
24625 (ENOSYS): Remove definition.
24626 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
24627 it. Don't include "unistd--.h" -- it wasn't ever used.
24629 2006-01-17 Jim Meyering <jim@meyering.net>
24631 Rewrite fts.c not to change the current working directory,
24632 by using openat, fstatat, fdopendir, etc..
24634 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
24635 (HAVE_OPENAT_SUPPORT): Define.
24636 [_LIBC] (fchdir): Don't undef or define; no longer used.
24637 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
24638 Now, this `function' always succeeds, and consumes its file descriptor
24639 parameter -- so callers must not close such FDs. Update callers.
24640 (diropen_fd, opendirat, cwd_advance_fd): New functions.
24641 (diropen): Add parameter, SP. Adjust all callers.
24642 Implement using diropen_fd, rather than open.
24643 (fts_open): Initialize new member, fts_cwd_fd.
24644 Remove fts_rft-setting code.
24645 (fts_close): Close fts_cwd_fd, if necessary.
24646 (__opendir2): Define in terms of opendir or opendirat,
24647 depending on whether the FST_NOCHDIR flag is set.
24648 (fts_build): Since fts_safe_changedir consumes its FD, and since
24649 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
24650 and close the dup'd file descriptor upon failure.
24651 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
24652 (fts_safe_changedir): Tweak semantics to reflect that this function
24653 now calls cwd_advance_fd and hence consumes its FD argument.
24654 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
24655 [struct FTS] (fts_rft): Remove now-unused member.
24656 [struct FTS] (fts_cycle.state): Improve comment.
24658 * lib/openat.c (openat_needs_fchdir): New function.
24659 * lib/openat.h (openat_needs_fchdir): Declare it.
24661 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
24663 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
24664 Problem and fix reported by Pádraig Brady in
24665 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
24667 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
24669 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
24671 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
24673 * lib/memcoll.c (memcoll): Optimize for the common case where the
24674 arguments are bytewise equal.
24676 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
24678 * doc/regexprops-generic.texi: Add a copyright notice.
24680 2006-08-15 Bruno Haible <bruno@clisp.org>
24682 * modules/tmpdir (License): Change to LGPL.
24684 2006-08-15 Bruno Haible <bruno@clisp.org>
24686 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
24689 2006-08-14 Simon Josefsson <jas@extundo.com>
24691 * config/srclist.txt: Add gnupload.
24693 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
24695 Change copyright notice from LGPL 2 to GPL 2, since that's the
24696 standard form used in the gnulib repository.
24697 * tests/test-lock.c: Likewise.
24698 * tests/test-stdint.c: Likewise.
24699 * tests/test-tls.c: Likewise.
24701 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
24702 prelude-manager. User shorter URLs for GNU projects, without '?'.
24703 Add copyright notice.
24705 * check-module: Add copyright notice. Output a copyright
24706 notice if "--version" is specified.
24707 * modules/COPYING: New file.
24708 * tests/test-getaddrinfo.c: Add copyright notice.
24709 * tests/test-verify.c: Likewise.
24711 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
24713 Change copyright notice from LGPL 2 to GPL 2, since that's the
24714 standard form used in the gnulib repository.
24715 * lib/lock.c: LGPL -> GPL.
24716 * lib/lock.h: Likewise.
24717 * lib/strnlen1.c: Likewise.
24718 * lib/strnlen1.h: Likewise.
24719 * lib/tls.c: Likewise.
24720 * lib/tls.h: Likewise.
24721 * lib/tmpdir.c: Likewise.
24723 * lib/TODO: Remove; this belongs only in coreutils.
24725 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
24727 Add copyright notices to long-enough files that lack them, since
24728 otherwise the files aren't clearly free. Use the same notice that
24729 getdate.texi already uses.
24730 * doc/alloca-opt.texi: Add copyright notice.
24731 * doc/alloca.texi: Likewise.
24732 * doc/ctime.texi: Likewise.
24733 * doc/functions.texi: Likewise.
24734 * doc/gcd.texi: Likewise.
24735 * doc/gnulib-tool.texi: Likewise.
24736 * doc/inet_ntoa.texi: Likewise.
24737 * doc/visibility.texi: Likewise.
24739 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
24740 * doc/quote.texi: Add copyright notice.
24742 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
24743 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
24744 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
24745 Mention SunOS 5.11. Mention that everything before SunOS 5.7
24746 is now obsolete, and give a pointer to the Sun list.
24747 Add copyright notice.
24749 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
24751 * config/srclistvars.sh: Add copyright notice.
24753 2006-08-14 Eric Blake <ebb9@byu.net>
24755 Import the following change from libc:
24757 2006-08-12 Ulrich Drepper <drepper@redhat.com>
24760 * lib/misc/error.c: Add space between program name and message if file
24763 2006-08-12 Karl Berry <karl@gnu.org>
24765 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
24766 remove, these originate in gnulib now.
24768 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24770 * doc/Makefile (standards.info standards.html standards.dvi):
24771 Also depend on make-stds.texi.
24773 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
24775 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
24776 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
24778 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
24779 in wchar_t. Problem reported by Eric Blake.
24781 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
24782 LEN is smaller than SIZE. Suggested by Bruno Haible.
24783 Also, help the compiler to keep LEN in a register.
24785 2006-08-11 Eric Blake <ebb9@byu.net>
24787 * users.txt: Sort. Add tar.
24789 2006-08-11 Bruno Haible <bruno@clisp.org>
24791 * users.txt: New file.
24793 2006-08-11 Bruno Haible <bruno@clisp.org>
24795 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
24796 before <wchar.h>. Needed for OSF/1 and BSD/OS.
24798 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
24800 * modules/snprintf (Depends-on): Remove minmax.
24801 (Maintainer): Add self and Bruno.
24803 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
24805 * lib/.cppi-disable: Add snprintf.h, socket_.h.
24806 * lib/snprintf.c: Include <errno.h> and <limits.h>.
24807 (EOVERFLOW): Define if the system does not.
24808 Do not include "minmax.h"; it wasn't used.
24809 (snprintf): Don't assume size_t promotes to an unsigned type.
24810 Fix bug when generated string was too long for the buffer: the
24811 buffer's contents are supposed to be the initial prefix of the
24812 output. Don't assume vasnprintf returns EOVERFLOW if the size
24813 exceeds INT_MAX; do the check ourselves.
24815 Import the following changes from libc:
24817 2006-06-02 Jakub Jelinek <jakub@redhat.com>
24819 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
24820 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
24821 set wc to the byte which couldn't be converted.
24822 (re_string_reconstruct): Don't clear valid_raw_len before calling
24823 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
24824 tip_context using re_string_context_at.
24826 2006-05-02 Ulrich Drepper <drepper@redhat.com>
24828 * lib/posix/regex.h: g++ still cannot handled [restrict].
24830 2006-04-21 Ulrich Drepper <drepper@redhat.com>
24832 * lib/posix/regex.h: Remove special handling for VMS.
24834 2006-08-10 Jim Meyering <jim@meyering.net>
24836 * modules/same-inode: New module.
24837 * modules/dev-ino: New module.
24838 * modules/cycle-check: Depend on these modules, rather than simply
24839 including their .h files.
24840 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
24841 required via m4/cycle-check.m4.
24842 * modules/same: Depend on new same-inode module, rather than
24843 including same-inode.h.
24844 * modules/chdir-safer: New file.
24846 * modules/chown (Depends-on): Add stat-macros.
24848 2006-08-10 Jim Meyering <jim@meyering.net>
24850 * m4/cycle-check.m4: New file.
24851 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
24852 * m4/dev-ino.m4, m4/same-inode.m4: New files.
24854 2006-08-10 Eric Blake <ebb9@byu.net>
24856 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
24857 in from original proposal.
24859 2006-08-10 Eric Blake <ebb9@byu.net>
24860 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24862 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
24865 2006-08-10 Bruno Haible <bruno@clisp.org>
24867 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
24870 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
24872 Sync from coreutils.
24874 2006-07-19 Mike Frysinger <vapier@gentoo.org>
24876 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
24877 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
24879 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
24881 * modules/restrict: Remove; no longer needed now that we assume
24882 Autoconf 2.59 or later.
24883 * MODULES.html.sh: Remove 'restrict'.
24884 * modules/argp (Depends-on): Remove 'restrict'.
24885 * modules/base64 (Depends-on): Likewise.
24886 * modules/gc (Depends-on): Likewise.
24887 * modules/getaddrinfo (Depends-on): Likewise.
24888 * modules/glob (Depends-on): Likewise.
24889 * modules/inet_ntop (Depends-on): Likewise.
24890 * modules/inet_pton (Depends-on): Likewise.
24891 * modules/memxor (Depends-on): Likewise.
24892 * modules/regex (Depends-on): Likewise.
24893 * modules/strtok_r (Depends-on): Likewise.
24894 * modules/time_r (Depends-on): Likewise.
24896 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
24898 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
24899 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
24900 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
24901 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
24902 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
24903 * m4/memxor.m4 (gl_MEMXOR): Likewise.
24904 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
24905 gl_C_RESTRICT replaced by AC_C_RESTRICT.
24907 Merge from coreutils.
24908 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
24909 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
24910 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
24911 * m4/time_r.m4 (gl_TIME_R): Likewise.
24913 2006-08-09 Karl Berry <karl@gnu.org>
24915 * config/srclist.txt: no more gettext-tools, per Bruno.
24917 2006-08-08 Eric Blake <ebb9@byu.net>
24919 * modules/verror: New module.
24920 * MODULES.html.sh: Document it.
24922 2006-08-08 Eric Blake <ebb9@byu.net>
24924 * lib/verror.h, lib/verror.c: New files.
24926 2006-08-08 Eric Blake <ebb9@byu.net>
24928 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
24929 verror_at_line output complies with GNU Coding Standards even when
24932 2006-08-07 Bruno Haible <bruno@clisp.org>
24934 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
24936 Reported by Ralf Wildenhues.
24938 2006-08-07 Bruno Haible <bruno@clisp.org>
24940 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
24941 in an AC_DEFUN. Needed so that the autoconf snippets can use
24944 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24946 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24947 Initialize pkgdata_DATA.
24948 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
24951 2006-08-06 Eric Blake <ebb9@byu.net>
24953 * lib/error.h: Fold in some upstream changes from glibc.
24954 * lib/error.c: Likewise.
24956 2006-08-04 Bruno Haible <bruno@clisp.org>
24958 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24959 Make the mostlyclean-local rule depend on mostlyclean-generic.
24960 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
24962 2006-07-31 Bruno Haible <bruno@clisp.org>
24964 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
24965 <stdlib.h>, <string.h>.
24967 2006-07-30 Bruno Haible <bruno@clisp.org>
24969 * modules/readlink (License): Change to LGPL.
24971 2006-07-30 Bruno Haible <bruno@clisp.org>
24973 * modules/javaversion (Makefile.am): Distribute javaversion.java and
24974 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
24975 set PKGDATADIR to point to it.
24977 2006-07-30 Bruno Haible <bruno@clisp.org>
24979 * modules/csharpexec (configure.ac): Comment out macro invocation.
24980 * modules/javaexec (configure.ac): Likewise.
24981 * modules/javacomp-script (configure.ac): Likewise.
24983 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
24985 2006-07-30 Bruno Haible <bruno@clisp.org>
24987 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
24990 2006-07-30 Bruno Haible <bruno@clisp.org>
24992 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
24994 2006-07-30 Bruno Haible <bruno@clisp.org>
24996 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24997 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
25000 2006-07-29 Bruno Haible <bruno@clisp.org>
25002 Make it possible for gnulib-tool to work with locally modified or
25003 augmented gnulib repositories.
25004 * gnulib-tool (func_usage): Document --local-dir option.
25005 (local_gnulib_dir): New variable.
25006 Handle --local-dir option.
25007 (func_lookup_file): New function.
25008 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
25009 (func_get_description, func_get_filelist, func_get_description,
25010 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
25011 func_get_automake_snippet, func_get_include_directive,
25012 func_get_license, func_get_maintainer): Use func_lookup_file.
25013 (func_import, func_create_testdir): Use func_lookup_file.
25015 2006-07-29 Bruno Haible <bruno@clisp.org>
25017 * modules/setenv (Depends-on): Add unistd.
25019 2006-07-29 Bruno Haible <bruno@clisp.org>
25021 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
25023 2006-07-29 Bruno Haible <bruno@clisp.org>
25025 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
25027 2006-07-29 Bruno Haible <bruno@clisp.org>
25029 * gnulib-tool (import, update): If there is no Makefile.am, look at
25030 aclocal.m4, instead of bailing out.
25032 2006-07-29 Bruno Haible <bruno@clisp.org>
25034 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
25035 Categorize the options by when they are useful.
25037 2006-07-29 Bruno Haible <bruno@clisp.org>
25039 * gnulib-tool (func_usage): Document option --no-libtool.
25040 Handle option --no-libtool.
25041 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
25042 for changed semantics of $libtool variable.
25043 (func_import): Likewise. If libtool is not used, show this through
25044 an option --no-libtool.
25045 (func_create_testdir): Update.
25047 2006-07-29 Bruno Haible <bruno@clisp.org>
25049 * gnulib-tool (func_import): Extend error message about missing
25052 2006-07-29 Bruno Haible <bruno@clisp.org>
25054 * gnulib-tool (func_import): Don't create the $docbase directory if
25055 there is no file to store there.
25057 2006-07-29 Bruno Haible <bruno@clisp.org>
25059 * gnulib-tool (autoconf_minversion): If a --dir option is given and
25060 relevant, look for configure.ac there, not in the current directory.
25061 Also use a simple search for AC_PREREQ, not "autoconf --trace".
25063 2006-07-29 Bruno Haible <bruno@clisp.org>
25065 * gnulib-tool (SORT): New variable.
25066 (func_usage): Undocument --assume-autoconf option.
25067 Remove --assume-autoconf option handling.
25068 (autoconf_minversion): Determine from the contents of configure.ac.
25069 (func_import): Remove autoconf_minversion handling.
25070 Suggested by Eric Blake.
25072 2006-07-29 Bruno Haible <bruno@clisp.org>
25074 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
25076 2006-07-29 Bruno Haible <bruno@clisp.org>
25078 * config/srclist.txt (*setenv.[ch]): Remove rules.
25080 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
25082 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
25084 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
25086 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
25089 2006-07-28 Simon Josefsson <jas@extundo.com>
25091 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
25092 * modules/inet_pton (Depends-on): Likewise.
25094 2006-07-28 Simon Josefsson <jas@extundo.com>
25096 * m4/netinet_in_h.m4: New file.
25098 2006-07-28 Simon Josefsson <jas@extundo.com>
25100 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
25103 2006-07-28 Simon Josefsson <jas@extundo.com>
25105 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
25108 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
25110 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
25111 setgid on directories only if they set these bits.
25112 * lib/modechange.h: Remove obsolete comment about masks.
25114 2006-07-28 Eric Blake <ebb9@byu.net>
25116 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
25119 2006-07-28 Bruno Haible <bruno@clisp.org>
25121 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
25123 2006-07-28 Bruno Haible <bruno@clisp.org>
25125 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
25127 2006-07-28 Bruno Haible <bruno@clisp.org>
25129 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25130 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25132 Avoids link error on FreeBSD 4.x.
25133 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25135 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
25137 * lib/mbswidth.c (iswcntrl): Likewise.
25139 2006-07-27 Bruno Haible <bruno@clisp.org>
25141 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
25144 2006-07-27 Bruno Haible <bruno@clisp.org>
25146 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
25147 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
25150 2006-07-26 Eric Blake <ebb9@byu.net>
25152 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
25154 2006-07-26 Eric Blake <ebb9@byu.net>
25156 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
25157 like mingw that lack mkstemp.
25158 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
25159 avoid compilation warning on mingw.
25161 2006-07-26 Bruno Haible <bruno@clisp.org>
25163 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
25164 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
25165 INT_FAST*_MIN, INTPTR_MIN.
25167 2006-07-25 Bruno Haible <bruno@clisp.org>
25169 * modules/version-etc (Depends-on): Add stdarg.
25171 2006-07-25 Bruno Haible <bruno@clisp.org>
25173 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
25176 2006-07-25 Bruno Haible <bruno@clisp.org>
25178 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
25179 defined in <stdarg.h> or config.h.
25181 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
25183 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
25184 (gl_STDIO_SAFER): Remove.
25186 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
25188 * MODULES.html.sh (File stream based Input/Output):
25189 Add fopen-safer, tmpfile-safer; remove stdio-safer.
25190 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
25191 * modules/fopen-safer, modules/tmpfile-safer: New files.
25192 * modules/stdio-safer: Remove.
25194 2006-07-24 Bruno Haible <bruno@clisp.org>
25196 * modules/tmpdir: New file.
25197 * MODULES.html.sh (File system functions): Add it.
25199 2006-07-24 Bruno Haible <bruno@clisp.org>
25201 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
25202 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
25204 2006-07-24 Bruno Haible <bruno@clisp.org>
25206 * modules/clean-temp: New file.
25208 2006-07-24 Bruno Haible <bruno@clisp.org>
25210 * m4/tmpdir.m4: New file, from GNU gettext.
25212 2006-07-24 Bruno Haible <bruno@clisp.org>
25214 * lib/tmpdir.h: New file, from GNU gettext.
25215 * lib/tmpdir.c: New file, from GNU gettext.
25217 2006-07-24 Bruno Haible <bruno@clisp.org>
25219 * lib/clean-temp.h: New file, from GNU gettext.
25220 * lib/clean-temp.c: New file, from GNU gettext.
25222 2006-07-23 Eric Blake <ebb9@byu.net>
25224 * modules/stdio-safer (Files): Add tmpfile-safer.c.
25225 (Depends-on): Add binary-io.
25227 2006-07-23 Eric Blake <ebb9@byu.net>
25229 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
25231 2006-07-23 Eric Blake <ebb9@byu.net>
25233 * lib/tmpfile-safer.c: New file.
25234 * lib/stdio-safer.h (fopen_safer): Add prototype.
25235 * lib/stdio--.h (tmpfile): Make safer.
25237 2006-07-23 Bruno Haible <bruno@clisp.org>
25239 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
25240 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
25241 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
25242 gl_linked_remove_at): Use it.
25244 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
25245 and Simon Josefsson <jas@extundo.com>
25247 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
25249 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
25251 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
25253 * modules/close-stream: New file.
25254 * modules/closeout (Description): Make it clear that it exits
25255 with a diagnostic on error.
25256 (Depends-on): Add close-stream. Remove fpending, stdbool.
25257 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
25259 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
25261 * m4/close-stream.m4: New file.
25263 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
25265 * lib/close-stream.c, lib/close-stream.h: New files.
25267 2006-07-22 Bruno Haible <bruno@clisp.org>
25269 Merge from GNU gettext 0.15.
25271 2006-05-01 Bruno Haible <bruno@clisp.org>
25273 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
25275 2006-07-22 Bruno Haible <bruno@clisp.org>
25277 * modules/javaversion: New file.
25278 * MODULES.html.sh (Java): Add javaversion.
25280 2006-03-12 Bruno Haible <bruno@clisp.org>
25282 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
25284 2005-12-04 Bruno Haible <bruno@clisp.org>
25286 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
25289 2006-06-21 Bruno Haible <bruno@clisp.org>
25291 Avoid warnings from recent versions of mcs.
25292 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
25293 -o, -L, -r any more. Use options documented since mcs-1.0
25294 instead. Similarly for -g.
25296 2005-12-04 Bruno Haible <bruno@clisp.org>
25298 * build-aux/csharpcomp.sh.in: Suffix for resources is
25299 .resources, not .resource.
25301 2005-07-09 Bruno Haible <bruno@clisp.org>
25303 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
25305 Reported by Mark Junker <mjscod@gmx.de>.
25307 2006-07-22 Bruno Haible <bruno@clisp.org>
25309 * modules/gettext: Upgrade to gettext-0.15.
25310 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
25312 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
25314 2006-07-22 Bruno Haible <bruno@clisp.org>
25316 Merge from GNU gettext 0.15.
25318 2006-03-25 Bruno Haible <bruno@clisp.org>
25320 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
25322 2006-07-21 Bruno Haible <bruno@clisp.org>
25324 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
25327 2006-05-09 Bruno Haible <bruno@clisp.org>
25329 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
25330 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
25331 for the conftestver execution.
25333 2006-05-01 Bruno Haible <bruno@clisp.org>
25335 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
25336 optional target-version argument. Verify that the compiler
25337 groks source of the specified source-version, or add -source
25338 option as necessary. Verify that the compiler produces
25339 bytecode in the specified target-version, or add -target and
25340 -source options as necessary. Make the result of the test
25341 available as variable CONF_JAVAC. Also log error output in
25344 2006-03-11 Bruno Haible <bruno@clisp.org>
25346 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
25348 2006-05-09 Bruno Haible <bruno@clisp.org>
25350 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
25351 CLASSPATH_SEPARATOR to a semicolon.
25353 2006-03-12 Bruno Haible <bruno@clisp.org>
25355 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
25356 available as variable CONF_JAVA, for subsequent autoconf
25357 tests. Also log error output in config.log.
25359 2006-07-19 Bruno Haible <bruno@clisp.org>
25361 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
25362 that getline works on glibc2 systems. Needed to avoid trouble
25364 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
25366 2005-12-04 Bruno Haible <bruno@clisp.org>
25368 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
25369 launcher (untested).
25371 2005-12-04 Bruno Haible <bruno@clisp.org>
25373 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
25375 2006-07-22 Bruno Haible <bruno@clisp.org>
25377 * gettext.m4: Update from GNU gettext-0.15.
25378 * nls.m4: Likewise.
25380 * inttypes-pri.m4: Likewise.
25381 * inttypes-h.m4: Renamed from inttypes.m4.
25382 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
25384 2006-07-22 Bruno Haible <bruno@clisp.org>
25386 Merge from GNU gettext 0.15.
25388 2005-07-05 Bruno Haible <bruno@clisp.org>
25390 * printf-args.c (printf_fetchargs): Work around broken
25391 definition of wint_t on mingw.
25393 2005-02-12 Bruno Haible <bruno@clisp.org>
25395 * xallocsa.h: Add extern "C" for C++.
25397 2006-05-17 Bruno Haible <bruno@clisp.org>
25399 Cygwin portability.
25400 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
25402 2006-04-30 Bruno Haible <bruno@clisp.org>
25404 * progreloc.c: Include <mach-o/dyld.h> if available.
25405 (find_executable): Use _NSGetExecutablePath when possible.
25407 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
25409 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
25412 2005-12-29 Bruno Haible <bruno@clisp.org>
25414 * progreloc.c (set_program_name_and_installdir): Fix
25417 2005-12-04 Bruno Haible <bruno@clisp.org>
25419 Cygwin portability.
25420 * progreloc.c: Include <windows.h> also on Cygwin.
25421 (find_executable): Add support for Cygwin.
25422 (set_program_name_and_installdir): Handle also platforms with
25425 2006-07-11 Bruno Haible <bruno@clisp.org>
25427 * javacomp.c: Fix a comment.
25428 Reported by Jim Meyering.
25430 2006-04-30 Bruno Haible <bruno@clisp.org>
25432 * javacomp.h (compile_java_class): Add source_version,
25433 target_version arguments.
25434 * javacomp.c: Rewritten to choose only a compiler that
25435 respects the specified source_version and target_version.
25437 2006-06-27 Bruno Haible <bruno@clisp.org>
25439 Assume correct S_ISDIR macro.
25440 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
25442 2006-07-22 Bruno Haible <bruno@clisp.org>
25444 * javaversion.h: New file, from GNU gettext.
25445 * javaversion.c: New file, from GNU gettext.
25446 * javaversion.java: New file, from GNU gettext.
25447 * javaversion.class: New file, from GNU gettext.
25449 2006-05-17 Bruno Haible <bruno@clisp.org>
25451 Cygwin portability.
25452 * javaexec.c (execute_java_class): Test for jview program
25455 2006-04-09 Bruno Haible <bruno@clisp.org>
25457 * fatal-signal.c: Don't include string.h.
25458 (at_fatal_signal): Use a copying loop instead of memcpy.
25460 2005-12-04 Bruno Haible <bruno@clisp.org>
25462 * csharpexec.c: Add support for 'clix' launcher (untested).
25463 (execute_csharp_using_sscli): New function.
25464 (execute_csharp_program): Call it.
25466 2006-06-21 Bruno Haible <bruno@clisp.org>
25468 Avoid warnings from recent versions of mcs.
25469 * csharpcomp.c (compile_csharp_using_mono): Don't use options
25470 -o, -L, -r any more. Use options documented since mcs-1.0
25471 instead. Similarly for -g.
25473 2005-07-09 Bruno Haible <bruno@clisp.org>
25475 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
25477 Reported by Mark Junker <mjscod@gmx.de>.
25479 2006-06-17 Bruno Haible <bruno@clisp.org>
25481 * config.charset: Update for NetBSD 3.0.
25483 2006-05-17 Bruno Haible <bruno@clisp.org>
25485 Cygwin portability.
25486 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
25488 2006-05-16 Bruno Haible <bruno@clisp.org>
25490 * localcharset.c [CYGWIN]: Include <windows.h>.
25491 (get_charset_aliases): For Cygwin, return the same CPxxx
25492 aliases list as under WIN32.
25493 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
25494 the environment variables. Fall back to GetACP().
25496 2006-04-05 Bruno Haible <bruno@clisp.org>
25498 * config.charset: Update Juan Manuel Guerrero's address.
25500 2005-02-12 Bruno Haible <bruno@clisp.org>
25502 * allocsa.h: Add extern "C" for C++.
25504 2005-02-10 Bruno Haible <bruno@clisp.org>
25506 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
25507 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
25509 2006-07-22 Bruno Haible <bruno@clisp.org>
25511 * gettext.h: Update to GNU gettext-0.15.
25513 2006-07-22 Bruno Haible <bruno@clisp.org>
25515 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
25516 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
25517 lib-prefix.m4, longdouble.m4, ssize_t.m4.
25519 2006-07-21 Eric Blake <ebb9@byu.net>
25521 * modules/stdlib-safer: New file.
25522 * MODULES.html.sh (File stream based Input/Output): Add
25525 2006-07-21 Eric Blake <ebb9@byu.net>
25527 * lib/stdlib-safer.h: New file from coreutils, required by
25530 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
25532 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
25534 2006-07-20 Bruno Haible <bruno@clisp.org>
25536 * gnulib-tool: Recognize new option --assume-autoconf.
25537 (autoconf_minversion): New variable.
25538 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
25540 2006-07-20 Bruno Haible <bruno@clisp.org>
25542 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
25544 2006-07-19 Derek R. Price <derek@ximbiot.com>
25546 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
25547 Reindent and repaginate.
25549 2006-07-19 Derek Price <derek@ximbiot.com>
25551 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
25554 2006-07-17 Bruno Haible <bruno@clisp.org>
25556 * modules/list: New file.
25557 * modules/array-list: New file.
25558 * modules/carray-list, modules/carray-list-tests: New files.
25559 * modules/linked-list, modules/linked-list-tests: New files.
25560 * modules/avltree-list, modules/avltree-list-tests: New files.
25561 * modules/rbtree-list, modules/rbtree-list-tests: New files.
25562 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
25563 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
25564 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
25565 * modules/oset: New file.
25566 * modules/array-oset: New file.
25567 * modules/avltree-oset, modules/avltree-oset-tests: New files.
25568 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
25569 * tests/test-carray_list.c: New file.
25570 * tests/test-linked_list.c: New file.
25571 * tests/test-avltree_list.c: New file.
25572 * tests/test-rbtree_list.c: New file.
25573 * tests/test-linkedhash_list.c: New file.
25574 * tests/test-avltreehash_list.c: New file.
25575 * tests/test-rbtreehash_list.c: New file.
25576 * tests/test-avltree_oset.c: New file.
25577 * tests/test-rbtree_oset.c: New file.
25578 * MODULES.html.sh (Container data structures): New section.
25580 2006-07-17 Bruno Haible <bruno@clisp.org>
25582 * m4/gl_list.m4: New file.
25584 2006-07-17 Bruno Haible <bruno@clisp.org>
25586 * lib/gl_list.h: New file.
25587 * lib/gl_list.c: New file.
25588 * lib/gl_array_list.h: New file.
25589 * lib/gl_array_list.c: New file.
25590 * lib/gl_carray_list.h: New file.
25591 * lib/gl_carray_list.c: New file.
25592 * lib/gl_linked_list.h: New file.
25593 * lib/gl_linked_list.c: New file.
25594 * lib/gl_anylinked_list1.h: New file.
25595 * lib/gl_anylinked_list2.h: New file.
25596 * lib/gl_avltree_list.h: New file.
25597 * lib/gl_avltree_list.c: New file.
25598 * lib/gl_anyavltree_list1.h: New file.
25599 * lib/gl_anyavltree_list2.h: New file.
25600 * lib/gl_rbtree_list.h: New file.
25601 * lib/gl_rbtree_list.c: New file.
25602 * lib/gl_anyrbtree_list1.h: New file.
25603 * lib/gl_anyrbtree_list2.h: New file.
25604 * lib/gl_anytree_list1.h: New file.
25605 * lib/gl_anytree_list2.h: New file.
25606 * lib/gl_linkedhash_list.h: New file.
25607 * lib/gl_linkedhash_list.c: New file.
25608 * lib/gl_anyhash_list1.h: New file.
25609 * lib/gl_anyhash_list2.h: New file.
25610 * lib/gl_avltreehash_list.h: New file.
25611 * lib/gl_avltreehash_list.c: New file.
25612 * lib/gl_rbtreehash_list.h: New file.
25613 * lib/gl_rbtreehash_list.c: New file.
25614 * lib/gl_anytreehash_list1.h: New file.
25615 * lib/gl_anytreehash_list2.h: New file.
25617 * lib/gl_oset.h: New file.
25618 * lib/gl_oset.c: New file.
25619 * lib/gl_array_oset.h: New file.
25620 * lib/gl_array_oset.c: New file.
25621 * lib/gl_avltree_oset.h: New file.
25622 * lib/gl_avltree_oset.c: New file.
25623 * lib/gl_rbtree_oset.h: New file.
25624 * lib/gl_rbtree_oset.c: New file.
25625 * lib/gl_anytree_oset.h: New file.
25627 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
25629 * m4/mkancesdirs.m4: New file.
25630 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
25631 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
25632 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
25635 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
25637 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
25638 * lib/mkancesdirs.h: New files.
25639 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
25640 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
25641 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
25642 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
25643 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
25644 callers changed. Revamp internals significantly, by not
25645 attempting to create directories that are temporarily more
25646 permissive than the final results. Do not attempt to use
25647 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
25648 This removes some race conditions, fixes some bugs, and simplifies
25649 things. Use new dirchownmod function to do owner and mode changes.
25650 * lib/mkdir-p.h: Likewise.
25651 * lib/modechange.c (octal_to_mode): New function.
25652 (struct mode_change): New member mentioned.
25653 (make_node_op_equals): New arg mentioned. All callers changed.
25654 (mode_compile): Keep track of which mode bits the user has explicitly
25656 (mode_adjust): New arg DIR, so that we implement the X op correctly.
25657 New arg PMODE_BITS, to keep track of which mode bits the user
25658 mentioned; it treats S_ISUID and S_ISGID speciall.
25659 All callers changed.
25660 * lib/modechange.h: Likewise.
25662 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
25664 * MODULES.html.sh: Add mkancestors.
25665 * modules/mkancesdirs: New module.
25666 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
25667 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
25668 The chdir-safer and afs files are now orphans; I'll remove them
25669 unless someone speaks up.
25670 Add lib/dirchownmod.c, lib/dirchownmod.h.
25671 (Depends-on): Remove alloca, chown, save-cwd, dirname.
25672 Add lchown, mkancesdirs.
25673 (Maintainer): Add self.
25675 2006-07-15 Karl Berry <karl@gnu.org>
25677 * gnulib-tool: help message wording/arrangement.
25679 2006-07-14 Simon Josefsson <jas@extundo.com>
25681 * doc/gnulib.texi (Libtool and Windows): New section.
25683 2006-07-12 Simon Josefsson <jas@extundo.com>
25685 * modules/gendocs (License): Fix license, approved by Karl.
25687 2006-07-12 Eric Blake <ebb9@byu.net>
25689 * MODULES.html.sh: Add gendocs.
25691 2006-07-11 Eric Blake <ebb9@byu.net>
25693 * modules/fdl: New module, to install doc/fdl.texi.
25694 * MODULES.html.sh: Add new section for documentation modules.
25695 * gnulib-tool: Avoid space-tab.
25696 (--doc-base): New option, to manage files from doc.
25698 2006-07-11 Eric Blake <ebb9@byu.net>
25700 * m4/absolute-header.m4: Fix comments to match recent change.
25702 2006-07-11 Eric Blake <ebb9@byu.net>
25704 * gnulib-tool: List --doc-base before --tests-base.
25706 2006-07-11 Derek R. Price <derek@ximbiot.com>
25708 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
25710 2006-07-11 Bruno Haible <bruno@clisp.org>
25712 * README: Mention where to put documentation.
25714 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25716 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
25718 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
25720 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
25723 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
25725 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
25726 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
25727 "no/such/file/stdint.h" when there is no such file, so that
25728 the resulting C code can be parsed by dodgy compilers.
25729 Problems reported by Bob Proulx.
25731 2006-07-10 Derek R. Price <derek@ximbiot.com>
25733 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
25734 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
25735 macros into the GNU _D_EXACT_NAMLEN.
25736 * lib/savedir.c: Likewise.
25737 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
25739 2006-07-10 Derek R. Price <derek@ximbiot.com>
25740 and Paul Eggert <eggert@cs.ucla.edu>
25742 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
25744 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
25745 macros into the GNU _D_EXACT_NAMLEN.
25747 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
25749 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
25750 around the absolute name, to work around a problem with the HP-UX
25751 11.23 native C compiler, reported by Bob Proulx.
25753 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
25755 * doc/maintain.texi, make-stds.texi: Sync from
25756 <http://savannah.gnu.org/projects/gnustandards>.
25758 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
25760 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
25762 2006-07-09 Jim Meyering <jim@meyering.net>
25764 * m4/glob.m4: Remove a doubled word in a comment.
25766 2006-07-09 Jim Meyering <jim@meyering.net>
25768 * lib/argp-pv.c: Remove a doubled word in a comment.
25769 * lib/check-version.c (check_version): Likewise.
25770 * lib/javacomp.c (compile_java_class): Likewise.
25772 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
25774 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
25775 for the benefit of people using Autoconf 2.60. If you want to
25776 support older Autoconf versions you can copy m4/onceonly_2_57.m4
25777 (or m4/onceonly.m4, if pre-2.57) manually.
25779 2006-07-08 Jim Meyering <jim@meyering.net>
25781 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
25783 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
25784 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
25787 2006-07-08 Jim Meyering <jim@meyering.net>
25789 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
25791 2006-07-07 Simon Josefsson <jas@extundo.com>
25793 * tests/test-crc.c: Change expected crc value, the test vector
25794 were probably computed using the old broken crc.c?
25796 2006-07-06 Simon Josefsson <jas@extundo.com>
25798 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
25799 now the canonical place for the M4 file).
25801 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
25802 from the sys_socket dependency now.
25804 * modules/inet_pton (Files): Ditto.
25806 * modules/inet_ntop (Files): Ditto.
25808 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
25810 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
25811 not gl_PREREQ_GETUSERSHELL.
25813 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25815 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
25816 with only one argument, for Autoconf 2.60.
25817 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
25818 expand to nothing, so add a shell command to avoid syntax error.
25819 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
25821 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25823 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
25825 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
25827 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
25828 no longer needed. Check for isblank decl.
25829 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
25830 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
25833 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
25835 * lib/getloadavg.c: Use __VMS, not VMS.
25836 * lib/getopt.c: Likewise.
25837 * lib/getpagesize.h: Likewise.
25838 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
25839 and probably does not work.
25841 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
25843 * lib/.cppi-disable: Add wcwidth.
25844 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
25845 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
25846 (ISGRAPH): Remove. All uses changed to isgraph.
25847 (FOLD) [!defined _LIBC]: Remove special case.
25848 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
25849 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
25851 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
25854 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
25856 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
25857 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
25858 brackets. Other minor changes to suppress some compiler
25861 2006-07-06 Derek R. Price <derek@ximbiot.com>
25862 and Paul Eggert <eggert@cs.ucla.edu>
25864 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
25865 of invoking obsolescent AC_HEADER_DIRENT macro.
25866 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
25867 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
25868 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25869 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25870 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
25871 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
25872 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
25873 * m4/readdir.m4: Remove; no longer needed.
25875 2006-07-06 Derek R. Price <derek@ximbiot.com>
25876 and Paul Eggert <eggert@cs.ucla.edu>
25878 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
25879 Don't worry about this obsolete case any more.
25880 (HAVE_DIR): Remove. All uses removed; we now assume you can read
25882 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
25883 worry about this obsolete case any more.
25884 * lib/fts.c: Likewise.
25885 * lib/getcwd.c: Likewise.
25886 * lib/glob.h: Likewise.
25887 * lib/savedir.c: Likewise.
25889 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
25891 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
25892 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
25893 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
25896 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25897 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
25898 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
25900 * m4/getdate.m4 (gl_GETDATE): Likewise.
25901 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
25902 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
25903 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25904 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25905 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
25906 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25907 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
25910 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
25912 * lib/memcasecmp.c: Include <limits.h>.
25913 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
25914 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
25915 Don't assume isdigit succeeds only on '0' through '9'.
25917 2006-07-05 Eric Blake <ebb9@byu.net>
25919 * modules/getaddrinfo (Depends-on): Add snprintf.
25921 2006-07-05 Eric Blake <ebb9@byu.net>
25923 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
25924 to avoid 'header present but could not be compiled' on cygwin.
25926 2006-07-05 Eric Blake <ebb9@byu.net>
25928 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
25929 missing from netdb.h.
25930 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
25932 2006-07-05 Derek R. Price <derek@ximbiot.com>
25934 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
25936 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
25937 * m4/getdate.m4 (gl_GETDATE): Likewise.
25938 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
25939 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
25940 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25941 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25942 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25944 2006-07-05 Derek R. Price <derek@ximbiot.com>
25946 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
25947 All uses of is_space replaced by isspace.
25948 * lib/exit.h: Don't talk about STDC_HEADERS.
25949 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
25950 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
25951 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
25952 replaced by isprint etc.
25953 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
25954 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
25955 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
25956 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
25957 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
25958 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
25960 2006-07-05 Bruno Haible <bruno@clisp.org>
25962 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
25963 the function exists, before testing against AIX.
25964 Reported by Martin Lambers <marlam@marlam.de>.
25966 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
25968 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
25969 From Mark D. Baushke.
25971 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
25973 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
25974 to the absolute name, not just one, to bypass Sun C 5.8's
25975 "warning: #include of /usr/include/... may be non-portable".
25977 2006-07-04 Eric Blake <ebb9@byu.net>
25979 * modules/dirname-tests: New test module.
25980 * tests/test-dirname.c: New file, replacing dirname.c
25981 TEST_DIRNAME section that was recently deleted.
25983 2006-07-04 Bruno Haible <bruno@clisp.org>
25985 Assume ANSI C header files and <ctype.h> functions.
25986 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
25987 (mbsnwidth): Use isprint, iscntrl instead.
25989 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
25991 Merge from coreutils.
25992 * MODULES.html.sh: Add xstrtold.
25993 * modules/xstrtold: New file.
25994 * modules/cycle-check (Files): Add lib/same-inode.h.
25995 * modules/dirname (Files): Add m4/double-slash-root.m4.
25996 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
25997 * modules/mkdir-p (Files): Add lib/same-inode.h.
25998 * modules/same (Files): Add lib/same-inode.h.
26000 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
26002 * m4/absolute-header.m4: Renamed from full-header-path.m4.
26003 This is to keep the terminology clean; POSIX talks about
26004 "absolute pathnames", not "full pathnames", but the GNU
26005 Coding Standards say to use "path" for something else;
26006 so use "absolute" to keep both sides happy.
26007 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
26008 Set gl_absolute_header, not gl_full_header_path.
26009 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
26010 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
26013 Merge from coreutils.
26015 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
26017 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
26018 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
26019 want to require the building of c-strtod.o.
26020 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
26021 needs -lm directly.
26022 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
26024 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
26026 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
26027 --as-needed option if available. Problem reported by Albert Chin in
26028 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
26029 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
26030 cc merely issues a bunch of annoying warnings for --as-needed
26031 (this problem was reported by Bob Proulx). Also, try linking with
26032 -lm to detect a bug in binutils 2.16 (this problem was reported
26033 by Ralf Wildenhues).
26035 2006-06-18 Jim Meyering <jim@meyering.net>
26037 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
26038 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
26040 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
26041 also check for glibc-2.4's abort-inducing bug.
26043 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
26044 Low-probability clean-up should be to use rmdir to get rid of
26045 the just-created directory, not unlink.
26047 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
26048 configure fail, and request a bug report to inform us about it.
26049 Add a comment that, barring reports to the contrary, in 2007 we'll
26050 assume ftruncate is universally available.
26052 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
26054 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
26056 2006-03-12 Jim Meyering <jim@meyering.net>
26058 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
26059 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
26060 * m4/same.m4 (gl_SAME): Likewise.
26061 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
26063 2006-03-11 Eric Blake <ebb9@byu.net>
26065 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
26066 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
26067 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
26068 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
26070 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
26072 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
26073 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
26074 reported by Mark D. Baushke, one in
26075 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
26077 Merge from coreutils.
26079 * lib/.cppi-disable: Add stdint_.h.
26080 * lib/.cvsignore: Add stdint.h.
26082 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
26084 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
26085 both double and long double versions.
26086 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
26087 * lib/xstrtold.c: New file.
26088 * lib/xstrtod.h (xstrtold): New decl.
26090 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
26092 * lib/filemode.c (setst): Remove.
26093 (strmode): Rewrite to avoid setst. This makes the code shorter,
26094 (arguably) clearer, and the generated code is a bit smaller on my
26095 Debian GNU/Linux stable x86 host.
26097 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
26099 * lib/filemode.c: Include "filemode.h" first, to test the interface.
26100 Assume that filemode.h includes sys/types.h and sys/stat.h.
26101 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
26102 (ftypelet): Reorder to put common cases first, for efficiency.
26103 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
26105 (strmode): Renamed from mode_string, and now stores 12 bytes instead
26106 of 10, for compatibility with FreeBSD. All callers changed.
26107 (filemodestring): Now stores 12 bytes instead of 10, and sets file
26108 types that can't be deduced solely from st_mode. First arg is now a
26110 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
26111 (strmode): Renamed from mode_string.
26112 (filemodestring): New decl.
26113 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
26114 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
26116 (S_ISPORT, S_ISWHT): New macros, if not already defined.
26118 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
26120 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
26121 fsusage.h now does that. Include fsusage.h first, to test interface.
26122 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
26123 at most one method (the old code could have generated decls that
26124 didn't conform to C89, not that this was ever exercised).
26125 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
26127 2006-03-19 Jim Meyering <jim@meyering.net>
26129 Work even in a chroot where d_ino values for entries in "/"
26130 don't match the stat.st_ino values for the same names.
26131 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
26132 number, iterate through all entries again, using lstat instead.
26133 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
26134 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
26136 * lib/getcwd.c (__getcwd): Clarify a comment.
26137 Use memcpy in place of a call to strcpy.
26139 2006-03-12 Jim Meyering <jim@meyering.net>
26141 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
26142 matches that of the current directory (which we're about to chdir ".."
26143 out of), then save the dev-ino of the parent, instead.
26145 * lib/same-inode.h (SAME_INODE): New file/macro.
26146 * lib/chdir-safer.c (SAME_INODE): Remove definition.
26147 Include "same-inode.h", instead.
26148 * lib/same.c: Likewise.
26149 * lib/cycle-check.h: Include "same-inode.h".
26150 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
26151 * lib/cycle-check.c (SAME_INODE): Remove definition.
26152 * lib/root-dev-ino.h: Include "same-inode.h".
26154 2006-03-11 Eric Blake <ebb9@byu.net>
26156 * lib/same.c (same_name): s/base_name/last_component/
26157 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
26158 * lib/filenamecat.c (file_name_concat): Likewise.
26160 2006-03-11 Eric Blake <ebb9@byu.net>,
26161 Paul Eggert <eggert@cs.ucla.edu>
26163 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
26164 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
26166 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
26167 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
26168 (last_component): New method.
26169 * lib/dirname.c (dir_len): Determine when drive letters need a
26170 subsequent slash. Preserve // when it is special.
26171 (dir_name): Don't append dot when drive letter is absolute.
26172 [TEST_DIRNAME]: Move into a full-blown gnulib test.
26173 * lib/basename.c (base_name): New semantics - malloc the result.
26174 Preserve // when it is special. Preserve relative files that look
26175 like drive letters.
26176 (base_len): Preserve // when it is special.
26177 (last_component): New method, similar to old base_name semantics.
26178 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
26179 base_name. Strip redundant slashes from ///.
26181 2006-07-03 Jim Meyering <jim@meyering.net>
26183 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
26184 macro is used before the first cycle_check call.
26186 2006-07-03 Eric Blake <ebb9@byu.net>
26188 * modules/dirname (Depends-on): Add xstrndup.
26190 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
26192 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
26193 test cases, so that config.log is a bit easier to follow.
26195 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
26197 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
26198 both are 64 bits, since this seems to be the tradition, and this
26199 prevents gcc -Wformat from warning about usages with PRIuMAX. If
26200 we ever run into a host that prefers long long to long in this
26201 case, we'll need another configure-time test. Problem reported by
26204 2006-07-02 Eric Blake <ebb9@byu.net>
26206 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
26208 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
26210 * modules/inttypes (Depends-on): No longer depends on stdint.
26211 * modules/stdint (Description): Say more about assumptions.
26212 Say that the fast types might differ. Say macros are used.
26213 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
26214 (Makefile.am): Revise list of substituted symbols to match
26216 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
26217 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
26218 * tests/test-stdint.c (verify_same_types)
26219 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
26220 the code conforms to C99/C89.
26221 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
26222 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
26224 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
26226 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
26227 but fix a bug, by requiring at least 64 bits.
26228 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
26229 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
26230 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
26231 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
26233 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
26234 changes. Make 2.59 a prerequisite. Check and substitute for
26235 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
26236 inttypes.h. Do not use special include files; just use the
26237 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
26238 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
26239 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
26240 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
26241 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
26242 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
26243 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
26244 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
26245 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
26246 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
26247 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
26248 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
26249 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
26250 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
26251 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
26252 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
26253 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
26254 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
26255 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
26256 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
26257 WINT_MAX. Check for C99 conformance more strictly, by detecting
26258 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
26259 not check for things that C99 does not require, e.g., int8_t. If
26260 a test isn't needed unless <stdint.h> isn't working, and is
26261 unlikely to be needed for any other reason, then don't do it
26262 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
26263 size_t, since we assume C89 freestanding at least. Do not check
26264 for sig_atomic_t, wchar_t, or wint_t, since the code now does
26265 the right thing even if the types are not defined. Instead use:
26266 (gl_STDINT_TYPE_PROPERTIES): New macro.
26267 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
26268 testing whether <sys/types.h> clashes, as Autoconf does this for
26269 us now. All uses removed.
26270 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
26271 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
26272 (gl_CHECK_TYPE_SAME):
26273 Remove; no longer needed.
26274 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
26275 exists, since we'll return 0 anyway in that case.
26276 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
26278 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
26280 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
26281 possible collision with system files.
26282 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
26283 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
26284 WCHAR_MIN and WCHAR_MAX in this case.
26285 (<stddef.h>): Do not include; no longer needed.
26286 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
26287 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
26288 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
26289 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
26290 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
26291 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
26292 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
26293 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
26294 !defined(__c99))]: Include in this case too, since it's harmless
26296 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
26297 dangerous to do so.
26298 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
26299 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
26300 (_STDINT_MIN, _STDINT_MAX): New macros.
26301 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
26302 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
26303 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
26304 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
26305 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
26306 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
26307 macros, not typedefs; this simplifies things quite a bit.
26308 Use long int for all types narrower than int64_t.
26309 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
26310 Define in terms of long long int or int64_t or long int,
26311 not int64_t or int32_t. This saves some compile-time testing.
26312 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
26313 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
26314 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
26315 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
26316 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
26317 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
26318 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
26319 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
26320 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
26321 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
26322 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
26323 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
26324 undef any previous version and define our own version, for
26325 simplicity and consistency with the new macros for types.
26326 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
26327 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
26328 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
26329 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
26330 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
26331 @WINT_T_SUFFIX@ to keep things simple here.
26332 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
26333 Simplify by assuming typical 8/16/32/64 host, since we're
26334 already doing that elsewhere anyway.
26335 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
26336 and assume long long int is 64 bits if available. This
26337 speeds up 'configure'.
26339 2006-07-01 Eric Blake <ebb9@byu.net>
26341 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
26342 Reported by Andreas Buening.
26344 2006-07-01 Eric Blake <ebb9@byu.net>
26346 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
26348 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
26350 * lib/getaddrinfo.c: fixed typo
26352 2006-06-29 Jim Meyering <jim@meyering.net>
26354 * modules/strftime (Maintainer): Add my name, since with the
26355 FPRINTFTIME changes strftime.c has forked from glibc.
26357 2006-06-29 Eric Blake <ebb9@byu.net>
26359 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
26361 2006-06-29 Eric Blake <ebb9@byu.net>
26363 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
26365 2006-06-29 Eric Blake <ebb9@byu.net>
26367 * lib/stat_.h: New file.
26369 2006-06-29 Eric Blake <ebb9@byu.net>
26371 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
26372 unused static function.
26374 2006-06-29 Eric Blake <ebb9@byu.net>
26376 * doc/functions.texi (Function Portability): Document missing lstat
26379 2006-06-29 Eric Blake <ebb9@byu.net>
26381 * MODULES.html.sh: Add sys_stat.
26382 * modules/sys_stat: New module.
26383 * modules/mkstemp (Depends-on): Add sys_stat.
26385 2006-06-29 Derek R. Price <derek@ximbiot.com>
26387 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
26389 2006-06-29 Derek R. Price <derek@ximbiot.com>
26391 * m4/c-bs-a.m4: Removed.
26393 2006-06-29 Derek R. Price <derek@ximbiot.com>
26395 * lib/strftime.c: Assume strftime() exists.
26397 2006-06-29 Derek Price <derek@ximbiot.com>
26399 * modules/c-bs-a: Removed - \a is C89.
26400 * MODULES.html.sh: Remove c-bs-a.
26402 2006-06-29 Bruno Haible <bruno@clisp.org>
26404 * modules/wcwidth (License): Change to LGPL.
26406 2006-06-28 Simon Josefsson <jas@extundo.com>
26408 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
26411 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
26414 2006-06-28 Simon Josefsson <jas@extundo.com>
26416 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
26418 2006-06-28 Simon Josefsson <jas@extundo.com>
26420 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
26421 functions there. It will succeed on Windows XP, but on Windows
26422 2000 and (presumably) earlier, it will fail, and use the internal
26424 (use_win32_p): New function.
26425 (getaddrinfo): Use strtoul on servname, to support numeric ports.
26426 Support AI_NUMERICSERV to disable getservbyname.
26427 (getnameinfo): New function, only supports
26428 NI_NUMERICHOST|NI_NUMERICSERV for now.
26430 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
26431 only have some of them. Add AI_NUMERICSERV. Add prototype for
26434 2006-06-28 Eric Blake <ebb9@byu.net>
26436 * modules/wcwidth: New file.
26437 * modules/mbchar (Depends-on): Add wcwidth.
26438 * modules/mbswidth (Depends-on): Add wcwidth.
26439 * MODULES.html.sh: Add wcwidth.
26441 2006-06-28 Eric Blake <ebb9@byu.net>
26443 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
26444 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
26446 2006-06-28 Eric Blake <ebb9@byu.net>
26448 * lib/xvasprintf.h: Fix comments.
26450 2006-06-28 Eric Blake <ebb9@byu.net>
26452 * lib/mbchar.h (wcwidth): Include wcwidth.h.
26453 * lib/mbswidth.c (wcwidth): Move from here...
26454 * lib/wcwidth.h: ...to this new file.
26456 2006-06-28 Derek R. Price <derek@ximbiot.com>
26458 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
26460 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
26462 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
26464 2006-06-28 Derek R. Price <derek@ximbiot.com>
26466 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
26467 Autoconf 2.60 says this stuff was obsolete.
26469 2006-06-28 Bruno Haible <bruno@clisp.org>
26471 * modules/wcwidth (Files): Add m4/wchar_t.m4.
26473 2006-06-28 Bruno Haible <bruno@clisp.org>
26475 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
26478 2006-06-28 Bruno Haible <bruno@clisp.org>
26480 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
26481 declaration for wcwidth.
26482 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
26484 2006-06-28 Bruno Haible <bruno@clisp.org>
26486 * lib/mkdtemp.c [MINGW]: Include <io.h>.
26487 (mkdir): Define using _mkdir.
26489 2006-06-28 Bruno Haible <bruno@clisp.org>
26491 * lib/getaddrinfo.h: Fix POSIX URL.
26492 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
26494 (use_win32_p): Make static.
26495 (getaddrinfo): Reject service name if it is empty or does not consist
26496 solely of decimal digits, or if its value is > 65535.
26497 (getnameinfo): Remove useless casts.
26499 2006-06-27 Simon Josefsson <jas@extundo.com>
26501 * modules/sys_select: New file, suggested by Bruno Haible, Paul
26502 Eggert and Martin Lambers.
26504 2006-06-27 Simon Josefsson <jas@extundo.com>
26506 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
26507 Eggert and Martin Lambers.
26509 2006-06-27 Bruno Haible <bruno@clisp.org>
26511 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
26512 result to 0, not to empty.
26513 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
26515 2006-06-27 Bruno Haible <bruno@clisp.org>
26517 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
26519 2006-06-26 Simon Josefsson <jas@extundo.com>
26521 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
26524 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
26526 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
26527 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
26528 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
26530 2006-06-26 Mark D. Baushke <mdb@gnu.org>
26532 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
26534 2006-06-26 Bruno Haible <bruno@clisp.org>
26536 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
26538 2006-06-26 Bruno Haible <bruno@clisp.org>
26540 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
26542 2006-06-26 Bruno Haible <bruno@clisp.org>
26544 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
26545 SGI C compiler in pre-C99 mode.
26546 Suggested by Mark D. Baushke and Larry Jones.
26548 2006-06-26 Bruno Haible <bruno@clisp.org>
26550 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
26552 Reported by Mark D. Baushke and Larry Jones.
26554 2006-06-26 Bruno Haible <bruno@clisp.org>
26556 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
26558 Suggested by Mark D. Baushke and Larry Jones.
26560 2006-06-23 Simon Josefsson <jas@extundo.com>
26561 Bruno Haible <bruno@clisp.org>
26563 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
26564 Emit mostlyclean-local rule.
26565 (func_emit_tests_Makefile_am): Likewise.
26566 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
26568 2006-06-23 Mark D. Baushke <mdb@gnu.org>
26570 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
26572 2006-06-23 Bruno Haible <bruno@clisp.org>
26574 * tests/test-stdint.c: Update to match ISO C 99 Technical
26577 2006-06-23 Bruno Haible <bruno@clisp.org>
26579 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
26581 2006-06-23 Bruno Haible <bruno@clisp.org>
26583 * lib/stdint_.h: Treat IRIX like OpenBSD.
26585 2006-06-23 Bruno Haible <bruno@clisp.org>
26587 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
26588 ISO C 99 Technical Corrigendum 1.
26590 2006-06-22 Simon Josefsson <jas@extundo.com>
26592 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
26595 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
26597 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
26598 needed. Some compiler complained about some of them. Problem reported
26600 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
26602 2006-06-21 Simon Josefsson <jas@extundo.com>
26604 * tests/test-getaddrinfo.c: New file.
26606 * modules/getaddrinfo-tests: New file.
26608 * MODULES.html.sh: Add inet_pton.
26610 * modules/inet_pton: New file.
26612 2006-06-21 Simon Josefsson <jas@extundo.com>
26614 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
26615 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
26616 of using the (limited) gnulib implementation on Windows XP.
26618 * m4/inet_pton.m4: New file.
26620 2006-06-21 Simon Josefsson <jas@extundo.com>
26622 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
26625 * lib/socket_.h: Don't define WINVER.
26627 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
26628 slightly modified to work in gnulib.
26630 2006-06-21 Simon Josefsson <jas@extundo.com>
26632 * doc/gnulib.texi (Windows sockets): Add.
26634 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
26636 * lib/read-file.c (fread_file): Start with buffer allocation of
26637 0 bytes rather than 1 byte; this simplifies the code.
26638 Don't invoke feof; it's not needed. Refactor to avoid duplicate
26639 code to free buffer and save/restore errno.
26640 (internal_read_file): Remove unused local.
26642 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
26644 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
26645 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
26646 Problem reported by Denis Excoffier in
26647 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
26649 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26651 * modules/sys_socket, modules/socklen: Include sys/types since
26652 FreeBSD 4.x's sys/socket.h needs it.
26654 2006-06-19 Simon Josefsson <jas@extundo.com>
26656 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
26658 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
26660 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
26662 2006-06-19 Bruno Haible <bruno@clisp.org>
26664 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
26665 and FULL_PATH_INTTYPES_H in angle brackets.
26666 Reported by Mark D. Baushke <mdb@gnu.org>.
26668 2006-06-17 Eric Blake <ebb9@byu.net>
26670 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
26673 2006-06-17 Bruno Haible <bruno@clisp.org>
26675 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
26678 2006-06-17 Bruno Haible <bruno@clisp.org>
26680 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
26681 whether errno is declared. Assume <errno.h> declares errno.
26683 2006-06-17 Bruno Haible <bruno@clisp.org>
26685 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
26687 2006-06-17 Bruno Haible <bruno@clisp.org>
26689 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
26690 problem on Solaris 2.5.1.
26692 2006-06-16 Eric Blake <ebb9@byu.net>
26694 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
26695 * lib/unicodeio.c [!defined errno]: Likewise.
26696 * lib/strtol.c [!defined errno]: Likewise.
26697 * lib/strtod.c [!defined errno]: Likewise.
26699 2006-06-15 Eric Blake <ebb9@byu.net>
26701 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
26703 2006-06-15 Eric Blake <ebb9@byu.net>
26705 * config/srclist.txt (ssize_t.m4): Lose sync.
26707 2006-06-15 Bruno Haible <bruno@clisp.org>
26709 * modules/stdint (Files): Include m4/full-header-path.m4,
26710 m4/size_max.m4, m4/wchar_t.m4.
26711 (Makefile.am): Many more substitutions.
26712 * modules/stdint-tests: New file.
26713 * tests/test-stdint.c: New file.
26715 2006-06-15 Bruno Haible <bruno@clisp.org>
26717 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
26718 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
26719 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
26720 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
26721 gl_CHECK_TYPE_SAME): New macros.
26723 2006-06-15 Bruno Haible <bruno@clisp.org>
26725 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
26727 2006-06-15 Bruno Haible <bruno@clisp.org>
26729 * lib/stdint_.h: Rewritten to be fully auto-configured.
26730 Fixes bug on HP-UX/IA64.
26732 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
26734 * lib/getdate.y (__attribute__): Don't define if already defined.
26735 Problem reported by Larry Jones.
26736 * lib/utimens.c (__attribute__): Likewise.
26738 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
26740 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
26741 reported by Andreas Schwab.
26743 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26744 Bruno Haible <bruno@clisp.org>
26746 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
26747 check for the declaration of strnlen and a run test that exposes the
26748 AIX 5.1 strnlen bug. In the failure case, #define strndup to
26751 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26752 Bruno Haible <bruno@clisp.org>
26754 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
26756 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26758 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
26759 compile test, for Tru64 4.0D.
26761 2006-05-28 Karl Berry <karl@gnu.org>
26763 * config/srclist.txt (printf-args.c): lose sync.
26765 2006-05-26 Martin Lambers <marlam@marlam.de>
26767 * lib/getpass.c: Updates the test for the native W32 API, and adds
26768 missing includes, thus fixing compilation warnings.
26770 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
26772 * lib/exclude.c (exclude_fnmatch): New function.
26773 (excluded_file_name): Call exclude_fnmatch.
26774 * lib/exclude.h (excluded_file_name): New prototype
26776 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
26778 * lib/tempname.c (small_open, large_open): New macros.
26779 (__open, __open64) [!_LIBC]: Remove.
26780 (__gen_tempname): Use small_open and large_open instead of __open
26781 and __open64. This fixes a portability bug on HP-UX 11.11i
26782 reported by Simon Wing-Tang in
26783 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
26785 2006-05-24 Bruno Haible <bruno@clisp.org>
26787 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
26788 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
26789 Reported by Thorsten Maerz <torte@netztorte.de> via
26790 Aaron Stone <aaron@serendipity.cx>.
26792 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
26794 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
26795 gl_ rather than jm_. Link, don't run, so that cross-compiles are
26796 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
26797 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
26798 not really conditional on the cache.
26799 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
26801 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
26803 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
26804 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
26805 (my_usleep): Don't mishandle maximum value.
26807 2006-05-19 Jim Meyering <jim@meyering.net>
26809 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
26811 2006-05-17 Bruno Haible <bruno@clisp.org>
26813 Cygwin portability.
26814 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
26816 2006-05-17 Bruno Haible <bruno@clisp.org>
26818 * lib/stdint_.h: Fix recognition of Cygwin.
26820 2006-05-15 Bruno Haible <bruno@clisp.org>
26822 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
26823 on libtool patch by Ralf Wildenhues.
26825 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
26827 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
26828 test for C99 conformance; (bool) 0.5 is an integer constant
26829 expression, but (bool) -0.5 is not. Problem reported by Fedor
26830 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
26832 2006-05-11 Simon Josefsson <jas@extundo.com>
26834 * m4/xvasprintf.m4: Fix obvious typo.
26836 2006-05-11 Jim Meyering <jim@meyering.net>
26838 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
26841 2006-05-10 Simon Josefsson <jas@extundo.com>
26843 * lib/md4.c: Typo fix, update copyright years.
26844 (K1, K2): Don't use L because it turn computations into 64-bit on
26847 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
26849 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
26850 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
26851 unwanted sign propagation, e.g., on hosts with 64-bit int.
26852 There still are some problems with reeelly weird theoretical hosts
26853 (e.g., 33-bit int) but it's not worth worrying about now.
26854 * lib/sha1.c (rol): Likewise.
26855 (K1, K2, K3, K4): Remove unnecessary L suffix.
26857 2006-05-10 Bruno Haible <bruno@clisp.org>
26859 * lib/des.c: Cast to avoid warnings.
26861 2006-05-09 Bruno Haible <bruno@clisp.org>
26863 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
26864 (Depends-on): Depend also on xsize, stdarg.
26865 (configure.ac): Add gl_XVASPRINTF.
26867 2006-05-09 Bruno Haible <bruno@clisp.org>
26869 * m4/xvasprintf.m4: New file.
26871 2006-05-09 Bruno Haible <bruno@clisp.org>
26873 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
26874 (EOVERFLOW): Define fallback value.
26875 (xstrcat): New function.
26876 (xvasprintf): Recognize the special case of a string concatenation.
26878 2006-05-08 Eric Blake <ebb9@byu.net>
26880 * gnulib-tool (func_version): Base copyright year on CVS date.
26881 (func_emit_copyright_notice): New function.
26882 (func_emit_lib_Makefile_am): Use it.
26883 (func_emit_tests_Makefile_am): Likewise.
26884 (func_import): Likewise.
26886 2006-05-08 Bruno Haible <bruno@clisp.org>
26888 * modules/stdarg: New file.
26889 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
26891 2006-05-08 Bruno Haible <bruno@clisp.org>
26893 * m4/stdarg.m4: New file, from GNU gettext.
26895 2006-05-08 Bruno Haible <bruno@clisp.org>
26897 * config/srclist.txt (build-aux/config.rpath): different from latest
26900 2006-05-08 Bruno Haible <bruno@clisp.org>
26902 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
26904 2006-05-05 Jim Meyering <jim@meyering.net>
26906 * m4/warning.m4: New file, derived from bison's file by the same name.
26908 2006-05-03 Bruno Haible <bruno@clisp.org>
26910 * lib/stdint_.h: Shorter URL.
26911 * lib/inttypes.h: Likewise.
26913 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
26915 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
26917 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
26919 * lib/verify.h: Document the internals better. Most of this change
26920 was written by Bruno Haible.
26922 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
26924 * doc/verify.texi: New file, partly based on a proposal by
26927 2006-05-02 Bruno Haible <bruno@clisp.org>
26929 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
26931 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
26933 2006-04-29 Bruno Haible <bruno@clisp.org>
26935 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
26936 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
26938 2006-04-29 Bruno Haible <bruno@clisp.org>
26940 * gnulib-tool: Make --update option actually work.
26942 2006-04-29 Bruno Haible <bruno@clisp.org>
26944 * doc/gcd.texi: New file.
26945 * doc/gnulib.texi: Include it.
26947 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
26949 * lib/getdate.y (get_date): When adding relative date, start with the
26950 initial time, not with the result of the first mktime call.
26952 2006-04-25 Bruno Haible <bruno@clisp.org>
26954 * gnulib-tool (func_import): Output the include directives in three
26955 blocks, sorted separately.
26956 Reported by Ben Pfaff <blp@cs.stanford.edu>.
26958 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
26960 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
26961 to define main with arguments, for C++. Reported by Eric Blake.
26962 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
26963 Prefer 'int main ()' to 'int main (void)', for C++.
26964 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26965 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
26966 for 'main', for C99 and C++.
26968 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
26970 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
26971 Don't assume that exit status -1 is valid.
26972 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26973 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26974 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26975 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
26976 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
26977 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
26978 not AC_TRY_RUN. Use return, not exit. Don't assume that
26979 functions can be used without declaring them, or that you can
26980 exit with status -1.
26981 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26983 2006-04-24 Karl Berry <karl@gnu.org>
26985 * config/srclist.txt (longdouble.m4): sync lost.
26987 2006-04-24 Eric Blake <ebb9@byu.net>
26989 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
26991 2006-04-24 Bruno Haible <bruno@clisp.org>
26993 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
26994 poll() implementation in AIX.
26995 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26997 2006-04-24 Bruno Haible <bruno@clisp.org>
26999 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
27000 assigned exactly once.
27002 2006-04-23 Claudio Fontana <claudio@gnu.org>
27003 Bruno Haible <bruno@clisp.org>
27005 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
27006 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
27009 2006-04-23 Bruno Haible <bruno@clisp.org>
27011 * modules/copy-file: Depend on unistd.
27012 * modules/execute: Likewise.
27013 * modules/fatal-signal: Likewise.
27014 * modules/findprog: Likewise.
27015 * modules/mkdtemp : Likewise.
27016 * modules/pipe: Likewise.
27017 * modules/wait-process: Likewise.
27019 2006-04-23 Bruno Haible <bruno@clisp.org>
27021 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
27022 condition was already detected.
27023 Reported by Ben Pfaff <blp@cs.stanford.edu>.
27025 2006-04-23 Bruno Haible <bruno@clisp.org>
27027 * lib/copy-file.c: Include <unistd.h> unconditionally.
27028 * lib/execute.c: Likewise.
27029 * lib/fatal-signal.c: Likewise.
27030 * lib/findprog.c: Likewise.
27031 * lib/mkdtemp.c: Likewise.
27032 * lib/pipe.h: Likewise.
27033 * lib/pipe.c: Likewise.
27034 * lib/wait-process.h: Likewise.
27036 2006-04-23 Bruno Haible <bruno@clisp.org>
27038 * gnulib-tool (func_usage): Fix --import description. Document
27040 (func_import): Create temporary file in a temporary directory, if
27041 --dry-run is specified. Silence errors from 'grep' when there are no
27042 m4 files in $m4dir.
27043 (func_create_testdir): Silence errors from 'grep' when there are no
27044 m4 files in $m4dir.
27045 Reported by Karl Berry <karl@freefriends.org>.
27047 2006-04-20 Bruno Haible <bruno@clisp.org>
27049 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
27050 one argument, so that the code will be portable to Autoconf 2.60.
27051 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
27052 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
27053 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
27055 2006-04-19 Derek Price <derek@ximbiot.com>
27056 Eric Blake <ebb9@byu.net>
27058 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
27059 rather than "/full/path.h". Update comment to match. Shorten &
27060 generalize m4_translit call via AS_TR_CPP.
27062 2006-04-19 Derek Price <derek@ximbiot.com>
27063 Eric Blake <ebb9@byu.net>
27065 * lib/inttypes.h: Correct grammar in comment.
27067 2006-04-18 Derek Price <derek@ximbiot.com>
27068 Paul Eggert <eggert@cs.ucla.edu>
27070 * modules/inttypes: New file.
27071 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
27073 2006-04-18 Derek Price <derek@ximbiot.com>
27074 Paul Eggert <eggert@cs.ucla.edu>
27076 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
27079 2006-04-18 Derek Price <derek@ximbiot.com>
27080 Paul Eggert <eggert@cs.ucla.edu>
27082 * lib/inttypes.h: New file.
27083 * lib/strtoimax.c: Assume <inttypes.h>.
27085 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
27087 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
27088 isn't mounted. Problem reported by Kir Kolyshkin.
27090 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
27092 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
27093 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
27095 * lib/regex.h (RE_DUP_MAX): Update comment to match current
27098 2006-04-12 Eric Blake <ebb9@byu.net>
27100 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
27101 is now done automatically by the corresponding Autoconf macro.
27103 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
27105 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
27108 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
27110 Merge regex changes from libc, removing some of our
27111 POSIX-conformance changes that were rejected and redoing them in a
27112 less-intrusive way.
27114 * lib/regcomp.c (re_compile_internal, init_dfa):
27115 Length arg is now size_t, not Idx. All uses changed.
27116 (peek_token): Forward decl now says internal_function.
27117 (__re_error_msgid, __re_error_msgid_idx):
27118 Now static rather than extern with attribute_hidden.
27119 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
27120 For some reason libc prefers K&R style defns for external functions.
27121 (regerror) [!defined _LIBC]: Likewise.
27122 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
27123 (seek_collating_symbol_entry, lookup_collation_sequence_value):
27124 (build_range_exp, build_collating_symbol):
27125 Use K&R-style defn.
27126 (re_compile_fastmap): Use '\0' to memset, not 0.
27127 (utf8_sb_map): Make the calculations more obvious.
27128 (init_dfa, parse_bracket_exp, build_charclass_op):
27129 Call calloc and cast result, as glibc does.
27130 (init_word_char, fetch_token, peek_token, peek_token_bracket):
27131 (build_range_exp, build_collating_symbol):
27132 Now internal functions.
27134 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
27136 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
27137 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
27138 Don't depend on VMS; depend on __VMS instead, for POSIX
27139 namespace cleanness.
27140 (regoff_t): Define to ssize_t, not long int.
27142 Remove the REG_ macros named below. Instead, make the old names
27143 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
27145 (REG_BACKSLASH_ESCAPE_IN_LISTS):
27146 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
27147 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
27148 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
27149 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
27150 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
27151 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
27152 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
27153 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
27154 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
27155 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
27156 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
27157 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
27158 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
27159 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
27160 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
27161 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
27163 Remove. All uses replaced by the old RE_* names.
27164 (RE_BACKSLASH_ESCAPE_IN_LISTS):
27165 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
27166 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
27167 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
27168 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
27169 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
27170 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
27171 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
27172 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
27173 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
27174 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
27175 Don't bother having these macros be independent of each others'
27176 values, since they no longer exist in the POSIX name space.
27178 Rename the following member names back to their old names,
27179 unless !__USE_GNU_REGEX. All uses changed back.
27180 (buffer): Renamed from re_buffer.
27181 (allocated): Renamed from re_allocated.
27182 (used): Renamed from re_used.
27183 (syntax): Renamed from re_syntax.
27184 (fastmap): Renamed from re_fastmap.
27185 (translate): Renamed from re_translate.
27186 (can_be_null): Renamed from re_can_be_null.
27187 (regs_allocated): Renamed from re_regs_allocated.
27188 (fastmap_accurate): Renamed from re_fastmap_accurate.
27189 (no_sub): Renamed from re_no_sub.
27190 (not_bol): Renamed from re_not_bol.
27191 (not_eol): Renamed from re_not_eol.
27192 (newline_anchor): Renamed from re_newline_anchor.
27193 (num_regs): Renamed from rm_num_regs.
27194 (start): Renamed from rm_start.
27195 (end): Renamed from rm_end.
27197 (free_state): Move up a bit.
27199 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
27200 #define to be empty.
27201 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
27202 when that is what is intended.
27203 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
27204 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
27206 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
27207 All uses changed back to re_malloc, etc. It's now the caller's
27208 responsibility to check for overflow; all callers changed.
27209 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
27210 (re_x2nrealloc): Remove.
27211 (free_state): Remove decl.
27213 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
27214 (re_set_registers, re_exec):
27215 Use K&R-style defn.
27217 2006-01-31 Roland McGrath <roland@redhat.com>
27219 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
27220 Reported by Mike Frysinger <vapier@gentoo.org>.
27222 2006-01-15 Andreas Jaeger <aj@suse.de>
27225 * lib/regex_internal.c (re_string_reconstruct): Adjust for
27226 build_wcs_upper_buffer change.
27227 (build_wcs_upper_buffer): Change return type.
27229 2005-12-10 Ulrich Drepper <drepper@redhat.com>
27231 * lib/regex_internal.h: Include <stdint.h> if available.
27233 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
27235 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
27237 2005-10-14 Ulrich Drepper <drepper@redhat.com>
27239 * lib/regcomp.c: Adjust for changed secondary hash function.
27241 2005-09-30 Ulrich Drepper <drepper@redhat.com>
27243 * lib/regex.h: Pretty printing.
27244 Clean up namespace a bit.
27246 2005-09-30 Jakub Jelinek <jakub@redhat.com>
27248 * lib/regexec.c (update_cur_sifted_state, check_arrival,
27249 check_arrival_add_next_nodes): Avoid using uninitialized variable.
27251 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
27252 Ulrich Drepper <drepper@redhat.com>
27255 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
27257 (bitset_word_t): Renamed from bitset_word. All uses changed.
27259 2005-09-22 Ulrich Drepper <drepper@redhat.com>
27262 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
27263 * lib/regcomp.c: Remove unnecessary uses of
27264 unsigned RE_TRANSLATE_TYPE.
27265 * lib/regex_internal.h: Likewise.
27266 * lib/regex_internal.c: Likewise.
27267 * lib/regexec.c: Likewise.
27268 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
27270 2005-09-07 Ulrich Drepper <drepper@redhat.com>
27272 * lib/regexec.c (find_recover_state): Remove unnecessary
27274 (transit_state_bkref): Make DFA a const pointer.
27275 (get_subexp): Likewise.
27276 (check_arrival): Likewise.
27277 (update_cur_sifted_state): Likewise.
27278 (re_search_internal): Likewise.
27279 (prune_impossible_nodes): Likewise.
27280 (acquire_init_state_context): Likewise.
27281 (proceed_next_node): Likewise.
27282 (set_regs): Likewise.
27283 (free_fail_stack_return): Likewise.
27284 (check_arrival_expand_ecl): Mark DFA parameter as const.
27285 (check_arrival_expand_ecl_sub): Likewise.
27286 (check_subexp_limits): Likewise.
27287 (sub_epsilon_src_nodes): Likewise.
27288 (add_epsilon_src_nodes): Likewise.
27289 (merge_state_array): Likewise.
27290 (update_regs): Likewise.
27291 (build_trtable): Likewise.
27292 (sift_states_backward): Mark MCTX parameter as const.
27293 (build_sifted_states): Likewise.
27294 (update_cur_sifted_state): Likewise.
27295 (sift_states_mkref): Likewise.
27296 (check_arrival_expand_ecl): Mark eclosure as const.
27297 (check_dst_limits_calc_pos_1): Likewise.
27298 * lib/regex_internal.h (re_match_context_t): Make dfa a const
27301 2005-09-06 Ulrich Drepper <drepper@redhat.com>
27303 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
27304 (transit_state_sb): Likewise.
27305 (transit_state_mb): Likewise.
27306 (sift_states_iter_mb): Likewise.
27307 (check_arrival_add_next_nodes): Likewise.
27308 (check_node_accept_bytes): Change first parameter to pointer-to-const.
27309 [_LIBC] (re_search_2_stub): Use mempcpy.
27311 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
27312 mbrtowc for very simple UTF-8 case.
27314 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
27315 a pointer-to-const.
27316 (re_acquire_state_context): Likewise.
27317 * lib/regex_internal.h: Adjust prototypes.
27319 * lib/regex.c: Prevent using C++ compilers.
27321 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
27322 (re_acquire_state_context): Likewise.
27324 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
27326 * modules/regex (Depends-on): Add ssize_t.
27328 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
27330 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
27333 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
27335 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
27337 2006-03-29 Mark D. Baushke <mdb@gnu.org>
27338 Bruno Haible <bruno@clisp.org>
27340 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
27341 <sys/types.h> and <inttypes.h>.
27343 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27345 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
27346 `__error_t_defined', so argp.h will not typedef the former.
27348 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
27350 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
27351 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
27352 glibc names. Even if glibc is changed to conform to POSIX, the
27353 traditional names will be available anyway, since regex depends on
27354 the extensions module. Also, fix a longstanding typo in the
27355 implementation of Spencer ERE test #75 from grep 2.3. Problems
27356 reported by Emanuele Giaquinta. Also, change sense of cached
27357 variable, so that the message makes sense.
27359 2006-03-24 Simon Josefsson <jas@extundo.com>
27361 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
27362 including some doc fixes.
27363 (base64_encode_alloc): Fix +1 bug on allocation failures.
27365 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27367 * lib/base64.c (base64_encode): Do not read past end of array with
27368 unsanitized input on systems with CHAR_BIT > 8.
27370 2006-03-24 Eric Blake <ebb9@byu.net>
27372 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
27374 2006-03-22 Karl Berry <karl@gnu.org>
27376 * config/srclist.txt (*setenv.[ch]): get from coreutils.
27377 * config/srclistvars.sh (COREUTILS): new var.
27379 2006-03-17 Jim Meyering <jim@meyering.net>
27381 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
27382 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
27384 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
27386 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
27387 no longer needs it. Instead, check that regoff_t is as least
27388 as wide as ptrdiff_t.
27390 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
27391 so that our regex.h stays compatible with the installed regex.
27392 This is helpful for installers who configure --without-included-regex.
27393 Problem reported by Emanuele Giaquinta.
27395 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
27397 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
27398 Typedef to long int, not to off_, as POSIX will likely change
27401 2006-03-15 Eric Blake <ebb9@byu.net>
27403 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
27405 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
27407 * lib/argp-help.c (validate_uparams): Fix typo
27408 * lib/argp-parse.c (argp_default_options): Consistently begin help
27409 messages with a lowercase letter.
27411 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
27413 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
27414 overrun buffers and shouldn't be used (much as gets shouldn't be
27416 * lib/time_r.c (asctime_r, ctime_r): Likewise.
27418 2006-03-08 Simon Josefsson <jas@extundo.com>
27420 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
27421 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27423 2006-03-08 Simon Josefsson <jas@extundo.com>
27425 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
27426 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27428 2006-03-08 Simon Josefsson <jas@extundo.com>
27430 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
27431 signal that configure disabled the device.
27433 2006-03-08 Simon Josefsson <jas@extundo.com>
27435 * build-aux/maint.mk: Fix refresh-po, to handle no translated
27438 2006-03-07 Simon Josefsson <jas@extundo.com>
27440 * modules/getopt (Depends-on): Add unistd.
27442 * modules/unistd: New file.
27444 2006-03-07 Simon Josefsson <jas@extundo.com>
27446 * modules/gc-random: New file.
27448 2006-03-07 Simon Josefsson <jas@extundo.com>
27450 * m4/unistd_h.m4: New file.
27452 2006-03-07 Simon Josefsson <jas@extundo.com>
27454 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
27455 test to be side-effect free by storing the result in the cache
27456 variable gl_cv_lib_readline, and moving the assignment of
27457 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
27458 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27460 2006-03-07 Simon Josefsson <jas@extundo.com>
27462 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
27463 error on missing devices (the functions will return an error).
27465 * m4/gc.m4: Move random stuff to gc-random.m4
27467 2006-03-07 Simon Josefsson <jas@extundo.com>
27469 * lib/unistd_.h: New file.
27471 2006-03-07 Simon Josefsson <jas@extundo.com>
27473 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
27475 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
27477 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
27478 Problem reported by Juan Manuel Guerrero.
27480 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
27482 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
27484 * lib/getlogin_r.c: Likewise.
27485 * lib/getlogin_r.h: Likewise.
27486 * lib/glob.c: Likewise.
27487 * lib/pagealign_alloc.c: Likewise.
27488 * lib/unistd_.h: Remove; no longer needed.
27490 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
27492 * MODULES.html.sh (Support for systems lacking POSIX:2001):
27494 * modules/c-stack (Depends-on): Add unistd.
27495 * modules/getlogin_r: Likewise.
27496 * modules/glob: Likewise.
27497 * modules/pagealign_alloc: Likewise.
27498 * modules/unistd (Files): Remove lib/unistd_.h.
27499 (EXTRA_DIST): Remove.
27500 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
27502 (MOSTLYCLEANFILES): Remove unistd.h-t.
27504 2006-03-03 Simon Josefsson <jas@extundo.com>
27506 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
27508 2006-03-03 Simon Josefsson <jas@extundo.com>
27510 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
27513 2006-03-03 Simon Josefsson <jas@extundo.com>
27515 * build-aux/maint.mk: Add indent target.
27517 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
27519 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
27520 our replacement poll.h in any case, to avoid a differing
27521 declaration from a system header. Seen on AIX.
27523 2006-03-01 Simon Josefsson <jas@extundo.com>
27525 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
27528 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
27530 * modules/gettime (Depends-on): Add extensions module.
27531 * modules/nanosleep (Depends-on): Likewise.
27532 * modules/settime (Depends-on): Likewise.
27534 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
27536 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
27537 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
27539 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27540 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
27542 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
27543 not "==". Reported by Ralf Wildenhues.
27545 2006-03-01 Karl Berry <karl@gnu.org>
27547 * doc/Copyright/request-*: new files, synced from gnuorg.
27549 2006-03-01 Karl Berry <karl@gnu.org>
27551 * config/srclist.txt (Copyright/*): new entries.
27553 2006-02-28 Simon Josefsson <jas@extundo.com>
27555 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
27557 2006-02-27 Simon Josefsson <jas@extundo.com>
27559 * lib/base64.h: Indent #define's. From Jim Meyering
27560 <jim@meyering.net>.
27562 2006-02-27 Jim Meyering <jim@meyering.net>
27564 Revert the change of 2006-02-24, so these files can continue
27565 to be sync'd from gettext.
27566 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
27569 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
27571 * modules/intprops: New file.
27572 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
27574 * modules/getloadavg (Files): Remove lib/intprops.h.
27575 (Depends-on): Add intprops.
27576 * modules/human: Likewise.
27577 * modules/inttostr: Likewise.
27578 * modules/openat: Likewise.
27579 * modules/sig2str: Likewise.
27580 * modules/userspec: Likewise.
27581 * modules/utimecmp: Likewise.
27582 * modules/xnanosleep: Likewise.
27583 * modules/xstrtol: Likewise.
27585 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
27587 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
27588 * modules/lock-tests (TESTS): Use $(EXEEXT).
27589 * modules/tls-tests: Likewise.
27590 * modules/argp-tests: Likewise.
27591 (check_PROGRAMS): New var, replacing...
27592 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
27594 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27596 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
27599 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
27601 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
27603 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27605 Sync from coreutils.
27606 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
27609 2006-02-22 Jim Meyering <jim@meyering.net>
27611 Sync from coreutils.
27612 * m4/chdir-safer.m4: New file.
27614 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
27616 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
27617 AT_FDCWD exceeds INT_MAX.
27618 * lib/openat.h (AT_FDCWD): Likewise.
27620 2006-02-17 Eric Blake <address@hidden>
27622 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
27624 2006-02-16 Simon Josefsson <jas@extundo.com>
27626 * modules/getaddrinfo (Depends-on): Add sys_socket.
27628 2006-02-15 Simon Josefsson <jas@extundo.com>
27630 * build-aux/maint.mk: Add dsyntax-check rule.
27632 2006-02-15 Eric Blake <ebb9@byu.net>
27634 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
27635 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
27636 'present but cannot compile' warnings on cygwin.
27637 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
27638 use ws2tcpip.h if sys/socket.h works.
27639 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
27640 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
27642 2006-02-14 Simon Josefsson <jas@extundo.com>
27644 * modules/maintainer-makefile (Files): Rename.
27646 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
27647 and (the local) Makefile.cfg to maint-cfg.mk.
27649 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
27652 * modules/maintainer-makefile: New module.
27654 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
27655 severaly stripped to make it possible to build it up from scratch
27656 with reliable tests.
27658 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
27659 fixes to permit overriding the default actions when configure and
27660 makefile are not available.
27662 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
27664 Sync from coreutils.
27665 * modules/lstat (Depends-on): Don't depend on xalloc.
27666 (License): Change from GPL to LGPL, since this is now simply a
27667 replacement for a libc function.
27669 2006-02-14 Jim Meyering <jim@meyering.net>
27671 Sync from coreutils.
27673 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
27674 failure on deficient systems, and simplify gnulib lgpl dependencies.
27675 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
27676 xmalloc/lstat combination. Based on a patch from Bruno Haible.
27678 * lib/xalloc-die.c: Remove unused definition of N_.
27680 2006-02-14 Jim Meyering <jim@meyering.net>
27682 Sync from coreutils.
27683 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
27684 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
27685 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
27686 double-quote uses of that variable, to accommodate the rare case in
27687 which getmntent is available in none of the libraries checked. This
27688 happens at least on FreeBSD 5.0.
27690 2006-02-13 Simon Josefsson <jas@extundo.com>
27692 * gnulib-tool (Usage): Fix --import, from
27693 karl@freefriends.org (Karl Berry).
27695 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
27697 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
27699 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
27701 * lib/argp-namefrob.h: Restore changes accidentally lost during the
27702 "autoupdate" on 2005-12-12.
27704 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
27706 * modules/closeout (Depends-on): Remove atexit.
27708 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
27710 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
27711 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
27713 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
27715 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
27716 __EXTENSIONS__ if this causes compilation to fail. Problem
27717 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
27718 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
27720 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
27722 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
27723 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
27724 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
27727 2006-01-26 Simon Josefsson <jas@extundo.com>
27729 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
27730 prototype is visible on mingw32.
27732 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
27735 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
27738 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
27740 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
27741 attempt to open for write; this always fails, at least on POSIX
27742 hosts. This reinstates the 2006-01-09 change, which was
27743 inadvertently removed.
27745 2006-01-26 Bruno Haible <bruno@clisp.org>
27747 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
27748 Reported by Paul Eggert.
27750 2006-01-26 Bruno Haible <bruno@clisp.org>
27751 Paul Eggert <eggert@cs.ucla.edu>
27753 * lib/stdbool_.h (_Bool)
27754 [(! (defined __cplusplus || defined __BEOS__)
27755 && !defined __GNUC__
27756 && !(defined __HP_cc || defined __xlc__
27757 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
27758 || defined __sgi))]:
27759 #define to signed char in these cases too; this simplifies
27760 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
27761 etc., separately) and makes it more conservative.
27763 2006-01-25 Simon Josefsson <jas@extundo.com>
27765 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
27766 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
27767 ws2tcpip.h with WINVER=0x0501. All for mingw32.
27769 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
27771 * lib/argp-namefrob.h: Bugfix. Remove stray #
27773 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
27775 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
27776 so that we test the test.
27777 Check for yet another HP-UX cc bug involving *bool |= bool.
27779 2006-01-25 Karl Berry <karl@gnu.org>
27781 * config/srclist.txt (vasnprintf.c): sync lost.
27783 2006-01-25 Jim Meyering <jim@meyering.net>
27785 Sync from the stable (b5) branch of coreutils:
27787 * lib/fts.c (fts_children): Don't let close() clobber errno from
27790 * lib/fts.c (fts_stat): When following a symlink-to-directory,
27791 don't necessarily interpret stat-fails+lstat-succeeds as indicating
27792 a dangling symlink. That can also happen at least for ELOOP.
27793 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
27794 FYI, this bug predates the inclusion of fts.c in coreutils.
27796 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
27797 in their own block, so pre-c99 compilers don't object.
27799 Avoid the double-free (first in fts_read, second in fts_close) that
27800 would occur when an `active' directory is made inaccessible (e.g.,
27801 via chmod a-x) during a traversal.
27802 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
27803 before returning. Reproduce this failure by
27804 mkdir -p a/b; cd a; chmod a-x . b
27805 Reported by Stavros Passas.
27807 2006-01-25 Jim Meyering <jim@meyering.net>
27809 * lib/fileblocks.c: Remove more useless parentheses.
27810 * lib/readutmp.h: Likewise.
27812 2006-01-25 Bruno Haible <bruno@clisp.org>
27814 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
27816 Reported by Paul Eggert.
27818 2006-01-25 Bruno Haible <bruno@clisp.org>
27820 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
27821 rid of a trap command. For Solaris sh.
27822 Reported by Mark D. Baushke <mdb@gnu.org>.
27824 2006-01-24 Simon Josefsson <jas@extundo.com>
27826 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
27829 2006-01-24 Karl Berry <karl@gnu.org>
27831 * config/srclist.txt (argp-namefrob.h): sync lost.
27833 2006-01-24 Jim Meyering <jim@meyering.net>
27835 * modules/openat (Files): Add lib/intprops.h.
27836 From Mark D. Baushke.
27838 2006-01-24 Jim Meyering <jim@meyering.net>
27840 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
27841 Reported by Mark D. Baushke.
27843 2006-01-24 Jim Meyering <jim@meyering.net>
27845 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
27847 2006-01-24 Bruno Haible <bruno@clisp.org>
27849 * modules/strnlen (Maintainer): Change from glibc to all.
27851 2006-01-24 Bruno Haible <bruno@clisp.org>
27853 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
27854 Patch by Paul Eggert.
27856 2006-01-24 Bruno Haible <bruno@clisp.org>
27858 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
27860 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
27863 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
27864 'signed char' to avoid problems with the built-in _Bool type.
27865 Reported by Paul Eggert on 2005-11-26.
27867 2006-01-24 Bruno Haible <bruno@clisp.org>
27869 * gnulib-tool (func_import): Avoid constructing complicated sed
27870 expressions inside backquote.
27871 Report and solution by Mark D. Baushke <mdb@gnu.org>.
27873 2006-01-23 Ulrich Drepper <drepper@redhat.com>
27875 These changes imported from libc.
27876 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
27877 test and two separate function calls.
27878 * lib/strndup.c (__strndup): Add libc_hidden_def.
27880 2006-01-23 Simon Josefsson <jas@extundo.com>
27882 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
27883 Remove the test_*_SOURCES variable: automake infers it by default.
27884 * modules/tls-tests: Likewise.
27886 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
27888 Work around porting bugs reported by Dieter in
27889 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
27890 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
27891 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
27892 Include "getopt.h" first, to check interface.
27893 (getenv): Declare only if defined HAVE_DECL_GETENV &&
27895 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
27896 (__strndup): Revert to K&R-style function dfns, the glibc style.
27897 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
27898 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
27899 Include strnlen.h first, to get prototype properly.
27900 (strnlen): Renamed from __strnlen.
27903 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
27905 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
27907 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
27909 * config/srclist.txt: Adjust to reflect glibc reorganization.
27910 This affects only comments.
27912 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
27914 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
27915 Reported by Bruce Korb <bkorb@gnu.org>.
27917 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
27919 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
27920 to pacify gcc -Wswitch-default.
27922 2006-01-22 Bruno Haible <bruno@clisp.org>
27924 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
27925 temporary buffer for sprintf, take into account the precision also
27926 for 'd', 'i', 'u', 'o', 'x', 'X'.
27928 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
27930 * modules/argp-tests: New module
27931 * tests/test-argp.c: New file
27932 * tests/test-argp-2.sh: New file
27934 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
27936 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
27937 (__argp_base_name): Removed
27938 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
27940 (__argp_base_name): Provide macro definition or extern declaration
27941 depending on the configuration
27943 2006-01-20 Simon Josefsson <jas@extundo.com>
27945 * modules/inet_ntop (Depends-on): Depend on sys_socket.
27947 2006-01-20 Simon Josefsson <jas@extundo.com>
27949 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
27951 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
27953 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
27954 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
27955 Suggested by Bruno Haible.
27957 2006-01-20 Karl Berry <karl@gnu.org>
27959 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
27960 until changes propagate, I guess.
27962 2006-01-19 Simon Josefsson <jas@extundo.com>
27964 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
27966 2006-01-19 Simon Josefsson <jas@extundo.com>
27968 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
27970 2006-01-19 Simon Josefsson <jas@extundo.com>
27972 * gnulib-tool: Set check_PROGRAMS.
27974 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
27975 modules/des-tests, modules/gc-arcfour-tests,
27976 modules/gc-arctwo-tests, modules/gc-des-tests,
27977 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
27978 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
27979 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
27980 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
27981 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
27982 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
27983 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
27986 2006-01-18 Simon Josefsson <jas@extundo.com>
27988 * modules/socklen (Depends-on): Depend on sys_socket.
27990 2006-01-18 Simon Josefsson <jas@extundo.com>
27992 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
27993 modules/des-tests, modules/gc-arcfour-tests,
27994 modules/gc-arctwo-tests, modules/gc-des-tests,
27995 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
27996 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
27997 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
27998 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
27999 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
28000 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
28001 $(EXEEXT) to automake TESTS variable, for mingw32.
28003 2006-01-17 Simon Josefsson <jas@extundo.com>
28005 * modules/socklen (Include): Need sys/socket.h.
28007 2006-01-17 Bruno Haible <bruno@clisp.org>
28009 * modules/ssize_t (Include): Add <sys/types.h>.
28011 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
28013 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
28014 it's not portable and it doesn't work with cross-compiles.
28015 Problem reported by Bruno Haible. Fix missing-$ typo in
28016 'test "gl_cv_ignore_unused_libraries" ...' that prevented
28017 -zignore from being used with Sun's C compiler.
28019 2006-01-12 Simon Josefsson <jas@extundo.com>
28021 * lib/base64.c: Fix warning, reported by Bruno Haible
28022 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
28024 2006-01-12 Bruno Haible <bruno@clisp.org>
28026 * modules/ldd: New file.
28027 * build-aux/ldd.sh.in: New file.
28028 * MODULES.html.sh (Support for building libraries and executables): Add
28031 2006-01-12 Bruno Haible <bruno@clisp.org>
28033 * m4/ldd.m4: New file.
28035 2006-01-12 Bruno Haible <bruno@clisp.org>
28037 * gnulib-tool (func_import, func_create_testdir): Don't go into an
28038 endless loop while replacing $auxdir with build-aux.
28040 2006-01-11 Simon Josefsson <jas@extundo.com>
28042 * lib/stdint_.h (SIZE_MAX): Add missing (.
28044 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
28046 Sync from coreutils.
28047 * lib/md5.c: Fix commentary typos.
28048 (alignof, UNALIGNED_P): No need for a GCC-specific version.
28049 * lib/md5.h (__attribute__): Remove; unused.
28050 * lib/sha1.c: Fix commentary to match md5 better.
28051 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
28052 so that we don't need to worry about alignment. All uses changed.
28053 This merges the 2005-10-28 md5 change into sha1.
28055 2006-01-11 Jim Meyering <jim@meyering.net>
28057 Sync from coreutils.
28058 * lib/md5.c (OP): Fix spacing.
28060 2006-01-11 Bruno Haible <bruno@clisp.org>
28062 Ensure automatic ordering between gl_LOCK and gl_ARGP.
28063 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
28064 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
28066 2006-01-11 Bruno Haible <bruno@clisp.org>
28068 Ensure automatic ordering between gl_LOCK and gl_ARGP.
28069 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
28070 the "early" section as well.
28072 2006-01-11 Bruno Haible <bruno@clisp.org>
28074 Avoid "ar: no archive members specified" error on MacOS X.
28075 * gnulib-tool (func_modules_add_dummy): New function.
28076 (func_import, func_create_testdir): Invoke it.
28078 2006-01-11 Bruno Haible <bruno@clisp.org>
28080 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
28081 with $auxdir in AC_CONFIG_FILES statements.
28083 2006-01-11 Bruno Haible <bruno@clisp.org>
28085 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28086 Initialize also noinst_HEADERS to empty.
28088 2006-01-11 Bruno Haible <bruno@clisp.org>
28090 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
28092 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
28095 2006-01-11 Bruno Haible <bruno@clisp.org>
28097 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
28098 overridable by the user.
28099 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28101 2006-01-10 Simon Josefsson <jas@extundo.com>
28103 * modules/sys_socket: New file.
28105 2006-01-10 Simon Josefsson <jas@extundo.com>
28107 * m4/sys_socket_h.m4: New file.
28109 2006-01-10 Simon Josefsson <jas@extundo.com>
28111 * lib/socket_.h: New file.
28113 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
28115 * modules/readutmp (Maintainer): Add myself.
28117 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
28119 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
28120 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
28121 People who are still concerned with buggy memcmp implementations
28122 can invoke gl_FUNC_MEMCMP themselves.
28124 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
28126 * lib/regex_internal.h (BITSET_WORD_BITS):
28127 Work around a bug in 64-bit PGC (before version 6.1-2), where the
28128 preprocessor mishandles large unsigned values as if they were signed.
28129 Problem reported by Claudio Fontana in
28130 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
28132 2006-01-10 Jim Meyering <jim@meyering.net>
28134 Avoid the double-free (first in fts_read, second in fts_close) that
28135 would occur when an `active' directory is made inaccessible (e.g.,
28136 via chmod a-x) during a traversal.
28137 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
28138 before returning. Reproduce this failure by
28139 mkdir -p a/b; cd a; chmod a-x . b
28140 Reported by Stavros Passas.
28142 Sync from coreutils.
28143 * lib/sha1.c: Tweak grammar in a comment.
28145 2006-01-10 Jim Meyering <jim@meyering.net>
28147 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
28148 Patch by Joerg Sonnenberger.
28150 2006-01-10 Bruno Haible <bruno@clisp.org>
28152 * modules/readutmp: Depend on module free.
28153 * modules/strtok_r: Depend on module restrict.
28155 2006-01-10 Bruno Haible <bruno@clisp.org>
28157 * modules/gettext (configure.ac): Add an invocation of
28158 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
28160 2006-01-10 Bruno Haible <bruno@clisp.org>
28162 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
28163 Reported by Werner Lemberg <wl@gnu.org>.
28165 2006-01-10 Bruno Haible <bruno@clisp.org>
28167 * lib/localcharset.c: Update from GNU gettext.
28169 2006-01-10 Bruno Haible <bruno@clisp.org>
28171 * lib/argp.h (__const): Remove macro. Use const instead.
28172 * lib/argp-fmtstream.h (__const): Likewise.
28173 * lib/glob_.h (__const): Remove macro.
28174 * lib/glob-libc.h: Use const instead of __const.
28176 2006-01-10 Bruno Haible <bruno@clisp.org>
28178 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
28180 Needed to avoid an automake error regarding the 'gettext' module.
28182 2006-01-09 Simon Josefsson <jas@extundo.com>
28184 * modules/inet_ntop (Depends-on): Add restrict.
28186 2006-01-09 Simon Josefsson <jas@extundo.com>
28188 * modules/gc-rijndael-tests (License): Put under LGPL.
28190 * modules/gc-des-tests (License): Likewise.
28192 * modules/gc-arcfour-tests (License): Likewise.
28194 * modules/gc-arctwo-tests (License): Likewise.
28196 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
28198 * modules/gc-hmac-sha1-tests (Files): Likewise.
28200 * modules/gc-hmac-md5-tests (License): Likewise.
28202 * modules/gc-sha1-tests (License): Likewise.
28204 * modules/gc-md5-tests (License): Likewise.
28206 * modules/gc-md4-tests (License): Likewise.
28208 * modules/gc-md2-tests (License): Likewise.
28210 * modules/gc-tests (License): Likewise.
28212 * modules/des-tests (License): Likewise.
28214 * modules/md4-tests (License): Likewise.
28216 * modules/md2-tests (License): Likewise.
28218 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
28220 Sync from coreutils:
28222 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
28223 * modules/lib-ignore: New file.
28224 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
28225 chdir-safer.m4, lchmod.m4.
28226 * modules/openat: Add mkdirat.c, openat-priv.h.
28228 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
28230 Sync from coreutils.
28231 * m4/lib-ignore.m4: New file.
28232 * m4/lchmod.m4: New file.
28234 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
28236 Sync from coreutils.
28237 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
28238 for write access: POSIX says that must fail.
28239 * lib/fts.c (diropen): Likewise.
28240 * lib/save-cwd.c (save_cwd): Likewise.
28241 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
28242 well, for minor improvements on hosts that lack O_DIRECTORY.
28243 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
28244 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
28245 Fall back on chown if open failed with EACCES.
28247 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
28248 Report an error at compile-time if only a 1-second nominal clock
28249 resolution is found.
28251 * lib/lchmod.h: New file.
28252 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
28253 (make_dir_parents): Use lchown rather than chown, and
28254 lchmod rather than chmod.
28256 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
28257 dummies too. Problem with "none" reported by Bob Proulx. Problem with
28258 "proc" reported by n0dalus.
28260 * lib/mountlist.c: Include <limits.h>.
28261 (dev_from_mount_options)
28262 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
28263 New function. It no longer assumes "dev=" has the System V meaning
28264 on Linux (since it doesn't). It also parses "dev=" more carefully.
28265 (read_file_system_list)
28266 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
28267 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
28270 * lib/posixtm.h (PDS_PRE_2000): New macro.
28271 * lib/posixtm.c (year): Arg is now syntax_bits rather than
28272 allow_century. All usages changed. Reject dates outside the range
28273 1969-1999 if PDS_PRE_2000 is used.
28275 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
28277 Sync from coreutils.
28278 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
28279 (Time of day items): Mention the possibility of leap seconds.
28280 Problem reported by Dr. David Alan Gilbert.
28282 2006-01-09 Jim Meyering <jim@meyering.net>
28284 Sync from coreutils.
28286 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
28288 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
28290 * lib/modechange.c (mode_compile): Reject an invalid mode string
28291 that starts with an octal digit. From Andreas Gruenbacher.
28293 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
28294 and dup to open_safer and dup_safer, respectively.
28295 (openat_permissive): Fix typo in comment.
28297 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
28298 "gettext.h"; either no longer needed or are guaranteed by openat.h.
28299 (_): Remove; no longer needed.
28300 (openat): Renamed from rpl_openat; no need for rpl_openat
28301 since openat.h renames openat for us.
28302 Replace most of the body with a call to openat_permissive,
28303 to avoid duplicate code.
28304 Port to (probably hypothetical) environments were mode_t is
28306 (openat_permissive): Require mode arg, so that we can check
28307 types better. Put it just after flags. Change cwd failure
28308 indicator from pointer-to-bool to pointer-to-errno-value.
28309 All callers changed.
28310 Invoke openat_save_fail and/or openat_restore_fail if
28311 cwd_errno is null, so that openat can call us.
28312 (openat_permissive, fdopendir, fstatat, unlinkat):
28313 Simplify errno handling to avoid some duplicate code,
28314 as it's OK to set errno on success.
28315 * lib/openat.h: Revamp code so that function macros depend on
28316 __OPENAT_PREFIX only, not also on AT_FDCWD.
28317 (openat_ro): Remove. Caller changed to use openat_permissive.
28318 (openat_permissive): Now a macro, if not a function.
28319 (openat_restore_fail, openat_save_fail): Now always functions,
28320 since mkdirat needs them even if __OPENAT_PREFIX is defined.
28322 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
28324 * lib/mkdirat.c: Include openat-priv.h.
28325 Remove definitions of macros defined therein.
28326 * lib/openat.c: Likewise.
28328 * lib/mkdirat.c (mkdirat): New file and function.
28329 * lib/openat.h (mkdirat): Declare.
28331 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
28333 * lib/openat.h (openat_permissive): Declare.
28334 (openat_ro): Define.
28336 * lib/openat.c (EXPECTED_ERRNO): New macro.
28337 (openat_permissive): New function -- used in remove.c rewrite.
28338 (all functions): Set errno just before returning, only if there
28339 was an actual failure.
28340 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
28342 Emulate openat-family functions using Linux's procfs, if possible.
28343 Idea and some code based on Ulrich Drepper's glibc changes.
28345 * lib/openat.c: (BUILD_PROC_NAME): New macro.
28346 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
28347 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
28348 before falling back on save_cwd and restore_cwd.
28349 (fdopendir, fstatat, unlinkat): Likewise.
28351 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
28352 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
28354 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
28355 as second argument to va_arg. Otherwise, some versions of gcc
28356 warn that `if this code is reached, the program will abort'.
28358 2006-01-09 Jim Meyering <jim@meyering.net>
28360 Sync from coreutils.
28361 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
28362 Require openat-priv.h.
28364 2006-01-09 Bruno Haible <bruno@clisp.org>
28366 * modules/strnlen (Include): Use strnlen.h.
28368 2006-01-09 Bruno Haible <bruno@clisp.org>
28370 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
28372 2006-01-09 Bruno Haible <bruno@clisp.org>
28374 * lib/sysexit_.h (EX_OK): New macro.
28375 Suggested by Martin Lambers <marlam@marlam.de>.
28377 2006-01-09 Bruno Haible <bruno@clisp.org>
28379 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
28380 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
28382 2006-01-09 Bruno Haible <bruno@clisp.org>
28384 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
28387 2006-01-09 Bruno Haible <bruno@clisp.org>
28389 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
28390 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
28391 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
28392 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
28394 2006-01-09 Bruno Haible <bruno@clisp.org>
28396 * build-aux/javacomp.sh.in: New file, moved from lib/.
28397 * modules/javacomp-script (Files): Update.
28398 (configure.ac): Add AC_CONFIG_FILES invocation.
28399 (EXTRA_DIST): Remove variable.
28401 * build-aux/javaexec.sh.in: New file, moved from lib/.
28402 * modules/javaexec (Files): Update.
28403 (configure.ac): Add AC_CONFIG_FILES invocation.
28404 (EXTRA_DIST): Remove javaexec.sh.in.
28406 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
28407 * modules/csharpcomp-script (Files): Update.
28408 (configure.ac): Add AC_CONFIG_FILES invocation.
28409 (EXTRA_DIST): Remove variable.
28411 * build-aux/csharpexec.sh.in: New file, moved from lib/.
28412 * modules/csharpexec (Files): Update.
28413 (configure.ac): Add AC_CONFIG_FILES invocation.
28414 (EXTRA_DIST): Remove csharpexec.sh.in.
28416 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
28418 Sync from coreutils.
28420 Add POSIX ACL support
28421 * lib/acl.h (copy_acl, set_acl): Add declarations.
28422 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
28423 systems other than Linux.
28424 (chmod_or_fchmod): New function: use fchmod when possible,
28425 and chmod otherwise.
28426 (file_has_acl): Add a POSIX ACL implementation, with a
28427 Linux-specific subcase.
28428 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
28429 S_ISVTX from one file to another. Fall back to fchmod/chmod when
28430 acls are unsupported.
28431 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
28432 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
28435 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
28437 Sync from coreutils.
28438 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
28440 2006-01-07 Bruno Haible <bruno@clisp.org>
28442 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
28445 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
28447 * lib/strftime.c (tzname): Don't declare if it is already #defined.
28448 Problem reported for Mingw by Mark Junker.
28450 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
28452 * README: Gnulib normally doesn't generate a tarball.
28454 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
28456 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
28457 long int, not int, for nanosecond counts, so that people who are
28458 used to POSIX struct timespec won't be surprised. Reported by Jim
28461 2005-12-28 Bruno Haible <bruno@clisp.org>
28463 * build-aux/config.rpath: Update from GNU gettext.
28465 2005-12-16 Jim Meyering <jim@meyering.net>
28467 * modules/fprintftime: New module.
28468 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
28470 2005-12-16 Jim Meyering <jim@meyering.net>
28472 * m4/fprintftime.m4: New file.
28474 2005-12-16 Jim Meyering <jim@meyering.net>
28476 * lib/fprintftime.c, lib/fprintftime.h: New files.
28478 2005-12-15 Simon Josefsson <jas@extundo.com>
28480 * modules/socklen (configure.ac): Fix M4 macro name, to align with
28483 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
28485 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
28486 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
28488 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
28490 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
28491 * lib/argp-help.c (fill_in_uparams): Check if the constructed
28492 struct uparams is valid. Fall back to the default values if it is
28495 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
28497 * modules/argp (Files): Add argp-pin.c
28498 (Depends-on): dirname
28499 (lib_SOURCES): Add argp-pin.c
28501 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
28503 * m4/argp.m4: Check if program_invocation_name and
28504 program_invocation_short_name are declared and define appropriate
28505 macros if they are not.
28507 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
28509 * lib/argp-help.c (__argp_base_name): New function
28510 (__argp_short_program_name): Rewrite using __argp_base_name
28511 * lib/argp-namefrob.h: Define program_invocation_name and
28512 program_invocation_short_name if requested
28513 (__argp_base_name): Add prototype
28514 * lib/argp-parse.c (argp_def): Use gettext wrappers
28515 (argp_default_parser): Use __argp_base_name
28516 * lib/argp-pin.c: New file. Defines program_invocation_name and
28517 program_invocation_short_name on systems that lack them.
28519 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
28521 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
28522 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
28523 porting problem reported by Georg Schwarz in
28524 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
28526 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
28528 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
28529 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
28530 porting problem reported by Georg Schwarz in
28531 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
28533 2005-12-05 Bruno Haible <bruno@clisp.org>
28535 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
28536 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
28537 Reported by Mark Junker <mjscod@gmx.de>.
28539 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
28541 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
28542 Use implementation from Albert Chin, with some
28543 comments/corrections by Stepan Kasal and myself.
28545 2005-12-02 Bruno Haible <bruno@clisp.org>
28547 * gnulib-tool (func_import): Accept GPLed build tool modules when
28549 * modules/csharpcomp-script: New file.
28550 * modules/csharpcomp: Depend on it.
28551 * modules/javacomp-script: New file.
28552 * modules/javacomp: Depend on it.
28553 Suggested by Simon Josefsson.
28555 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
28557 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
28558 statement, to work around an HP-UX 10.20 compiler bug reported by
28561 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
28563 * modules/savedir (Depends-on): Add openat.
28565 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
28567 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
28568 (uintmax_t) [defined uintmax_t]: Do not declare.
28569 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
28570 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
28571 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
28572 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
28573 sake of portability to weird hosts that C allows (though we don't
28574 know of any practical examples).
28576 * lib/savedir.h (fdsavedir): New decl.
28577 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
28578 contains most of the former guts of savedir.
28579 (savedir): Use savedirstream.
28580 Include "openat.h".
28582 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
28584 * modules/obstack (Files): Add m4/ulonglong.m4.
28585 Problem reported by Davide Angelocola.
28587 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
28589 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
28590 coreutils no longer futzes with rounding modes.
28592 2005-11-14 Jim Meyering <jim@meyering.net>
28594 * lib/mkstemp-safer.c: Include <config.h>, required for possible
28595 replacement of mkstemp.
28597 2005-11-10 Simon Josefsson <jas@extundo.com>
28599 * lib/readline.c: Remove EOL.
28601 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
28603 * modules/gethrxtime (Depends-on): Add gettime.
28605 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
28607 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
28608 or gettimeofday; no longer needed.
28610 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
28612 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
28614 (gethrxtime) [! (HAVE_NANOUPTIME
28615 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
28616 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
28617 our own approximation.
28619 2005-11-08 Eric Blake <ebb9@byu.net>
28621 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
28623 2005-11-08 Eric Blake <ebb9@byu.net>
28625 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
28627 2005-11-04 Bruno Haible <bruno@clisp.org>
28629 * gnulib-tool: Implement --update mode.
28631 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
28633 Fix porting problem reported by Theodoros V. Kalamatianos.
28634 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
28635 Don't assume that futimes failing means we must fail.
28637 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
28639 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
28640 variables to suggest the intended function of the PATH_MAX check.
28642 2005-10-30 Kean Johnston <jkj@sco.com>
28644 Trivial changes to support SCO systems.
28645 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
28647 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
28648 where __ptr is null when no I/O is pending.
28650 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
28652 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
28653 leave errno alone. Problem reported by Dmitry V. Levin.
28655 2005-10-28 Simon Josefsson <jas@extundo.com>
28657 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
28660 * tests/test-gc-md2.c, tests/test-md2.c: New files.
28662 * modules/md2, modules/md2-tests: New files.
28664 2005-10-28 Simon Josefsson <jas@extundo.com>
28666 * m4/inet_ntop.m4: More tests.
28668 * m4/gc-md2.m4, md2.m4: New file.
28670 2005-10-28 Simon Josefsson <jas@extundo.com>
28672 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
28673 "restrict" keywords, as per POSIX. Protect the function
28674 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
28675 Don't use K&R prototypes. Check the sprintf return values.
28676 Re-define EAFNOSUPPORT if not present. Indent.
28678 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
28679 suggested by Bruno Haible <bruno@clisp.org>.
28681 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
28683 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
28685 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
28688 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
28690 * lib/md2.h, lib/md2.c: New files.
28692 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
28694 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
28695 errno alone. Problem reported by Frederic Jolliton.
28697 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
28699 * modules/verify (License): Change from GPL to LGPL. This is a
28700 tiny module and there are apparently near-equivalents that are
28701 under the BSD license.
28703 2005-10-24 Simon Josefsson <jas@extundo.com>
28705 * modules/sha1: Relicense to LGPL.
28707 2005-10-24 Simon Josefsson <jas@extundo.com>
28709 * lib/md4.h: Shrink buffer size, now that we changed the type.
28711 2005-10-23 Simon Josefsson <jas@extundo.com>
28713 * gnulib-tool (func_import): Fix --tests-base.
28715 2005-10-22 Simon Josefsson <jas@extundo.com>
28717 * modules/arcfour (Depends-on): Need stdint.
28719 2005-10-22 Simon Josefsson <jas@extundo.com>
28721 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
28722 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
28724 2005-10-22 Simon Josefsson <jas@extundo.com>
28726 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
28727 suggested by Bruno Haible <bruno@clisp.org>.
28729 2005-10-22 Simon Josefsson <jas@extundo.com>
28731 * lib/crc.h: Include stddef.h, for size_t.
28733 2005-10-22 Simon Josefsson <jas@extundo.com>
28735 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
28736 arcfour_context struct (simplify test vector testing in GNU
28739 2005-10-21 Simon Josefsson <jas@extundo.com>
28741 * modules/des, modules/des-tests: New files.
28743 * modules/gc-des, modules/gc-des-tests: New files.
28745 * tests/test-des.c, tests/test-gc-des.c: New file.
28747 2005-10-21 Simon Josefsson <jas@extundo.com>
28749 * modules/arctwo, modules/arctwo-tests: New files.
28751 * tests/test-arctwo.c: New file.
28753 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
28755 * tests/test-gc-arctwo.c: New file.
28757 2005-10-21 Simon Josefsson <jas@extundo.com>
28759 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
28760 Bruno Haible <bruno@clisp.org>.
28762 * m4/gc-des.m4: New file.
28764 2005-10-21 Simon Josefsson <jas@extundo.com>
28766 * m4/arctwo.m4: New file.
28768 * m4/gc-arctwo.m4: New file.
28770 2005-10-21 Simon Josefsson <jas@extundo.com>
28772 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
28775 2005-10-21 Simon Josefsson <jas@extundo.com>
28777 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
28780 * lib/hmac-sha1.c (hmac_sha1): Likewise.
28782 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
28783 Bruno Haible <bruno@clisp.org>.
28785 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
28788 2005-10-21 Simon Josefsson <jas@extundo.com>
28790 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
28792 2005-10-21 Simon Josefsson <jas@extundo.com>
28794 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
28796 2005-10-21 Simon Josefsson <jas@extundo.com>
28798 * lib/des.h, lib/des.c: New files.
28800 * lib/gc-gnulib.c: Support DES.c
28802 2005-10-21 Simon Josefsson <jas@extundo.com>
28804 * lib/arctwo.h, lib/arctwo.c: New files.
28806 * lib/gc-gnulib.c: Support ARCTWO.
28808 2005-10-21 Simon Josefsson <jas@extundo.com>
28810 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
28811 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28813 2005-10-21 Simon Josefsson <jas@extundo.com>
28815 * gnulib-tool (func_import, func_create_testdir): Define automake
28816 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
28817 Makefile.am snippet),
28818 suggested by Bruno Haible <bruno@clisp.org>.
28820 * modules/gc (Makefile.am): Use it.
28822 2005-10-21 Bruno Haible <bruno@clisp.org>
28824 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
28827 2005-10-19 Simon Josefsson <jas@extundo.com>
28829 * tests/test-gc-rijndael.c: New file.
28831 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
28833 2005-10-19 Simon Josefsson <jas@extundo.com>
28835 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
28838 2005-10-19 Simon Josefsson <jas@extundo.com>
28840 * tests/test-gc-arcfour.c: New file.
28842 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
28844 2005-10-19 Simon Josefsson <jas@extundo.com>
28846 * modules/gc-md4, modules/gc-md4-tests: New file.
28848 * tests/test-gc-md4.c: New file.
28850 2005-10-19 Simon Josefsson <jas@extundo.com>
28852 * m4/gc-md4.m4: New file.
28854 2005-10-19 Simon Josefsson <jas@extundo.com>
28856 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
28857 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
28860 2005-10-19 Simon Josefsson <jas@extundo.com>
28862 * m4/gc-arcfour.m4: New file.
28864 * m4/gc-rijndael.m4: New file.
28866 2005-10-19 Simon Josefsson <jas@extundo.com>
28868 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
28870 2005-10-19 Simon Josefsson <jas@extundo.com>
28872 * lib/gc-gnulib.c: Support ARCFOUR.
28874 2005-10-19 Simon Josefsson <jas@extundo.com>
28876 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
28879 * lib/gc.h: Add ECB enum type.
28881 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
28883 2005-10-18 Simon Josefsson <jas@extundo.com>
28885 * tests/test-md5.c: New file.
28887 * modules/md5-tests: New file.
28889 2005-10-18 Simon Josefsson <jas@extundo.com>
28891 * tests/test-md4.c: New file.
28893 * modules/md4, modules/md4-tests: New files.
28895 2005-10-18 Simon Josefsson <jas@extundo.com>
28897 * m4/md4.m4: New file.
28899 2005-10-18 Simon Josefsson <jas@extundo.com>
28901 * lib/md4.h, lib/md4.c: New files, based on md5.?.
28903 2005-10-17 Stepan Kasal <kasal@ucw.cz>
28905 * gnulib-tool (func_create_testdir): Omit the second check whether
28906 BUILT_SOURCES in nonempty.
28908 2005-10-17 Simon Josefsson <jas@extundo.com>
28910 * tests/test-rijndael.c: New file.
28912 2005-10-17 Simon Josefsson <jas@extundo.com>
28914 * modules/sha1: Depend on stdint instead of md5.
28916 * modules/md5: Depend on stdint, remove uint32_t.
28918 2005-10-17 Simon Josefsson <jas@extundo.com>
28920 * modules/gc-sha1-tests: New file.
28922 * tests/test-gc-sha1.c: New file.
28924 2005-10-17 Simon Josefsson <jas@extundo.com>
28926 * m4/md5.m4: Remove call to uint32_t.m4.
28928 2005-10-17 Simon Josefsson <jas@extundo.com>
28930 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
28932 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
28935 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
28937 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
28939 2005-10-17 Simon Josefsson <jas@extundo.com>
28941 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
28943 2005-10-17 Simon Josefsson <jas@extundo.com>
28945 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
28947 2005-10-17 Simon Josefsson <jas@extundo.com>
28949 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
28951 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
28953 2005-10-17 Bruno Haible <bruno@clisp.org>
28955 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
28956 that it can also be used in a test.
28958 2005-10-16 Bruno Haible <bruno@clisp.org>
28960 * gnulib-tool (func_emit_tests_Makefile_am): Also define
28961 TESTS_ENVIRONMENT, so that individual tests can augment it.
28963 * gnulib-tool (func_create_testdir): Use an intermediate target for
28964 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
28965 macros, like $(ALLOCA_H), which cannot be passed through the command
28968 2005-10-15 Simon Josefsson <jas@extundo.com>
28970 * modules/rijndael-tests: New file.
28972 * modules/rijndael: New file.
28974 2005-10-15 Simon Josefsson <jas@extundo.com>
28976 * m4/rijndael.m4: New file.
28978 2005-10-15 Simon Josefsson <jas@extundo.com>
28980 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
28982 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
28984 2005-10-14 Simon Josefsson <jas@extundo.com>
28986 * tests/test-arcfour.c: New file.
28988 * modules/arcfour, modules/arcfour-tests: New files.
28990 2005-10-14 Simon Josefsson <jas@extundo.com>
28992 * m4/arcfour.m4: New file.
28994 2005-10-14 Simon Josefsson <jas@extundo.com>
28996 * lib/arcfour.h, lib/arcfour.c: New files.
28998 2005-10-14 Roland McGrath <roland@redhat.com>
29000 Import from libc. [BZ #1331]
29001 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
29003 Reported by Matej Vela <vela@debian.org>.
29005 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
29007 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
29008 include <wchar.h>; no longer needed.
29010 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
29012 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
29014 2005-10-14 Jakub Jelinek <jakub@redhat.com>
29015 and Ulrich Drepper <drepper@redhat.com>
29018 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
29019 instead of inline stream orientation test and two separate
29020 function calls. Pay no attention to USE_IN_LIBIO.
29022 2005-10-13 Simon Josefsson <jas@extundo.com>
29024 * modules/gc-hmac-md5-tests: New file.
29026 * tests/test-gc-hmac-sha1.c: New file.
29028 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
29030 * modules/gc-hmac-md5-tests: New file.
29032 * tests/test-gc-md5.c: New file.
29034 * modules/gc-md5-tests: New file.
29036 2005-10-13 Simon Josefsson <jas@extundo.com>
29038 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
29039 Move memory allocation outside of loop.
29041 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
29043 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
29044 intermediate directory is in a read-only file system. Problem
29045 reported by Eric Blake.
29047 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
29049 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
29051 2005-10-12 Simon Josefsson <jas@extundo.com>
29053 * tests/test-hmac-sha1.c: New file.
29055 * modules/hmac-sha1-tests: New file.
29057 * modules/hmac-sha1: New file.
29059 2005-10-12 Simon Josefsson <jas@extundo.com>
29061 * modules/gc-sha1: New file.
29063 2005-10-12 Simon Josefsson <jas@extundo.com>
29065 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
29067 * tests/test-gc-pbkdf2-sha1.c: New file.
29069 2005-10-12 Simon Josefsson <jas@extundo.com>
29071 * modules/gc-md5, modules/gc-hmac-md5: New files.
29073 * modules/gc (Files): Remove md5, memxor and hmac files.
29075 2005-10-12 Simon Josefsson <jas@extundo.com>
29077 * m4/gc-pbkdf2-sha1.m4: New file.
29079 * m4/gc-hmac-sha1.m4: New file.
29081 * m4/gc-sha1: New file.
29083 * m4/hmac-sha1.m4: New file.
29085 2005-10-12 Simon Josefsson <jas@extundo.com>
29087 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
29089 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
29091 2005-10-12 Simon Josefsson <jas@extundo.com>
29093 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
29094 suggested by Bruno Haible <bruno@clisp.org>.
29096 2005-10-12 Simon Josefsson <jas@extundo.com>
29098 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
29100 2005-10-12 Simon Josefsson <jas@extundo.com>
29102 * lib/gc-pbkdf2-sha1.c: New file.
29104 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
29106 2005-10-12 Simon Josefsson <jas@extundo.com>
29108 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
29110 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
29112 2005-10-12 Simon Josefsson <jas@extundo.com>
29114 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
29115 GC_USE_HMAC_MD5, respectively.
29117 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
29118 (gc_md5): Fix typo.
29120 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
29122 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
29124 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
29126 2005-10-12 Bruno Haible <bruno@clisp.org>
29128 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
29129 Reported by Stepan Kasal <kasal@ucw.cz>.
29131 2005-10-11 Simon Josefsson <jas@extundo.com>
29133 * tests/test-crc.c: New file.
29135 * modules/crc, modules/crc-tests: New files.
29137 2005-10-11 Simon Josefsson <jas@extundo.com>
29139 * m4/crc.m4: New file.
29141 2005-10-11 Simon Josefsson <jas@extundo.com>
29143 * lib/gc.h: Add gc_hash and gc_hash_buffer.
29145 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
29147 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
29149 2005-10-11 Simon Josefsson <jas@extundo.com>
29151 * lib/crc.h, lib/crc.c: New files.
29153 * lib/gc.h (gc_hash_buffer): Add doc.
29155 2005-10-11 Bruno Haible <bruno@clisp.org>
29157 * modules/c-strcasestr: New file.
29158 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
29160 2005-10-11 Bruno Haible <bruno@clisp.org>
29162 * modules/c-strcase: New file.
29163 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
29165 2005-10-11 Bruno Haible <bruno@clisp.org>
29167 * lib/strcasecmp.c: Include limits.h.
29168 (strcasecmp): Avoid integer overflow on exotic platforms.
29169 * lib/strncasecmp.c: Include limits.h.
29170 (strncasecmp): Avoid integer overflow on exotic platforms.
29171 Reported by Paul Eggert.
29173 2005-10-11 Bruno Haible <bruno@clisp.org>
29175 * lib/c-strcasestr.h: New file, from GNU gettext.
29176 * lib/c-strcasestr.c: New file, from GNU gettext.
29178 2005-10-11 Bruno Haible <bruno@clisp.org>
29180 * lib/c-strcase.h: New file, from GNU gettext.
29181 * lib/c-strcasecmp.c: New file, from GNU gettext.
29182 * lib/c-strncasecmp.c: New file, from GNU gettext.
29184 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
29186 * modules/mempcpy (License): GPL -> LGPL.
29187 * modules/strchrnul (License): Likewise.
29188 * modules/sysexits (License): Likewise.
29190 2005-10-08 Simon Josefsson <jas@extundo.com>
29192 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
29194 2005-10-07 Simon Josefsson <jas@extundo.com>
29196 * m4/memxor.m4: Remove gl_C_RESTRICT call.
29198 2005-10-06 Simon Josefsson <jas@extundo.com>
29200 * tests/test-hmac-md5.c: New file.
29202 * modules/hmac-md5-tests: New file.
29204 * modules/hmac-md5: New file.
29206 2005-10-06 Simon Josefsson <jas@extundo.com>
29208 * m4/hmac-md5.m4: New file.
29210 * m4/memxor.m4: Require gl_C_RESTRICT.
29212 2005-10-06 Simon Josefsson <jas@extundo.com>
29214 * lib/memxor.c (memxor): Avoid casts and warnings.
29216 2005-10-06 Simon Josefsson <jas@extundo.com>
29218 * lib/hmac-md5.c: New file.
29220 * lib/hmac.h: New file.
29222 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
29224 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
29225 promotes to int, not unsigned int, to catch the AIX 5.3
29228 2005-10-05 Simon Josefsson <jas@extundo.com>
29230 * modules/memxor: New file.
29232 * modules/iconv (Files): Move config.rpath to havelib, it is used
29235 * modules/havelib (Files): Add config.rpath.
29237 2005-10-05 Simon Josefsson <jas@extundo.com>
29239 * m4/memxor.m4: New file.
29241 2005-10-05 Simon Josefsson <jas@extundo.com>
29243 * lib/memxor.c (memxor): Fix compiler error.
29245 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
29246 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
29248 * lib/memxor.h, lib/memxor.c: New files.
29250 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
29251 we assume all systems have it, suggested by Jim Meyering
29252 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
29253 any systems lack sys/socket.h; mingw32 is known to lack it, but we
29254 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
29257 2005-10-05 Simon Josefsson <jas@extundo.com>
29259 * config/srclist.txt: Add glibc bug 1423 for md5.h.
29261 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
29263 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
29264 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
29265 needed, since the source code now assumes these .h files.
29267 2005-10-05 Derek Price <derek@ximbiot.com>
29269 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
29271 2005-10-05 Bruno Haible <bruno@clisp.org>
29273 * modules/stdint (License): Change to LGPL.
29275 2005-10-04 Simon Josefsson <jas@extundo.com>
29277 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
29278 D. Baushke" <mdb@gnu.org>.
29280 2005-10-04 Bruno Haible <bruno@clisp.org>
29282 * lib/verify.h (verify_true): Provide alternative definition for C++.
29284 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
29286 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
29287 (SSIZE_MAX): New macro, if not already defined.
29288 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
29291 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
29293 Sync from coreutils.
29294 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
29295 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
29296 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
29297 ULLONG_MAX doesn't work with 2.7.2.1.
29299 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
29301 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
29304 * modules/exclude (Depends-on): Depend on verify.
29305 * modules/strtoimax (Depends-on): Likewise.
29306 * modules/utimecmp (Depends-on): Likewise.
29308 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
29310 * lib/exclude.c: Include verify.h.
29311 (verify): Remove. All callers changed to use verify.h's version.
29312 * lib/strtoimax.c: Likewise.
29313 * lib/utimecmp.c: Likewis.e
29315 Sync from coreutils.
29316 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
29317 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
29318 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
29319 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
29320 bother returning ENOSYS if settimeofday or stime fails; just let
29321 them return whatever errno they want to return.
29322 * lib/utimens.c: Include unistd.h, for dup2.
29323 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
29324 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
29326 2005-10-02 Jim Meyering <jim@meyering.net>
29328 Sync from coreutils.
29329 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
29330 from glibc-2.2.5 that fails for read-only files.
29332 2005-10-02 Jim Meyering <jim@meyering.net>
29334 Sync from coreutils.
29335 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
29336 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
29337 `#if HAVE_CONFIG_H'.
29338 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
29339 Remove AT_FDCWD test.
29340 Do not consume the fd unless successful.
29341 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
29342 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
29343 block, so that we don't even try to compile it if settimeofday is
29344 available. This works around a compilation failure on OSF1 V5.1,
29345 due to stime requiring a `long int*' while tv_sec is `int'.
29347 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
29349 Sync from coreutils.
29350 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
29351 against `yes', rather than just testing for nonempty.
29353 2005-10-01 Simon Josefsson <jas@extundo.com>
29355 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
29358 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
29359 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
29360 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
29361 freeaddrinfo and gai_strerror are declared by the POSIX headers.
29362 Check if struct addrinfo is declared.
29364 2005-10-01 Simon Josefsson <jas@extundo.com>
29366 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
29367 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
29368 AI_* and EAI_* definitions. Protect function declarations.
29370 2005-10-01 Jim Meyering <jim@meyering.net>
29372 Sync from coreutils.
29374 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
29375 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
29376 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
29377 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
29378 in the inet and nsl libraries. Required on Solaris 5.7.
29380 2005-10-01 Jim Meyering <jim@meyering.net>
29382 Sync from coreutils.
29383 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
29384 in the inet and nsl libraries. Required on Solaris 5.7.
29386 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
29388 * lib/getdelim.c (getdelim): Remove unused variables.
29390 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
29392 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
29393 so that the code works even with ancient cpp. Portability problem
29394 with GCC 2.7.2.1 reported by Thomas M.Ott.
29396 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
29398 * modules/regex (Depends-on): Add strcase.
29400 * modules/gethostname (Licence): Change from GPL to LGPL, since
29401 gethostname.c is a trivial implementation of a standard library
29403 * modules/poll (License): Change from GPL to LGPL, since it's
29404 derived from LGPL code.
29406 2005-09-27 Jim Meyering <jim@meyering.net>
29408 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
29411 * lib/intprops.h (signed_type_or_expr__): Define.
29412 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
29413 for unsigned types.
29415 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
29417 * lib/verify.h (verify_expr): Remove, replacing with:
29418 (verify_true): New macro that returns true instead of void.
29419 (verify_type__): Remove.
29420 (verify): Use verify_true rather than verify_type__.
29422 2005-09-26 Bruno Haible <bruno@clisp.org>
29424 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
29426 (lib_SOURCES): Remove mbchar.c.
29427 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
29428 (Files): Add m4/mbrtowc.m4.
29429 * modules/mbiter: Likewise.
29430 * modules/mbuiter: Likewise.
29432 2005-09-26 Bruno Haible <bruno@clisp.org>
29434 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
29435 compile mbchar.c if they are not both present.
29436 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
29437 * m4/mbiter.m4 (gl_MBITER): Likewise.
29438 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
29439 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
29440 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
29442 2005-09-25 Jim Meyering <jim@meyering.net>
29444 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
29445 also uses socklen_t.
29447 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
29449 * lib/utimens.c (ENOSYS): Define if not already defined.
29450 (futimens): Support having a null PATH if the file descriptor
29453 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
29455 (__attribute): Define to empty unless GCC 3.1 or later.
29456 This works around a core dump on OpenBSD 3.4, which has GCC
29457 2.95.3, which dumps core when given __attribute__(()). It also
29458 simplifies other tests, since we really don't want to bother with
29459 worrying about which ancient version of GCC supported what.
29460 Original problem reported by Yoann Vandoorselaere, with part of
29461 the fix suggested by Derek Price.
29463 2005-09-24 Jim Meyering <jim@meyering.net>
29465 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
29466 so we can once again use a positive bitfield width of 1 -- now we
29467 don't have to explain why we were using a bitfield width of 2.
29469 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
29471 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
29472 and similarly for the other external symbols. Problem reported
29475 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
29476 bug reported by Jim Meyering.
29478 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
29479 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
29480 not needed, since socklen is a prerequisite module.
29482 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
29484 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
29485 Problem reported by Eric Blake.
29486 (getaddrinfo): Initialize se so that it's not garbage.
29487 Redo internal storage allocation so that it doesn't make unportable
29488 assumptions about alignment.
29491 * lib/utimens.c (futimens): Use futimesat if available.
29492 Prefer it to futimes since it doesn't have the futimes bug.
29494 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
29495 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
29496 Instead, declare a function that returns a pointer to an array,
29497 and use verify_type__ to declare the size of the array.
29498 Problem and germ of a solution reported by Bruno Haible.
29499 (verify_type__): Use 2, not 1, for bitfield size, to avoid
29500 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
29502 2005-09-23 Jim Meyering <jim@meyering.net>
29504 Sync from coreutils.
29505 Correct build failure (socklen_t not defined) on at least
29506 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
29507 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
29509 2005-09-23 Jim Meyering <jim@meyering.net>
29511 * modules/getaddrinfo (Depends-on): Add socklen.
29513 2005-09-23 Bruno Haible <bruno@clisp.org>
29515 * tests/test-verify.c: New file.
29517 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
29519 Sync from coreutils.
29521 * modules/argmatch (Depends-on): Add verify.
29522 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
29524 * modules/save-cwd (Depends-on): Likewise.
29526 * modules/openat (Files): Add lib/openat-die.c.
29527 (Depends-on): Remove error, exitfail.
29530 * modules/verify: New file.
29531 * MODULES.html.sh (Diagnostics <assert.h>): New section,
29532 with "verify" module.
29534 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
29536 Sync from coreutils.
29538 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
29539 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
29540 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
29541 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
29542 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
29543 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
29544 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
29545 Don't bother checking for string.h, stdlib.h, unistd.h.
29546 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
29547 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
29549 * m4/jm-macros.m4 (gl_MACROS): Likewise.
29550 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
29552 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
29553 (gl_GETDATE): Use it.
29555 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
29557 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
29559 Sync from coreutils.
29561 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
29563 * lib/argmatch.h: Include verify.h
29564 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
29565 (ARGMATCH_ASSERT): Remove; unused.
29566 * lib/canonicalize.c: Assume STDC_HEADERS.
29567 * lib/exclude.c: Include "strcase.h".
29568 * lib/regex_internal.h [!defined _LIBC]: Likewise.
29569 * lib/getusershell.c: Include stdio--.h rather than stdio.h
29571 (getusershell): Call fopen, not fopen_safer.
29572 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
29573 Do not include unistd-safer.h.
29574 (save_cwd): Don't call fd_safer; no longer needed
29575 now that we include fcntl--.h.
29577 * lib/getdate.y (relative_time): New type.
29578 (RELATIVE_TIME_0): New constant.
29579 (parser_control): Use relative_time instead of doing it ourselves.
29580 (%union): Add new relative_time rel member.
29581 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
29583 (relunit, relunit_snumber): Now of type rel.
29584 (zone, rel, relunit, get_date): Adjust to above changes.
29586 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
29587 Do not include unistd-safer.h.
29588 (getloadavg): Don't call fd_safer; no longer needed
29589 now that we include fcntl--.h.
29591 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
29592 (make_dir_parents): Treat ENOSYS like EEXIST.
29594 Improve quality of diagnostics on restore_cwd failure.
29595 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
29596 (make_dir_parents): Last arg is now int * (for errno), not bool *.
29597 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
29598 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
29599 each time through the loop. Do not diagnose restore_cwd failure;
29600 that is the caller's job (and perhaps the caller does not care).
29602 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
29603 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
29604 If the file already exists but is not a directory, don't bother
29605 to try to make its parents.
29606 Close potential file descriptor leak if we can't chdir("/") (!).
29607 Don't always return true if chdir($PWD) fails; return true only
29608 if the requested action was done successfully (except for the
29610 Don't log final directory unless we actually made it.
29611 Refactor to avoid duplicate code to fix up permissions.
29612 Don't attempt to fix up parent permissions if chdir($PWD) fails.
29614 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
29615 to make it a bit faster and (I hope) clearer.
29616 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
29617 Fix bug in formats like %2N.
29619 * lib/verify.h: New file.
29621 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
29623 Sync from coreutils.
29624 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
29626 2005-09-22 Jim Meyering <jim@meyering.net>
29628 Sync from coreutils.
29630 * m4/lstat.m4 (gl_FUNC_LSTAT):
29631 Use AC_LIBSOURCES to require lstat.c and lstat.h.
29632 Remove obsolete comment.
29633 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
29634 * m4/xstrtod.m4: Likewise.
29636 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
29638 2005-09-22 Jim Meyering <jim@meyering.net>
29640 Sync from coreutils.
29642 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
29644 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
29645 the .tm_year member, since otherwise gcc-4.0 would now warn about
29646 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
29648 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
29649 order to avoid an unsuppressible warning from gcc on 64-bit systems.
29651 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
29652 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
29653 when run in a time zone for which daylight savings time is in effect
29654 for the starting date.
29656 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
29657 stop us from restricting permissions of just-created absolute-named
29659 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
29660 to restore initial working directory.
29661 * lib/mkdir-p.c (make_dir_parents): New parameter:
29662 different_working_dir, to tell caller if/when we change the working
29663 directory and are unable to return to the initial one.
29664 * lib/mkdir-p.h (make_dir_parents): Update prototype.
29665 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
29666 `return false'. This fixes a bug introduced on 2004-07-30.
29668 * lib/openat.c (fdopendir): Be sure to close the supplied
29669 file descriptor before returning. This makes our replacement
29670 implementation a little closer to Solaris's, where fdopendir
29671 ties the file descriptor to the returned DIR* pointer.
29672 * lib/openat.c (unlinkat): New function.
29673 * lib/openat.h (unlinkat): Add prototype.
29674 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
29675 (openat_restore_fail): Rename from openat_restore_die.
29676 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
29678 Provide an alternative to exiting immediately upon save_cwd or
29679 restore_cwd failure. Now, an application can arrange e.g.,
29680 to perform a longjump in that case.
29681 * lib/openat.c: Include dirname.h.
29682 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
29683 (rpl_openat, fdopendir, fstatat): Call openat_save_die
29684 and openat_restore_die rather than calling error directly.
29685 Don't include "error.h" or "exitfail.h"; they're no longer needed.
29687 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
29688 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
29691 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
29692 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
29693 int utc, int nanoseconds);
29695 date should not have to allocate a megabyte of virtual memory to
29696 handle a format argument like +%1048575T. When implemented with
29697 strftime, it must allocate such a buffer, use strftime to fill it
29698 in, print it, then free it.
29699 With fprintftime, it simply prints everything and exits.
29700 With no need for memory allocation, that's one fewer way to fail.
29701 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
29702 optional field width, not before, so we accept %9:z, not %:9z.
29703 (my_strftime): Be sure to use L_('x') for literals.
29705 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
29706 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
29707 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
29708 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
29709 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
29710 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
29711 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
29712 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
29713 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
29714 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
29715 * lib/xgethostname.c, lib/xreadlink.c:
29716 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
29718 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
29719 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
29720 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
29721 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
29722 and don't include <sys/file.h>).
29724 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
29726 Sync from coreutils.
29728 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
29729 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
29730 [!LDAV_DONE]: Avoid unused variable warning.
29732 2005-09-21 Bruno Haible <bruno@clisp.org>
29734 * lib/unicodeio.h (unicode_to_mb): New declaration.
29736 2005-09-20 Derek Price <derek@ximbiot.com>
29738 * lib/getaddrinfo.c: Don't include <netdb.h> included from
29741 2005-09-20 Bruno Haible <bruno@clisp.org>
29743 * gnulib-tool: Remove trailing slashes from the values specified for
29744 --source-base, --m4-base, --tests-base, --aux-dir.
29745 Suggested by Simon Josefsson <jas@extundo.com>.
29747 2005-09-20 Bruno Haible <bruno@clisp.org>
29749 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
29750 func_modules_to_filelist, func_import, func_create_testdir): Make all
29751 sorting results locale-independent, so that gnulib-cache.m4 doesn't
29752 change when gnulib-tool is invoked in a different locale.
29754 2005-09-19 Simon Josefsson <jas@extundo.com>
29756 * m4/socklen.m4: Fix typo.
29758 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29760 Use a consistent style for including <config.h>.
29761 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
29762 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
29763 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
29764 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
29765 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
29766 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
29767 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
29768 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
29769 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
29770 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
29771 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
29772 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
29773 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
29774 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
29775 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
29776 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
29777 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
29778 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
29779 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
29780 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
29781 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
29782 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
29783 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
29784 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
29785 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
29786 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
29787 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
29788 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
29789 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
29790 lib/xstrtoumax.c, lib/yesno.c:
29791 Standardize inclusion of config.h.
29792 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
29793 lib/inttostr.h: Removed inclusion of config.h from header files.
29794 * lib/inttostr.c: Adjusted in-tree users.
29795 * lib/timespec.h: Remove superfluous warning to include config.h.
29796 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
29797 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
29798 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
29799 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
29800 config.h with HAVE_CONFIG_H.
29802 2005-09-19 Jim Meyering <jim@meyering.net>
29804 * modules/pathmax (License): Change to LGPL.
29806 2005-09-19 Derek Price <derek@ximbiot.com>
29808 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
29810 2005-09-19 Bruno Haible <bruno@clisp.org>
29812 * gnulib-tool (import): Provide default for --tests-base.
29814 2005-09-19 Bruno Haible <bruno@clisp.org>
29816 * doc/quote.texi: New file, extracted from gnulib.texi.
29817 * doc/ctime.texi: New file, extracted from gnulib.texi.
29818 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
29819 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
29820 * doc/gnulib.texi: Include them.
29822 2005-09-18 Bruno Haible <bruno@clisp.org>
29825 * gnulib-tool (func_readlink): New function.
29826 (func_ln_if_changed): Use it.
29828 2005-09-18 Bruno Haible <bruno@clisp.org>
29830 * gnulib-tool: Support --with-tests also with --import.
29831 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
29832 (func_import): Use variables $testsbase and $inctests. Emit a
29833 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
29834 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
29835 SUBDIRS += $testsdir.
29836 (func_create_testdir): Update.
29838 2005-09-18 Bruno Haible <bruno@clisp.org>
29840 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
29841 instead of $dry_run.
29842 (func_cp_if_changed, func_mv_if_changed): Remove functions.
29843 (func_ln_if_changed): Don't handle dry-run here.
29844 (func_import): In dry-run mode, detect more precisely which actions
29845 would be performed, and don't use "...ing" verbs.
29847 2005-09-18 Bruno Haible <bruno@clisp.org>
29849 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
29850 (func_import): Use join on two temporary files instead of three nested
29851 loops, in order to determine which files are new or old.
29853 2005-09-18 Bruno Haible <bruno@clisp.org>
29855 * gnulib-tool (func_import): Comment out code that spits out the
29856 new files with --dry-run.
29858 2005-09-18 Bruno Haible <bruno@clisp.org>
29860 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
29862 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
29864 * lib/stat-time.h: New file.
29865 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
29866 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
29867 in a different way.
29868 (timespec_cmp): New function.
29869 * lib/utimecmp.c: Include stat-time.h.
29870 (SYSCALL_RESOLUTION): Depend on whether various struct stat
29871 members exist, not on the obsolescent ST_MTIM_NSEC.
29872 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
29874 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
29876 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
29878 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
29880 * MODULES.html.sh (File system functions): Add stat-time.
29881 * modules/stat-time: New file.
29882 * modules/timespec (Files): Remove m4/st_mtim.m4; this
29883 is now done in a different way, by the stat-time module.
29884 * modules/utimecmp (Depends-on): Add stat-time.
29886 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
29888 * m4/st_mtim.m4: Remove. Superseded by...
29889 * m4/stat-time.m4: New file.
29890 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
29891 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
29893 2005-09-15 Derek Price <derek@ximbiot.com>
29895 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
29897 2005-09-15 Derek Price <derek@ximbiot.com>
29899 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
29900 * lib/regex_internal.c: Ditto, using this...
29901 (__GNUC_PREREQ): ...new macro.
29902 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
29904 (__GNUC_PREREQ): ...this new macro.
29906 * lib/strstr.h: Include string.h. Define strstr as a macro here.
29908 2005-09-15 Derek Price <derek@ximbiot.com>
29909 Paul Eggert <eggert@cs.ucla.edu>
29911 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
29912 changes, consolidating in...
29913 * lib/regex_internal.h: ...this file.
29915 2005-09-13 Jim Meyering <jim@meyering.net>
29917 * lib/canon-host.c: Filter through gnu indent and reword comments
29919 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
29921 2005-09-13 Derek Price <derek@ximbiot.com>
29923 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
29925 Reported by Jim Meyering <jim@meyering.net>.
29927 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
29929 * lib/base64.c: Typo.
29930 (base64_encode): Put b64str in initialized data section.
29932 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
29934 Merge glibc and coreutils changes into gnulib, plus a few
29936 * lib/md5.c: Use #error rather than a string.
29937 (CYCLIC): New macro, from glibc source. Use it instead of rol.
29938 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
29939 (__attribute__): Define to empty for non recent-GCC.
29940 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
29941 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
29942 Renamed from their non-__ counterparts, with new macros replacing
29943 them if not _LIBC. Add __THROW attribute.
29945 (struct md5_ctx): Align buffer if using GCC.
29946 * lib/sha1.h (struct sha1_ctx): Likewise.
29947 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
29948 The old name was backwards.
29949 (NOTSWAP): Remove; not used.
29950 (rol): New macro, moved here from md5.h.
29951 (sha1_process_block): Remove a FIXME that doesn't make sense.
29953 2005-09-12 Derek Price <derek@ximbiot.com>
29955 Return usable errors from canon-host.
29956 * lib/canon-host.h: New file.
29957 * lib/canon-host.c (canon_host): Wrap...
29958 (canon_host_r): ...this new function, which now relies exclusively on
29960 (ch_strerror): New function.
29961 (last_cherror): New global.
29962 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
29964 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
29966 (freeaddrinfo): Free ai->ai_canonname when set.
29968 2005-09-12 Derek Price <derek@ximbiot.com>
29970 Make canon-host require getaddrinfo.
29971 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
29972 AC_LIBSOURCE canon-host.h. Call...
29973 (gl_PREREQ_CANON_HOST): ...this new function, which requires
29975 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
29977 2005-09-12 Derek Price <derek@ximbiot.com>
29979 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
29981 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
29983 2005-09-12 Derek Price <derek@ximbiot.com>
29985 * lib/gai_strerror.c: Include config.h when available. Include
29986 getaddrinfo.h before other headers to test interface.
29987 Reported by Larry Jones <lawrence.jones@ugs.com>.
29989 2005-09-12 Derek Price <derek@ximbiot.com>
29990 Paul Eggert <eggert@cs.ucla.edu>
29992 * modules/glob (Files): Add glob-libc.h.
29994 2005-09-12 Derek Price <derek@ximbiot.com>
29995 Paul Eggert <eggert@cs.ucla.edu>
29997 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
29998 glob_.h, glob-libc.h.
29999 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
30001 2005-09-12 Derek Price <derek@ximbiot.com>
30002 Paul Eggert <eggert@cs.ucla.edu>
30004 * lib/glob-libc.h: Renamed from glob_.h. The new version is
30005 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
30006 protecting things that should be done only in gnulib contexts.
30007 * lib/glob_.h: New file, containing only the glob things needed for
30009 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
30010 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
30011 (glob, globfree, glob_pattern_p): Now defined simply in terms of
30012 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
30013 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
30014 and to respect the namespace rules better.
30016 2005-09-08 Simon Josefsson <jas@extundo.com>
30018 * modules/socklen: New file.
30020 2005-09-08 Simon Josefsson <jas@extundo.com>
30022 * m4/socklen.m4: New file.
30024 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
30026 * modules/utimens (Files): Add m4/utimbuf.m4, since
30027 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
30028 Reported by Sergey Poznyakoff.
30030 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
30032 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
30033 definitions, since that's the preferred style in glibc.
30034 Fix a minor spacing issue, and update copyright notice to match
30037 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
30039 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
30041 2005-09-06 Simon Josefsson <jas@extundo.com>
30043 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
30044 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
30046 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
30048 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
30051 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
30053 * config/srclist.txt: Add glibc bug 1302.
30055 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
30057 Change bitset word type from unsigned int to unsigned long int,
30058 as this has better performance on typical 64-bit hosts.
30059 Port bitset code to hosts with unusual word sizes.
30060 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
30061 (build_collating_symbol):
30062 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
30063 argument is a bitset. This is merely a style issue, but it makes
30064 it clearer that an entire array is expected.
30065 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
30066 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
30067 Port to the case where bitset_word is not the same as unsigned int.
30068 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
30069 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
30071 * lib/regexec.c (check_dst_limits_calc_pos_1,
30072 check_subexp_matching_top):
30073 (build_trtable, group_nodes_into_DFAstates):
30075 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
30076 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
30077 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
30078 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
30079 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
30080 * lib/regcomp.c (optimize_subexps, lower_subexp):
30081 Work even if bitset_word has holes in its bitwise representation.
30082 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
30083 * lib/regexec.c (check_dst_limits_calc_pos_1,
30084 check_subexp_matching_top):
30086 * lib/regex_internal.c (re_string_reconstruct):
30087 Don't assume UCHAR_MAX == 255.
30088 * lib/regex_internal.h (bitset_set_all): Likewise.
30089 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
30091 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
30092 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
30094 (BITSET_WORD_MAX): New macro.
30095 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
30096 (bitset_set_all, bitset_copy): Now inline functions, not macros.
30097 (bitset_empty, bitset_copy):
30098 Prefer sizeof (bitset) to multiplying it out ourselves.
30099 (bitset_not_merge): Remove; unused.
30100 (bitset_contain): Return bool, not unsigned int with one bit on.
30101 All callers changed.
30102 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
30103 alignment than re_node_set; do this by defining a new internal
30104 type struct dests_alloc and using it to allocate memory.
30106 2005-09-05 Bruno Haible <bruno@clisp.org>
30108 * gnulib-tool (func_import): Fix comparison in handling of symbolic
30111 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
30113 * modules/size_max (Makefile.am): Add size_max.h
30115 2005-09-04 Derek Price <derek@ximbiot.com>
30117 * gnulib-tool (func_import): Fix reversed $symbolic logic.
30119 2005-09-03 Simon Josefsson <jas@extundo.com>
30121 * gnulib-tool: Fix typo.
30123 2005-09-03 Simon Josefsson <jas@extundo.com>
30125 * config/srclist.txt: Add glibc bug 1293.
30127 2005-09-03 Derek Price <derek@ximbiot.com>
30129 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
30130 From Larry Jones <lawrence.jones@ugs.com>.
30132 2005-09-02 Simon Josefsson <jas@extundo.com>
30134 * modules/socklen: New file.
30136 2005-09-02 Simon Josefsson <jas@extundo.com>
30138 * modules/havelib: New module.
30140 * modules/gettext, modules/iconv, modules/lock, modules/readline:
30143 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
30145 Check for arithmetic overflow when calculating sizes, to prevent
30146 some buffer-overflow issues. These patches are conservative, in the
30147 sense that when I couldn't determine whether an overflow was possible,
30148 I inserted a run-time check.
30149 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
30151 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
30152 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
30153 (re_xnrealloc, re_x2nrealloc): New inline functions.
30154 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
30155 parse_bracket_exp):
30156 (build_equiv_class, build_charclass): Check for arithmetic overflow
30157 in size expression calculations.
30158 * lib/regex_internal.c (re_string_realloc_buffers):
30159 (build_wcs_upper_buffer, re_node_set_add_intersect):
30160 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
30161 (re_dfa_add_node, register_state): Likewise.
30162 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
30163 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
30164 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
30165 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
30167 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
30169 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
30170 m4/ulonglong.m4. Problem reported by Martin Lambers.
30172 2005-09-02 Bruno Haible <bruno@clisp.org>
30174 Support for lib vs. lib64 distinction on biarch platforms.
30175 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
30176 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
30177 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
30179 2005-09-02 Bruno Haible <bruno@clisp.org>
30181 * gnulib-tool (import): In the other first-use case, provide defaults
30184 2005-09-02 Bruno Haible <bruno@clisp.org>
30186 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
30187 patches not yet found in the latest gettext release.
30189 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
30191 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
30192 to avoid a collision with bits/local_lim.h in glibc.
30193 All uses changed. Problem reported by Dmitry V. Levin in
30194 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
30196 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
30197 bugs in int versus size_t comparisons.
30198 (re_string_context_at): Fix bug where the code assumed that
30201 Use bool where appropriate.
30202 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
30203 All callers changed.
30204 (calc_eclosure_iter): Likewise, for ROOT arg.
30205 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
30206 (build_charclass_op): Likewise, for NON_MATCH arg.
30207 * lib/regex_internal.c (re_string_allocate, re_string_construct):
30208 (re_string_construct_common): Likewise, for ICASE arg.
30209 * lib/regexec.c (re_search_2_stub, re_search_stub):
30210 Likewise, for RET_LEN arg.
30211 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
30212 (set_regs): Likewise, for FL_BACKTRACK arg.
30213 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
30214 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
30215 (calc_eclosure_iter, parse_bracket_exp):
30216 Use bool for internal variables that are booleans.
30217 * lib/regexec.c (re_search_internal, check_matching,
30218 proceed_next_node):
30219 (set_regs, build_sifted_states, sift_states_bkref):
30220 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
30221 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
30222 (find_collation_sequence_value):
30224 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
30225 (re_node_set_compare):
30226 Return bool, not int. All callers changed.
30227 * lib/regexec.c (check_halt_node_context, check_dst_limits):
30228 (build_trtable, check_node_accept): Likewise.
30229 * lib/regex_internal.h: Include stdbool.h.
30231 Fix bugs uncovered when converting to bool.
30232 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
30233 failure instead of charging ahead blindly.
30234 * lib/regex_internal.c (register_state): Likewise.
30235 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
30236 for freeing internal storage.
30237 (group_nodes_into_DFA_states): Use unsigned int, not int, for
30238 bitset pieces used as boolean, to avoid undefined behavior
30239 on hosts that do int overflow checking.
30241 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
30243 * config/srclist.txt: Add glibc bugs 1285-1287.
30245 2005-09-01 Jim Meyering <jim@meyering.net>
30247 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
30248 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
30249 Require gl_STAT_MACROS, too.
30251 2005-09-01 Bruno Haible <bruno@clisp.org>
30253 * gnulib-tool (import): In the first-use case, provide defaults.
30255 2005-09-01 Bruno Haible <bruno@clisp.org>
30257 * gnulib-tool (func_import): Remove the .tmp files.
30259 2005-09-01 Bruno Haible <bruno@clisp.org>
30261 * gnulib-tool (func_import): Fix handling of symbolic links.
30263 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
30265 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
30266 old glibc regex code mishandles strings longer than 2**31 bytes.
30267 This patch fixes this when the regex code is used in gnulib
30268 (i.e., outside glibc).
30270 This patch should not affect the use of the regex code inside
30271 glibc. No doubt this problem also needs to be handled for glibc
30272 as well, but the result will be an incompatible change to the
30273 glibc ABI, and the old ABI will have to be supported too. That
30274 can be the the subject for another patch.
30276 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
30277 governing whether the rest of this patch is active. By default,
30278 the macro is disabled and the patch has no effect.
30279 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
30280 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
30281 (struct re_pattern_buffer, re_search, re_search_2, re_match):
30282 (re_match_2, re_set_registers): Use the new types.
30283 * lib/regex_internal.h (Idx, re_hashval_t): New types.
30284 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
30286 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
30287 (re_string_context_at, bin_tree_t, re_dfastate_t):
30288 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
30289 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
30290 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
30291 (re_string_char_size_at, re_string_wchar_at):
30292 (re_string_elem_size_at):
30293 Use the new types and macros to port to 64-bit hosts.
30294 Use unsigned types for internal values, so that the code
30295 mostly works even for arrays larger than SSIZE_MAX.
30296 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
30297 (search_duplicated_node, calc_eclosure_iter, fetch_number):
30298 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
30299 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
30300 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
30301 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
30302 (calc_inveclosure, parse_dup_op, build_range_exp):
30303 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
30304 (fetch_number, create_token_tree, mark_opt_subexp):
30306 * lib/regex_internal.c (re_string_construct_common,
30307 create_ci_newstate):
30308 (create_cd_newstate, re_string_allocate, re_string_construct):
30309 (re_string_realloc_buffers, build_wcs_upper_buffer):
30310 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
30311 (re_string_reconstruct, re_string_peek_byte_case):
30312 (re_string_fetch_byte_case, re_string_context_at):
30313 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
30314 (re_node_set_init_copy, re_node_set_add_intersect):
30315 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
30316 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
30317 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
30318 (re_acquire_state, re_acquire_state_context, register_state):
30320 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
30321 search_cur_bkref_entry):
30322 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
30323 (re_search_internal, re_search_2_stub, re_search_stub)
30324 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
30325 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
30326 (update_cur_sifted_state, check_dst_limits):
30327 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
30328 (check_subexp_limits, sift_states_bkref, merge_state_array):
30329 (check_subexp_matching_top, get_subexp, get_subexp_sub):
30330 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
30331 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
30332 (expand_bkref_cache, check_node_accept_bytes):
30333 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
30334 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
30335 (acquire_init_state_context, check_halt_node_context):
30336 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
30337 (sift_states_backward, clean_state_log_if_needed):
30338 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
30339 (find_recover_state, transit_state_sb, transit_state_mb):
30340 (transit_state_bkref, build_trtable, match_ctx_clean):
30342 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
30343 to work around an assumption that REG_MISSING is negative.
30345 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
30346 (seek_collating_symbol_entry) [defined _LIBC]:
30347 (lookup_collation_sequence_value) [defined _LIBC]:
30348 (build_range_exp, build_collating_symbol) [defined _LIBC]:
30349 Use prototypes rather than old-style function definitions.
30350 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
30351 (transit_state_sb) [0]:
30352 (find_collation_sequence_value) [defined _LIBC]: Likewise.
30354 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
30357 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
30358 (optimize_subexps, lower_subexp):
30359 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
30360 since the signed shift might overflow. Use 1u<<31 instead.
30361 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
30363 * lib/regexec.c (check_dst_limits_calc_pos_1,
30364 check_subexp_matching_top): Likewise.
30366 * lib/regcomp.c (optimize_subexps, lower_subexp):
30367 Use CHAR_BIT rather than 8, for clarity.
30368 * lib/regexec.c (check_dst_limits_calc_pos_1):
30369 (check_subexp_matching_top): Likewise.
30370 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
30371 have to worry about portability issues when shifting it left.
30372 Remove no-longer-needed test for table_size > 0.
30373 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
30374 in a word, as the resulting behavior is undefined.
30375 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
30376 in one case, a <= should have been an <, and in another case the
30377 whole test was missing.
30378 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
30379 the standard name CHAR_BIT.
30380 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
30381 this is not true on one's complement and signed-magnitude hosts.
30383 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
30385 (struct re_dfa_t): Remove unused member states_alloc.
30386 * lib/regcomp.c (init_dfa): Don't initialize unused members.
30388 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
30390 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
30391 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
30392 and large-file glibc and in 32-bit large-file Solaris.
30394 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
30396 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
30397 lengths fit in regoff_t; this isn't true if regoff_t is the same
30399 * lib/regex.c (re_search_internal): 5th arg is LAST_START
30400 (= START + RANGE) instead of RANGE. This avoids overflow
30401 problems when regoff_t is the same width as size_t.
30402 All callers changed.
30403 (re_search_2_stub): Check for overflow when adding the
30404 sizes of the two strings.
30405 (re_search_stub): Check for overflow when adding START
30406 to RANGE; if it occurs, substitute the extreme value.
30408 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
30410 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
30412 2005-08-31 Jim Meyering <jim@meyering.net>
30414 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
30415 a pointer-to-const.
30416 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
30417 (register_state): Likewise.
30418 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
30419 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
30420 (group_nodes_into_DFAstates): Likewise.
30422 2005-08-31 Jim Meyering <jim@meyering.net>
30424 * check-module: Add a FIXME comment.
30426 2005-08-31 Eric Blake <ebb9@byu.net>
30428 * modules/unistd-safer (Files): Add unistd--.h.
30429 * modules/stdio-safer (Files): Add stdio--.h.
30431 2005-08-31 Derek Price <derek@ximbiot.com>
30433 * lib/getdelim.c (getdelim): Return EOF on EOF.
30434 Reported by Larry Jones <lawrence.jones@ugs.com>.
30436 2005-08-31 Bruno Haible <bruno@clisp.org>
30438 Avoid unnecessary diffs in the generated lib/Makefile.am.
30439 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
30440 the generated files.
30441 (func_import): Don't set cmd.
30443 2005-08-31 Bruno Haible <bruno@clisp.org>
30445 * lib/strstr.c: Include <stddef.h>, for NULL.
30446 * lib/strcasestr.c: Likewise.
30447 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30449 2005-08-31 Bruno Haible <bruno@clisp.org>
30451 * gnulib-tool: New option --macro-prefix.
30452 (func_import): Use macro_prefix.
30453 (import): Handle option --macro-prefix.
30455 2005-08-31 Bruno Haible <bruno@clisp.org>
30457 * gnulib-tool (import): Rename most ac_* variables to cached_*.
30458 Also use new variables cached_lgpl, cached_libtool.
30460 2005-08-31 Bruno Haible <bruno@clisp.org>
30462 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
30463 always instantiating them.
30465 2005-08-31 Bruno Haible <bruno@clisp.org>
30467 * gnulib-tool (func_import): Read the previous cached settings
30468 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
30469 earlier added by gnulib but are now dropped. Warn when a gnulib file
30470 overwrites a non-gnulib file.
30472 2005-08-31 Bruno Haible <bruno@clisp.org>
30474 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
30475 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
30476 projects that don't keep autogenerated files in CVS. Put into
30477 actioncmd only the specified modules, not the transitive closure.
30479 2005-08-31 Bruno Haible <bruno@clisp.org>
30481 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
30482 Create directories that shall be filled.
30483 (import): Don't look for gl_* macros in configure.ac. Recurse across
30484 all directories containing a gnulib-cache.m4 files, if meaningful.
30486 2005-08-31 Bruno Haible <bruno@clisp.org>
30488 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
30489 (import): Set seen_libtool when we see gl_LIBTOOL.
30491 2005-08-31 Bruno Haible <bruno@clisp.org>
30493 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
30494 declaration macro definitions from generated gnulib.m4.
30496 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
30498 * lib/iconvme.h: Add prototype for iconv_alloc.
30500 2005-08-29 Simon Josefsson <jas@extundo.com>
30502 * lib/iconvme.c: Fix errno.
30504 2005-08-29 Bruno Haible <bruno@clisp.org>
30506 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
30507 that it works when the directory contains spaces.
30509 2005-08-29 Bruno Haible <bruno@clisp.org>
30511 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
30513 2005-08-29 Bruno Haible <bruno@clisp.org>
30515 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
30518 2005-08-29 Bruno Haible <bruno@clisp.org>
30519 and Stepan Kasal <kasal@ucw.cz>
30521 * check-module: If more parameters are given, check each of them
30522 separately; add more exceptions, as noted by Jim Meyering.
30523 (check_module): New procedure.
30524 (%exempt_header): Now contains all exceptions.
30526 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
30528 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
30530 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
30532 * lib/iconvme.c: Split iconv_string into iconv_alloc.
30534 2005-08-28 Bruno Haible <bruno@clisp.org>
30536 * m4/gnulib-tool.m4: New file.
30538 2005-08-27 Jim Meyering <jim@meyering.net>
30540 * modules/unistd-safer (Files): Add pipe-safer.c.
30541 * modules/fcntl-safer (Files): Add creat-safer.c.
30543 2005-08-27 Jim Meyering <jim@meyering.net>
30545 * m4/stdlib-safer.m4: New file. From coreutils.
30546 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
30547 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
30548 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
30549 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
30550 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
30552 2005-08-27 Jim Meyering <jim@meyering.net>
30554 * lib/fopen-safer.c: Merge minor changes from coreutils.
30555 * lib/dup-safer.c: Likewise.
30556 * lib/fd-safer.c: Likewise.
30558 Merge from coreutils.
30559 * lib/stdio--.h: New file.
30560 * lib/stdlib--.h: New file.
30561 * lib/mkstemp-safer.c: New file.
30563 GNU tar needs these.
30564 * lib/pipe-safer.c: New file.
30565 * lib/creat-safer.c: New file.
30566 * lib/fcntl--.h (creat): Define to creat_safer.
30567 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
30568 * lib/unistd--.h (pipe): Define to pipe_safer.
30569 * lib/unistd-safer.h: Declare pipe_safer.
30571 2005-08-26 Simon Josefsson <jas@extundo.com>
30573 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
30574 Haible <bruno@clisp.org>.
30576 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
30578 * lib/regex_internal.h: Remove all references to
30579 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
30581 (bitset_not, bitset_merge, bitset_not_merge):
30582 (bitset_mask, re_string_allocate, re_string_construct):
30583 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
30584 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
30585 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
30586 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
30587 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
30588 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
30589 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
30590 (re_acquire_state_context):
30591 Remove unnecessary forward decls.
30592 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
30593 Put __attribute at function definition,
30594 now that the function decl has been removed.
30595 * lib/regex_internal.c (re_string_peek_byte_case):
30596 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
30599 2005-08-25 Stepan Kasal <kasal@ucw.cz>
30601 * m4/regex.m4: Add AC_PREREQ(2.50).
30602 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
30604 2005-08-25 Simon Josefsson <jas@extundo.com>
30606 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
30609 2005-08-25 Simon Josefsson <jas@extundo.com>
30611 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
30612 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
30613 GLIBC specific code.
30615 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
30617 Make regex safe for g++. This fixes one real bug (an "err"
30618 that should have been "*err"). g++ problem reported by
30620 * lib/regex_internal.h (re_calloc): New macro, consistent with
30621 re_malloc etc. All callers of calloc changed to use re_calloc.
30622 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
30623 not int. All callers changed.
30624 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
30625 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
30626 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
30627 (find_recover_state): Change "err" to "*err"; this fixes what
30628 appears to be a real bug.
30629 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
30632 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
30634 * modules/regex (Depends-on): Add malloc, since the code
30635 assumes that !malloc(0) means failure.
30637 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
30639 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
30641 alloca modernization/simplification for regex.
30642 * lib/regex.c: Remove portability cruft for alloca. This no longer
30643 needs to be at the start of the file, and can be moved into
30644 regex_internal.h and simplified.
30645 * lib/regex_internal.h: Include <alloca.h>.
30646 (__libc_use_alloca) [!defined _LIBC]: New macro.
30647 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
30648 now works outside glibc.
30650 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
30652 * config/srclist.txt: Add glibc bugs 1241, 1245.
30654 2005-08-25 Jim Meyering <jim@meyering.net>
30656 * lib/open-safer.c: Include <config.h>.
30657 Otherwise, we'd lose LARGEFILE support in any file using
30660 2005-08-25 Bruno Haible <bruno@clisp.org>
30662 * m4/minmax.m4: Require autoconf 2.52.
30663 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
30664 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
30665 alternatives of translit over the alphabet.
30666 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
30668 2005-08-24 Simon Josefsson <jas@extundo.com>
30670 * tests/test-getpass.c: New file.
30672 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
30674 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
30675 for GNU regex features.
30677 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
30679 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
30680 * lib/regex.h (regerror): Likewise.
30682 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
30683 requires this. (The code never needed it.)
30685 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
30686 All uses of recently-renamed identifiers changed to use the new,
30687 POSIX-compliant names. The code will build and run just fine
30688 without these changes, but it's better to eat our own dog food
30689 and use the standard-conforming names.
30691 * lib/regex.h: Fix a multitude of POSIX name space violations.
30692 These changes have an effect only for programs that define
30693 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
30694 do not change anything for programs compiled in the normal way.
30695 Also, there is no effect on the ABI.
30697 (_REGEX_SOURCE): New macro.
30698 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
30699 defined and _GNU_SOURCE is not; this fixes a name space violation.
30701 Rename the following macros to obey POSIX requirements.
30702 The old names are still visible as macros if _REGEX_SOURCE is defined.
30703 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
30704 RE_BACKSLASH_ESCAPE_IN_LISTS.
30705 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
30706 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
30707 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
30708 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
30709 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
30710 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
30711 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
30712 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
30713 (REG_INTERVALS): renamed from RE_INTERVALS.
30714 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
30715 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
30716 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
30717 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
30718 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
30719 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
30720 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
30721 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
30722 RE_UNMATCHED_RIGHT_PAREN_ORD.
30723 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
30724 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
30725 (REG_DEBUG): renamed from RE_DEBUG.
30726 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
30727 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
30728 unusual, since we can't clash with the POSIX REG_ICASE.
30729 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
30730 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
30731 (REG_NO_SUB): renamed from RE_NO_SUB.
30732 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
30733 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
30734 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
30735 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
30736 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
30737 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
30738 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
30739 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
30740 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
30741 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
30742 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
30743 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
30744 RE_SYNTAX_POSIX_MINIMAL_BASIC.
30745 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
30746 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
30747 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
30748 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
30749 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
30750 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
30751 (REG_FIXED): Renamed from REGS_FIXED.
30752 (REG_NREGS): Renamed from RE_NREGS.
30754 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
30755 of other REG_* macros, since POSIX says the user is allowed to
30756 #undef these macros selectively.
30758 (reg_errcode_t): Update comment stating what other tables need
30761 Rename the following enum values to obey POSIX requirements.
30762 The old names are still visible as macros.
30763 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
30764 is not defined, since GNU is supposed to be a superset of POSIX as
30765 much as possible, and since we want reg_errcode_t to be a signed
30766 type for implementation consistency.
30767 (_REG_NOERROR): Renamed from REG_NOERROR.
30768 (_REG_NOMATCH): Renamed from REG_NOMATCH.
30769 (_REG_BADPAT): Renamed from REG_BADPAT.
30770 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
30771 (_REG_ECTYPE): Renamed from REG_ECTYPE.
30772 (_REG_EESCAPE): Renamed from REG_EESCAPE.
30773 (_REG_ESUBREG): Renamed from REG_ESUBREG.
30774 (_REG_EBRACK): Renamed from REG_EBRACK.
30775 (_REG_EPAREN): Renamed from REG_EPAREN.
30776 (_REG_EBRACE): Renamed from REG_EBRACE.
30777 (_REG_BADBR): Renamed from REG_BADBR.
30778 (_REG_ERANGE): Renamed from REG_ERANGE.
30779 (_REG_ESPACE): Renamed from REG_ESPACE.
30780 (_REG_BADRPT): Renamed from REG_BADRPT.
30781 (_REG_EEND): Renamed from REG_EEND.
30782 (_REG_ESIZE): Renamed from REG_ESIZE.
30783 (_REG_ERPAREN): Renamed from REG_ERPAREN.
30784 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
30785 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
30786 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
30787 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
30789 (_REG_RE_NAME, _REG_RM_NAME): New macros.
30790 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
30791 changed. But support the old name if the new one is not defined
30792 and if _REGEX_SOURCE.
30794 Change the following member names in struct re_pattern_buffer.
30795 The old names are still supported if !_REGEX_SOURCE.
30796 The new names are always supported, regardless of _REGEX_SOURCE.
30797 (re_buffer): Renamed from buffer.
30798 (re_allocated): Renamed from allocated.
30799 (re_used): Renamed from used.
30800 (re_syntax): Renamed from syntax.
30801 (re_fastmap): Renamed from fastmap.
30802 (re_translate): Renamed from translate.
30803 (re_can_be_null): Renamed from can_be_null.
30804 (re_regs_allocated): Renamed from regs_allocated.
30805 (re_fastmap_accurate): Renamed from fastmap_accurate.
30806 (re_no_sub): Renamed from no_sub.
30807 (re_not_bol): Renamed from not_bol.
30808 (re_not_eol): Renamed from not_eol.
30809 (re_newline_anchor): Renamed from newline_anchor.
30811 Change the following member names in struct re_registers.
30812 The old names are still supported if !_REGEX_SOURCE.
30813 The new names are always supported, regardless of _REGEX_SOURCE.
30814 (rm_num_regs): Renamed from num_regs.
30815 (rm_start): Renamed from start.
30816 (rm_end): Renamed from end.
30818 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
30819 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
30820 Prepend __ to parameter names.
30822 Undo yesterday's changes.
30824 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
30826 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
30827 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
30830 2005-08-24 Jim Meyering <jim@meyering.net>
30832 Sync from coreutils.
30833 * m4/fcntl-safer.m4: New file.
30835 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
30836 and object files for this module.
30838 2005-08-24 Jim Meyering <jim@meyering.net>
30840 Sync from coreutils.
30841 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
30843 2005-08-24 Jim Meyering <jim@meyering.net>
30845 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
30846 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
30848 2005-08-24 Jim Meyering <jim@meyering.net>
30850 * modules/fcntl-safer: New module.
30851 * modules/fts (Depends-on): Add fcntl-safer.
30852 * MODULES.html.sh (File descriptor based Input/Output):
30855 2005-08-24 Bruno Haible <bruno@clisp.org>
30857 Support for unit test modules.
30858 * modules/README: Mention tests modules.
30859 * modules/TEMPLATE-TESTS: New file.
30860 * gnulib-tool: New options --extract-tests-module, --with-tests and
30861 --tests-base (unused for the moment).
30862 (testsbase, inctests): New variables.
30863 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
30864 (func_verify_module): Exclude TEMPLATE-TESTS.
30865 (func_verify_nontests_module, func_verify_tests_module): New functions.
30866 (func_get_dependencies): Add implicit dependency for tests modules.
30867 (func_get_tests_module): New function.
30868 (func_modules_transitive_closure): When --with-tests was specified,
30869 include the unit tests as well, unless explicitly avoided.
30870 (func_emit_lib_Makefile_am): Ignore the tests modules here.
30871 (func_emit_tests_Makefile_am): New function.
30872 (func_create_testdir): When --with-tests was specified, emit a
30874 * MODULES.html.sh (Future developments): Update.
30876 2005-08-24 Bruno Haible <bruno@clisp.org>
30878 * modules/tls-tests: New file.
30879 * tests/test-tls.c: New file, from GNU gettext.
30881 2005-08-24 Bruno Haible <bruno@clisp.org>
30883 * modules/lock-tests: New file.
30884 * tests/test-lock.c: New file, from GNU gettext.
30886 2005-08-24 Bruno Haible <bruno@clisp.org>
30888 * lib/lock.h: Add multiple inclusion guard.
30889 * lib/tls.h: Add multiple inclusion guard.
30891 2005-08-24 Bruno Haible <bruno@clisp.org>
30893 * gnulib-tool: Add support for the --aux-dir option to
30894 --create-testdir, --create-megatestdir, --test, --megatest.
30895 (func_create_testdir, func_create_megatestdir): Optionally emit a
30896 AC_CONFIG_AUX_DIR directive.
30897 (create-testdir, create-megatestdir, test, megatest): Provide a
30898 default value for $auxdir.
30900 2005-08-24 Bruno Haible <bruno@clisp.org>
30902 * gnulib-tool (import): Use compound statement instead of subshell
30905 2005-08-24 Bruno Haible <bruno@clisp.org>
30907 * gnulib-tool (import): Change --aux-dir default to "build-aux".
30909 2005-08-24 Bruno Haible <bruno@clisp.org>
30911 * gnulib-tool (func_version): Update.
30913 2005-08-24 Bruno Haible <bruno@clisp.org>
30915 * gnulib-tool (func_import, func_create_testdir,
30916 func_create_megatestdir): Quote all autoconf macro arguments.
30918 2005-08-24 Bruno Haible <bruno@clisp.org>
30920 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
30921 option --force, because --force causes the aclocal.m4 of each
30922 subdirectory to be newer than the corresponding config.h.in.
30924 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
30926 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
30927 All contents moved to gl_REGEX.
30928 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
30929 assume that it does.
30931 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
30933 * lib/regex.h (REG_NOSYS)
30934 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
30935 Define, since POSIX requires it as of 2001.
30937 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
30938 New private symbol, used to keep the enum signed in all cases.
30939 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
30941 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
30943 * lib/regex_internal.c (re_string_skip_chars, register_state):
30945 Remove forward decls; no longer needed now that we use prototypes.
30946 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
30947 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
30948 (clean_state_log_if_needed): Likewise.
30950 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
30952 * config/srclist.txt: Add glibc bugs 1231-1233.
30954 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
30956 Fix problems reported by Sam Steingold in
30957 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
30958 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
30959 assumed that reg_errcode_t is a signed type, which is not
30960 necessarily true if _XOPEN_SOURCE is not defined.
30961 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
30962 since some compilers warn about it otherwise.
30964 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
30966 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
30967 (init_word_char, create_initial_state, duplicate_node_closure):
30968 (fetch_token, peek_token_bracket, build_range_exp):
30969 (build_collating_symbol): Remove forward decls; no longer needed
30970 now that we use prototypes.
30973 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
30974 (re_compile_fastmap_iter, regcomp, regerror, regfree):
30975 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
30976 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
30977 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
30978 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
30979 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
30980 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
30981 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
30982 (build_range_exp, build_collating_symbol, parse_bracket_exp):
30983 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
30984 (build_charclass, build_charclass_op, fetch_number, create_tree):
30985 (create_token_tree, mark_opt_subexp, duplicate_tree):
30986 Use prototypes rather than old-style definitions.
30988 * lib/regex_internal.c:
30989 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
30990 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
30991 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
30992 (re_string_reconstruct, re_string_peek_byte_case):
30993 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
30994 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
30995 (re_node_set_init_copy, re_node_set_add_intersect):
30996 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
30997 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
30998 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
30999 (re_acquire_state, re_acquire_state_context, register_state):
31000 (create_ci_newstate, create_cd_newstate, free_state):
31002 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
31004 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
31005 (re_search_internal, prune_impossible_nodes):
31006 (acquire_init_state_context, check_matching, static):
31007 (check_halt_node_context, check_halt_state_context, proceed_next_node):
31008 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
31009 (update_regs, sift_states_backward, build_sifted_states):
31010 (clean_state_log_if_needed, merge_state_array):
31011 (update_cur_sifted_state, add_epsilon_src_nodes):
31012 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
31013 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
31014 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
31015 (find_recover_state, check_subexp_matching_top, transit_state_mb):
31016 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
31017 (check_arrival, check_arrival_add_next_nodes):
31018 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
31019 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
31020 (check_node_accept_bytes, check_node_accept, extend_buffers):
31021 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
31022 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
31026 * lib/regex_internal.h:
31027 (re_string_allocate, re_string_construct, re_string_reconstruct):
31028 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
31029 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
31030 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
31031 (re_string_context_at, re_string_peek_byte_case):
31032 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
31033 is defined, since we now use prototypes always.
31035 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
31036 C89 or better. All uses removed.
31038 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
31040 * config/srclist.txt: Add glibc bugs 1220-1227.
31042 2005-08-20 Jim Meyering <jim@meyering.net>
31044 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
31045 of unused local, dfa.
31047 2005-08-20 Bruno Haible <bruno@clisp.org>
31049 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
31051 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
31053 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
31054 (re_node_set_insert_last, re_dfa_add_node):
31055 Rename local variables to avoid GCC shadowing warnings.
31057 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
31059 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
31060 [defined lint]: Suppress bogus uninitialized-variable warnings.
31062 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
31063 and let the caller return REG_ESPACE if out of space. This
31064 removes an uninitialied-variable warning with GCC 4.0.1, and also
31065 avoids taking the address of a local variable. All callers
31068 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
31070 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
31071 $LIBCSRC/posix/regexec.c.
31072 Add glibc bug 1217 for regcomp.c.
31074 2005-08-19 Jim Meyering <jim@meyering.net>
31076 * lib/regexec.c (proceed_next_node): Redo local variables to
31077 avoid GCC shadowing warnings.
31079 2005-08-18 Bruno Haible <bruno@clisp.org>
31081 * lib/strstr.c (strstr): Fix return value in multibyte case.
31082 * lib/strcasestr.c (strcasestr): Likewise.
31084 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
31086 * lib/regex.h: Remove useless space-before-tab. From coreutils.
31088 2005-08-17 Jim Meyering <jim@meyering.net>
31090 Make the %s format (seconds since the epoch) work for a negative
31091 number and when used with a zero-padded field width, e.g. %015s.
31093 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
31094 label so that it precedes the code to set `digits'. Otherwise,
31095 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
31096 print `00-22'. Now, it prints `-0022', as it should.
31098 2005-08-17 Bruno Haible <bruno@clisp.org>
31100 * modules/strstr (Files): Add m4/mbrtowc.m4.
31101 (Depends-on): Add mbuiter.
31103 2005-08-17 Bruno Haible <bruno@clisp.org>
31105 * modules/strcasestr: New file.
31106 * MODULES.html.sh (String handling, based on ANSI C 89): Add
31109 2005-08-17 Bruno Haible <bruno@clisp.org>
31111 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
31113 2005-08-17 Bruno Haible <bruno@clisp.org>
31115 * modules/mbuiter: New file.
31116 * MODULES.html.sh (Extended multibyte and wide character utilities):
31119 2005-08-17 Bruno Haible <bruno@clisp.org>
31121 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
31122 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
31124 2005-08-17 Bruno Haible <bruno@clisp.org>
31126 * m4/strcasestr.m4: New file.
31128 2005-08-17 Bruno Haible <bruno@clisp.org>
31130 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
31131 * lib/strstr.c: Completely rewritten, with multibyte locale support.
31133 2005-08-17 Bruno Haible <bruno@clisp.org>
31135 * lib/strcasestr.h: New file.
31136 * lib/strcasestr.c: New file.
31138 2005-08-17 Bruno Haible <bruno@clisp.org>
31140 * lib/strcasecmp.c: Use mbuiter.h.
31142 2005-08-17 Bruno Haible <bruno@clisp.org>
31144 * lib/mbuiter.h: New file.
31146 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
31148 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
31149 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
31150 and gl_GETOPT are both invoked via different paths (as happens
31151 with GNU tar CVS because it uses both argp and getopt), the former
31154 2005-08-16 Bruno Haible <bruno@clisp.org>
31156 * modules/tls: New file.
31157 * MODULES.html.sh (Multithreading): Add tls.
31159 2005-08-16 Bruno Haible <bruno@clisp.org>
31161 * modules/strnlen1: New file.
31162 * MODULES.html.sh (String handling): Add strnlen1.
31164 2005-08-16 Bruno Haible <bruno@clisp.org>
31166 * modules/strcase (Files): Add m4/mbrtowc.m4.
31167 (Depends-on): Add strnlen1, mbchar.
31169 2005-08-16 Bruno Haible <bruno@clisp.org>
31171 * modules/mbiter: New file.
31172 * MODULES.html.sh (Extended multibyte and wide character utilities):
31175 2005-08-16 Bruno Haible <bruno@clisp.org>
31177 * modules/mbfile: New file.
31178 * MODULES.html.sh (Extended multibyte and wide character utilities):
31181 2005-08-16 Bruno Haible <bruno@clisp.org>
31183 * modules/mbchar: New file.
31184 * MODULES.html.sh (Extended multibyte and wide character utilities):
31187 2005-08-16 Bruno Haible <bruno@clisp.org>
31189 * m4/tls.m4: New file, from GNU gettext.
31191 2005-08-16 Bruno Haible <bruno@clisp.org>
31193 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
31195 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
31197 2005-08-16 Bruno Haible <bruno@clisp.org>
31199 * m4/mbiter.m4: New file.
31201 2005-08-16 Bruno Haible <bruno@clisp.org>
31203 * m4/mbfile.m4: New file.
31205 2005-08-16 Bruno Haible <bruno@clisp.org>
31207 * m4/mbchar.m4: New file.
31209 2005-08-16 Bruno Haible <bruno@clisp.org>
31211 * lib/tls.h: New file, from GNU gettext.
31212 * lib/tls.c: New file, from GNU gettext.
31214 2005-08-16 Bruno Haible <bruno@clisp.org>
31216 * lib/strnlen1.h: New file.
31217 * lib/strnlen1.c: New file.
31219 2005-08-16 Bruno Haible <bruno@clisp.org>
31221 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
31222 (mbi_init): Update.
31223 (mbi_avail, mbi_advance): Let the iteration end before the terminating
31224 NUL byte, not after it.
31226 2005-08-16 Bruno Haible <bruno@clisp.org>
31228 * lib/strcase.h (strcasecmp): Add note in comments.
31229 * lib/strncasecmp.c: Use code from strcasecmp.c.
31230 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
31231 (strcasecmp): Work correctly in multibyte locales.
31233 2005-08-16 Bruno Haible <bruno@clisp.org>
31235 * lib/mbiter.h: New file.
31237 2005-08-16 Bruno Haible <bruno@clisp.org>
31239 * lib/mbfile.h: New file.
31241 2005-08-16 Bruno Haible <bruno@clisp.org>
31243 * lib/mbchar.h: New file.
31244 * lib/mbchar.c: New file.
31246 2005-08-16 Bruno Haible <bruno@clisp.org>
31248 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
31249 the valid ones. Makes the comparison operations transitive:
31250 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
31251 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
31253 2005-08-15 Simon Josefsson <jas@extundo.com>
31255 * modules/ssize_t (License): Change to 'unlimited'.
31257 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
31259 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
31261 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
31262 Add comments for each pending glibc patch.
31264 2005-08-15 Bruno Haible <bruno@clisp.org>
31266 * lib/regex.h (__restrict_arr): Don't define to __restrict if
31267 __cplusplus is defined.
31269 2005-08-14 Jim Meyering <jim@meyering.net>
31271 Sync from coreutils.
31273 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
31274 Use the hash-table-based cycle-detection code not just when
31275 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
31276 Reported by James Youngman in
31277 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
31278 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
31279 FTS_TIGHT_CYCLE_CHECK.
31280 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
31281 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
31283 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
31284 * lib/fts.c (fd_safer): Remove decl.
31285 Include fcntl--.h rather than unistd-safer.h
31286 (fts_safe_changedir): Don't call fd_safer; no longer needed
31287 now that we include fcntl--.h.
31289 2005-08-12 Simon Josefsson <jas@extundo.com>
31291 * modules/getndelim2: Use ssize_t module.
31292 * modules/getnline: Likewise.
31293 * modules/safe-read: Likewise.
31294 * modules/xreadlink: Likewise.
31296 * modules/ssize_t: New file.
31298 2005-08-12 Simon Josefsson <jas@extundo.com>
31300 * m4/readline.m4: Look for termcap, curses or ncurses if required.
31302 2005-08-12 Simon Josefsson <jas@extundo.com>
31304 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31307 2005-08-12 Simon Josefsson <jas@extundo.com>
31309 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
31310 readline, getdelim and check_version.
31311 (Support for systems lacking ISO C 99: Sizes of integer types):
31314 2005-08-12 Bruno Haible <bruno@clisp.org>
31316 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
31318 2005-08-11 Simon Josefsson <jas@extundo.com>
31320 * modules/readline: New file.
31322 * modules/strnlen (Files): Add strnlen.h.
31324 2005-08-11 Simon Josefsson <jas@extundo.com>
31326 * m4/readline.m4: New file.
31328 2005-08-11 Simon Josefsson <jas@extundo.com>
31330 * lib/readline.h, readline.c: New file.
31332 2005-08-11 Simon Josefsson <jas@extundo.com>
31334 * doc/gnulib.texi (Initial import, Finishing touches): Mention
31337 2005-08-11 Bruno Haible <bruno@clisp.org>
31339 * lib/strnlen.h (strnlen): Change parameter name to match comment.
31341 2005-08-10 Stepan Kasal <kasal@ucw.cz>
31343 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
31345 2005-08-10 Simon Josefsson <jas@extundo.com>
31347 * tests/test-iconvme.c: New file.
31349 2005-08-10 Simon Josefsson <jas@extundo.com>
31351 * m4/strnlen.m4: New file.
31353 * m4/strndup.m4: Don't check for strnlen declaration, done in
31356 2005-08-10 Simon Josefsson <jas@extundo.com>
31358 * lib/strndup.c: Use strnlen.h.
31360 * lib/strnlen.h: New file.
31362 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
31366 2005-08-02 Simon Josefsson <jas@extundo.com>
31368 * modules/readline: New file.
31370 2005-08-02 Simon Josefsson <jas@extundo.com>
31372 * modules/getdelim: New file.
31374 * modules/getline: Rewrite, don't use getndelim2.
31376 2005-08-02 Simon Josefsson <jas@extundo.com>
31378 * m4/getline.m4: Separate out getdelim stuff into separate module.
31380 * m4/getdelim.m4: New file.
31382 2005-08-02 Simon Josefsson <jas@extundo.com>
31384 * lib/getline.h, getline.c: Rewrite.
31386 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
31388 2005-07-31 Bruno Haible <bruno@clisp.org>
31390 * lib/lock.h (gl_lock_initializer): New macro.
31391 (gl_lock_define_initialized): Use it.
31392 (gl_rwlock_initializer): New macro.
31393 (gl_rwlock_define_initialized): Use it.
31394 (gl_recursive_lock_initializer): New macro.
31395 (gl_recursive_lock_define_initialized): Use it.
31397 2005-07-30 Karl Berry <karl@gnu.org>
31399 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
31400 Report from Ben Pfaff, regarding getopt.
31402 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
31404 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
31406 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
31407 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
31408 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
31409 (gl_GETOPT): Use the new macros. Most of the implementation
31410 is moved to the new macros. This is for programs like Emacs
31411 that don't want all the functionality of gl_GETOPT.
31413 2005-07-26 Bruno Haible <bruno@clisp.org>
31415 * m4/lock.m4: Update from GNU gettext.
31417 2005-07-26 Bruno Haible <bruno@clisp.org>
31419 * lib/lock.h: Update from GNU gettext.
31420 * lib/lock.c: Update from GNU gettext.
31422 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
31424 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
31425 obsolescent AC_TRY_RUN. Include the default includes files, for
31428 2005-07-24 Bruno Haible <bruno@clisp.org>
31430 * modules/visibility: New file.
31431 * MODULES.html.sh (Misc): Add visibility.
31433 2005-07-24 Bruno Haible <bruno@clisp.org>
31435 * m4/visibility.m4: New file.
31437 2005-07-24 Bruno Haible <bruno@clisp.org>
31439 * doc/visibility.texi: New file.
31441 2005-07-22 Bruno Haible <bruno@clisp.org>
31443 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
31444 $(ALLOCA_H), redundant through BUILT_SOURCES.
31445 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
31446 redundant through BUILT_SOURCES.
31447 * modules/byteswap (Makefile.am): Remove explicit dependency on
31448 $(BYTESWAP_H), redundant through BUILT_SOURCES.
31449 * modules/fnmatch (Makefile.am): Remove explicit dependency on
31450 $(FNMATCH_H), redundant through BUILT_SOURCES.
31451 * modules/getopt (Makefile.am): Remove explicit dependency on
31452 $(GETOPT_H), redundant through BUILT_SOURCES.
31453 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
31454 redundant through BUILT_SOURCES.
31455 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
31456 redundant through BUILT_SOURCES.
31457 * modules/stdbool (Makefile.am): Remove explicit dependency on
31458 $(STDBOOL_H), redundant through BUILT_SOURCES.
31459 * modules/stdint (Makefile.am): Remove explicit dependency on
31460 $(STDINT_H), redundant through BUILT_SOURCES.
31461 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
31462 Remove explicit dependency on $(SYSEXITS_H).
31463 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
31465 2005-07-18 Simon Josefsson <jas@extundo.com>
31467 * lib/check-version.c (check_version): Accept identical versions too.
31469 2005-07-18 Bruno Haible <bruno@clisp.org>
31471 * modules/lock: New file.
31472 * MODULES.html.sh (Multithreading): New section.
31474 2005-07-18 Bruno Haible <bruno@clisp.org>
31476 * m4/lock.m4: New file, from GNU gettext.
31478 2005-07-18 Bruno Haible <bruno@clisp.org>
31480 * lib/lock.h: New file, from GNU gettext.
31481 * lib/lock.c: New file, from GNU gettext.
31483 2005-07-18 Bruno Haible <bruno@clisp.org>
31485 * lib/lock.h (gl_once_t): New type.
31486 (gl_once_define, gl_once): New macros.
31487 * lib/lock.c (fresh_once): New variable.
31488 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
31491 2005-07-16 Simon Josefsson <jas@extundo.com>
31493 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
31494 workaround, suggested by Bruno.
31496 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
31498 * modules/xalloc (Depends-on): Add xalloc-die.
31499 * modules/xvasprintf (Depends-on): Add xalloc-die.
31501 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
31503 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
31504 with a minor change.
31506 2005-07-15 Bruno Haible <bruno@clisp.org>
31508 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
31509 When using lib/poll.c, define poll as rpl_poll.
31511 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
31513 * modules/argp (Depends-on): Remove unlocked-io.
31515 2005-07-14 Derek Price <derek@ximbiot.com>
31517 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
31518 for glob symlink bug.
31520 2005-07-14 Bruno Haible <bruno@clisp.org>
31522 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
31523 Instead, test for *_unlocked function declarations directly.
31525 2005-07-11 Simon Josefsson <jas@extundo.com>
31527 * modules/size_max: New file.
31529 * modules/xsize: Depend on size_max module for size_max.m4.
31531 2005-07-11 Simon Josefsson <jas@extundo.com>
31533 * lib/size_max.h: New file.
31535 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
31537 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
31538 copyright symbol and the year.
31539 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
31540 (version_etc_va): Use parameterized copyright notice.
31541 Reword to conform to the current GNU coding standards.
31543 2005-07-11 Karl Berry <karl@gnu.org>
31545 * doc/gnulib.texi (Quoting): new node.
31546 (Initial import): more info, from Patrice.
31548 2005-07-11 Bruno Haible <bruno@clisp.org>
31550 * gnulib-tool (func_usage): Document option --avoid.
31551 (Command line options): Handle --avoid.
31552 (func_acceptable): New function.
31553 (func_modules_transitive_closure): Use it.
31555 2005-07-11 Bruno Haible <bruno@clisp.org>
31557 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
31558 Reported by Jim Meyering.
31560 2005-07-10 Bruno Haible <bruno@clisp.org>
31562 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
31563 Needed when size_t is smaller than 'unsigned int'.
31564 Reported by Paul Eggert.
31566 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
31568 * modules/argp (Depends-on): Add unlocked-io
31570 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
31572 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
31575 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
31577 * config/srclist.txt: Comment out regcomp.c, since we have a porting
31580 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
31581 and Paul Eggert <eggert@cs.ucla.edu>
31583 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
31584 in wint_t, not wchar_t. Remove now-unnecessary cast.
31586 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
31588 * modules/regex (Files): Add lib/regex_internal.c,
31589 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
31590 (Depends-on): Add extensions.
31591 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
31593 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
31595 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
31597 * m4/same.m4 (gl_SAME): Likewise.
31598 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
31600 * m4/regex.m4: Adjust to new libc regex implementation.
31601 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
31602 all the .c and .h parts of (the new) regex.
31603 Quote the m4 stuff better.
31604 Check for RE_ICASE bug of old gnulib.
31605 Check for REG_STARTEND of recent libc.
31606 Rename local variables from jm_* to gl_*.
31607 Quote operand of "test -f".
31608 Say "recent enough" version of libc, not "version 2".
31609 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
31610 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
31611 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
31612 Remove check for btowc, isascii.
31613 Require AM_LANGINFO_CODESET.
31615 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
31617 * lib/regex.c, regex.h: Sync from libc.
31618 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
31620 New files, synced from libc, except that regex_internal.h
31621 currently has a small porting fix.
31623 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
31625 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
31626 regex_internal.c, regexec.c.
31627 Add regex_internal.h too, but as a comment, since the libc version
31628 is currently broken in gnulib mode.
31630 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
31632 Support programs like Emacs that use gnulib but not gettext.
31633 * MODULES.html.sh (Internationalization functions): Add gettext-h.
31634 * modules/gettext-h: New file.
31635 * modules/gettext (Files): Remove lib/gettext.h.
31636 (Depends-on): Add gettext-h.
31637 (Makefile.am): Remove lib_SOURCES.
31638 * modules/argmatch, modules/c-stack, modules/closeout:
31639 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
31640 * modules/execute, modules/file-type, modules/getaddrinfo:
31641 * modules/getopt, modules/human, modules/javacomp:
31642 * modules/javaexec, modules/mkdir-p, modules/obstack:
31643 * modules/openat, modules/pagealign_alloc, modules/pipe:
31644 * modules/quotearg, modules/regex, modules/rpmatch:
31645 * modules/unicodeio, modules/userspec, modules/version-etc:
31646 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
31648 Depend on gettext-h, not gettext.
31650 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
31652 * gnulib-tool (func_import): Add support for 'public domain' license.
31653 * modules/alloca, modules/atexit, modules/memmove:
31654 Now public domain, not GPL.
31655 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
31656 * modules/realloc, modules/strerror, modules/strtod:
31659 2005-07-05 Bruno Haible <bruno@clisp.org>
31661 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
31662 autoconf CVS. Needed for mingw.
31664 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
31666 Remove the dependency of the strftime module on the tzset module.
31667 * modules/strftime (Depends-on): Remove dependency on tzset.
31669 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
31671 Remove the dependency of the strftime module on the tzset module.
31672 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
31673 gl_FUNC_TZSET_CLOBBER.
31675 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
31677 Remove the dependency of the strftime module on the tzset module.
31678 * lib/strftime.c (my_strftime)
31679 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
31680 Copy the input structure, to work around some of the bug with
31681 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
31682 Solaris releases, you should also use the tzset module, but we won't
31683 require it as a dependency any more since we don't want LGPLed code
31684 to depend on GPLed code.
31686 2005-07-02 Jim Meyering <jim@meyering.net>
31688 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
31689 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
31690 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
31691 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
31693 2005-07-02 Jim Meyering <jim@meyering.net>
31695 * lib/backupfile.c (backup_args): Change a `0' to NULL.
31697 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
31699 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
31700 declares only 'struct timespec;' (!).
31702 2005-07-01 Jim Meyering <jim@meyering.net>
31704 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
31705 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
31706 * lib/save-cwd.c, tempname.c:
31707 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
31708 and don't include <sys/file.h>).
31710 2005-06-29 Jim Meyering <jim@meyering.net>
31712 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
31713 type name. Use the variable name instead.
31714 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
31717 2005-06-28 Simon Josefsson <jas@extundo.com>
31719 * modules/check-version (Files): Add check-version.m4.
31721 2005-06-28 Simon Josefsson <jas@extundo.com>
31723 * m4/check-version.m4: New file, suggested by Jim Meyering
31724 <jim@meyering.net>.
31726 2005-06-28 Simon Josefsson <jas@extundo.com>
31728 * lib/check-version.h, lib/check-version.c: New files.
31730 2005-06-28 Simon Josefsson <jas@extundo.com>
31732 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
31733 collision with global variable. Better indentation. Don't
31734 increment buffer pointer beyond buffer end. Based on comments
31735 from Paul Eggert <eggert@cs.ucla.edu>.
31737 * lib/base64.h: Indent.
31739 2005-06-28 Simon Josefsson <jas@extundo.com>
31741 * doc/gnulib.texi (Library version handling): New section.
31743 2005-06-28 Jim Meyering <jim@meyering.net>
31745 * check-module (find_included_lib_files): Hard-code another
31746 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
31747 but modules/fts-lgpl (correctly) does not list those files.
31749 * modules/canonicalize (Files): Add lib/pathmax.h.
31751 2005-06-25 Simon Josefsson <jas@extundo.com>
31753 * modules/check-version: New file.
31755 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
31757 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
31758 initializer of struct addrinfo, as an indication that we don't
31759 care how many members the structure has.
31761 2005-06-24 Derek Price <derek@ximbiot.com>
31762 and Bruno Haible <bruno@clisp.org>
31764 Remove stat module & update lstat.
31765 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
31766 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31767 * m4/stat.m4: Remove this file.
31769 2005-06-24 Derek Price <derek@ximbiot.com>
31770 and Bruno Haible <bruno@clisp.org>
31772 Remove stat module & update lstat.
31773 * lib/stat.c: Remove this file...
31774 (slash_aware_lstat): ...moving this content and its support...
31775 * lib/lstat.c (rpl_lstat): ...into here.
31776 * lib/lstat.h: New file.
31778 2005-06-24 Derek Price <derek@ximbiot.com>
31779 and Bruno Haible <bruno@clisp.org>
31781 Remove stat module & update lstat.
31782 * config/srclist.txt (libc sources): Remove stat.
31784 2005-06-24 Derek Price <derek@ximbiot.com>
31785 and Bruno Haible <bruno@clisp.org>
31787 Remove stat module & update lstat.
31788 * MODULES.html.sh (stat): Remove.
31789 * MODULES.html: Regenerated.
31790 * modules/lstat (Description): Correct function name.
31791 (Files): Add "lstat.h".
31792 (Depends-on): Remove stat, add xalloc, stat-macros.
31793 * modules/stat: Remove this file.
31794 (Include): Add "lstat.h", remove <sys/stat.h>.
31796 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
31798 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
31799 (ranged_convert): Don't save conversion in a temporary struct.
31800 This causes a warning with GCC 4.0.0, and anyway in the typical
31801 case it's not worth the extra 100 bytes or so of code.
31802 (ranged_convert, __mktime_internal): When calling a function via a
31803 pointer P, use P () rather than (*P) (), as we now assume C89 or
31806 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
31808 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
31809 "who -r" failed to give output. Problem reported by Tim Waugh.
31811 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
31812 (xcalloc): Use it to avoid needless tests.
31813 Problem reported by Jim Meyering.
31815 2005-06-20 Derek Price <derek@ximbiot.com>
31817 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
31818 unnecessary for Autoconfs > 2.59c.
31820 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
31822 * lib/argp.h (__option_is_short): Check upper limit of
31823 __key. Isprint() requires its argument to have the value
31824 of an unsigned char or EOF.
31826 2005-06-16 Jim Meyering <jim@meyering.net>
31828 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
31829 when either N or S is zero.
31831 2005-06-16 Derek Price <derek@ximbiot.com>
31833 * m4/bison.m4: Declare YACC & YFLAGS precious.
31835 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
31837 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
31838 multibyte string or pattern, fall back on unibyte matching.
31839 Problem reported by James Youngman.
31841 2005-06-08 Bruno Haible <bruno@clisp.org>
31843 * modules/csharpcomp: New file.
31844 * MODULES.html.sh (C#): Add csharpcomp.
31846 2005-06-08 Bruno Haible <bruno@clisp.org>
31848 * m4/csharpcomp.m4: New file, from GNU gettext.
31850 2005-06-08 Bruno Haible <bruno@clisp.org>
31852 * lib/csharpcomp.h: New file, from GNU gettext.
31853 * lib/csharpcomp.c: New file, from GNU gettext.
31854 * lib/csharpcomp.sh.in: New file, from GNU gettext.
31856 2005-06-08 Bruno Haible <bruno@clisp.org>
31858 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
31861 2005-06-07 Derek Price <derek@ximbiot.com>
31864 * lib/glob_.h: Indent nested #ifdef.
31866 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
31868 Sync from coreutils.
31869 Use "file name" when talking about file names, instead of "filename"
31870 or "path", as per the GNU coding standards.
31871 * lib/mkdir-p.c: Renamed from makepath.c.
31872 (make_dir_parents): Renamed from make_path. All callers changed.
31873 * lib/mkdir-p.h: Likewise. All includers changed.
31874 * lib/filenamecat.c: Renamed from path-concat.c.
31875 (file_name_concat): Renamed from path_concat. All callers changed.
31876 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
31877 * lib/filenamecat.h: Likewise. All includers changed.
31878 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
31879 in comments or local variable names.
31880 * lib/basename.c: Likewise.
31881 * lib/canonicalize.c, canonicalize.h: Likewise.
31882 * lib/dirname.c, dirname.h: Likewise.
31883 * lib/euidaccess.c: Likewise.
31884 * lib/exclude.c: Likewise
31885 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
31886 * lib/fsusage.c, fsuage.h: Likewise.
31887 * lib/fts.c, fts_.h: Likewise.
31888 * lib/getcwd.c: Likewise.
31889 * lib/getloadavg.c: Likewise.
31890 * lib/mkstemp.c: Likewise.
31891 * lib/mountlist.c, mountlist.h: Likewise.
31892 * lib/openat.c, openat.h: Likewise.
31893 * lib/readlink-stub.c: Likewise.
31894 * lib/readutmp.c, readutmp.h: Likewise.
31895 * lib/rename.c: Likewise.
31896 * lib/rmdir.c: Likewise.
31897 * lib/same.c: Likewise.
31898 * lib/savedir.c: Likewise.
31899 * lib/stripslash.c: Likewise.
31900 * lib/tempname.c: Likewise.
31901 * lib/xreadlink.c: Likewise.
31902 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
31904 * lib/exclude.h: Likewise.
31906 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
31907 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
31908 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
31909 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
31910 * lib/pathmax.h: Include <limits.h> unconditionally, since other
31911 files have been getting away with it for years (MORE/BSD 4.3
31913 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
31914 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
31916 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
31917 Define to 256, not 255, as per modern POSIX.
31919 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
31921 Sync from coreutils.
31922 Use "file name" when talking about file names, instead of "filename"
31923 or "path", as per the GNU coding standards.
31924 * MODULES.html.sh: mkdir-p renamed from makepath.
31925 filenamecat renamed from path-concat.
31926 * modules/filenamecat: Renamed from modules/path-concat.
31927 (Files): filenamecat.h and filenamecat.c renamed from
31928 path-concat.h and path-concat.c.
31929 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
31930 (Include): filenamecat.h, not path-concat.h.
31931 * modules/mkdir-p: Renamed from modules/makepath.
31932 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
31934 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
31935 (Include): mkdir-p.h, not makepath.h.
31937 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
31939 Sync from coreutils.
31940 * m4/mkdir-p.m4: Renamed from makepath.m4.
31941 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
31942 Rename files from makepath.c to mkdir-p.c, and from
31943 makepath.h to mkdir-p.h.
31944 * m4/filenamecat.m4: Renamed from path-concat.m4.
31945 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
31946 Rename files from path-concat.c to filenamecat.c,
31947 and from path-concat.h to filenamecat.h.
31948 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
31949 "file name" in local variables or comments.
31950 * m4/rename.m4: Likewise.
31952 2005-06-01 Bruno Haible <bruno@clisp.org>
31954 * modules/csharpexec: New file.
31955 * MODULES.html.sh (C#): New section.
31957 2005-06-01 Bruno Haible <bruno@clisp.org>
31959 * m4/csharp.m4: New file, from GNU gettext.
31960 * m4/csharpexec.m4: New file, from GNU gettext.
31962 2005-06-01 Bruno Haible <bruno@clisp.org>
31964 * lib/csharpexec.h: New file, from GNU gettext.
31965 * lib/csharpexec.c: New file, from GNU gettext.
31966 * lib/csharpexec.sh.in: New file, from GNU gettext.
31968 2005-05-31 Derek Price <derek@ximbiot.com>
31969 Paul Eggert <eggert@cs.ucla.edu>
31972 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
31974 2005-05-31 Derek Price <derek@ximbiot.com>
31975 Paul Eggert <eggert@cs.ucla.edu>
31978 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
31980 2005-05-29 Derek Price <derek@ximbiot.com>
31982 * config/srclist.txt (glob_.h, glob.c): Add these files.
31984 2005-05-29 Derek Price <derek@ximbiot.com>
31986 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
31987 * modules/glob: New file.
31988 * modules/getlogin_r: Add link to POSIX spec in description.
31990 2005-05-29 Derek Price <derek@ximbiot.com>
31991 Paul Eggert <eggert@cs.ucla.edu>
31993 * m4/glob.m4: New file.
31995 2005-05-29 Derek Price <derek@ximbiot.com>
31996 Paul Eggert <eggert@cs.ucla.edu>
31998 * lib/glob_.h, lib/glob.c: New files.
32000 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
32002 * modules/fts (Files): Remove m4/inttypes-pri.m4.
32003 * modules/fts-lgpl (Depends-on): Remove gettext.
32005 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
32007 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
32008 and don't require gt_INTTYPES_PRI.
32010 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
32012 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
32014 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
32015 the configuration hassle isn't worth it.
32016 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
32017 (LONGEST_MODIFIER, PRIuMAX): Remove.
32019 2005-05-27 Bruno Haible <bruno@clisp.org>
32021 * lib/getlogin_r.h: Remove second include of <stddef.h>.
32023 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
32025 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
32026 _POSIX_PTHREAD_SEMANTICS for Solaris.
32028 2005-05-25 Derek Price <derek@ximbiot.com>
32030 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
32032 2005-05-25 Derek Price <derek@ximbiot.com>
32033 Paul Eggert <eggert@cs.ucla.edu>
32035 * modules/getlogin_r, m4/getlogin_r.m4: New files.
32036 * lib/getlogin_r.c, getlogin_r.h: New files.
32038 2005-05-25 Bruno Haible <bruno@clisp.org>
32039 Derek Price <derek@ximbiot.com>
32041 * lib/getlogin_r.h: Simplify API documentation.
32043 2005-05-23 Derek Price <derek@ximbiot.com>
32045 * modules/minmax (Files): Add m4/minmax.m4.
32046 (configure.ac): Add gl_MINMAX.
32048 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
32050 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
32051 so that unistd-safer.h (GPL'ed code) need not be included.
32053 2005-05-22 Bruno Haible <bruno@clisp.org>
32055 * m4/minmax.m4: New file.
32056 Based on a patch by Derek Price <derek@ximbiot.com>.
32058 2005-05-22 Bruno Haible <bruno@clisp.org>
32060 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
32061 (INT64_MIN): Fix definition.
32062 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
32064 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
32065 NEED_SIGNED_INT_TYPES.
32067 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
32068 HAVE_SYSTEM_INTTYPES.
32070 2005-05-22 Bruno Haible <bruno@clisp.org>
32072 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
32073 Also include <sys/param.h> if it defines MIN, MAX.
32074 Based on a patch by Derek Price <derek@ximbiot.com>.
32076 2005-05-21 Jim Meyering <jim@meyering.net>
32078 * modules/fts (Files): Add m4/inttypes-pri.m4.
32079 (Depends-on): Add lstat and remove gettext. Alphabetize.
32081 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
32084 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
32085 (setup_dir, free_dir): New functions.
32086 (enter_dir, leave_dir): Define trivial
32087 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
32088 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
32089 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
32090 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
32091 Move to fts-cycle.c.
32092 (fts_open): Use setup_dir.
32093 (fts_close): Use free_dir.
32094 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
32095 This adds a label and some gotos, but the alternatives were messier.
32096 Check for memory allocation failure when entering a dir.
32097 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
32098 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
32099 (FTS): New member fts_cycle, that is a union that contains the
32100 old active_dir_ht and cycle_state. All uses changed to mention
32101 fts_cycle.ht and fts_cycle.state.
32102 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
32103 fts.c, with the following changes:
32104 (setup_dir, free_dir): New functions.
32105 (enter_dir): Now returns bool. Return true if successful, false
32106 if memory exhausted. All callers changed.
32107 Do not bother partly cleaning up on
32108 memory allocation failure; that is free_dir's job.
32109 However, free ad if hash_insert fails, to avoid memory leak.
32110 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
32111 fts->fts_options to see which union member to use.
32113 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
32115 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
32116 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
32118 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
32120 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
32122 2005-05-20 Jim Meyering <jim@meyering.net>
32124 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
32125 Now a macro, to pacify GCC.
32127 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
32129 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
32132 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
32134 * lib/chown.c (rpl_chown): Return -1 on failure.
32136 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
32138 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
32139 Don't check for stddef.h.
32140 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
32141 don't use its results.
32142 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
32143 since we include them unconditionally. Don't require
32144 AM_STDBOOL_H, since stdbool is a prerequisite.
32145 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
32146 since we assume C89 or better.
32147 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
32148 as we don't use their results.
32149 Don't check for fchdir, memmove, memset, strrchr, as we use
32150 them unconditionally.
32151 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
32152 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
32154 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
32156 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
32157 Include <stddef.h> unconditionally, since we assume C89 now.
32158 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
32159 * lib/fts.c: Include fts_.h first, to check interface.
32160 Do not include intprops.h; no longer needed.
32161 Include cycle-check.h and hash.h, since fts_.h no longer does.
32162 Remove unnecessary casts of closedir to void.
32163 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
32164 decide whether to decrement nlinks.
32165 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
32166 (FTS): Use struct hash_table * instead of Hash_table, so that
32167 we no longer need to include hash.h here.
32169 2005-05-18 Jim Meyering <jim@meyering.net>
32171 * modules/dirfd (License): Change to LGPL. Most of the code
32172 is already in the public domain.
32174 2005-05-18 Jim Meyering <jim@meyering.net>
32176 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
32177 Reported by Yoann Vandoorselaere.
32179 2005-05-17 Jim Meyering <jim@meyering.net>
32181 * m4/fts.m4: New file, from coreutils.
32183 2005-05-17 Jim Meyering <jim@meyering.net>
32185 * lib/fts.c, lib/fts_.h: New files, from coreutils.
32187 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
32189 Sync from coreutils.
32190 * m4/unlinkdir.m4: New file.
32192 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
32194 Sync from coreutils.
32195 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
32196 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
32197 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
32198 White space changes only.
32199 * lib/makepath.c (make_path): Port to hosts where leading "//" is
32201 * lib/yesno.c: Include getline.h, not ctype.h.
32202 (yesno): Don't remove leading white space; POSIX doesn't allow it.
32203 Use getline to remove arbitrary restriction on response length.
32205 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
32207 * config/srclist-update: Spell out "Street" in FSF postal
32208 mail address; this is the style the FSF seems to prefer.
32210 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
32211 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
32212 this updates FSF postal mail address.
32214 Sync from coreutils.
32215 * modules/unlinkdir: New file.
32216 * modules/yesno (Depends-on): Add getline.
32217 * MODULES.html.sh (File system functions): Add unlinkdir.
32219 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
32221 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
32223 Change the initial comment to refer to GPL, not LGPL.
32224 gnulib-tool will change it to LGPL as needed.
32226 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
32227 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
32228 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
32229 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
32230 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
32231 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
32232 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
32233 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
32234 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
32235 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
32236 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
32237 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
32238 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
32239 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
32240 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
32241 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
32242 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
32243 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
32244 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
32245 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
32246 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
32247 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
32248 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
32249 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
32250 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
32251 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
32252 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
32253 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
32254 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
32255 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
32256 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
32257 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
32258 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
32259 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
32260 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
32261 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
32262 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
32263 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
32264 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
32265 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
32266 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
32267 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
32268 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
32269 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
32270 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
32271 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
32272 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
32273 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
32274 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
32275 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
32276 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
32277 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
32278 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
32279 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
32280 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
32281 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
32282 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
32283 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
32284 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
32285 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
32286 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
32287 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
32288 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
32289 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
32290 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
32291 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
32292 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
32293 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
32294 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
32295 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
32296 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
32297 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
32298 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
32299 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
32300 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
32301 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
32302 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
32303 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
32304 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
32305 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
32306 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
32307 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
32308 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
32309 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
32310 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
32311 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
32312 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
32313 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
32314 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
32315 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
32316 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
32317 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
32318 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
32319 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
32320 lib/yesno.c, lib/yesno.h:
32321 Update FSF postal mail address.
32323 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
32325 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
32326 tests/test-memmem.c, tests/test-stpncpy.c:
32327 Update FSF postal mail address.
32329 2005-05-13 Bruno Haible <bruno@clisp.org>
32331 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
32332 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
32333 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
32334 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
32335 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
32336 Add support for 64-bit integers in the MSVC compiler.
32338 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
32340 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
32342 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
32344 * gnulib-tool (func_import): Sort and uniquify recommended includes.
32346 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
32348 * doc/getdate.texi (General date syntax): Don't say that date
32349 date --iso-8601=ns generates acceptable dates; it doesn't yet.
32350 Problem reported by Nic Ferrier.
32352 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
32354 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
32355 specified in ai_socktype. Fix invalid ai_protocol
32356 check. ai_protocol is usually set to 0 or depending on
32357 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
32358 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
32359 ai_socktype / ai_protocol in the returned addrinfo structure.
32361 2005-05-10 Simon Josefsson <jas@extundo.com>
32363 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
32364 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32366 2005-05-10 Karl Berry <karl@gnu.org>
32368 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
32369 (from http://www.gnu.org/licenses).
32370 * doc/COPYING.LIB: also rename to COPYING.LESSER.
32371 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
32374 2005-05-10 Karl Berry <karl@gnu.org>
32376 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
32377 (COPYING.DOC): remove.
32379 * config/srclist-update: new FSF address.
32381 2005-05-10 Derek Price <derek@ximbiot.com>
32383 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
32386 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
32387 Bruno Haible <bruno@clisp.org>
32389 * modules/inet_ntop: New file.
32390 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32393 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
32394 Bruno Haible <bruno@clisp.org>
32396 * m4/inet_ntop.m4: New file.
32398 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
32399 Bruno Haible <bruno@clisp.org>
32401 * lib/inet_ntop.h: New file.
32402 * lib/inet_ntop.c: New file, from glibc with modifications.
32404 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
32406 * modules/time_r (License): Change to LGPL.
32407 * modules/extensions (License): Change to LGPL. Actually,
32408 the license is more permissive than that, but currently gnulib-tool
32409 doesn't know how to handle more-permissive licenses.
32411 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
32412 Problem reported by Dave Love.
32414 2005-05-08 Jim Meyering <jim@meyering.net>
32416 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
32419 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
32421 * modules/argmatch (Depends-on): Add stdbool.
32422 * modules/backupfile (Depends-on): Likewise.
32423 * modules/chdir-long (Depends-on): Likewise.
32424 * modules/closeout (Depends-on): Likewise.
32425 * modules/cycle-check (Depends-on): Likewise.
32426 * modules/dirname (Depends-on): Likewise.
32427 * modules/fnmatch (Depends-on): Likewise.
32428 * modules/fsusage (Depends-on): Likewise.
32429 * modules/fwriteerror (Depends-on): Likewise.
32430 * modules/getcwd (Depends-on): Likewise.
32431 * modules/getloadavg (Depends-on): Likewise.
32432 * modules/hard-locale (Depends-on): Likewise.
32433 * modules/makepath (Depends-on): Likewise.
32434 * modules/mountlist (Depends-on): Likewise.
32435 * modules/nanosleep (Depends-on): Likewise.
32436 * modules/posixtm (Depends-on): Likewise.
32437 * modules/quotearg (Depends-on): Likewise.
32438 * modules/readtokens (Depends-on): Likewise.
32439 * modules/readtokens0 (Depends-on): Likewise.
32440 * modules/readutmp (Depends-on): Likewise.
32441 * modules/save-cwd (Depends-on): Likewise.
32442 * modules/strftime (Depends-on): Likewise.
32443 * modules/userspec (Depends-on): Likewise.
32444 * modules/utimecmp (Depends-on): Likewise.
32445 * modules/xgetcwd (Depends-on): Likewise.
32446 * modules/xnanosleep (Depends-on): Likewise.
32447 * modules/xstrtod (Depends-on): Likewise.
32448 * modules/yesno (Depends-on): Likewise.
32450 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
32452 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
32455 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
32457 Merge from coreutils. Among other things,
32458 add bulletproofing for cases where stdin, stdout, or stderr are closed.
32459 * lib/fd-safer.c: New file.
32460 * lib/fcntl-safer.h, open-safer.c: Remove.
32461 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
32462 * lib/dup-safer.c: Include unistd-safer.h first.
32463 Don't include errno.h.
32464 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
32465 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
32466 * lib/file-type.c: Rely on file-type.h change.
32467 * lib/getloadavg.c: Include unistd-safer.h.
32468 (getloadavg): Use safer open.
32469 * lib/getusershell.c: Include "stdio-safer.h".
32470 (getusershell): Use safer fopen.
32471 * lib/long-options.c (long_options): Use NULL rather than 0.
32472 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
32474 * lib/modechange.c: Likewise.
32475 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
32476 (MODE_DONE): New constant.
32477 (struct mode_change): Remove 'next' member.
32478 (make_node_op_equals): New function; like the old one of the
32479 same name, except it allocates an array.
32480 (mode_compile, mode_create_from_ref): Use it.
32481 (mode_compile): Allocate result as an array, not a linked list.
32482 Parse octal string ourself, so that we catch mistakes like "+0".
32483 (mode_adjust): Arg is an array, not a linked list.
32484 * lib/modechange.c: Include stat-macros.h, xalloc.h.
32485 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
32486 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
32487 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
32488 Remove. This is now stat-macros.h's job.
32489 (talloc): Remove. All callers replaced by xalloc, so that
32490 our invokers don't have to worry about reporting memory failures.
32491 (make_node_op_equals): Remove.
32492 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
32494 (struct mode_change): Moved here from modechange.h.
32495 (mode_append_entry): Remove.
32496 (mode_compile): Remove MASKED_OPS arg, since it encouraged
32497 apps to have incorrect behavior. Use simpler algorithm for head
32498 and tail. Don't futz with umask; that's now the job of mode_adjust.
32499 Detect more invalid usages rather than having somewhat-random behavior.
32500 Don't insert an "a=" action, as that leads to incorrect behavior.
32501 (mode_compile, mode_create_from_ref): Return NULL on error instead
32502 of an enum, since now there's only one way to have an error. All
32504 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
32505 at the correct time. Simplify calculation of "+u" and its ilk.
32506 Don't mishandle "+X".
32507 (mode_free): Remove "register" and localize decls.
32508 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
32509 (struct mode_change): Move to modechange.c; callers don't
32510 need to see this stuff.
32511 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
32512 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
32513 (mode_change, mode_adjust): Reflect the new signatures noted above.
32514 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
32515 that might redefine system include files.
32516 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
32517 (my_usleep): Use NULL rather than (void *) 0.
32518 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
32519 Use siginterrupt to specify that system calls should be interrupted.
32520 (rpl_nanosleep): Move initialization of suspended closer to call of
32522 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
32523 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
32524 (desirable_utmp_entry): New function.
32525 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
32526 using x2nrealloc, to simplify logic.
32527 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
32528 size calculation. Do not assume utmp file is a regular file.
32529 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
32530 (READ_UTMP_CHECK_PIDS): New constant.
32531 * lib/save-cwd.c: Include unistd-safer.h.
32532 (save_cwd): Use fd_safer.
32533 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
32534 [!_LIBC] Include "stat-macros.h" instead.
32535 * lib/unistd-safer.h (fd_safer): New decl.
32537 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
32539 * modules/getloadavg (Depends-on): Add unistd-safer.
32540 * modules/getusershell (Depends-on): Add stdio-safer.
32541 * modules/lstat (Depends-on): Remove xalloc.
32542 * modules/mkstemp (Depends-on): Add stat-macros.
32543 * modules/modechange (Depends-on): Remove xstrtol.
32544 Add stat-macros, xalloc.
32545 * modules/save-cwd (Depends-on): Add unistd-safer.
32546 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
32547 * modules/unistd-safer (Files): Add lib/fd-safer.c
32548 (Makefile.am): Remove lib_SOURCES.
32550 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
32551 Remove fcntl-safer; unistd-safer supersedes it.
32553 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
32555 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
32557 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
32558 (gl_PREREQ_CHOWN): Remove.
32559 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
32560 it. Don't require AC_HEADER_STAT.
32561 (gl_PREREQ_LSTAT): Remove.
32562 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
32563 Don't require AC_HEADER_STAT.
32564 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
32565 (gl_PREREQ_RMDIR): Remove.
32566 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
32567 mention stat-macros.h or AC_HEADER_STAT, since we'll make
32568 the stat-macros module a prerequisite.
32569 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
32570 * m4/filemode.m4 (gl_FILEMODE): Likewise.
32571 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
32572 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
32573 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
32575 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
32576 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
32578 * m4/fcntl-safer.m4: Remove.
32579 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
32580 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
32581 Invoke gl_PREREQ_FD_SAFER.
32582 (gl_PREREQ_FD_SAFER): New macro.
32583 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
32584 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
32585 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
32586 Remove duplicate call to AC_LIBOBJ(readutmp).
32587 (gl_PREREQ_READUTMP): Remove. All uses inlined.
32589 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
32590 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
32592 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
32594 * MODULES.html.sh (Misc): Add byteswap.
32596 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
32598 * modules/getcwd (Depends-on): Add extensions.
32599 * modules/openat (Depends-on): Likewise.
32601 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
32603 * modules/byteswap: New file.
32605 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
32607 * m4/byteswap.m4: New file.
32609 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
32611 * lib/byteswap_.h: New file.
32613 2005-04-25 Karl Berry <karl@gnu.org>
32615 * m4/gettext.m4: Update from GNU gettext 0.14.4.
32617 2005-04-25 Albert Chin <china@thewrittenword.com>
32619 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
32622 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
32624 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
32625 (func_ln_if_changed) Remove forcibly for no error message
32626 in case file does not exist.
32628 2005-04-19 Simon Josefsson <jas@extundo.com>
32630 * gnulib-tool (Options): Make --symlink mean --symbolic.
32632 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
32634 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
32636 2005-04-16 Simon Josefsson <jas@extundo.com>
32638 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
32640 2005-04-15 Simon Josefsson <jas@extundo.com>
32642 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
32644 2005-04-15 Simon Josefsson <jas@extundo.com>
32646 * gnulib-tool: Rename --symlink to --symbolic.
32648 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
32650 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
32651 symbolic links to files instead of copying/moving. Add --aux-dir,
32652 specifying directory relative --dir where auxiliary build tools
32655 2005-04-14 Bruno Haible <bruno@clisp.org>
32657 * modules/allocsa (License): Change to LGPL.
32658 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32660 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
32662 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
32663 that "UTC +1 second" continues to work. Problem reported
32664 by Dmitry V. Levin.
32665 (relunit_snumber): New rule.
32668 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
32670 * lib/getdate.y (universal_time_zone_table): New constant.
32671 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
32672 universal_time_zone_table.
32673 (lookup_zone): Prefer universal_time_zone_table to
32674 local_time_zone_table, so that "GMT" time stamps are allowed in
32675 London during the summer. Problem reported by Ian Abbott.
32677 2005-04-12 Jim Meyering <jim@meyering.net>
32679 * lib/human.c (humblock): Set *options even when returning due to
32680 xstrtoumax conversion failure. Thanks to a used-uninitialized
32681 warning from gcc-4.
32683 2005-04-09 Jim Meyering <jim@meyering.net>
32685 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
32686 -Wuninitialized: initialize tm0.tm_year.
32688 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
32690 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
32691 count, since there's no maximum. All uses changed.
32692 Add member dsts_seen.
32693 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
32695 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
32696 Use pc_rels_seen to decide whther a date is absolute.
32698 * lib/getdate.y (number): Don't overwrite year.
32699 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
32702 2005-04-02 Simon Josefsson <jas@extundo.com>
32704 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
32705 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
32707 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
32709 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
32710 where no absolute path name can be longer than PATH_MAX.
32712 2005-03-27 Jim Meyering <jim@meyering.net>
32714 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
32716 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
32718 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
32719 "one's complement" -> "ones' complement" in comment, as per Knuth.
32720 "value of type" -> "type or expression" in comment.
32721 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
32723 2005-03-26 Jim Meyering <jim@meyering.net>
32726 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
32727 Correct typos: s/or/of/.
32729 2005-03-26 Jim Meyering <jim@meyering.net>
32731 * modules/check-include-files: Move to ../ and rename to...
32732 * check-module: ...this.
32734 2005-03-25 Jim Meyering <jim@meyering.net>
32736 * modules/xvasprintf (Files): Add xalloc.h.
32738 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
32740 * modules/gettext (Files): config/config.rpath ->
32741 build-aux/config.rpath
32742 * modules/iconv (Files): Likewise.
32743 Problem reported by Oskar Liljeblad.
32745 2005-03-23 Jim Meyering <jim@meyering.net>
32747 * modules/check-include-files: New script to check for
32748 missing dependencies, multiple includes, etc.
32750 * modules/c-strtold (Depends-on): Add xalloc.
32751 * modules/c-strtod (Depends-on): Add xalloc.
32752 * modules/hash (Depends-on): Add xalloc.
32753 (Files): Remove lib/xalloc.h.
32755 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
32756 * modules/userspec (Files): Add lib/inttostr.h.
32758 2005-03-23 Jim Meyering <jim@meyering.net>
32760 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
32762 2005-03-22 Jim Meyering <jim@meyering.net>
32764 * modules/stat-macros: New module.
32765 * modules/canonicalize, modules/euidaccess, modules/file-type,
32766 * modules/filemode, modules/lchown, modules/makepath,
32767 * modules/rmdir, modules/stat: Depend on new stat-macros module
32768 rather than listing lib/stat-macros.h manually.
32769 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
32771 2005-03-22 Jim Meyering <jim@meyering.net>
32773 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
32775 2005-03-22 Bruno Haible <bruno@clisp.org>
32777 * config/srclist.txt: Replace target directory 'config' with
32779 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
32780 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
32783 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
32785 * modules/chdir-long (Depends-on): Add mempcpy.
32787 * modules/acl, modules/backupfile, modules/c-strtod,
32788 modules/c-strtold, modules/canon-host, modules/canonicalize,
32789 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
32790 modules/exclude, modules/exitfail, modules/file-type,
32791 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
32792 modules/getdate, modules/getline, modules/getpagesize,
32793 modules/getpass, modules/getugroups, modules/group-member,
32794 modules/hard-locale, modules/hash, modules/human, modules/idcache,
32795 modules/inttostr, modules/long-options, modules/makepath,
32796 modules/md5, modules/memcasecmp, modules/memcoll,
32797 modules/modechange, modules/mountlist, modules/path-concat,
32798 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
32799 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
32800 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
32801 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
32802 modules/strftime, modules/strndup, modules/strverscmp,
32803 modules/timespec, modules/unlocked-io, modules/userspec,
32804 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
32806 Remove lib_SOURCES line from Makefile.am section, as this is now
32807 done automatically by the corresponding Autoconf macro.
32809 2005-03-21 Jim Meyering <jim@meyering.net>
32811 Changes imported from coreutils.
32813 * lib/cycle-check.c: Don't include xalloc.h.
32815 * lib/path-concat.c: Don't include assert.h.
32816 (path_concat): Remove assertion that would have triggered
32817 for ABASE starting with more than one slash.
32818 Reported by Andreas Schwab.
32820 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
32821 properly when ABASE is an absolute file name.
32822 Correct the description of this function.
32823 Include <assert.h>.
32824 Add an assertion and a test driver.
32825 This fixes a bug introduced on 2004-07-02.
32826 Andreas Schwab reported the resulting failure of cp --parents:
32827 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
32829 2005-03-21 Jim Meyering <jim@meyering.net>
32831 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
32832 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
32834 2005-03-21 Jim Meyering <jim@meyering.net>
32835 and Paul Eggert <eggert@cs.ucla.edu>
32837 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
32838 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
32839 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
32840 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
32841 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
32842 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
32843 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
32844 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
32845 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
32846 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
32847 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
32848 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
32849 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
32850 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
32851 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
32852 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
32853 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
32856 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
32858 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
32859 (which shouldn't happen), generate nothing instead of returning 0
32860 immediately, so that nstrftime (NULL, ...) doesn't return 0.
32862 2005-03-16 Bruno Haible <bruno@clisp.org>
32864 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
32865 HAVE_LONGLONG_64BIT.
32867 2005-03-16 Bruno Haible <bruno@clisp.org>
32869 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
32870 HAVE_LONGLONG_64BIT.
32872 2005-03-16 Bruno Haible <bruno@clisp.org>
32874 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
32875 HAVE_LONGLONG_64BIT.
32877 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
32879 * lib/strftime.c (my_strftime): Prepend space to format so that we can
32880 reliably distinguish strftime failure from empty output on POSIX
32883 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
32885 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
32886 (iconv_string): Don't guess a size-zero buffer, as that might cause
32887 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
32888 result would be 'too large', where 'too large' is (heuristically)
32889 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
32890 overflow concerns. This will prevent some unwanted malloc failures
32891 when the inputs are very large.
32893 2005-03-15 Karl Berry <karl@gnu.org>
32895 * config/srclist.txt (config.rpath): from gettext.
32896 * config/config.rpath: update.
32898 2005-03-15 Bruno Haible <bruno@clisp.org>
32900 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
32903 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
32906 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
32909 2005-03-14 Simon Josefsson <jas@extundo.com>
32911 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
32914 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
32916 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
32917 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
32919 * lib/strtol.c: Likewise.
32921 2005-03-14 Jim Meyering <jim@meyering.net>
32923 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
32924 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
32925 to be nonzero so that we (and caller) can detect the difference
32926 between a valid zero-length expansion and an error return, even
32927 when the underlying strftime fails before writing anything into
32930 2005-03-14 Bruno Haible <bruno@clisp.org>
32932 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
32933 Update from GNU gettext 0.14.3.
32935 2005-03-10 Jim Meyering <jim@meyering.net>
32937 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
32939 2005-03-10 Jim Meyering <jim@meyering.net>
32941 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
32942 so that this module works on systems without fchdir.
32944 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
32946 Factor int-properties macros into a single file, except for
32947 glibc-related files.
32948 * lib/intprops.h: New file.
32949 * lib/getloadavg.c: Include it instead of limits.h.
32950 (INT_STRLEN_BOUND): Remove.
32951 * lib/human.c: Include intprops.h.
32952 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
32953 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
32955 * lib/inttostr.h: Include intprops.h instead of limits.h.
32956 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
32957 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
32958 for consistency with intprops.h.
32959 (time_t_is_integer, twos_complement_arithmetic): Use them.
32960 * lib/sig2str.h: Include <signal.h>, intprops.h.
32961 (INT_STRLEN_BOUND): Remove.
32962 * lib/strftime.c (TYPE_SIGNED): Remove.
32963 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
32964 * lib/strtol.c: Adjust comments to match intprops.h.
32965 * lib/userspec.c: Include intprops.h.
32966 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
32967 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
32968 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
32969 instead of rolling our own expressions.
32970 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
32972 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
32974 (my_strftime): Do not mishandle years close to INT_MAX, by doing
32975 the right thing even if adding 1900 would overflow. Similarly
32976 for tm_mon + 1 and tm_yday + 1.
32977 Make %Y always equivalent to %C%y, and similarly for %G and %g.
32978 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
32979 (DO_SIGNED_NUMBER): New macro.
32980 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
32982 2005-03-07 Bruno Haible <bruno@clisp.org>
32984 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
32986 2005-03-07 Bruno Haible <bruno@clisp.org>
32988 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
32990 2005-03-04 Derek R. Price <derek@ximbiot.com>
32992 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
32993 (func_import): Only replace files via --import when they have actually
32996 2005-03-03 Derek R. Price <derek@ximbiot.com>
32998 * m4/mmap-anon.m4: New file.
32999 * m4/pagealign_alloc.m4: New file.
33001 2005-03-03 Derek R. Price <derek@ximbiot.com>
33002 Bruno Haible <bruno@clisp.org>
33004 * modules/pagealign_alloc: New file.
33005 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
33007 2005-03-03 Derek R. Price <derek@ximbiot.com>
33008 Bruno Haible <bruno@clisp.org>
33010 * lib/pagealign_alloc.h: New file.
33011 * lib/pagealign_alloc.c: New file.
33013 2005-03-03 Bruno Haible <bruno@clisp.org>
33015 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
33016 Use an all-permissive copyright notice, recommended by RMS.
33018 2005-03-02 Bruno Haible <bruno@clisp.org>
33020 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
33021 of AIX, the replacement has to be done only after <string.h> is
33022 included, therefore not in config.h. stpncpy.h does the replacement,
33023 and stpncpy.c uses it.
33025 2005-03-02 Bruno Haible <bruno@clisp.org>
33027 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
33030 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
33032 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
33033 The workaround isn't strictly needed for POSIX conformance, and
33034 it's too much of a pain to configure and maintain. We'll ask
33035 people to fix their kernels instead.
33036 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
33037 (NANOSLEEP_BUG_WORKAROUND): Remove.
33038 (xnanosleep): Remove the workaround.
33040 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
33042 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
33043 Reported by Derek Price.
33044 (Include): Add "timespec.h".
33046 * modules/xnanosleep (Depends-on): Remove gethrxtime.
33048 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
33050 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
33051 to detect nanosleep bug.
33053 2005-03-01 Bruno Haible <bruno@clisp.org>
33055 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
33057 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
33059 * modules/gethrxtime: New file.
33060 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
33061 (Depends-on): Add gethrxtime.
33062 (configure.ac): Add gl_XNANOSLEEP.
33063 (Makefile.am): Remove lib_SOURCES line.
33065 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
33067 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
33068 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
33070 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
33072 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
33073 * lib/timespec.h (gettime): Return void, since it always
33074 succeeds now. All uses changed.
33075 * lib/gettime.c (gettime) Likewise.
33076 [HAVE_NANOTIME]: Prefer nanotime.
33077 Assume gettimeofday succeeds, as POSIX requires.
33078 Assime time () succeeds, since other code already does.
33079 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
33080 (timespec_subtract): Remove.
33081 (NANOSLEEP_BUG_WORKAROUND): New constant.
33082 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
33083 things considerably. Use it only on GNU/Linux hosts, since the
33084 workaround shouldn't be needed elsewhere.
33086 2005-02-24 Bruno Haible <bruno@clisp.org>
33088 * modules/gettext (Files): Add m4/glibc2.m4.
33090 2005-02-24 Bruno Haible <bruno@clisp.org>
33092 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
33093 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
33095 Update from GNU gettext 0.14.2.
33096 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
33098 2005-02-24 Bruno Haible <bruno@clisp.org>
33100 * lib/localcharset.c: Update from GNU gettext 0.14.2.
33101 * lib/config.charset: Update from GNU gettext 0.14.2.
33103 2005-02-24 Bruno Haible <bruno@clisp.org>
33105 * lib/gettext.h: Update from GNU gettext 0.14.2.
33107 2005-02-23 Simon Josefsson <jas@extundo.com>
33109 * m4/iconvme.m4: New file.
33111 2005-02-23 Jim Meyering <jim@meyering.net>
33113 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
33115 Thanks to Bruno Haible for catching it.
33117 2005-02-22 Simon Josefsson <jas@extundo.com>
33119 * modules/iconvme: New file.
33121 * MODULES.html.sh: Add iconvme.
33123 2005-02-22 Simon Josefsson <jas@extundo.com>
33125 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
33127 2005-02-22 Simon Josefsson <jas@extundo.com>
33129 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
33131 2005-02-22 Jim Meyering <jim@meyering.net>
33133 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
33136 2005-02-20 Neil Conway <neilc@samurai.com>
33138 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
33139 returned by OSX/Darwin if the specified buffer is not large
33140 enough for the hostname.
33142 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33144 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
33145 pass it to _help, otherwise the latter coredumps trying to
33146 dereference state.root_argp.
33148 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
33150 * modules/chdir-long (Depends-on): Add memrchr.
33151 * modules/memrchr (Files): Add lib/memrchr.h.
33152 (Include): "memrchr.h".
33154 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
33156 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
33158 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
33160 * lib/memrchr.h: New file.
33161 * lib/chdir-long.c: Include it.
33162 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
33163 Don't bother including stddef.h.
33165 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
33167 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
33169 Include <sys/types.h>, for dev_t.
33170 (ME_DUMMY, ME_REMOTE): Move from here....
33171 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
33172 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
33174 Include mountlist.h first, to test the interface.
33176 2005-01-29 Bruno Haible <bruno@clisp.org>
33178 * lib/progname.c (program_name): Initialize.
33179 Needed when linking statically on MacOS X.
33181 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
33183 Sync from coreutils.
33184 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
33185 (Depends-on): Add c-strtod.
33186 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
33188 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
33190 Sync from coreutils.
33191 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
33193 Remove files that are specific to coreutils.
33194 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
33196 2005-01-28 Bruno Haible <bruno@clisp.org>
33198 * modules/javacomp: New file.
33199 * MODULES.html.sh (Java): Add javacomp.
33201 2005-01-28 Bruno Haible <bruno@clisp.org>
33203 * m4/javacomp.m4: New file, from GNU gettext.
33205 2005-01-28 Bruno Haible <bruno@clisp.org>
33207 * lib/javacomp.sh.in: New file, from GNU gettext.
33208 * lib/javacomp.h: New file, from GNU gettext.
33209 * lib/javacomp.c: New file, from GNU gettext.
33211 2005-01-26 Simon Josefsson <jas@extundo.com>
33213 * lib/gai_strerror.c: Use GPL in header.
33215 2005-01-26 Bruno Haible <bruno@clisp.org>
33217 * modules/javaexec: New file.
33218 * MODULES.html.sh (Java): Add javaexec.
33220 2005-01-26 Bruno Haible <bruno@clisp.org>
33222 * m4/javaexec.m4: New file, from GNU gettext.
33224 2005-01-26 Bruno Haible <bruno@clisp.org>
33226 * lib/javaexec.sh.in: New file, from GNU gettext.
33227 * lib/javaexec.h: New file, from GNU gettext.
33228 * lib/javaexec.c: New file, from GNU gettext.
33230 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33232 * modules/lchown (Depends-on): Remove lchown.h
33234 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33236 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
33237 must be defined if the header file was not found, in order
33238 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
33240 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33242 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
33243 initializers for struct pentry_state.
33244 (__argp_error): Check return value of __asprintf
33245 (__argp_failure): Translate error message
33247 * lib/argp-parse.c: Removed braces around the expansion of N_()
33249 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
33251 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
33252 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
33253 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
33254 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
33255 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
33256 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
33257 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
33258 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
33259 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
33260 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
33261 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
33262 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
33263 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
33264 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
33265 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
33266 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
33267 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
33268 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
33269 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
33270 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
33271 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
33272 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
33273 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
33274 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
33275 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
33276 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
33277 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
33278 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
33279 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
33280 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
33281 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
33282 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
33283 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
33284 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
33285 xstrtol.m4, xstrtoumax.m4, yesno.m4:
33286 Use an all-permissive copyright notice, recommended by RMS.
33288 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
33290 * modules/chdir-long (Depends-on): Remove mempcpy.
33292 2005-01-21 Jim Meyering <jim@meyering.net>
33294 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
33295 same value as for Solaris 9.
33297 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
33298 component length. This included changing the parameter to be
33299 of type `char *' rather than `char const *'.
33300 * lib/chdir-long.h (chdir_long): Update prototype.
33302 * lib/openat.c (fdopendir, fstatat): New functions.
33303 * lib/openat.h: Include headers required for use of DIR and struct
33305 [AT_SYMLINK_NOFOLLOW]: Define.
33306 (fdopendir, fstatat): Add prototypes.
33308 2005-01-21 Bruno Haible <bruno@clisp.org>
33310 * modules/classpath: New file.
33311 * MODULES.html.sh (Java): Add classpath.
33313 2005-01-21 Bruno Haible <bruno@clisp.org>
33315 * lib/classpath.h: New file, from GNU gettext.
33316 * lib/classpath.c: New file, from GNU gettext.
33318 2005-01-20 Simon Josefsson <jas@extundo.com>
33320 * modules/version-etc-fsf: New file.
33322 2005-01-20 Simon Josefsson <jas@extundo.com>
33324 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
33325 * lib/version-etc.c: Remove version_etc_copyright.
33326 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
33327 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
33329 2005-01-20 Simon Josefsson <jas@extundo.com>
33331 * lib/base64.h (isbase64): Add.
33333 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
33334 using a unsigned prototype, don't inline.
33335 (base64_decode): Use it.
33337 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
33339 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
33342 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
33344 * lib/save-cwd.c (save_cwd): Remove code to support the case
33345 where fchdir is missing or flaky.
33347 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
33349 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
33351 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
33353 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
33354 AC_LIBSOURCES now does this.
33355 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
33356 with new ullong_max module.
33358 2005-01-19 Bruno Haible <bruno@clisp.org>
33360 * modules/sh-quote: New file.
33361 * MODULES.html.sh (Executing programs): Add sh-quote.
33363 2005-01-19 Bruno Haible <bruno@clisp.org>
33365 * lib/sh-quote.h: New file, from GNU gettext.
33366 * lib/sh-quote.c: New file, from GNU gettext.
33368 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
33370 Merge from coreutils.
33371 * m4/ullong_max.m4: New file.
33372 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
33373 (gl_MACROS): Assume localeconv exists.
33375 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
33377 Merge changes from coreutils, as described below in several
33378 changelogs dated today.
33380 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
33381 (O_DIRECTORY): Remove; not needed here, since "." must be
33382 a directory. All uses removed.
33383 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
33384 universal on Suns, and we also need to test for IRIX.
33385 Revamp code to use 'if' rather than '#if'.
33386 Avoid unnecessary comparison of cwd->desc to 0.
33388 * lib/utimens.c (futimens): Robustify the previous patch, by checking
33389 for known valid error numbers rather than observed invalid ones.
33391 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
33393 * modules/ullong_max: New file.
33395 * modules/chdir-long, modules/openat: New files.
33396 * modules/save-cwd (Depends-on): Depend on chdir-long.
33397 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
33399 2005-01-18 Jim Meyering <jim@meyering.net>
33401 Merge from coreutils.
33402 * m4/chdir-long.m4, m4/openat.m4: New files.
33403 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
33404 save-cwd.h. Add AC_LIBOBJ for save-cwd.
33405 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
33406 is sane and DOES follow symlinks. Besides, testing 20 different
33407 systems found no broken chown implementations.
33408 Prompted by a change in rsync's copy of this macro.
33409 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
33411 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
33413 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
33414 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
33415 NULL-means-set-to-current-time semantics.
33416 Remove temporary file immediately, rather than waiting
33417 for configure's at-exit trap code to do it.
33419 2005-01-18 Jim Meyering <jim@meyering.net>
33421 * lib/version-etc.c (version_etc_copyright): Update copyright date.
33423 * lib/utimens.c (futimens): Account for the fact that futimes
33424 can also fail with errno == ENOSYS or errno == ENOENT.
33425 Patch from Dmitry V. Levin.
33427 Change the name of the robust chdir function from chdir to chdir_long.
33428 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
33429 (restore_cwd): Use chdir_long, not chdir.
33430 * lib/chdir-long.c: Renamed from chdir.c.
33431 * lib/chdir-long.h: Renamed from chdir.h.
33432 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
33435 2005-01-18 Bruno Haible <bruno@clisp.org>
33437 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
33438 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
33439 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
33440 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
33441 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
33442 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
33443 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
33444 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
33445 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
33446 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
33447 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
33448 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
33449 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
33450 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
33451 Use an all-permissive copyright notice, recommended by RMS.
33453 2005-01-18 Bob Proulx <bob@proulx.com>
33455 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
33456 simplify offsetof() macro construct to avoid compile failure with
33457 native HP-UX 11.0 ANSI C compiler.
33459 2005-01-17 Bruno Haible <bruno@clisp.org>
33461 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
33462 redundant because stpncpy.m4 takes care of it.
33464 2005-01-17 Bruno Haible <bruno@clisp.org>
33466 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
33468 2005-01-17 Bruno Haible <bruno@clisp.org>
33470 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
33473 2005-01-17 Bruno Haible <bruno@clisp.org>
33475 * lib/fwriteerror.h (fwriteerror): Change specification to include
33477 * lib/fwriteerror.c: Include <stdbool.h>.
33478 (fwriteerror): At the end, close the file stream. Record whether
33479 stdout was already closed.
33481 2005-01-17 Bruno Haible <bruno@clisp.org>
33483 * lib/execute.c (environ): Declare if needed.
33484 * lib/pipe.c (environ): Likewise.
33485 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
33487 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33489 * modules/argp: Depend on vsnprintf
33491 2005-01-10 Jim Meyering <jim@meyering.net>
33493 * modules/closeout (Depends-on): Add atexit.
33495 2005-01-06 Bruno Haible <bruno@clisp.org>
33497 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
33499 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
33501 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
33502 definitions to be after all include files, to avoid collisions.
33503 Problem reported by Bob Proulx.
33505 2005-01-04 Jim Meyering <jim@meyering.net>
33507 Changes imported from coreutils.
33508 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
33509 as the mkstemp template, use a temporary directory and an
33510 8.3-friendly template to avoid trouble on systems like DJGPP.
33511 Reported by Juan M. Guerrero via Stepan Kasal.
33512 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
33513 close. Remove the temporary directory right away, rather than waiting
33514 for configure's at-exit trap code to do it.
33515 Suggestion from Stepan Kasal.
33517 2005-01-01 Simon Josefsson <jas@extundo.com>
33519 * gnulib-tool: Print #include directives when --import'ing.
33521 2004-12-28 Simon Josefsson <jas@extundo.com>
33523 * tests/test-base64.c: Include required header files. Remove
33526 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
33528 * modules/error (Depends-on): Remove gettext.
33530 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
33532 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
33533 not needed. This removes a dependency on the gettext module.
33534 [defined _LIBC]: Do not include <libintl.h>; not needed.
33536 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
33538 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
33539 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
33541 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
33543 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
33546 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
33548 * modules/getdate (Depends-on): Remove alloca-opt.
33550 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
33552 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
33554 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
33556 * lib/argp-parse.c: Include <stddef.h>.
33557 (alignof, alignto): New macros.
33558 (parser_init): Don't assume that void * is aligned sufficiently
33561 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
33562 need to extend the stack.
33563 (YYINITDEPTH): New macro, so that the initial stack isn't overly
33566 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33568 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
33570 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
33572 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
33573 (2004-10-24) change. Apparently this was a false alarm.
33575 * modules/getdate: Depend on alloca-opt, not alloca.
33577 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
33579 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
33580 Remove now-obsolete comment about AIX.
33581 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
33582 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
33583 (YYMAXDEPTH): New macro.
33585 2004-12-18 Simon Josefsson <jas@extundo.com>
33587 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
33589 2004-12-18 Bruno Haible <bruno@clisp.org>
33591 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
33593 2004-12-18 Bruno Haible <bruno@clisp.org>
33595 * lib/fatal-signal.c (fatal_signals): Make non-const.
33596 (init_fatal_signals): New function.
33597 (uninstall_handlers, install_handlers): Ignore signals that were set to
33599 (at_fatal_signal): Call init_fatal_signals.
33600 (init_fatal_signal_set): Likewise. Ignore signals that were set to
33602 Reported by Paul Eggert.
33604 2004-12-18 Bruno Haible <bruno@clisp.org>
33606 * doc/alloca.texi: New file.
33607 * doc/alloca-opt.texi: New file.
33609 2004-12-17 Jim Meyering <jim@meyering.net>
33611 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
33612 Otherwise, install-sh could exit with improper exit status when
33613 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
33615 2004-12-16 Simon Josefsson <jas@extundo.com>
33617 * tests/test-base64.c: Add license.
33619 2004-12-15 Stepan Kasal <address@hidden>
33621 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
33623 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
33625 * modules/getcwd (Files): Add m4/d-ino.m4.
33626 Suggested by Mark D. Baushke.
33628 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
33630 * lib/getdate.y (textint): New member "negative".
33631 (time_zone_hhmm): New function.
33632 Expect 14 shift-reduce conflicts, not 13.
33633 (o_colon_minutes): New rule.
33634 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
33635 (yylex): Set the "negative" member of signed numbers.
33637 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
33639 * doc/getdate.texi (Time of day items, Time zone items):
33640 Describe new formats +00:00, UTC+00:00.
33642 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
33644 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
33645 spurious "-l"s. Problem reported by Stepan Kasal.
33647 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
33649 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
33650 in Autoconf 2.59. Problem reported by Mark D. Baushke.
33652 2004-12-04 Simon Josefsson <jas@extundo.com>
33654 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
33655 Vandoorselaere <yoann@prelude-ids.org>.
33657 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
33659 Changes imported from coreutils.
33660 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
33662 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
33664 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
33666 Changes imported from coreutils.
33667 * lib/hard-locale.c: Assume <locale.h> exists.
33668 Include "strdup.h".
33669 (GLIBC_VERSION): New macro.
33670 (hard_locale): Assume setlocale exists.
33671 Rewrite to avoid #ifdef.
33672 Use strdup rather than malloc + strcpy.
33673 * lib/human.c: Assume <locale.h> exists.
33674 (human_readable): Assume localeconv exists.
33676 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
33678 * modules/hard-locale (Depends-on): Add strdup.
33680 2004-12-01 Jakub Jelinek <jakub@redhat.com>
33682 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
33683 convert T2, not T. (Imported from libc.)
33685 2004-11-30 Simon Josefsson <jas@extundo.com>
33687 * modules/restrict (License): Change to LGPL.
33689 2004-11-30 Simon Josefsson <jas@extundo.com>
33691 * m4/restrict.m4: Add copyright and copying conditions.
33693 2004-11-30 Simon Josefsson <jas@extundo.com>
33695 * m4/base64.m4: New file.
33697 2004-11-30 Simon Josefsson <jas@extundo.com>
33699 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
33702 * tests/test-base64.c: New file.
33704 * modules/base64: New file.
33706 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
33708 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
33709 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
33711 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
33713 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
33715 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
33716 (__getcwd.c): Don't restore errno; glibc doesn't.
33717 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
33718 first, falling back to our code only if its results look suspicious.
33719 Ensure that the resulting buffer is only as large as necessary.
33721 * lib/readutmp.c: Include readutmp.h first.
33722 Include <errno.h>, since readutmp.h no longer does that.
33723 * lib/readutmp.h: Don't include <errno.h>,
33724 <sys/param.h>, <time.h>; not needed to establish interface.
33725 (errno): Remove decl.
33726 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
33727 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
33728 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
33730 2004-11-28 Simon Josefsson <jas@extundo.com>
33732 * lib/base64.h, base64.c: New file.
33734 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
33736 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
33738 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
33740 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
33741 (Depends-on): Remove pathmax, same. Add mempcpy.
33742 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
33743 (Makefile.am): Append getcwd.h to lib_SOURCES.
33744 (Include): Add getcwd.h.
33745 (Maintainer): Change from Jim Meyering to "all, glibc",
33746 since getdate now uses intended-for-glibc code.
33747 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
33748 (Depends-on): Depend on getcwd. Do not depend on pathmax.
33750 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
33752 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
33753 HP's ANSI C compiler.
33754 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
33755 Declaring int functions causes warnings on some modern systems and
33756 shouldn't be needed to compile on ancient ones.
33757 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
33760 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
33761 with the following changes.
33762 (__set_errno): Parenthesize properly.
33763 Include <stdbool.h>.
33764 (MIN, MAX, MATCHING_INO): New macros.
33765 (__getcwd): Define with prototype, not K&R form.
33766 Use heuristics to allocate default buffer on stack if possible.
33767 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
33768 behavior, and to avoid the PATH_MAX limit when computing
33770 Use MATCHING_INO to compare inode number to file.
33771 Check for arithmetic overflow in size calculations.
33772 Fix bug in reallocation of dot array that caused getcwd to fail
33773 on directories nested deeper than 75.
33774 Be more careful about saving errno on error.
33775 Do not use realloc; use only free+malloc, as this is a bit
33776 more flexible and avoids a needless copy operation.
33777 Do not inspect st_dev and st_ino for symbolic links; POSIX
33778 doesn't specify the latter.
33779 Check for closedir errors.
33780 Avoid needless casts.
33781 Use "#ifdef weak_alias" around weak_alias, to be like other
33783 The following changes to getcwd.c have effect only when used in
33784 gnulib; they have no effect inside glibc proper.
33785 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
33786 as alloca isn't used.
33787 (alloca, __alloca): Likewise.
33788 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
33789 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
33790 unconditionally, as gnulib assumes C89 or better.
33791 Do not include <sys/param.h>.
33792 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
33793 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
33795 (NULL) [!defined NULL]: Remove; we assume C89 or better.
33796 Include <dirent.h> in a way that is compatible with modern Autoconf.
33797 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
33798 New macros, if not already defined.
33799 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
33800 Use "_LIBC", not "defined _LIBC", for consistency.
33801 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
33803 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
33804 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
33805 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
33806 credit only to Jim Meyering and adjust the copyright dates.
33807 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
33808 <stdlib.h>, <unistd.h>, "pathmax.h".
33809 Instead, include "xgetcwd.h" (first) and "getcwd.h".
33810 (INITIAL_BUFFER_SIZE): Remove.
33811 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
33813 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
33815 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
33816 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
33817 Use the _ONCE methods, for efficiency.
33818 Check for fcntl.h. In test program, include <errno.h>
33819 and <fcntl.h> if available. Remove old K&R cruft from
33820 test program. Check for common errors in GNU/Linux,
33821 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
33822 don't do AC_LIBOBJ, as that's getcwd.m4's job.
33823 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
33824 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
33826 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
33827 accommodate new getcwd.c.
33828 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
33829 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
33830 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
33831 that's all we need now.
33833 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33835 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
33836 argp-parse.c depends on getopt internals, that means we should
33837 always use our getopt, to be on the safe side.
33838 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
33839 order not to spoil the result of an eventual previous invocation
33840 of gl_GETOPT_SUBSTITUTE.
33842 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33844 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
33845 redefinition warnings. To avoid them, include the defines
33846 in `#if !defined __need_getopt ... #endif'. The only place
33847 where __getopt_argv_const is used is in definitions
33848 of getopt_long and getopt_long_only below, which are as well
33849 protected by `#ifndef __need_getopt'.
33850 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
33851 __need_getopt after including <stdio.h> and <unistd.h> These
33852 headers might have defined it.
33854 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
33856 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
33858 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
33860 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
33861 (futimens): New function, which uses futimes if available.
33862 (futimens, utimens): Support timespec==NULL, with same semantics
33863 as utime and utimens.
33864 * lib/utimens.h (futimens): New decl.
33866 2004-11-23 Jim Meyering <jim@meyering.net>
33868 * lib/getopt_.h: Remove trailing blanks.
33870 2004-11-23 Jim Meyering <jim@meyering.net>
33872 * lib/__fpending.c: Add comment.
33874 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
33876 * modules/canonicalize (Depends-on): Add xreadlink.
33877 Problem reported by James Youngman.
33879 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
33881 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
33883 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
33884 optopt): Use them instead of invoking ## directly; otherwise, the
33885 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
33887 2004-11-19 Bruno Haible <bruno@clisp.org>
33889 * lib/strtok_r.c: Move comments from here...
33890 * lib/strtok_r.h: ... to here.
33892 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
33894 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
33895 implementations that mishandle size_t overflow.
33897 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
33899 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
33900 might fail. Problem reported by Yoann Vandoorselaere.
33901 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
33902 implementations that mishandle size_t overflow.
33904 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
33906 * modules/canon-host (Depends-on): Add strdup.
33908 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
33910 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
33912 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
33914 * lib/canon-host.c: Include "strdup.h".
33915 (canon_host): Use getaddrinfo if available, so that IPv6 works.
33916 Use strdup instead of malloc/strcpy to duplicate strings.
33918 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
33919 (human_space_before_unit): New constant.
33920 * lib/human.c (human_readable): Support it.
33922 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
33923 (xgetcwd): Set errno correctly when failing.
33924 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
33925 the failure is actually due to a PATH_MAX problem.
33927 Further getopt changes to make it more likely that glibc will
33928 buy the changes back.
33929 * lib/getopt.c (POSIXLY_CORRECT): New constant.
33930 (getopt): Use it, so to preserve glibc semantic
33931 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
33932 when compiling for libc.
33933 * lib/getopt_.h (__getopt_argv_const): Bring it back.
33934 (getopt_long, getopt_long_only): Use it.
33936 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
33937 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
33938 (getopt): Argv is now char * const *, as per standard.
33939 (_getopt_internal_r, _getopt_internal): Argv is now char **,
33940 not char *__getopt_argv_const *.
33941 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
33942 _getopt_long_only_r): Likewise.
33943 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
33944 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
33945 _getopt_long_r, _getopt_long_only_r): Likewise.
33946 * lib/getopt_.h (__getopt_argv_const): Remove.
33947 (getopt): Argv is now char * const *, as per standard.
33949 * lib/getdate.y (tORDINAL): New token.
33950 (day, relunit): Allow it for relative times.
33951 (relative_time_table): Use tORDINAL for ordinals.
33953 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
33955 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
33956 Document that "second" isn't allowed as an ordinal number.
33958 2004-11-16 Jim Meyering <jim@meyering.net>
33960 * modules/closeout (Depends-on): Add fpending.
33962 2004-11-15 Jim Meyering <jim@meyering.net>
33964 * lib/closeout.c: Include "__fpending.h" once again.
33965 Include <stdbool.h>.
33966 (close_stdout): Don't fail just because stdout was closed initially,
33967 since some programs don't write to stdout in the normal course of
33968 operation (other than --version and --help), and we don't want this
33969 function to make e.g. `touch file >&-' fail.
33970 But do fail if it was closed and someone has tried to write to it.
33971 E.g., `printf foo >&-' must fail.
33973 2004-11-13 Jim Meyering <jim@meyering.net>
33975 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
33977 2004-11-12 Simon Josefsson <jas@extundo.com>
33979 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
33980 small doc fix is still pending.
33982 2004-11-11 Simon Josefsson <jas@extundo.com>
33984 * modules/strtok_r: New file.
33986 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33989 2004-11-11 Simon Josefsson <jas@extundo.com>
33991 * m4/strtok_r.m4: New file.
33993 * m4/getopt.m4: Replace opterr.
33995 2004-11-11 Simon Josefsson <jas@extundo.com>
33997 * lib/strtok_r.h, strtok_r.c: New file.
33999 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
34001 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
34002 of replacing opterr, getopt, etc. This should handle the
34003 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
34005 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
34007 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
34008 we can stop lying to compilers about the constness of argv when we
34009 are compiled outside glibc.
34010 (getopt, getopt_long, getopt_long_only): Use it.
34011 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
34012 _getopt_internal, getopt): Likewise.
34013 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
34014 _getopt_long_only_r): Likewise.
34015 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
34016 _getopt_long_r, _getopt_long_only_r): Likewise.
34018 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
34019 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
34020 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
34021 the other external symbols.
34022 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
34023 declaration, since the above renaming now works around collisions.
34025 2004-11-11 Jim Meyering <jim@meyering.net>
34027 * lib/linebreak.c: Remove trailing blanks.
34028 * lib/alloca_.h: Likewise.
34029 * lib/acosl.c: Likewise.
34030 * lib/euidaccess.c: Likewise.
34031 * lib/allocsa.h: Likewise.
34033 2004-11-10 Simon Josefsson <jas@extundo.com>
34035 * m4/getaddrinfo.m4: New file.
34037 2004-11-10 Simon Josefsson <jas@extundo.com>
34039 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
34041 2004-11-10 Simon Josefsson <jas@extundo.com>
34043 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34046 * modules/getaddrinfo: New file.
34048 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
34050 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
34052 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
34054 * lib/mktime.c (SHR): New macro, which is a portable
34055 substitute for >> that should work even on Crays.
34056 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
34057 Problem reported by Mark D. Baushke in
34058 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
34059 * lib/getdate.y (SHR): Likewise.
34061 * lib/strftime.c (SHR): Likewise.
34063 * lib/quotearg.c (struct quoting_options): Use unsigned int for
34064 quote_these_too, so that right shifts are well defined. All uses
34067 2004-11-10 Jim Meyering <jim@meyering.net>
34069 Ensure that no close failure goes unreported.
34070 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
34071 return early when it seems there's nothing to flush.
34072 Don't include __fpending.h.
34074 2004-11-10 Jim Meyering <jim@meyering.net>
34076 * modules/closeout (Depends-on): Remove fpending.
34078 2004-11-10 Jim Meyering <jim@meyering.net>
34080 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
34082 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
34084 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
34086 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
34087 and AC_REQUIRE when possible, to avoid duplicate checks.
34088 Check for <wchar.h>.
34090 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
34092 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
34094 2004-11-09 Bruno Haible <bruno@clisp.org>
34096 * m4/sockpfaf.m4: New file.
34098 2004-11-05 Bruno Haible <bruno@clisp.org>
34100 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
34101 Reported by Mark D. Baushke <mdb@cvshome.org>.
34103 2004-11-04 Bruno Haible <bruno@clisp.org>
34105 2004-09-11 Bruno Haible <bruno@clisp.org>
34106 * allocsa.valgrind: New file.
34107 2004-02-06 Bruno Haible <bruno@clisp.org>
34108 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
34109 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
34110 Reported by Christopher Seip <chris.seip@hp.com>.
34112 2004-11-04 Bruno Haible <bruno@clisp.org>
34114 * modules/allocsa (Files): Add lib/allocsa.valgrind.
34115 (Makefile.am): Distribute it.
34117 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
34119 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
34120 with errno == ERANGE if the buffer is too small.
34121 Problem reported by Mark D. Baushke.
34123 2004-11-03 Albert Chin <china@thewrittenword.com>
34124 Paul Eggert <eggert@cs.ucla.edu>
34126 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
34127 equivalent, substitute $ac_type for equivalent type rather than
34128 blindly using uint32_t *always* which won't work if uint32_t is not
34129 available. Define _UINT32_T to work around typedef of uint32_t if
34130 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
34133 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
34135 * m4/jm-macros.m4: Sync from coreutils.
34136 (gl_MACROS): Check for mbrlen, for pathchk.
34137 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
34139 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
34141 * lib/xreadlink.c (MAXSIZE): New macro.
34142 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
34143 size does not exceed MAXSIZE. Avoid cast.
34144 As suggested by Mark D. Baushke in
34145 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
34146 if readlink fails with buffer size just under MAXSIZE, try again
34149 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
34151 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
34153 2004-11-02 Derek R. Price <derek@ximbiot.com>
34154 and Paul Eggert <eggert@cs.ucla.edu>
34156 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
34157 (get_date): Overparenthesize to avoid GCC warning.
34159 2004-11-02 Bruno Haible <bruno@clisp.org>
34161 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
34164 2004-11-02 Bruno Haible <bruno@clisp.org>
34166 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
34167 function returns void.
34169 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
34171 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
34172 fflush_unlocked, flockfile, funlockfile, funlockfile,
34173 fputs_unlocked, putc_unlocked.
34175 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
34177 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
34178 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
34181 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
34183 * modules/getdate (Files): Add doc/getdate.texi.
34184 (Depends-on): Add setenv, xalloc.
34186 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
34188 * lib/getdate.y: Add support for TZ="foo" within a date string.
34189 Fix some bugs near time_t boundaries. Reject dates with
34190 out-of-range components, e.g., "Sept 31".
34191 Include <stdlib.h>, "setenv.h", "xalloc.h".
34192 (ISDIGIT_LOCALE): Remove; unused.
34193 Note that the TZ and time functions used here are not reentrant.
34194 (mktime_ok, get_tz): New functions.
34195 (TZBUFSIZE): New constant.
34196 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
34197 This requires that we sometimes generate our own TZ="XXX..." setting.
34199 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
34201 * doc/getdate.texi: New file, from coreutils with modifications for
34202 the new TZ parsing.
34204 2004-10-27 Derek R. Price <derek@ximbiot.com>
34206 * lib/mktime.c (not_equal_tm): Remove redundant check.
34208 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
34210 * modules/regex (lib_SOURCES): Add regex.c.
34211 Reported by James Youngman in
34212 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
34214 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
34216 * lib/getdate.y: Use Bison 1.875 features, and some minor
34217 code cleanups. This change does not affect semantics.
34218 Don't include <stdlib.h>; no longer needed.
34219 Don't include unlocked-io.h; only the "#if TEST" code uses
34220 stdio, and performance isn't crucial there.
34221 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
34222 Bison 1.875 features as described below.
34223 All uses of "PC." replaced by "pc->".
34224 (YYSTYPE): Add a forward declaration.
34225 (yylex, yyerror): Use full prototypes in forward decls.
34226 Use "%pure-parser" rather than obsolescent "%pure_parser".
34227 Use %parse-param and %lex-param instead of obsolescent
34228 YYPARSE_PARAM and YYLEX_PARAM.
34229 (meridian_table, month_and_day_table, time_units_table,
34230 relative_time_table, time_zone_table, military_table,
34231 lookup_zone, lookup_word, get_date):
34232 Use NULL instead of 0 where appropriate.
34233 (to_hour): Avoid abort (), to avoid a dependency on
34235 (yyerror, yylex): Now accepts parser_control * arg.
34236 (main) [TEST]: Use '\0' rather than 0 for char.
34238 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
34240 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
34242 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
34244 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
34245 It's now the caller's responsibility to handle the case where
34246 !HAVE_GETPAGESIZE && !defined getpagesize.
34248 * lib/mktime.c (leapyear): Arg is long int, not int.
34250 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
34252 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
34254 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
34256 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
34257 missing. Problem reported by James Youngman.
34259 2004-10-16 Simon Josefsson <jas@extundo.com>
34261 * gnulib-tool: Fix comments. Fix parse problem.
34262 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
34264 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
34266 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
34267 implementation of getopt_long. Problem reported by Alexander Taler in:
34268 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
34270 2004-10-15 Bruno Haible <bruno@clisp.org>
34272 * gnulib-tool: Untabify. Initialize supplied_libname.
34273 (func_usage): More homogenous output.
34274 (func_modules_transitive_closure, func_modules_to_filelist,
34275 func_emit_lib_Makefile_am): New functions.
34276 (func_import): New function, extracted from big case statement. Use
34277 func_get_license, func_modules_transitive_closure,
34278 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
34279 opt_lgpl. Don't use test -a, as it's not portable.
34280 (func_create_testdir): Use func_modules_transitive_closure,
34281 func_modules_to_filelist, func_emit_lib_Makefile_am.
34283 2004-10-15 Bruno Haible <bruno@clisp.org>
34285 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
34287 2004-10-15 Bruno Haible <bruno@clisp.org>
34289 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
34290 the portions belonging to each module.
34291 Suggested by Derek Robert Price <derek@ximbiot.com>.
34293 2004-10-12 Simon Josefsson <jas@extundo.com>
34295 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
34296 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
34299 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
34301 * modules/vsnprintf: New file.
34303 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
34305 * m4/vsnprintf.m4: New file.
34307 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
34309 * lib/vsnprintf.h: New file.
34310 * lib/vsnprintf.c: New file.
34312 2004-10-11 Bruno Haible <bruno@clisp.org>
34314 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
34317 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
34319 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
34321 2004-10-07 Bruno Haible <bruno@clisp.org>
34323 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
34324 fits into the provided buffer.
34326 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
34328 * lib/diacrit.c, diacrit.h: Add GPL notice.
34330 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
34332 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
34333 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
34334 This avoids a potential constant-folding bug.
34336 2004-10-05 Bruno Haible <bruno@clisp.org>
34338 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
34339 for the declaration of strsep.
34341 2004-10-05 Bruno Haible <bruno@clisp.org>
34343 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
34345 2004-10-04 Simon Josefsson <jas@extundo.com>
34347 * modules/memmem: New file.
34348 * tests/test-memmem.c: New file.
34349 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
34351 2004-10-04 Simon Josefsson <jas@extundo.com>
34353 * m4/memmem.m4: New file.
34355 2004-10-04 Simon Josefsson <jas@extundo.com>
34357 * lib/memmem.h: New file.
34358 * lib/memmem.c: New file, taken from glibc.
34360 2004-10-04 Simon Josefsson <jas@extundo.com>
34362 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
34363 '#ifdef USE_UNLOCKED_IO'.
34365 2004-10-04 Simon Josefsson <jas@extundo.com>
34367 * config/srclist.txt: Add memmem from glibc.
34369 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
34371 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
34373 * modules/argmatch, modules/argp, modules/closeout, modules/error,
34374 modules/exclude, modules/getdate, modules/getline,
34375 modules/getndelim2, modules/getpass, modules/getpass-gnu,
34376 modules/getusershell, modules/linebuffer, modules/md5,
34377 modules/mountlist, modules/posixtm, modules/readtokens,
34378 modules/readutmp, modules/regex, modules/sha1,
34379 modules/version-etc, modules/yesno:
34380 Remove dependency on unlocked-io.
34382 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
34384 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
34386 * m4/unlocked-io.m4: Add copyright notice.
34387 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
34389 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
34391 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
34392 * lib/xmalloc.c (xmemdup): Likewise.
34393 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
34394 XFREE): Remove these long-obsolescent macros.
34395 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
34396 * lib/xstrdup.c: Remove.
34398 * lib/regex.c (re_comp): Cast gettext return value to char *,
34399 Problem reported by Martin Neitzel via Mark D. Baushke.
34401 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
34403 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
34404 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
34405 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
34406 regex.c, sha1.c, version-etc.c, yesno.c:
34407 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
34408 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
34409 the includer's responsibility.
34411 Sync from coreutils.
34413 * lib/modechange.c (mode_compile): Don't decrement a pointer that
34414 points to the start of a string, as the C Standard says the
34415 resulting behavior is undefined.
34417 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
34418 simple -> simple_backups, numbered_existing ->
34419 numbered_existing_backups, numbered -> numbered_backups
34420 to avoid shadowing problems. All uses changed.
34421 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
34422 * lib/backupfile.c (check_extension, numbered_backup):
34423 Rename locals to avoid shadowing 'basename'.
34424 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
34427 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
34428 * lib/.cvsignore: Add getopt.h.
34430 2004-10-04 Bruno Haible <bruno@clisp.org>
34432 * modules/README: New file.
34433 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
34436 2004-10-02 Jim Meyering <jim@meyering.net>
34438 * lib/dirfd.h, getpagesize.h: Add copyright notice.
34440 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
34442 * modules/strsep: New file.
34444 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
34446 * m4/strsep.m4: New file.
34448 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
34450 * lib/strsep.h: New file.
34451 * lib/strsep.c: New file.
34453 2004-10-01 Simon Josefsson <jas@extundo.com>
34455 * lib/snprintf.c (snprintf): Handle size==0.
34457 2004-10-01 Simon Josefsson <jas@extundo.com>
34458 Bruno Haible <bruno@clisp.org>
34460 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
34461 (snprintf): Declare 'args'.
34463 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
34465 * lib/snprintf.c: Remove comments as to why each header is needed.
34467 2004-10-01 Bruno Haible <bruno@clisp.org>
34469 * MODULES.html.sh: Add strsep.
34471 2004-09-30 Simon Josefsson <jas@extundo.com>
34473 * modules/snprintf: New file.
34475 2004-09-30 Simon Josefsson <jas@extundo.com>
34477 * m4/snprintf.m4: New file.
34479 2004-09-30 Simon Josefsson <jas@extundo.com>
34481 * lib/snprintf.h, lib/snprintf.c: New files.
34483 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
34485 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
34486 (hol_entry_help): Never translate an empty string.
34487 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
34488 * lib/argp.h (OPTION_NO_TRANS): New option.
34490 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
34492 * modules/argp (Maintainer): Replace Simon Josefsson
34493 by Sergey Poznyakoff.
34495 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
34497 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
34498 changes merged back into glibc.
34500 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
34502 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
34504 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
34506 * lib/xvasprintf.c: Include xalloc.h.
34507 (xvasprintf): Use xalloc_die, not xmalloc_die.
34509 2004-09-29 Bruno Haible <bruno@clisp.org>
34511 * modules/alloca-opt: New file, derived from modules/alloca.
34512 * modules/allocsa: Depend on alloca-opt instead of alloca.
34513 * modules/setenv: Likewise.
34514 * modules/vasnprintf: Likewise.
34515 * MODULES.html.sh: Add alloca-opt.
34517 2004-09-28 Simon Josefsson <jas@extundo.com>
34519 * gnulib-tool: New parameter --lgpl, to asseert that modules are
34520 LGPL, and to replace license template from GPL to LGPL.
34522 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
34524 * modules/dummy: Change license to LGPL.
34526 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
34528 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
34530 2004-09-24 Simon Josefsson <jas@extundo.com>
34532 * modules/minmax (License): Change from GPL to LGPL.
34534 2004-09-23 Simon Josefsson <jas@extundo.com>
34536 * gnulib-tool (--import): Typo.
34538 2004-09-23 Simon Josefsson <jas@extundo.com>
34540 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
34542 2004-09-22 Bruno Haible <bruno@clisp.org>
34544 * modules/*: Add 'License' field.
34545 * gnulib-tool: Accept --extract-license option.
34546 (func_get_license): New function.
34548 2004-09-21 Bruno Haible <bruno@clisp.org>
34550 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
34551 Reported by Simon Josefsson.
34553 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
34555 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
34556 gl_AC_TYPE_LONG_LONG.
34558 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
34560 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
34562 2004-09-18 Simon Josefsson <jas@extundo.com>
34563 and Paul Eggert <eggert@cs.ucla.edu>
34565 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
34566 calls with autoreconf. Define GL_LIB.
34568 2004-09-14 Karl Berry <karl@gnu.org>
34570 * config/srclist.txt: unsync setenv.c, sigh.
34572 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
34574 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
34575 Problem reported by Bruno Haible in:
34576 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
34578 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
34580 * config/srclist.txt: Comment out argp-pvh.c.
34582 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
34584 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
34585 in case some system header has #define'd it. Problem reported by
34586 Soeren D. Schulze in
34587 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
34589 2004-09-09 Karl Berry <karl@gnu.org>
34591 * regex.[ch]: delete from the root. These were supposed to be
34592 synced with emacs cvs, but this has not happened for about
34593 a year, and anyway nothing else uses emacs regex.[ch].
34594 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
34595 lib/regex[.ch] is untouched.
34597 2004-09-09 Bruno Haible <bruno@clisp.org>
34599 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
34601 2004-09-09 Bruno Haible <bruno@clisp.org>
34603 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
34605 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
34607 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
34609 * modules/xvasprintf: New file.
34610 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
34612 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
34614 * lib/xvasprintf.h: New file.
34615 * lib/xvasprintf.c: New file.
34616 * lib/xasprintf.c: New file.
34618 2004-09-08 Bruno Haible <bruno@clisp.org>
34620 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
34622 2004-09-08 Bruno Haible <bruno@clisp.org>
34624 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
34625 length is > INT_MAX.
34626 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
34629 2004-09-08 Bruno Haible <bruno@clisp.org>
34631 * lib/stdint_.h: New file, taken from GNU clisp.
34633 2004-09-08 Bruno Haible <bruno@clisp.org>
34634 Oskar Liljeblad <oskar@osk.mine.nu>
34636 * modules/stdint: New file.
34637 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
34639 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
34641 Import from coreutils.
34642 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
34643 strings on unbounded length. alloca's performance benefits aren't
34644 that important here.
34645 (V_STRDUP): Remove.
34646 (parse_with_separator): New function, with most of the internals
34647 of the old parse_user_spec. Allow user to omit both user and group,
34648 for compatibility with FreeBSD.
34649 Clone only the user name, not the entire spec.
34650 Do not set *uid, *gid unless entirely successful.
34651 Avoid memory leak in some failing cases.
34652 Fix regression for USER.GROUP reported by Dmitry V. Levin in
34653 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
34654 (parse_user_spec): Rewrite to use parse_with_separator.
34656 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
34658 * modules/userspec: Don't depend on alloca.
34660 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
34662 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
34664 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
34666 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
34667 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
34668 utimecmp, utimens, xnanosleep. Rename sha to sha1.
34670 2004-08-16 Simon Josefsson <jas@extundo.com>
34672 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
34673 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
34674 Add --dry-run for --import.
34675 Let user provided command line parameters override configure.ac
34678 2004-08-12 Simon Josefsson <jas@extundo.com>
34680 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
34681 as discussed with Paul Eggert in threads rooted at
34682 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
34684 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
34685 Before, the test was empty, and relied on ELIDE_CODE in source
34687 (gl_PREREQ_GETOPT): New macro.
34688 (gl_GETOPT): Use them.
34690 2004-08-12 Simon Josefsson <jas@extundo.com>
34692 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
34693 * lib/getopt_.h: Renamed from getopt.h.
34695 2004-08-12 Simon Josefsson <jas@extundo.com>
34697 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
34698 Change default library name from libfoo to libgnu.
34699 Now, if you have a configure.ac that says:
34702 gl_MODULES(error getopt etcetera)
34704 you can import all you need by running:
34705 ../gnulib/gnulib-tool --import
34707 * modules/getopt (Files): Rename getopt.h to getopt_.h.
34708 (Makefile.am): Rewrite, use logic from argz.
34709 (Include): Use <getopt.h> instead of "getopt.h".
34711 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
34713 * modules/argp (Files): Add m4/unlocked-io.m4.
34714 (Depends-on): Add extensions.
34716 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
34718 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
34719 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
34720 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
34721 Check for program_invocation_name, program_invocation_short_name,
34722 flockfile, funlockfile, features.h, _getopt_long_only_r.
34724 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
34726 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
34727 its complicated substitute.
34728 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
34729 and program_invocation_name.
34730 (__argp_basename) [!_LIBC]: Remove; the only use was
34731 replaced by its body.
34732 (__argp_short_program_name): Change condition from
34733 !defined __argp_short_program_name to
34734 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
34735 to match argp-namefrob.h.
34736 (__argp_failure): Don't assume strerror_r returns char *.
34737 * lib/argp-parse.c (N_): Define unconditionally.
34738 (argp_default_options): Fill out initializers with 0 to avoid
34741 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
34743 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
34746 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
34748 Merge from coreutils.
34750 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
34752 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
34753 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
34755 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
34757 Merge from coreutils.
34759 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
34760 wmemchr or wmemcpy. Problem reported by Robert Dahlem
34761 for Reliant Unix 5.43.
34763 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
34764 (union fooround): Use uintmax_t, not long int.
34765 The rest is a merge from libc:
34766 [defined _LIBC]: Include <shlib-compat.h>.
34767 (_obstack) [defined _LIBC]: Remove after 2.3.4.
34769 * lib/settime.c (settime): Recode to avoid warning with
34772 * lib/strverscmp.c: Convert to UTF-8.
34774 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
34776 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
34779 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
34781 * modules/xalloc-die: New file.
34782 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
34784 * modules/md5 (Files): Add m4/uint32_t.m4.
34785 * modules/sha1: Renamed from modules/sha.
34787 Rename lib/sha.h to lib/sha1.h.
34788 Rename lib/sha.c to lib/sha1.c.
34789 Rename m4/sha.m4 to m4/sha1.m4.
34790 (lib_SOURCES): Likewise.
34791 (configure.ac): Rename gl_SHA to gl_SHA1.
34792 (Include): sha.h -> sha1.h.
34794 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
34796 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
34797 * m4/sha1.m4: Renamed from sha.m4.
34798 (gl_SHA1): Renamed from gl_SHA. All uses changed.
34800 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
34802 * lib/obstack.h (obstack_empty_p):
34803 Don't assume that chunk->contents is suitably aligned.
34804 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
34805 Likewise. Problem reported by Benno in
34806 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
34808 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
34809 readable. This could be improved further but it'd take some work.
34811 2004-08-08 Simon Josefsson <jas@extundo.com>
34813 * modules/xgethostname (Depends-on): Remove exit and error (not
34816 * modules/getpass-gnu: Add getpass.h.
34817 (Depends-on): Add stdbool.
34818 * modules/getpass: Add getpass.h.
34820 2004-08-08 Simon Josefsson <jas@extundo.com>
34822 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
34823 Check getpass declaration.
34825 2004-08-08 Simon Josefsson <jas@extundo.com>
34827 * lib/xgethostname.c: Don't include error.h (not used).
34829 * lib/getpass.h: Add.
34830 * lib/getpass.c: Include getpass.h first.
34832 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
34834 * lib/xalloc-die.c: New file.
34835 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
34837 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
34838 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
34840 (_, N_, xalloc_die): Move to xalloc-die.c.
34841 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
34842 so that we needn't mess with xalloc_msg_memory_exhausted.
34844 * lib/sha1.h: Renamed from sha.h.
34845 (SHA1_H): Renamed from _SHA_H.
34846 (sha1_ctx): Renamed from sha_ctx.
34847 (sha1_init_ctx): Renamed from sha_init_ctx.
34848 (sha1_process_block): Renamed from sha_process_block.
34849 (sha1_process_bytes): Renamed from sha_process_bytes.
34850 (sha1_finish_ctx): Renamed from sha_finish_ctx.
34851 (sha1_read_ctx): Renamed from sha_read_ctx.
34852 (sha1_stream): Renamed from sha_stream.
34853 (sha1_buffer): Renamed from sha_buffer.
34854 * lib/sha1.c: Likewise; renamed from sha.c.
34855 Do not include <sys/types.h>.
34856 Include <stddef.h> rather than <stdlib.h>.
34858 2004-08-08 Bruno Haible <bruno@clisp.org>
34860 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
34861 FILESYSTEM_PREFIX_LEN.
34862 * lib/progreloc.c: Likewise.
34863 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
34865 2004-08-06 Simon Josefsson <jas@extundo.com>
34867 * modules/progname (Depends-on): Don't depend on stdbool.
34869 2004-08-06 Simon Josefsson <jas@extundo.com>
34871 * modules/getsubopt: New file.
34872 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34875 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
34877 More merge from coreutils.
34879 * m4/utimens.m4, m4/utimecmp.m4: New files.
34880 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
34881 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
34882 prereq.m4, sha.m4: Import changes from coreutils.
34884 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
34886 More merge from coreutils.
34887 * modules/raise, modules/readtokens0, modules/utimens:
34888 * modules/utimecmp, module/xnanosleep: New files.
34889 * modules/strftime: Add lib/strftime.h.
34890 Change include from <time.h> to "strftime.h".
34891 * modules/yesno: Add lib/yesno.h.
34892 * modules/backupfile: Remove lib/addext.c.
34893 * modules/euidaccess: Add stat-macros.h.
34894 * modules/canonicalize, modules/euidaccess,
34895 modules/filemode, modules/lchown, modules/makepath,
34896 modules/rmdir, modules/stat: Likewise.
34898 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
34901 * lib/argp-help.c (make_hol, hol_append): Don't assume that
34902 SIZE_MAX is a valid preprocessor constant.
34903 (__argp_basename): Change from "#ifndef _LIBC"
34904 to "#ifndef __argp_short_program_name", so that
34905 we don't compile these functions for tar.
34907 More merges from coreutils.
34908 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
34909 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
34910 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
34911 * lib/addext.c: Remove; no longer needed.
34912 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
34913 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
34914 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
34915 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
34916 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
34917 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
34918 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
34919 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
34920 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
34921 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
34922 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
34923 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
34924 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
34925 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
34926 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
34927 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
34928 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
34929 Import changes from coreutils.
34931 2004-08-05 Simon Josefsson <jas@extundo.com>
34933 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
34935 2004-08-05 Simon Josefsson <jas@extundo.com>
34937 * m4/getsubopt.m4: New file.
34939 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
34941 Merge from coreutils.
34943 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
34944 * m4/getcwd-path-max.m4: New files.
34946 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
34947 FILESYSTEM_PREFIX_LEN ->
34948 FILE_SYSTEM_PREFIX_LEN.
34949 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
34950 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
34951 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
34952 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
34954 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
34955 prerequisite modules now handle the DOS stuff.
34956 Don't check for unistd.h.
34958 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
34960 Merge from coreutils.
34962 * lib/.gdb-history: Remove; this doesn't belong here.
34964 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
34965 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
34966 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
34967 * lib/getcwd.c: New files.
34969 * lib/dirname.h: Include <stdbool.h>.
34970 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
34971 for consistency with POSIX terminology. All uses changed.
34972 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
34973 (strip_trailing_slashes): Use bool for booleans.
34974 * lib/stripslash.c (strip_trailing_slashes): Likewise.
34976 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
34977 sometimes returns a positive errno value even when it succeeds.
34978 (print_errno_message) [!LIBC]: Fall back on strerror if
34979 __strerror_r fails.
34981 * lib/path-concat.c (mempcpy): Don't define if a system header defines
34982 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
34983 (longest_relative_suffix): New function.
34984 (path_concat): Use it. Assume first argument is not NULL.
34985 Port to DOS. Omit redundant separators.
34986 Report an error instead of returning NULL.
34987 Use mempcpy instead of memcpy.
34988 (xpath_concat): Remove: not declared or used.
34990 * lib/same.h: Include <stdbool.h>
34991 (same_name): Return bool, not int.
34992 * lib/same.c (same_name): Likewise.
34993 (errno): Don't declare; we assume C89 or better now.
34995 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
34996 if not already defined.
34998 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
34999 * lib/dup-safer.c (errno): Likewise.
35001 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
35003 Merge from coreutils.
35004 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
35005 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
35006 * modules/path-concat: Don't depend on strdup.
35008 2004-08-03 Simon Josefsson <jas@extundo.com>
35010 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
35011 * lib/progname.h: Don't include stdbool.h.
35013 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
35015 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
35016 * MODULES.html.sh (func_all_modules): Remove fatal.
35018 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
35020 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
35022 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
35024 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
35027 2004-08-02 Simon Josefsson <jas@extundo.com>
35029 * lib/getsubopt.h: New file, with comments from Bruno Haible.
35030 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
35031 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
35033 2004-08-01 Simon Josefsson <jas@extundo.com>
35035 * lib/xgetdomainname.c: Include stdlib.h, for free().
35037 2004-07-19 Bruno Haible <bruno@clisp.org>
35039 * MODULES.html.sh (func_all_modules): Add dummy.
35041 2004-07-16 Simon Josefsson <jas@extundo.com>
35043 * modules/dummy: New file.
35045 2004-07-16 Simon Josefsson <jas@extundo.com>
35047 * lib/dummy.c: New file.
35049 2004-07-16 Bruno Haible <bruno@clisp.org>
35051 * lib/backupfile.h: Add extern "C" for C++.
35052 * lib/closeout.h: Likewise.
35053 * lib/copy-file.h: Likewise.
35054 * lib/findprog.h: Likewise.
35055 * lib/full-write.h: Likewise.
35056 * lib/pathname.h: Likewise.
35057 * lib/progname.h: Likewise.
35058 * lib/stpcpy.h: Likewise.
35059 * lib/stpncpy.h: Likewise.
35060 * lib/strcase.h: Likewise.
35061 * lib/strstr.h: Likewise.
35062 * lib/xalloc.h: Likewise.
35064 * lib/mbswidth.h: Add extern "C" for C++.
35065 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
35067 2004-07-13 Robert Millan <robertmh@gnu.org>
35069 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
35071 2004-07-09 Simon Josefsson <jas@extundo.com>
35073 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
35074 failed without this.)
35076 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
35078 * modules/chown (Files): Add lib/fchown-stub.c, since
35079 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
35081 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
35083 * lib/fchown-stub.c: New file.
35085 2004-06-24 Jim Meyering <jim@meyering.net>
35087 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
35089 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
35091 * modules/argz: Omit "#include".
35093 * MODULES.html.sh (func_all_modules): Add calloc, to match
35094 2004-06-01 addition of calloc module.
35096 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
35098 * m4/argz.m4: New file, which is autoupdated from libtool.
35100 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
35102 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
35105 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
35107 * config/srclist-update: Don't insist on "USA." before the
35108 close-comment, as libtool omits the period and puts the */ on a
35110 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
35111 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
35113 2004-06-22 Gary V. Vaughan <gary@gnu.org>
35115 * modules/argz: New file.
35116 * MODULES.html.sh (func_all_modules): Add argz.
35118 2004-06-12 Jim Meyering <jim@meyering.net>
35119 and Paul Eggert <eggert@cs.ucla.edu>
35121 * modules/hash (Files): Add lib/xalloc.h.
35122 * modules/pipe (Depends-on): Add wait-process.
35123 * modules/stat (Depends-on): Add xalloc.
35124 * modules/userspec (Files): Add lib/userspec.h.
35127 Upgrade from gettext-0.13.
35128 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
35129 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
35130 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
35132 2004-06-10 Jim Meyering <jim@meyering.net>
35134 * lib/calloc.c: New file.
35136 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
35138 * lib/getdate.y (yylex): Allow space between sign and number.
35139 Problem reported by Dan Jacobson.
35141 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
35143 Merge from coreutils CVS.
35145 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
35146 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
35147 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
35148 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
35149 xstrtol.m4: Fix copyright date and/or serial number.
35151 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
35152 See if we need an fchown replacement.
35153 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
35154 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
35155 and use the replacement function if we detect either defect.
35157 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
35160 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
35161 and Jim Meyering <jim@meyering.net>
35163 Merge from coreutils CVS.
35165 * lib/stat-macros.h: New file, with contents from file-type.h
35166 and coreutils' system.h.
35167 * lib/file-type.c: Include "stat-macros.h".
35168 * lib/file-type.h (file_type): Move all macro definitions to new file,
35171 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
35172 Wrap old code with this conditional.
35173 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
35174 function that does not dereference symlinks.
35175 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
35177 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
35178 dependency problems.
35179 (xreadlink): Accept new arg SIZE, for efficiency.
35180 All decls and uses changed.
35181 * lib/xreadlink.h: Include <stddef.h>, for size_t.
35183 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
35184 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
35186 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
35189 2004-06-01 Jim Meyering <jim@meyering.net>
35191 * m4/calloc.m4: New file.
35193 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
35195 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
35196 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
35197 Also, fix a typo in a diagnostic.
35199 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
35201 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
35202 or AC_FUNC_REALLOC.
35204 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
35206 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
35207 macros to be defined.
35208 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
35209 the allocator returns NULL because the requested size is zero.
35211 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
35213 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
35214 var. Add comment explaining why libc still defines it. This
35215 merges the following patch from glibc:
35216 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
35218 2004-05-20 Andreas Schwab <schwab@suse.de>
35220 * m4/free.m4: Replace free if it not known to work, not the other
35223 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
35225 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
35226 present in glibc since revision 1.1 of this file.
35227 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
35228 obstack_alignment_mask, obstack_alloc, obstack_base,
35229 obstack_blank, obstack_blank_fast, obstack_chunk_size,
35230 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
35231 obstack_grow0, obstack_init, obstack_int_grow,
35232 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
35233 obstack_next_free, obstack_object_size, obstack_ptr_grow,
35234 obstack_ptr_grow_fast, obstack_room): Remove declarations of
35235 nonexistent functions.
35237 2004-05-18 Karl Berry <karl@gnu.org>
35239 * config/srclist.txt: break link for vasnprintf.c.
35241 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
35243 Port obstack to the AS/400, where pointers are 16 bytes wide and
35244 you cannot cast an integer to a valid pointer. This patch is
35245 currently waiting to be integrated into glibc; see
35246 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
35248 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
35249 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
35250 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
35251 (struct obstack): temp member is now a union of a pointer and
35252 an integer, instead of an integer. All integer uses changed.
35253 This does not affect the physical layout of struct obstack,
35254 except on hosts (like the AS/400) where the size or alignment of
35255 void * is greater than that of ptrdiff_t.
35256 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
35257 __STDC__)]: Store temporary in pointer member of union, not
35259 * lib/obstack.c: Include <stddef.h>, for offsetof.
35260 (struct fooalign): Remove; it doesn't need a name.
35261 (union fooround): Change double to long double, and add void *.
35262 (DEFAULT_ALIGNMENT): Use offsetof to compute.
35263 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
35264 not a macro. Hence the values are always int; so remove all
35265 casts-to-int in uses.
35267 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
35269 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
35270 we can get this patch merged into glibc.
35272 2004-05-17 Derek R. Price <derek@ximbiot.com>
35273 Paul Eggert <eggert@cs.ucla.edu>
35275 * m4/argp: Depend on alloca.
35277 2004-05-17 Derek R. Price <derek@ximbiot.com>
35278 Paul Eggert <eggert@cs.ucla.edu>
35280 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
35283 2004-05-17 Bruno Haible <bruno@clisp.org>
35285 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
35286 precision that consists of a '.' followed by an empty digit string.
35287 Patch by Tor Lillqvist <tml@iki.fi>.
35289 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
35291 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
35292 for backward compatibility with older code. We need our own
35293 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
35294 it under some other name, and our alloca.h will define it.
35296 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
35297 Derek Price <derek@ximbiot.com>
35299 * lib/alloca.c: Include <alloca.h>, to get our interface.
35300 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
35301 include <alloca.h> first. Use C89 prototype for alloca; this
35302 requires including <stddef.h> for size_t. Use extern "C" if C++.
35303 Use #elif for simplicity, since we can assume C89 now.
35304 Don't try to source the system alloca.h since it will not be found
35305 and to prevent recursively including its replacement.
35306 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
35307 * lib/regex.c: Likewise.
35309 2004-05-16 Derek Price <derek@ximbiot.com>
35310 Paul Eggert <eggert@cs.ucla.edu>
35312 getline cleanup. This changes the getndelim2 API: both order of
35313 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
35316 * lib/getline.c: Don't include stddef.h or stdio.h, since our
35317 interface does that.
35318 (getline): Always use getdelim, so that we don't have two
35319 copies of this code.
35320 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
35322 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
35323 (GETNDELIM2_MAXIMUM): New macro.
35324 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
35325 instead of the old practice of delim2==0. All callers changed.
35326 Return -1 on overflow, instead of returning junk.
35327 Do not set *linesize unless allocation succeeds.
35328 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
35329 that we include sys/types.h.
35330 * lib/getnline.h: Likewise.
35331 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
35332 (getndelim2): Reorder arguments.
35333 * lib/getnline.c (getnline, getndelim):
35334 Don't discard the NMAX argument.
35335 (getnline): Invoke getndelim, to avoid code duplication.
35336 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
35337 of (size_t) -1 by callers of the getnline family.
35339 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
35341 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
35342 Check for gettimeofday.
35343 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
35344 Check for settimeofday, stime.
35346 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
35348 * lib/nanosleep.c (suspended): Change its type from int to
35349 sig_atomic_t volatile.
35350 (first_call): Make it private to rpl_nanosleep, and have it
35351 be zero initially as that's a bit faster.
35352 (my_usleep): Round up fractional times instead of truncating them,
35353 as this is the usual meaning for 'sleep'.
35355 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
35357 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
35358 (ENOSYS): Define if not defined.
35359 (settime): Fall back on stime if it exists and settimeofday fails.
35360 But don't bother with fallbacks if a method fails with errno == EPERM.
35362 2004-05-11 Jim Meyering <jim@meyering.net>
35364 Prior to this change, the save_cwd caller required read access to the
35365 current directory on most systems (ones with the fchdir function).
35367 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
35368 fails, try write-only, and finally, resort to using xgetcwd.
35370 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
35372 * lib/obstack.c, obstack.h: Import changes from libc.
35374 2004-04-28 Bruno Haible <bruno@clisp.org>
35376 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
35377 also implicitly appends .exe to executables.
35378 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
35379 accepts Windows pathnames.
35380 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
35381 Treat Cygwin like Windows, since it now accepts Windows pathnames.
35382 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
35383 Treat Cygwin like Windows, since it now accepts Windows pathnames.
35384 Reported by Derek Robert Price <derek@ximbiot.com>.
35386 2004-04-21 Karl Berry <karl@gnu.org>
35388 * config/srclist.txt (localcharset.c): break sync.
35390 2004-04-20 Paul Eggert <eggert@twinsun.com>
35392 * m4/host-os.m4: Add a copyright notice.
35394 2004-04-20 Jim Meyering <jim@meyering.net>
35396 Change UTILS_ to gl_ in AC_DEFINE'd names.
35397 Change utils_- and jm_-prefixed variables, too.
35398 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
35399 UTILS_FUNC_MKDIR_TRAILING_SLASH.
35400 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
35402 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
35403 Don't emit trailing blanks.
35404 Also rename jm_-prefixed variables to have gl_ prefix.
35406 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
35407 Also rename jm_-prefixed variables to have gl_ prefix.
35409 * m4/jm-macros.m4: Reflect the renamings.
35410 * m4/prereq.m4: Likewise.
35412 2004-04-20 Jim Meyering <jim@meyering.net>
35414 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
35417 2004-04-20 Jim Meyering <jim@meyering.net>
35418 Bruno Haible <bruno@clisp.org>
35420 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
35421 memory when realloc fails.
35423 2004-04-19 Jim Meyering <jim@meyering.net>
35425 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
35426 now that readutmp.c may call `free (0)'.
35428 2004-04-19 Bruno Haible <bruno@clisp.org>
35430 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
35431 * m4/inttypes_h.m4: Likewise.
35432 * m4/stdint_h.m4: Likewise.
35433 * m4/intmax_t.m4: Likewise.
35434 * m4/uintmax_t.m4: Likewise.
35436 2004-04-18 Jim Meyering <jim@meyering.net>
35438 * m4/prereq.m4: Don't forbid jm_ prefix.
35440 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
35441 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
35442 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
35443 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
35444 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
35445 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
35446 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
35447 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
35448 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
35449 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
35450 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
35451 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
35452 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
35453 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
35454 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
35455 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
35456 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
35457 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
35458 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
35460 2004-04-18 Jim Meyering <jim@meyering.net>
35462 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
35463 failure, don't leak memory and do call END_UTMP_ENT.
35465 2004-04-16 Jim Meyering <jim@meyering.net>
35467 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
35468 coreutils' stat program.
35469 (gl_PREREQ): Don't require jm_PREREQ_STAT.
35471 2004-04-11 Paul Eggert <eggert@twinsun.com>
35473 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
35475 (CHAR_BIT): Remove, since we assume C89.
35476 Include <stdint.h> if available, as per current Autoconf CVS advice.
35478 2004-03-31 Jim Meyering <jim@meyering.net>
35480 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
35481 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
35482 * m4/xalloc.m4: Likewise.
35484 2004-03-30 Paul Eggert <eggert@twinsun.com>
35486 Merge from coreutils.
35488 * m4/inttostr.m4: New file.
35489 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
35490 Require AM_STDBOOL_H and gl_TIMESPEC instead.
35491 Require gl_CLOCK_TIME.
35492 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
35494 2004-03-30 Paul Eggert <eggert@twinsun.com>
35496 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
35497 not bool, to be more consistent with Unix conventions.
35498 Suggested by Bruno Haible.
35500 Merge from coreutils.
35502 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
35503 * lib/umaxtostr.c: New files.
35505 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
35506 the usual <time.h> dance.
35507 (get_date): Change signature to support fractional time stamps.
35508 All callers changed.
35509 * lib/getdate.y: Include "getdate.h" first, as we can now
35510 assume C89 and don't need to worry about 'const'.
35511 Similarly, include "unlocked-io.h" near start, not in middle.
35512 Include <limits.h>.
35513 (textint.value): Use long int rather than int.
35514 (textint.digits): Use size_t rather than int.
35515 (BILLION, LOG10_BILLION): New constants.
35516 (parser_control): New member rel_ns. Members day_ordinal,
35517 time_zone, month, day, hour, minutes, rel_year, rel_month,
35518 rel_day, rel_hour, rel_minutes, rel_seconds
35519 are now long int, not int. Member seconds is now struct timespec,
35520 not int. New member timespec_seen. Members dates_seen, days_seen,
35521 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
35523 (%union.intval): Now long int, not int.
35524 New member timespec.
35525 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
35526 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
35527 (spec): Now is a timespec or an item list.
35528 (timespec, items): New nonterminals.
35529 (time, rel, relunit, number, get_date):
35530 Add support for fractional seconds.
35531 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
35532 (gmtime, localtime, mktime): Remove decls; not needed with C89.
35533 (to_hour): First arg is now long int, not int.
35534 (to_year): Returns long int, not int.
35535 Don't treat year -70 like 70.
35536 (tm_diff): Returns long int, not int.
35537 (lookup_word): Use bool instead of int when appropriate.
35538 (yylex): Use size_t for count, not int.
35539 Detect overflow when parsing large integer constants.
35540 Add support for fractions.
35541 (get_date): Make pointers 'const' if possible.
35542 Use more-portable code to detect integer overflow.
35543 (main) [TEST]: Adjust to above changes. Test for localtime failure.
35544 Don't use ctime; it's not reliable if the year has >4 digits.
35546 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
35547 This is for compatibility with BSD.
35549 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
35550 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
35551 From coreutils' system.h.
35553 * lib/userspec.c: Don't include "posixver.h".
35554 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
35555 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
35556 compatible extension. Simplify code by removing a boolean int
35557 that was always nonzero if a string was nonnull.
35559 2004-03-30 Jim Meyering <jim@meyering.net>
35561 Merge from coreutils.
35563 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
35564 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
35565 on some systems one must include <grp.h> before it.
35566 Reported by Christian Krackowizer.
35568 2004-03-30 Jim Meyering <jim@meyering.net>
35570 Merge from coreutils.
35572 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
35574 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
35575 an empty input stream.
35577 * lib/readtokens.c: Include <stdbool.h>.
35578 (readtoken): Use `size_t' rather than int/long.
35579 All callers adjusted.
35580 Use `bool' rather than `int' where appropriate.
35581 Use memset rather than an explicit loop.
35582 Use x2nrealloc rather than xrealloc.
35583 Allow the use of `\0' as a delimiter.
35584 (readtokens): Likewise.
35585 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
35587 2004-03-30 Jim Meyering <jim@meyering.net>
35589 * m4/realloc.m4: Remove file, since now it does no more than
35590 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
35591 the `configure.ac' section of module/realloc.
35592 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
35594 2004-03-30 Bruno Haible <bruno@clisp.org>
35596 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
35599 2004-03-29 Paul Eggert <eggert@twinsun.com>
35601 Merge changes to getloadavg.c from coreutils and Emacs.
35603 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
35604 Define to an expression, not to the empty string.
35605 Include cloexec.h and xalloc.h.
35606 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
35607 Use set_cloexec_flag rather than rolling our own.
35608 * lib/cloexec.c, lib/cloexec.h: New files.
35610 2004-03-29 Paul Eggert <eggert@twinsun.com>
35612 * m4/cloexec.m4: New file.
35614 2004-03-18 Paul Eggert <eggert@twinsun.com>
35616 * lib/getopt.h: Sync with libc CVS.
35618 2004-03-18 Paul Eggert <eggert@twinsun.com>
35619 Bruno Haible <bruno@clisp.org>
35621 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
35624 2004-03-18 Paul Eggert <eggert@twinsun.com>
35625 Bruno Haible <bruno@clisp.org>
35627 * lib/mbswidth.h: Include <wchar.h> only if
35628 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
35630 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
35632 2004-03-09 Paul Eggert <eggert@twinsun.com>
35634 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
35635 Sync with libc CVS.
35636 * lib/getopt_int.h: New file, also synced from libc.
35638 2004-03-09 Paul Eggert <eggert@twinsun.com>
35640 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
35641 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
35642 Bring back getopt.c, getopt.h, getopt1.c.
35644 2004-03-07 Paul Eggert <eggert@twinsun.com>
35646 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
35647 All uses changed. Check for sa_sigaction member; this fixes
35648 a bug first reported by Jason Andrade in
35649 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
35651 2004-03-07 Paul Eggert <eggert@twinsun.com>
35653 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
35654 '#if' expressions. Unlike the code it replaces, it does not
35655 depend on (defined _SC_PAGESIZE). However, it does depend on
35656 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
35657 first reported by Jason Andrade in
35658 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
35660 2004-02-25 Simon Josefsson <jas@extundo.com>
35662 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
35664 2004-02-25 Simon Josefsson <jas@extundo.com>
35666 * lib/strdup.h: New file.
35667 * lib/strdup.c: Include it.
35668 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
35669 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
35671 2004-02-23 Karl Berry <karl@gnu.org>
35673 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
35674 (from fencepost.gnu.org:/gd/gnuorg).
35676 2004-02-23 Karl Berry <karl@gnu.org>
35678 * config/srclistvars.sh (GNUORG) [karl]: redefine.
35679 * config/srclist.txt: add maintain/standards documents.
35681 2004-02-18 Bruno Haible <bruno@clisp.org>
35683 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
35684 Reported by Derek Robert Price <derek@ximbiot.com>.
35686 2004-02-16 Karl Berry <karl@gnu.org>
35688 * config/mkinstalldirs, install-sh: update from automake.
35690 2004-02-06 Karl Berry <karl@gnu.org>
35692 * m4/po.m4: update from gettext 0.14.1.
35694 2004-02-06 Karl Berry <karl@gnu.org>
35696 * lib/config.charset: update from gettext 0.14.1.
35698 2004-02-05 Paul Eggert <eggert@twinsun.com>
35700 Add comments and code, prompted by suggestions from Bruno Haible
35702 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
35703 describing the enum quoting_style values.
35704 * lib/quotearg.c (quotearg_alloc): New function.
35705 (quotearg_buffer_restyled): Treat lone { and } as special.
35706 Treat = as special. Work around bug with older shells
35707 that "see" a '\' that is really the 2nd byte of a multibyte char.
35708 Quote empty string with shell_quoting_style.
35710 2004-02-03 Bruno Haible <bruno@clisp.org>
35712 * m4/pipe.m4: New file, from GNU gettext.
35714 2004-02-03 Bruno Haible <bruno@clisp.org>
35716 * lib/pipe.h: New file, from GNU gettext.
35717 * lib/pipe.c: New file, from GNU gettext.
35719 2004-01-27 Bruno Haible <bruno@clisp.org>
35721 * m4/execute.m4: New file, from GNU gettext.
35723 2004-01-27 Bruno Haible <bruno@clisp.org>
35725 * lib/execute.h: New file, from GNU gettext.
35726 * lib/execute.c: New file, from GNU gettext.
35727 * lib/w32spawn.h: New file, from GNU gettext.
35729 2004-01-24 Paul Eggert <eggert@twinsun.com>
35731 Merge from diffutils.
35733 * lib/file-type.c (file_type): Add typed memory objects.
35734 * lib/file-type.h (S_TYPEISTMO): New macro.
35736 * lib/c-stack.h (c_stack_action): Remove argv argument.
35737 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
35738 (die): Don't calculate message unless segv_action returns.
35739 (get_stack_location, min_address_from_argv, max_address_from_argv,
35740 volatile stack_base, volatile_stack_size): Remove.
35741 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
35742 that every segmentation violation is a stack overflow. (Ouch!)
35743 See Debian bug 136249 (still outstanding) for more info about why
35744 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
35746 2004-01-24 Paul Eggert <eggert@twinsun.com>
35748 Exit-status fix from coreutils.
35750 Use exit_failure consistently in place of EXIT_FAILURE,
35751 so that program exit statuses are consistent on failure.
35753 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
35754 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
35755 * lib/argmatch.h: Comment fix to match the above.
35756 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
35757 Now a macro referring to exit_failure, instead of a separate
35758 variable. Include "exitfail.h" to get it.
35759 * lib/xstrtol.h: Include "exitfail.h".
35760 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
35762 * lib/long-options.c (parse_long_options): Use prototype
35763 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
35766 2004-01-21 Jim Meyering <jim@meyering.net>
35768 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
35769 so as not to conflict with a different-sized __mktime_internal
35770 function in GNU libc.
35771 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
35772 Problem building statically-linked `ls' reported by Michael Brunnbauer.
35774 2004-01-20 Karl Berry <karl@gnu.org>
35776 * config/config.guess: update from config.
35778 * config/srclistvars.sh: GNUWWWLICENSES for karl.
35780 2004-01-20 Bruno Haible <bruno@clisp.org>
35782 Safer stack allocation.
35783 * lib/setenv.c: Include allocsa.h.
35784 (alloca): Remove fallback definition.
35785 (freea): Remove macro.
35786 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
35789 2004-01-20 Bruno Haible <bruno@clisp.org>
35791 * m4/eealloc.m4: New file, from GNU gettext.
35793 2004-01-20 Bruno Haible <bruno@clisp.org>
35795 * m4/allocsa.m4: New file, from GNU gettext.
35797 2004-01-20 Bruno Haible <bruno@clisp.org>
35799 * lib/xallocsa.h: New file, from GNU gettext.
35800 * lib/xallocsa.c: New file, from GNU gettext.
35802 2004-01-20 Bruno Haible <bruno@clisp.org>
35804 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
35806 2004-01-20 Bruno Haible <bruno@clisp.org>
35808 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
35809 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
35812 2004-01-20 Bruno Haible <bruno@clisp.org>
35814 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
35817 2004-01-20 Bruno Haible <bruno@clisp.org>
35819 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
35821 2004-01-20 Bruno Haible <bruno@clisp.org>
35823 * lib/eealloc.h: New file.
35825 2004-01-20 Bruno Haible <bruno@clisp.org>
35827 * lib/binary-io.h: Avoid warnings on Cygwin.
35829 2004-01-20 Bruno Haible <bruno@clisp.org>
35831 * lib/allocsa.h: New file, from GNU gettext.
35832 * lib/allocsa.c: New file, from GNU gettext.
35834 2004-01-18 Karl Berry <karl@gnu.org>
35836 * doc/gpl.texi, doc/lgpl.texi: new files.
35838 2004-01-18 Karl Berry <karl@gnu.org>
35840 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
35841 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
35843 2004-01-15 Paul Eggert <eggert@twinsun.com>
35845 Merge from coreutils.
35847 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
35848 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
35849 (gl_DEFAULT_POSIX2_VERSION): Move
35850 the documentation from 'configure' into 'config.hin',
35851 so that 'configure --help' isn't burdened by it and
35852 we don't have to worry about its formatting there.
35853 Reword the documentation so that it's more succinct
35854 and can be run together into a single paragraph.
35855 * m4/same.m4 (gl_SAME): Check for pathconf.
35857 2004-01-15 Paul Eggert <eggert@twinsun.com>
35859 Merge from coreutils.
35861 * lib/posixver.c: Include posixver.h.
35863 * lib/same.c: Include <stdbool.h>, <limits.h>.
35864 (_POSIX_NAME_MAX): Define if not defined.
35866 (same_name): If file names are silently truncated, report
35867 that the file names are the same if they are the same after
35868 the silent truncation.
35870 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
35871 conversion function.
35872 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
35873 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
35876 2004-01-15 Jim Meyering <jim@meyering.net>
35878 Merge from coreutils.
35880 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
35881 if no library is required.
35882 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
35883 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
35884 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
35885 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
35886 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
35887 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
35888 value, $ac_cv_search_crypt, if it's "none required".
35889 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
35890 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
35891 not gl_FUNC_GETLOADAVG.
35892 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
35893 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
35895 2004-01-15 Jim Meyering <jim@meyering.net>
35897 Merge from coreutils.
35899 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
35900 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
35901 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
35903 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
35904 optional configure-time default.
35906 * lib/version-etc.c (version_etc_copyright): Update copyright date.
35908 * lib/xreadlink.c (xreadlink): Correct outdated comment.
35910 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
35912 Merge from coreutils.
35914 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
35915 value, $ac_cv_search_nanosleep, if it's "none required".
35917 2004-01-14 Paul Eggert <eggert@twinsun.com>
35919 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
35920 with like-named macro in fnmatch.c.
35921 (EXT): Use an internal constant instead.
35923 Merge fnmatch patches from glibc.
35924 * lib/fnmatch.c (mbsinit): Remove define.
35925 Add libc_hidden_ver (__fnmatch, fnmatch).
35926 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
35927 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
35929 2004-01-14 Karl Berry <karl@gnu.org>
35931 * config/install-sh: update from automake.
35933 2004-01-13 Karl Berry <karl@gnu.org>
35935 * config/install-sh: update from automake.
35937 2004-01-09 Karl Berry <karl@gnu.org>
35939 * config/install-sh: update from automake.
35941 2004-01-05 Karl Berry <karl@gnu.org>
35943 * config/config.{sub,guess}: update from config.
35945 2003-12-31 Karl Berry <karl@gnu.org>
35947 * config/depcomp: update from automake.
35949 2003-12-14 Karl Berry <karl@gnu.org>
35951 * lib/config.charset: update from gettext-runtime.
35953 2003-12-03 Paul Eggert <eggert@twinsun.com>
35955 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
35956 Bug reported by Alfred M. Szmidt.
35958 2003-12-03 Bruno Haible <bruno@clisp.org>
35960 * m4/gettext.m4: Upgrade from gettext-0.13.
35961 * m4/po.m4: Upgrade from gettext-0.13.
35962 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
35963 * m4/intmax.m4: New file, from gettext-0.13.
35964 * m4/printf-posix.m4: New file, from gettext-0.13.
35966 2003-11-29 Karl Berry <karl@gnu.org>
35968 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
35970 2003-11-25 Paul Eggert <eggert@twinsun.com>
35971 Bruno Haible <bruno@clisp.org>
35973 * lib/printf-parse.h: Don't include sys/types.h.
35974 (ARG_NONE): New macro.
35975 (char_directive): Change type of *arg_index fields to size_t.
35976 * lib/printf-parse.c: Don't include sys/types.h.
35977 (SSIZE_MAX): Remove macro.
35978 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
35979 Remove unnecessary overflow check.
35980 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
35983 2003-11-25 Bruno Haible <bruno@clisp.org>
35985 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
35987 2003-11-25 Bruno Haible <bruno@clisp.org>
35989 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
35992 2003-11-24 Paul Eggert <eggert@twinsun.com>
35994 * modules/alloca: Remove dependency on xalloc.
35996 2003-11-24 Paul Eggert <eggert@twinsun.com>
35998 * lib/alloca.c: Remove dependency on xalloc module.
35999 (xalloc_die): Remove.
36000 (memory_full) [!defined emacs]: New macro.
36001 [!defined emacs]: Don't include xalloc.h.
36002 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
36003 address arithmetic overflows. Change datatypes a bit to avoid
36006 2003-11-22 Jim Meyering <jim@meyering.net>
36008 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
36011 2003-11-21 Karl Berry <karl@gnu.org>
36013 * config/config.{sub,guess}: update from config.
36015 2003-11-18 Karl Berry <karl@gnu.org>
36017 * config/config.{sub,guess}: update from config.
36019 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
36021 2003-11-17 Paul Eggert <eggert@twinsun.com>
36023 * README: Mention that S+T cannot overflow if S is the size of
36024 an existing object and T is sufficiently small.
36026 2003-11-17 Jim Meyering <jim@meyering.net>
36028 On systems without utime and without a utimes function capable of
36029 dealing with a NULL struct utimbuf* argument, this utime replacement
36030 could -- in unusual circumstances -- leak a file descriptor.
36031 * lib/utime.c: Include <unistd.h> and <errno.h>.
36032 (utime_null): Be sure to close `fd' and to preserve errno.
36033 Reported by Geoff Collyer via Arnold Robbins.
36035 2003-11-17 Bruno Haible <bruno@clisp.org>
36037 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
36038 (Depends-on): Add xsize.
36040 2003-11-17 Bruno Haible <bruno@clisp.org>
36042 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
36044 2003-11-17 Bruno Haible <bruno@clisp.org>
36046 * lib/vasnprintf.c (alloca): Remove fallback definition.
36047 (freea): Remove definition.
36048 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
36049 Reported by Paul Eggert.
36051 2003-11-16 Paul Eggert <eggert@twinsun.com>
36052 Bruno Haible <bruno@clisp.org>
36054 Protect against address arithmetic overflow.
36055 * lib/printf-args.h: Include stddef.h.
36056 (arguments): Change type of field 'count' to size_t.
36057 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
36058 'unsigned int' where appropriate.
36059 * lib/printf-parse.h: Include sys/types.h.
36060 (char_directive): Change type of *arg_index fields to ssize_t.
36061 (char_directives): Change type of fields 'count', max_*_length to
36063 * lib/printf-parse.c: Include sys/types.h and xsize.h.
36064 (SSIZE_MAX): Define fallback value.
36065 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
36066 instead of 'int' where appropriate. Check a_allocated, d_allocated
36067 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
36068 * lib/vasnprintf.c: Include xsize.h.
36069 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
36070 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
36071 overflow. Avoid wraparound when converting a width or precision from
36074 2003-11-16 Bruno Haible <bruno@clisp.org>
36076 Update from GNU gettext.
36077 * lib/printf-parse.c: Generalize to it can be compiled for wide
36079 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
36080 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
36081 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
36082 SNPRINTF): New macros.
36083 Don't include <alloca.h> if the file is used inside libintl.
36084 (local_wcslen): New function, for Solaris 2.5.1.
36085 (VASNPRINTF): Use it instead of wcslen.
36087 2003-11-16 Bruno Haible <bruno@clisp.org>
36089 * lib/xsize.h (xmax): New function.
36090 (xsum, xsum3, xsum4): Declare as "pure" functions.
36092 2003-11-12 Paul Eggert <eggert@twinsun.com>
36094 * modules/xalloc (Files): Undo latest change, since xalloc.h
36095 no longer needs SIZE_MAX or PTRDIFF_MAX.
36097 2003-11-12 Paul Eggert <eggert@twinsun.com>
36099 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
36102 2003-11-12 Paul Eggert <eggert@twinsun.com>
36104 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
36105 "return", to pacify some unknown compiler. Problem reported
36106 by Joerg Schilling.
36108 2003-11-12 Paul Eggert <eggert@twinsun.com>
36110 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
36111 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
36112 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
36113 heuristic is just as accurate as far as we know, and it removes a
36114 dependency on size_max.m4 and ptrdiff_max.m4.
36116 2003-11-11 Bruno Haible <bruno@clisp.org>
36118 * modules/xsize (Files): Add m4/size_max.m4.
36119 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
36121 2003-11-11 Bruno Haible <bruno@clisp.org>
36123 * m4/size_max.m4: New file.
36124 * m4/ptrdiff_max.m4: New file.
36125 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
36126 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
36127 (gl_XALLOC): Invoke it.
36129 2003-11-11 Bruno Haible <bruno@clisp.org>
36131 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
36132 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
36135 2003-11-10 Paul Eggert <eggert@twinsun.com>
36137 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
36138 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
36139 rejected some allocations of exactly SIZE_MAX - 2 bytes.
36141 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
36142 not (size_t) -1, since it's defined here.
36144 2003-11-09 Karl Berry <karl@gnu.org>
36146 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
36148 2003-11-06 Paul Eggert <eggert@twinsun.com>
36150 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
36151 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
36152 Reject sizes of exactly SIZE_MAX bytes.
36153 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
36154 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
36156 2003-11-05 Bruno Haible <bruno@clisp.org>
36158 * lib/xsize.h: Include limits.h, to avoid a possible collision with
36159 SIZE_MAX defined in <limits.h> on Solaris.
36161 2003-11-04 Jim Meyering <jim@meyering.net>
36163 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
36164 variable names, rather than @VAR@.
36165 * modules/poll: Likewise.
36167 2003-11-04 Bruno Haible <bruno@clisp.org>
36169 * modules/xsize: New file.
36170 * modules/linebreak: Depend on xsize.
36171 * MODULES.html.sh (func_all_modules): Add xsize.
36173 2003-11-04 Bruno Haible <bruno@clisp.org>
36175 * m4/xsize.m4: New file.
36177 2003-11-04 Bruno Haible <bruno@clisp.org>
36179 * lib/xsize.h: New file.
36180 * lib/linebreak.c: Include xsize.h.
36181 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
36182 argument for overflow.
36183 Suggested by Paul Eggert.
36185 2003-11-03 Karl Berry <karl@gnu.org>
36187 * config/config.{guess,sub}: update from config.
36189 2003-11-03 Jim Meyering <jim@meyering.net>
36191 * modules/userspec (lib_SOURCES): Add userspec.h.
36192 (Include): Add "userspec.h".
36193 Improve description.
36195 2003-11-03 Jim Meyering <jim@meyering.net>
36197 * lib/userspec.c: Include "userspec.h".
36198 * lib/userspec.h: New file.
36200 2003-11-03 Bruno Haible <bruno@clisp.org>
36202 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
36204 2003-11-03 Bruno Haible <bruno@clisp.org>
36206 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
36207 available, to avoid (extremely rare) race condition.
36208 Suggested by Paul Eggert.
36210 2003-11-02 Karl Berry <karl@gnu.org>
36212 * config/srclist.txt (vasprintf.c): sync broken, sigh.
36214 2003-10-31 Paul Eggert <eggert@twinsun.com>
36216 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
36217 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
36218 (read_filesystem_list): Set and use me_type_malloced.
36219 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
36220 whatever the type happens to be), for brevity and consistency.
36221 Check for size calculation overflow on Alphas running OSF/1.
36223 2003-10-31 Jim Meyering <jim@meyering.net>
36225 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
36227 * lib/linebuffer.c: Include <string.h> for declaration of memset.
36229 2003-10-30 Paul Eggert <eggert@twinsun.com>
36230 Bruno Haible <bruno@clisp.org>
36232 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
36233 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
36235 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
36237 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
36238 netbsd*-gnu*. Suggested by Robert Millan.
36240 2003-10-29 Paul Eggert <eggert@twinsun.com>
36242 * modules/group-member: Depend on stdbool.
36244 2003-10-29 Paul Eggert <eggert@twinsun.com>
36246 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
36248 2003-10-29 Paul Eggert <eggert@twinsun.com>
36250 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
36251 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
36252 after the 'gnu' in these cases. This fixes some bugs in the
36253 previous change, and is based on suggestions by Robert Millan.
36255 2003-10-29 Paul Eggert <eggert@twinsun.com>
36257 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
36258 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
36260 * lib/quotearg.c (quotearg_n_options): Use it.
36261 * lib/group-member.c: Include <stdbool.h>.
36262 (free_group_info): Arg is now const *; don't free arg.
36263 (get_group_info): Now returns bool and accepts struct group_info *,
36264 rather than returning a malloc'ed struct group_info *.
36265 All uses changed. Check for overflow in internal size calculation.
36267 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
36268 rather than xmalloc/xrealloc.
36269 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
36270 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
36271 conformance bug: the old code used a pointer after freeing the
36272 storage that it addressed.
36273 * lib/hash.c (hash_initialize): Simplify the code by using
36274 xalloc_oversized rather than doing it by hand.
36275 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
36276 the buffer preserved. Use free and xmalloc instead.
36277 * lib/quotearg.c (quotearg_n_options): Likewise.
36278 Use a simpler test for size overflow. Don't use xalloc_oversized
36279 because unsigned int might be wider than size_t (!); this suggests
36280 that we should switch from unsigned int to size_t for slot numbers.
36282 2003-10-28 Paul Eggert <eggert@twinsun.com>
36284 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
36285 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
36286 NetBSD kernels. Requested by Richard Stallman.
36288 2003-10-27 Paul Eggert <eggert@twinsun.com>
36290 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
36291 to allocate the returned structure. Do not allocate a subarray,
36292 as x2nrealloc will do that.
36293 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
36294 instead of xnrealloc.
36295 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
36297 2003-10-27 Bruno Haible <bruno@clisp.org>
36299 * lib/stdbool_.h: Better support for BeOS.
36301 2003-10-26 Paul Eggert <eggert@twinsun.com>
36303 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
36306 2003-10-26 Paul Eggert <eggert@twinsun.com>
36308 * lib/xalloc.h (xalloc_oversized): New static inline function, for
36309 callers that want to do their own size-overflow checking. Include
36310 <stdbool.h>, since xalloc_oversized returns bool.
36311 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
36312 to use xalloc_oversized.
36314 Add two functions x2realloc, x2nrealloc, for programs that grow
36315 arrays dynamically by doubling their sizes.
36316 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
36317 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
36320 Port to C99 semantics for 'inline' of external functions.
36321 Bug reported by Bruno Haible.
36322 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
36323 with the old contents of xnmalloc.
36324 (xnmalloc, xmalloc): Use it.
36325 (xnrealloc_inline): New static inline function,
36326 with the old contents of xnrealloc.
36327 (xnrealloc, xrealloc): Use it.
36329 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
36332 2003-10-26 Karl Berry <karl@gnu.org>
36334 * config/srclist.txt (COPYING.DOC): no longer available from
36335 /gd/gnuorg; don't know where the ultimate source is.
36337 2003-10-25 Paul Eggert <eggert@twinsun.com>
36339 Fix several address-calculation bugs in the hash modules,
36340 plus some minor code cleanup.
36342 * lib/hash.h: Include <stdbool.h>, for bool.
36343 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
36344 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
36345 hash_get_n_entries, hash_get_max_bucket_length,
36346 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
36347 hash_rehash): Use size_t rather than unsigned.
36348 * lib/hash.c (struct hash_table, hash_get_n_buckets,
36349 hash_get_n_buckets_used, hash_get_n_entries,
36350 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
36351 hash_get_entries, hash_do_for_each, hash_string, is_prime,
36352 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
36354 (SIZE_MAX): Define if not defined.
36355 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
36356 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
36358 Use const * when possible.
36359 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
36360 (check_tuning): Fix bug: if tuning parameters were very close to
36361 0 or 1, rounding errors could have caused subscript violations.
36362 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
36363 (hash_initialize): Add 'fail:' label
36364 to free table and return NULL, and use it to simplify code.
36365 Use calloc rather than clearing the storage ourself.
36366 (hash_initialize, hash_rehash): Check for arithmetic overflow in
36367 buffer size calculations.
36368 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
36369 Include <stddef.h>, for size_t.
36370 * lib/hash-pjw.c (hash_pjw): Likewise.
36371 Switch to method described by Bruno Haible.
36372 Include <limits.h>, for CHAR_BIT.
36373 (SIZE_BITS): New macro.
36375 2003-10-23 Paul Eggert <eggert@twinsun.com>
36377 * m4/getline.m4 (AM_FUNC_GETLINE):
36378 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
36379 hosts. Problem reported by Derek Robert Price in
36380 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
36381 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
36382 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
36384 2003-10-21 Paul Eggert <eggert@twinsun.com>
36386 * lib/getndelim2.c (getndelim2): When size calculation overflows,
36387 ceiling the allocation at NMAX bytes rather than silently
36388 discarding input bytes before NMAX is reached. This makes
36389 a difference only if NMAX exceeds SIZE_MAX / 2.
36391 * lib/obstack.c: Merge from glibc.
36392 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
36393 Add libc_hidden_def (_obstack_newchunk).
36394 (_obstack_free) [! defined _LIBC]: Remove.
36395 [defined _LIBC]: Make a strong alias from obstack_free, rather than
36396 a clone of the function body.
36397 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
36398 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
36400 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
36402 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
36405 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
36406 (obstack_ptr_grow_fast, obstack_int_grow_fast):
36407 Don't use lvalue casts, as GCC plans to remove support for them
36408 in GCC 3.5. Reported by Joseph S. Myers. This bug
36409 was also present in the non-GCC version, indicating that this
36410 code had always been buggy and had never been widely used.
36411 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
36412 Use the fast variant of each macro, rather than copying the
36413 definiens of the fast variant; that way, we'll be more likely to
36414 catch future bugs in the fast variants.
36416 2003-10-20 Bruno Haible <bruno@clisp.org>
36418 * modules/wait-process: New file.
36419 * MODULES.html.sh (func_all_modules): Add wait-process.
36421 2003-10-20 Bruno Haible <bruno@clisp.org>
36423 * m4/wait-process.m4: New file.
36425 2003-10-20 Bruno Haible <bruno@clisp.org>
36427 * lib/wait-process.h: New file, from GNU gettext.
36428 * lib/wait-process.c: New file, from GNU gettext.
36430 2003-10-19 Jim Meyering <jim@meyering.net>
36432 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
36435 2003-10-18 Karl Berry <karl@gnu.org>
36437 * config/config.guess: update from config.
36439 2003-10-16 Paul Eggert <eggert@twinsun.com>
36441 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
36442 (getgroups): First arg is int, not size_t.
36443 Don't let 'free' mangle errno.
36445 2003-10-16 Paul Eggert <eggert@twinsun.com>
36447 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
36449 2003-10-16 Karl Berry <karl@gnu.org>
36451 * config/config.{guess,sub}: update from config.
36453 2003-10-16 Jim Meyering <jim@meyering.net>
36455 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
36458 2003-10-15 Paul Eggert <eggert@twinsun.com>
36460 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
36461 (SIZE_MAX): Remove.
36462 (new_exclude, add_exclude_file): Initial size no longer needs to
36464 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
36465 our own address arithmetic overflow checking.
36467 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
36468 (fnmatch): Do not alloca more than 2000 wide characters;
36469 instead, use malloc for large buffers.
36470 Check for address arithmetic overflow, and return -1
36471 with errno set to ENOMEM in that case.
36472 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
36473 (NEW_PATTERN): Do not alloca more than 8000 bytes;
36474 instead, return -1. Check for address arithmetic overflow.
36476 2003-10-14 Paul Eggert <eggert@twinsun.com>
36478 Handle invalid suffixes and overflow independently, so that
36479 callers can treat them independently as needed. Fix some bugs in
36480 suffix handling, e.g., "100k@" was not diagnosed as an invalid
36481 suffix for a human-readable blocksize. The major caller-visible
36482 change is the addition of a new
36483 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
36484 that both overflow and suffix chars were found.
36486 * lib/human.c (humblock): Don't check separately for invalid suffix
36487 char; that is xstrtoumax's job (now that its bug is fixed).
36488 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
36489 INTMAX_MAX]: New macros.
36490 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
36491 TYPE_MAXIMUM): New macros.
36492 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
36493 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
36494 if overflow occurs, as it's what __strtol does and it's more useful
36496 (__xstrtol): If __strtol reports some error other than ERANGE,
36497 reflect it to the caller as LONGINT_INVALID. If it reports
36498 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
36499 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
36500 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
36502 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
36503 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
36504 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
36505 [defined UINTMAX_MAX]: New macros.
36507 2003-10-14 Bruno Haible <bruno@clisp.org>
36509 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
36511 2003-10-14 Bruno Haible <bruno@clisp.org>
36513 * m4/sig_atomic_t: New file, from GNU gettext.
36514 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
36516 2003-10-14 Bruno Haible <bruno@clisp.org>
36518 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
36519 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
36520 Also use volatile where needed.
36522 2003-10-12 Paul Eggert <eggert@twinsun.com>
36524 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
36525 Change maintainer from Bruno Haible to 'all'.
36527 2003-10-12 Paul Eggert <eggert@twinsun.com>
36529 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
36531 2003-10-12 Paul Eggert <eggert@twinsun.com>
36533 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
36534 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
36535 and define in terms of the other primitives.
36536 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
36537 (SIZE_MAX): Define if not already defined.
36538 (array_size_overflow): New function.
36539 (xalloc_die): Abort instead of exiting if 'error' returns.
36540 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
36541 (xmalloc, xrealloc): Use them.
36542 (xcalloc): Check for address arithmetic overflow.
36543 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
36544 a bit faster than strcpy.
36546 2003-10-10 Simon Josefsson <jas@extundo.com>
36548 * modules/argp (Depends-on): Add restrict and strcase.
36550 2003-10-10 Simon Josefsson <jas@extundo.com>
36552 * m4/argp.m4: Add AC_C_INLINE.
36554 2003-10-08 Paul Eggert <eggert@twinsun.com>
36556 Merge getpass from libc, plus a few fixes.
36558 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
36559 Include <stdbool.h>.
36560 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
36561 __fsetlocking to empty.
36562 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
36563 do include <bits/libc-lock.h>.
36564 Do not include <fcntl.h>; not needed.
36565 [_LIBC]: Include <wchar.h>.
36566 (NOTCANCEL_MODE): New macro.
36567 (flockfile, funlockfile) [_LIBC]: New macros.
36568 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
36569 [!_LIBC]: New macros.
36570 (call_fclose): New function.
36571 (getpass): Use it. Save tty stream separately; this simplifies the
36572 code and makes it more reliable if stdin happens to equal stdout.
36573 Invoke __fsetlocking on tty.
36574 Handle thread cancellation if needed.
36575 Namespace cleanup (use __tcgetattr, __getline).
36576 Use bool for Booleans.
36577 [USE_IN_LIBIO]: Handle wide streams.
36578 [!_LIBC]: Unconditionally do the fseek, since we don't know what
36579 stream might go where.
36581 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
36582 doesn't have to include <stdio.h> before us.
36583 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
36584 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
36585 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
36586 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
36587 if not declared, so that we can use getpass.c code from libc without
36589 (flockfile, ftrylockfile, funlockfile): New macros.
36591 2003-10-08 Paul Eggert <eggert@twinsun.com>
36593 * modules/getpass: Depend on stdbool.
36595 2003-10-08 Paul Eggert <eggert@twinsun.com>
36597 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
36599 2003-10-07 Karl Berry <karl@gnu.org>
36601 * config/config.{guess,sub}: update from config.
36603 2003-10-06 Jim Meyering <jim@meyering.net>
36604 Bruno Haible <bruno@clisp.org>
36606 This lets translators provide better translations for the
36607 "Written by ..." part of --version output.
36608 * lib/version-etc.h: Include stdarg.h.
36609 (version_etc_copyright): Declare as readonly.
36610 (version_etc): Make this function variadic with a NULL-terminated list
36611 of author name strings.
36612 (version_etc_va): New declaration.
36613 * lib/version-etc.c: Include stdarg.h, stdlib.h.
36614 (version_etc_copyright): Declare as readonly.
36615 (version_etc_va): New function. Provide a different translatable string
36616 for each possible number of authors < 10. Abbreviate when there are 10
36618 (version_etc): Make this function variadic. Call version_etc_va.
36619 Suggestion from Gary V. Vaughan.
36621 * lib/long-options.h (parse_long_options): Change prototype: the
36622 authors string is moved to the end and becomes variadic.
36623 * lib/long-options.c: Include stdarg.h.
36624 (parse_long_options): Make this function variadic, too.
36625 Call version_etc_va, not version_etc.
36627 2003-10-06 Bruno Haible <bruno@clisp.org>
36629 * modules/version-etc-2: Remove file.
36630 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
36632 2003-10-06 Bruno Haible <bruno@clisp.org>
36634 * modules/fatal-signal: New file.
36635 * MODULES.html.sh (func_all_modules): Add fatal-signal.
36637 2003-10-06 Bruno Haible <bruno@clisp.org>
36639 * m4/fatal-signal.m4: New file.
36640 * m4/signalblocking.m4: New file, from GNU gettext.
36642 2003-10-06 Bruno Haible <bruno@clisp.org>
36644 * lib/version-etc-2.h: Remove file.
36645 * lib/version-etc-2.c: Remove file.
36647 2003-10-06 Bruno Haible <bruno@clisp.org>
36649 * lib/fatal-signal.h: New file, from GNU gettext.
36650 * lib/fatal-signal.c: New file, from GNU gettext.
36652 2003-10-05 Paul Eggert <eggert@twinsun.com>
36654 * README: Rework advice for preventing empty .o files.
36655 Don't recommend ELIDE constructs. Recommend <stddef.h>,
36658 2003-10-04 Karl Berry <karl@gnu.org>
36660 * lib/argp*: update from libc.
36662 2003-10-04 Karl Berry <karl@gnu.org>
36664 * config/config.{guess,sub}: update from config.
36666 2003-10-02 Bruno Haible <bruno@clisp.org>
36668 * modules/lchown (Include): Add lchown.h.
36669 * modules/time_r (Include): Use "..." syntax.
36670 * modules/xgetdomainname (Include): Add xgetdomainname.h.
36672 2003-10-01 Simon Josefsson <jas@extundo.com>
36674 * MODULES.html.sh (func_all_modules): Move gethostname from section
36675 'based on' to section 'lacking' POSIX:2001.
36677 2003-10-01 Larry Jones <lawrence.jones@eds.com>
36679 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
36680 to output mode on the same stream.
36682 2003-09-29 Paul Eggert <eggert@twinsun.com>
36684 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
36685 Fix arg typo in previous patch.
36687 2003-09-28 Jim Meyering <jim@meyering.net>
36689 * lib/error.c: Correct cpp indentation.
36691 2003-09-27 Paul Eggert <eggert@twinsun.com>
36693 * modules/free: New file.
36695 2003-09-27 Paul Eggert <eggert@twinsun.com>
36697 * m4/free.m4: New file.
36699 2003-09-27 Paul Eggert <eggert@twinsun.com>
36701 * lib/minmax.h (MIN, MAX)
36702 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
36703 Omit the special code that used __typeof__, since we worry that
36704 it could be more trouble than it's worth. See:
36705 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
36706 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
36708 * lib/free.c: New file.
36710 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
36712 Trivial fixes to Makefile.am parts of module listings.
36713 * modules/strstr: Append strstr.h to lib_SOURCES.
36714 * modules/strcase: Likewise, for strcase.h.
36716 2003-09-27 Karl Berry <karl@gnu.org>
36718 * config/mkinstalldirs: update from automake.
36720 2003-09-26 Paul Eggert <eggert@twinsun.com>
36722 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
36723 (error_tail): Do not loop, reallocating temporary buffer, since
36724 the output cannot contain more wide characters than the input
36725 contains bytes, the size must be big enough already. This avoids
36726 one potential size overflow calculation. Check for size overflow
36727 when calculating temporary buffer size. Free temporary buffer
36728 when done, if it was allocated with malloc; this plugs a memory
36729 leak. Remove casts from void * to pointers, that are no longer
36730 needed now that we're assuming C89 or better.
36732 Merge error changes from glibc.
36734 * lib/error.c, error.h: Update copyright notice header to match glibc.
36735 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
36736 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
36737 Disable cancellation while printing error.
36738 * lib/error.h: Prepend __ to parameter names.
36740 2003-09-26 Jim Meyering <jim@meyering.net>
36742 * lib/error.c (error_tail): Move some declarations
36743 into inner scope where the local variables are used.
36745 2003-09-26 Bruno Haible <bruno@clisp.org>
36747 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
36749 Don't define stpncpy through config.h; it's now done through stpncpy.h.
36751 2003-09-26 Bruno Haible <bruno@clisp.org>
36753 * lib/stpncpy.h (gnu_stpncpy): New declaration.
36754 (stpncpy): Define as alias for gnu_stpncpy.
36755 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
36757 2003-09-25 Simon Josefsson <jas@extundo.com>
36759 * lib/xgetdomainname.h: New file.
36760 * lib/xgetdomainname.c: New file.
36762 2003-09-25 Simon Josefsson <jas@extundo.com>
36763 Bruno Haible <bruno@clisp.org>
36765 * modules/getdomainname: New file.
36766 * modules/xgetdomainname: New file.
36767 * MODULES.html.sh (func_all_modules): Add getdomainname,
36770 2003-09-25 Simon Josefsson <jas@extundo.com>
36771 Bruno Haible <bruno@clisp.org>
36773 * m4/getdomainname.m4: New file.
36775 2003-09-25 Simon Josefsson <jas@extundo.com>
36776 Bruno Haible <bruno@clisp.org>
36778 * lib/getdomainname.h: New file.
36779 * lib/getdomainname.c: New file.
36781 2003-09-25 Karl Berry <karl@gnu.org>
36783 * lib/argp-fmtstream.c, argp-help.c: update from libc.
36785 2003-09-25 Karl Berry <karl@gnu.org>
36787 * config/install-sh: update from automake.
36789 2003-09-25 Bruno Haible <bruno@clisp.org>
36791 * modules/version-etc-2: New file, from modules/version-etc with
36793 * MODULES.html.sh (func_all_modules): Add version-etc-2.
36795 2003-09-25 Bruno Haible <bruno@clisp.org>
36797 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
36798 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
36800 2003-09-24 Simon Josefsson <jas@extundo.com>
36802 * modules/xgethostname: Add xgethostname.h.
36804 2003-09-24 Paul Eggert <eggert@twinsun.com>
36806 * lib/linebuffer.c (freebuffer): Don't free the argument, just
36807 the buffer associated with the argument. Bug reported by
36810 2003-09-24 Paul Eggert <eggert@twinsun.com>
36812 * README: Document assumptions that 'int' is at least 32 bits
36813 wide, that integer arithmetic is 2's complement without overflow,
36814 that there are no holes in integer values, that adding sizes of
36815 two nonoverlapping objects can't overflow, and that all-bits-zero
36816 yields scalar zero. Fix spelling and capitalization typos.
36818 2003-09-19 Karl Berry <karl@gnu.org>
36820 * lib/argp.h: update from libc.
36822 2003-09-17 Paul Eggert <eggert@twinsun.com>
36824 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
36825 to avoid spurious warnings like "AC_RUN_IFELSE was called before
36826 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
36828 2003-09-17 Paul Eggert <eggert@twinsun.com>
36830 * gnulib-tool: Use "test -h", not "test -L", for portability
36831 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
36832 (tags_regexp): Remove, since \| doesn't conform to POSIX.
36833 (sed_extract_prog): Issue s commands one-by-one, rather than
36834 using \| in one s command.
36836 2003-09-16 Paul Eggert <eggert@twinsun.com>
36838 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
36839 input error, instead of returning NULL the next time we are called
36840 (and therefore losing track of errno).
36842 2003-09-16 Bruno Haible <bruno@clisp.org>
36844 * gnulib-tool (func_create_testdir): Warn about duplicated
36847 2003-09-15 Paul Eggert <eggert@twinsun.com>
36849 * modules/argmatch, modules/fatal, modules/obstack,
36850 modules/xalloc, modules/xgethostname: Sort dependencies by
36851 importance, not alphabetically.
36853 2003-09-15 Paul Eggert <eggert@twinsun.com>
36855 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
36856 fails, so that the caller gets the proper errno.
36858 * lib/readutmp.c (read_utmp): Likewise.
36859 Check for fstat error. Close stream and free storage
36862 2003-09-14 Karl Berry <karl@gnu.org>
36864 * config/srclist.txt (strdup.c): disable for c89 changes.
36866 2003-09-14 Jim Meyering <jim@meyering.net>
36868 * lib/getloadavg.c: Correct cpp indentation.
36869 * lib/strdup.c: Likewise.
36870 * lib/vasnprintf.c: Likewise.
36872 2003-09-14 Bruno Haible <bruno@clisp.org>
36874 * modules/fwriteerror: New file.
36875 * MODULES.html.sh (func_all_modules): Add fwriteerror.
36877 2003-09-14 Bruno Haible <bruno@clisp.org>
36879 * lib/fwriteerror.h: New file.
36880 * lib/fwriteerror.c: New file.
36882 2003-09-12 Paul Eggert <eggert@twinsun.com>
36884 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
36885 modules/xgethostname, modules/xalloc: Depend on exit.
36887 2003-09-12 Paul Eggert <eggert@twinsun.com>
36889 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
36891 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
36892 and AC_MINIX, too, so that their extensions are available.
36894 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
36895 This macro has been superseded by gl_BACKUPFILE.
36897 More patches to assume C89 or better.
36899 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
36901 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
36903 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
36904 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
36905 Include <string.h>, <stdlib.h> unconditionally.
36906 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
36907 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
36908 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
36909 headers or for string.h.
36910 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
36913 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
36915 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
36916 * m4/userspec.m4 (gl_USERSPEC): Likewise.
36917 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
36918 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
36919 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
36920 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
36922 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
36923 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
36924 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
36926 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
36927 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
36928 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
36931 2003-09-12 Paul Eggert <eggert@twinsun.com>
36933 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
36934 * lib/obstack.c [!defined _LIBC]: Likewise.
36935 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
36936 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
36937 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
36939 More changes to assume C89 or better.
36941 * lib/error.c (error_tail): Assume vprintf.
36943 * lib/argmatch.c (getenv): Remove decl.
36944 * lib/progreloc.c (get_full_program_name): Define via prototype.
36945 * lib/setenv.c (clearenv): Likewise.
36946 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
36948 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
36949 (malloc, memcpy): Remove decls.
36950 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
36951 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
36952 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
36953 (memcpy): Remove macro.
36954 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
36955 (__P): Remove. All uses removed.
36956 (PTR): Remove. All uses changed to void *.
36957 (CHAR_BIT, NULL): Remove.
36958 (spaces, zeros, memset_space, memset_zero)
36959 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
36961 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
36962 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
36963 Define with prototype.
36964 Remove now-unnecessary prototype decl.
36965 (extra_args_spec): Assume ANSI C. All uses changed.
36966 (extra_args_spec_iso): Remove.
36967 (my_strftime, emacs_strftimeu): Define via prototype.
36968 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
36970 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
36971 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
36972 (strtoul, strtol): Remove decls.
36973 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
36975 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
36976 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
36977 (LOCALE_PARAM_PROTO): New macro.
36978 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
36979 (INTERNAL (strtol), strtol): Define with a prototype.
36980 (PARAMS): Remove. All uses removed.
36981 * lib/tempname.c: Include <string.h> unconditionally.
36982 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
36983 * lib/xgethostname.c (main): Define with a prototype.
36984 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
36985 Include <stdlib.h> unconditionally.
36986 (calloc, malloc, realloc, free): Remove decls.
36987 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
36988 Include <stdlib.h> unconditionally. Sort include file names.
36990 (xstrtod): Define with a prototype.
36991 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
36992 (strtol, strtoul): Remove decls.
36994 2003-09-11 Paul Eggert <eggert@twinsun.com>
36996 More patches to assume C89 or better.
36997 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
36998 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
36999 string.h, memchr, STDC_HEADERS.
37001 2003-09-11 Paul Eggert <eggert@twinsun.com>
37003 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
37004 Include <stdlib.h>, <string.h> unconditionally.
37005 Remove now-unnecessary cast to char *.
37006 * lib/strnlen.c: Include <string.h> unconditionally.
37007 * lib/yesno.c (yesno): Define with a prototype.
37009 2003-09-11 Bruno Haible <bruno@clisp.org>
37011 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
37013 2003-09-10 Jim Meyering <jim@meyering.net>
37015 * lib/error.c: Correct indentation of cpp directives.
37017 2003-09-10 Bruno Haible <bruno@clisp.org>
37019 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
37020 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
37021 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
37022 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
37023 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
37024 <stdlib.h> and <string.h> checks.
37025 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
37026 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
37028 2003-09-10 Bruno Haible <bruno@clisp.org>
37030 * lib/strcspn.c: Include <string.h> unconditionally.
37031 * lib/strpbrk.c: Include <string.h> unconditionally.
37032 * lib/strstr.c: Include <string.h> unconditionally.
37033 * lib/unicodeio.c: Include <string.h> unconditionally.
37034 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
37035 * lib/unsetenv.c: Likewise.
37036 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
37037 * lib/yesno.c: Include <stdlib.h> unconditionally.
37038 (rpmatch): Add prototype.
37040 2003-09-09 Paul Eggert <eggert@twinsun.com>
37042 More patches to assume C89 or better.
37043 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
37044 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
37045 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
37047 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
37049 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
37051 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
37053 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
37054 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
37055 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
37057 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
37058 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
37060 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
37062 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
37063 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
37064 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
37065 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
37066 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
37067 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
37069 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
37070 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
37071 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
37072 C headers, or for string.h.
37073 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
37074 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
37075 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
37076 headers, memory.h, stdlib.h, string.h, strings.h.
37077 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
37078 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
37079 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
37081 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
37082 headers, memory.h, string.h.
37083 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
37084 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
37086 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
37088 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
37089 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
37090 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
37091 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
37092 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
37094 2003-09-09 Paul Eggert <eggert@twinsun.com>
37098 * lib/acosl.c (main): Use a prototype.
37099 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
37102 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
37104 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
37105 (getopt, etopt_long, getopt_long_only, _getopt_internal)
37106 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
37108 * lib/getopt.c (const): Remove macro.
37109 Include <string.h> unconditionally.
37110 (my_index): Remove; all uses changed to strchr.
37111 (strlen): Remove decl.
37112 (exchange): Remove forward decl; no longer needed.
37113 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
37114 Define with prototype.
37115 * lib/getopt1.c (const): Remove macro.
37116 (getopt_long, getopt_long_only, main): Define with prototype.
37118 * lib/getugroups.c: Include <string.h> unconditionally.
37120 * lib/getusershell.c: Include <stdlib.h> unconditionally.
37121 (getusershell, setusershell, endusershell, readname, main):
37122 Define with prototypes.
37124 * lib/group-member.c: Include group-member.h first.
37125 Include <stdlib.h> unconditionally.
37127 * lib/hard-locale.c: Include hard-locale.h first.
37128 Include <stdlib.h>, <string.h> unconditionally.
37130 * lib/hash.c (free, malloc): Remove decls.
37131 Include <stdlib.h> unconditionally.
37133 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
37134 (getenv): Do not declare.
37136 * lib/idcache.c: Include <string.h> unconditionally.
37138 * lib/long-options.c: Include long-options.h first, to test interface.
37139 Include <stdlib.h> unconditionally.
37141 * lib/makepath.c: Include makepath.h first, to test interface.
37142 Include <stdlib.h> and <string.h> unconditionally.
37144 * lib/linebuffer.c: Include <stdlib.h>.
37145 (free): Remove decl.
37147 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
37148 stddef.h. rpl_malloc returns void *, not char *.
37149 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
37152 * lib/md5.h: Include <limits.h> unconditionally.
37153 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
37154 (__P): Remove; all uses removed.
37155 * lib/md5.c: Include "md5.h" first.
37156 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
37157 md5_buffer, md5_process_bytes, md5_process_block):
37158 Define with prototypes.
37159 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
37160 * lib/sha.c: Include "sha.h" first.
37161 Include <stdlib.h>, <string.h> unconditionally.
37163 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
37164 * lib/memcmp.c (__ptr_t): Likewise.
37165 * lib/memrchr.c (__ptr_t): Likewise.
37166 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
37167 Include <string.h> unconditionally.
37168 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
37169 * lib/memchr.c: Include <stdlib.h> unconditionally.
37170 * lib/memchr.c (LONG_MAX): Remove.
37171 * lib/memrchr.c (LONG_MAX): Likewise.
37172 * lib/memchr.c (__memchr): Define via a prototype.
37173 * lib/memrchr.c (__memrchr): Likewise.
37174 * lib/memcmp.c (__P): Remove, and remove all uses.
37175 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
37176 Remove forward decls; no longer needed.
37177 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
37178 Use types required by C89 in prototype.
37180 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
37181 * lib/savedir.c: Likewise.
37182 * lib/mkdir.c (free): Remove decl.
37183 * lib/rmdir.c (rmdir): Define with a prototype.
37184 * lib/savedir.c: Include savedir.h first, to test interface.
37186 * lib/mktime.c (STDC_HEADERS): Remove.
37187 Include <stdlib.h>, <string.h> unconditionally.
37189 * lib/modechange.c: Include <stdlib.h> unconditionally.
37190 (malloc): Remove decl.
37192 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
37193 (free): Remove decl.
37195 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
37196 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
37197 (This type really should be intptr_t, but that's a C99ism.)
37198 (_obstack_memcpy): Remove: all uses changed to memcpy.
37199 Include <string.h> unconditionally.
37200 (struct obstack): Assume __STDC__ for types of members
37201 chunkfun, freefun, extra_arg.
37202 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
37203 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
37204 obstack_begin, obstack_specify_allocation,
37205 obstack_specify_allocation_with_arg, obstack_chunkfun,
37206 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
37207 Remove unprototyped decls and the macros that use them.
37208 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
37209 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
37210 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
37211 (defined __STDC__ && __STDC__)]:
37212 Remove nonprototyped code.
37213 Include <stdlib.h> unconditionally.
37214 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
37215 _obstack_allocated_p, _obstack_free, obstack_free,
37216 _obstack_memory_used, print_and_abort):
37217 Define using prototypes.
37218 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
37219 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
37220 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
37221 obstack_next_free, obstack_object_size, obstack_room) [0]:
37222 Remove unused, unprototyped code.
37224 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
37226 * lib/physmem.c (physmem_total, physmem_available, main): Define
37229 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
37230 (main): Define with a prototype.
37232 * lib/posixver.c (getenv): Remove decl.
37234 * lib/putenv.c (malloc): Returns void *, not char *.
37235 Include <string.h> unconditionally.
37236 (strchr, memcpy, NULL): Do not define.
37238 * lib/readtokens.c: Include readtokens.h first, to test interface.
37239 Include <stdlib.h>, <string.h> unconditionally.
37240 (init_tokenbuffer): Define with a prototype.
37242 * lib/regex.c (PARAMS): Remove. All uses removed.
37243 All uses of _RE_ARGS removed, too.
37244 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
37246 (bzero): Assume memset exists.
37247 (memcmp, memcpy, NULL): Remove.
37248 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
37249 char, or assignments to local vars of type signed char.
37250 (init_syntax_once, PREFIX(extract_number_and_incr),
37251 PREFIX(print_partial_compiled_pattern),
37252 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
37253 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
37254 PREFIX(regex_grow_registers), PREFIX(regex_compile),
37255 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
37256 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
37257 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
37258 wcs_compile_range, byte_compile_range, truncate_wchar,
37259 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
37260 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
37261 count_mbs_length, wcs_re_match_2_internal,
37262 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
37263 PREFIX(alt_match_null_string_p),
37264 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
37265 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
37266 regfree, PREFIX(extract_number)): Define with prototype. Remove
37267 now-unnecessary declaration, if any.
37268 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
37270 Remove now-unnecessary casts among pointer types.
37271 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
37273 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
37274 (free): Remove decl.
37276 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
37278 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
37279 (free): Remove decl.
37281 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
37282 * lib/xgetcwd.c: Likewise.
37284 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
37285 (free): Remove decl.
37287 * lib/strchrnul.c (strchrnul): Define with a prototype.
37288 Fix bug: c_in was not converted to char before searching.
37290 The following changes are not K&R related:
37292 * lib/group-member.h: Include <sys/types.h>, so that this file is
37294 * lib/makepath.h: Likewise.
37296 * lib/getusershell.c (readname, default_index, line_size, readname):
37297 Use size_t, not int, for sizes.
37298 (readname): If the size overflows, report an error instead of
37301 2003-09-09 Paul Eggert <eggert@twinsun.com>
37303 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
37306 2003-09-09 Paul Eggert <eggert@twinsun.com>
37308 * README: New section: portability guidelines.
37310 2003-09-09 Derek Robert Price <derek@ximbiot.com>
37312 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
37315 2003-09-09 Derek Robert Price <derek@ximbiot.com>
37317 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
37319 2003-09-08 Paul Eggert <eggert@twinsun.com>
37321 Assume C89 or better; remove K&R cruft.
37322 A few of these changes were first proposed by Derek Robert Price
37323 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
37325 * lib/addext.c: Include <string.h> unconditionally.
37326 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
37327 Don't declare getenv or malloc.
37329 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
37330 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
37332 (find_stack_direction, alloca): Use prototypes.
37334 * lib/atexit.c (atexit): Define using a prototype.
37336 * lib/basename.c, dirname.c, stripslash.c:
37337 Include <string.h> unconditionally.
37339 * lib/bcopy.c: Include <stddef.h>.
37340 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
37342 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
37344 * lib/error.h (error, error_at_line, error_print_progname)
37345 [! (defined (__STDC__) && __STDC__)]: Remove decls.
37346 * lib/error.c: Include error.h first, to check interface.
37347 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
37348 (VA_START): Remove; all uses changeed to va_start.
37349 (exit, strerror): Remove decls.
37350 (error_print_progname): Prototype uncondionally.
37351 Don't include <errno.h>; no longer needed.
37352 (private_strerror): Remove.
37353 (error_tail): Always define.
37354 (error, error_at_line): Assume C89 or better; always use prototypes.
37355 * lib/fatal.c: Include "fatal.h" first, to test interface.
37356 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
37357 (VA_START): Remove; all uses changed to va_start.
37358 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
37360 (exit): Remove decl.
37361 (fatal): Prototype unconditionally. Assume va_start works.
37362 Abort at end, to pacify gcc.
37364 * lib/euidaccess.c (main): Define with a prototype.
37366 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
37368 * lib/exitfail.c: Include <stdlib.h> unconditionally.
37370 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
37372 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
37373 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
37374 (getenv): Remove decl.
37375 (fnmatch): Define using a prototype.
37376 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
37377 (FCT): Define using a prototype.
37379 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
37381 * lib/gethostname.c: Include <stddef.h>.
37382 (gethostname): Define with prototype. Length is size_t, not int.
37384 2003-09-08 Paul Eggert <eggert@twinsun.com>
37386 Assume C89 or better; remove K&R cruft.
37387 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
37388 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
37389 string.h, getenv, malloc.
37390 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
37392 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
37393 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
37394 do not check for strerror.
37395 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
37396 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
37397 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
37398 do not check for doprnt or vprintf.
37399 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
37400 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
37402 2003-09-08 Paul Eggert <eggert@twinsun.com>
37404 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
37405 getversion.c should have been removed then, but was accidentally
37408 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
37409 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
37411 2003-09-08 Karl Berry <karl@gnu.org>
37413 * config/config.sub, config.guess, srclistvars.sh: update from savannah
37414 config, forget about prep.
37416 * config/depcomp, missing: update from automake.
37418 2003-09-07 Paul Eggert <eggert@twinsun.com>
37420 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
37421 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
37423 2003-09-07 Paul Eggert <eggert@twinsun.com>
37425 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
37426 copy_tm_result. Bug reported by Simon Josefsson in
37427 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
37429 2003-09-06 Paul Eggert <eggert@twinsun.com>
37431 * m4/time_r.m4: New file.
37432 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
37433 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
37434 is. Check for timegm declaration.
37435 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
37436 Do not check for gmtime_r.
37437 Replace mktime if __mktime_internal does not exist and if mktime
37438 hasn't been replaced already.
37440 2003-09-06 Paul Eggert <eggert@twinsun.com>
37442 * lib/time_r.c, lib/time_r.h: New files.
37444 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
37446 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
37447 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
37449 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
37451 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
37452 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
37453 Include <time_r.h>.
37455 * lib/timegm.c: Switch to glibc implementation, with the following
37457 [defined HAVE_CONFIG_H]: Include <config.h>.
37458 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
37459 (__mktime_internal) [!defined _LIBC]: New decl.
37460 (__gmtime_r) [!defined _LIBC]: New macro and function.
37461 (timegm): Use a prototype, since gnulib assumes C89.
37462 Do not bother declaring tmp to be const, as it's not really usefu.
37463 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
37464 (timegm): Declare only if HAVE_DECL_TIMEGM.
37466 2003-09-06 Paul Eggert <eggert@twinsun.com>
37468 * MODULES.html.sh (func_all_modules): Add time_r.
37469 * modules/time_r: New file.
37470 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
37471 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
37473 2003-09-03 Paul Eggert <eggert@twinsun.com>
37475 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
37476 Bug reported by Lute Kamstra in
37477 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
37479 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
37480 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
37481 course with correspondingly smaller numbers for tomorrow and
37482 yesterday. From Tadayoshi Funaba. Originally installed into
37483 sh-utils on 1999-08-07, but the patch got lost (I guess during the
37486 2003-08-31 Simon Josefsson <jas@extundo.com>
37488 * modules/timegm: New file.
37489 * MODULES.html.sh (func_all_modules): Add timegm.
37491 2003-08-31 Simon Josefsson <jas@extundo.com>
37493 * m4/timegm.m4: New file.
37495 2003-08-31 Simon Josefsson <jas@extundo.com>
37497 * lib/timegm.h: New file.
37498 * lib/timegm.c: New file. Based on
37499 wget-1.8.2/src/http.c:mktime_from_utc.
37501 2003-08-31 Karl Berry <karl@gnu.org>
37503 * lib/argp.h: update from libc.
37505 2003-08-28 Bruno Haible <bruno@clisp.org>
37507 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
37508 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
37509 followed by '#define fnmatch fnmatch_posix' gives an error.
37511 2003-08-28 Bruno Haible <bruno@clisp.org>
37513 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
37514 warning on QNX, which defines O_BINARY to 000000.
37516 2003-08-27 Jim Meyering <jim@meyering.net>
37518 * m4/mkstemp.m4: Require that the system mkstemp be able to create
37519 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
37520 would fail after 32. Reported by Danny Levinson. Details here:
37521 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
37523 2003-08-24 Bruno Haible <bruno@clisp.org>
37525 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
37526 MSVC7 <stdio.h> is included later.
37528 2003-08-22 Simon Josefsson <jas@extundo.com>
37530 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
37532 2003-08-20 Karl Berry <karl@gnu.org>
37534 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
37536 2003-08-20 Bruno Haible <bruno@clisp.org>
37538 * modules/progname: New file.
37539 * MODULES.html.sh (func_all_modules): Add progname.
37541 2003-08-20 Bruno Haible <bruno@clisp.org>
37543 * lib/progname.h: New file, from GNU gettext.
37544 * lib/progname.c: New file, from GNU gettext.
37545 * lib/progreloc.c: New file, from GNU gettext.
37547 2003-08-19 Jim Meyering <jim@meyering.net>
37549 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
37550 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
37552 2003-08-19 Bruno Haible <bruno@clisp.org>
37554 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
37557 2003-08-19 Bruno Haible <bruno@clisp.org>
37559 * lib/xstrdup.c: Assume <string.h> exists.
37561 2003-08-18 Paul Eggert <eggert@twinsun.com>
37563 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
37566 2003-08-18 Jim Meyering <jim@meyering.net>
37568 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
37569 * m4/lib-ld.m4: Likewise.
37571 2003-08-18 Jim Meyering <jim@meyering.net>
37573 * lib/setenv.h: Indent nested cpp directive.
37574 * lib/vasnprintf.c: Remove trailing blanks.
37576 2003-08-17 Simon Josefsson <jas@extundo.com>
37578 * modules/xstrndup: New file.
37579 * MODULES.html.sh (func_all_modules): Add xstrndup.
37581 2003-08-17 Simon Josefsson <jas@extundo.com>
37583 * modules/argp: Fix autoconf macro name. Add more dependencies.
37585 2003-08-17 Simon Josefsson <jas@extundo.com>
37587 * m4/xstrndup.m4: New file.
37589 2003-08-17 Simon Josefsson <jas@extundo.com>
37591 * m4/argp.m4: New file.
37593 2003-08-17 Simon Josefsson <jas@extundo.com>
37594 Bruno Haible <bruno@clisp.org>
37596 * lib/xstrndup.h: New file.
37597 * lib/xstrndup.c: New file.
37599 2003-08-17 Bruno Haible <bruno@clisp.org>
37601 * modules/strndup (Files, Include): Add lib/strndup.h.
37603 2003-08-17 Bruno Haible <bruno@clisp.org>
37605 * modules/euidaccess (Files): Add lib/euidaccess.h.
37607 2003-08-17 Bruno Haible <bruno@clisp.org>
37609 * lib/strndup.h: New file.
37611 2003-08-17 Bruno Haible <bruno@clisp.org>
37613 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
37614 like AC_GNU_SOURCE.
37615 * modules/extensions (configure.ac): Comment out the invocation of
37616 gl_USE_SYSTEM_EXTENSIONS.
37618 2003-08-16 Paul Eggert <eggert@twinsun.com>
37620 Merges from coreutils, etc.
37621 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
37622 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
37623 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
37625 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
37626 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
37628 2003-08-16 Paul Eggert <eggert@twinsun.com>
37630 Document merge from coreutils.
37631 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
37632 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
37633 * modules/utime: Add m4/utimes-null.m4.
37635 2003-08-16 Paul Eggert <eggert@twinsun.com>
37637 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
37638 space, undoing this 2003-08-12 change:
37639 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
37641 2003-08-16 Paul Eggert <eggert@twinsun.com>
37643 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
37644 strtoul.c from libc, undoing this 2003-08-12 change:
37645 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
37647 2003-08-16 Jim Meyering <jim@meyering.net>
37649 Merges from coreutils.
37650 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
37651 prefix. Adjust cache variables similarly. Create 500 rather than
37652 just 300 files, to exercise bug on Darwin6.5, too.
37653 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
37655 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
37656 AM_SYS_POSIX_TERMIOS.
37657 Reported by mkc@mathdogs.com.
37658 Also change use of $am_cv_sys_posix_termios
37659 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
37660 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
37661 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
37662 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
37663 in /proc/mounts until it finds one with matching device number. This
37664 is unnecessary when the FILE argument *is* a mount point. No stat call
37665 is necessary in that case. So, disable the statvfs-testing code on
37666 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
37667 as RedHat bug# 84846.
37668 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
37669 to 1MB, so as not to render systems with no stack size limit (e.g.,
37670 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
37671 Include <unistd.h>. On some systems,
37672 it is required for the definition of _SC_PAGESIZE.
37674 2003-08-16 Jim Meyering <jim@meyering.net>
37676 Merge from coreutils.
37677 * lib/xstrtoimax.c: #else #if -> #elif.
37678 * lib/xstrtoumax.c: Likewise.
37680 2003-08-16 Jim Meyering <jim@meyering.net>
37682 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
37683 * m4/utimes.m4: Removed.
37684 * m4/utimes-null.m4: Renamed from utimes.m4.
37686 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
37687 to 1MB, so as not to render systems with no stack size limit (e.g.,
37688 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
37689 Include <unistd.h>. On some systems,
37690 it is required for the definition of _SC_PAGESIZE.
37692 2003-08-16 Jim Meyering <jim@meyering.net>
37693 and Paul Eggert <eggert@cs.ucla.edu>
37695 Merges from coreutils, etc.
37697 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
37698 using the latest version from cvs. This avoids problems with #line
37699 directives using a vendor (Sun) compiler.
37700 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
37701 Don't set GETGROUPS_LIB here; now it's
37702 done via getgroups.m4's wrapper function.
37703 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
37704 rather than just in sh-util/configure.in, so that the
37705 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
37707 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
37708 AC_FUNC_GETLOADAVG where to find getloadavg.c.
37709 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
37710 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
37711 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
37712 Remove code that is now done by the newly-required macros.
37713 Append $(EXEEXT) to DF_PROG.
37714 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
37715 Do not invoke or require the following here,
37716 since prereq.m4 or some gnulib .m4 now does this for us:
37717 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
37718 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
37719 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
37720 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
37721 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
37722 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
37723 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
37725 Do not replace the following functions, as this is now the job
37726 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
37727 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
37728 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
37729 atexit getpass, strdup, getpagesize.
37731 Do not check for the following functions, as this is now the job
37732 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
37733 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
37735 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
37736 Check for sys/sysctl.h.
37737 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
37738 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
37739 of checking for ssize_t ourselves.
37741 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
37742 Require every macro that gnulib/modules/* suggests for us.
37743 (jm_PREREQ_ADDEXT): New macro.
37744 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
37745 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
37747 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
37748 (gl_PHYSMEM): Use it.
37749 Also check for `table' function.
37750 Check for new headers and functions.
37751 Add check for sys/sysmp.h.
37752 With suggestions from Kaveh Ghazi.
37753 Ignore headers that are present but cannot be compiled. This
37754 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
37757 2003-08-15 Paul Eggert <eggert@twinsun.com>
37759 Document merge from coreutils.
37760 * modules/userspec: Depend on posixver.
37761 * modules/strftime: Depend on tzset.
37763 2003-08-15 Paul Eggert <eggert@twinsun.com>
37765 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
37766 rather than tab, after '#' in shell-script copyright notices.
37767 Suggested by Bruno Haible.
37769 2003-08-15 Paul Eggert <eggert@twinsun.com>
37771 * config/srclist-update: Use three spaces, rather than tab, after '#'
37772 in shell-script copyright notices. Suggested by Bruno Haible.
37773 Remove unnecessary parenthesization in regular expression.
37775 2003-08-15 Jim Meyering <jim@meyering.net>
37777 Merge from coreutils.
37778 * lib/xgethostname.c: Include <stdlib.h>.
37779 (xghostname): Don't exit for anything other than memory-related
37780 failure; just return NULL.
37781 * lib/userspec.c: Include "posixver.h".
37782 (parse_user_spec): Accept `.' as a separator only
37783 in pre-POSIX-200112 mode.
37784 * lib/strtoimax.c: Use #elif rather than #else #if.
37785 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
37786 Remove function, now that we can rely on a working tzset function.
37787 [!_LIBC]: Ensure that the required autoconf test has been run.
37788 [!defined _NL_CURRENT && HAVE_STRFTIME]:
37789 Use underlying_strftime for %r.
37790 * lib/sha.c: Merge in some clean-up and optimization changes from
37792 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
37793 Ensure that it is a multiple of 64.
37794 Rearrange loop exit tests so as to avoid performing an
37795 additional fread after encountering an error or EOF.
37796 * lib/realloc.c: Update copyright date.
37798 2003-08-15 Jim Meyering <jim@meyering.net>
37799 and Paul Eggert <eggert@twinsun.com>
37801 Merge from coreutils.
37802 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
37803 member but strut utmpx does not. Needed for AIX 4.3.3.
37804 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
37806 2003-08-15 Jim Meyering <jim@meyering.net>
37807 and Paul Eggert <eggert@cs.ucla.edu>
37809 Merges from coreutils, etc.
37810 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
37811 Require gl_FUNC_TZSET_CLOBBER.
37812 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
37813 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
37816 2003-08-14 Paul Eggert <eggert@twinsun.com>
37818 Help the merge from coreutils.
37819 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
37820 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
37821 * m4/tzset.m4: Use it too.
37823 2003-08-14 Paul Eggert <eggert@twinsun.com>
37825 * modules/tzset: New file.
37827 2003-08-14 Jim Meyering <jim@meyering.net>
37829 Merges from coreutils.
37830 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
37831 variable names, rather than @FNMATCH_H@.
37832 * modules/alloca: Likewise for $(ALLOCA_H).
37834 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
37835 the three copies of the literal target, `fnmatch.h'.
37836 * modules/alloca (alloca.h): Likewise.
37838 2003-08-14 Jim Meyering <jim@meyering.net>
37840 Merge from coreutils.
37841 * m4/tzset.m4: New file.
37842 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
37843 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
37844 otherwise, AIX 5.1 systems would end up using the latter.
37845 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
37846 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
37847 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
37848 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
37850 2003-08-14 Jim Meyering <jim@meyering.net>
37852 Merge from coreutils.
37853 * lib/obstack.h: Whitespace changes.
37854 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
37855 and xcalloc return values.
37856 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
37857 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
37858 hang on OSF/1 5.1 for DIR on both local and remote file systems.
37859 Reported by (and fix confirmed by) Nelson H. F. Beebe.
37860 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
37862 Use mntctl's return value to drive the entry-processing loop, since
37863 we can't rely on the value of the vmt_length member in the last
37864 entry. On some systems doing so could result in exhausting
37865 virtual memory. Based in part on a patch from Mike Jetzer.
37867 2003-08-14 Jim Meyering <jim@meyering.net>
37868 and Paul Eggert <eggert@twinsun.com>
37870 Merges from coreutils, plus other fixes.
37871 * lib/physmem.c: Merge in portability changes from gcc/libiberty
37872 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
37873 for credits and details. Thanks to Kaveh Ghazi for helping
37874 to keep these files in sync.
37875 (ARRAY_SIZE): Define it.
37876 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
37877 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
37878 (memcasecmp): Don't assume size_t fits in unsigned int.
37879 Remove casts and duplicate code.
37880 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
37881 (memcpy): Remove definition.
37882 Merge in some clean-up and optimization changes from glibc.
37883 [BLOCKSIZE]: Move definition to top of file.
37884 Ensure that it is a multiple of 64.
37885 Rearrange loop exit tests so as to avoid performing an
37886 additional fread after encountering an error or EOF.
37887 * lib/md5.h (md5_uintptr): Define.
37888 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
37889 return to the initial working directory. Preserve errno
37891 * lib/idcache.c: Include "xalloc.h".
37892 (xmalloc, xrealloc): Remove decls.
37893 (getuser): Remove casts no longer required in C89.
37894 * lib/human.c: Include stdio.h, for sprintf.
37895 * lib/group-member.c: Include "xalloc.h".
37896 (xmalloc, xrealloc): Remove decls.
37897 (get_group_info): Remove casts no longer required in C89.
37898 * lib/getusershell.c (readname): Remove casts no longer required in
37900 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
37901 * lib/getline.c: Whitespace fix, from coreutils.
37903 2003-08-13 Paul Eggert <eggert@twinsun.com>
37905 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
37908 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
37909 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
37910 Undo previous (whitespace-only) change.
37912 2003-08-13 Paul Eggert <eggert@twinsun.com>
37914 * lib/exclude.c: Include <ctype.h>
37915 (IN_CTYPE_DOMAIN): New macro.
37916 (is_space): New fn.
37917 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
37920 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
37921 Undo previous (whitespace-only) change.
37923 2003-08-13 Paul Eggert <eggert@twinsun.com>
37925 * config/srclist-update: Change update back to the old behavior,
37926 leaving whitespace alone. Use one 'sed' command rather than a
37928 (fixlicense): Now a variable, not a function.
37929 (remove_trailing_blanks): Remove.
37930 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
37931 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
37932 Undo previous (whitespace-only) change.
37934 2003-08-12 Paul Eggert <eggert@twinsun.com>
37936 Merge from coreutils.
37937 * modules/euidaccess: Add lib_SOURCES, include for new
37940 2003-08-12 Paul Eggert <eggert@twinsun.com>
37942 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
37943 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
37944 Normalize leading white space and remove trailing white space.
37946 Merge from coreutils
37947 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
37949 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
37950 0.12.1. These files are now being upgraded automatically by
37951 ../config/srclist-update.
37953 2003-08-12 Paul Eggert <eggert@twinsun.com>
37955 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
37956 Normalize leading white space and remove trailing white space.
37957 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
37958 notice, as per ../config/srclist-update.
37960 Merge from coreutils.
37961 * lib/euidaccess.h: New file.
37962 * lib/euidaccess.c: Include it.
37963 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
37964 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
37965 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
37967 2003-08-12 Paul Eggert <eggert@twinsun.com>
37969 * config/srclist-update: Add copyright notice.
37970 (remove_id_lines, remove_trailing_blanks): New constants.
37971 (fixfile): Use them to normalize spacing a bit in copied files.
37972 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
37973 Normalize leading white space and remove trailing white space.
37975 * config/texinfo.tex: Sync with texinfo.
37977 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
37978 strtoul.c from libc, to merge coreutils whitespace changes.
37980 * config/srclist.txt: Get the following m4 files from gettext:
37981 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
37982 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
37983 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
37986 2003-08-12 Karl Berry <karl@gnu.org>
37988 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
37991 2003-08-11 Paul Eggert <eggert@twinsun.com>
37993 * modules/gnu-source, m4/gnu-source.m4:
37994 Remove; we're assuming Autoconf 2.54 or later now.
37995 Suggested by Bruno Haible.
37996 * MODULES.html.sh (func_all_modules): Remove gnu-source.
37998 2003-08-11 Bruno Haible <bruno@clisp.org>
38000 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
38002 2003-08-11 Bruno Haible <bruno@clisp.org>
38004 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
38005 (vasnprintf): Use it instead of wcslen.
38007 2003-08-11 Bruno Haible <bruno@clisp.org>
38009 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
38010 value to ensure that _Bool promotes to int. Use #define for _Bool when
38011 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
38013 2003-08-10 Karl Berry <karl@gnu.org>
38015 * lib/regex.h: update from libc (whitespace fix).
38017 2003-08-09 Paul Eggert <eggert@twinsun.com>
38019 Merge some files from coreutils. These changes were
38020 originally made by Jim Meyering.
38021 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
38022 many older Unixes require this.
38023 * lib/alloca.c (alloca): Remove cast to argument of free;
38024 no longer needed in C89.
38025 * lib/alloca_.h, regex.h: Fix white space to match
38026 what GNU indent does.
38028 2003-08-09 Paul Eggert <eggert@twinsun.com>
38030 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
38031 apparently Emacs's Unicode mode got confused before my 2003-08-05
38034 2003-08-08 Paul Eggert <eggert@twinsun.com>
38036 * m4/extensions.m4: New file.
38037 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
38038 Require gl_USE_SYSTEM_EXTENSIONS.
38039 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
38040 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
38042 2003-08-08 Paul Eggert <eggert@twinsun.com>
38044 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
38045 * modules/extensions, modules/gnu-source: New files.
38046 * modules/timespec, modules/unlocked-io: Depend on extensions.
38048 2003-08-07 Paul Eggert <eggert@twinsun.com>
38050 * modules/restrict: New file.
38051 * MODULES.html.sh (func_all_modules): Add restrict.
38052 * modules/regex: Depend on restrict.
38054 2003-08-07 Paul Eggert <eggert@twinsun.com>
38056 * m4/restrict.m4: New file.
38057 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
38059 2003-08-07 Bruno Haible <bruno@clisp.org>
38061 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
38062 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
38064 2003-08-07 Bruno Haible <bruno@clisp.org>
38066 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
38067 makes the module 'getndelim2' compatible with the module 'getline'.
38069 2003-08-05 Paul Eggert <eggert@twinsun.com>
38071 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
38072 byte with "\201" to avoid glitches when editing that source file
38073 with multi-gnome-terminal.
38075 2003-08-05 Paul Eggert <eggert@twinsun.com>
38077 * lib/bumpalloc.h: Remove.
38079 2003-08-05 Paul Eggert <eggert@twinsun.com>
38081 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
38082 * modules/bumpalloc: Remove.
38084 2003-08-04 Paul Eggert <eggert@twinsun.com>
38086 * lib/getloadavg.c: Change copyright notice and spacing to conform to
38089 Merge from coreutils.
38090 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
38092 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
38093 from Karl Berry, implemented by Jim Meyering.
38094 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
38095 from Dmitry V. Levin.
38096 Remove anachronistic cast of xrealloc.
38097 * lib/fnmatch_.h (__const): Remove. Use 'const'.
38098 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
38099 type. Otherwise, it wouldn't compile with at least /bin/cc on
38100 ymp-cray-unicos9.0.2.X.
38101 Combine two mostly-identical uses of alloca into one.
38102 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
38104 2003-08-04 Dave Love <d.love@dl.ac.uk>
38108 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
38109 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
38110 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
38111 obsolete NLIST_NAME_UNION.
38112 [__GNU__]: Undef BSD and FSCALE.
38113 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
38115 2003-08-03 Paul Eggert <eggert@twinsun.com>
38117 * lib/stdbool_.h (_Bool): Make it signed char, instead of
38118 an enum type, so that it's guaranteed to promote to int. See:
38119 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
38121 2003-08-03 Karl Berry <karl@gnu.org>
38123 * config/depcomp: update from automake.
38125 2003-07-31 Paul Eggert <eggert@twinsun.com>
38127 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
38128 (strerror): Don't assume that a printable int fits in 14 bytes.
38130 2003-07-31 Bruno Haible <bruno@clisp.org>
38132 * modules/getpass-gnu: New file.
38133 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
38135 2003-07-31 Bruno Haible <bruno@clisp.org>
38137 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
38139 2003-07-24 Karl Berry <karl@gnu.org>
38141 * config/missing: update from automake.
38143 2003-07-24 Derek Robert Price <derek@ximbiot.com>
38144 Bruno Haible <bruno@clisp.org>
38146 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
38147 * lib/getline.c (getline, getdelim): Likewise.
38148 Remove _GNU_SOURCE define; now it's defined in config.h through
38151 2003-07-23 Karl Berry <karl@gnu.org>
38153 * config/config.sub: update from prep.
38155 2003-07-22 Paul Eggert <eggert@twinsun.com>
38157 * modules/xalloc (Depends-on): Add exitfail.
38158 * modules/xmemcoll: Likewise.
38160 2003-07-22 Paul Eggert <eggert@twinsun.com>
38162 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
38163 over-parenthesization in macros.
38165 Sync with coreutils.
38167 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
38170 Use `exit_failure' for xalloc and xmemcoll instead of their own
38171 private exit-failure variables.
38172 * lib/xalloc.h (xalloc_exit_failure): Remove.
38173 * lib/xmalloc.c: Likewise. Include exitfail.h.
38174 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
38175 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
38176 * lib/xmemcoll.c: Likewise. Include exitfail.h.
38177 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
38179 2003-07-20 Jim Meyering <jim@meyering.net>
38181 * modules/closeout (Depends-on): Add exitfail.
38182 Suggestion from Bruno Haible.
38184 2003-07-19 Karl Berry <karl@gnu.org>
38186 * config/config.sub: update from prep.
38188 2003-07-18 Paul Eggert <eggert@twinsun.com>
38190 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
38192 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
38193 to test that it can stand by itself. Include "exitfail.h".
38194 Clients should set exit_failure instead.
38195 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
38197 2003-07-18 Bruno Haible <bruno@clisp.org>
38199 * modules/getndelim2: New file.
38200 * modules/getline: Share files with module getndelim2.
38201 * modules/getnline: Depend on getndelim2 instead of sharing files with
38202 it. Add getnline.c to lib_SOURCES.
38203 * MODULES.html.sh (func_all_modules): Add getndelim2.
38205 2003-07-18 Bruno Haible <bruno@clisp.org>
38207 * m4/getndelim2.m4: New file.
38208 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
38209 invoke gl_PREREQ_GETNDELIM2.
38210 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
38211 gl_PREREQ_GETNDELIM2.
38212 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
38215 2003-07-18 Bruno Haible <bruno@clisp.org>
38217 * lib/getndelim2.h: New file.
38218 * lib/getndelim2.c: Make into a module of its own. Include config.h,
38220 (getndelim2): Make non-static. Change return type to ssize_t.
38221 * lib/getline.h: Change argument names.
38222 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
38223 * lib/getnline.c: Include getndelim2.h.
38225 2003-07-18 Andreas Schwab <schwab@suse.de>
38227 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
38229 2003-07-17 Karl Berry <karl@gnu.org>
38231 * config/config.sub: update from prep.
38233 2003-07-17 Bruno Haible <bruno@clisp.org>
38235 * modules/getnline: New file.
38236 * modules/getline: Add lib/getndelim2.c to source file list.
38237 * MODULES.html.sh (func_all_modules): Add getnline.
38239 2003-07-17 Bruno Haible <bruno@clisp.org>
38241 * m4/getnline.m4: New file.
38243 2003-07-17 Bruno Haible <bruno@clisp.org>
38245 * m4/Makefile.am.in: Remove file.
38246 * m4/Makefile.am: Remove file.
38247 * m4/Makefile.in: Remove file.
38249 2003-07-17 Bruno Haible <bruno@clisp.org>
38251 * lib/getnline.h: New file.
38252 * lib/getnline.c: New file.
38253 * lib/getndelim2.c: New file, extracted from getline.c.
38254 (getndelim2): Renamed from getdelim2, with added nmax argument.
38255 * lib/getline.c: Include getndelim2.c.
38256 (getdelim2): Moved out to getndelim2.c.
38257 (getline, getdelim): Update.
38259 2003-07-17 Bruno Haible <bruno@clisp.org>
38261 * lib/Makefile.am: Remove file.
38262 * lib/Makefile.in: Remove file.
38264 2003-07-17 Bruno Haible <bruno@clisp.org>
38266 * configure.in: Remove file.
38267 * Makefile.in: Remove file.
38269 2003-07-17 Bruno Haible <bruno@clisp.org>
38271 * MODULES.html.sh: Put the </BODY> right before </HTML>.
38273 2003-07-16 Karl Berry <karl@gnu.org>
38275 * config/srclist-update: was running fixlicense twice, which caused
38276 texinfo.tex to be nullified for some reason. Simplify,
38277 $gplsrc is no longer needed as far as I can see?
38279 2003-07-16 Jim Meyering <jim@meyering.net>
38281 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
38283 2003-07-15 Paul Eggert <eggert@twinsun.com>
38285 * config/srclist.txt: Get the following files from gettext-runtime/intl
38286 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
38287 ref-del.sin. From Bruno Haible.
38288 * config/srclist-update (fixfile): Change grep pattern again, since the
38289 previous fix didn't work (there was another trailing $). Use
38290 '[$]' to escape the $s.
38292 2003-07-15 Karl Berry <karl@gnu.org>
38294 * lib/vasnprintf.c: update from gettext.
38296 2003-07-15 Karl Berry <karl@gnu.org>
38298 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
38299 gets expanded when surrounded by '$'.
38301 2003-07-15 Jim Meyering <jim@meyering.net>
38303 * modules/save-cwd: Don't depend on error. From Derek Price.
38305 2003-07-15 Jim Meyering <jim@meyering.net>
38307 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
38309 2003-07-14 Simon Josefsson <jas@extundo.com>
38311 * modules/mempcpy: New file.
38312 * MODULES.html.sh (func_all_modules): Add mempcpy.
38314 2003-07-14 Simon Josefsson <jas@extundo.com>
38316 * m4/mempcpy.m4: New file.
38318 2003-07-14 Simon Josefsson <jas@extundo.com>
38320 * lib/mempcpy.h: New file.
38321 * lib/mempcpy.c: New file.
38323 2003-07-14 Paul Eggert <eggert@twinsun.com>
38325 * modules/getdate, modules/posixtm: Depend on mktime.
38327 2003-07-14 Paul Eggert <eggert@twinsun.com>
38329 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
38330 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
38331 unicodeio.c, unicodeio.h, unlocked-io.h:
38332 Switch from LGPL to GPL.
38334 2003-07-14 Paul Eggert <eggert@twinsun.com>
38336 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
38337 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
38338 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
38339 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
38340 vasprintf.c, vasprintf.h: Regenerate. These files are now being
38341 updated automatically by ../config/srclist-update. This changes
38342 their license from LPGL to GPL.
38344 2003-07-14 Paul Eggert <eggert@twinsun.com>
38346 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
38347 assumed to refer to the root of the most recent stable gettext version.
38348 * config/srclistvars.sh: Add defaults for eggert.
38349 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
38350 Match "This program" as well as "The program". This is needed
38353 2003-07-14 Jim Meyering <jim@meyering.net>
38355 Don't emit diagnostics. Let callers do that.
38356 * lib/save-cwd.c: Don't include "error.h".
38357 (save_cwd): Don't call error. Ensure that errno is valid
38358 when returning nonzero.
38360 * lib/save-cwd.h (restore_cwd): Update prototype.
38361 * lib/save-cwd.c (restore_cwd): Remove two parameters.
38362 Simplify. Don't call error upon failure. Let callers do that.
38363 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
38364 when auditing is enabled. But don't bother updating the #if.
38366 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
38368 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
38369 it breaks C++ compilation.
38370 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
38372 2003-07-10 Simon Josefsson <jas@extundo.com>
38374 * modules/strchrnul (Makefile.am): Add strchrnul.h.
38376 2003-07-10 Jim Meyering <jim@meyering.net>
38378 * m4/clock_time.m4: Remove trailing blank.
38379 * m4/intmax_t.m4: Likewise.
38381 2003-07-10 Jim Meyering <jim@meyering.net>
38383 * lib/vasnprintf.c: Remove trailing blanks.
38384 Make cpp indentation consistent.
38386 2003-07-09 Paul Eggert <eggert@twinsun.com>
38388 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
38389 posixver.c, strftime.c, strnlen.c, strverscmp.c:
38390 Switch from LGPL to GPL.
38392 2003-07-09 Paul Eggert <eggert@twinsun.com>
38394 * config/srclist.txt: Sort sublists. Add
38395 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
38396 that differ from gnulib for one reason or another; we'd like this list
38397 to be smaller but for now let's document what we have.
38399 2003-07-08 Paul Eggert <eggert@twinsun.com>
38401 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
38402 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
38403 and sweeter "eval x=$x".
38404 * config/srclist.txt: Get lib/argp* from glibc.
38406 2003-07-07 Paul Eggert <eggert@twinsun.com>
38408 * lib/mktime.c: Fix some boundary cases and remove need for floating
38411 Issue a compile-time diagnostic if time_t is floating point, or if
38412 two's complement arithmetic is not in effect, or if arithmetic
38413 right shift does not propagate the sign. These assumptions were
38414 all in the original code but they weren't checked.
38416 (TIME_T_MIDPOINT, verify): New macros.
38417 (__isleap): Remove; it has integer overflow problems.
38418 (leapyear): New function, without those problems.
38419 (ydhms_tm_diff): Remove; splitting into two parts.
38420 (ydhms_diff): New function, containing the arithmetic part of
38421 the old ydhms_tm_diff function. Issue a compile-time
38422 diagnostic if we are not using C99 integer division.
38423 Avoid casts when possible.
38424 (guess_time_tm): New function, containing the checking part of
38425 the old ydhms_tm_diff function. Return the new value, rather than
38426 the difference between it and the old. Accept a new argument T
38427 so that *T specifies the old value. Check for overflow in the result.
38429 (__mktime_internal): Use a time_t offset, not a long int offset.
38430 This undoes the 2003-06-04 change, which is no longer needed now
38431 that we have better overflow checking.
38432 (localtime_offset): Likewise.
38434 (__mktime_internal): Avoid harmful overflow on hosts where time_t
38435 and long are 64-bit but int is only 32-bit.
38436 (ydhms_diff): Use long int to store year1 and yday1.
38437 Issue a compile-time diagnostic if long int is not wide enough.
38439 (__mktime_internal): Use long int to store adjusted year and yday.
38440 Use plain C rather than preprocessor commands, if that doesn't
38442 Check for overflow (and try to repair) after each probe
38443 rather than checking only at the very end. This avoids some bugs
38444 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
38445 does not equal GMT offset at maximum time).
38446 Use integer to check for overflow rather than floating point; this
38447 is more portable to non-IEEE hosts, and is a tad faster.
38448 When we detect that we are oscillating between two values,
38449 don't check whether tm_isdst has the requested value, since
38450 we already know the answer. When tm_isdst has the wrong value,
38451 use a different heuristic to find the right one, based on the
38452 extreme values actually observed in practice in tz2003a,
38453 rather than the (overly optimistic) "previous 3 calendar quarters".
38455 (not_equal_tm, print_tm, check_result): Use "const T" rather than
38456 "T const" to accommodate glibc style.
38457 (check_result): Use less-confusing report format. "long" -> "long int.
38459 Don't loop if the iteration overflows time_t.
38460 Allow a negative step in the iteration.
38462 2003-07-06 Karl Berry <karl@gnu.org>
38464 * config/depcomp: update from automake.
38465 * config/config.sub: update from prep.
38467 2003-07-03 Karl Berry <karl@gnu.org>
38469 * config/config.guess: update from prep.
38471 2003-07-01 Paul Eggert <eggert@twinsun.com>
38473 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
38474 xreadlink.c now includes it unconditionally.
38476 2003-07-01 Paul Eggert <eggert@twinsun.com>
38478 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
38479 having it depend on HAVE_SYS_TYPES_H.
38481 2003-07-01 Bruno Haible <bruno@clisp.org>
38483 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
38484 <sys/types.h> should be sufficient.
38485 Reported by Paul Eggert.
38487 2003-06-26 Karl Berry <karl@gnu.org>
38489 * config/depcomp: update from automake.
38491 2003-06-26 Bruno Haible <bruno@clisp.org>
38493 * modules/human: Depend on module stdbool.
38495 2003-06-25 Bruno Haible <bruno@clisp.org>
38497 * modules/readlink: New file.
38498 * modules/xreadlink: Depend on it.
38499 * MODULES.html.sh (func_all_modules): Add readlink.
38501 2003-06-25 Bruno Haible <bruno@clisp.org>
38503 * m4/readlink.m4: New file.
38505 2003-06-25 Bruno Haible <bruno@clisp.org>
38507 * lib/readlink.c: New file.
38509 2003-06-22 Karl Berry <karl@gnu.org>
38511 * config/srclist.txt: update mkinstalldirs from automake.
38512 * config/mkinstalldirs: update.
38514 2003-06-22 Bruno Haible <bruno@clisp.org>
38516 Portability to mingw32.
38517 * m4/ssize_t.m4: New file, from GNU gettext.
38518 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
38519 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
38521 2003-06-22 Bruno Haible <bruno@clisp.org>
38523 * modules/safe-read: Add m4/ssize_t.m4.
38524 * modules/xreadlink: Add m4/ssize_t.m4.
38526 2003-06-20 Bruno Haible <bruno@clisp.org>
38528 Assume C89, so PARAMS isn't needed.
38529 * lib/unicodeio.h (PARAMS): Remove.
38530 * lib/unicodeio.c: Don't use PARAMS.
38532 2003-06-18 Karl Berry <karl@gnu.org>
38534 * config/config.{guess,sub}: update from prep.
38536 2003-06-18 Jim Meyering <jim@meyering.net>
38538 Merge changes from coreutils.
38539 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
38540 Remove explicit declarations of xmalloc and realloc.
38542 (read_utmp): Remove anachronistic cast of xmalloc.
38544 2003-06-17 Paul Eggert <eggert@twinsun.com>
38546 Assume C89, so PARAMS isn't needed.
38547 * lib/backupfile.h (PARAMS): Remove. All uses removed.
38548 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
38549 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
38550 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
38551 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
38552 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
38553 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
38554 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
38555 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
38556 lib/xstrtod.h, lib/xstrtol.h: Likewise.
38557 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
38558 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
38559 no longer needed. Anyway, config.h should always be included before any
38562 2003-06-11 Simon Josefsson <jas@extundo.com>
38564 * modules/sysexits: New file.
38565 * MODULES.html.sh (func_all_modules): Add sysexits.
38567 2003-06-11 Simon Josefsson <jas@extundo.com>
38569 * lib/sysexit_.h: New file.
38571 2003-06-11 Derek Price <derek@ximbiot.com>
38573 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
38576 2003-06-11 Bruno Haible <bruno@clisp.org>
38578 * m4/sysexits.m4: New file.
38580 2003-06-10 Simon Josefsson <jas@extundo.com>
38582 * lib/argp.h: New file, from glibc.
38583 * lib/argp-ba.c: New file, from glibc.
38584 * lib/argp-eexst.c: New file, from glibc.
38585 * lib/argp-fmtstream.c: New file, from glibc.
38586 * lib/argp-fmtstream.h: New file, from glibc.
38587 * lib/argp-fs-xinl.c: New file, from glibc.
38588 * lib/argp-help.c: New file, from glibc.
38589 * lib/argp-namefrob.h: New file, from glibc.
38590 * lib/argp-parse.c: New file, from glibc.
38591 * lib/argp-pv.c: New file, from glibc.
38592 * lib/argp-pvh.c: New file, from glibc.
38593 * lib/argp-xinl.c: New file, from glibc.
38595 2003-06-10 Simon Josefsson <jas@extundo.com>
38597 * modules/strchrnul: New file.
38599 2003-06-10 Simon Josefsson <jas@extundo.com>
38601 * modules/argp: New file.
38603 2003-06-10 Simon Josefsson <jas@extundo.com>
38605 * m4/strchrnul.m4: New file.
38607 2003-06-10 Simon Josefsson <jas@extundo.com>
38609 * lib/strchrnul.h: New file.
38610 * lib/strchrnul.c: New file.
38612 2003-06-10 Bruno Haible <bruno@clisp.org>
38614 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
38616 2003-06-07 Karl Berry <karl@gnu.org>
38618 * config/config.{guess,sub}: update from prep.
38620 2003-06-07 Jim Meyering <jim@meyering.net>
38622 * modules/strtod: Use $(...) notation, not @...@ for
38623 AC_REPLACE'd variables.
38624 * modules/localcharset: Likewise.
38626 2003-06-07 Jim Meyering <jim@meyering.net>
38628 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
38629 in place of my name in the copyright comment.
38630 Remove definition and uses of __P.
38633 * lib/stat.c: Don't declare xmalloc explicitly.
38634 Instead, include "xalloc.h".
38635 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
38636 xrealloc, and xcalloc return values.
38637 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
38639 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
38641 2003-06-07 Bruno Haible <bruno@clisp.org>
38643 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
38644 avoid AC_CONFIG_LINKS.
38645 * modules/fnmatch (Makefile.am): Use explicit creation rule for
38646 fnmatch.h, to avoid AC_CONFIG_LINKS.
38647 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
38649 2003-06-07 Bruno Haible <bruno@clisp.org>
38651 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
38652 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
38653 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
38655 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
38656 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
38659 2003-06-06 Jim Meyering <jim@meyering.net>
38661 Merge from coreutils.
38662 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
38663 Consolidate declarations and initializations of *_base* locals.
38665 Merge from coreutils.
38666 This avoids a core dump on systems without GNU putenv,
38667 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
38668 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
38669 (unsetenv): New static function, from GNU libc.
38670 (rpl_putenv): Use it.
38672 * lib/modechange.c: Remove trailing blanks.
38674 Merge from coreutils.
38675 * lib/fsusage.c: Remove declaration of statfs.
38676 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
38678 * lib/posixtm.c: Include <stdbool.h> unconditionally.
38680 2003-06-06 Jim Meyering <jim@meyering.net>
38682 * lib/stdbool_.h: Renamed from stdbool.h.in.
38684 2003-06-06 Jim Meyering <jim@meyering.net>
38685 Bruno Haible <bruno@clisp.org>
38687 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
38688 Adjust Makefile.am snippet not to redirect directly to target.
38689 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
38691 2003-06-05 Paul Eggert <eggert@twinsun.com>
38693 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
38694 mismatch, look in future quarters as well as past. This fixes a
38695 bug when processing fall-backwards gaps immediately after a long
38696 period of daylight-saving time.
38698 * lib/mktime.c: Assume freestanding C89 or better.
38699 (HAVE_LIMITS_H): Remove. Assume it's 1.
38700 (__P): Remove; not used.
38701 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
38702 (mktime, not_equal_tm, print_tm, check_result,
38703 main): Use prototypes. Use const * where appropriate.
38704 (main): Fix typo in testing code that uncovered by above changes.
38705 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
38707 2003-06-04 Paul Eggert <eggert@twinsun.com>
38709 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
38710 locale.h, localeconv. This merges changes from coreutils.
38712 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
38713 It can be removed after the next Autoconf is released.
38714 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
38717 2003-06-04 Paul Eggert <eggert@twinsun.com>
38719 * lib/mktime.c: Fix Debian bug 177940
38720 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
38721 (localtime_offset): Now long int, not time_t, because we want it
38722 to be guaranteed to be signed. All uses changed.
38723 (__mktime_internal): If overflow would occur when adding offset,
38726 Merge 'human' changes from coreutils. Rewrite to support
38727 locale-specific notations like thousands separators.
38728 * lib/human.c: Simplify authorship notice.
38729 Include human.h immediately after config.h.
38730 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
38731 <limits.h>: Do not include, since human.h does.
38732 (SIZE_MAX, UINTMAX_MAX): New macros.
38733 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
38734 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
38735 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
38736 (power_letter): Renamed from suffixes.
38737 (generate_suffix_backwards): Remove.
38738 (adjust_value): Now takes int style (because of human.h changes)
38739 and long double value (for greater precision on some platforms).
38740 (group_number): New function.
38741 (human_readable): Use it. Use integer options, not enum.
38742 Put the options before the sizes in the arg list.
38743 Support all the new options.
38744 The old human_readable function has been removed;
38745 use inttostr.h instead.
38746 (human_readable, default_block_size, humblock):
38747 Use uintmax_t, not int, for block sizes.
38748 (human_readable_inexact, block_size_types): Remove.
38749 (block_size_opts): New constant.
38750 (human_options): Renamed from human_block_size, with new signature
38751 that allows block sizes up to UINTMAX_MAX. All callers changed.
38752 * lib/human.h: Add copyright and authorship notice.
38753 Include <limits.h> and <stdbool.h> unconditionally.
38754 (PARAMS): Remove. All uses removed.
38755 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
38756 (enum human_inexact_style): Remove tag; now a nameless enum.
38757 (human_floor, human_ceiling, human_round_to_even): Now have
38758 values 2, 0, 1 rather than -1, 1, 0.
38759 (human_group_digits, human_suppress_point_zero, human_autoscale,
38760 human_base_1024, human_SI, human_B): New constants.
38761 (human_readable_inexact, human_block_size): Remove.
38762 (human_readable): Size args are now uintmax_t, not int.
38763 (human_options): New decl.
38765 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
38766 unnecessary now that we assume C89 or better. This change
38767 imported from coreutils.
38769 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
38770 arbitrarily. This is the same patch as 2003-05-28, but it got lost
38771 in the 2003-05-30 sync from glibc.
38773 .h files should stand alone, but we shouldn't include <sys/types.h>
38774 if we can get away with just <stddef.h>.
38776 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
38777 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
38778 rather than <sys/types.h>, as we merely need size_t.
38779 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
38781 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
38782 Include <stdio.h>, to get FILE.
38783 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
38784 memcasecmp.h has included <stddef.h> and all we need is size_t.
38785 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
38786 our interface, instead of including <sys/types.h>
38788 2003-06-04 Paul Eggert <eggert@twinsun.com>
38790 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
38791 now, as glibc mktime is buggy on non-glibc systems.
38793 2003-06-03 Karl Berry <karl@gnu.org>
38795 * config/config.sub: update from prep.
38797 2003-06-02 Paul Eggert <eggert@twinsun.com>
38800 Fix some minor time-related bugs with POSIX time arguments.
38801 Some valid time stamps were being rejected (notably -1, and
38802 time stamps before 1900 on 64-bit hosts). And some invalid
38803 time stamps were being accepted, e.g. September 31.
38805 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
38806 that we can return (time_t) -1 successfully.
38807 * lib/posixtm.c: Likewise.
38808 [HAVE_STDBOOL_H]: Include <stdbool.h>.
38809 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
38810 (t): Remove static var.
38811 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
38812 of static var. All uses changed.
38813 (year): Do not reject years before 1900; they can occur with
38815 (posix_time_parse): Do not check for out-of-range components;
38816 that is now the caller's responsibility, since our checks were
38817 only approximations.
38818 (posixtime): Use mktime to check for out-of-range components,
38819 since it knows them exactly.
38820 If mktime returns (time_t) -1, check whether an error actually occurred
38821 by invoking localtime on -1.
38822 (main) [TEST_POSIXTIME]: Check for input data errors, and report
38823 posixtime failures better.
38824 Improve the test data (in comments only).
38826 2003-06-02 Karl Berry <karl@gnu.org>
38828 * config/mkinstalldirs (version): new variable.
38829 (--version): new option.
38830 (usage): improve message.
38832 2003-05-30 Karl Berry <karl@gnu.org>
38834 * lib/mktime.c: update from libc.
38836 2003-05-30 Bruno Haible <bruno@clisp.org>
38838 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
38839 * config/config.rpath: Upgrade to gettext-0.12.1.
38841 2003-05-30 Bruno Haible <bruno@clisp.org>
38843 * m4/gettext.m4: Upgrade to gettext-0.12.1.
38844 * m4/nls.m4: New file, from gettext-0.12.1.
38845 * m4/po.m4: New file, from gettext-0.12.1.
38846 * m4/progtest.m4: Upgrade to gettext-0.12.1.
38848 2003-05-30 Bruno Haible <bruno@clisp.org>
38850 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
38851 * lib/localcharset.h: Likewise.
38852 * lib/localcharset.c: Likewise.
38854 2003-05-29 Karl Berry <karl@gnu.org>
38856 * config/config.rpath: update from gettext.
38858 2003-05-28 Paul Eggert <eggert@twinsun.com>
38860 Assume the headers required for C89 freestanding compilers.
38861 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
38862 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
38863 * m4/human.m4 (gl_HUMAN): Likewise.
38864 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
38865 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
38866 * m4/userspec.m4 (gl_USERSPEC): Likewise.
38867 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
38868 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
38869 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
38871 2003-05-28 Paul Eggert <eggert@twinsun.com>
38873 Assume the headers required for C89 freestanding compilers.
38874 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
38875 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
38876 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
38877 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
38878 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
38879 define, since <limits.h> is guaranteed to do that.
38880 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
38881 * lib/exclude.c: Include <stdbool.h> unconditionally.
38882 * lib/tempname.c: Include <stddef.h> unconditionally.
38883 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
38884 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
38885 <stddef.h> does that.
38886 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
38887 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
38888 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
38890 * lib/xstrtol.c: Likewise.
38891 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
38892 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
38894 * lib/addext.c (addext): Use assignment rather than cast, to avoid
38895 warnings on some platforms.
38897 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
38900 2003-05-26 Jim Meyering <jim@meyering.net>
38902 Merge in a change from coreutils:
38903 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
38904 that is guaranteed to be `no'. Use `no_such_member' to indicate
38905 that condition, rather than `-1' which is slightly misleading.
38906 Change the name of the cache variable to have the gl_ prefix.
38907 Prompted by a patch from Richard Dawe for DJGPP.
38909 2003-05-24 Karl Berry <karl@gnu.org>
38911 * config/config.guess: update from prep.
38913 2003-05-22 Karl Berry <karl@gnu.org>
38915 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
38917 2003-05-20 Karl Berry <karl@gnu.org>
38919 * config/config.guess: update from prep.
38921 2003-05-18 Karl Berry <karl@gnu.org>
38923 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
38924 might actually be set by the user.
38926 * config/depcomp, install-sh, mdate-sh: update from automake.
38928 2003-05-17 Bruno Haible <bruno@clisp.org>
38930 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
38931 invalid expansion for AC_EGREP_CPP.
38932 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
38933 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
38934 Suggested by Akim Demaille <akim@epita.fr> in
38935 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
38937 2003-05-12 Jim Meyering <jim@meyering.net>
38939 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
38940 the space-padded-by-default conversion specifiers, %e, %k, %l.
38942 2003-05-12 Bruno Haible <bruno@clisp.org>
38944 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
38945 the string is longer than 4 KB.
38947 2003-05-11 Karl Berry <karl@gnu.org>
38949 * config/config.{guess,sub}: update from prep.
38951 2003-05-09 Bruno Haible <bruno@clisp.org>
38953 * modules/error: Add m4/strerror_r.m4 to file list.
38955 2003-05-03 Bruno Haible <bruno@clisp.org>
38957 Upgrade to Unicode-4.0.
38958 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
38959 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
38960 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
38961 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
38962 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
38963 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
38964 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
38965 Change width of U+E0100..U+E01EF from 1 to 0.
38967 2003-04-25 Jim Meyering <jim@meyering.net>
38969 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
38970 of type size_t, not int.
38972 2003-04-25 Bruno Haible <bruno@clisp.org>
38974 * lib/copy-file.c: Include <stddef.h>, for size_t.
38976 2003-04-21 Paul Eggert <eggert@twinsun.com>
38978 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
38979 code which expansion is under static control. Patch imported from
38980 Akim Demaille's patch to Bison; see
38981 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
38983 2003-04-14 Bruno Haible <bruno@clisp.org>
38985 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
38987 2003-04-11 Jim Meyering <jim@meyering.net>
38989 Merge changes from Coreutils.
38991 2003-03-22 Jim Meyering <jim@meyering.net>
38993 * lib/strftime.c (widen): Cast alloca return value to proper type.
38995 2003-01-19 Ulrich Drepper <drepper@redhat.com>
38998 * lib/strftime.c (my_strftime): Handle very large width
38999 specifications for numeric values correctly. Improve checks for
39002 2003-01-19 Jim Meyering <jim@meyering.net>
39004 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
39006 (nl_get_alt_digit) [! defined my_strftime]: Define.
39007 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
39008 _nl_get_alt_digit and _nl_get_walt_digit.
39010 * lib/strftime.c (my_strftime): Merge in locale-related changes from
39011 libc. These changes have no effect outside of _LIBC.
39013 2003-04-10 Bruno Haible <bruno@clisp.org>
39015 * modules/findprog: New file.
39016 * MODULES.html.sh (func_all_modules): Add it.
39018 2003-04-10 Bruno Haible <bruno@clisp.org>
39020 * m4/findprog.m4: New file.
39021 * m4/eaccess.m4: New file.
39023 2003-04-10 Bruno Haible <bruno@clisp.org>
39025 * lib/findprog.h: New file, from GNU gettext.
39026 * lib/findprog.c: New file, from GNU gettext.
39028 2003-04-05 Jim Meyering <jim@meyering.net>
39030 Merge changes from Coreutils.
39032 * lib/exclude.h (PARAMS): Remove definition and uses.
39033 * lib/exclude.c: Remove uses of `PARAMS'.
39035 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
39036 Add test-cases for DOS filenames. Declare program_name.
39037 (main): Set up program_name. Patch by Rich Dawe.
39039 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
39041 Use mntctl's return value to drive the entry-processing loop, since
39042 we can't rely on the value of the vmt_length member in the last
39043 entry. On some systems doing so could result in exhausting
39044 virtual memory. Based in part on a patch from Mike Jetzer.
39046 2003-04-04 Bruno Haible <bruno@clisp.org>
39048 * modules/linebreak: New file.
39049 * MODULES.html.sh (func_all_modules): Add it.
39051 2003-04-04 Bruno Haible <bruno@clisp.org>
39053 * m4/linebreak.m4: New file.
39055 2003-04-04 Bruno Haible <bruno@clisp.org>
39057 * lib/linebreak.h: New file, from GNU gettext.
39058 * lib/linebreak.c: New file, from GNU gettext with slight
39060 * lib/lbrkprop.h: New file, from GNU gettext.
39062 2003-04-03 Bruno Haible <bruno@clisp.org>
39064 * modules/utf8-ucs4: New file.
39065 * modules/utf16-ucs4: New file.
39066 * modules/ucs4-utf8: New file.
39067 * modules/ucs4-utf16: New file.
39068 * MODULES.html.sh (func_all_modules): Add them.
39070 2003-04-03 Bruno Haible <bruno@clisp.org>
39072 * m4/utf-ucs4.m4: New file.
39073 * m4/ucs4-utf.m4: New file.
39075 2003-04-03 Bruno Haible <bruno@clisp.org>
39077 * lib/utf8-ucs4.h: New file, from GNU gettext.
39078 * lib/utf16-ucs4.h: New file, from GNU gettext.
39079 * lib/ucs4-utf8.h: New file, from GNU gettext.
39080 * lib/ucs4-utf16.h: New file, from GNU gettext.
39082 2003-04-02 Bruno Haible <bruno@clisp.org>
39084 * modules/binary-io: New file.
39085 * MODULES.html.sh (func_all_modules): Add it.
39087 2003-04-02 Bruno Haible <bruno@clisp.org>
39089 * lib/binary-io.h: New file, from GNU gettext.
39091 2003-04-01 Bruno Haible <bruno@clisp.org>
39093 * modules/pathname: New file.
39094 * MODULES.html.sh (func_all_modules): Add it.
39096 2003-04-01 Bruno Haible <bruno@clisp.org>
39098 * lib/pathname.h: New file, from GNU gettext.
39099 * lib/concatpath.c: New file, from GNU gettext.
39101 2003-03-30 Bruno Haible <bruno@clisp.org>
39103 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
39105 2003-03-30 Bruno Haible <bruno@clisp.org>
39107 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
39108 function chown() doesn't exist.
39110 2003-03-28 Bruno Haible <bruno@clisp.org>
39112 * modules/copy-file: New file.
39113 * MODULES.html.sh (func_all_modules): Add it.
39115 2003-03-28 Bruno Haible <bruno@clisp.org>
39117 * m4/copy-file.m4: New file.
39119 2003-03-28 Bruno Haible <bruno@clisp.org>
39121 * lib/copy-file.h: New file, from GNU gettext.
39122 * lib/copy-file.c: New file, from GNU gettext.
39124 2003-03-18 Jim Meyering <jim@meyering.net>
39126 * lib/quote.c (quote_n): Fix typo in comment.
39128 2003-03-18 Bruno Haible <bruno@clisp.org>
39130 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
39132 * m4/onceonly_2_57.m4: Likewise.
39134 2003-03-17 Bruno Haible <bruno@clisp.org>
39136 * m4/onceonly.m4: Require autoconf 2.54 or newer.
39137 (m4_quote): Remove macro.
39138 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
39140 2003-03-14 Jim Meyering <jim@meyering.net>
39142 Merge changes from Coreutils.
39143 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
39144 to be const, in order to avoid warnings.
39145 (obstack_room): Likewise.
39146 (obstack_empty_p): Likewise.
39148 2003-03-14 Bruno Haible <bruno@clisp.org>
39150 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
39151 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
39153 2003-03-13 Paul Eggert <eggert@twinsun.com>
39155 Merge changes from Bison.
39156 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
39157 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
39158 when compiling Bison 1.875's `bitset bset = obstack_alloc
39159 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
39160 * lib/hash.c: Include <stdbool.h> unconditionally.
39162 2003-03-13 Paul Eggert <eggert@twinsun.com>
39164 * m4/onceonly.m4 (m4_quote): New macro.
39165 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
39166 Quote AC_FOREACH variable-expansions properly.
39168 2003-03-13 Paul Eggert <eggert@twinsun.com>
39170 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
39172 2003-03-09 Paul Eggert <eggert@twinsun.com>
39174 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
39175 Reported by Bruce Becker; see:
39176 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
39178 2003-03-03 Paul Eggert <eggert@twinsun.com>
39179 Bruno Haible <bruno@clisp.org>
39181 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
39182 Reported by John Hughes, see
39183 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
39185 2003-02-20 Bruno Haible <bruno@clisp.org>
39187 * MODULES.html.sh (func_all_modules): Add poll.
39189 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
39191 * modules/poll: New file.
39193 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
39195 * lib/poll_.h: New file.
39196 * lib/poll.c: New file.
39198 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
39200 * m4/poll.m4: New file.
39202 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
39204 * modules/mathl: New file.
39206 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
39208 * lib/mathl.h: New file.
39209 * lib/acosl.c: New file.
39210 * lib/asinl.c: New file.
39211 * lib/atanl.c: New file.
39212 * lib/ceill.c: New file.
39213 * lib/cosl.c: New file.
39214 * lib/expl.c: New file.
39215 * lib/floorl.c: New file.
39216 * lib/frexpl.c: New file.
39217 * lib/ldexpl.c: New file.
39218 * lib/logl.c: New file.
39219 * lib/sincosl.c: New file.
39220 * lib/sinl.c: New file.
39221 * lib/sqrtl.c: New file.
39222 * lib/tanl.c: New file.
39223 * lib/trigl.c: New file.
39224 * lib/trigl.h: New file.
39226 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
39228 * m4/mathl.m4: New file.
39230 2003-02-18 Bruno Haible <bruno@clisp.org>
39232 * MODULES.html.sh (func_all_modules): Add mathl.
39234 2003-02-17 Bruno Haible <bruno@clisp.org>
39236 * modules/mkdtemp: New module.
39237 * MODULES.html.sh (func_all_modules): Add it.
39239 2003-02-17 Bruno Haible <bruno@clisp.org>
39241 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
39243 2003-02-17 Bruno Haible <bruno@clisp.org>
39245 * lib/mkdtemp.h: New file, from GNU gettext.
39246 * lib/mkdtemp.c: New file, from GNU gettext.
39248 2003-02-02 Jim Meyering <jim@meyering.net>
39250 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
39253 2003-01-31 Bruno Haible <bruno@clisp.org>
39255 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
39257 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
39259 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
39261 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
39264 2003-01-31 Bruno Haible <bruno@clisp.org>
39266 * lib/rename.c: #undef rename before defining rpl_rename.
39267 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
39269 2003-01-30 Bruno Haible <bruno@clisp.org>
39271 * modules/vasnprintf, modules/vasprintf: New modules.
39272 * MODULES.html.sh (func_all_modules): Add them.
39274 2003-01-30 Bruno Haible <bruno@clisp.org>
39276 * m4/signed.m4: New file, from GNU gettext.
39277 * m4/longdouble.m4: New file, from GNU gettext.
39278 * m4/wchar_t.m4: New file, from GNU gettext.
39279 * m4/wint_t.m4: New file, from GNU gettext.
39280 * m4/vasnprintf.m4: New file.
39281 * m4/vasprintf.m4: New file.
39283 2003-01-30 Bruno Haible <bruno@clisp.org>
39285 * lib/printf-args.h: New file, from GNU gettext.
39286 * lib/printf-args.c: New file, from GNU gettext.
39287 * lib/printf-parse.h: New file, from GNU gettext.
39288 * lib/printf-parse.c: New file, from GNU gettext.
39289 * lib/vasnprintf.h: New file, from GNU gettext.
39290 * lib/vasnprintf.c: New file, from GNU gettext.
39291 * lib/asnprintf.c: New file, from GNU gettext.
39292 * lib/vasprintf.h: New file, from GNU gettext with modifications.
39293 * lib/vasprintf.c: New file, from GNU gettext.
39294 * lib/asprintf.c: New file, from GNU gettext.
39296 2003-01-29 Bruno Haible <bruno@clisp.org>
39298 * modules/stpncpy: New module.
39299 * MODULES.html.sh (func_all_modules): Add it.
39301 2003-01-29 Bruno Haible <bruno@clisp.org>
39303 * m4/stpncpy.m4: New file.
39305 2003-01-29 Bruno Haible <bruno@clisp.org>
39307 * lib/stpncpy.h: New file, from GNU gettext with modifications.
39308 * lib/stpncpy.c: New file, from GNU gettext with modifications.
39310 2003-01-28 Bruno Haible <bruno@clisp.org>
39312 * modules/c-ctype: New module.
39313 * MODULES.html.sh (func_all_modules): Add it.
39315 2003-01-28 Bruno Haible <bruno@clisp.org>
39317 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
39319 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
39322 2003-01-27 Bruno Haible <bruno@clisp.org>
39324 * modules/xsetenv: New module.
39325 * MODULES.html.sh (func_all_modules): Add it.
39327 2003-01-27 Bruno Haible <bruno@clisp.org>
39329 * lib/xsetenv.h: New file, from GNU gettext.
39330 * lib/xsetenv.c: New file, from GNU gettext.
39332 2003-01-23 Jim Meyering <jim@meyering.net>
39334 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
39335 from working on systems without dirfd (at least Irix and OSF1/Tru64).
39337 2003-01-23 Bruno Haible <bruno@clisp.org>
39339 * modules/minmax: New module.
39340 * MODULES.html.sh (func_all_modules): Add it.
39342 2003-01-23 Bruno Haible <bruno@clisp.org>
39344 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
39347 2003-01-22 Bruno Haible <bruno@clisp.org>
39349 * modules/exit: New module.
39350 * MODULES.html.sh (func_all_modules): Add it.
39352 2003-01-22 Bruno Haible <bruno@clisp.org>
39354 * lib/exit.h: New file, from GNU gettext.
39356 2003-01-19 Bruno Haible <bruno@clisp.org>
39358 * gnulib-tool: Recognize option --extract-maintainer.
39359 (func_get_maintainer): New function.
39360 * modules/*: Add Maintainer entry.
39362 2003-01-16 Jim Meyering <jim@meyering.net>
39364 * m4/regex.m4: The `regex' struct is both input and output.
39365 Initialize it before each use. Patch by Tim Waugh.
39367 2003-01-16 Bruno Haible <bruno@clisp.org>
39369 * MODULES.html.sh: Add a table of contents. Add the module name as
39370 leftmost column. Add hyperlinks.
39372 2003-01-15 Bruno Haible <bruno@clisp.org>
39374 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
39376 2003-01-15 Bruno Haible <bruno@clisp.org>
39378 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
39379 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
39382 2003-01-15 Bruno Haible <bruno@clisp.org>
39384 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
39386 2003-01-15 Bruno Haible <bruno@clisp.org>
39388 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
39389 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
39391 2003-01-14 Jim Meyering <jim@meyering.net>
39393 * lib/same.c (same_name): Tweak a comment.
39395 2003-01-14 Bruno Haible <bruno@clisp.org>
39397 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
39398 when a string comparison is sufficient.
39400 2003-01-14 Bruno Haible <bruno@clisp.org>
39402 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
39405 2003-01-14 Bruno Haible <bruno@clisp.org>
39407 * lib/hash-pjw.c: Add comment about low quality of this function.
39409 2003-01-13 Bruno Haible <bruno@clisp.org>
39411 * modules/stpcpy: Distribute lib/stpcpy.h.
39412 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
39414 2003-01-13 Bruno Haible <bruno@clisp.org>
39416 * modules/*: Add a description.
39417 * modules/strpbrk: Fix Makefile.am snippet.
39418 * modules/strtoimax: Fix dependencies.
39419 * modules/strtoumax: Likewise.
39421 2003-01-13 Bruno Haible <bruno@clisp.org>
39423 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
39424 * modules/alloca (Makefile.am): All object files depend on alloca.h.
39425 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
39427 2003-01-13 Bruno Haible <bruno@clisp.org>
39429 * gnulib-tool (func_create_testdir): Store config/* files in the main
39431 * config.rpath: Move to ...
39432 * config/config.rpath: ... here.
39433 * modules/gettext: Contains config/config.rpath, not config.rpath.
39434 * modules/iconv: Likewise.
39436 2003-01-12 Paul Eggert <eggert@twinsun.com>
39438 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
39439 to avoid collisions with libcurses and libreadline.
39441 * m4/getstr.m4: Remove.
39442 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
39444 2003-01-12 Paul Eggert <eggert@twinsun.com>
39446 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
39447 to avoid collisions with libcurses and libreadline.
39449 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
39450 * lib/getstr.h, getstr.c: Remove.
39451 * lib/getline.c: Include "getline.h", to check interface.
39452 Move body of old getstr.c here: this defines MIN_CHUNK and
39453 declares getdelim2, which is renamed from getstr.
39454 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
39456 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
39458 * lib/linebuffer.h: Likewise.
39459 (readline): Remove backward-compatibility macro.
39461 2003-01-12 Paul Eggert <eggert@twinsun.com>
39463 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
39464 to avoid collisions with libcurses and libreadline.
39466 * MODULES.html.sh: Remove getstr.
39467 * modules/getline: Depend on unlocked-io, not getstr.
39469 2003-01-12 Jim Meyering <jim@meyering.net>
39471 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
39473 2003-01-10 Bruno Haible <bruno@clisp.org>
39475 * modules/alloca: Change Makefile.am requirements. Simplify Include
39476 requirements. Add lib/alloca_.h to file list.
39478 2003-01-10 Bruno Haible <bruno@clisp.org>
39480 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
39482 2003-01-10 Bruno Haible <bruno@clisp.org>
39484 * lib/alloca_.h: New file.
39485 * lib/getdate.y: Unconditionally include alloca.h.
39486 * lib/makepath.c: Likewise.
39487 * lib/setenv.c: Likewise.
39488 * lib/userspec.c: Likewise.
39490 2003-01-09 Karl Berry <karl@gnu.org>
39492 * MODULES.html.sh: include `dirname $0` in PATH, to find
39495 2003-01-09 Bruno Haible <bruno@clisp.org>
39497 * modules/stdbool: Change configure.ac, Makefile.am requirements.
39498 Simplify Include requirements. Add lib/stdbool.h.in to file list.
39500 2003-01-09 Bruno Haible <bruno@clisp.org>
39502 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
39504 2003-01-09 Bruno Haible <bruno@clisp.org>
39506 * lib/stdbool.h.in: New file.
39508 2003-01-09 Bruno Haible <bruno@clisp.org>
39510 * gnulib-tool (func_all_modules): Ignore files ending in ~.
39511 * MODULES.html.sh: Likewise.
39513 2003-01-08 Jim Meyering <jim@meyering.net>
39515 * lib/full-write.c: Undefine and define-away `const' after inclusion
39516 of errno.h, not before. Suggestion from Bruno Haible.
39518 2003-01-08 Bruno Haible <bruno@clisp.org>
39520 * modules/full-read: Depend on full-write.
39522 2003-01-08 Bruno Haible <bruno@clisp.org>
39524 * lib/safe-read.c: Include specification header first, to ensure its
39526 * lib/full-write.c: Likewise.
39528 2003-01-07 Jim Meyering <jim@meyering.net>
39530 * lib/full-write.c: Rework so that it may serve to define full_read,
39532 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
39534 2003-01-07 Bruno Haible <bruno@clisp.org>
39536 * lib/strtoimax.c: Include <stdint.h> as an alternative to
39538 * lib/xstrtol.h: Likewise.
39539 * lib/xstrtoimax.c: Likewise.
39540 * lib/xstrtoumax.c: Likewise.
39541 * lib/human.h: Likewise.
39543 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
39544 on systems that have <inttypes.h> but not <stdint.h>.
39546 2003-01-07 Bruno Haible <bruno@clisp.org>
39548 * MODULES.html.sh: Add copyright notice.
39549 (missed_files): Omit CVS directory entries.
39550 (func_module): Make it work with sed-3.02.
39551 * MODULES.txt: Remove file.
39553 2003-01-06 Jim Meyering <jim@meyering.net>
39555 * lib/version-etc.c: Update year in translatable copyright string.
39557 2003-01-03 Karl Berry <karl@gnu.org>
39559 * config/config.{guess,sub}: update from prep.
39561 2003-01-02 Karl Berry <karl@gnu.org>
39563 * doc/COPYING.DOC: belatedly updated to 1.2.
39565 2003-01-01 Karl Berry <karl@gnu.org>
39567 * gnulib-tool (func_verify_module): report module name $module in
39568 error message, not $1.
39569 * gnulib-tool (create-testdir): don't complain if destdir couldn't
39570 be created, only if it doesn't exist.
39571 * gnulib-tool (last_checkin_date): don't expand the $Date here.
39573 2002-12-31 Paul Eggert <eggert@twinsun.com>
39575 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
39577 2002-12-31 Paul Eggert <eggert@twinsun.com>
39579 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
39580 memcmp if strcoll doesn't work.
39582 2002-12-31 Bruno Haible <bruno@clisp.org>
39584 * lib/utime.c (utime_null): No need to call ftruncate if the file was
39587 2002-12-31 Bruno Haible <bruno@clisp.org>
39589 * lib/memcoll.c (STRCOLL): New macro.
39592 2002-12-31 Bruno Haible <bruno@clisp.org>
39594 * lib/localcharset.h: New file.
39595 * lib/localcharset.c: Include it.
39596 * lib/unicodeio.c: Likewise.
39598 2002-12-31 Bruno Haible <bruno@clisp.org>
39600 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
39601 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
39603 2002-12-31 Bruno Haible <bruno@clisp.org>
39605 * lib/getline.h: Include <stddef.h>, for size_t.
39607 * lib/unicodeio.h: Include <stddef.h>, for size_t.
39608 * lib/unicodeio.c: Don't include <stddef.h>.
39610 2002-12-31 Bruno Haible <bruno@clisp.org>
39612 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
39615 2002-12-24 Karl Berry <karl@gnu.org>
39617 * config/config.guess: update from prep.
39619 2002-12-24 Bruno Haible <bruno@clisp.org>
39621 General infrasructure.
39622 * m4/README: Rewritten.
39623 * m4/onceonly.m4: New file.
39624 * m4/onceonly_2_57.m4: New file.
39627 * m4/atexit.m4: New file.
39630 * m4/strtod.m4: New file.
39633 * m4/strtol.m4: New file.
39636 * m4/strtoul.m4: New file.
39639 * m4/memchr.m4: New file.
39642 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
39643 (jm_FUNC_MEMCMP): Invoke it.
39646 * m4/memcpy.m4: New file.
39649 * m4/memmove.m4: New file.
39652 * m4/memset.m4: New file.
39655 * m4/strcspn.m4: New file.
39658 * m4/strpbrk.m4: New file.
39661 * m4/strstr.m4: New file.
39664 * m4/strerror.m4: New file.
39667 * m4/mktime.m4: Renamed from jm-mktime.m4.
39668 (gl_PREREQ_MKTIME): New macro.
39669 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
39672 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
39673 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
39674 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
39677 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
39678 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
39679 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
39682 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
39683 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
39684 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
39686 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
39689 * m4/xalloc.m4: New file.
39692 * m4/alloca.m4: New file.
39695 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
39696 (jm_FUNC_PUTENV): Invoke it.
39699 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
39700 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
39701 when invoked twice.
39702 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
39706 * m4/memrchr.m4: New file.
39709 * m4/stpcpy.m4: New file.
39712 * m4/strcase.m4: New file.
39715 * m4/strdup.m4: New file.
39718 * m4/strnlen.m4: New file.
39721 * m4/strndup.m4: New file.
39724 * m4/xstrtod.m4: New file.
39727 * m4/xstrtol.m4: New file.
39730 * m4/getdate.m4: New file.
39732 Module unlocked-io.
39733 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
39734 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
39735 * m4/jm-glibc-io.m4n: Remove file.
39737 Module long-options.
39738 * m4/long-options.m4: New file.
39741 * m4/md5.m4: New file.
39744 * m4/sha.m4: New file.
39747 * m4/getstr.m4: New file.
39750 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
39751 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
39752 <sys/types.h>, for size_t. Use the function name gnu_getline, not
39753 simply getline. Infoke gl_PREREQ_GETLINE.
39756 * m4/obstack.m4: New file.
39759 * m4/hash.m4: New file.
39762 * m4/readtokens.m4: New file.
39765 * m4/strverscmp.m4: New file.
39768 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
39772 * m4/strtoll.m4: New file.
39775 * m4/strtoull.m4: New file.
39778 * m4/strtoimax.m4: New file.
39781 * m4/strtoumax.m4: New file.
39784 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
39785 jm_AC_PREREQ_XSTRTOIMAX.
39786 Moved the strtol prerequisites to strtol.m4.
39787 Moved the strtoll prerequisites to strtoll.m4.
39788 Moved the strtoimax prerequisites to strtoimax.m4.
39791 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
39792 jm_AC_PREREQ_XSTRTOUMAX.
39793 Moved the strtoul prerequisites to strtoul.m4.
39794 Moved the strtoull prerequisites to strtoull.m4.
39795 Moved the strtoumax prerequisites to strtoumax.m4.
39798 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
39799 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
39802 * m4/dup2.m4: New file.
39805 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
39806 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
39809 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
39810 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
39812 Module gettimeofday.
39813 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
39814 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
39815 gl_PREREQ_GETTIMEOFDAY.
39818 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
39819 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
39822 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
39823 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
39824 jm_AC_TYPE_UINTMAX_T.
39825 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
39828 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
39829 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
39832 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
39833 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
39836 * m4/timespec.m4 (gl_TIMESPEC): New macro.
39837 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
39838 * m4/st_mtim.m4: Indentation.
39841 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
39842 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
39843 gl_PREREQ_NANOSLEEP.
39846 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
39847 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
39848 (gl_REGEX): New macro.
39851 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
39852 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
39855 * m4/rmdir.m4: New file.
39858 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
39859 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
39860 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
39863 * m4/dirname.m4: New file.
39866 * m4/getopt.m4: New file.
39868 Module unistd-safer.
39869 * m4/unistd-safer.m4: New file.
39872 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
39874 (gl_PREREQ_FNMATCH_EXTRA): New macro.
39875 (gl_FUNC_FNMATCH_POSIX): New macro.
39876 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
39877 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
39881 * m4/exclude.m4: New file.
39884 * m4/human.m4: New file.
39890 * m4/backupfile.m4: New file.
39891 * m4/d-ino.m4: Indentation.
39894 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
39895 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
39896 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
39899 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
39903 * m4/euidaccess.m4: New file.
39906 * m4/file-type.m4: New file.
39909 * m4/fileblocks.m4: New file.
39912 * m4/filemode.m4: New file.
39915 * m4/isdir.m4: New file.
39918 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
39919 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
39922 * m4/makepath.m4: New file.
39925 * m4/modechange.m4: New file.
39928 * m4/mountlist.m4: New file.
39929 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
39932 Module path-concat.
39933 * m4/path-concat.m4: New file.
39936 * m4/pathmax.m4: New file.
39939 * m4/same.m4: New file.
39942 * m4/save-cwd.m4: New file.
39945 * m4/savedir.m4: New file.
39948 * m4/xgetcwd.m4: New file.
39949 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
39952 * m4/xreadlink.m4: New file.
39955 * m4/safe-read.m4: New file.
39958 * m4/safe-write.m4: New file.
39961 * m4/closeout.m4: New file.
39963 Module stdio-safer.
39964 * m4/stdio-safer.m4: New file.
39967 * m4/getpass.m4: New file.
39970 * m4/getugroups.m4: New file.
39972 Module group-member.
39973 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
39974 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
39977 * m4/idcache.m4: New file.
39980 * m4/userspec.m4: New file.
39983 * m4/clock_time.m4: New file.
39984 * m4/gettime.m4: New file.
39987 * m4/settime.m4: New file.
39990 * m4/posixtm.m4: New file.
39992 Module gethostname.
39993 * m4/gethostname.m4: New file.
39996 * m4/canon-host.m4: New file.
39999 * m4/codeset.m4: New file, from gettext-0.11.5.
40000 * m4/gettext.m4: New file, from gettext-0.11.5.
40001 * m4/glibc21.m4: New file, from gettext-0.11.5.
40002 * m4/iconv.m4: New file, from gettext-0.11.5.
40003 * m4/intdiv0.m4: New file, from gettext-0.11.5.
40004 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
40005 * m4/inttypes.m4: New file, from gettext-0.11.5.
40006 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
40007 * m4/isc-posix.m4: New file, from gettext-0.11.5.
40008 * m4/lcmessage.m4: New file, from gettext-0.11.5.
40009 * m4/lib-ld.m4: New file, from gettext-0.11.5.
40010 * m4/lib-link.m4: New file, from gettext-0.11.5.
40011 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
40012 * m4/progtest.m4: New file, from gettext-0.11.5.
40013 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
40014 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
40015 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
40017 Module localcharset.
40018 * m4/localcharset.m4: New file.
40020 Module hard-locale.
40021 * m4/hard-locale.m4: New file.
40024 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
40026 * m4/mbrtowc.m4: Add comment.
40029 * m4/memcasecmp.m4: New file.
40032 * m4/memcoll.m4: New file.
40035 * m4/unicodeio.m4: New file.
40038 * m4/rpmatch.m4: New file.
40041 * m4/yesno.m4: New file.
40044 * m4/exitfail.m4: New file.
40047 * m4/c-stack.m4 (gl_C_STACK): New macro.
40048 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
40051 * m4/error.m4 (gl_ERROR): New macro.
40052 (jm_PREREQ_ERROR): Use onceonly macros.
40055 * m4/fatal.m4: New file.
40058 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
40059 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
40061 Module getpagesize.
40062 * m4/getpagesize.m4: New file.
40064 Module getusershell.
40065 * m4/getusershell.m4: New file.
40068 * m4/physmem.m4: New file.
40071 * m4/posixver.m4: New file.
40074 * m4/quotearg.m4: New file.
40077 * m4/quote.m4: New file.
40080 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
40083 * m4/sig2str.m4: New file.
40086 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
40088 * m4/intmax_t.m4: New file.
40089 * m4/d-type.m4: Indentation.
40090 * m4/jm-macros.m4: Update.
40091 * m4/prereq.m4 (jm_PREREQ): Update.
40092 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
40093 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
40094 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
40095 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
40096 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
40097 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
40098 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
40099 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
40100 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
40101 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
40102 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
40103 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
40104 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
40105 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
40106 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
40107 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
40108 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
40109 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
40110 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
40112 2002-12-24 Bruno Haible <bruno@clisp.org>
40114 * MODULES.txt: Update according to m4/ changes.
40117 * config.rpath: New file, from gettext-0.11.5.
40119 * modules/*: New module descriptions.
40120 * gnulib-tool: New file.
40121 * MODULES.html.sh: New file.
40123 2002-12-21 Karl Berry <karl@gnu.org>
40125 * doc/fdl.texi: update to version 1.2.
40127 2002-12-19 Karl Berry <karl@gnu.org>
40129 * config/config.guess: update from prep.
40131 2002-12-18 Bruno Haible <bruno@clisp.org>
40133 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
40134 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
40136 2002-12-17 Bruno Haible <bruno@clisp.org>
40138 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
40139 stdlib.h, string.h.
40141 2002-12-17 Bruno Haible <bruno@clisp.org>
40143 * lib/canon-host.c (strdup): Remove unused declaration.
40145 * lib/fsusage.c: Include full_read.h.
40146 (get_fs_usage): Use full_read instead of safe_read.
40148 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
40150 2002-12-12 Karl Berry <karl@gnu.org>
40152 * config/config.guess: update from prep.
40154 2002-12-11 Bruno Haible <bruno@clisp.org>
40156 * m4/setenv.m4: New file, from gettext-0.11.5.
40158 2002-12-11 Bruno Haible <bruno@clisp.org>
40160 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
40162 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
40165 2002-12-11 Bruno Haible <bruno@clisp.org>
40167 * setenv.c (alloca): Fall back to malloc.
40168 (freea): New macro.
40169 (setenv): Use freea() to free memory allocated with alloca().
40171 2002-11-13 Bruno Haible <bruno@clisp.org>
40173 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
40174 function declarations.
40175 * unsetenv.c (unsetenv): Likewise.
40177 2002-03-04 Bruno Haible <bruno@clisp.org>
40179 Portability to AIX 4.3.3.
40180 * unsetenv.c: New file, extracted from setenv.c.
40181 * setenv.c: Move the unsetenv() function to unsetenv.c.
40183 2001-12-20 Bruno Haible <bruno@clisp.org>
40185 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
40186 use malloc instead. For SunOS 4.
40188 2001-12-11 Bruno Haible <bruno@clisp.org>
40190 * setenv.c: Declare alloca.
40191 (compar_fn_t): New typedef.
40192 (KNOWN_VALUE, STORE_VALUE): Use it.
40194 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
40197 2002-12-10 Paul Eggert <eggert@twinsun.com>
40199 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
40200 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
40201 Choose values that are less likely to collide with system fnmatch
40203 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
40204 defined (e.g., a pure POSIX system).
40205 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
40206 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
40208 2002-12-06 Paul Eggert <eggert@twinsun.com>
40210 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
40211 a pain in practice to deal with generated m4 files. This change
40212 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
40214 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
40215 and jm-glibc-io.m4, as they are no longer a special case.
40216 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
40217 kludge and the auto-generation stuff. Check only whether the
40218 functions are declared, not whether they exist, since older hosts
40219 that don't declare the functions can't use the optimization anyway.
40221 2002-12-06 Jim Meyering <jim@meyering.net>
40223 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
40225 Merge in changes from libc's misc/error.c, in preparation
40226 for the merge of gnulib's changes back into libc.
40228 * lib/error.c (_): Define only if not already defined.
40229 Move definition to follow all #include directives.
40230 Include unlocked-io.h only if !_LIBC.
40231 [_LIBC]: Include <libio/libioP.h>.
40232 [USE_IN_LIBIO]: Include <libio/iolibio.h>
40233 (fflush): Tweak definition to use INTUSE.
40236 2002-12-05 Paul Eggert <eggert@twinsun.com>
40238 * lib/alloca.c [defined emacs]: Include "lisp.h".
40239 (xalloc_die) [defined emacs]: New macro.
40240 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
40241 [! defined emacs]: Include <xalloc.h>.
40242 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
40243 (pointer): Typedef to POINTER_TYPE *.
40244 (malloc): Remove decl; we now always use xmalloc.
40245 (alloca): Use old-style definition, since Emacs needs this.
40246 Check for arithmetic overflow when computing combined size.
40248 2002-12-04 Paul Eggert <eggert@twinsun.com>
40250 Do not generate unlocked-io.h automatically, since it's easier to
40251 maintain it by hand.
40253 * lib/unlocked-io.h: New file, from GNU diffutils,
40254 but with proper copyright notice and attribution.
40255 * lib/gen-uio: Remove.
40256 * lib/Makefile.am: Add copyright notice.
40257 (libfetish_a_SOURCES): Add unlocked-io.h.
40258 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
40259 (DISTCLEANFILES, io_functions): Remove macros.
40260 (EXTRA_DIST): Remove gen_uio.
40261 (unlocked-io.h): Remove rule.
40263 2002-12-04 Jim Meyering <jim@meyering.net>
40265 Reflect the fact that stat.c and lstat.c are no longer generated.
40266 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
40267 (DISTCLEANFILES): Likewise.
40268 (EXTRA_DIST): Likewise.
40269 (all_local): Don't depend on stat.c or lstat.c.
40270 (stat.c, lstat.c): Remove rules.
40271 (EXTRA_DIST): Remove xstat.in.
40273 * lib/xstat.in: Remove file. Contents moved into stat.c.
40274 * lib/stat.c: New file. Contents mostly from xstat.in.
40275 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
40276 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
40278 * lib/safe-read.c: Rework so that it may serve to define safe_write,
40280 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
40282 2002-12-03 Jim Meyering <jim@meyering.net>
40284 * lib/safe-read.c, safe-write.c: Change variable names and comments,
40285 but not semantics, to minimize the differences between these two files.
40286 (safe_read): Change comment to mention SAFE_READ_ERROR.
40288 * lib/safe-read.c (IS_EINTR): Define.
40289 (safe_read): Use IS_EINTR in place of in-function cpp directives.
40291 2002-12-02 Jim Meyering <jim@meyering.net>
40293 * lib/safe-read.c (EINTR): Define.
40294 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
40295 (INT_MAX): Provide fallback.
40296 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
40298 * lib/safe-read.h (SAFE_READ_ERROR): Define.
40300 2002-12-02 Bruno Haible <bruno@clisp.org>
40302 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
40303 Define, taken from safe-read.c.
40304 (INT_MAX): Provide fallback.
40305 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
40306 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
40308 * lib/safe-read.c (EINTR): Remove definition.
40309 (safe_read): Don't use EINTR if it is absent.
40311 2002-12-01 Jim Meyering <jim@meyering.net>
40313 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
40315 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
40317 2002-11-27 Paul Eggert <eggert@twinsun.com>
40319 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
40320 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
40321 with `if (! (value < limit)) abort ();', for readability.
40323 2002-11-26 Karl Berry <karl@gnu.org>
40325 * lib/strdup.c: copy from libc again, with jim's ok.
40326 * lib/.cppi-disable: re-add strdup.c
40328 2002-11-25 Karl Berry <karl@gnu.org>
40330 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
40331 instead of "strtol.c".
40333 2002-11-25 Karl Berry <karl@gnu.org>
40335 * config/install-sh: update from automake for variable quoting, $0 in
40338 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
40339 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
40342 2002-11-25 Jim Meyering <jim@meyering.net>
40344 * lib/mktime.c: Sync from libc, now that it has the latest fix.
40346 2002-11-24 Karl Berry <karl@gnu.org>
40348 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
40349 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
40351 2002-11-24 Jim Meyering <jim@meyering.net>
40353 Update from coreutils:
40355 * lib/mktime.c: Merge in changes from libc.
40357 Avoid a link-time failure on some Linux systems.
40358 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
40360 (__mon_yday): Declare with the STATIC attribute.
40361 (__mktime_internal): Likewise.
40362 Based on a report from Greg Schafer.
40364 2002-11-23 Jim Meyering <jim@meyering.net>
40366 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
40367 Use `unsigned', not `int', as type of index.
40369 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
40371 * lib/fsusage.c: Remove unneeded parentheses around operands of
40374 2002-11-22 Paul Eggert <eggert@twinsun.com>
40376 * lib/quotearg.h: Allow multiple inclusion by surrounding with
40377 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
40378 so that we can be included first.
40379 (PARAMS): Remove; we now assume C89 or later. All uses removed.
40380 * lib/quotearg.c: Include quotearg.h immediately after config.h.
40381 No need to include stddef.h or sys/types.h any more.
40382 Surround local include files with "", not "<>".
40383 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
40384 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
40385 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
40386 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
40387 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
40388 (ISPRINT): Remove; no longer needed now that we assume C89.
40390 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
40393 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
40394 quotearg_char): Use SIZE_MAX rather than
40395 (size_t) -1 when we are talking about "infinity".
40397 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
40399 2002-11-22 Paul Eggert <eggert@twinsun.com>
40401 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
40402 hint that one should use `if (! x) abort ();' rather than `assert
40403 (x);', and anyway it's one less thing to worry about configuring.
40404 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
40405 hash_rehash, hash_insert): Use abort rather than assert.
40407 2002-11-22 Bruno Haible <bruno@clisp.org>
40409 * lib/safe-read.h: Assume C89. Add comments.
40410 (safe_read): Change return type to size_t.
40411 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
40412 byte counts > SSIZE_MAX correctly.
40413 * lib/safe-write.h: New file.
40414 * lib/safe-write.c: New file.
40415 * lib/full-read.h: New file.
40416 * lib/full-read.c: New file.
40417 * lib/full-write.h: Assume C89. Add comments.
40418 * lib/full-write.c: Include safe-write.h.
40419 (full_write): Rewritten to use safe_write.
40420 Suggested by Jim Meyering and Paul Eggert.
40422 2002-11-21 Jim Meyering <jim@meyering.net>
40424 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
40426 Merge in changes from the coreutils.
40428 2002-09-25 Paul Eggert <eggert@twinsun.com>
40429 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
40431 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
40432 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
40433 int. Work more efficiently if X is the same width as uintmax_t.
40434 Do not compare X to -1, to avoid bogus compiler warning.
40435 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
40436 Don't assume that f_frsize and f_bsize are the same type.
40438 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
40439 warning on FreeBSD.
40441 * lib/makepath.c (make_path): Restore umask *before* creating the final
40443 (make_path): Minor reformatting.
40445 * lib/xmalloc.c: Adjust to work with new autoconf macros,
40446 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
40447 HAVE_MALLOC/HAVE_REALLOC.
40449 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
40450 dummy ones. At least on GNU/Linux systems, `auto' means something
40452 From Michael Stone.
40454 2002-11-21 Bruno Haible <bruno@clisp.org>
40456 Remove case insensitive option matching.
40457 * lib/argmatch.h (argcasematch): Remove declaration.
40458 (ARGCASEMATCH): Remove macro.
40459 (__xargmatch_internal): Remove case_sensitive argument.
40460 (XARGMATCH): Update.
40461 (XARGCASEMATCH): Remove macro.
40462 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
40463 case_sensitive argument.
40464 (argcasematch): Remove function.
40465 (__xargmatch_internal): Remove case_sensitive argument.
40466 (main): Use XARGMATCH instead of XARGCASEMATCH.
40468 * lib/xmalloc.c: Change compile-time error message. Add comment about
40469 required autoconf version.
40471 2002-11-20 Paul Eggert <eggert@twinsun.com>
40473 Merge argmatch cleanups from Bison. Assume C89.
40475 * lib/argmatch.c: Include config.h here, not in argmatch.h.
40476 Include stdlib.h, for EXIT_FAILURE.
40477 Always include <string.h>, since we assume C89.
40478 (EXIT_FAILURE): Remove pre-C89 bug workaround.
40479 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
40480 Include <stddef.h> instead, since it's all we need for size_t.
40481 (PARAMS): Remove. All uses removed.
40482 (ARRAY_CARDINALITY): Do not bother to #undef.
40483 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
40484 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
40485 Remove unnecessary parentheses.
40486 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
40487 Insert necessary parentheses.
40488 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
40489 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
40491 2002-11-19 Bruno Haible <bruno@clisp.org>
40493 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
40494 * lib/mbswidth.h: Include <stddef.h>, for size_t.
40496 * lib/mbswidth.h (PARAMS): Remove macro.
40497 (mbswidth, mbsnwidth): Use ANSI C function declarations.
40498 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
40500 * lib/gcd.h (PARAMS): Remove macro.
40501 (gcd): Use ANSI C function declarations.
40502 * lib/gcd.c (gcd): Likewise.
40504 2002-11-15 Bruno Haible <bruno@clisp.org>
40506 * lib/strcspn.c: Include <stddef.h>.
40507 (strcspn): Use ANSI C function declaration. Change return type to
40509 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
40510 (strpbrk): Use NULL.
40511 * lib/strpbrk.h (PARAMS): Remove macro.
40512 (strpbrk): Use ANSI C function declaration.
40513 * lib/strstr.c: Don't include <sys/types.h>.
40514 * lib/strstr.h (PARAMS): Remove macro.
40515 (strstr): Use ANSI C function declarations.
40517 2002-11-14 Karl Berry <karl@gnu.org>
40519 * config/mkinstalldirs: `do' on separate line, instead of
40522 2002-11-06 Bruno Haible <bruno@clisp.org>
40524 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
40525 * lib/gcd.c (gcd): Likewise.
40527 2002-11-05 Bruno Haible <bruno@clisp.org>
40529 * lib/gcd.h: New file, from gettext-0.11.5.
40530 * lib/gcd.c: New file, from gettext-0.11.5.
40532 2002-11-05 Bruno Haible <bruno@clisp.org>
40534 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
40535 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
40536 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
40537 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
40539 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
40541 * lib/makepath.c: Include gettext.h instead of <locale.h> and
40544 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
40545 * lib/human.c: Include gettext.h instead of <libintl.h>.
40546 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
40547 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
40548 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
40549 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
40550 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
40551 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
40552 (textdomain): Remove definition.
40553 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
40555 * lib/long-options.c: Remove include of <libintl.h> and definition of
40557 * lib/same.c: Remove include of <libintl.h> and definition of _.
40559 2002-11-04 Owen Taylor <otaylor@redhat.com>
40561 * lib/config.charset: A few additions for Solaris.
40563 2002-11-04 Bruno Haible <haible@clisp.cons.org>
40565 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
40566 * lib/localcharset.c (locale_charset): Declare as extern "C".
40568 2002-11-04 Bruno Haible <haible@clisp.cons.org>
40570 * lib/config.charset: msdos in uk_UA uses CP1125.
40572 2002-11-04 Bruno Haible <bruno@clisp.org>
40574 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
40575 * lib/strcase.h: New file, from GNU gettext-0.11.5.
40576 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
40577 * lib/strstr.h: New file, from GNU gettext-0.11.5.
40578 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
40580 2002-11-04 Bruno Haible <bruno@clisp.org>
40582 * lib/localcharset.c (locale_charset): Don't return an empty string.
40584 2002-11-04 Bruno Haible <bruno@clisp.org>
40586 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
40589 2002-11-04 Bruno Haible <bruno@clisp.org>
40591 * lib/config.charset: Update for newest glibc. Add canonical names
40592 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
40594 2002-11-04 Bruno Haible <bruno@clisp.org>
40596 * lib/config.charset: Add support for NetBSD.
40598 2002-11-04 Bruno Haible <bruno@clisp.org>
40600 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
40602 2002-11-01 Bruno Haible <bruno@clisp.org>
40604 * configure.in: Add AC_CONFIG_AUX_DIR call.
40605 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
40607 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
40609 2002-09-28 Karl Berry <karl@gnu.org>
40611 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
40612 installed automake until the next release, since changes have been
40615 2002-09-25 Karl Berry <karl@gnu.org>
40617 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
40618 * lib/getopt*: copy from libc/posix.
40619 * lib/gettext.h: copy from gettext.
40620 * lib/.cppi-disable: add strdup.c, gettext.h.
40622 2002-09-25 Karl Berry <karl@gnu.org>
40624 * config/srclist.txt: enable gettext.h check.
40625 * config/config.{guess,sub}: update from prep.
40626 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
40627 from automake 1.6.3.
40630 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
40632 * regex.c (PATFETCH): Remove the translating fetch.
40633 (PATFETCH_RAW): Rename to PATFETCH.
40634 (set_image_of_range): New fun.
40635 (SET_RANGE_TABLE_WORK_AREA): Use it.
40636 (regex_compile): Don't translate the pattern chars so eagerly.
40637 Only do it when inserting an `exactn' bytecode or when handling
40639 (mutually_exclusive_p): Avoid empty statement.
40641 2002-07-06 Jim Meyering <meyering@lucent.com>
40643 * m4/README: Don't mention Makefile.am.in.
40644 Outline how I've tested changes to .m4 files. Yep, it's a pain.
40646 2002-07-01 Jim Meyering <meyering@lucent.com>
40648 * lib/c-stack.c: Include sys/time.h.
40649 From Volker Borchert.
40651 2002-06-26 Paul Eggert <eggert@twinsun.com>
40653 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
40655 2002-06-26 Paul Eggert <eggert@twinsun.com>
40657 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
40658 New macro. Use it uniformly instead of
40659 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
40660 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
40661 reported by Vin Shelton.
40663 2002-06-22 Paul Eggert <eggert@twinsun.com>
40665 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
40666 Do not assume SA_SIGINFO behavior.
40667 Bug reported by Jim Meyering on NetBSD 1.5.2.
40669 2002-06-22 Jim Meyering <meyering@lucent.com>
40671 * m4/c-stack.m4: New file, from diffutils-2.8.2.
40672 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
40674 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
40675 now that configure.ac uses AC_GNU_SOURCE.
40676 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
40677 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
40679 Update to latest tools. Suggestions from Paul Eggert.
40680 * m4/stdbool.m4: New file, from diffutils-2.8.2.
40681 * m4/gnu-source.m4: Update from diffutils-2.8.2.
40682 * m4/fnmatch.m4: Likewise.
40683 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
40684 to AC_HEADER_STDBOOL
40686 2002-06-22 Jim Meyering <meyering@lucent.com>
40688 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
40689 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
40691 2002-06-22 Jim Meyering <meyering@lucent.com>
40693 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
40695 * lib/exitfail.c, exitfail.h: Likewise.
40696 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
40698 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
40700 (EXTRA_DIST): Add fnmatch_loop.c.
40701 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
40703 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
40704 * lib/fnmatch.c: Update from diffutils-2.8.2.
40705 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
40706 * lib/fnmatch.h: Remove file.
40708 2002-06-21 Jim Meyering <meyering@lucent.com>
40710 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
40711 * m4/mbrtowc.m4: Likewise.
40713 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
40714 * m4/mbswidth.m4: Reflect name change:
40715 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
40716 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
40718 * m4/lib-link.m4: Update from gettext-0.11.2.
40719 * m4/gettext.m4: Likewise.
40721 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
40722 From Alfred M. Szmidt.
40724 2002-06-18 Paul Eggert <eggert@twinsun.com>
40726 * lib/file-type.h: Report an error if neither S_ISREG nor
40727 S_IFREG is defined, instead of using a test specific to glibc
40728 2.2. This should be safe, since POSIX requires S_ISREG and
40729 Unix Version 7 had S_IFREG. We don't need to check for
40730 <sys/types.h> since we don't use any symbols that it defines.
40732 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
40734 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
40735 $@-t, so that each temporary file name is unique and valid in the first
40736 8 characters, for operation under DOS.
40738 2002-06-15 Paul Eggert <eggert@twinsun.com>
40740 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
40742 2002-06-15 Jim Meyering <meyering@lucent.com>
40744 Work even with DJGPP 2.03, which lacks support for symlinks.
40746 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
40748 * lib/lchown.c (S_ISLNK): Likewise.
40750 2002-06-15 Jim Meyering <meyering@lucent.com>
40752 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
40753 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
40754 have been included before this file.
40756 2002-06-14 Jim Meyering <meyering@lucent.com>
40758 * lib/file-type.h: Use the version from diffutils-2.8.2.
40759 * lib/file-type.c: Likewise.
40761 2002-06-07 Jim Meyering <meyering@lucent.com>
40763 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
40764 They're needed at least for NetBSD 1.5.2.
40765 ($statxfs_includes): Include those same headers.
40766 ($statxfs_includes): Include sys/vfs.h if available.
40767 ($statxfs_includes): Likewise for sys/statvfs.h.
40768 Check for the following members in both structs statfs and statvfs:
40769 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
40771 2002-06-01 Jim Meyering <meyering@lucent.com>
40773 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
40774 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
40776 2002-05-28 Jim Meyering <meyering@lucent.com>
40778 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
40779 Reported by Volker Borchert.
40781 2002-05-27 Jim Meyering <meyering@lucent.com>
40783 Fix a problem seen only on nonconforming systems whereby ls.c's
40784 use of localtime, and then of gettimeofday would cause trouble:
40785 the localtime call used to initialize rpl_gettimeofday's save
40786 mechanism would clobber ls's current local time information so
40787 that in any long listing the first file would always be listed
40788 with date 1970-01-01. Analysis by Volker Borchert.
40790 * lib/gettimeofday.c (localtime): Undefine.
40791 (rpl_localtime): New function.
40793 2002-05-27 Jim Meyering <meyering@lucent.com>
40795 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
40798 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
40799 use the replacement function; it wouldn't resolve at link time.
40800 Reported by Volker Borchert.
40802 2002-05-22 Jim Meyering <meyering@lucent.com>
40804 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
40806 * lib/file-type.h: New file.
40807 * lib/file-type.c (file_type): New file/function. Extracted from
40810 2002-04-30 Jim Meyering <meyering@lucent.com>
40812 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
40814 2002-04-29 Paul Eggert <eggert@twinsun.com>
40816 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
40818 2002-04-29 Paul Eggert <eggert@twinsun.com>
40820 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
40821 Do not check for alloca.h (no longer used) or stdbool.h (was never
40822 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
40824 2002-04-29 Paul Eggert <eggert@twinsun.com>
40826 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
40828 2002-04-29 Jim Meyering <meyering@lucent.com>
40830 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
40831 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
40832 Use AC_FUNC_STRNLEN here instead.
40834 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
40835 With autoconf-2.53a, it's part of AC_PROG_CC.
40837 2002-04-28 Paul Eggert <eggert@twinsun.com>
40839 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
40840 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
40842 2002-04-28 Paul Eggert <eggert@twinsun.com>
40844 * lib/sig2str.h, lib/sig2str.c: New files.
40845 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
40847 2002-04-28 Paul Eggert <eggert@twinsun.com>
40849 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
40850 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
40851 of 127, since 64 is the largest conceivable number for ancient
40853 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
40855 2002-04-28 Jim Meyering <meyering@lucent.com>
40857 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
40859 2002-04-24 Jim Meyering <meyering@lucent.com>
40861 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
40862 (jm_PREREQ): Use it.
40864 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
40865 mach/mach.h fcntl.h.
40866 Check for this function: setlocale.
40868 2002-04-24 Jim Meyering <meyering@lucent.com>
40870 * lib/gettext.h: New file, from Gettext.
40871 * lib/Makefile.am (INCLUDES): Remove -I../intl.
40872 (libfetish_a_SOURCES): Add gettext.h.
40874 2002-04-16 Jim Meyering <meyering@lucent.com>
40876 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
40877 ut_pid, ut_id, ut_exit.
40879 2002-04-16 Jim Meyering <meyering@lucent.com>
40881 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
40882 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
40883 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
40885 2002-04-12 Jim Meyering <meyering@lucent.com>
40887 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
40888 now-bogus check for f_type in sys/mount.h. Instead, just test for the
40889 existence of the getmntinfo function. Needed for Darwin 5.3.
40891 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
40892 This is necessary at least on Darwin 5.3.
40894 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
40895 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
40896 strnlen.o in the library, and that makes some versions of ranlib
40899 2002-04-12 Jim Meyering <meyering@lucent.com>
40901 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
40903 2002-04-09 Jim Meyering <meyering@lucent.com>
40905 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
40906 to be more precise. Rather than saying we're checking whether the
40907 function `works', say what we're testing.
40908 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
40909 Reported by Bruno Haible.
40911 2002-03-10 Jim Meyering <meyering@lucent.com>
40913 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
40914 Suggestion from Santiago Vila.
40916 2002-03-08 Jim Meyering <meyering@lucent.com>
40918 * lib/rename.c: Mention that this wrapper is needed also on
40919 mips-dec-ultrix4.4 systems.
40921 2002-03-02 Jim Meyering <meyering@lucent.com>
40923 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
40924 not HAVE_CLOCK_SETTIME.
40926 2002-02-27 Paul Eggert <eggert@twinsun.com>
40928 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
40929 Check for clock_settime.
40931 2002-02-27 Paul Eggert <eggert@twinsun.com>
40933 * lib/nanosleep.h: Rename to....
40934 * lib/timespec.h: New name for nanosleep.h. All uses changed.
40936 * lib/gettime.c: New file.
40937 * lib/settime.c: New file.
40938 * lib/stime.c: Remove.
40940 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
40941 timespec.h. Remove nanosleep.h.
40943 2002-02-25 Paul Eggert <eggert@twinsun.com>
40945 * m4/acl.m4: New file.
40946 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
40947 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
40949 2002-02-25 Paul Eggert <eggert@twinsun.com>
40951 * lib/acl.c, lib/acl.h: New files.
40952 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
40954 2002-02-24 Jim Meyering <meyering@lucent.com>
40956 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
40957 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
40958 cause trouble. Reported by Nelson Beebe.
40960 2002-02-23 Paul Eggert <eggert@twinsun.com>
40962 * lib/path-concat.c (xpath_concat): Reorder code to pacify
40963 compilers that don't know that xalloc_die never returns.
40965 2002-02-20 Jim Meyering <meyering@lucent.com>
40967 * lib/getdate.c: Regenerate using bison-1.33.
40969 2002-02-17 Jim Meyering <meyering@lucent.com>
40971 * config/config.guess (main): Don't use `head -1'; it's no longer
40972 portable. Use `sed 1q' instead.
40974 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
40976 * m4/codeset.m4: Upgrade to gettext-0.11.
40977 * m4/gettext.m4: Upgrade to gettext-0.11.
40978 * m4/glibc21.m4: Upgrade to gettext-0.11.
40979 * m4/iconv.m4: Upgrade to gettext-0.11.
40980 * m4/isc-posix.m4: Upgrade to gettext-0.11.
40981 * m4/lcmessage.m4: Upgrade to gettext-0.11.
40982 * m4/lib-ld.m4: New file, from gettext-0.11.
40983 * m4/lib-link.m4: New file, from gettext-0.11.
40984 * m4/lib-prefix.m4: New file, from gettext-0.11.
40985 * m4/progtest.m4: Upgrade to gettext-0.11.
40987 2002-02-15 Paul Eggert <eggert@twinsun.com>
40989 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
40990 (jm_PREREQ): Use it.
40992 2002-02-15 Paul Eggert <eggert@twinsun.com>
40994 * lib/posixver.c, lib/posixver.h: New files.
40995 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
40997 2002-02-02 Paul Eggert <eggert@twinsun.com>
40998 Bruno Haible <bruno@clisp.org>
41000 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
41001 (fwrite_success_callback): New declaration.
41002 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
41003 print_unicode_char. Call failure callback instead of error.
41004 (fwrite_success_callback): New function.
41005 (exit_failure_callback): New function.
41006 (fallback_failure_callback): New function.
41007 (print_unicode_char): Call unicode_to_mb.
41009 2002-01-26 Jim Meyering <meyering@lucent.com>
41011 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
41012 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
41014 2002-01-26 Jim Meyering <meyering@lucent.com>
41016 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
41018 2002-01-22 Paul Eggert <eggert@twinsun.com>
41020 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
41022 2002-01-22 Jim Meyering <meyering@lucent.com>
41024 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
41025 Otherwise, some versions of automake would omit the rule that makes
41026 Makefile from Makefile.in.
41028 2002-01-21 Paul Eggert <eggert@twinsun.com>
41030 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
41031 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
41032 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
41033 (memcoll): Set errno to zero if there is no error.
41035 * lib/quotearg.c (quotearg_buffer_restyled):
41036 Fix bug with quoting buffers containing NUL when backslashing escapes.
41037 This bug was exposed by the other changes in this patch.
41038 (quotearg_n_options): New arg ARGSIZE.
41039 All callers changed.
41040 (quoting_options_from_style): New function.
41041 (quotearg_n_style): Use it.
41042 (quotearg_n_style_mem): New function.
41044 * lib/quotearg.h (quotearg_n_style_mem): New function.
41046 2002-01-19 Jim Meyering <meyering@lucent.com>
41048 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
41049 Remove useless quotes: DF_PROG="df".
41050 * m4/strnlen.m4: New file.
41052 2002-01-16 Paul Eggert <eggert@twinsun.com>
41054 * lib/backupfile.c (ISDIGIT): Comment fix.
41055 * lib/getdate.y (ISDIGIT): Likewise.
41056 * lib/posixtm.c (ISDIGIT, year): Likewise.
41057 * lib/strverscmp.c (ISDIGIT): Likewise.
41058 * lib/userspec.c (ISDIGIT): Likewise.
41060 2002-01-16 Jim Meyering <meyering@lucent.com>
41062 * lib/getdate.y: Add three semicolons, each just before a closing
41063 brace. Bison (as of version 1.31) no longer papers over that mistake.
41065 2002-01-05 Jim Meyering <meyering@lucent.com>
41067 * lib/version-etc.c (version_etc_copyright): Update copyright year.
41069 2001-12-19 Paul Eggert <eggert@twinsun.com>
41071 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
41072 not silently exit merely because the output buffer happens to
41073 have nothing pending.
41075 2001-12-18 Paul Eggert <eggert@twinsun.com>
41077 See the big note in ../ChangeLog.
41078 * lib/human.c (suffixes): Prefer K to k for 1024.
41079 (generate_suffix_backwards): New function.
41080 (human_readable_inexact): Use it.
41081 * lib/xstrtol.c (__xstrtol): If there is no number but there
41082 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
41083 Accept 'K' as well as 'k'.
41085 2001-12-15 Jim Meyering <meyering@lucent.com>
41087 * lib/regex.h (__restrict_arr): Update from libc.
41089 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
41090 as `remote' if the name starts with `//'. Suggested by Michael Stone.
41093 2001-12-14 Jim Meyering <meyering@lucent.com>
41095 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
41096 Suggestion from Bruno Haible.
41098 2001-12-10 Jim Meyering <meyering@lucent.com>
41100 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
41101 xrealloc, Instead, include "xalloc.h".
41102 (initbuffer): Don't cast xmalloc return value to char*.
41103 (readline): Reword comment.
41104 Don't cast xrealloc return value to char*
41105 Return NULL, not 0.
41107 2001-12-09 Jim Meyering <meyering@lucent.com>
41109 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
41110 about `signed and unsigned type in conditional expression'.
41111 * lib/posixtm.c (posix_time_parse): Likewise.
41113 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
41115 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
41116 to avoid a pedantic warning.
41118 * lib/getstr.c: Don't include assert.h.
41119 (getstr): Remove warning-evoking assertions.
41120 Return -1 if offset parameter is out of bounds.
41121 Change the type of a local from int to size_t.
41123 * lib/strftime.c (my_strftime_localtime_r): Include this function
41124 definition in the `#if ! HAVE_TM_GMTOFF' block.
41126 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
41127 Include xalloc.h instead.
41129 2001-12-02 Jim Meyering <meyering@lucent.com>
41131 * lib/tempname.c: Don't declare getenv, thus reverting the change of
41132 2001-11-18. It's no longer necessary, now that stdlib.h is always
41135 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
41136 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
41138 2001-11-30 Akim Demaille <akim@epita.fr>
41140 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
41141 before being defined.
41143 2001-11-27 Paul Eggert <eggert@twinsun.com>
41145 * lib/quotearg.h (quotearg_n, quotearg_n_style):
41146 First arg is int, not unsigned.
41147 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
41148 (SIZE_MAX, UINT_MAX): New macros.
41149 (quotearg_n_options): Abort if N is negative.
41150 Avoid overflow check on hosts where size_t is 64 bits and int
41151 is 32 bits, as overflow is impossible there.
41152 Fix off-by-one typo that caused unnecessary reallocation.
41154 2001-11-27 Jim Meyering <meyering@lucent.com>
41156 * lib/tempname.c: Merge with version from libc.
41157 * lib/regex.c: Likewise.
41159 * lib/tempname.c: Include stdlib.h unconditionally. On some old
41160 systems for which STDC_HEADERS is 0, it was not included, resulting in
41161 a warning about an integer-to-pointer conversion problem with getenv.
41162 Reported by Volker Borchert.
41164 2001-11-26 Jim Meyering <meyering@lucent.com>
41166 * lib/gtod.h: Remove file.
41167 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
41168 * lib/gettimeofday.c: Don't include gtod.h.
41169 (GTOD_init): Remove function.
41170 (rpl_gettimeofday): Do its job here instead, rather than aborting.
41171 Suggestion from Volker Borchert.
41173 2001-11-23 Jim Meyering <meyering@lucent.com>
41175 * lib/hash.h (struct hash_table): Don't define here. Merely declare
41177 * lib/hash.c (struct hash_table): Define it here instead.
41179 2001-11-22 Jim Meyering <meyering@lucent.com>
41181 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
41183 2001-11-20 Jim Meyering <meyering@lucent.com>
41185 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
41186 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
41188 2001-11-19 Jim Meyering <meyering@lucent.com>
41190 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
41191 directory. Use "conftestXXXXXX" as the template.
41192 Suggestion from Paul Eggert.
41194 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
41195 immediately, so the test doesn't mistakenly hit the max-open-files
41198 2001-11-18 Paul Eggert <eggert@twinsun.com>
41200 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
41201 (TEMPORARIES): New macro.
41202 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
41203 removes an artificial limitation (e.g. HP-UX 10.20, where
41206 2001-11-18 Jim Meyering <meyering@lucent.com>
41208 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
41210 2001-11-18 Jim Meyering <meyering@lucent.com>
41212 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
41215 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
41216 files will be created before anything else.
41218 2001-11-17 Paul Eggert <eggert@twinsun.com>
41220 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
41221 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
41223 2001-11-17 Jim Meyering <meyering@lucent.com>
41225 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
41226 Prompted by a report from Bob Proulx.
41228 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
41229 Instead, require UTILS_FUNC_MKSTEMP.
41231 2001-11-17 Jim Meyering <meyering@lucent.com>
41233 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
41234 Now, that's done as part of AC_FUNC_STRTOD.
41236 2001-11-17 Jim Meyering <meyering@lucent.com>
41238 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
41239 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
41240 rather than group writable. Patch by Juan F. Codagnone.
41242 * lib/readtokens.c: Remove explicit declarations of xmalloc and
41243 xrealloc, Instead, include "xalloc.h".
41245 * lib/mountlist.c: Include unlocked-io.h after all system headers.
41246 Remove explicit declarations of xmalloc, xrealloc,
41247 and xstrdup. Instead, include "xalloc.h".
41249 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
41251 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
41253 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
41255 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
41256 Reported by Padraig Brady.
41258 * lib/mkstemp.c: #undef mkstemp.
41260 (rpl_mkstemp): Rename from mkstemp.
41263 2001-11-16 Jim Meyering <meyering@lucent.com>
41265 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
41266 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
41267 determine the amount of total physical memory, use pstat_getstatic.
41268 HPUX-11 doesn't define _SC_PHYS_PAGES.
41269 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
41270 If sysconf couldn't be used to determine the amount of available
41271 physical memory, use both pstat_getstatic and pstat_getdynamic.
41272 Based on a patch from Bob Proulx.
41274 2001-11-10 Jim Meyering <meyering@lucent.com>
41276 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
41277 (jm_PREREQ): Use it.
41279 2001-11-09 Jim Meyering <meyering@lucent.com>
41281 * m4/jm-macros.m4: Require autoconf-2.52f.
41282 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
41283 Use these AC_-prefixed names, not the AM_-prefixed ones.
41285 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
41287 2001-11-05 Jim Meyering <meyering@lucent.com>
41289 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
41291 2001-11-04 Jim Meyering <meyering@lucent.com>
41293 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
41296 2001-11-03 Jim Meyering <meyering@lucent.com>
41298 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
41301 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
41302 know the name of the variable in the macro definition.
41304 2001-11-03 Jim Meyering <meyering@lucent.com>
41306 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
41307 in argmatch_to_argument call.
41309 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
41312 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
41313 e.g., a fault due to an attempt to free a NULL pointer.
41315 2001-11-01 Jim Meyering <meyering@lucent.com>
41317 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
41318 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
41320 2001-11-01 Jim Meyering <meyering@lucent.com>
41322 * lib/dirfd.c, lib/dirfd.h: New files.
41323 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
41325 * lib/hash.c (hash_print) [TESTING]: Clean up.
41327 2001-10-22 Paul Eggert <eggert@twinsun.com>
41329 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
41330 to avoid a warning if -Wall.
41332 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
41335 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
41336 (per RMS's instructions, this is now the canonical source)
41337 * lgpl/, gpl/: New directories.
41339 2001-10-21 Paul Eggert <eggert@twinsun.com>
41341 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
41343 2001-10-21 Jim Meyering <meyering@lucent.com>
41345 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
41346 this code would end up calling gettext even in packages built
41347 with --disable-nls.
41348 * lib/getopt.c (_): Likewise.
41349 * lib/regex.c (_): Likewise.
41351 2001-10-20 Paul Eggert <eggert@twinsun.com>
41353 * m4/error.m4 (jm_PREREQ_ERROR):
41354 Do not invoke AC_CHECK_FUNCS with strerror_r, as
41355 AC_FUNC_STRERROR_R does that.
41356 Check for strerror declaration.
41358 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
41359 are supposed to have them these days.
41360 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
41361 Merge changes from latest Autoconf CVS.
41362 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
41363 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
41364 POSIX decided to standardize on the int flavor of strerror_r.
41366 2001-10-20 Paul Eggert <eggert@twinsun.com>
41368 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
41369 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
41370 Use strerror_r that is only a macro, even if it is not a function.
41371 (strerror): Check for HAVE_DECL_STRERROR before declaring.
41372 (private_strerror): Use prototypes, not old-style function definition.
41373 (print_errno_message): New function.
41374 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
41375 char*-flavored one.
41376 (error_tail, error, error_at_line): Use it.
41378 2001-10-11 Jim Meyering <meyering@lucent.com>
41380 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
41381 and quote_n (1, ... to avoid clobbering a buffer.
41383 2001-10-05 Jim Meyering <meyering@lucent.com>
41385 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
41387 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
41388 * lib/hash-pjw.h: New file.
41390 2001-09-30 Jim Meyering <meyering@lucent.com>
41392 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
41393 `struct fsstat' has the `f_fstypename' member.
41394 Use that to define FS_TYPE, which is now used to make
41395 the getfsstat link test tighter.
41397 2001-09-30 Jim Meyering <meyering@lucent.com>
41399 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
41400 Include <sys/ucred.h>, for Apple Darwin.
41401 Include sys/mount.h and sys/fs_types.h only if available.
41403 (read_filesystem_list): Use FS_TYPE.
41405 2001-09-29 Paul Eggert <eggert@twinsun.com>
41407 * lib/exclude.c (excluded_filename): 0 -> false, since it's
41410 2001-09-29 Jim Meyering <meyering@lucent.com>
41412 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
41413 [one-argument getmntent function]): Include stdio.h before mntent.h.
41414 SunOS 4.1.x needs it for the declaration of `FILE'.
41415 Patch by Volker Borchert.
41417 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
41418 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
41419 sys/fs_types.h, and make the link-test for getfsstat guard #include
41420 directives with appropriate #if HAVE_*_H tests so that we can
41421 detect getfsstat on Apple Darwin1.3.7 systems.
41422 Reported by Nelson Beebe.
41423 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
41425 2001-09-28 Paul Eggert <eggert@twinsun.com>
41427 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
41428 #defines strtoimax. Also treat the other strto* functions
41431 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
41432 Check for strtoul and strtoumax,
41433 as those declarations are made even in the signed case.
41434 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
41435 Likewise, for strtol and strtoimax.
41437 2001-09-28 Paul Eggert <eggert@twinsun.com>
41439 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
41440 #defines strtoimax. Also treat the other strto* functions
41443 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
41444 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
41445 (strtoimax, strtoumax): Do not declare if already defined as a macro.
41447 2001-09-26 Jim Meyering <meyering@lucent.com>
41449 Most macros in unlocked-io.h had the wrong number of arguments.
41450 * lib/gen-uio: New script.
41451 (USE_UNLOCKED_IO): Define to 1 if not already defined.
41452 * lib/unlocked-io.hin: Remove file.
41453 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
41454 rather than trying to embed it here.
41455 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
41456 Reported by Padraig Brady.
41458 2001-09-25 Volker Borchert <bt@teknon.de>
41460 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
41463 2001-09-24 Jim Meyering <meyering@lucent.com>
41465 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
41467 2001-09-23 Jim Meyering <meyering@lucent.com>
41469 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
41470 instead of the mere test for existence of mntent.h. The latter
41471 would get a false-positive on AIX 3.4 systems.
41472 In the outer getmntent if-block, don't die if neither of the getmntent
41473 tests succeeds. Instead, just fall through and continue with the
41476 2001-09-23 Jim Meyering <meyering@lucent.com>
41478 * lib/mountlist.c: Remove useless parentheses in #if directives.
41479 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
41480 the deprecated MOUNTED symbol is no longer defined in mntent.h.
41482 2001-09-22 Jim Meyering <meyering@lucent.com>
41484 * m4/gettext.m4: New file. From gettext.
41485 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
41486 * m4/progtest.m4: Likewise
41487 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
41488 * m4/glibc21.m4: Likewise.
41490 * m4/libintl.m4: Remove. No longer used.
41492 2001-09-22 Jim Meyering <meyering@lucent.com>
41494 * lib/localcharset.c: Update from latest gettext.
41495 * lib/config.charset: Likewise.
41497 2001-09-20 Jim Meyering <meyering@lucent.com>
41499 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
41501 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
41504 2001-09-20 Jim Meyering <meyering@lucent.com>
41506 * lib/xstrtol.c (strtoimax): Guard declaration with
41507 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
41508 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
41509 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
41510 (strtoumax): Likewise, for completeness (it wasn't necessary).
41512 2001-09-17 Paul Eggert <eggert@twinsun.com>
41514 * lib/strtoimax.c (HAVE_LONG_LONG):
41515 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
41516 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
41517 to work around bug in IBM C compiler.
41519 2001-09-17 Jim Meyering <meyering@lucent.com>
41521 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
41522 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
41523 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
41524 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
41525 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
41526 whenever the right hand side need not be expanded by the shell.
41528 2001-09-16 Paul Eggert <eggert@twinsun.com>
41530 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
41531 library. It's not correct, as some older glibcs are buggy.
41532 fnmatch wasn't fixed until glibc 2.2.
41534 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
41535 special shell magic here.
41537 2001-09-16 Jim Meyering <meyering@lucent.com>
41539 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
41540 * m4/jm-macros.m4: Require it.
41542 2001-09-16 Jim Meyering <meyering@lucent.com>
41544 * lib/mkdir.c: New file.
41546 2001-09-15 Jim Meyering <meyering@lucent.com>
41548 * m4/jm-macros.m4: Check for help2man.
41550 2001-09-11 Jim Meyering <meyering@lucent.com>
41552 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
41553 The body, by Paul Eggert, was moved here from configure.in.
41554 * m4/jm-macros.m4: Require UTILS_HOST_OS.
41556 2001-09-04 Paul Eggert <eggert@twinsun.com>
41558 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
41559 (jm_PREREQ): Use it.
41561 2001-09-04 Paul Eggert <eggert@twinsun.com>
41563 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
41564 Use ssize_t, not int, to store result of readlink.
41565 Check for ssize_t overflow as well as size_t overflow,
41566 as POSIX says the result of readlink is implementation-defined
41567 when ssize_t overflows.
41568 Remove unnecessary cast to char*.
41569 Use free+malloc instead of realloc, as the storage doesn't need
41570 to be preserved and it's clearer and can be more efficient that way.
41571 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
41572 * lib/xreadlink.h (xreadlink): Update prototype.
41574 2001-09-04 Paul Eggert <eggert@twinsun.com>
41576 * lib/xgetcwd.c: Revert some of the previous change; intead,
41577 fix the HAVE_GETCWD_NULL code to behave more like the
41578 !HAVE_GETCWD_NULL code used to.
41580 Include "xalloc.h".
41581 (xgetcwd): Do not return NULL when memory is exhausted; instead,
41584 2001-09-03 Paul Eggert <eggert@twinsun.com>
41586 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
41587 sys/param.h, as pathmax.h includes them.
41589 2001-09-03 Paul Eggert <eggert@twinsun.com>
41591 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
41592 (jm_PREREQ_XGETCWD): New macro.
41594 * m4/getcwd.m4: New file.
41596 2001-09-03 Paul Eggert <eggert@twinsun.com>
41598 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
41599 like the HAVE_GETCWD_NULL code.
41600 Include pathmax.h if not HAVE_GETCWD.
41601 Do not include xalloc.h.
41602 (INITIAL_BUFFER_SIZE): New symbol.
41603 Do not use xmalloc / xrealloc, since the caller is responsible for
41604 handling errors. Preserve errno around `free' during failure.
41605 Do not overrun buffer when using getwd.
41607 2001-09-03 Paul Eggert <eggert@twinsun.com>
41609 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
41610 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
41613 2001-09-03 Paul Eggert <eggert@twinsun.com>
41615 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
41616 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
41617 spotted by Jim Meyering.
41619 2001-09-03 Jim Meyering <meyering@lucent.com>
41621 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
41624 2001-09-02 Jim Meyering <meyering@lucent.com>
41626 * lib/error.c: Update from GNU libc.
41628 2001-09-01 Jim Meyering <meyering@lucent.com>
41630 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
41633 2001-09-01 Jim Meyering <meyering@lucent.com>
41635 * lib/xreadlink.c: New file.
41636 * lib/xreadlink.h: New file.
41637 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
41640 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
41641 doesn't conflict with sparc Solaris 7's definition in
41642 /usr/include/sys/int_types.h.
41644 * lib/exclude.c: Use `""', not `<>' to #include non-system header
41646 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
41647 and strncasecmp as r-values. Unixware didn't have declarations.
41649 2001-08-31 Paul Eggert <eggert@twinsun.com>
41651 * lib/xstrtol.h: Add copyright notice.
41652 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
41653 LONGINT_INVALID_SUFFIX_CHAR.
41655 2001-08-31 Paul Eggert <eggert@twinsun.com>
41657 * lib/xstrtol.c (strtoimax): New decl.
41659 2001-08-31 Paul Eggert <eggert@twinsun.com>
41661 * lib/xgetcwd.c: Don't include pathmax.h.
41662 Include stdlib.h and unistd.h if available.
41664 (xmalloc, xstrdup, free): Remove decls.
41665 (xgetcwd): Don't assume sizes fit in unsigned.
41666 Check for overflow when computing sizes.
41667 Simplify reallocation code.
41669 2001-08-31 Paul Eggert <eggert@twinsun.com>
41671 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
41672 a directory's st_size can have an arbitrary value, so the old
41673 usage could waste an arbitrary amount of memory. All uses
41675 * lib/savedir.h: Update prototype.
41677 2001-08-31 Paul Eggert <eggert@twinsun.com>
41679 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
41681 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
41684 Also, make the following further changes to make this file's
41685 configuration more similar to that of strtol.c:
41686 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
41687 (strtoumax, uintmax_t, strtoull, strtol): Remove.
41688 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
41689 (strtoimax): Renamed from strtoumax. All uses of unsigned values
41690 changed to signed values.
41692 And make the following changes as well:
41693 Fix copyright notice, as 1999 was missing.
41694 (verify): New macro.
41695 (strtoimax): Check sizes at compile-time, not run-time.
41696 Prefer strtol to strtoll if both work.
41697 (main): Remove; it was not that useful and was a pain to maintain.
41699 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
41701 2001-08-31 Jim Meyering <meyering@lucent.com>
41703 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
41704 Use an initial, malloc'd, buffer of length 128 rather than
41705 a statically allocated one of length 1024.
41707 2001-08-30 Paul Eggert <eggert@twinsun.com>
41709 Simplify code, partly by assuming autoconf 2.52 semantics.
41711 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
41713 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
41714 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
41716 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
41717 Move AC_REQUIRE to next-to-top level, to avoid confusion.
41718 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
41719 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
41720 jm_AC_HEADER_INTTYPES_H.
41721 * m4/jm-macros.m4 (jm_MACROS): Likewise.
41723 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
41725 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
41726 Quote first arg of AC_DEFUN.
41727 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
41728 since they are needed to parse the include file even if we need
41729 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
41730 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
41731 but with opposite signedness.
41733 2001-08-30 Paul Eggert <eggert@twinsun.com>
41735 Merge 'exclude' changes from tar 1.13.22.
41736 This fixes one or two unlikely storage allocation overflow bugs,
41737 but doesn't change user-visible behavior otherwise.
41739 2001-08-30 Paul Eggert <eggert@twinsun.com>
41741 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
41742 (jm_PREREQ_EXCLUDE): New macro.
41744 2001-08-30 Paul Eggert <eggert@twinsun.com>
41746 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
41749 2001-08-30 Paul Eggert <eggert@twinsun.com>
41751 * lib/hash.c: Remove '2001' from copyright notice.
41753 2001-08-30 Paul Eggert <eggert@twinsun.com>
41755 * lib/full-write.h: New file.
41756 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
41757 * lib/full-write.c: Correct credits, as cccp.c no longer
41758 exists and anyway it was so heavily changed from the old cccp
41759 code as to be unrecognizable. Include full-write.h.
41760 (full_write) Return size_t, with short writes meaning failure.
41761 All callers changed. This fixes a bug with large buffers
41763 * lib/utime.c: Include full-write.h.
41765 2001-08-30 Paul Eggert <eggert@twinsun.com>
41767 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
41768 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
41769 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
41770 Include if available.
41771 (<xalloc.h>): Include
41772 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
41773 (verify): New macro. Use it to verify that EXCLUDE macros do not
41774 collide with FNM macros.
41775 (struct patopts): New struct.
41776 (struct exclude): Use it, as exclude patterns now come with options.
41777 (new_exclude): Support above changes.
41778 (new_exclude, add_exclude_file):
41779 Initial size must now be a power of two to simplify overflow checking.
41780 (free_exclude, fnmatch_no_wildcards): New function.
41781 (excluded_filename): No longer requires options arg, as the options
41782 are determined by add_exclude. Now returns bool, not int.
41783 (excluded_filename, add_exclude):
41784 Add support for the fancy new exclusion options.
41785 (add_exclude, add_exclude_file): Now takes int options arg.
41786 Check for arithmetic overflow when computing sizes.
41787 (add_exclude_file): xrealloc might modify errno, so don't
41788 realloc until after errno might be used.
41790 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
41792 (free_exclude): New decl.
41793 (add_exclude, add_exclude_file): Now takes int options arg.
41794 (excluded_filename): No longer requires options arg, as the options
41795 are determined by add_exclude. Now returns bool, not int.
41797 2001-08-30 Paul Eggert <eggert@twinsun.com>
41799 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
41801 2001-08-27 Jim Meyering <meyering@lucent.com>
41803 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
41805 * lib/version-etc.c (N_): Remove definition.
41806 Revert most of last change.
41807 Instead, simply don't mark the `Copyright...' string for translation.
41808 Based on advice from Paul Eggert.
41810 * lib/strtoxmax.c: Tweak comment.
41812 2001-08-26 Jim Meyering <meyering@lucent.com>
41814 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
41816 * m4/xstrtoimax.m4: New file.
41817 * m4/xstrtoumax.m4: Add comments explaining why we
41818 AC_REPLACE_FUNCS(strtol).
41820 2001-08-26 Jim Meyering <meyering@lucent.com>
41822 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
41823 of copyright with `%s' so translators don't get an untranslated
41825 (COPYRIGHT_YEAR): Define.
41826 (version_etc): Use fprintf rather than fputs.
41827 Suggestion from Ulrich Drepper.
41829 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
41831 * lib/strtoll.c: New file, from GNU libc.
41832 * lib/xstrtoimax.c: New file.
41834 * lib/xstrtol.h: Add xstrtoimax.
41835 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
41836 * lib/strtoimax.c: New file. Likewise, but first define
41839 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
41841 * lib/strtoxmax.c: ... then renamed to this.
41843 2001-08-18 Paul Eggert <eggert@twinsun.com>
41845 * m4/inttypes.m4: Add AC_PREREQ(2.13).
41846 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
41847 (jm_AC_TYPE_INTMAX_T): New macro.
41848 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
41850 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
41852 * m4/longlong.m4: Renamed from ulonglong.m4.
41853 * m4/inttypes.m4: Renamed from inttypes_h.m4.
41854 * m4/uintmax_t.m4: Removed.
41856 2001-08-13 Paul Eggert <eggert@twinsun.com>
41858 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
41859 Port to Solaris 8, where 'sed' requires a space after the 'r'
41860 command, and where sh dislikes "$/". Clean up the spacing a bit.
41861 Redirect output to $tmp just once.
41863 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
41865 * lib/addext.c (<errno.h>): Include.
41866 (errno): Declare if not defined.
41867 (addext): Work correctly when pathconf returns -1 and leaves
41868 errno alone because there is no limit. Also, work even if
41869 pathconf returns a value greater than SIZE_MAX.
41871 2001-08-12 Jim Meyering <meyering@lucent.com>
41873 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
41874 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
41875 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
41876 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
41877 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
41878 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
41879 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
41880 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
41881 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
41882 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
41883 utime.m4, utimes.m4, xstrtoumax.m4:
41884 Quote the first argument in each use of AC_DEFUN.
41886 2001-08-12 Jim Meyering <meyering@lucent.com>
41888 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
41889 Simply `return getcwd (NULL, 0);'.
41890 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
41891 Use 1300 as initial value for length, not PATH_MAX.
41893 * lib/pathmax.h: Clean up cpp syntax.
41895 2001-08-12 Jim Meyering <meyering@lucent.com>
41897 * lib/gettimeofday.c: New file.
41898 * lib/gtod.h: New file.
41899 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
41901 2001-08-05 Jim Meyering <meyering@lucent.com>
41903 * m4/jm-macros.m4: Require autoconf-2.52.
41905 2001-08-04 Jim Meyering <meyering@lucent.com>
41907 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
41908 stmt, to get in sync with glibc.
41910 2001-08-03 Paul Eggert <eggert@twinsun.com>
41912 The following changes are from gettext 0.10.39 as maintained by
41915 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
41916 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
41917 with inverted sense. All uses changed.
41919 * lib/mbswidth.c: Don't include <limits.h>.
41920 Include <stdlib.h> and <string.h> unconditionally.
41921 (iswcntrl, mbsinit, ISCNTRL): New macros.
41922 (mbsnwidth): Use K&R style function declarations.
41923 Don't bother checking for MB_LEN_MAX == 1, since the compiler
41924 can optimize it when MB_CUR_MAX == 1.
41925 The width of control characters is zero, not 1.
41927 2001-08-03 Paul Eggert <eggert@twinsun.com>
41929 The following changes are from gettext 0.10.39 as maintained by
41930 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
41932 * m4/codeset.m4: Upgrade to serial AM1.
41933 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
41934 all uses changed. Quote first arg of AC_DEFUN.
41935 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
41937 * m4/iconv.m4: Upgrade to serial AM2.
41938 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
41939 Add --with-libconv-prefix.
41940 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
41941 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
41942 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
41943 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
41944 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
41946 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
41947 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
41948 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
41949 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
41950 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
41951 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
41952 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
41953 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
41954 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
41956 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
41959 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
41960 not the default value.
41962 2001-06-25 Bruno Haible <haible@clisp.cons.org>
41963 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
41964 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
41965 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
41966 Also check for iswcntrl, used for wcwidth fallback.
41967 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
41970 2001-08-03 Jim Meyering <meyering@lucent.com>
41972 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
41973 as it was in the original. Reported by Paul Eggert.
41975 2001-07-16 Jim Meyering <meyering@lucent.com>
41977 * m4/gettimeofday.m4: New file.
41978 Prompted by a report from Bernhard Baehr.
41980 2001-07-15 Jim Meyering <meyering@lucent.com>
41982 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
41983 stuff. Now it's in ../Makefile.cfg.
41985 2001-07-15 Jim Meyering <meyering@lucent.com>
41987 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
41988 (BUILT_SOURCES): Add unlocked-io.h.
41989 (io_functions): Define.
41990 (unlocked-io.h): New rule.
41991 (DISTCLEANFILES): Add unlocked-io.h.
41992 (all-local): Depend on unlocked-io.h, to ensure it is created.
41994 * lib/unlocked-io.hin: New file
41996 * lib/regex.c: Update from glibc.
41998 2001-07-05 Jim Meyering <meyering@lucent.com>
42000 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
42002 (libfetish_a_SOURCES): Put all .h files here instead.
42003 Remove a thus-exposed (better checks in automake) duplicate and
42004 two unnecessary .h files.
42006 2001-07-04 Jim Meyering <meyering@lucent.com>
42008 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
42009 that generates jm-glibc-io.m4 so that it doesn't trigger any make
42012 2001-07-02 Jim Meyering <meyering@lucent.com>
42014 The following changes were prompted by suggestions from Bruno Haible.
42016 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
42018 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
42019 definition of EXTRA_DIST.
42020 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
42021 ensure that the generated file is created/updated whenever the list
42022 of $(unlocked_functions) is changed.
42023 (jm-glibc-io.m4): New rule.
42024 (unlocked-io.h): New rule -- currently unused.
42026 2001-06-24 Jim Meyering <meyering@lucent.com>
42028 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
42029 unmatched right bracket, rather than kludging it with an extra,
42030 falsely-matching quote in a comment. Patch by Akim Demaille.
42032 2001-06-11 Jim Meyering <meyering@lucent.com>
42034 * lib/regex.c: Update from GNU libc.
42036 2001-05-27 Jim Meyering <meyering@lucent.com>
42038 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
42039 Check for ut_type in struct utmp.
42041 2001-05-27 Jim Meyering <meyering@lucent.com>
42043 * lib/readutmp.h (UT_TYPE): Define.
42045 2001-05-24 Jim Meyering <meyering@lucent.com>
42047 * lib/argmatch.c: Include "quote.h".
42048 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
42049 quote function. Reported by Göran Uddeborg.
42051 2001-05-22 Jim Meyering <meyering@lucent.com>
42053 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
42054 now that we use the package-supplied version unconditionally.
42055 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
42057 2001-05-21 Jim Meyering <meyering@lucent.com>
42059 * m4/regex.m4: Change a couple backticks to single quotes to avoid
42060 shell syntax errors.
42062 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
42064 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
42066 2001-05-20 Paul Eggert <eggert@twinsun.com>
42068 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
42069 Don't bother to check library strftime, since
42070 we'll be using our own my_strftime function anyway.
42071 Define my_strftime instead of strftime.
42073 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
42075 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
42076 which is not yet declared.
42078 2001-05-15 Jim Meyering <meyering@lucent.com>
42080 * m4/regex.m4: Use proper quoting so brackets appear in the test
42082 Reported by, and with help from, Bruno Haible.
42084 2001-05-13 Jim Meyering <meyering@lucent.com>
42086 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
42089 2001-05-11 Paul Eggert <eggert@twinsun.com>
42091 dirname code cleanup. base_name now behaves more compatibly
42092 with POSIX basename when given file names that have trailing
42093 slashes, and similarly for dir_name. Add new primitives
42094 base_len and dir_len. Put the directory-name-related decls
42097 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
42098 * lib/backupfile.c (base_name): Likewise.
42099 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
42100 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
42101 * lib/makepath.c (strip_trailing_slashes): Likewise.
42102 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
42103 ISSLASH): Likewise.
42104 * lib/rename.c (strip_trailing_slashes): Likewise.
42105 * lib/same.c (base_name): Likewise.
42106 * lib/stripslash.c (ISSLASH): Likewise.
42108 * lib/addext.c: Include <dirname.h> after size_t is defined.
42109 * lib/backupfile.c: Likewise.
42111 * lib/addext.c (addext): Use base_len to trim redundant
42112 trailing slashes instead of doing it ourselves.
42113 But do not trim the last slash if it is not redundant.
42115 * lib/backupfile.c (find_backup_file_name,
42116 max_backup_version): Use base_len instead of rolling it ourselves.
42117 Handle the case of "" and (on DOS) "C:" correctly.
42119 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
42120 needed. Include <string.h>, <dirname.h>.
42121 (base_name): Allow file names ending in slashes, other than names
42122 that are all slashes. In this case, return the basename followed
42123 by the slashes. This is more general, and can be used in places
42124 where the original base_name purposely had an assertion failure.
42125 (base_len): New function.
42127 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
42128 Do not include <assert.h>; no longer needed.
42130 (memrchr): Remove decl.
42131 (dir_name_r): Remove.
42132 (dir_len): Renamed from dirlen. All callers changed.
42133 Rewrite in terms of base_name, for simplicity and consistency.
42134 (dir_name): Never return NULL. All callers changed.
42135 Do not include <stdlib.h> in test program; no longer needed.
42136 return 0; is fine for test program.
42138 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
42140 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
42142 * lib/path-concat.c (path_concat): Use base_len to compute
42143 base length, not strlen; this means we cannot rely on memcpy
42146 * lib/same.c (STREQ): Remove.
42147 (same_name): Handle the case where the basename ends in trailing '/'.
42149 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
42150 a slash was stripped. Do not strip the last slash after a
42151 file system prefix.
42153 2001-05-11 Paul Eggert <eggert@twinsun.com>
42155 * lib/Makefile.am (libfetish_a_SOURCES):
42156 Add strftime.c, since we now compile it on all hosts.
42158 * lib/strftime.c (my_strftime):
42159 Define to nstrftime if emacs, but only if my_strftime is not defined.
42160 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
42161 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
42162 Add one more extra argument: a nanoseconds value.
42165 (my_strftime function): Add %N format.
42166 (emacs_strftimeu): Renamed from emacs_strftime,
42167 with extra ut argument.
42169 2001-05-09 Paul Eggert <eggert@twinsun.com>
42171 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
42173 2001-04-21 Jim Meyering <meyering@lucent.com>
42175 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
42178 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
42180 * m4/ftruncate.m4: Check for chsize.
42181 Link with ftruncate.o unconditionally if ftruncate is missing.
42182 This was required when cross-compiling to i586-mingw32msvc.
42184 2001-04-08 Jim Meyering <meyering@lucent.com>
42186 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
42187 recomputed; that's necessary when the offset spans a DST transition.
42188 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
42190 2001-04-02 Jim Meyering <meyering@lucent.com>
42192 * lib/regex.h, regex.c: Update from GNU libc.
42194 2001-03-24 Jim Meyering <meyering@lucent.com>
42196 * m4/jm-macros.m4: Require autoconf-2.49d.
42198 2001-03-20 Bruno Haible <haible@clisp.cons.org>
42200 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
42202 2001-03-19 Paul Eggert <eggert@twinsun.com>
42204 * lib/version-etc.c (version_etc_copyright): Update to 2001.
42206 2001-03-17 Jim Meyering <meyering@lucent.com>
42208 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
42209 now that the version in autoconf is equivalent.
42210 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
42212 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
42213 Suggestion from Akim Demaille.
42215 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
42216 (jm_PREREQ_TEMPNAME): New function.
42218 2001-03-16 Paul Eggert <eggert@twinsun.com>
42220 * lib/tempname.c (uint64_t): Define to uintmax_t if
42221 not defined, and if UINT64_MAX is not defined.
42222 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
42223 Reported by John David Anglin.
42225 2001-03-15 Bruno Haible <haible@clisp.cons.org>
42227 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
42228 resolve alias if codeset is empty.
42229 * lib/config.charset (BeOS): Use wildcard syntax.
42231 2001-03-13 Jim Meyering <meyering@lucent.com>
42233 * lib/path-concat.c (path_concat)
42234 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
42235 concatenating e.g., `C:' and `foo'.
42238 2001-03-06 Bruno Haible <haible@clisp.cons.org>
42240 * lib/localcharset.c (locale_charset): Don't use
42241 setlocale(LC_CTYPE,NULL). Don't return NULL.
42242 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
42244 2001-03-06 Bruno Haible <haible@clisp.cons.org>
42246 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
42247 support for DOS/DJGPP.
42249 2001-03-01 Paul Eggert <eggert@twinsun.com>
42251 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
42252 lacks mkstemp. Compile our own tempname.c if we compile our own
42253 mkstemp.c, as mkstemp relies on tempname.
42255 2001-03-01 Jim Meyering <meyering@lucent.com>
42257 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
42258 AH_VERBATIM really does output its argument verbatim.
42260 2001-02-28 Paul Eggert <eggert@twinsun.com>
42262 * lib/Makefile.am (libfetish_a_SOURCES):
42263 Add dup-safer.c, fopen-safer.c.
42264 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
42266 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
42267 * lib/unistd-safer.h: New files.
42269 2001-02-25 Paul Eggert <eggert@twinsun.com>
42271 The mkstemp replacement is taken from glibc 2.2.2, with some
42272 portability fixes for use outside glibc, as follows:
42274 * lib/tempname.c (struct_stat64): New macro.
42275 (direxists, __gen_tempname): Use it.
42276 This avoids a portability problem with Solaris 8.
42278 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
42279 (<stddef.h>, <stdint.h>, <string.h>):
42280 Include only if STDC_HEADERS || _LIBC.
42281 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
42282 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
42283 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
42284 (__set_errno): Define this macro if <errno.h> doesn't.
42285 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
42286 Define these macros if <stdio.h> doesn't.
42287 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
42288 Define these macros if <sys/stat.h>
42289 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
42290 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
42291 __xstat64): Define if not _LIBC.
42292 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
42293 (__gen_tempname): Invoke gettimeofday only if
42294 HAVE_GETTIMEOFDAY || _LIBC;
42295 otherwise, fall back on plain "time".
42296 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
42298 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
42300 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
42302 2001-02-18 Paul Eggert <eggert@twinsun.com>
42304 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
42306 2001-02-17 Paul Eggert <eggert@twinsun.com>
42308 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
42309 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
42310 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
42311 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
42313 2001-02-17 Paul Eggert <eggert@twinsun.com>
42315 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
42316 Remove workaround macros for hosts that have mbrtowc but not
42317 mbstate_t, as we now insist on proper declarations for both
42318 before using mbrtowc.
42320 2001-02-17 Jim Meyering <meyering@lucent.com>
42322 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
42323 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
42324 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
42327 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
42328 rather than AC_CACHE_VAL.
42330 2001-02-17 Jim Meyering <meyering@lucent.com>
42332 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
42333 around included file name.
42335 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
42337 * lib/strftime.c: Update from GNU libc (the only changes were to
42340 2001-02-17 Jim Meyering <meyering@lucent.com>
42342 * lib/regex.c: Update from libc.
42344 2001-02-17 Bruno Haible <haible@clisp.cons.org>
42346 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
42349 2001-02-16 Paul Eggert <eggert@twinsun.com>
42351 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
42352 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
42353 Reported by Mark Hounschell via Paul Eggert.
42355 2001-02-07 Jim Meyering <meyering@lucent.com>
42357 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
42359 2001-02-05 Jim Meyering <meyering@lucent.com>
42361 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
42362 it includes the patch required for `large file' support with at least
42363 HP-UX's 10.20 /bin/cc.
42365 2001-02-03 Jim Meyering <meyering@lucent.com>
42367 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
42368 AS_IF, now that it works once again (mysteriously).
42369 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
42371 2001-01-30 Jim Meyering <meyering@lucent.com>
42373 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
42374 * m4/chown.m4: Rename conftestchown to conftest.chown.
42375 * m4/rename.m4: s/conftestdir/conftest.d1/ and
42376 s/conftestdir2/conftest.d2/.
42377 * m4/utimes.m4: s/conftestdata/conftest.data/
42378 Inspired by Pavel Roskin's change in autoconf.
42380 2001-01-30 Bruno Haible <haible@clisp.cons.org>
42382 * lib/config.charset: Update for FreeBSD 4.2.
42384 2001-01-27 Jim Meyering <meyering@lucent.com>
42386 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
42388 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
42390 2001-01-26 Jim Meyering <meyering@lucent.com>
42392 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
42393 quotearg.c includes it.
42395 2001-01-26 Jim Meyering <meyering@lucent.com>
42397 * lib/quotearg.c: Include stddef.h.
42398 * lib/quote.c: Include stddef.h.
42399 Reported by Axel Kittenberger.
42401 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
42402 line in double quotes so that it evokes a better diagnostic.
42403 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
42404 Reported by Axel Kittenberger.
42406 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
42408 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
42409 as if it was a `charset'.
42411 2001-01-21 Bruno Haible <haible@clisp.cons.org>
42413 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
42416 2001-01-21 Bruno Haible <haible@clisp.cons.org>
42418 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
42419 to avoid a warning. Add back 'const' to inptr.
42421 2001-01-20 Jim Meyering <meyering@lucent.com>
42423 Be sure that headers are checked before used in code compiled
42424 for the type checks.
42425 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
42426 In place of that, invoke jm_CHECK_ALL_TYPES.
42427 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
42428 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
42429 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
42430 The check for ssize_t was mistakenly run before the test for unistd.h.
42432 The configure-time check for stdbool.h was missing.
42433 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
42434 (jm_PREREQ_HASH): New function.
42436 2001-01-17 Jim Meyering <meyering@lucent.com>
42438 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
42439 for autoconf-2.49c.
42440 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
42442 2001-01-16 Jim Meyering <meyering@lucent.com>
42444 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
42447 2001-01-14 Jim Meyering <meyering@lucent.com>
42449 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
42450 foo and bar. Create conftestdir/ in the script, not in the C code.
42451 Remove directories in the script, not in the C code.
42452 Remove conftestdir{,2} before trying to create the directory.
42453 Make the entire configure script fail if the mkdir fails.
42455 2001-01-14 Jim Meyering <meyering@lucent.com>
42457 * lib/rename.c: New file. From Volker Borchert.
42458 Include stdlib.h, string.h or strings.h, and xalloc.h.
42459 Use strip_trailing_slashes rather than open-coding it.
42461 2001-01-03 Paul Eggert <eggert@twinsun.com>
42463 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
42465 2001-01-03 Jim Meyering <meyering@lucent.com>
42467 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
42468 of local `inptr' to avoid warning with some system declarations of
42471 2001-01-02 Volker Borchert <bt@teknon.de>
42473 * m4/rename.m4: New file.
42474 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
42476 2001-01-01 Jim Meyering <meyering@lucent.com>
42478 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
42479 even on systems with utmpx.h. It's necessary for the declaration of
42480 utmp's ut_user member. Reported by Andreas Jaeger.
42482 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
42483 available. They are required for the declarations of getgrgid and
42485 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
42486 Reported by Andreas Jaeger.
42488 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
42490 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
42491 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
42492 so `make install' also works in VPATH builds.
42494 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
42496 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
42497 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
42498 can be used in subdirectories.
42500 2000-12-29 Paul Eggert <eggert@twinsun.com>
42502 * lib/modechange.c: Do not assume that mode_t uses the
42503 traditional octal encoding. E.g. "chmod 1 FOO" should set
42504 the other-execute bit of FOO even if S_IXOTH != 1.
42506 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
42507 WOTH, XOTH, ALLM): New macros.
42508 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
42509 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
42511 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
42512 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
42514 No need to use uintmax_t; unsigned long is long enough.
42515 Don't bother to get suffix since we don't use it.
42517 2000-12-26 Jim Meyering <meyering@lucent.com>
42519 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
42520 better with autoheader.
42522 2000-12-24 Jim Meyering <meyering@lucent.com>
42524 * lib/hash.c (is_prime): Return explicit boolean values.
42525 (hash_get_first): Return NULL to appease Irix5.6's 89.
42526 Reported by Nelson Beebe.
42528 2000-12-19 Bruno Haible <haible@clisp.cons.org>
42530 * lib/localcharset.c (locale_charset): Add support for Win32.
42532 2000-12-18 Paul Eggert <eggert@twinsun.com>
42534 * lib/physmem.h, lib/physmem.c: New files.
42536 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
42537 (noinst_HEADERS): Add physmem.h.
42539 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
42540 't' for compatibility with Solaris 8 sort.
42542 2000-12-18 Bruno Haible <haible@clisp.cons.org>
42544 * lib/config.charset: Add support for BeOS.
42546 2000-12-17 Jim Meyering <meyering@lucent.com>
42548 * m4/dos.m4 (jm_AC_DOS): New file and macro.
42549 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
42551 2000-12-16 Jim Meyering <meyering@lucent.com>
42553 This bug had a serious impact on chown: `chown N:M FILE' (for integer
42554 N and M) would have treated it like `chown N:N FILE'.
42556 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
42558 2000-12-16 Jim Meyering <meyering@lucent.com>
42560 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
42561 SHELLS_FILE to a file name that's useful on djgpp systems.
42563 (ADDITIONAL_DEFAULT_SHELLS): Define.
42564 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
42565 Based mostly on a patch from Prashant TR.
42567 2000-12-16 Bruno Haible <haible@clisp.cons.org>
42569 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
42570 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
42571 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
42573 2000-12-08 Andreas Schwab <schwab@suse.de>
42575 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
42576 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
42578 2000-12-07 Jim Meyering <meyering@lucent.com>
42580 * lib/stripslash.c (ISSLASH): Define.
42581 (strip_trailing_slashes): Use ISSLASH rather than comparing against
42585 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
42586 (dir_name_r): Declare this function as static.
42587 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
42588 manifest itself on a name containing a mix of slashes and
42590 Make this function work with names starting with a DOS-style
42591 drive letter and colon prefix.
42592 (dir_name): Append `.' if necessary.
42593 Based mostly on patches from Prashant TR and Eli Zaretskii.
42595 * lib/dirname.h (dir_name_r): Remove prototype.
42597 2000-12-06 Paul Eggert <eggert@twinsun.com>
42599 * m4/off_t-format.m4: Remove this file.
42600 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
42602 2000-12-06 Jim Meyering <meyering@lucent.com>
42604 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
42605 replacement strtoull, we may well need the replacement strtoul, too.
42606 Check for declarations of strtoul and strtoull.
42607 Check for strtol. Mainly as a cue to cause automake to include
42608 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
42609 Check for limits.h -- strtol.c needs it.
42611 2000-12-05 Jim Meyering <meyering@lucent.com>
42613 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
42615 2000-12-04 Jim Meyering <meyering@lucent.com>
42617 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
42618 Also include memory.h, stdlib.h, unistd.h if appropriate.
42619 Reported by Andreas Jaeger (conflicting declaration of malloc).
42621 2000-12-02 Jim Meyering <meyering@lucent.com>
42623 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
42624 * m4/jm-macros.m4 (jm_MACROS): require it.
42626 2000-12-02 Jim Meyering <meyering@lucent.com>
42628 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
42630 2000-12-01 Paul Eggert <eggert@twinsun.com>
42632 * lib/memrchr.c: Include <config.h> before any system include file.
42634 2000-11-30 Jim Meyering <meyering@lucent.com>
42636 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
42638 2000-11-30 Jim Meyering <meyering@lucent.com>
42640 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
42642 2000-11-29 Paul Eggert <eggert@twinsun.com>
42644 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
42646 2000-11-26 Jim Meyering <meyering@lucent.com>
42648 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
42650 2000-11-22 Paul Eggert <eggert@twinsun.com>
42652 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
42653 size of (size_t) -1; it's not portable.
42655 2000-11-17 Jim Meyering <meyering@lucent.com>
42657 * lib/strstr.c: Update from GNU libc.
42659 2000-11-17 Akim Demaille <akim@epita.fr>
42661 * lib/obstack.h: Formatting changes.
42662 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
42663 prevent type checking.
42664 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
42665 cast the value to (void *): assigning a `foo *' to a `void *'
42667 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
42669 2000-11-16 Jim Meyering <meyering@lucent.com>
42671 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
42673 2000-11-11 Jim Meyering <meyering@lucent.com>
42675 * lib/error.c: Add a couple #includes, merging from GNU libc version.
42677 2000-11-10 Jim Meyering <meyering@lucent.com>
42679 * lib/obstack.h: Update from GNU libc.
42680 * lib/obstack.c: Likewise.
42682 2000-11-08 Bruno Haible <haible@clisp.cons.org>
42684 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
42686 2000-11-06 Paul Eggert <eggert@twinsun.com>
42688 * lib/getusershell.c (setusershell): Use rewind rather than
42689 fseek/fseeko, to avoid configuration hassles with fseeko.
42690 Don't bother opening SHELLS_FILE if shellstream is NULL;
42691 it's not necessary.
42693 2000-11-05 Jim Meyering <meyering@lucent.com>
42695 * lib/makepath.h (make_dir): Declare.
42696 * lib/makepath.c (make_dir): Remove `static' attribute.
42699 2000-11-04 Jim Meyering <meyering@lucent.com>
42701 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
42703 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
42705 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
42706 last one in a bucket, advance to the next bucket.
42708 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
42710 * lib/fnmatch.c: Do not comment out all the code if we are using
42711 the GNU C library, because in some cases we are replacing buggy
42712 code in the GNU C library itself.
42714 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
42716 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
42717 (regex_compile): Catch bogus \(\1\).
42719 2000-10-30 Paul Eggert <eggert@twinsun.com>
42721 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
42722 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
42723 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
42725 2000-10-30 Paul Eggert <eggert@twinsun.com>
42727 * lib/error.h, getline.h, modechange.h:
42728 Remove "2000" from Copyright line, as the file hasn't been
42729 changed this year other than in the copyright notice.
42731 * lib/xalloc.h: Add "2000" to Copyright line, as this file
42732 was changed this year.
42734 2000-10-29 Jim Meyering <meyering@lucent.com>
42736 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
42738 * m4/ls-mntd-fs.m4: Likewise
42740 2000-10-29 Jim Meyering <meyering@lucent.com>
42742 * lib/xstat.in: Fix grammar in comment.
42744 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
42746 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
42747 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
42748 doesn't define __restrict_arr.
42750 2000-10-28 Jim Meyering <meyering@lucent.com>
42752 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
42753 (jm_PREREQ_MEMCHR): New function.
42755 2000-10-28 Jim Meyering <meyering@lucent.com>
42757 * lib/memchr.c: Update from libc.
42758 Adjust for portability:
42759 [HAVE_STDLIB_H]: Include stdlib.h.
42760 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
42761 Undef __memchr, too.
42762 [!weak_alias]: Define __memchr to memchr.
42764 * lib/regex.c: Update from libc.
42765 * lib/regex.h: Likewise.
42766 * lib/getopt1.c: Likewise.
42767 * lib/memcmp.c: Likewise.
42769 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
42770 Avoid using fseek, when possible -- it's broken by design.
42771 Patch by Ulrich Drepper.
42773 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
42775 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
42776 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
42777 Giving in to popular pressure to shut up the compiler with casts.
42779 2000-10-26 Jim Meyering <meyering@lucent.com>
42781 * lib/strftime.c: Update from libc.
42783 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
42785 * regex.c: More `unsigned char' -> `re_char' changes.
42786 Also change several `int' into `re_wchar_t'.
42787 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
42788 (PUSH_FAILURE_POINTER): Don't cast any more.
42789 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
42790 We want GCC to complain, since this piece of code makes
42791 re_match non-reentrant, which *should* be fixed.
42792 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
42793 (EXTEND_BUFFER): Use RETALLOC.
42794 (SET_LIST_BIT): Don't cast.
42795 (re_wchar_t): New type.
42796 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
42797 that those two functions will always properly return.
42798 (IMMEDIATE_QUIT_CHECK): Cast to void.
42799 (analyse_first): Use recursion rather than an explicit stack.
42800 (re_compile_fastmap): Can't fail anymore.
42801 (re_search_2): Don't check re_compile_fastmap for failure.
42802 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
42803 Now also sets the new value (passed in a new argument).
42804 (re_match_2_internal): Use it.
42805 Also, use a new var `reg' of type size_t when looping through regs
42806 rather than reuse the inappropriate `mcnt'.
42808 2000-10-25 Jim Meyering <meyering@lucent.com>
42810 * lib/obstack.c: Update from libc.
42812 2000-10-24 Kenichi Handa <handa@etl.go.jp>
42814 * regex.c (regex_compile): Change the way of handling a range from
42815 a char less than 256 to a char not less than 256.
42817 2000-10-24 Andrew Innes <andrewi@gnu.org>
42819 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
42821 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
42822 so that re_search functions only quit when callers expect them to.
42824 2000-10-23 Jim Meyering <meyering@lucent.com>
42826 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
42827 wrong. That set_locale call must not have any side effects.
42830 2000-10-22 Jim Meyering <meyering@lucent.com>
42832 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
42833 [CYCLIC]: Remove now-unused definition.
42835 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
42836 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
42837 Suggestion from Ulrich Drepper.
42839 2000-10-21 Jim Meyering <meyering@lucent.com>
42841 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
42842 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
42843 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
42845 2000-10-21 Jim Meyering <meyering@lucent.com>
42847 * lib/dirname.c (memrchr): Declare if necessary.
42848 (dir_name): Remove the restriction that there be no
42849 trailing slashes. Now, this code skips past them, effectively
42851 [TEST_DIRNAME] (main): New unit tests.
42853 * lib/memrchr.c: New file from GNU libc.
42854 Undef __memrchr, too.
42855 [!weak_alias]: Define __memrchr to memrchr.
42856 Guard weak_alias use with `#ifdef weak_alias'.
42858 2000-10-21 Jim Meyering <meyering@lucent.com>
42860 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
42861 (dir_name): Use dir_name_r.
42862 * lib/dirname.h (dir_name_r): Declare it.
42864 2000-10-17 Jim Meyering <meyering@lucent.com>
42866 * lib/quote.h (PARAMS): Define and use.
42867 Reported by Akim Demaille.
42869 * lib/getopt.c: Update from libc.
42871 2000-10-16 Jim Meyering <meyering@lucent.com>
42873 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
42877 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
42879 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
42881 2000-09-25 Jim Meyering <meyering@lucent.com>
42883 * lib/md5.h (rol): Define (from GnuPG).
42885 * lib/sha.c: Give credit (GnuPG) where due.
42886 (M): Use rol rather than open-coding it.
42887 Add a FIXME comment.
42889 2000-09-21 Jim Meyering <meyering@lucent.com>
42891 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
42892 Reported by Michael Stone.
42894 2000-09-20 Jim Meyering <meyering@lucent.com>
42896 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
42897 (noinst_HEADERS): Add sha.h.
42898 Based on code from Scott G. Miller and from GnuPG.
42900 2000-09-18 Jim Meyering <meyering@lucent.com>
42902 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
42903 LIBS. Otherwise, everyone ends up linking with -lelf for some
42905 Reported by Mike Stone.
42907 2000-09-15 Jim Meyering <meyering@lucent.com>
42909 * lib/regex.c: Update from libc.
42911 2000-09-10 Jim Meyering <meyering@lucent.com>
42913 * lib/getopt.c (_getopt_internal): Update from glibc.
42915 2000-09-09 Jim Meyering <meyering@lucent.com>
42917 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
42918 think it should be used as a general replacement for isascii.
42919 * lib/fnmatch.c: Likewise.
42920 * lib/mbswidth.c: Likewise
42921 * lib/regex.c: Likewise.
42924 * lib/userspec.c: Include sys/param.h and limits.h.
42926 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
42927 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
42928 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
42929 UID, GID. Check range.
42931 2000-09-06 Jim Meyering <meyering@lucent.com>
42933 * lib/getopt.c (_getopt_internal): Update from glibc.
42935 2000-08-30 Jim Meyering <meyering@lucent.com>
42937 * lib/strftime.c: Merge in changes from GNU libc.
42939 2000-08-26 Jim Meyering <meyering@lucent.com>
42941 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
42942 * m4/fpending.m4: New file.
42944 2000-08-26 Jim Meyering <meyering@lucent.com>
42946 * lib/closeout.c: Include "__fpending.h".
42947 (close_stdout_status): Return right away if there's nothing to flush.
42949 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
42950 * lib/__fpending.c: New file.
42951 * lib/__fpending.h: New file.
42953 2000-08-20 Jim Meyering <meyering@lucent.com>
42955 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
42956 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
42957 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
42959 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
42961 Improve fileutils installation on systems where running
42962 programs (like install) can't be unlinked.
42963 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
42964 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
42966 2000-08-07 Paul Eggert <eggert@twinsun.com>
42968 Standardize on "memory exhausted" instead of "Memory exhausted"
42969 or "virtual memory exhausted".
42970 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
42971 "virtual memory exhausted".
42972 * lib/same.c (same_name): Invoke xalloc_die instead of printing
42974 * lib/userspec.c (parse_user_spec): Likewise.
42975 * lib/bumpalloc.h: comment fix
42976 * lib/same.c, userspec.c: Include xalloc.h.
42978 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
42979 not char *const and pointing to a constant array.
42980 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
42981 (xrealloc): Comment fix.
42983 * lib/userspec.c (parse_user_spec):
42984 Don't translate a message until just before returning,
42985 to avoid unnecessary translation.
42987 2000-08-07 Jim Meyering <meyering@lucent.com>
42989 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
42990 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
42991 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
42992 getgroups.c, gethostname.c, getopt.h, group-member.c,
42993 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
42994 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
42995 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
42996 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
42997 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
42998 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
42999 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
43000 yesno.c: Back out Copyright date changes for each file with no change
43001 this year. This eases coordination with other programs using the same
43002 source code modules. From Paul Eggert.
43004 2000-08-06 Paul Eggert <eggert@twinsun.com>
43006 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
43007 not char, for compatibility with glibc 2.1.3 strftime.c.
43009 2000-08-03 Greg McGary <greg@mcgary.org>
43011 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
43012 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
43013 (EXTEND_BUFFER): Use them.
43015 2000-08-01 Jim Meyering <meyering@lucent.com>
43017 * lib/dirname.c (ISSLASH): Define.
43018 (BACKSLASH_IS_PATH_SEPARATOR): Define.
43019 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
43020 both `\' and `/' may be use as path separators.
43021 Based on a patch from Prashant TR.
43023 2000-07-31 Paul Eggert <eggert@twinsun.com>
43025 * lib/quotearg.c (quotearg_n_options): Don't make the initial
43026 slot vector a constant, since it might get modified.
43028 2000-07-31 Jim Meyering <meyering@lucent.com>
43030 * lib/xmalloc.c: Use `virtual memory exhausted', not
43031 `Memory exhausted'.
43032 * lib/obstack.c (print_and_abort): Likewise.
43034 2000-07-30 Paul Eggert <eggert@twinsun.com>
43036 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
43037 buffer, so that the caller can always quote one small
43038 component of a "memory exhausted" message in slot 0.
43039 From a suggestion by Jim Meyering.
43041 2000-07-30 Jim Meyering <meyering@lucent.com>
43043 * lib/makepath.c (make_path): Quote the other instance, too.
43045 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
43046 (STATIC_BUF_SIZE): Define.
43047 (quotearg_n_options): Use only statically allocated storage when
43048 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
43049 than STATIC_BUF_SIZE.
43051 2000-07-29 Jim Meyering <meyering@lucent.com>
43053 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
43054 * lib/dirname.c (dir_name): Likewise.
43056 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
43059 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
43060 (dir_name): Assert that there are no trailing slashes.
43062 2000-07-29 Bruno Haible <haible@clisp.cons.org>
43064 * lib/mbswidth.h (mbswidth): Add a flags argument.
43065 (mbswidth): New declaration.
43066 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
43067 * lib/mbswidth.c (mbswidth): Add a flags argument.
43068 (mbsnwidth): New function.
43070 2000-07-24 Jim Meyering <meyering@lucent.com>
43072 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
43074 2000-07-23 Paul Eggert <eggert@twinsun.com>
43076 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
43078 2000-07-23 Paul Eggert <eggert@twinsun.com>
43080 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
43081 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
43082 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
43083 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
43084 invoke multibyte primitives.
43086 2000-07-23 Paul Eggert <eggert@twinsun.com>
43089 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
43090 so that mbstate_t is always defined.
43092 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
43093 be 1 in at least one GCC installation, and this configuration
43094 error is likely to be common. Ignoring MB_LEN_MAX hurts
43095 performance on hosts that have mbrtowc but have only unibyte
43096 locales, but I assume these hosts are rare.
43098 2000-07-23 Paul Eggert <eggert@twinsun.com>
43100 * lib/mbswidth.c (_XOPEN_SOURCE):
43101 Don't define; this causes problems on Solaris 7.
43102 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
43104 2000-07-23 Jim Meyering <meyering@lucent.com>
43106 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
43107 too: getgrgid, getpwuid, getuid.
43109 2000-07-23 Jim Meyering <meyering@lucent.com>
43111 * lib/basename.c (base_name): Add an assertion.
43113 2000-07-23 Bruno Haible <haible@clisp.cons.org>
43115 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
43116 shadow its mbsinit function.
43118 2000-07-17 Bruno Haible <haible@clisp.cons.org>
43120 * lib/mbswidth.h: New file.
43121 * lib/mbswidth.c: New file.
43122 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
43123 (noinst_HEADERS): Add mbswidth.h.
43125 2000-07-17 Bruno Haible <haible@clisp.cons.org>
43127 * lib/config.charset: Add support for FreeBSD. Improve support for
43130 2000-07-16 Bruno Haible <haible@clisp.cons.org>
43132 * m4/mbswidth.m4: New file.
43133 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
43135 2000-07-15 Jim Meyering <meyering@lucent.com>
43137 * lib/makepath.c: Include quote.h.
43138 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
43139 corresponding argument in a `quote (...)' call.
43140 Give better diagnostics.
43142 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
43143 (noinst_HEADERS): Add quote.h.
43145 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
43146 from tar's src/misc.c.
43147 * lib/quote.h: New file. Prototypes for same.
43149 2000-07-14 Paul Eggert <eggert@twinsun.com>
43151 From a suggestion by Bruno Haible.
43152 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
43153 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
43154 to decide whether to define the BeOS workaround macro;
43155 this adjusts to the change to AC_MBSTATE_T.
43157 2000-07-14 Jim Meyering <meyering@lucent.com>
43159 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
43160 jm_AC_TYPE_UINTMAX_T.
43162 2000-07-13 Paul Eggert <eggert@twinsun.com>
43164 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
43166 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
43167 quotearg_buffer_restyled): Add support for
43168 clocale_quoting_style. Undo previous change to
43169 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
43170 and "{RIGHT QUOTATION MARK}" msgids.
43172 2000-07-10 Paul Eggert <eggert@twinsun.com>
43174 From a suggestion by Bruno Haible.
43175 * m4/mbstate_t.m4 (AC_MBSTATE_T):
43176 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
43177 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
43178 and mbstate_t, to a single-part test that simply defines mbstate_t.
43179 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
43180 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
43182 2000-07-10 Jim Meyering <meyering@lucent.com>
43184 * m4/strerror_r.m4: Mirror the correction made in autoconf.
43186 * m4/gnu-source.m4: Output to confdefs.h directly.
43187 Suggestion from Akim Demaille.
43189 2000-07-09 Paul Eggert <eggert@twinsun.com>
43191 The old behavior of quoting `like this' doesn't look good with
43192 newer, ISO-style fonts. See:
43193 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
43195 Instead, quote "like this" by default. Let the translator
43196 tailor the locale-specific quoting behavior by providing
43197 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
43199 * lib/quotearg.c (N_): New macro.
43200 (gettext_default): New function.
43201 (quotearg_buffer_restyled): Use
43202 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
43203 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
43205 2000-07-09 Jim Meyering <meyering@lucent.com>
43207 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
43208 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
43210 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
43211 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
43213 2000-07-09 Jim Meyering <meyering@lucent.com>
43215 * lib/Most files: Update copyright dates to include 2000.
43217 2000-07-08 Jim Meyering <meyering@lucent.com>
43219 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
43221 (xgethostname): Remove now-unnecessary #ifdef.
43222 Move declaration of `err' into loop where it's used.
43224 2000-07-05 Paul Eggert <eggert@twinsun.com>
43225 and Bruno Haible <haible@clisp.cons.org>
43227 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
43228 only if the test for an object-type mbstate_t fails. This
43229 prevents us from mistakenly reporting that mbstate_t is a
43230 system object type after we "#define mbstate_t int" to work
43233 2000-07-05 Paul Eggert <eggert@twinsun.com>
43234 and Bruno Haible <haible@clisp.cons.org>
43236 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
43238 2000-07-05 Bruno Haible <haible@clisp.cons.org>
43240 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
43242 Include <ctype.h> for use of isalpha.
43244 2000-07-05 Bruno Haible <haible@clisp.cons.org>
43246 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
43247 by allocating a larger buffer. Test the gethostname return value for
43248 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
43249 returns an error and ENAMETOOLONG isn't defined.
43251 2000-07-05 Bruno Haible <haible@clisp.cons.org>
43253 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
43256 2000-07-04 Jim Meyering <meyering@lucent.com>
43258 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
43259 of the deprecated AC_CHECKING.
43261 2000-07-04 Jim Meyering <meyering@lucent.com>
43263 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
43264 Reported by Bruno Haible.
43266 2000-07-04 Jim Meyering <meyering@lucent.com>
43268 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
43269 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
43272 2000-07-03 Paul Eggert <eggert@twinsun.com>
43274 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
43275 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
43277 2000-07-03 Paul Eggert <eggert@twinsun.com>
43278 and Bruno Haible <haible@clisp.cons.org>
43280 * lib/quotearg.c (mbrtowc):
43281 Assign to *pwc, and return 1 only if result is nonzero.
43282 (iswprint): Use ISPRINT when substituting our own mbrtowc.
43284 2000-07-03 Jim Meyering <meyering@lucent.com>
43286 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
43288 2000-07-03 Jim Meyering <meyering@lucent.com>
43290 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
43291 This is necessary to get a definition of e.g., UTMP_FILE on
43295 2000-07-02 Jim Meyering <meyering@lucent.com>
43297 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
43299 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
43300 AC_LIBOBJ(function_name).
43301 * m4/chown.m4: Likewise.
43302 * m4/fnmatch.m4: Likewise.
43303 * m4/ftruncate.m4: Likewise.
43304 * m4/getgroups.m4: Likewise.
43305 * m4/getline.m4: Likewise.
43306 * m4/group-member.m4: Likewise.
43307 * m4/jm-macros.m4: Likewise.
43308 * m4/lstat.m4: Likewise.
43309 * m4/malloc.m4: Likewise.
43310 * m4/memcmp.m4: Likewise.
43311 * m4/nanosleep.m4: Likewise.
43312 * m4/putenv.m4: Likewise.
43313 * m4/realloc.m4: Likewise.
43314 * m4/regex.m4: Likewise.
43315 * m4/stat.m4: Likewise.
43316 * m4/strftime.m4: Likewise.
43318 2000-07-02 Jim Meyering <meyering@lucent.com>
43320 * lib/quotearg.c (mbstate_t): Don't define here.
43322 2000-07-02 Jim Meyering <meyering@lucent.com>
43324 * lib/nanosleep.c (SIGCONT): Define if not already defined.
43326 2000-07-01 Jim Meyering <meyering@lucent.com>
43328 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
43330 2000-07-01 Jim Meyering <meyering@lucent.com>
43332 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
43335 2000-07-01 Bruno Haible <haible@clisp.cons.org>
43337 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
43338 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
43340 2000-07-01 Bruno Haible <haible@clisp.cons.org>
43342 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
43343 per change in ../m4/ls-mntd-fs.m4.
43344 (read_filesystem_list): Ignore symbolic links.
43346 2000-06-29 Jim Meyering <meyering@lucent.com>
43348 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
43349 for declaration of strcmp.
43351 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
43353 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
43354 Avoid warning by casting result to `char *' to remove `const'.
43356 2000-06-28 Jim Meyering <meyering@lucent.com>
43358 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
43359 included by quotearg.c, for which we perform this test. From
43362 2000-06-27 Bruno Haible <haible@clisp.cons.org>
43364 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
43365 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
43366 <utmpx.h> exists, put readutmp.o into LIBOBJS.
43368 2000-06-27 Bruno Haible <haible@clisp.cons.org>
43370 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
43372 2000-06-26 Paul Eggert <eggert@twinsun.com>
43374 savedir now sets errno on failure and invokes xmalloc to get memory.
43375 Fix a couple of other minor bugs while we're at it.
43377 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
43378 (NAMLEN): Remove macro.
43379 (malloc, realloc): Remove decls.
43380 (stpcpy): Likewise.
43381 ("xalloc.h"): Include.
43382 (NAME_SIZE_DEFAULT): New macro.
43383 (savedir): Use xmalloc / xrealloc to allocate memory.
43384 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
43385 Skip "" directory entries.
43386 Use strlen to calculate directory entry length, since the old method
43387 is rarely used these days and isn't worth supporting.
43388 Don't use a pointer after freeing it.
43389 Check for integer overflow when calculating allocation size.
43390 Use memcpy to copy entries, instead of stpcpy.
43391 Set errno properly when returning NULL.
43392 Check for readdir error.
43394 2000-06-26 Jim Meyering <meyering@lucent.com>
43396 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
43398 2000-06-25 Jim Meyering <meyering@lucent.com>
43400 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
43401 Linux header bug when _XOPEN_SOURCE is defined to 500.
43403 2000-06-25 Bruno Haible <haible@clisp.cons.org>
43405 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
43408 2000-06-25 Bruno Haible <haible@clisp.cons.org>
43410 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
43412 Don't include <stdlib.h>. Don't declare malloc, realloc.
43414 2000-06-24 Jim Meyering <meyering@lucent.com>
43416 * m4/strerror_r.m4: Revive this file -- to try out an experimental
43417 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
43418 for which strerror does return char*, but which lacks a conveniently
43419 accessible declaration of the function. If the compile-test says
43420 strerror_r doesn't work, then resort to a `run'-test that works on
43421 BeOS and segfaults on DEC Unix.
43423 2000-06-24 Jim Meyering <meyering@lucent.com>
43425 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
43427 2000-06-23 Paul Eggert <eggert@twinsun.com>
43429 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
43430 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
43432 2000-06-23 Paul Eggert <eggert@twinsun.com>
43434 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
43435 (mbrtowc, mbstate_t): Define substitutes if
43436 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
43437 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
43438 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
43440 2000-06-23 Jim Meyering <meyering@lucent.com>
43442 * m4/afs.m4: Add missing AC_MSG_RESULT.
43443 Reported by Bruno Haible.
43445 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
43446 Suggestion from Bruno Haible.
43448 2000-06-23 Jim Meyering <meyering@lucent.com>
43450 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
43452 2000-06-21 Jim Meyering <meyering@lucent.com>
43454 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
43456 2000-06-21 Jim Meyering <meyering@lucent.com>
43458 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
43459 (noinst_HEADERS): Add getstr.h.
43461 * lib/getline.c (getstr): Move into a separate file.
43462 * lib/getstr.c (getstr): New file, extracted from getline.c, with
43463 the following changes: new parameter, delim2; both delim[12]
43464 parameters have type `int', not `char'. The latter would lose
43465 with 8-bit delimiters.
43466 * lib/getstr.h: New file.
43468 2000-06-21 Bruno Haible <haible@clisp.cons.org>
43470 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
43471 than 1024, return a memory chunk of least possible size, instead
43472 of size PATH_MAX + 2. In the loop, increment the size proportionally.
43473 Use free/xmalloc instead of xrealloc to avoid copying for very long
43476 2000-06-21 Bruno Haible <haible@clisp.cons.org>
43478 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
43481 2000-06-21 Bruno Haible <haible@clisp.cons.org>
43483 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
43484 address, not strdup. Include <stdlib.h> and don't declare free().
43486 2000-06-19 Jim Meyering <meyering@lucent.com>
43488 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
43490 2000-06-18 Jim Meyering <meyering@lucent.com>
43492 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
43494 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
43495 `checking whether...' message to be consistent with that of the
43498 2000-06-18 Jim Meyering <meyering@lucent.com>
43500 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
43501 Besides, these days every porting target provides a mkdir function.
43503 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
43504 needed. (this snippet comes from src/system.h).
43506 2000-06-16 Bruno Haible <haible@clisp.cons.org>
43508 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
43510 2000-06-15 Paul Eggert <eggert@twinsun.com>
43512 * lib/human.c (adjust_value): New function.
43513 (human_readable_inexact): Apply rounding style even when
43514 printing approximate values.
43516 2000-06-14 Paul Eggert <eggert@twinsun.com>
43518 * lib/human.c (human_readable_inexact): Allow an input block
43519 size that is not a multiple of the output block size, and vice versa.
43520 Reported by Piergiorgio Sartor.
43522 2000-06-14 Paul Eggert <eggert@twinsun.com>
43524 * lib/getdate.y (get_date): Apply relative times after time
43525 zone indicator, not before. Reported by Todd A. Jacobs.
43527 2000-06-13 Jim Meyering <meyering@lucent.com>
43529 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
43531 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
43533 2000-06-12 Paul Eggert <eggert@twinsun.com>
43535 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
43537 2000-06-12 Jim Meyering <meyering@lucent.com>
43539 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
43540 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
43542 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
43543 the optional argument, `lib'.
43545 2000-06-08 Jim Meyering <meyering@lucent.com>
43547 * m4/largefile.m4: Remove file (now that it's part of autoconf).
43549 2000-06-04 Paul Eggert <eggert@twinsun.com>
43551 Rewrite largefile configuration so that we don't need to run
43552 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
43553 AC_CANONICAL_HOST in configure.in -- jmm]
43555 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
43556 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
43557 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
43558 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
43559 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
43561 Instead of inspecting the output of getconf, try to compile the
43562 test program without and with the macro definition.
43563 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
43564 for getconf. Instead, check for the needed flags by compiling
43567 2000-06-04 Paul Eggert <eggert@twinsun.com>
43569 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
43571 2000-06-04 Jim Meyering <meyering@lucent.com>
43573 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
43574 SunOS 4.1.4 for which gid_t is an unsigned type.
43576 2000-06-03 Jim Meyering <meyering@lucent.com>
43578 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
43579 now that autoconf requires that.
43581 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
43582 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
43583 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
43585 2000-06-03 Jim Meyering <meyering@lucent.com>
43587 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
43589 2000-06-03 Bruno Haible <haible@clisp.cons.org>
43591 * m4/glibc21.m4: New file.
43592 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
43594 2000-06-03 Bruno Haible <haible@clisp.cons.org>
43596 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
43597 newer, don't install charset.alias.
43598 * lib/config.charset: Change the Linux/glibc rules so they become empty
43599 on glibc-2.1 or newer.
43601 2000-06-02 Jim Meyering <meyering@lucent.com>
43603 * lib/mountlist.c: Back out last change. Instead, do this...
43604 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
43605 me_dummy member using the same `ignore'-testing code.
43606 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
43610 2000-05-29 Jim Meyering <meyering@lucent.com>
43612 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
43613 mounts with the `ignore' attribute. Based on a patch from
43616 2000-05-28 Jim Meyering <meyering@lucent.com>
43618 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
43619 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43620 * m4/stat.m4: Likewise.
43621 * m4/lstat.m4: Likewise.
43622 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
43624 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
43625 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
43627 2000-05-26 Jim Meyering <meyering@lucent.com>
43629 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
43631 2000-05-24 Jim Meyering <meyering@lucent.com>
43633 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
43634 autoconf requires that.
43635 * m4/lib-check.m4: Likewise.
43636 * m4/jm-macros.m4: Likewise.
43637 * m4/strftime.m4: Likewise.
43639 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
43640 AC_CHECK_DECLS, now that autoconf requires that.
43642 2000-05-22 Jim Meyering <meyering@lucent.com>
43644 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43645 * m4/lstat.m4: Likewise.
43647 2000-05-22 Jim Meyering <meyering@lucent.com>
43649 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
43651 2000-05-20 Jim Meyering <meyering@lucent.com>
43653 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
43654 (jm_PREREQ): Use it.
43656 2000-05-18 Jim Meyering <meyering@lucent.com>
43658 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
43659 back, too, since it may have been modified by allocate_entry.
43660 (hash_delete): Rewrite to use neither the assignment operator
43661 nor the comma operator in an if-expression.
43663 2000-05-15 Paul Eggert <eggert@twinsun.com>
43666 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
43667 Remove; no longer needed.
43668 "quotearg.h": Add include.
43669 (file_name): Do not bother to explicitly initialize to NULL; it's less
43670 efficient on some hosts.
43671 (close_stdout_status): Remove test as to whether stdout was already
43672 closed; it breaks for the case "echo x | sort >&-".
43673 Quote file name colons.
43674 Do not assume that _("write error") lacks format strings.
43676 2000-05-15 Jim Meyering <meyering@lucent.com>
43678 * lib/version-etc.c (version_etc_copyright): Update the copyright
43679 string used in all --version output.
43681 2000-05-14 Jim Meyering <meyering@lucent.com>
43683 * lib/closeout.c (close_stdout_set_file_name): New function.
43684 (close_stdout_status): Use new file-scoped global.
43685 Return right away if fstat says the stdout file descriptor is invalid.
43686 * lib/closeout.h (close_stdout_set_file_name): Declare.
43688 2000-05-10 Jim Meyering <meyering@lucent.com>
43690 * lib/closeout.c [default_exit_status]: New file-scoped variable.
43691 (close_stdout_set_status): New function.
43692 * lib/closeout.h (close_stdout_set_status): Declare.
43694 2000-05-09 Jim Meyering <meyering@lucent.com>
43696 * m4/gettext.m4: Rename this...
43697 * m4/libintl.m4: ...to this.
43699 2000-05-08 Jim Meyering <meyering@lucent.com>
43701 * lib/long-options.c: Don't include closeout.h.
43702 (parse_long_options): Don't call close_stdout for --version.
43704 2000-05-06 Paul Eggert <eggert@twinsun.com>
43706 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
43707 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
43708 2.1.3 bug. This avoids a clash when files like regex.c define
43711 2000-05-06 Jim Meyering <meyering@lucent.com>
43713 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
43714 (AC_REPLACE_FUNCS): Add strnlen.
43716 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
43717 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
43719 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
43720 AC_SEARCH_LIBS call for nanosleep.
43721 (LIB_NANOSLEEP): Set and AC_SUBST.
43723 2000-05-06 Jim Meyering <meyering@lucent.com>
43725 * lib/strnlen.c: Undefine __strnlen and strnlen.
43726 [!weak_alias]: Define __strnlen to strnlen.
43728 * lib/atexit.c: New file, from libiberty.
43730 2000-05-06 Jim Meyering <meyering@lucent.com>
43732 * lib/closeout.c (close_stdout_status): Also check for errors on the
43735 2000-05-05 Jim Meyering <meyering@lucent.com>
43737 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
43738 AC_SEARCH_LIBS call for clock_gettime.
43739 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
43741 * m4/search-libs.m4: Update from autoconf.
43743 su doesn't work on Solaris 2.6.
43744 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
43745 <shadow.h>. Reported by Dragos Harabor.
43747 2000-05-05 Bruno Haible <haible@clisp.cons.org>
43749 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
43750 memcpy instead of xmalloc, xrealloc, path_concat.
43751 (locale_charset): Treat empty environment variables as absent.
43752 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
43754 2000-05-04 Jim Meyering <meyering@lucent.com>
43756 * lib/getopt.c: Update from glibc.
43757 * lib/obstack.c: Likewise.
43758 * lib/obstack.h: Likewise.
43759 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
43762 * lib/regex.h: Likewise.
43763 * lib/strndup.c: Likewise.
43764 * lib/strnlen.c: New file, from glibc.
43766 2000-05-03 Jim Meyering <meyering@lucent.com>
43768 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
43770 2000-05-02 Paul Eggert <eggert@twinsun.com>
43772 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
43773 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
43774 compile-time test, rather than inspecting host and OS, to
43775 decide whether to define _LARGEFILE_SOURCE.
43777 2000-05-01 Jim Meyering <meyering@lucent.com>
43779 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
43781 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
43782 Based on a patch from Bruno Haible.
43784 2000-05-01 Jim Meyering <meyering@lucent.com>
43786 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
43788 2000-04-29 Jim Meyering <meyering@lucent.com>
43790 * lib/path-concat.c: Declare strdup only if it's not defined.
43791 * lib/canon-host.c: Likewise.
43793 2000-04-28 Jim Meyering <meyering@lucent.com>
43795 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
43796 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
43797 is included first, then limits.h is included by locale.h by libintl.h.
43798 From John David Anglin.
43800 2000-04-25 Jim Meyering <meyering@lucent.com>
43802 * lib/makepath.c (S_IRWXUGO): Define.
43803 (make_path): Always perform explicit chmod if MODE specifies any
43804 of the `special' permission bits. Prompted by a bug report against
43805 install from Mate Wierdl and Joost van Baal.
43807 2000-04-18 Jim Meyering <meyering@lucent.com>
43809 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
43810 (jm_PREREQ): Use it.
43812 2000-04-18 Jim Meyering <meyering@lucent.com>
43814 * lib/README: New file.
43816 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
43817 getpagesize. For BeOS. Based on a patch from Bruno Haible.
43819 2000-04-17 Jim Meyering <meyering@lucent.com>
43822 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
43823 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
43824 Suggestion from Akim Demaille.
43826 2000-04-17 Jim Meyering <meyering@lucent.com>
43828 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
43829 the definition of it to rpl_strftime also defined-away the system's
43832 2000-04-15 Jim Meyering <meyering@lucent.com>
43834 Use `C' to denote so-called `contiguous' files, the same way
43836 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
43837 (ftypelet): Use S_ISCTG.
43838 From Michael Deutschmann.
43840 2000-04-14 Jim Meyering <meyering@lucent.com>
43842 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
43843 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
43846 2000-04-14 Jim Meyering <meyering@lucent.com>
43848 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
43850 2000-04-13 Jim Meyering <meyering@lucent.com>
43852 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
43853 AH_VERBATIM to insert required #ifndef into config.h.in.
43854 Suggestion from Akim Demaille.
43856 2000-04-12 Jim Meyering <meyering@lucent.com>
43858 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
43859 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
43860 Christian Krackowizer.
43862 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
43863 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
43864 (AC_SYS_LARGEFILE): Require.
43865 (AM_C_PROTOTYPES): Require.
43867 2000-04-08 Jim Meyering <meyering@lucent.com>
43869 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
43870 names don't conflict. Reported by Eli Zaretskii.
43872 2000-04-07 Jim Meyering <meyering@lucent.com>
43874 * lib/putenv.c: Move inclusion of errno.h so it follows that of
43875 sys/types.h, to work around system header problems on AIX 3.2.5.
43878 2000-04-07 Bruno Haible <haible@clisp.cons.org>
43880 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
43881 bug. Deal with the different error behavior of Irix iconv.
43883 2000-04-05 Paul Eggert <eggert@twinsun.com>
43885 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
43886 IRIX if the installer said otherwise.
43888 2000-04-05 Jim Meyering <meyering@lucent.com>
43890 Portability tweaks required for ultrix4.3.
43891 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
43892 (jm_CHECK_DECLS): Add getutent to the list of functions.
43893 (_jm_DECL_HEADERS): Add utmpx.h.
43894 From John David Anglin.
43896 * m4/strftime.m4: Back out the 2000-04-02 change.
43897 Instead of that change, simply undefine putenv in the test program.
43899 2000-04-05 Jim Meyering <meyering@lucent.com>
43901 Portability tweaks required for ultrix4.3.
43902 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
43904 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
43905 * lib/canon-host.c: Declare strdup.
43906 * lib/path-concat.c: Likewise.
43907 From John David Anglin.
43909 2000-04-04 Jim Meyering <meyering@lucent.com>
43911 Be more DOS 8.3-friendly.
43912 * lib/ref-add.sin: Renamed from ref-add.sed.in.
43913 * lib/ref-del.sin: Renamed from ref-del.sed.in.
43914 * lib/Makefile.am: Reflect renaming.
43915 Reported by Eli Zaretskii.
43917 Use a temporary file name that won't clash with `charset.alias'
43918 in the DOS 8.3 name space.
43919 * lib/Makefile.am (charset_tmp): Define.
43920 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
43921 (uninstall-local): Likewise.
43922 Reported by Eli Zaretskii.
43924 2000-04-03 Jim Meyering <meyering@lucent.com>
43926 * m4/gettext.m4: Fix typo in comment.
43928 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
43929 textutils/configure.in). Suggestion from Paul Eggert.
43930 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
43932 2000-04-02 Paul Eggert <eggert@twinsun.com>
43934 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
43935 variable in the shell rather than using putenv, which isn't
43936 portable. This avoids the configure-time inter-test dependency
43937 on the potentially-renamed putenv function.
43939 2000-03-30 Paul Eggert <eggert@twinsun.com>
43941 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
43942 before checking struct stat.st_blksize, so that
43943 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
43945 2000-03-29 Paul Eggert <eggert@twinsun.com>
43947 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
43948 since strftime.c uses HAVE_STRFTIME to decide whether to use
43949 the underlying strftime.
43951 2000-03-29 Paul Eggert <eggert@twinsun.com>
43953 * lib/time/strftime.c (my_strftime): Make sure we call the system
43954 strftime, not ourselves, when invoking the underlying strftime.
43956 2000-03-24 Jim Meyering <meyering@lucent.com>
43958 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
43959 (charset_alias): Define.
43960 (install-exec-local): Factor out common code.
43961 (uninstall-local): Split lines longer than 80.
43962 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
43963 (SUFFIXES): Define.
43964 (.sed.in.sed): New rule. Don't redirect directly to $@.
43965 (CLEANFILES): Add ref-add.sed and ref-del.sed.
43967 2000-03-19 Bruno Haible <haible@clisp.cons.org>
43969 * lib/config.charset: Output a line containing "Packages using this
43971 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
43972 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
43973 ref-del.sed): New rules.
43975 2000-03-17 Jim Meyering <meyering@lucent.com>
43977 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
43978 Otherwise, include <strings.h>
43980 2000-03-17 Bruno Haible <haible@clisp.cons.org>
43982 * lib/unicodeio.c (utf8_wctomb): New function.
43983 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
43984 format instead of in UCS-4 with platform dependent endianness.
43986 2000-03-10 Jim Meyering <meyering@lucent.com>
43988 * m4/lib-check.m4: Look for getspnam in -lgen, too.
43989 From Marco Franzen.
43991 2000-03-07 Paul Eggert <eggert@twinsun.com>
43993 * lib/savedir.c (savedir): Work even if directory size is
43994 negative; this can happen with some screwy NFS configurations.
43996 2000-03-06 Jim Meyering <meyering@lucent.com>
43998 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
43999 if it's NULL (because we ran out of memory). From Bruno Haible.
44001 2000-03-05 Jim Meyering <meyering@lucent.com>
44003 * lib/localcharset.c ("path-concat.h"): Include.
44004 (get_charset_aliases): Use path_concat instead of ANSI string
44007 * lib/unicodeio.h (PARAMS): Define.
44008 Use it to guard prototype.
44010 2000-03-04 Jim Meyering <meyering@lucent.com>
44012 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
44013 for lib/localcharset.c.
44015 2000-03-04 Jim Meyering <meyering@lucent.com>
44017 * lib/Makefile.am (install-exec-local): Create $(libdir) before
44018 installing into it.
44019 (uninstall-local): Uncomment this rule so `make distcheck' works
44022 * lib/unicodeio.c (<errno.h>): Include it.
44023 (errno): Declare if not defined.
44025 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
44027 * lib/config.charset: New version, incorporating remarks from a linux
44028 i18n mailing list. From Bruno Haible.
44030 2000-03-04 Bruno Haible <haible@clisp.cons.org>
44032 * m4/codeset.m4: New file.
44033 * m4/iconv.m4: New file.
44034 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
44036 2000-03-03 Jim Meyering <meyering@lucent.com>
44038 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
44040 2000-03-02 Jim Meyering <meyering@lucent.com>
44042 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
44043 the messages come out on separate lines.
44045 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
44046 rather than jm_CHECK_DECLARATIONS.
44047 * m4/decl.m4: Remove now-unused file.
44049 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
44052 2000-03-02 Jim Meyering <meyering@lucent.com>
44054 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
44056 2000-03-01 Jim Meyering <meyering@lucent.com>
44058 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
44059 * lib/unicodeio.c: Likewise.
44061 2000-03-01 Bruno Haible <haible@clisp.cons.org>
44063 * lib/config.charset: New file.
44064 * lib/localcharset.c: New file.
44065 * lib/unicodeio.h, lib/unicodeio.c: New files.
44066 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
44067 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
44068 (noinst_HEADERS): Add unicodeio.h.
44069 (all-local, install-exec-local, charset.alias): New targets.
44071 2000-02-28 Paul Eggert <eggert@twinsun.com>
44073 * lib/quotearg.c (ALERT_CHAR): New macro.
44074 (quotearg_buffer_restyled): Use it.
44076 2000-02-27 Jim Meyering <meyering@lucent.com>
44078 * m4/check-decl.m4: Add getenv to the list.
44080 2000-02-27 Jim Meyering <meyering@lucent.com>
44082 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
44083 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
44085 * lib/backupfile.c: Guard inclusion of stdlib.h with
44086 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
44087 Declare malloc if needed.
44089 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
44090 `#ifndef HAVE_DECL..'
44091 now that autoconf always defines the HAVE_DECL_ symbols.
44092 * lib/human.c: Likewise.
44093 * lib/same.c: Likewise.
44094 * lib/strtoumax.c: Likewise.
44096 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
44097 declaration check was not run.
44098 * lib/hash.c: Likewise.
44099 * lib/human.c: Likewise.
44100 * lib/same.c: Likewise.
44101 * lib/strtoumax.c: Likewise.
44103 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
44104 `.', then first look up the entire `.'-containing string as a login
44107 2000-02-23 Jim Meyering <meyering@lucent.com>
44109 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
44110 in place of my hack.
44112 2000-02-18 Paul Eggert <eggert@twinsun.com>
44114 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
44115 (textint): New typedef.
44116 (parser_control): Member year changed from int to textint.
44118 (YYSTYPE): Removed; replaced by %union with int and textint members.
44119 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
44120 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
44121 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
44122 (tSNUMBER, tUNUMBER): Now of type <textintval>.
44123 (date, number, to_year): Use width of number in digits, not its value,
44124 to determine whether it's a 2-digit year, or a 2-digit time.
44125 (yylex): Store number of digits of numeric tokens.
44126 Reported by John Kendall.
44128 (parser_control): Changed from struct parser_control to typedef (for
44129 consistency). All uses changed.
44131 (tID): Removed; not used.
44132 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
44134 2000-02-14 Paul Eggert <eggert@twinsun.com>
44136 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
44137 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
44139 2000-02-12 Jim Meyering <meyering@lucent.com>
44141 * lib/userspec.c (ISDIGIT): Define it.
44142 (isdigit): Remove definition.
44143 (is_number): Use ISDIGIT, not isdigit.
44144 <libintl.h>: Include.
44145 (_ and N_): Define.
44146 (parse_user_spec): Mark translatable strings.
44148 2000-02-10 Jim Meyering <meyering@lucent.com>
44150 With these changes, nanosleep.[ch] are finally enough like the other
44151 lib/* replacement files to compile on a few more losing systems.
44153 * lib/nanosleep.h: Don't include config.h.
44154 Remove prototype from declaration of nanosleep.
44155 (PARAMS): Remove now-unneeded definition.
44156 * lib/nanosleep.c: #undef nanosleep.
44157 (rpl_nanosleep): Rename from nanosleep.
44159 2000-02-10 Jim Meyering <meyering@lucent.com>
44161 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
44162 gnu_nanosleep to rpl_nanosleep.
44164 2000-02-09 Jim Meyering <meyering@lucent.com>
44166 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
44167 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
44169 2000-02-08 Akim Demaille <akim@epita.fr>
44171 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
44172 `[' and `]' and remove uses of `changequote'.
44173 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
44174 (AC_SYS_LARGEFILE): Likewise.
44175 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44176 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
44178 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
44179 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
44180 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
44181 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
44183 2000-02-05 Jim Meyering <meyering@lucent.com>
44185 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
44186 Remove explicit use of AC_HEADER_TIME. It is required by
44187 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
44188 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
44189 in autoconf whereby the expansion of the latter ended up preceding
44190 the expansion of its prerequisite, AC_HEADER_TIME.
44191 Reported by Volker Borchert.
44193 2000-02-03 Jim Meyering <meyering@lucent.com>
44195 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
44197 2000-02-03 Jim Meyering <meyering@lucent.com>
44199 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
44200 rather than with `#if HAVE_UTMPNAME'.
44202 2000-02-02 Jim Meyering <meyering@lucent.com>
44204 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
44205 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
44206 Reported by Eli Zaretskii.
44208 2000-02-01 Jim Meyering <meyering@lucent.com>
44210 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
44212 2000-01-31 Jim Meyering <meyering@lucent.com>
44214 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
44215 functions. Add the time.h and sys/time.h headers along with the
44216 AC_REQUIRE'ment of AC_HEADER_TIME.
44218 2000-01-31 Jim Meyering <meyering@lucent.com>
44220 * lib/nanosleep.h (nanosleep): Guard declaration with
44221 `#if ! HAVE_DECL_NANOSLEEP'.
44222 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
44223 the declaration in that vendor's sys/timers.h.
44224 Reported by Christian Krackowizer.
44226 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
44227 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
44228 (ISPRINT): Likewise.
44229 Reported by Tom Tromey.
44231 2000-01-30 Jim Meyering <meyering@lucent.com>
44233 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
44235 * m4/prereq.m4 (utmp_includes): Define.
44236 Check for ut_user and ut_name members in both struct utmpx
44239 2000-01-30 Jim Meyering <meyering@lucent.com>
44241 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
44242 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
44243 header files where only utmpx.ut_user is declared.
44245 * lib/readutmp.h (UT_USER): Define.
44247 2000-01-29 Jim Meyering <meyering@lucent.com>
44249 * m4/lib-check.m4: New file containing library-related checks from
44250 fileutils and sh-utils (textutils had none).
44252 2000-01-28 Jim Meyering <meyering@lucent.com>
44254 * m4/perl.m4: Change format of warning message to look more like that
44255 from the missing script. Suggestion from François Pinard.
44257 2000-01-25 Jim Meyering <meyering@lucent.com>
44259 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
44260 well as time.h in the compile check.
44261 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
44262 Fix typo in cross-compiling case: s/yes/no/.
44264 2000-01-23 Jim Meyering <meyering@lucent.com>
44266 * m4/jm-macros.m4: Move df-related tests here from
44267 fileutils/configure.in
44269 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
44270 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
44272 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
44273 s/space/ac_fsusage_space/.
44274 (jm_FILE_SYSTEM_USAGE): Take two parameters.
44276 * m4/ftruncate.m4: New file (derived from part of
44277 fileutils/configure.in).
44278 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
44279 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
44281 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
44282 AC_SUBST these here, rather than just in sh-util/configure.in, so
44283 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
44285 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
44286 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
44287 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
44288 (AC_SUBST(POW_LIBM)): Likewise.
44289 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
44291 2000-01-23 Jim Meyering <meyering@lucent.com>
44293 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
44296 2000-01-22 Jim Meyering <meyering@lucent.com>
44298 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
44300 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
44302 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
44304 (AC_CHECK_HEADERS): Likewise for sh-utils.
44305 (AC_CHECK_HEADERS): Likewise for textutils.
44306 Merge the three lists of headers.
44308 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
44309 from fileutils' configure.in.
44311 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
44312 code. Moved tests into their own function (_jm_DECL_HEADERS) in
44315 * m4/check-decl.m4: Use #if rather than #ifdef.
44316 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
44317 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
44318 (_jm_DECL_HEADERS): Define new function.
44319 (jm_CHECK_DECLARATIONS): Require it.
44321 2000-01-22 Jim Meyering <meyering@lucent.com>
44323 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
44324 [! HAVE_DECL_STRTOULL]: Declare strtoull.
44325 Required for some AIX systems. Reported by Christian Krackowizer.
44326 [TESTING] (main): New function.
44328 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
44329 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
44332 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
44335 * lib/strverscmp.c (ISDIGIT): Define.
44336 (strverscmp): Use ISDIGIT, not isdigit.
44338 2000-01-19 Jim Meyering <meyering@lucent.com>
44340 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
44341 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
44342 defines `struct timespec' in <sys/time.h>
44344 * m4/c-bs-a.m4: Remove uses of changequote altogether.
44345 Thanks to Akim for explaining.
44347 2000-01-17 Paul Eggert <eggert@twinsun.com>
44349 * lib/nanosleep.c (nanosleep):
44350 Don't use SA_INTERRUPT to decide whether to call sigaction, as
44351 POSIX.1 doesn't require SA_INTERRUPT and some systems
44352 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
44353 it's been part of POSIX.1 since day 1 (in 1988).
44355 2000-01-17 Jim Meyering <meyering@lucent.com>
44357 * lib/interlock: Remove unused file. Reported by François Pinard.
44359 2000-01-16 Paul Eggert <eggert@twinsun.com>
44361 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
44362 alert, backslash, formfeed, and vertical tab unnecessarily in
44363 shell quoting style.
44365 2000-01-16 Jim Meyering <meyering@lucent.com>
44367 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
44368 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
44369 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
44370 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
44372 2000-01-16 Jim Meyering <meyering@lucent.com>
44374 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
44375 because the latter didn't work.
44377 2000-01-15 Jim Meyering <meyering@lucent.com>
44379 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
44380 (AC_REPLACE_FUNCS): Add memcpy and memset.
44381 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
44383 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
44385 2000-01-12 Jim Meyering <meyering@lucent.com>
44387 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
44388 (jm_PREREQ): Use it.
44389 (jm_PREREQ_READUTMP): New macro.
44390 (jm_PREREQ): Use it.
44392 2000-01-11 Paul Eggert <eggert@twinsun.com>
44394 Quote multibyte characters correctly.
44395 * m4/c-bs-a.m4: New file.
44396 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
44397 (jm_PREREQ): Use it.
44399 2000-01-11 Paul Eggert <eggert@twinsun.com>
44401 * m4/uintmax_t.m4: Port to autoconf 2.13.
44403 2000-01-08 Jim Meyering <meyering@ascend.com>
44405 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
44406 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
44408 2000-01-04 Jim Meyering <meyering@ascend.com>
44410 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
44411 jm_STRUCT_DIRENT_D_TYPE.
44412 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
44413 jm_STRUCT_DIRENT_D_INO.
44414 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
44416 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
44418 * m4/utime.m4: Likewise.
44420 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
44421 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
44423 2000-01-03 Paul Eggert <eggert@twinsun.com>
44425 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
44426 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
44428 2000-01-02 Jim Meyering <meyering@ascend.com>
44430 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
44431 remember if this is necessary.
44433 1999-12-26 Jim Meyering <meyering@ascend.com>
44435 * m4/jm-macros.m4: Use it here.
44436 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
44438 1999-12-23 Jim Meyering <meyering@ascend.com>
44440 * m4/jm-macros.m4: Check for clock_gettime (moved from
44441 fileutils/configure.in)
44442 Check for gettimeofday.
44444 1999-12-20 Jim Meyering <meyering@ascend.com>
44446 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
44447 autoconf-2.14a-1999-12-20.
44449 1999-12-19 Jim Meyering <meyering@ascend.com>
44451 * m4/lstat-slash.m4: New file.
44452 * m4/jm-macros.m4: Use the new macro:
44453 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44455 1999-12-07 Jim Meyering <meyering@ascend.com>
44457 * m4/perl.m4: Require that File::Compare be available, too.
44458 Too many systems seem to lack it.
44460 * m4/strftime.m4: Add checks for most of the cpp macros tested in
44461 GNU's strftime.c. Prompted by a patch from Paul Eggert.
44463 1999-11-18 Paul Eggert <eggert@twinsun.com>
44465 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
44466 problem with the QNX 4.25 shell, which doesn't propagate exit
44467 status of failed commands inside shell assignments.
44469 1999-11-17 Jim Meyering <meyering@ascend.com>
44471 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
44473 1999-11-07 Jim Meyering <meyering@ascend.com>
44475 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
44477 1999-11-06 Jim Meyering <meyering@ascend.com>
44479 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
44480 * m4/jm-macros.m4 (jm_MACROS): Use it here.
44482 1999-11-05 Jim Meyering <meyering@ascend.com>
44484 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
44485 configure.in of textutils, fileutils, and sh-utils into this one
44486 (shared between those packages) file.
44487 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
44488 AC_STRUCT_ST_BLKSIZE.
44490 1999-11-03 Jim Meyering <meyering@ascend.com>
44492 * m4/ssize_t.m4: Remove file. No longer needed since the new version
44493 of AC_CHECK_TYPE checks includes unistd.h.
44494 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
44495 Suggestion from Akim Demaille.
44497 1999-10-30 Jim Meyering <meyering@ascend.com>
44499 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
44501 * m4/ls-mntd-fs.m4: Likewise.
44502 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
44503 * m4/jm-winsz1.m4: Likewise.
44505 * m4/const.m4: Remove file, since the fix made it into the experimental
44506 version of autoconf.
44507 * m4/mktime.m4: Likewise.
44509 * m4/check-type.m4: Remove file, now that the latest version of
44510 AC_CHECK_TYPE takes a third arg to specify additional #includes.
44512 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
44513 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
44516 1999-10-04 Jim Meyering <meyering@ascend.com>
44518 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
44520 1999-09-22 Paul Eggert <eggert@twinsun.com>
44522 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
44523 2.95.1 bug with HP-UX 10.20.
44525 1999-09-17 Jim Meyering <meyering@ascend.com>
44527 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
44528 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
44529 due to missing strdup (against sh-utils-2.0).
44531 1999-08-29 Jim Meyering <meyering@ascend.com>
44533 * m4/jm-macros.m4: Require jm_BISON.
44534 * m4/bison.m4: New file.
44536 1999-08-17 Paul Eggert <eggert@twinsun.com>
44538 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
44539 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
44541 1999-08-05 Jim Meyering <meyering@ascend.com>
44543 * m4/getline.m4: Rename test file from conftestdata to conftest.data
44544 to avoid conflicts with `conftest' on 8+3 filesystems.
44545 Suggestion from Eli Zaretskii.
44547 1999-08-04 Jim Meyering <meyering@ascend.com>
44549 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
44550 fileutils and sh-utils (textutils's getline test was inadequate).
44551 (AM_FUNC_GETLINE): Run this test.
44552 (AC_CHECK_FUNCS): Check for getdelim.
44553 Reported by Bob Proulx.
44555 1999-08-02 Jim Meyering <meyering@ascend.com>
44557 * m4/jm-macros.m4: Add a comment.
44559 1999-08-01 Paul Eggert <eggert@twinsun.com>
44561 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
44562 <inttypes.h> defines strtoumax as a macro (and not as a
44565 1999-08-01 Paul Eggert <eggert@twinsun.com>
44567 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
44568 that we can shift, multiply and divide unsigned long long
44569 values; Ultrix cc can't do it.
44571 1999-08-01 Paul Eggert <eggert@twinsun.com>
44573 * m4/mktime.m4: New file, which is a preview of what should appear
44574 in the next public autoconf release.
44576 1999-08-01 Paul Eggert <eggert@twinsun.com>
44578 * m4/lfs.m4: Remove this file.
44579 * m4/largefile.m4: New file. It contains the old contents of
44580 lfs.m4, except that all names with prefix AC_LFS have been
44581 changed to use the prefix AC_SYS_LARGEFILE instead, to be
44582 compatible with future autoconf versions. Also, some minor m4
44583 quoting problems have been fixed.
44585 1999-08-01 Paul Eggert <eggert@twinsun.com>
44587 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
44588 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
44589 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
44590 and simplify the shell code.
44592 1999-08-01 Jim Meyering <meyering@ascend.com>
44594 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
44597 1999-07-20 Jim Meyering <meyering@ascend.com>
44599 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
44601 1999-07-15 Jim Meyering <meyering@ascend.com>
44603 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
44605 1999-05-22 Jim Meyering <meyering@ascend.com>
44607 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
44609 1999-05-20 Jim Meyering <meyering@ascend.com>
44611 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
44612 Add a colon after each `then' in case $4 is empty.
44614 1999-05-16 Jim Meyering <meyering@ascend.com>
44616 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
44618 1999-05-10 Jim Meyering <meyering@ascend.com>
44620 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
44622 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
44625 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
44627 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
44629 1999-05-04 Paul Eggert <eggert@twinsun.com>
44631 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
44632 not CPPFLAGS, so that linking works correctly in IRIX.
44634 1999-04-30 Paul Eggert <eggert@twinsun.com>
44636 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
44638 1999-04-20 Paul Eggert <eggert@twinsun.com>
44640 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
44641 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
44642 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
44643 jm_AC_TYPE_UNSIGNED_LONG_LONG.
44644 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
44646 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
44648 1999-04-20 Jim Meyering <meyering@ascend.com>
44650 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
44651 AC_REPLACE xstroull if necessary. From Paul Eggert.
44652 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
44654 1999-04-18 Jim Meyering <meyering@ascend.com>
44656 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
44657 * m4/jm-macros.m4: Use it.
44659 1999-04-06 Jim Meyering <meyering@ascend.com>
44661 * m4/strftime.m4: Remove test for %f.
44663 1999-03-29 Jim Meyering <meyering@ascend.com>
44665 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
44666 superset of the AC_TYPE_* checks in the textutils, fileutils,
44667 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
44670 1999-03-28 Jim Meyering <meyering@ascend.com>
44672 * m4/jm-macros.m4: Define GNU_PACKAGE here.
44673 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
44674 replaced e.g., in the *.sh files of the sh-utils.
44676 1999-03-20 Jim Meyering <meyering@ascend.com>
44678 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
44679 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
44680 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
44682 1999-03-19 Jim Meyering <meyering@ascend.com>
44684 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
44686 1999-03-12 Jim Meyering <meyering@ascend.com>
44688 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
44690 1999-03-07 Jim Meyering <meyering@ascend.com>
44692 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
44695 1999-02-17 Jim Meyering <meyering@ascend.com>
44697 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
44698 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
44700 1999-02-07 Jim Meyering <meyering@ascend.com>
44702 * m4/group-member.m4: New file -- extracted from sh-utils'
44705 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
44706 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
44708 1999-02-06 Jim Meyering <meyering@ascend.com>
44710 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
44711 * m4/fnmatch.m4: Likewise.
44712 * m4/getgroups.m4: Likewise.
44713 * m4/lstat.m4: Likewise.
44714 * m4/malloc.m4: Likewise.
44715 * m4/putenv.m4: Likewise.
44716 * m4/realloc.m4: Likewise.
44717 * m4/regex.m4: Likewise.
44718 * m4/stat.m4: Likewise.
44719 * m4/strftime.m4: Likewise.
44720 Suggestion from Alain Magloire.
44722 * m4/chown.m4: Use `.$ac_objext', not `.o'.
44723 * m4/fnmatch.m4: Likewise.
44724 * m4/getgroups.m4: Likewise.
44725 * m4/getline.m4: Likewise.
44726 * m4/lstat.m4: Likewise.
44727 * m4/malloc.m4: Likewise.
44728 * m4/memcmp.m4: Likewise.
44729 * m4/putenv.m4: Likewise.
44730 * m4/realloc.m4: Likewise.
44731 * m4/regex.m4: Likewise.
44732 * m4/stat.m4: Likewise.
44733 * m4/strftime.m4: Likewise.
44734 Suggestion from Alain Magloire.
44736 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
44739 * m4/regex.m4: Add a run-time Test for proper operation of
44740 re_compile_pattern.
44742 1999-01-31 Jim Meyering <meyering@ascend.com>
44744 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
44746 1999-01-30 Jim Meyering <meyering@ascend.com>
44748 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
44750 * m4/jm-mktime.m4: Make this a wrapper around the official
44751 AM_FUNC_MKTIME rather than my private copy, now that the official one
44753 * m4/mktime.m4: Remove file.
44755 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
44756 * m4/uptime.m4: Likewise.
44757 * m4/uintmax_t.m4: Likewise.
44759 1999-01-28 Jim Meyering <meyering@ascend.com>
44761 * m4/jm-macros.m4: Use jm_AFS.
44762 * m4/afs.m4: New file (from fileutils' configure.in).
44764 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
44765 * m4/chown.m4: Likewise.
44766 * m4/d-ino.m4: Likewise.
44767 * m4/d-type.m4: Likewise.
44768 * m4/fnmatch.m4: Likewise.
44769 * m4/getgroups.m4: Likewise.
44770 * m4/gettext.m4: Likewise.
44771 * m4/jm-mktime.m4: Likewise.
44772 * m4/jm-winsz2.m4: Likewise.
44773 * m4/lcmessage.m4: Likewise.
44774 * m4/ls-mntd-fs.m4: Likewise.
44775 * m4/malloc.m4: Likewise.
44776 * m4/memcmp.m4: Likewise.
44777 * m4/putenv.m4: Likewise.
44778 * m4/realloc.m4: Likewise.
44779 * m4/st_mtim.m4: Likewise.
44780 * m4/strftime.m4: Likewise.
44782 1999-01-16 Jim Meyering <meyering@ascend.com>
44784 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
44785 (ARGMATCH_DIE_DECL): Define.
44787 1999-01-12 Jim Meyering <meyering@ascend.com>
44789 * m4/Makefile.am.in: Rewrite to avoid using fmt.
44790 Reported by Lars Hecking.
44792 1999-01-10 Jim Meyering <meyering@ascend.com>
44794 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
44796 * m4/inttypes_h.m4: Likewise.
44797 * m4/lstat.m4: Likewise.
44798 * m4/malloc.m4: Likewise.
44799 * m4/readdir.m4: Likewise.
44800 * m4/realloc.m4: Likewise.
44801 * m4/st_dm_mode.m4: Likewise.
44802 * m4/stat.m4: Likewise.
44803 * m4/utimbuf.m4: Likewise.
44804 * m4/utimes.m4: Likewise.
44806 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
44807 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
44808 comments in config.h.in are meaningful.
44810 * m4/jm-macros.m4: Require autoconf-2.13 here.
44812 * m4/regex.m4: By default, don't use the included regex.c on systems
44813 with glibc 2. Suggestion from Uli Drepper.
44815 1999-01-02 Jim Meyering <meyering@ascend.com>
44817 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
44819 1998-12-18 Jim Meyering <meyering@ascend.com>
44821 * m4/Makefile.am.in (Makefile.am): Simplify rule.
44822 Based on a suggestion from Lars Hecking.
44824 1998-11-16 Paul Eggert <eggert@twinsun.com>
44826 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
44828 1998-11-16 Jim Meyering <meyering@ascend.com>
44830 * m4/lfs.m4: Double-quote the `uname...` expression.
44832 1998-11-14 Jim Meyering <meyering@ascend.com>
44834 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
44835 * m4/stat.m4: Likewise.
44837 1998-11-03 Jim Meyering <meyering@ascend.com>
44839 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
44840 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
44842 1998-10-18 Jim Meyering <meyering@ascend.com>
44844 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
44846 1998-10-17 Jim Meyering <meyering@ascend.com>
44848 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
44849 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
44850 calls for those previously hard-coded headers. Instead, take a new
44852 (jm_CHECK_DECLARATIONS): Reflect interface change.
44853 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
44854 (jm_CHECK_DECL_LOCALTIME_R): New macro.
44856 * m4/mktime.m4: Test for spring-forward gap before long-running test.
44858 1998-10-14 Jim Meyering <meyering@ascend.com>
44860 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
44861 instead of "TZ=America/Vancouver". From Paul Eggert.
44863 1998-10-11 Jim Meyering <meyering@ascend.com>
44865 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
44866 This adds a test for a recently added compatibility fix for mktime.c.
44867 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
44869 1998-09-27 Jim Meyering <meyering@ascend.com>
44871 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
44873 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
44874 ../configure.in, including a change from Gordon Matzigkeit to allow
44875 cross-compiling for the Hurd.
44877 * m4/glibc.m4: New file/macro to test for the GNU C Library
44878 versions 1 and 2. From Gordon Matzigkeit.
44881 1998-09-21 Jim Meyering <meyering@ascend.com>
44883 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
44885 1998-08-18 Paul Eggert <eggert@twinsun.com>
44887 Port nanosecond-resolution times to UnixWare 2.1.2 and
44888 pedantic Solaris 2.6.
44890 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
44892 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
44893 Generate name of ns member, instead of just 1 or undef.
44894 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
44896 1998-08-15 Jim Meyering <meyering@ascend.com>
44898 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
44899 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
44900 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
44901 instead of jm_TYPE_SSIZE_T.
44903 1998-08-12 Jim Meyering <meyering@ascend.com>
44905 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
44907 1998-08-02 Jim Meyering <meyering@ascend.com>
44909 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
44910 in acconfig.h manually.
44912 1998-07-31 Paul Eggert <eggert@twinsun.com>
44914 * m4/st_mtim.m4: New file.
44916 1998-07-28 Jim Meyering <meyering@ascend.com>
44918 * m4/utimes.m4: Undef stat.
44920 1998-07-25 Jim Meyering <meyering@ascend.com>
44922 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
44923 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
44925 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
44927 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
44928 uid and gid actually remain unchanged.
44930 1998-07-07 Jim Meyering <meyering@ascend.com>
44932 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
44934 1998-07-04 Jim Meyering <meyering@ascend.com>
44936 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
44937 to prove that this macro can be used in packages without regex.c.
44939 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
44941 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
44944 1998-07-03 Jim Meyering <meyering@ascend.com>
44946 * m4/gettext.m4: Add -lintl if it's found to be necessary.
44948 * m4/gettext.m4: New file -- from gettext-0.10.35.
44949 * m4/lcmessage.m4: Likewise.
44950 * m4/progtest.m4: Likewise.
44952 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
44953 * m4/jm-macros.m4: Require the new macro.
44955 1998-06-29 Jim Meyering <meyering@ascend.com>
44957 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
44958 for the definition of NGROUPS (used in a system header included
44961 1998-06-28 Jim Meyering <meyering@ascend.com>
44963 * m4/ls-mntd-fs.m4: New file.
44964 * m4/fstypename.m4: New file.
44966 * m4/jm-macros.m4: Require the new macro.
44967 * m4/jm-glibc-io.m4: New file.
44969 1998-05-19 Jim Meyering <meyering@ascend.com>
44971 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
44972 * m4/lchown.m4: New file.
44974 * m4/Makefile.am.in: New file.
44975 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
44977 1998-05-14 Jim Meyering <meyering@ascend.com>
44979 * m4/Makefile.am (EXTRA_DIST): Add them.
44980 * m4/jm-macros.m4: New file.
44981 * m4/utimbuf.m4: New file.
44983 1998-05-12 Jim Meyering <meyering@ascend.com>
44985 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
44987 1998-05-11 Jim Meyering <meyering@ascend.com>
44989 * m4/isc-posix.m4: New file.
44991 1998-05-10 Jim Meyering <meyering@ascend.com>
44993 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
44995 1998-05-09 Jim Meyering <meyering@ascend.com>
44997 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
44998 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
45001 * m4/ssize_t.m4: New file.
45002 * m4/mktime.m4: Remove file -- the new automake has this now.
45004 1998-04-26 Jim Meyering <meyering@ascend.com>
45006 * m4/assert.m4: New file.
45007 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
45009 1998-04-05 Jim Meyering <meyering@ascend.com>
45011 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
45012 (jm_PREREQ): Use it here.
45014 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
45016 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
45019 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
45021 * m4/prereq.m4: New file.
45022 * m4/error.m4: New file.
45023 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
45025 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
45027 * m4/getline.m4: Don't set am_cv_func_working_getline before the
45028 cache-check for the same variable -- that defeated the purpose of
45029 the test; the test program was never run. This was a problem only
45030 on systems with losing getline functions -- HP-UX 10.20 is one.
45031 Reported by Bjorn Helgaas.
45033 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
45035 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
45037 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
45039 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
45041 * m4/const.m4: New file. Use an initializer in this declaration
45042 typedef int charset[2]; const charset x;
45043 Reported by Bob Glickstein.
45045 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
45047 * m4/chown.m4: Fix reversed types on -1 args to chown.
45050 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
45052 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
45053 Add lseek and memchr.
45055 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
45056 T.E.Dickey <dickey@clark.net> said that some older preprocessors
45057 have a 20-character limit on names.
45059 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
45061 * m4/inttypes_h.m4: New file.
45062 * m4/uintmax_t.m4: New file.
45063 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
45072 Copyright (C) 1997-2008 Free Software Foundation, Inc.
45074 Copying and distribution of this file, with or without
45075 modification, are permitted provided the copyright notice
45076 and this notice are preserved.