1 2008-12-19 Bruno Haible <bruno@clisp.org>
3 New module 'mbsrtowcs'.
4 * lib/wchar.in.h (mbsrtowcs): New declaration.
5 * lib/mbsrtowcs.c: New file.
6 * m4/mbsrtowcs.m4: New file.
7 * modules/mbsrtowcs: New file.
8 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
10 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
12 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
14 2008-12-19 Bruno Haible <bruno@clisp.org>
17 * lib/wchar.in.h (mbrlen): New declaration.
18 * lib/mbrlen.c: New file.
19 * m4/mbrlen.m4: New file.
20 * modules/mbrlen: New file.
21 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
23 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
25 * doc/posix-functions/mbrlen.texi: Document the new module.
27 2008-12-19 Bruno Haible <bruno@clisp.org>
29 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
30 * modules/mbrtowc (Depends-on): Add verify.
31 Suggested by Paul Eggert.
33 2008-12-18 Bruno Haible <bruno@clisp.org>
35 * modules/mbsinit-tests: New file.
36 * tests/test-mbsinit.sh: New file.
37 * tests/test-mbsinit.c: New file.
39 2008-12-18 Bruno Haible <bruno@clisp.org>
41 * modules/mbrtowc-tests: New file.
42 * tests/test-mbrtowc1.sh: New file.
43 * tests/test-mbrtowc2.sh: New file.
44 * tests/test-mbrtowc3.sh: New file.
45 * tests/test-mbrtowc4.sh: New file.
46 * tests/test-mbrtowc.c: New file.
49 * lib/wchar.in.h (mbstate_t): Override when the system does not have
51 (mbrtowc): New declaration.
52 * lib/mbrtowc.c: New file.
53 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
54 * modules/mbrtowc: New file.
55 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
57 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
59 * doc/posix-functions/mbrtowc.texi: Document the new module.
61 2008-12-18 Bruno Haible <bruno@clisp.org>
64 * lib/wchar.in.h (wctob): New declaration.
65 * lib/wctob.c: New file.
66 * m4/wctob.m4: New file.
67 * modules/wctob: New file.
68 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
70 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
71 * doc/posix-functions/wctob.texi: Document the new module.
73 2008-12-18 Bruno Haible <bruno@clisp.org>
75 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
76 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
78 2008-12-18 Simon Josefsson <simon@josefsson.org>
80 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
81 G. Christensen" <tgc@jupiterrise.com>.
83 * lib/flock.c: Need to include errno.h. Reported by "Tom
84 G. Christensen" <tgc@jupiterrise.com>.
86 * lib/flock.c: Need to include string.h. Reported by "Tom
87 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
90 2008-12-18 Bruno Haible <bruno@clisp.org>
92 * m4/locale-ja.m4: New file, from GNU gettext.
94 2008-12-17 Bruno Haible <bruno@clisp.org>
96 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
97 Suggested by Eric Blake.
99 2008-12-17 Bruno Haible <bruno@clisp.org>
101 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
103 2008-12-17 Bruno Haible <bruno@clisp.org>
105 * lib/mbsinit.c: Include verify.h. Verify an assumption.
106 * modules/mbsinit (Depends-on): Add verify.
107 Suggested by Paul Eggert.
109 2008-12-17 Bruno Haible <bruno@clisp.org>
111 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
112 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
114 * m4/mbiter.m4 (gl_MBITER): LIkewise.
115 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
116 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
117 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
118 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
119 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
120 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
121 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
122 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
123 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
124 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
125 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
126 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
127 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
128 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
129 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
130 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
131 * modules/trim (configure.ac): Likewise.
133 2008-12-17 Bruno Haible <bruno@clisp.org>
135 * modules/btowc-tests: New file.
136 * tests/test-btowc1.sh: New file.
137 * tests/test-btowc2.sh: New file.
138 * tests/test-btowc.c: New file.
141 * lib/wchar.in.h (btowc): New declaration.
142 * lib/btowc.c: New file.
143 * m4/btowc.m4: New file.
144 * modules/btowc: New file.
145 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
147 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
148 * doc/posix-functions/btowc.texi: Document the new module.
150 2008-12-17 Bruno Haible <bruno@clisp.org>
152 New module 'mbsinit'.
153 * lib/wchar.in.h (mbsinit): New declaration.
154 * lib/mbsinit.c: New file.
155 * m4/mbsinit.m4: New file.
156 * modules/mbsinit: New file.
157 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
159 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
161 * doc/posix-functions/mbsinit.texi: Document the new module.
163 2008-12-16 Bruno Haible <bruno@clisp.org>
165 * lib/unistd.in.h: Add comment.
166 * tests/test-environ.c: Don't include <stdlib.h>.
168 2008-12-16 Bruno Haible <bruno@clisp.org>
170 * lib/parse-duration.h (parse_duration): Document return value
172 * lib/parse-duration.c: Include specification header first. Add
175 (parse_year_month_day, parse_hour_minute_second): Move side effects
176 outside of strchr call.
177 (parse_non_iso8601): Move side effects outside of isspace call.
178 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
181 2008-12-16 Bruno Haible <bruno@clisp.org>
183 * tests/test-parse-duration.sh: Produce no output when the test
186 2008-12-16 Bruno Haible <bruno@clisp.org>
188 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
191 2008-12-15 Bruno Haible <bruno@clisp.org>
193 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
194 * doc/glibc-functions/flistxattr.texi: Likewise.
195 * doc/glibc-functions/fopencookie.texi: Likewise.
196 * doc/glibc-functions/fremovexattr.texi: Likewise.
197 * doc/glibc-functions/fsetxattr.texi: Likewise.
198 * doc/glibc-functions/getxattr.texi: Likewise.
199 * doc/glibc-functions/lgetxattr.texi: Likewise.
200 * doc/glibc-functions/listxattr.texi: Likewise.
201 * doc/glibc-functions/llistxattr.texi: Likewise.
202 * doc/glibc-functions/lremovexattr.texi: Likewise.
203 * doc/glibc-functions/lsetxattr.texi: Likewise.
204 * doc/glibc-functions/removexattr.texi: Likewise.
205 * doc/glibc-functions/setxattr.texi: Likewise.
206 * doc/posix-functions/open_memstream.texi: Likewise.
208 2008-12-15 Eric Blake <ebb9@byu.net>
210 Update doc for cygwin 1.7.
211 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
213 * doc/posix-functions/fchmodat.texi: Likewise.
214 * doc/posix-functions/fchownat.texi: Likewise.
215 * doc/posix-functions/fdopendir.texi: Likewise.
216 * doc/posix-functions/fmemopen.texi: Likewise.
217 * doc/posix-functions/freeaddrinfo.texi: Likewise.
218 * doc/posix-functions/fstatat.texi: Likewise.
219 * doc/posix-functions/futimens.texi: Likewise.
220 * doc/posix-functions/gai_strerror.texi: Likewise.
221 * doc/posix-functions/getaddrinfo.texi: Likewise.
222 * doc/posix-functions/getnameinfo.texi: Likewise.
223 * doc/posix-functions/if_freenameindex.texi: Likewise.
224 * doc/posix-functions/if_indextoname.texi: Likewise.
225 * doc/posix-functions/if_nameindex.texi: Likewise.
226 * doc/posix-functions/if_nametoindex.texi: Likewise.
227 * doc/posix-functions/insque.texi: Likewise.
228 * doc/posix-functions/linkat.texi: Likewise.
229 * doc/posix-functions/llrint.texi: Likewise.
230 * doc/posix-functions/llrintf.texi: Likewise.
231 * doc/posix-functions/llrintl.texi: Likewise.
232 * doc/posix-functions/lockf.texi: Likewise.
233 * doc/posix-functions/lrintl.texi: Likewise.
234 * doc/posix-functions/mkdirat.texi: Likewise.
235 * doc/posix-functions/mkfifoat.texi: Likewise.
236 * doc/posix-functions/mknodat.texi: Likewise.
237 * doc/posix-functions/mq_close.texi: Likewise.
238 * doc/posix-functions/mq_getattr.texi: Likewise.
239 * doc/posix-functions/mq_notify.texi: Likewise.
240 * doc/posix-functions/mq_open.texi: Likewise.
241 * doc/posix-functions/mq_receive.texi: Likewise.
242 * doc/posix-functions/mq_send.texi: Likewise.
243 * doc/posix-functions/mq_setattr.texi: Likewise.
244 * doc/posix-functions/mq_timedreceive.texi: Likewise.
245 * doc/posix-functions/mq_timedsend.texi: Likewise.
246 * doc/posix-functions/mq_unlink.texi: Likewise.
247 * doc/posix-functions/open_memstream.texi: Likewise.
248 * doc/posix-functions/openat.texi: Likewise.
249 * doc/posix-functions/posix_fadvise.texi: Likewise.
250 * doc/posix-functions/posix_fallocate.texi: Likewise.
251 * doc/posix-functions/posix_madvise.texi: Likewise.
252 * doc/posix-functions/posix_memalign.texi: Likewise.
253 * doc/posix-functions/posix_openpt.texi: Likewise.
254 * doc/posix-functions/readlinkat.texi: Likewise.
255 * doc/posix-functions/remque.texi: Likewise.
256 * doc/posix-functions/renameat.texi: Likewise.
257 * doc/posix-functions/rintl.texi: Likewise.
258 * doc/posix-functions/sem_unlink.texi: Likewise.
259 * doc/posix-functions/shm_open.texi: Likewise.
260 * doc/posix-functions/shm_unlink.texi: Likewise.
261 * doc/posix-functions/signgam.texi: Likewise.
262 * doc/posix-functions/sigset.texi: Likewise.
263 * doc/posix-functions/stpcpy.texi: Likewise.
264 * doc/posix-functions/stpncpy.texi: Likewise.
265 * doc/posix-functions/strerror.texi: Likewise.
266 * doc/posix-functions/strtod.texi: Likewise.
267 * doc/posix-functions/symlinkat.texi: Likewise.
268 * doc/posix-functions/unlinkat.texi: Likewise.
269 * doc/posix-functions/utimensat.texi: Likewise.
270 * doc/glibc-functions/bindresvport.texi: Likewise.
271 * doc/glibc-functions/dn_expand.texi: Likewise.
272 * doc/glibc-functions/exp10.texi: Likewise.
273 * doc/glibc-functions/exp10f.texi: Likewise.
274 * doc/glibc-functions/fgetxattr.texi: Likewise.
275 * doc/glibc-functions/flistxattr.texi: Likewise.
276 * doc/glibc-functions/fopencookie.texi: Likewise.
277 * doc/glibc-functions/freeifaddrs.texi: Likewise.
278 * doc/glibc-functions/fremovexattr.texi: Likewise.
279 * doc/glibc-functions/fsetxattr.texi: Likewise.
280 * doc/glibc-functions/getifaddrs.texi: Likewise.
281 * doc/glibc-functions/getxattr.texi: Likewise.
282 * doc/glibc-functions/lgetxattr.texi: Likewise.
283 * doc/glibc-functions/listxattr.texi: Likewise.
284 * doc/glibc-functions/llistxattr.texi: Likewise.
285 * doc/glibc-functions/lremovexattr.texi: Likewise.
286 * doc/glibc-functions/lsetxattr.texi: Likewise.
287 * doc/glibc-functions/pow10.texi: Likewise.
288 * doc/glibc-functions/pow10f.texi: Likewise.
289 * doc/glibc-functions/rcmd_af.texi: Likewise.
290 * doc/glibc-functions/removexattr.texi: Likewise.
291 * doc/glibc-functions/res_init.texi: Likewise.
292 * doc/glibc-functions/res_mkquery.texi: Likewise.
293 * doc/glibc-functions/res_query.texi: Likewise.
294 * doc/glibc-functions/res_querydomain.texi: Likewise.
295 * doc/glibc-functions/res_send.texi: Likewise.
296 * doc/glibc-functions/rresvport_af.texi: Likewise.
297 * doc/glibc-functions/setxattr.texi: Likewise.
298 * doc/glibc-functions/strcasestr.texi: Likewise.
300 2008-12-15 Bruno Haible <bruno@clisp.org>
302 Fix compilation error on OSF/1 4.0.
303 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
304 <sys/time.h>, simply delegate to the system header.
305 Reported by Daniel Richard G. <oss@teragram.com>.
307 2008-12-15 Bruno Haible <bruno@clisp.org>
309 * doc/posix-functions/openat.texi: Mention the 'openat' module.
310 * doc/posix-functions/fchmodat.texi: Likewise.
311 * doc/posix-functions/fchownat.texi: Likewise.
312 * doc/posix-functions/fdopendir.texi: Likewise.
313 * doc/posix-functions/fstatat.texi: Likewise.
314 * doc/posix-functions/mkdirat.texi: Likewise.
315 * doc/posix-functions/unlinkat.texi: Likewise.
317 2008-12-14 Bruno Haible <bruno@clisp.org>
319 Update doc for POSIX:2008.
320 * doc/posix-functions/faccessat.texi: New file.
321 * doc/posix-functions/fchmodat.texi: New file.
322 * doc/posix-functions/fchownat.texi: New file.
323 * doc/posix-functions/fdopendir.texi: New file.
324 * doc/posix-functions/fstatat.texi: New file.
325 * doc/posix-functions/futimens.texi: New file.
326 * doc/posix-functions/linkat.texi: New file.
327 * doc/posix-functions/mkdirat.texi: New file.
328 * doc/posix-functions/mkfifoat.texi: New file.
329 * doc/posix-functions/mknodat.texi: New file.
330 * doc/posix-functions/open_wmemstream.texi: New file.
331 * doc/posix-functions/openat.texi: New file.
332 * doc/posix-functions/psiginfo.texi: New file.
333 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
334 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
335 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
336 * doc/posix-functions/readlinkat.texi: New file.
337 * doc/posix-functions/renameat.texi: New file.
338 * doc/posix-functions/strerror_l.texi: New file.
339 * doc/posix-functions/symlinkat.texi: New file.
340 * doc/posix-functions/unlinkat.texi: New file.
341 * doc/posix-functions/utimensat.texi: New file.
342 * doc/gnulib.texi (Function Substitutes): Add these subsections.
344 2008-12-14 Bruno Haible <bruno@clisp.org>
346 Update doc for POSIX:2008.
347 * doc/posix-functions/alphasort.texi: Renamed from
348 doc/glibc-functions/alphasort.texi.
349 * doc/posix-functions/dirfd.texi: Renamed from
350 doc/glibc-functions/dirfd.texi.
351 * doc/posix-functions/dprintf.texi: Renamed from
352 doc/glibc-functions/dprintf.texi.
353 * doc/posix-functions/duplocale.texi: Renamed from
354 doc/glibc-functions/duplocale.texi.
355 * doc/posix-functions/fexecve.texi: Renamed from
356 doc/glibc-functions/fexecve.texi.
357 * doc/posix-functions/fmemopen.texi: Renamed from
358 doc/glibc-functions/fmemopen.texi.
359 * doc/posix-functions/freelocale.texi: Renamed from
360 doc/glibc-functions/freelocale.texi.
361 * doc/posix-functions/getdate_err.texi: Renamed from
362 doc/glibc-functions/getdate_err.texi.
363 * doc/posix-functions/isalnum_l.texi: Renamed from
364 doc/glibc-functions/isalnum_l.texi.
365 * doc/posix-functions/isalpha_l.texi: Renamed from
366 doc/glibc-functions/isalpha_l.texi.
367 * doc/posix-functions/isblank_l.texi: Renamed from
368 doc/glibc-functions/isblank_l.texi.
369 * doc/posix-functions/iscntrl_l.texi: Renamed from
370 doc/glibc-functions/iscntrl_l.texi.
371 * doc/posix-functions/isdigit_l.texi: Renamed from
372 doc/glibc-functions/isdigit_l.texi.
373 * doc/posix-functions/isgraph_l.texi: Renamed from
374 doc/glibc-functions/isgraph_l.texi.
375 * doc/posix-functions/islower_l.texi: Renamed from
376 doc/glibc-functions/islower_l.texi.
377 * doc/posix-functions/isprint_l.texi: Renamed from
378 doc/glibc-functions/isprint_l.texi.
379 * doc/posix-functions/ispunct_l.texi: Renamed from
380 doc/glibc-functions/ispunct_l.texi.
381 * doc/posix-functions/isspace_l.texi: Renamed from
382 doc/glibc-functions/isspace_l.texi.
383 * doc/posix-functions/isupper_l.texi: Renamed from
384 doc/glibc-functions/isupper_l.texi.
385 * doc/posix-functions/iswalnum_l.texi: Renamed from
386 doc/glibc-functions/iswalnum_l.texi.
387 * doc/posix-functions/iswalpha_l.texi: Renamed from
388 doc/glibc-functions/iswalpha_l.texi.
389 * doc/posix-functions/iswblank_l.texi: Renamed from
390 doc/glibc-functions/iswblank_l.texi.
391 * doc/posix-functions/iswcntrl_l.texi: Renamed from
392 doc/glibc-functions/iswcntrl_l.texi.
393 * doc/posix-functions/iswctype_l.texi: Renamed from
394 doc/glibc-functions/iswctype_l.texi.
395 * doc/posix-functions/iswdigit_l.texi: Renamed from
396 doc/glibc-functions/iswdigit_l.texi.
397 * doc/posix-functions/iswgraph_l.texi: Renamed from
398 doc/glibc-functions/iswgraph_l.texi.
399 * doc/posix-functions/iswlower_l.texi: Renamed from
400 doc/glibc-functions/iswlower_l.texi.
401 * doc/posix-functions/iswprint_l.texi: Renamed from
402 doc/glibc-functions/iswprint_l.texi.
403 * doc/posix-functions/iswpunct_l.texi: Renamed from
404 doc/glibc-functions/iswpunct_l.texi.
405 * doc/posix-functions/iswspace_l.texi: Renamed from
406 doc/glibc-functions/iswspace_l.texi.
407 * doc/posix-functions/iswupper_l.texi: Renamed from
408 doc/glibc-functions/iswupper_l.texi.
409 * doc/posix-functions/iswxdigit_l.texi: Renamed from
410 doc/glibc-functions/iswxdigit_l.texi.
411 * doc/posix-functions/isxdigit_l.texi: Renamed from
412 doc/glibc-functions/isxdigit_l.texi.
413 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
414 doc/glibc-functions/mbsnrtowcs.texi.
415 * doc/posix-functions/mkdtemp.texi: Renamed from
416 doc/glibc-functions/mkdtemp.texi.
417 * doc/posix-functions/newlocale.texi: Renamed from
418 doc/glibc-functions/newlocale.texi.
419 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
420 doc/glibc-functions/nl_langinfo_l.texi.
421 * doc/posix-functions/open_memstream.texi: Renamed from
422 doc/glibc-functions/open_memstream.texi.
423 * doc/posix-functions/opterr.texi: Renamed from
424 doc/glibc-functions/opterr.texi.
425 * doc/posix-functions/optind.texi: Renamed from
426 doc/glibc-functions/optind.texi.
427 * doc/posix-functions/optopt.texi: Renamed from
428 doc/glibc-functions/optopt.texi.
429 * doc/posix-functions/psignal.texi: Renamed from
430 doc/glibc-functions/psignal.texi.
431 * doc/posix-functions/scandir.texi: Renamed from
432 doc/glibc-functions/scandir.texi.
433 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
434 doc/glibc-functions/sched_get_priority_min.texi.
435 * doc/posix-functions/signgam.texi: Renamed from
436 doc/glibc-functions/signgam.texi.
437 * doc/posix-functions/stpcpy.texi: Renamed from
438 doc/glibc-functions/stpcpy.texi.
439 * doc/posix-functions/stpncpy.texi: Renamed from
440 doc/glibc-functions/stpncpy.texi.
441 * doc/posix-functions/strcasecmp_l.texi: Renamed from
442 doc/glibc-functions/strcasecmp_l.texi.
443 * doc/posix-functions/strcoll_l.texi: Renamed from
444 doc/glibc-functions/strcoll_l.texi.
445 * doc/posix-functions/strfmon_l.texi: Renamed from
446 doc/glibc-functions/strfmon_l.texi.
447 * doc/posix-functions/strftime_l.texi: Renamed from
448 doc/glibc-functions/strftime_l.texi.
449 * doc/posix-functions/strncasecmp_l.texi: Renamed from
450 doc/glibc-functions/strncasecmp_l.texi.
451 * doc/posix-functions/strndup.texi: Renamed from
452 doc/glibc-functions/strndup.texi.
453 * doc/posix-functions/strnlen.texi: Renamed from
454 doc/glibc-functions/strnlen.texi.
455 * doc/posix-functions/strsignal.texi: Renamed from
456 doc/glibc-functions/strsignal.texi.
457 * doc/posix-functions/strxfrm_l.texi: Renamed from
458 doc/glibc-functions/strxfrm_l.texi.
459 * doc/posix-functions/timer_gettime.texi: Renamed from
460 doc/glibc-functions/timer_gettime.texi.
461 * doc/posix-functions/tolower_l.texi: Renamed from
462 doc/glibc-functions/tolower_l.texi.
463 * doc/posix-functions/toupper_l.texi: Renamed from
464 doc/glibc-functions/toupper_l.texi.
465 * doc/posix-functions/towctrans_l.texi: Renamed from
466 doc/glibc-functions/towctrans_l.texi.
467 * doc/posix-functions/towlower_l.texi: Renamed from
468 doc/glibc-functions/towlower_l.texi.
469 * doc/posix-functions/towupper_l.texi: Renamed from
470 doc/glibc-functions/towupper_l.texi.
471 * doc/posix-functions/uselocale.texi: Renamed from
472 doc/glibc-functions/uselocale.texi.
473 * doc/posix-functions/vdprintf.texi: Renamed from
474 doc/glibc-functions/vdprintf.texi.
475 * doc/posix-functions/wcpcpy.texi:
476 Renamed from doc/glibc-functions/wcpcpy.texi.
477 * doc/posix-functions/wcpncpy.texi: Renamed from
478 doc/glibc-functions/wcpncpy.texi.
479 * doc/posix-functions/wcscasecmp.texi: Renamed from
480 doc/glibc-functions/wcscasecmp.texi.
481 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
482 doc/glibc-functions/wcscasecmp_l.texi.
483 * doc/posix-functions/wcscoll_l.texi: Renamed from
484 doc/glibc-functions/wcscoll_l.texi.
485 * doc/posix-functions/wcsdup.texi: Renamed from
486 doc/glibc-functions/wcsdup.texi.
487 * doc/posix-functions/wcsncasecmp.texi: Renamed from
488 doc/glibc-functions/wcsncasecmp.texi.
489 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
490 doc/glibc-functions/wcsncasecmp_l.texi.
491 * doc/posix-functions/wcsnlen.texi: Renamed from
492 doc/glibc-functions/wcsnlen.texi.
493 * doc/posix-functions/wcsnrtombs.texi: Renamed from
494 doc/glibc-functions/wcsnrtombs.texi.
495 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
496 doc/glibc-functions/wcsxfrm_l.texi.
497 * doc/posix-functions/wctrans_l.texi: Renamed from
498 doc/glibc-functions/wctrans_l.texi.
499 * doc/posix-functions/wctype_l.texi: Renamed from
500 doc/glibc-functions/wctype_l.texi.
501 * doc/gnulib.texi (Function Substitutes): Add these subsections.
502 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
503 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
504 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
506 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
509 2008-12-14 Bruno Haible <bruno@clisp.org>
511 Update doc for POSIX:2008.
512 * doc/posix-functions/*.texi: Update URL of POSIX specification.
514 2008-12-14 Bruno Haible <bruno@clisp.org>
516 Update doc for POSIX:2008.
517 * doc/pastposix-functions/bcmp.texi: Renamed from
518 doc/posix-functions/bcmp.texi.
519 * doc/pastposix-functions/bcopy.texi: Renamed from
520 doc/posix-functions/bcopy.texi.
521 * doc/pastposix-functions/bsd_signal.texi: Renamed from
522 doc/posix-functions/bsd_signal.texi.
523 * doc/pastposix-functions/bzero.texi: Renamed from
524 doc/posix-functions/bzero.texi.
525 * doc/pastposix-functions/ecvt.texi: Renamed from
526 doc/posix-functions/ecvt.texi.
527 * doc/pastposix-functions/fcvt.texi: Renamed from
528 doc/posix-functions/fcvt.texi.
529 * doc/pastposix-functions/ftime.texi: Renamed from
530 doc/posix-functions/ftime.texi.
531 * doc/pastposix-functions/gcvt.texi: Renamed from
532 doc/posix-functions/gcvt.texi.
533 * doc/pastposix-functions/getcontext.texi: Renamed from
534 doc/posix-functions/getcontext.texi.
535 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
536 doc/posix-functions/gethostbyaddr.texi.
537 * doc/pastposix-functions/gethostbyname.texi: Renamed from
538 doc/posix-functions/gethostbyname.texi.
539 * doc/pastposix-functions/getwd.texi: Renamed from
540 doc/posix-functions/getwd.texi.
541 * doc/pastposix-functions/h_errno.texi: Renamed from
542 doc/posix-functions/h_errno.texi.
543 * doc/pastposix-functions/index.texi: Renamed from
544 doc/posix-functions/index.texi.
545 * doc/pastposix-functions/makecontext.texi: Renamed from
546 doc/posix-functions/makecontext.texi.
547 * doc/pastposix-functions/mktemp.texi: Renamed from
548 doc/posix-functions/mktemp.texi.
549 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
550 doc/posix-functions/pthread_attr_getstackaddr.texi.
551 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
552 doc/posix-functions/pthread_attr_setstackaddr.texi.
553 * doc/pastposix-functions/rindex.texi: Renamed from
554 doc/posix-functions/rindex.texi.
555 * doc/pastposix-functions/scalb.texi: Renamed from
556 doc/posix-functions/scalb.texi.
557 * doc/pastposix-functions/setcontext.texi: Renamed from
558 doc/posix-functions/setcontext.texi.
559 * doc/pastposix-functions/swapcontext.texi: Renamed from
560 doc/posix-functions/swapcontext.texi.
561 * doc/pastposix-functions/ualarm.texi: Renamed from
562 doc/posix-functions/ualarm.texi.
563 * doc/pastposix-functions/usleep.texi: Renamed from
564 doc/posix-functions/usleep.texi.
565 * doc/pastposix-functions/vfork.texi: Renamed from
566 doc/posix-functions/vfork.texi.
567 * doc/pastposix-functions/wcswcs.texi: Renamed from
568 doc/posix-functions/wcswcs.texi.
569 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
570 (Function Substitutes): Update.
572 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
574 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
577 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
578 Bruno Haible <bruno@clisp.org>
580 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
582 2008-12-13 Bruno Haible <bruno@clisp.org>
584 * modules/strtoull (Depends-on): Remove unistd.
586 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
588 * modules/strtoull (Depends-on): Add stdlib.
590 2008-12-11 Simon Josefsson <simon@josefsson.org>
592 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
594 2008-12-10 Jim Meyering <meyering@redhat.com>
596 gl_ASSERT: don't say assertions are disabled when they're not
597 * m4/assert.m4 (gl_ASSERT): Do not make configure report
598 "checking whether to enable assertions... no", when they are in
599 fact enabled. This is solely a bug in the output of configure.
600 In spite of saying "no", NDEBUG was not defined in that case.
601 Also, as noted by Eric Blake, leave assertions enabled upon
602 --enable-assert=INVALID.
604 2008-12-10 Bruno Haible <bruno@clisp.org>
606 Change MODULES.html to refer to POSIX:2008 where possible.
607 * MODULES.html.sh (POSIX2008_URL): New variable.
608 (posix_headers): Remove sys/timeb, ucontext.
609 (posix2001_headers): New variable.
610 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
611 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
612 index, makecontext, mktemp, pthread_attr_getstackaddr,
613 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
614 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
615 (posix2001_functions): New variable.
616 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
619 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
621 add missing include to parse-duration.c
622 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
623 * modules/parse-duration (Depends-on): Add xalloc.
625 fix sed script reading maint.mk
626 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
627 (syntax-check-rules): Use it.
629 2008-12-09 Bruno Haible <bruno@clisp.org>
631 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
632 MacOS X 10.4/PowerPC.
633 Reported by Simon Josefsson.
635 2008-12-08 Jim Meyering <meyering@redhat.com>
637 work around mingw's lack of some S_IF definitions
638 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
639 Reported by Simon Josefsson.
641 2008-12-08 Bruno Haible <bruno@clisp.org>
643 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
644 applied to variables. Needed on MacOS X 10.4/PowerPC.
645 Reported by Simon Josefsson.
647 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
648 and Eric Blake <ebb9@byu.net>
650 assert: honor --enable-assert
651 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
652 order to honor --enable-assert, rather than treating it as a
653 synonym for --disable-assert.
655 2008-12-08 Jim Meyering <meyering@redhat.com>
657 * lib/posixtm.c: Remove now-useless declaration of mktime.
659 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
661 2008-12-07 Bruno Haible <bruno@clisp.org>
663 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
664 test_once): Mark functions as static.
665 * tests/test-tls.c (test_tls): Likewise.
667 2008-12-07 Bruno Haible <bruno@clisp.org>
669 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
670 iconv_register_autodetect.
672 2008-12-07 Jim Meyering <meyering@redhat.com>
674 posixtm.c: avoid a warning
675 * lib/posixtm.c (posixtime): Don't initialize tm0.
676 It's no longer needed to placate gcc4's -Wuninitialized,
677 and the attempt to placate would elicit a new warning.
679 unicodeio.c: mark unused parameters
680 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
681 (fallback_failure_callback): Likewise.
683 2008-12-07 Bruno Haible <bruno@clisp.org>
685 * gnulib-tool (func_create_testdir): When building the tests
686 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
687 Reported by Simon Josefsson.
689 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
691 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
693 2008-12-06 Bruno Haible <bruno@clisp.org>
695 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
696 Suggested by Eric Blake.
698 2008-12-06 Bruno Haible <bruno@clisp.org>
700 Fix a c-stack test failure on MacOS X.
701 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
702 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
703 handler for SIGBUS as well.
704 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
705 install a signal handler for SIGBUS as well.
706 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
708 2008-12-06 Bruno Haible <bruno@clisp.org>
710 Advocacy documentation.
711 * doc/gnulib-intro.texi (Benefits): New section.
712 * doc/gnulib.texi: Update.
714 2008-12-06 Bruno Haible <bruno@clisp.org>
716 Document the 'manywarnings' module.
717 * doc/manywarnings.texi: New file.
718 * doc/gnulib.texi: Include it.
720 2008-12-05 Eric Blake <ebb9@byu.net>
722 tests: silence some gcc warnings
723 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
724 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
727 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
728 Bruno Haible <bruno@clisp.org>
730 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
732 2008-11-29 Jim Meyering <meyering@redhat.com>
734 unicodeio.c: mark unused parameters
735 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
736 (fallback_failure_callback): Likewise.
739 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
740 (set_stat_type): Return S_IF*-valued "type" directly.
741 Prompted by James Youngman's spotting a related bug.
742 Confirmed by further testing through find.
744 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
745 * lib/fts.c (D_TYPE): Define.
746 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
747 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
748 (s_ifmt_shift_bits): New function.
749 (set_stat_type): New function.
750 (fts_build): When not calling fts_stat, call set_stat_type
751 to propagate dirent.d_type info to fts_read caller.
752 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
753 fts_statp->st_mode type information may be valid.
755 2008-11-28 Simon Josefsson <simon@josefsson.org>
757 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
758 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
761 2008-11-20 Bruno Haible <bruno@clisp.org>
763 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
764 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
766 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
767 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
768 * modules/math (Makefile.am): Substitute
769 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
770 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
772 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
773 Bruno Haible <bruno@clisp.org>
775 * lib/stdint.in.h: Define all type macros so that their expansion is
776 a single typedef'ed token. Fixes a compilation failure in Boost which
777 does "using ::int8_t;".
779 2008-11-18 Simon Josefsson <simon@josefsson.org>
781 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
783 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
784 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
785 * modules/manywarnings: New file.
786 * MODULES.html.sh: Mention manywarnings module.
788 2008-11-18 Bruno Haible <bruno@clisp.org>
790 * doc/gnulib-tool.texi (Unit tests): New section.
792 2008-11-18 Simon Josefsson <simon@josefsson.org>
794 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
795 paths like 'lib/po/foo.po'.
797 2008-11-17 Simon Josefsson <simon@josefsson.org>
799 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
800 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
802 2008-11-17 Simon Josefsson <simon@josefsson.org>
804 * m4/warnings.m4: Use CPPFLAGS to really check whether the
807 2008-11-17 Simon Josefsson <simon@josefsson.org>
809 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
811 2008-11-17 Bruce Korb <bkorb@gnu.org>
813 * modules/parse-duration-tests: New file.
814 * tests/test-parse-duration.sh: New file.
815 * tests/test-parse-duration.c: New file.
817 New module 'parse-duration'.
818 * lib/parse-duration.h: New file.
819 * lib/parse-duration.c: New file.
820 * modules/parse-duration: New file.
822 2008-11-17 Bruno Haible <bruno@clisp.org>
824 * tests/test-select-out.sh: Comment out the first pipe test.
825 Reported by Simon Josefsson.
827 2008-11-17 Bruno Haible <bruno@clisp.org>
829 * modules/getaddrinfo (Depends-on): Add servent, hostent.
830 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
833 2008-11-17 Bruno Haible <bruno@clisp.org>
835 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
836 -lnetwork and -lnet. Needed for Haiku and BeOS.
838 2008-11-16 Bruno Haible <bruno@clisp.org>
840 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
842 2008-11-16 Bruno Haible <bruno@clisp.org>
844 Avoid test failure on Haiku.
845 * tests/test-fsync.c: Include <errno.h>.
846 (main): Don't require that fsync (0) fails.
848 2008-11-15 Bruno Haible <bruno@clisp.org>
850 New module 'hostent'.
851 * modules/hostent: New file.
852 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
854 2008-11-15 Bruno Haible <bruno@clisp.org>
856 New module 'servent'.
857 * modules/servent: New file.
858 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
860 2008-11-15 Bruno Haible <bruno@clisp.org>
862 Avoid generating same test program with two different rules.
863 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
864 test-frexp to test-frexp-nolibm.
865 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
866 test-frexpl to test-frexpl-nolibm.
868 2008-11-15 Bruno Haible <bruno@clisp.org>
870 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
873 2008-11-15 Bruno Haible <bruno@clisp.org>
875 * lib/netdb.in.h: Activate the definitions also when the system's
876 <netdb.h> has 'struct addrinfo'.
877 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
878 EAI_OVERFLOW or AI_NUMERICSERV.
879 * doc/posix-headers/netdb.texi: Document the problem.
881 2008-11-15 Bruno Haible <bruno@clisp.org>
883 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
885 Make the 'sched' module work on platforms where <sched.h> exists but
886 is incomplete (such as Haiku).
887 * lib/sched.in.h; Include the system's <sched.h> if it exists.
888 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
889 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
890 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
891 HAVE_STRUCT_SCHED_PARAM.
892 * modules/sched (Depends-on): Add include_next.
893 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
894 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
895 * doc/posix-headers/sched.texi: Document the issue.
897 2008-11-13 Jim Meyering <meyering@redhat.com>
899 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
900 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
901 test would fail due to the difference in the Report bugs to ...
902 line. The expected address is empty, "<>", while the actual
903 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
905 2008-11-12 Bruno Haible <bruno@clisp.org>
907 lstat: don't compile lstat.c on systems lacking lstat
908 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
909 which don't have lstat; this is handled by lib/sys_stat.in.h already.
910 Reported by Daniel P. Berrange via Jim Meyering.
912 2008-11-12 Jim Meyering <meyering@redhat.com>
914 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
916 2008-11-12 Simon Josefsson <simon@josefsson.org>
918 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
921 2008-11-12 Bruno Haible <bruno@clisp.org>
923 * lib/unicodeio.c: Include unistr.h.
924 (utf8_wctomb): Remove function.
925 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
927 2008-11-12 Simon Josefsson <simon@josefsson.org>
929 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
930 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
932 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
934 2008-11-12 Simon Josefsson <simon@josefsson.org>
936 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
937 * doc/gnulib.texi: Add section for warnings.
939 2008-11-11 Bruno Haible <bruno@clisp.org>
941 * lib/sockets.h: Add a comment.
943 2008-11-11 Karl Berry <karl@gnu.org>
945 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
947 2008-11-11 Eric Blake <ebb9@byu.net>
949 fdl.texi: avoid git symlinks
950 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
952 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
954 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
956 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
958 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
959 (gl_WARN_ADD): Substitute $2 if literal.
961 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
963 * m4/warning.m4: Remove.
965 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
967 * m4/warnings.m4: Almost complete rewrite. :-)
969 2008-11-10 Simon Josefsson <simon@josefsson.org>
971 * modules/warnings: New module.
972 * m4/warnings.m4: New file.
973 * MODULES.html.sh: Mention warnings module.
974 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
975 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
977 2008-11-10 Eric Blake <ebb9@byu.net>
979 fdl.texi: make a symlink to the latest version
980 * doc/standards.texi: Revert today's earlier change.
981 * doc/fdl-1.2.texi: Rename from old fdl.texi...
982 * doc/fdl.texi: ...and replace this with a symlink to the newer
985 2008-11-10 Bruno Haible <bruno@clisp.org>
987 * tests/test-select-fd.c (main): Accept the result file name as fourth
989 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
990 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
992 2008-11-10 Bruno Haible <bruno@clisp.org>
994 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
995 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
996 as autoconf-substituted macros.
997 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
998 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
999 gl_NETDB_H_DEFAULTS. Set these variables.
1000 * modules/netdb (Makefile.am): Substitute these variables.
1002 2008-11-10 Eric Blake <ebb9@byu.net>
1004 standards.texi: include correct file for FDL 1.3
1005 * doc/standards.texi (GNU Free Documentation License): Change
1006 include file to pull in FDL 1.3, not 1.2.
1008 fdl.texi: revert accidental change to license
1009 * doc/fdl.texi: This is FDL 1.2, not 1.3.
1011 2008-11-10 Bruno Haible <bruno@clisp.org>
1013 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
1014 cross-compiling guesses also when the native compile gives no result.
1016 2008-11-10 Bruno Haible <bruno@clisp.org>
1018 * lib/spawni.c (__spawni): Force variable into the stack.
1020 2008-11-10 Bruno Haible <bruno@clisp.org>
1022 Add support for Haiku.
1023 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
1024 glibc and BeOS, but also on Haiku.
1025 * lib/fpurge.c (fpurge): Likewise.
1026 * lib/freadable.c (freadable): Likewise.
1027 * lib/freadahead.c (freadahead): Likewise.
1028 * lib/freading.c (freading): Likewise.
1029 * lib/freadptr.c (freadptr): Likewise.
1030 * lib/freadseek.c (freadptrinc): Likewise.
1031 * lib/fseeko.c (rpl_fseeko): Likewise.
1032 * lib/fseterr.c (fseterr): Likewise.
1033 * lib/fwritable.c (fwritable): Likewise.
1034 * lib/fwriting.c (fwriting): Likewise.
1035 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
1037 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
1039 * lib/config.charset: Treat Haiku like BeOS.
1041 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
1043 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
1044 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
1046 2008-11-08 Bruno Haible <bruno@clisp.org>
1048 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
1051 2008-11-08 Bruno Haible <bruno@clisp.org>
1053 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
1055 2008-11-08 Bruno Haible <bruno@clisp.org>
1057 * tests/test-select-fd.c: New file.
1058 * tests/test-select-in.sh: New file.
1059 * tests/test-select-out.sh: New file.
1060 * tests/test-select-stdin.c: New file.
1061 * modules/select-tests (Files): Add the new files.
1062 (Depends-on): Add gettimeofday.
1063 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
1064 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
1065 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
1067 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
1068 Bruno Haible <bruno@clisp.org>
1070 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
1072 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
1074 * build-aux/pmccabe2html: Added support for C++ source files.
1076 2008-11-05 Ben Pfaff <blp@gnu.org>
1078 Fix lib/close.c build on Windows.
1079 * modules/close (Files): Add lib/w32sock.h.
1081 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
1083 Accept Bison's NEWS format.
1084 * build-aux/announce-gen (print_news_deltas): Tweak
1087 2008-11-04 Bruno Haible <bruno@clisp.org>
1089 * modules/random_r (Maintainer): Add glibc.
1091 2008-11-04 Simon Josefsson <simon@josefsson.org>
1093 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
1094 by karl@freefriends.org (Karl Berry).
1095 * doc/alloca.texi: Likewise.
1096 * doc/c-ctype.texi: Likewise.
1097 * doc/c-strcase.texi: Likewise.
1098 * doc/c-strcaseeq.texi: Likewise.
1099 * doc/c-strcasestr.texi: Likewise.
1100 * doc/c-strstr.texi: Likewise.
1101 * doc/c-strtod.texi: Likewise.
1102 * doc/c-strtold.texi: Likewise.
1103 * doc/ctime.texi: Likewise.
1104 * doc/error.texi: Likewise.
1105 * doc/fdl.texi: Likewise.
1106 * doc/gcd.texi: Likewise.
1107 * doc/getdate.texi: Likewise.
1108 * doc/gnulib-intro.texi: Likewise.
1109 * doc/gnulib-tool.texi: Likewise.
1110 * doc/gnulib.texi: Likewise.
1111 * doc/inet_ntoa.texi: Likewise.
1112 * doc/maintain.texi: Likewise.
1113 * doc/make-stds.texi: Likewise.
1114 * doc/quote.texi: Likewise.
1115 * doc/regexprops-generic.texi: Likewise.
1116 * doc/standards.texi: Likewise.
1117 * doc/verify.texi: Likewise.
1118 * doc/visibility.texi: Likewise.
1119 * doc/gnulib.texi (GNU Free Documentation License): Include
1120 fdl-1.3.texi instead of fdl.texi.
1122 2008-11-04 Simon Josefsson <simon@josefsson.org>
1124 * doc/fdl-1.3.texi: New file, from
1125 <http://www.gnu.org/licenses/fdl-1.3.texi>.
1126 * modules/fdl-1.3: Add.
1127 * MODULES.html.sh: Add fdl-1.3.
1129 2008-11-03 Bruno Haible <bruno@clisp.org>
1131 Make determination of absolute name of header file work with AIX xlc.
1132 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
1133 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
1135 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
1136 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
1138 2008-11-03 Simon Josefsson <simon@josefsson.org>
1140 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
1141 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
1144 2008-11-02 Bruno Haible <bruno@clisp.org>
1146 Mark 'strpbrk' obsolete.
1147 * modules/strpbrk (Status, Notice): New sections.
1148 * modules/strtok_r (Depends-on): Add strpbrk.
1150 2008-11-02 Bruno Haible <bruno@clisp.org>
1152 Mark 'strdup' obsolete.
1153 * modules/strdup (Status, Notice): New sections.
1154 * modules/findprog (Depends-on): Add strdup.
1155 * modules/getaddrinfo (Depends-on): Likewise.
1156 * modules/localename (Depends-on): Likewise.
1157 * modules/relocatable-lib (Depends-on): Likewise.
1158 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
1159 * modules/relocatable-prog (Depends-on): Likewise.
1160 * modules/trim (Depends-on): Likewise.
1161 * modules/unictype/gen-ctype (Depends-on): Likewise.
1162 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
1164 2008-11-02 Bruno Haible <bruno@clisp.org>
1166 Mark 'strcspn' obsolete.
1167 * modules/strcspn (Status, Notice): New sections.
1169 2008-11-02 Bruno Haible <bruno@clisp.org>
1171 Mark 'rmdir' obsolete.
1172 * modules/rmdir (Status, Notice): New sections.
1173 * modules/clean-temp (Depends-on): Add rmdir.
1174 * modules/openat (Depends-on): Likewise.
1176 2008-11-02 Bruno Haible <bruno@clisp.org>
1178 Mark 'raise' obsolete.
1179 * modules/raise (Status, Notice): New sections.
1180 (Include): Specify <signal.h>.
1181 * modules/stdio (Depends-on): Add raise.
1182 * modules/write (Depends-on): Likewise.
1184 2008-11-02 Bruno Haible <bruno@clisp.org>
1186 Mark 'memset' obsolete.
1187 * modules/memset (Status, Notice): New sections.
1189 2008-11-02 Bruno Haible <bruno@clisp.org>
1191 Mark 'memmove' obsolete.
1192 * modules/memmove (Status, Notice): New sections.
1193 * modules/argp (Depends-on): Add memmove.
1194 * modules/argz (Depends-on): Likewise.
1195 * modules/canonicalize (Depends-on): Likewise.
1196 * modules/canonicalize-lgpl (Depends-on): Likewise.
1197 * modules/fts (Depends-on): Likewise.
1198 * modules/getcwd (Depends-on): Likewise.
1199 * modules/human (Depends-on): Likewise.
1200 * modules/regex (Depends-on): Likewise.
1201 * modules/striconveh (Depends-on): Likewise.
1202 * modules/trim (Depends-on): Likewise.
1203 * modules/unistr/u8-move (Depends-on): Likewise.
1204 * modules/unistr/u16-move (Depends-on): Likewise.
1205 * modules/unistr/u32-move (Depends-on): Likewise.
1207 2008-11-02 Bruno Haible <bruno@clisp.org>
1209 Mark 'memcpy' obsolete.
1210 * modules/memcpy (Status, Notice): New sections.
1212 2008-11-02 Bruno Haible <bruno@clisp.org>
1214 Mark 'memcmp' obsolete.
1215 * modules/memcmp (Status, Notice): New sections.
1216 * modules/argmatch (Depends-on): Add memchr.
1217 * modules/backupfile (Depends-on): Likewise.
1218 * modules/c-strcasestr (Depends-on): Likewise.
1219 * modules/crypto/des (Depends-on): Likewise.
1220 * modules/csharpcomp (Depends-on): Likewise.
1221 * modules/fnmatch (Depends-on): Likewise.
1222 * modules/git-merge-changelog (Depends-on): Likewise.
1223 * modules/isnand (Depends-on): Likewise.
1224 * modules/isnand-nolibm (Depends-on): Likewise.
1225 * modules/isnanf (Depends-on): Likewise.
1226 * modules/isnanf-nolibm (Depends-on): Likewise.
1227 * modules/isnanl (Depends-on): Likewise.
1228 * modules/isnanl-nolibm (Depends-on): Likewise.
1229 * modules/mbchar (Depends-on): Likewise.
1230 * modules/memcoll (Depends-on): Likewise.
1231 * modules/quotearg (Depends-on): Likewise.
1232 * modules/regex (Depends-on): Likewise.
1233 * modules/relocatable-prog (Depends-on): Likewise.
1234 * modules/same (Depends-on): Likewise.
1235 * modules/signbit (Depends-on): Likewise.
1236 * modules/strcasestr-simple (Depends-on): Likewise.
1237 * modules/unictype/gen-ctype (Depends-on): Likewise.
1238 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
1239 * modules/uniname/uniname (Depends-on): Likewise.
1240 * modules/unistr/u8-cmp (Depends-on): Likewise.
1242 2008-11-02 Bruno Haible <bruno@clisp.org>
1244 Mark 'memchr' obsolete.
1245 * modules/memchr (Status, Notice): New sections.
1246 * modules/argp (Depends-on): Add memchr.
1247 * modules/base64 (Depends-on): Likewise.
1248 * modules/c-strcasestr (Depends-on): Likewise.
1249 * modules/chdir-long (Depends-on): Likewise.
1250 * modules/fnmatch (Depends-on): Likewise.
1251 * modules/getsubopt (Depends-on): Likewise.
1252 * modules/git-merge-changelog (Depends-on): Likewise.
1253 * modules/glob (Depends-on): Likewise.
1254 * modules/strcasestr-simple (Depends-on): Likewise.
1255 * modules/strnlen (Depends-on): Likewise.
1257 2008-11-02 Bruno Haible <bruno@clisp.org>
1259 Mark 'atexit' obsolete.
1260 * modules/atexit (Status, Notice): New sections.
1261 * modules/chdir-long (Depends-on): Add atexit.
1262 * modules/wait-process (Depends-on): Likewise.
1264 2008-11-02 Bruno Haible <bruno@clisp.org>
1266 * gnulib-tool: New option --with-obsolete.
1267 (func_usage): Document it.
1268 (func_modules_transitive_closure): Drop obsolete dependencies if
1269 incobsolete is not true.
1270 (func_import): Read and save the incobsolete variable to the cache.
1272 2008-11-02 Bruno Haible <bruno@clisp.org>
1274 * modules/TEMPLATE-EXTENDED: New field 'Status'.
1275 * gnulib-tool: New option --extract-status.
1276 (func_usage): Document it.
1277 (sed_extract_prog): Recognize it.
1278 (func_get_status): New function.
1280 2008-10-30 Simon Josefsson <simon@josefsson.org>
1282 * modules/sockets (License): Change from LGPL to LGPLv2+.
1284 2008-10-28 Simon Josefsson <simon@josefsson.org>
1286 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
1288 2008-10-28 Simon Josefsson <simon@josefsson.org>
1290 * MODULES.html.sh (Support for systems lacking POSIX:2001):
1291 Mention times and sys_times.
1292 * modules/sys_times, modules/sys_times-tests: New modules.
1293 * modules/times, modules/times-tests: Likewise
1294 * m4/sys_times_h.m4: New file.
1295 * lib/sys_times.in.h: Likewise
1296 * lib/times.c: Likewise.
1297 * tests/test-sys_times.c: Likewise.
1298 * tests/test-times.c: Likewise.
1299 * doc/posix-headers/sys_times.texi: Update.
1300 * doc/posix-functions/times.texi: Update.
1302 2008-10-28 Jim Meyering <meyering@redhat.com>
1304 * modules/tempname (Depends-on): Add lstat.
1306 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
1308 2008-10-28 Simon Josefsson <simon@josefsson.org>
1310 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
1311 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
1312 using idiom used elsewhere in gnulib.
1314 2008-10-27 Jim Meyering <meyering@redhat.com>
1316 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
1318 2008-10-27 Simon Josefsson <simon@josefsson.org>
1320 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
1321 TESTS_ENVIRONMENT, for shell scripts that needs to call built
1323 * tests/test-argp-2.sh: Use $EXEEXT when needed.
1325 2008-10-27 Simon Josefsson <simon@josefsson.org>
1327 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
1329 2008-10-27 Bruno Haible <bruno@clisp.org>
1331 * tests/test-lstat.c: Include <stdio.h>.
1333 2008-10-27 Simon Josefsson <simon@josefsson.org>
1335 * modules/lstat-tests: New module.
1336 * tests/test-lstat.c: New file.
1338 2008-10-26 Jim Meyering <meyering@redhat.com>
1340 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
1342 2008-10-26 Simon Josefsson <simon@josefsson.org>
1343 Bruno Haible <bruno@clisp.org>
1345 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
1346 * modules/configmake (Include): Add a note that the include must come
1347 after all system headers.
1348 * lib/javaversion.c: Include configmake.h after all other includes.
1350 2008-10-26 Bruno Haible <bruno@clisp.org>
1352 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
1353 HAVE_STRUCT_RANDOM_DATA to 1.
1354 (gl_STDLIB_H): Simplify.
1356 2008-10-26 Simon Josefsson <simon@josefsson.org>
1358 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
1359 substitute HAVE_STRUCT_RANDOM_DATA.
1360 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
1362 * modules/stdlib (Makefile.am): Substitute
1363 HAVE_STRUCT_RANDOM_DATA.
1365 2008-10-26 Simon Josefsson <simon@josefsson.org>
1367 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
1368 * doc/gnulib-intro.texi (Copyright): Likewise.
1370 2008-10-26 Simon Josefsson <simon@josefsson.org>
1372 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
1375 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
1376 Bruno Haible <bruno@clisp.org>
1378 * lib/unistd.in.h: Include <winsock2.h>.
1379 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
1380 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
1381 Provide dummy declarations.
1382 (gethostname): Override.
1383 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
1384 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
1385 gl_PREREQ_SYS_H_WINSOCK2.
1386 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
1387 * doc/posix-functions/gethostname.texi: More details.
1389 2008-10-25 Bruno Haible <bruno@clisp.org>
1391 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
1392 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
1393 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
1395 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
1397 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
1398 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
1399 gl_UNISTD_H_DEFAULTS.
1401 2008-10-25 Eric Blake <ebb9@byu.net>
1403 signbit: avoid spurious compiler failure
1404 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
1405 declarations inside function.
1407 2008-10-24 Simon Josefsson <simon@josefsson.org>
1408 Bruno Haible <bruno@clisp.org>
1410 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
1411 * modules/random_r (Depends-on): Add stdint.
1413 2008-10-24 Bruno Haible <bruno@clisp.org>
1415 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
1417 * modules/strerror (License): Likewise.
1419 2008-10-24 Jim Meyering <meyering@redhat.com>
1421 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
1422 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
1424 2008-10-24 Eric Blake <ebb9@byu.net>
1426 getgroups: fix compilation when getgroups is available
1427 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
1428 but with <config.h> override of getgroups disabled.
1430 2008-10-24 Simon Josefsson <simon@josefsson.org>
1432 * doc/gnulib.texi (Header files): Add note about C++ problems.
1433 Explained by Bruno Haible <bruno@clisp.org>.
1435 2008-10-23 Bruno Haible <bruno@clisp.org>
1437 Define a dummy SA_NODEFER macro on Interix.
1438 * lib/signal.in.h (SA_NODEFER): Define fallback.
1439 Reported by Aleksey Cheusov <cheusov@tut.by> via
1440 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
1442 2008-10-23 Bruno Haible <bruno@clisp.org>
1444 * modules/freadahead (License): Change to LGPLv2+.
1445 Suggested by Simon Josefsson.
1447 2008-10-23 Jim Meyering <meyering@redhat.com>
1449 random_r: new module
1450 * modules/random_r: New file.
1451 * m4/random_r.m4: New file.
1452 * lib/random_r.c: New file, from glibc.
1453 * modules/random_r-tests: New file.
1454 * tests/test-random_r.c: New file.
1455 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
1458 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
1459 * modules/stdlib: Substitute them, too.
1460 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
1461 * doc/glibc-functions/initstate_r.texi: Mention the new module.
1462 * doc/glibc-functions/random_r.texi: Likewise.
1463 * doc/glibc-functions/setstate_r.texi: Likewise.
1464 * doc/glibc-functions/srandom_r.texi: Likewise.
1465 * config/srclist.txt: Mention it.
1467 2008-10-23 David Lutterkort <lutter@redhat.com>
1469 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
1472 2008-10-23 Jim Meyering <meyering@redhat.com>
1474 selinux-h: mark parameters of stub functions as intentionally unused
1475 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
1476 * lib/se-context.in.h: Likewise.
1478 2008-10-22 Simon Josefsson <simon@josefsson.org>
1480 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
1482 2008-10-22 Simon Josefsson <simon@josefsson.org>
1484 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
1486 2008-10-22 Eric Blake <ebb9@byu.net>
1488 glthread/thread: avoid compiler warning
1489 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
1490 Add unreachable abort to silence compiler.
1492 2008-10-22 Eric Blake <ebb9@byu.net>
1494 netdb: also supply struct addrinfo for cygwin 1.5.x
1495 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
1497 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
1499 * doc/posix-headers/netdb.texi (netdb.h): Document this.
1501 2008-10-22 Bruno Haible <bruno@clisp.org>
1503 * users.txt: Update entry about pspp.
1505 2008-10-21 Bruno Haible <bruno@clisp.org>
1508 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
1509 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
1512 * lib/ioctl.c (ioctl): Don't undefine.
1513 * lib/socket.c (socket): Don't undefine.
1515 Remove unused module indicator macros.
1516 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
1517 GNULIB_$1 as a C macro.
1519 * doc/posix-functions/close.texi: Undo last change.
1520 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
1523 2008-10-21 Bruno Haible <bruno@clisp.org>
1525 Add gethostname() declaration to <unistd.h>.
1526 * lib/unistd.in.h (gethostname): New declaration.
1527 * lib/gethostname.c: Include <unistd.h>.
1528 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
1529 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
1530 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
1531 and HAVE_GETHOSTNAME.
1532 * modules/gethostname (Depends-on): Add unistd.
1533 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1534 (Include): Specify <unistd.h>.
1535 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
1537 * tests/test-gethostname.c: Include <unistd.h> first.
1539 2008-10-21 Bruno Haible <bruno@clisp.org>
1541 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
1542 * modules/select-tests (Depends-on): Likewise.
1543 Reported by Simon Josefsson.
1545 2008-10-21 Simon Josefsson <simon@josefsson.org>
1547 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
1548 * lib/accept.c: New file, based on winsock.c.
1549 * lib/bind.c: New file, based on winsock.c.
1550 * lib/connect.c: New file, based on winsock.c.
1551 * lib/getpeername.c: New file, based on winsock.c.
1552 * lib/getsockname.c: New file, based on winsock.c.
1553 * lib/getsockopt.c: New file, based on winsock.c.
1554 * lib/ioctl.c: New file, based on winsock.c.
1555 * lib/listen.c: New file, based on winsock.c.
1556 * lib/recv.c: New file, based on winsock.c.
1557 * lib/recvfrom.c: New file, based on winsock.c.
1558 * lib/send.c: New file, based on winsock.c.
1559 * lib/sendto.c: New file, based on winsock.c.
1560 * lib/setsockopt.c: New file, based on winsock.c.
1561 * lib/shutdown.c: New file, based on winsock.c.
1562 * lib/socket.c: New file, based on winsock.c.
1563 * lib/w32sock.h: New file, based on winsock.c.
1564 * lib/winsock.c: Remove file.
1565 * modules/accept: Likewise.
1566 * modules/bind: Likewise.
1567 * modules/connect: Likewise.
1568 * modules/getpeername: Likewise.
1569 * modules/getsockname: Likewise.
1570 * modules/getsockopt: Likewise.
1571 * modules/ioctl: Likewise.
1572 * modules/listen: Likewise.
1573 * modules/recv: Likewise.
1574 * modules/recvfrom: Likewise.
1575 * modules/send: Likewise.
1576 * modules/sendto: Likewise.
1577 * modules/setsockopt: Likewise.
1578 * modules/shutdown: Likewise.
1579 * modules/socket: Use socket.c instead of winsock.c.
1580 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
1581 * doc/posix-functions/accept.texi: Doc fix.
1582 * doc/posix-functions/bind.texi: Doc fix.
1583 * doc/posix-functions/close.texi: Doc fix.
1584 * doc/posix-functions/connect.texi: Doc fix.
1585 * doc/posix-functions/getpeername.texi: Doc fix.
1586 * doc/posix-functions/getsockname.texi: Doc fix.
1587 * doc/posix-functions/getsockopt.texi: Doc fix.
1588 * doc/posix-functions/ioctl.texi: Doc fix.
1589 * doc/posix-functions/listen.texi: Doc fix.
1590 * doc/posix-functions/recv.texi: Doc fix.
1591 * doc/posix-functions/recvfrom.texi: Doc fix.
1592 * doc/posix-functions/send.texi: Doc fix.
1593 * doc/posix-functions/sendto.texi: Doc fix.
1594 * doc/posix-functions/setsockopt.texi: Doc fix.
1595 * doc/posix-functions/shutdown.texi: Doc fix.
1596 * doc/posix-functions/socket.texi: Doc fix.
1598 2008-10-20 Bruno Haible <bruno@clisp.org>
1600 Take into account the role of SIGABRT_COMPAT on Windows 2008.
1601 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
1602 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
1603 as an alias for SIGABRT.
1604 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
1605 (sigaction): Map it to SIGABRT.
1606 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
1608 2008-10-20 Bruno Haible <bruno@clisp.org>
1610 * lib/fts.c: Don't include lstat.h.
1611 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
1613 Move the lstat() declaration to <sys/stat.h>.
1614 * lib/lstat.h: Remove file.
1615 * lib/sys_stat.in.h: Add special invocation convention.
1616 (lstat): New declaration.
1617 * lib/lstat.c (orig_lstat): New function.
1618 (rpl_lstat): Use orig_lstat instead of lstat.
1619 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
1620 AC_C_INLINE. Set REPLACE_LSTAT.
1621 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
1623 * modules/lstat (Files): Remove lib/lstat.h.
1624 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
1625 (Include): Specify <sys/stat.h> instead of lstat.h.
1626 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
1628 * NEWS: Mention the change.
1630 2008-10-20 Bruno Haible <bruno@clisp.org>
1632 * modules/posix_spawn-tests: New file.
1633 * tests/test-posix_spawn3.c: New file.
1635 2008-10-20 Bruno Haible <bruno@clisp.org>
1637 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
1638 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
1639 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
1640 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
1641 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
1643 2008-10-20 Bruno Haible <bruno@clisp.org>
1645 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
1646 of posix_spawn on AIX 5.3.
1648 2008-10-20 Bruno Haible <bruno@clisp.org>
1650 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
1652 2008-10-20 Bruno Haible <bruno@clisp.org>
1654 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
1657 2008-10-20 Simon Josefsson <simon@josefsson.org>
1659 * lib/netdb.in.h: Don't define GNU specific constants until they
1660 are supported or needed. Reported by Bruno Haible
1663 2008-10-20 Simon Josefsson <simon@josefsson.org>
1665 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
1667 2008-10-20 Simon Josefsson <simon@josefsson.org>
1669 * lib/getaddrinfo.h: Remove file.
1670 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
1671 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
1672 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
1673 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
1674 * modules/netdb: Substitute GNULIB_GETADDRINFO.
1675 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
1676 * tests/test-getaddrinfo.c: Likewise.
1677 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
1678 * NEWS: Mention change.
1680 2008-10-19 Bruno Haible <bruno@clisp.org>
1682 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
1684 2008-10-19 Bruno Haible <bruno@clisp.org>
1686 * lib/wait-process.c: Include simply <sys/wait.h>.
1687 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
1688 WIFSTOPPED): Remove fallback definitions.
1689 * modules/wait-process (Depends-on): Add sys_wait.
1691 New module 'sys_wait'.
1692 * modules/sys_wait: New file.
1693 * lib/sys_wait.in.h: New file, partially copied from
1695 * m4/sys_wait_h.m4: New file.
1696 * doc/posix-headers/sys_wait.texi: Mention the new module.
1698 2008-10-19 Bruno Haible <bruno@clisp.org>
1700 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
1702 2008-10-19 Bruno Haible <bruno@clisp.org>
1704 Assume that waitpid() fills an 'int' status, not a 'union wait'.
1705 * lib/wait-process.c (WAIT_T): Remove type.
1706 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
1707 (wait_subprocess): Update.
1709 2008-10-19 Bruno Haible <bruno@clisp.org>
1712 * modules/atoll: New file.
1713 * lib/stdlib.in.h (atoll): New declaration.
1714 * lib/atoll.c: New file, from glibc with modifications.
1715 * m4/atoll.m4: New file.
1716 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
1718 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
1719 * doc/posix-functions/atoll.texi: Mention the new module.
1721 2008-10-19 Bruno Haible <bruno@clisp.org>
1723 Add strtoull() declaration to <stdlib.h>.
1724 * lib/stdlib.in.h (strtoull): New declaration.
1725 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
1727 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
1729 * modules/strtoull (Depends-on): Add stdlib.
1730 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1731 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
1734 2008-10-19 Bruno Haible <bruno@clisp.org>
1736 Add strtoll() declaration to <stdlib.h>.
1737 * lib/stdlib.in.h (strtoll): New declaration.
1738 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
1740 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
1742 * modules/strtoll (Depends-on): Add stdlib.
1743 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1744 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
1746 2008-10-19 Bruno Haible <bruno@clisp.org>
1748 * modules/bcopy (Depends-on): Add strings.
1749 (Include): Specify <strings.h>.
1751 2008-10-19 Bruno Haible <bruno@clisp.org>
1753 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
1755 2008-10-19 Bruno Haible <bruno@clisp.org>
1757 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
1758 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
1761 2008-10-19 Bruno Haible <bruno@clisp.org>
1763 * lib/atanl.c: Don't include isnanl.h.
1764 * lib/cosl.c: Likewise.
1765 * lib/ldexpl.c: Likewise.
1766 * lib/logl.c: Likewise.
1767 * lib/sinl.c: Likewise.
1768 * lib/sqrtl.c: Likewise.
1769 * lib/tanl.c: Likewise.
1771 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
1772 * lib/isnanf.h: Remove file.
1773 * lib/isnand.h: Remove file.
1774 * lib/isnanl.h: Remove file.
1775 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
1776 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
1778 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
1779 HAVE_ISNANF, don't define it as a C macro.
1780 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
1781 HAVE_ISNAND, don't define it as a C macro.
1782 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
1783 HAVE_ISNANL, don't define it as a C macro.
1784 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
1786 * modules/isnanf (Files): Remove lib/isnanf.h.
1787 (Depends-on): Add math.
1788 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
1789 (Include): Specify <math.h> instead of isnanf.h.
1790 * modules/isnand (Files): Remove lib/isnand.h.
1791 (Depends-on): Add math.
1792 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
1793 (Include): Specify <math.h> instead of isnand.h.
1794 * modules/isnanl (Files): Remove lib/isnanl.h.
1795 (Depends-on): Add math.
1796 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
1797 (Include): Specify <math.h> instead of isnanl.h.
1798 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
1800 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
1801 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
1802 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
1803 * NEWS: Mention the change.
1805 2008-10-18 Bruno Haible <bruno@clisp.org>
1807 Add getusershell(), setusershell(), endusershell() declarations to
1809 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
1811 * lib/getusershell.c: Include unistd.h.
1812 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
1813 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
1815 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
1816 and HAVE_GETUSERSHELL.
1817 * modules/getusershell (Depends-on): Add unistd, extensions.
1818 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1819 (Include): Specify <unistd.h>.
1820 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
1823 2008-10-18 Bruno Haible <bruno@clisp.org>
1825 Add a getloadavg() declaration to <stdlib.h>.
1826 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
1827 getloadavg declaration.
1828 (getloadavg): New declaration.
1829 * lib/getloadavg.c: Include <stdlib.h> first.
1830 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
1831 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
1832 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
1833 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
1834 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
1835 * modules/getloadavg (Depends-on): Add stdlib, extensions.
1836 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1837 (Include): Specify <stdlib.h>.
1838 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
1839 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
1841 2008-10-18 Bruno Haible <bruno@clisp.org>
1843 * lib/dirchownmod.c: Don't include lchmod.h.
1845 Move the lchmod() declaration to <sys/stat.h>.
1846 * lib/lchmod.h: Remove file.
1847 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
1848 (lchmod): New declaration, moved here from lib/lchown.h.
1849 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
1850 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
1851 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
1853 * modules/lchmod (Files): Remove lib/lchmod.h.
1854 (Depends-on): Add sys_stat, extensions.
1855 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
1856 (Include): Specify <sys/stat.h> instead of lchmod.h.
1857 * modules/sys_stat (Depends-on): Add link-warning.
1858 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
1859 definition of GL_LINK_WARNING.
1860 * NEWS: Mention the change.
1862 2008-10-18 Bruno Haible <bruno@clisp.org>
1864 * lib/fchdir.c: Don't include dirfd.h.
1865 * lib/fts.c: Likewise.
1866 * lib/getcwd.c: Likewise.
1867 * lib/glob.c: Likewise.
1869 Move the dirfd() declaration to <dirent.h>.
1870 * lib/dirfd.h: Remove file.
1871 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
1872 (dirfd): New declaration.
1873 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
1874 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
1875 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
1877 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
1879 * modules/dirfd (Files): Remove lib/dirfd.h.
1880 (Depends-on): Add dirent, extensions.
1881 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
1882 (Include): Specify <dirent.h> instead of dirfd.h.
1883 * modules/dirent (Depends-on): Add link-warning.
1884 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
1885 definition of GL_LINK_WARNING.
1886 * NEWS: Mention the change.
1888 2008-10-18 Bruno Haible <bruno@clisp.org>
1890 Move the euidaccess() declaration to <unistd.h>.
1891 * lib/euidaccess.h: Remove file.
1892 * lib/unistd.in.h (euidaccess): New declaration.
1893 * lib/euidaccess.c: Don't include euidaccess.h.
1894 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
1895 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
1896 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
1897 and HAVE_EUIDACCESS.
1898 * modules/euidaccess (Files): Remove lib/euidaccess.h.
1899 (Depends-on): Add unistd.
1900 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1901 (Include): Specify <unistd.h> instead of euidaccess.h.
1902 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
1904 * NEWS: Mention the change.
1906 2008-10-18 Bruno Haible <bruno@clisp.org>
1908 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
1910 Move the getdomainname() declaration to <unistd.h>.
1911 * lib/getdomainname.h: Remove file.
1912 * lib/unistd.in.h (getdomainname): New declaration.
1913 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
1914 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
1915 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
1917 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1918 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
1919 * modules/getdomainname (Files): Remove lib/getdomainname.h.
1920 (Depends-on): Add unistd, extensions.
1921 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1922 (Includes): Specify <unistd.h> instead of getdomainname.h.
1923 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
1925 * NEWS: Mention the change.
1927 2008-10-18 Bruno Haible <bruno@clisp.org>
1929 * modules/dirent: New file.
1930 * m4/dirent_h.m4: New file.
1931 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
1932 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
1933 * modules/fchdir (Files): Remove lib/dirent.in.h.
1934 (Depends-on): Add dirent.
1935 (Makefile.am): Move rules to modules/dirent.
1936 * doc/posix-headers/dirent.texi: Mention the new module.
1938 2008-10-18 Bruno Haible <bruno@clisp.org>
1940 Avoid -Wunused-parameter warnings in public gnulib header files.
1941 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
1943 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
1945 2008-10-18 Bruno Haible <bruno@clisp.org>
1947 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
1948 * doc/glibc-functions/error.texi: Mention the module 'error'.
1949 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
1950 * doc/glibc-functions/getdomainname.texi: Mention the module
1952 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
1953 * doc/glibc-functions/getpagesize.texi: Mention the module
1955 * doc/glibc-functions/getusershell.texi: Mention the module
1957 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
1958 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
1959 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
1960 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
1961 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
1962 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
1963 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
1964 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
1965 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
1966 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
1967 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
1968 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
1969 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
1970 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
1972 2008-10-17 Bruno Haible <bruno@clisp.org>
1974 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
1975 HP-UX and IRIX, use -0.0L.
1976 * tests/test-ceill.c (minus_zero): Likewise.
1977 * tests/test-floorl.c (minus_zero): Likewise.
1978 * tests/test-frexpl.c (minus_zero): Likewise.
1979 * tests/test-isnan.c (minus_zerol): Likewise.
1980 * tests/test-isnanl.h (minus_zero): Likewise.
1981 * tests/test-ldexpl.c (minus_zero): Likewise.
1982 * tests/test-roundl.c (minus_zero): Likewise.
1983 * tests/test-signbit.c (minus_zerol): Likewise.
1984 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
1985 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
1986 * tests/test-truncl.c (minus_zero): Likewise.
1987 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
1988 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
1989 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
1990 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
1992 2008-10-17 Bruno Haible <bruno@clisp.org>
1994 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
1995 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
1996 that it gets activated only for gcc >= 3.0.
1997 * lib/dirent.in.h: Likewise.
1998 * lib/errno.in.h: Likewise.
1999 * lib/fcntl.in.h: Likewise.
2000 * lib/float.in.h: Likewise.
2001 * lib/iconv.in.h: Likewise.
2002 * lib/inttypes.in.h: Likewise.
2003 * lib/locale.in.h: Likewise.
2004 * lib/math.in.h: Likewise.
2005 * lib/netdb.in.h: Likewise.
2006 * lib/netinet_in.in.h: Likewise.
2007 * lib/search.in.h: Likewise.
2008 * lib/signal.in.h: Likewise.
2009 * lib/spawn.in.h: Likewise.
2010 * lib/stdarg.in.h: Likewise.
2011 * lib/stdint.in.h: Likewise.
2012 * lib/stdio.in.h: Likewise.
2013 * lib/stdlib.in.h: Likewise.
2014 * lib/string.in.h: Likewise.
2015 * lib/strings.in.h: Likewise.
2016 * lib/sys_file.in.h: Likewise.
2017 * lib/sys_ioctl.in.h: Likewise.
2018 * lib/sys_select.in.h: Likewise.
2019 * lib/sys_socket.in.h: Likewise.
2020 * lib/sys_stat.in.h: Likewise.
2021 * lib/sys_time.in.h: Likewise.
2022 * lib/sysexits.in.h: Likewise.
2023 * lib/time.in.h: Likewise.
2024 * lib/unistd.in.h: Likewise.
2025 * lib/wchar.in.h: Likewise.
2026 * lib/wctype.in.h: Likewise.
2027 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2029 2008-10-17 Jim Meyering <meyering@redhat.com>
2031 ignore-value: don't depend on inline module
2032 * modules/ignore-value (Depends-on): Remove 'inline'.
2033 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
2034 Suggestion from Bruno Haible.
2036 2008-10-17 Bruno Haible <bruno@clisp.org>
2038 New implementation of condition variables for Win32.
2039 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
2040 (gl_linked_waitqueue_t): New type.
2041 (gl_cond_t): Use it.
2042 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
2043 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
2044 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
2045 (glthread_cond_init_func, glthread_cond_wait_func,
2046 glthread_cond_timedwait_func, glthread_cond_signal_func,
2047 glthread_cond_broadcast_func, glthread_cond_destroy_func):
2048 Reimplemented on the basis of gl_linked_waitqueue_t.
2049 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
2051 (gl_rwlock_t): Update.
2052 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
2054 2008-10-17 Simon Josefsson <simon@josefsson.org>
2056 * modules/recvfrom (Depends-on): Add dependency on getpeername.
2057 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
2059 2008-10-17 Jim Meyering <meyering@redhat.com>
2061 ignore-value: new module
2062 * modules/ignore-value: New file.
2063 * lib/ignore-value.h: New file.
2064 * MODULES.html.sh (Compiler warning management): New section,
2065 just for this module. More to come.
2067 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
2069 open-safer.c: avoid 'signed and unsigned in conditional...' warning
2070 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
2071 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
2073 2008-10-16 Jim Meyering <meyering@redhat.com>
2075 openat-die.c: avoid 'no previous prototype' warning
2076 * lib/openat-die.c: Include "openat.h".
2077 Reported by Reuben Thomas <rrt@sc3d.org>.
2079 2008-10-16 Simon Josefsson <simon@josefsson.org>
2081 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
2082 * lib/netdb.in.h: Fix typo.
2083 Reported by Bruno Haible <bruno@clisp.org>
2085 * lib/netdb.in.h: Include sys/socket.h for platforms without
2086 netdb.h, to get structures like hostent on MinGW.
2087 * modules/netdb (Depends-on): Add sys_socket.
2089 2008-10-15 Simon Josefsson <simon@josefsson.org>
2091 * modules/netdb, modules/netdb-tests: New file.
2092 * m4/netdb_h.m4: New file.
2093 * lib/netdb.in.h: Add, currently just an empty file pending
2095 * tests/test-netdb.c: New file.
2096 * doc/posix-headers/netdb.texi: Mention that we replace it if
2098 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
2101 2008-10-15 Simon Josefsson <simon@josefsson.org>
2103 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
2106 2008-10-13 Bruno Haible <bruno@clisp.org>
2108 * lib/glthread/cond.c (glthread_cond_wait_func,
2109 glthread_cond_timedwait_func): Add a comment.
2111 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
2113 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
2114 * tests/test-select.c: Likewise,
2116 2008-10-13 Bruno Haible <bruno@clisp.org>
2118 * lib/glthread/cond.c (glthread_cond_wait_func,
2119 glthread_cond_timedwait_func): Fix variable name.
2120 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
2122 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
2124 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
2125 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
2126 struct sockaddr.sa_len.
2127 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
2129 2008-10-13 Simon Josefsson <simon@josefsson.org>
2131 * build-aux/pmccabe2html: Add css and css_url parameters.
2133 2008-10-12 Bruno Haible <bruno@clisp.org>
2135 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
2137 Reported by Rainer Tammer <tammer@tammer.net>.
2139 2008-10-12 Bruno Haible <bruno@clisp.org>
2141 Use msvcrt aware primitives for creation/termination of Win32 threads.
2142 * lib/glthread/thread.c: Include <process.h>.
2143 (glthread_create_func): Use _beginthreadex instead of CreateThread.
2144 (wrapper_func): Update signature.
2145 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
2147 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
2148 Bruno Haible <bruno@clisp.org>
2150 Provide a Win32 implementation of the 'cond' module.
2151 * lib/glthread/cond.h [USE_WIN32]: New implementation.
2152 * lib/glthread/cond.c (glthread_cond_init_func,
2153 glthread_cond_wait_func, glthread_cond_timedwait_func,
2154 glthread_cond_signal_func, glthread_cond_broadcast_func,
2155 glthread_cond_destroy_func) [USE_WIN32]: New functions.
2156 * modules/cond (Dependencies): Add gettimeofday.
2158 2008-10-11 Bruno Haible <bruno@clisp.org>
2160 Make sleep work on older versions of mingw.
2161 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
2162 only whether it exists.
2163 * doc/posix-functions/sleep.texi: Mention the problem with older
2166 2008-10-11 Bruno Haible <bruno@clisp.org>
2168 New module 'shutdown'.
2169 * modules/shutdown: New file.
2170 * lib/sys_socket.in.h (shutdown): New declaration.
2171 * lib/winsock.c (shutdown): New function.
2172 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
2174 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
2175 * doc/posix-functions/shutdown.texi: Document the new module.
2177 2008-10-11 Jim Meyering <meyering@redhat.com>
2179 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
2181 2008-10-11 Bruno Haible <bruno@clisp.org>
2183 New module 'fclose'.
2184 * modules/fclose: New file.
2185 * lib/stdio.in.h (fclose): New declaration.
2186 * lib/fclose.c: New file.
2187 * m4/fclose.m4: New file.
2188 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
2190 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
2191 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
2193 * modules/close (Depends-on): fclose.
2194 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
2196 2008-10-11 Bruno Haible <bruno@clisp.org>
2198 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
2199 set errno and don't call _close.
2201 2008-10-10 Bruno Haible <bruno@clisp.org>
2203 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
2204 ACL, not afterwards. Fixes test failure on Cygwin.
2206 2008-10-09 Ben Pfaff <blp@gnu.org>
2208 * build-aux/announce-gen: Fix gnulib version related part of usage
2209 message. Die with a useful error message if no tarballs are
2212 2008-10-10 Jim Meyering <meyering@redhat.com>
2214 bootstrap: use git's --depth=N option only if it's supported
2215 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
2216 recognize the --depth option. Reported by Pádraig Brady.
2218 2008-10-09 Bruno Haible <bruno@clisp.org>
2221 * modules/ioctl: New file.
2222 * lib/sys_socket.in.h (ioctl): Remove declaration.
2223 * lib/winsock.c: Include <sys/ioctl.h>.
2224 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
2225 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
2226 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
2227 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
2228 * doc/posix-functions/ioctl.texi: Mention the new module.
2230 2008-10-09 Bruno Haible <bruno@clisp.org>
2232 New module 'sys_ioctl'.
2233 * lib/sys_ioctl.in.h: New file.
2234 * m4/sys_ioctl_h.m4: New file.
2235 * modules/sys_ioctl: New file.
2236 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
2238 2008-10-09 Bruno Haible <bruno@clisp.org>
2240 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
2241 * lib/winsock.c: Include <stdarg.h>.
2242 (rpl_ioctl): Change to second argument 'int' and then varargs.
2244 2008-10-09 Bruno Haible <bruno@clisp.org>
2246 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
2247 when the sys_socket module is present and the system has <winsock2.h>.
2249 2008-10-09 Bruno Haible <bruno@clisp.org>
2251 * doc/posix-functions/close.texi: Mention module 'close' instead of
2252 module 'sys_socket'.
2254 2008-10-09 Bruno Haible <bruno@clisp.org>
2256 * doc/glibc-headers/sys_ioctl.texi: New file.
2257 * doc/gnulib.texi: Include it.
2259 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
2260 Bruno Haible <bruno@clisp.org>
2262 Combine the two replacements of 'close'.
2263 * lib/sys_socket.in.h (close): Define to a reminder to include
2265 (_gl_close_fd_maybe_socket): New declaration.
2266 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
2267 * lib/winsock.c (close): Remove undefinition.
2268 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
2269 needed for the gnulib module 'close'.
2270 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
2271 define to an error symbol or to a warning, if suitable.
2272 * lib/close.c: Include <sys/socket.h>.
2273 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
2274 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
2275 UNISTD_H_HAVE_WINSOCK2_H.
2276 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
2277 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2278 UNISTD_H_HAVE_WINSOCK2_H.
2279 * modules/sys_socket (Files): Add m4/unistd_h.m4.
2280 (configure.ac): Set a module indicator.
2281 (Makefile.am): Substitute GNULIB_CLOSE.
2282 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
2283 * modules/poll-tests (Depends-on): Add close.
2284 * modules/select-tests (Depends-on): Likewise.
2286 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
2287 Bruno Haible <bruno@clisp.org>
2290 * modules/close: New file.
2291 * lib/unistd.in.h (close): Move declaration out of the
2292 FCHDIR_REPLACEMENT scope.
2293 (_gl_unregister_fd): New declaration.
2294 * lib/close.c: New file.
2295 * lib/fchdir.c (rpl_close): Remove function.
2296 * m4/close.m4: New file.
2297 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
2299 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
2301 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
2303 * modules/fchdir (Depends-on): Add close.
2305 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
2306 Bruno Haible <bruno@clisp.org>
2308 * lib/fcntl.in.h (open): Simplify conditionals.
2309 (_gl_register_fd): New declaration.
2310 * lib/fchdir.c (rpl_open): Remove function.
2311 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
2313 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
2314 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
2317 2008-10-09 Jim Meyering <meyering@redhat.com>
2319 GNUmakefile: use the more name-space-friendly "_version"
2320 * top/GNUmakefile (_dummy): Update.
2321 (_version): Rename from "version".
2323 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
2324 Bruno Haible <bruno@clisp.org>
2326 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
2328 (_gl_register_fd): New function, extracted from rpl_open.
2329 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
2330 (rpl_open, rpl_opendir): Use _gl_register_fd.
2332 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
2334 Fix organization of 'open' replacement.
2335 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
2336 (gl_FUNC_OPEN): Use it.
2337 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
2339 2008-10-08 Bruno Haible <bruno@clisp.org>
2341 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
2343 2008-10-08 Simon Josefsson <simon@josefsson.org>
2345 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
2346 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
2349 2008-10-08 Eric Blake <ebb9@byu.net>
2351 GNUmakefile: add 'make version' target
2352 * top/GNUmakefile (_curr-ver): Split version update rules...
2353 (version): ...into a target.
2355 2008-10-07 Bruno Haible <bruno@clisp.org>
2357 Use a more portable replacement expression for -0.0L.
2358 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
2359 instead of -0.0L. Fix m4 quotation.
2361 * tests/test-signbit.c: Include <float.h>.
2362 (minus_zero): New variable.
2363 (test_signbitl): Use minus_zero instead of -zero.
2364 * modules/signbit-tests (Depends-on): Add float.
2366 * tests/test-ceill.c: Include <float.h>.
2367 (zero): Remove variable.
2368 (minus_zero): New variable.
2369 (main): Use minus_zero instead of -zero.
2370 * modules/ceill-tests (Depends-on): Add float.
2372 * tests/test-floorl.c: Include <float.h>.
2373 (zero): Remove variable.
2374 (minus_zero): New variable.
2375 (main): Use minus_zero instead of -zero.
2376 * modules/floorl-tests (Depends-on): Add float.
2378 * tests/test-roundl.c: Include <float.h>.
2379 (zero): Remove variable.
2380 (minus_zero): New variable.
2381 (main): Use minus_zero instead of -zero.
2382 * modules/roundl-tests (Depends-on): Add float.
2384 * tests/test-truncl.c: Include <float.h>.
2385 (zero): Remove variable.
2386 (minus_zero): New variable.
2387 (main): Use minus_zero instead of -zero.
2388 * modules/truncl-tests (Depends-on): Add float.
2390 * tests/test-frexpl.c (zero): Remove variable.
2391 (minus_zero): New variable.
2392 (main): Use minus_zero instead of -zero.
2393 * modules/frexpl-tests (Depends-on): Add float.
2395 * tests/test-isnan.c (zerol): Remove variable.
2396 (minus_zerol): New variable.
2397 (test_long_double): Use minus_zerol instead of -zerol.
2398 * modules/isnan-tests (Depends-on): Add float.
2400 * tests/test-isnanl.h (zero): Remove variable.
2401 (minus_zero): New variable.
2402 (main): Use minus_zero instead of -zero.
2403 * modules/isnanl-nolibm-tests (Depends-on): Add float.
2404 * modules/isnanl-tests (Depends-on): Add float.
2406 * tests/test-ldexpl.c (zero): Remove variable.
2407 (minus_zero): New variable.
2408 (main): Use minus_zero instead of -zero.
2409 * modules/ldexpl-tests (Depends-on): Add float.
2411 * tests/test-snprintf-posix.h (zerol): Remove variable.
2412 (minus_zerol): New variable.
2413 (test_function): Use minus_zerol instead of -zerol.
2414 * modules/snprintf-posix-tests (Depends-on): Add float.
2415 * modules/vsnprintf-posix-tests (Depends-on): Add float.
2417 * tests/test-sprintf-posix.h (zerol): Remove variable.
2418 (minus_zerol): New variable.
2419 (test_function): Use minus_zerol instead of -zerol.
2420 * modules/sprintf-posix-tests (Depends-on): Add float.
2421 * modules/vsprintf-posix-tests (Depends-on): Add float.
2423 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
2424 (minus_zerol): New variable.
2425 (test_function): Use minus_zerol instead of -zerol.
2426 * modules/vasnprintf-posix-tests (Depends-on): Add float.
2428 * tests/test-vasprintf-posix.c (zerol): Remove variable.
2429 (minus_zerol): New variable.
2430 (test_function): Use minus_zerol instead of -zerol.
2431 * modules/vasprintf-posix-tests (Depends-on): Add float.
2433 2008-10-07 Simon Josefsson <simon@josefsson.org>
2435 * MODULES.html.sh (Support for building documentation): Mention
2436 pmccabe2html. Sort entries.
2438 Add pmccabe2html module, from gnupdf.
2439 * build-aux/pmccabe.css: New file.
2440 * build-aux/pmccabe2html: New file.
2441 * m4/pmccabe2html.m4: New file.
2442 * modules/pmccabe2html: New file.
2444 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
2447 * MODULES.html.sh: Add to list of modules.
2448 * lib/flock.c: flock implementation for Windows and Unix systems
2450 * doc/glibc-functions/flock.texi: Update documentation.
2451 * lib/sys_file.in.h: <sys/file.h> header file.
2452 * m4/flock.m4: M4 macros.
2453 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
2454 * modules/flock: flock module.
2455 * modules/flock-tests: flock tests module.
2456 * modules/sys_file: sys/file.h module.
2457 * tests/test-flock.c: test suite for flock.
2459 2008-10-06 Jim Meyering <meyering@redhat.com>
2461 bootstrap: check for LT_INIT more portably still ;-)
2462 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
2463 Spotted by Bruno Haible.
2465 2008-10-06 Eric Blake <ebb9@byu.net>
2467 test-signbit: avoid tripping Irix cc bug on -0.0L
2468 * tests/test-signbit.c (minus_zerol): Delete, and replace with
2469 '-zerol'. This may break on HP-UX/hppa, but at least makes the
2470 entire testsuite consistent and avoids an Irix 6.2 bug.
2472 2008-10-05 Bruno Haible <bruno@clisp.org>
2473 Jim Meyering <jim@meyering.net>
2475 Add an option for ignoring EPIPE during close_stdout.
2476 * lib/closeout.h: Include <stdbool.h>.
2477 (close_stdout_set_ignore_EPIPE): New declaration.
2478 * lib/closeout.c: Include <stdbool.h>.
2479 (ignore_EPIPE): New variable.
2480 (close_stdout_set_ignore_EPIPE): New function.
2481 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
2482 * lib/close-stream.c (close_stream): Mention the possible EPIPE
2484 * modules/closeout (Depends-on): Add stdbool.
2486 2008-10-05 Bruno Haible <bruno@clisp.org>
2488 * modules/accept: New file.
2489 * modules/bind: New file.
2490 * modules/connect: New file.
2491 * modules/getpeername: New file.
2492 * modules/getsockname: New file.
2493 * modules/getsockopt: New file.
2494 * modules/listen: New file.
2495 * modules/recv: New file.
2496 * modules/recvfrom: New file.
2497 * modules/send: New file.
2498 * modules/sendto: New file.
2499 * modules/setsockopt: New file.
2500 * modules/socket: New file.
2501 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
2502 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2503 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
2504 the particular module is requested. Add a link warning when the
2505 particular module is not requested.
2506 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
2507 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
2508 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
2509 the particular module is requested.
2510 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
2511 gl_SYS_SOCKET_H_DEFAULTS): New macros.
2512 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
2513 * modules/sys_socket (Depends-on): Add link-warning.
2514 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
2515 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
2516 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
2517 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
2519 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
2520 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
2521 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
2522 * doc/posix-functions/getpeername.texi: Mention the new module
2524 * doc/posix-functions/getsockname.texi: Mention the new module
2526 * doc/posix-functions/getsockopt.texi: Mention the new module
2528 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
2529 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
2530 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
2531 * doc/posix-functions/send.texi: Mention the new module 'send'.
2532 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
2533 * doc/posix-functions/setsockopt.texi: Mention the new module
2535 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
2536 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
2537 listen, connect, accept.
2538 * modules/select-tests (Depends-on): Likewise.
2540 2008-10-05 Bruno Haible <bruno@clisp.org>
2542 * lib/winsock.c (strerror): Remove unused #undef.
2543 (rpl_close): Remove unused local variable.
2545 * modules/sys_socket (Depends-on); Add errno.
2547 2008-10-05 Bruno Haible <bruno@clisp.org>
2549 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
2550 (select): Add a link warning when the 'select' module is not used.
2551 * modules/sys_select (Depends-on): Add link-warning.
2552 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
2553 Suggested by Paolo Bonzini.
2555 2008-10-05 Jim Meyering <meyering@redhat.com>
2557 bootstrap: check for LT_INIT more portably
2558 * build-aux/bootstrap: Avoid using grep -E, since it's not
2559 portable enough. Suggestion from Bruno Haible.
2561 2008-10-05 Bruno Haible <bruno@clisp.org>
2563 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
2564 as being fixed by gnulib.
2566 2008-10-05 Bruno Haible <bruno@clisp.org>
2568 * modules/select-tests: New file, mostly copied from
2569 modules/sys_select-tests.
2570 * tests/test-select.c: New file, mostly copied from
2571 tests/test-sys_select.c.
2572 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
2573 * modules/sys_select-tests (Depends-on): Remove all dependencies.
2574 (Makefile.am): Remove test_sys_select_LDADD.
2576 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
2577 to an undefined symbol, for an error message.
2578 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
2579 (gl_SYS_SELECT_H_DEFAULTS): New macro.
2580 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
2581 winsock-select.c here.
2582 * modules/sys_select (Files): Remove lib/winsock-select.c.
2583 (Depends-on): Remove alloca.
2584 (Makefile.am): Substitute GNULIB_SELECT.
2585 * modules/select: New file.
2586 * doc/posix-functions/select.texi: Update.
2588 2008-10-05 Bruno Haible <bruno@clisp.org>
2590 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
2591 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
2592 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
2593 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
2595 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
2596 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
2598 2008-10-05 Bruno Haible <bruno@clisp.org>
2600 * modules/getdtablesize-tests: New file.
2601 * tests/test-getdtablesize.c: New file.
2603 New module 'getdtablesize'.
2604 * lib/unistd.in.h (getdtablesize): New declaration.
2605 * lib/getdtablesize.c: New file.
2606 * m4/getdtablesize.m4: New file.
2607 * modules/getdtablesize: New file.
2608 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2609 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
2610 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
2612 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
2614 2008-10-05 Bruno Haible <bruno@clisp.org>
2616 * modules/sched (Makefile.am): Fix typo.
2617 Reported by Simon Josefsson.
2619 2008-10-05 Jim Meyering <meyering@redhat.com>
2621 bootstrap: check for LT_INIT, too
2622 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
2623 are deprecated. Suggestion from Ralf Wildenhues.
2625 2008-10-05 Bruno Haible <bruno@clisp.org>
2627 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
2628 overriding them by ours.
2629 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
2631 2008-10-05 Jim Meyering <meyering@redhat.com>
2633 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
2634 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
2635 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
2637 2008-10-04 Bruno Haible <bruno@clisp.org>
2639 * modules/dup2 (License): Change to LGPLv2+.
2640 * modules/sleep (License): Likewise.
2641 * modules/perror (License): Likewise.
2642 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
2644 * modules/signal (License): Likewise.
2645 * modules/sigprocmask (License): Likewise.
2646 * modules/raise (License): Change to LGPLv2+, with approval by Jim
2649 2008-10-04 Bruno Haible <bruno@clisp.org>
2651 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
2652 Reported by Rainer Tammer <tammer@tammer.net>.
2654 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
2655 Bruno Haible <bruno@clisp.org>
2657 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
2658 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
2659 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
2661 2008-10-03 Kamil Dudka <kdudka@redhat.com>
2663 filevercmp: new module
2664 * lib/filevercmp.h: New function filevercmp comparing version strings.
2665 * lib/filevercmp.c: Implementation of filevercmp function.
2666 * modules/filevercmp: Module metadata.
2667 * tests/test-filevercmp.c: Unit test for new module.
2668 * modules/filevercmp-tests: Unit test metadata.
2669 * MODULES.html.sh: Add filevercmp module.
2671 2008-10-03 Bruno Haible <bruno@clisp.org>
2673 * lib/c-ctype.h: Add comment.
2674 Reported by Jim Meyering.
2676 2008-10-02 Bruno Haible <bruno@clisp.org>
2678 * modules/posix_spawn-internal (Depends-on): Add 'open'.
2680 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
2682 * build-aux/bootstrap: Allow renaming bootstrap, and change the
2683 name of bootstrap.conf accordingly.
2685 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
2687 * build-aux/bootstrap: Install git-merge-changelog configuration
2688 items into .gitconfig if needed.
2690 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
2692 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
2693 git repository, and initialize/update it accordingly.
2695 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
2697 * modules/fsync-tests: New file.
2698 * tests/test-fsync.c: New file.
2701 * lib/fsync.c: New file.
2702 * m4/fsync.m4: New file.
2703 * modules/fsync: New file.
2704 * lib/unistd.in.h (fsync): New declaration.
2705 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
2706 GNULIB_FSYNC and HAVE_FSYNC.
2707 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
2708 * MODULES.html.sh (posix_functions): Add fsync.
2709 * doc/posix-functions/fsync.texi: Mention the new module.
2711 2008-10-02 Jim Meyering <meyering@redhat.com>
2713 fts.c: sync with similar code from coreutils' remove.c
2714 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
2715 Guard also with "#if defined __linux__", since for now at least,
2716 this code is Linux-kernel-specific.
2718 2008-10-02 Jim Meyering <meyering@redhat.com>
2721 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
2722 Include <sys/vfs.h>, not <sys/statfs.h>.
2724 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
2725 Include <sys/vfs.h>, not <sys/statfs.h>.
2727 2008-10-01 Bruno Haible <bruno@clisp.org>
2729 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
2730 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
2731 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
2732 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
2733 * doc/posix-functions/posix_spawnp.texi: Likewise.
2734 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
2735 whether posix_spawn actually works.
2736 * m4/pipe.m4 (gl_PIPE): Likewise.
2737 * modules/execute (Files): Add m4/posix_spawn.m4.
2738 * modules/pipe (Files): Add m4/posix_spawn.m4.
2739 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
2741 2008-10-01 Jim Meyering <meyering@redhat.com>
2743 remove trailing spaces
2745 * lib/poll.c (poll): Likewise.
2746 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
2747 * lib/winsock.c (rpl_close): Likewise.
2748 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
2749 * modules/yield: Likewise.
2750 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
2751 * tests/test-sys_select.c (connect_to_socket): Likewise.
2753 fts.c: adjust a new interface to be more generally useful
2754 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
2755 (fts_build): Adjust caller.
2757 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2759 * modules/cond-tests: New file.
2760 * tests/test-cond.c: New file.
2762 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2763 Bruno Haible <bruno@clisp.org>
2765 * modules/cond (Dependencies): Add errno, time.
2766 * lib/glthread/cond.h: Include <time.h>.
2767 (gl_cond_define, gl_cond_define_initialized): Use the same definition
2770 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2771 Bruno Haible <bruno@clisp.org>
2773 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
2775 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2776 Bruno Haible <bruno@clisp.org>
2778 * modules/tls-tests (Depends-on): Add thread, yield.
2779 (configure.ac): Remove all checks.
2780 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
2781 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
2782 gl_thread_self): Remove definitions. Include glthread/thread.h and
2783 glthread/yield.h instead.
2784 (test_tls): Pass an additional NULL argument to gl_thread_join.
2786 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2787 Bruno Haible <bruno@clisp.org>
2789 * modules/lock-tests (Depends-on): Add thread, yield.
2790 (configure.ac): Remove all checks.
2791 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
2792 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
2793 gl_thread_self): Remove definitions. Include glthread/thread.h and
2794 glthread/yield.h instead.
2795 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
2796 additional NULL argument to gl_thread_join.
2798 2008-09-30 Bruno Haible <bruno@clisp.org>
2800 Fix the Win32 implementation of the 'thread' module.
2801 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
2803 (gl_thread_self): Invoke gl_thread_self_func.
2804 (gl_thread_self_func): New declaration.
2805 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
2806 (do_init_self_key, init_self_key): New functions.
2807 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
2809 (running_threads, running_lock): Remove variables.
2810 (get_current_thread_handle): New function.
2811 (gl_thread_self_func, wrapper_func, glthread_create_func,
2812 glthread_join_func, gl_thread_exit_func): Largely rewritten and
2815 2008-09-30 Bruno Haible <bruno@clisp.org>
2817 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
2820 2008-09-30 Jim Meyering <meyering@redhat.com>
2822 fts.m4: correct the test for statfs.f_type
2823 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
2824 when checking for statfs.f_type.
2826 2008-09-15 Simon Josefsson <simon@josefsson.org>
2828 tests: avoid some compiler warnings
2829 * tests/test-memchr.c (main): Pass NULL indirectly.
2830 * tests/test-getdate.c (main): Remove unused variable 'ret'.
2832 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
2834 getdate.y: disallow countable dayshifts like "4 yesterday ago"
2835 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
2836 exactly specified dayshifts.
2837 (dayshift): New rule.
2838 (rel): Add dayshift.
2839 (relative_time_table) [tomorrow, yesterday, today, now]:
2840 Use tDAY_SHIFT in place of tDAY_UNIT.
2841 * tests/test-getdate.c: Add tests for now-disallowed countable
2842 dayshifts, e.g., "4 yesterday ago".
2844 2008-09-29 Bruno Haible <bruno@clisp.org>
2846 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
2847 * tests/test-posix_spawn1.in.sh: Renamed from
2848 tests/test-posix_spawn.in.sh.
2849 * tests/test-posix_spawn2.c: New file.
2850 * tests/test-posix_spawn2.in.sh: New file.
2851 * modules/posix_spawnp-tests (Files): Update.
2852 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
2854 2008-09-29 Bruno Haible <bruno@clisp.org>
2856 Propagate effects of putenv/setenv/unsetenv to child processes.
2857 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
2858 * lib/pipe.c (create_pipe): Likewise.
2860 2008-09-29 Bruno Haible <bruno@clisp.org>
2862 Enable use of shell scripts as executables in mingw.
2863 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
2864 run the program as a shell script.
2865 * lib/pipe.c (create_pipe): Likewise.
2866 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
2869 2008-09-29 Eric Blake <ebb9@byu.net>
2871 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
2873 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
2875 * doc/posix-functions/accept.texi: Update mingw problems.
2876 * doc/posix-functions/bind.texi: Update mingw problems.
2877 * doc/posix-functions/close.texi: Update mingw problems.
2878 * doc/posix-functions/connect.texi: Update mingw problems.
2879 * doc/posix-functions/getpeername.texi: Update mingw problems.
2880 * doc/posix-functions/getsockname.texi: Update mingw problems.
2881 * doc/posix-functions/getsockopt.texi: Update mingw problems.
2882 * doc/posix-functions/ioctl.texi: Update mingw problems.
2883 * doc/posix-functions/listen.texi: Update mingw problems.
2884 * doc/posix-functions/recv.texi: Update mingw problems.
2885 * doc/posix-functions/recvfrom.texi: Update mingw problems.
2886 * doc/posix-functions/select.texi: Update mingw problems.
2887 * doc/posix-functions/send.texi: Update mingw problems.
2888 * doc/posix-functions/sendto.texi: Update mingw problems.
2889 * doc/posix-functions/setsockopt.texi: Update mingw problems.
2890 * doc/posix-functions/socket.texi: Update mingw problems.
2892 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
2893 Bruno Haible <bruno@clisp.org>
2895 * lib/sys_select.in.h: Include sys/time.h.
2896 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
2897 * modules/sys_select: Depend on sys_time.
2898 * tests/test-sys_select.c: Test that sys/select.h defines struct
2901 2008-09-29 Bruno Haible <bruno@clisp.org>
2903 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
2904 * lib/sys_select.in.h: Likewise.
2906 2008-09-29 Bruno Haible <bruno@clisp.org>
2908 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
2910 2008-09-29 Bruno Haible <bruno@clisp.org>
2912 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
2913 Set LIBSOCKET instead of augmenting LIBS.
2914 * modules/sockets (Link): New section.
2915 * modules/sockets-tests (test_sockets_LDADD): New variable.
2916 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
2917 * modules/poll-tests (test_poll_LDADD): New variable.
2918 * NEWS: Document the change.
2920 2008-09-29 Bruno Haible <bruno@clisp.org>
2922 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
2923 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
2924 ARPA_INET_H directly.
2925 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2927 2008-09-28 Bruno Haible <bruno@clisp.org>
2929 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
2930 from gl_HEADER_SYS_SOCKET.
2931 (gl_HEADER_SYS_SOCKET): Invoke it.
2932 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2934 2008-09-28 Bruno Haible <bruno@clisp.org>
2936 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
2937 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
2938 Needed on OSF/1 4.0.
2940 2008-09-28 Bruno Haible <bruno@clisp.org>
2942 Override open more carefully.
2943 * lib/open.c (orig_open): New function.
2944 (rpl_open): Use orig_open instead of open.
2945 * lib/fcntl.in.h: Add special invocation convention.
2946 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
2947 (gl_FUNC_OPEN): Invoke it.
2949 Override freopen more carefully.
2950 * lib/freopen.c (orig_freopen): New function.
2951 (rpl_freopen): Use orig_freopen instead of freopen.
2952 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
2953 (gl_FUNC_FREOPEN): Invoke it.
2955 Override fopen more carefully.
2956 * lib/fopen.c (orig_fopen): New function.
2957 (rpl_fopen): Use orig_fopen instead of fopen.
2958 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
2959 (gl_FUNC_FOPEN): Invoke it.
2960 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
2962 2008-09-28 Bruno Haible <bruno@clisp.org>
2964 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
2967 2008-09-28 Bruno Haible <bruno@clisp.org>
2969 * tests/test-sigaction.c (handler, main): Disable the check whether
2970 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
2971 glibc systems with LinuxThreads.
2973 2008-09-28 Bruno Haible <bruno@clisp.org>
2975 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
2977 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
2979 * lib/fcntl.in.h (open): Likewise.
2980 Reported by Rainer Tammer <tammer@tammer.net>.
2982 2008-09-28 Bruno Haible <bruno@clisp.org>
2984 * modules/posix_spawnp-tests: New file.
2985 * tests/test-posix_spawn.c: New file.
2986 * tests/test-posix_spawn.in.sh: New file.
2988 New module 'posix_spawnp'.
2989 * modules/posix_spawnp: New file.
2990 * lib/spawnp.c: New file, from GNU libc with modifications.
2991 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
2993 New module 'posix_spawn'.
2994 * modules/posix_spawn: New file.
2995 * lib/spawn.c: New file, from GNU libc with modifications.
2996 * doc/posix-functions/posix_spawn.texi: Mention the new module.
2998 New module 'posix_spawnattr_destroy'.
2999 * modules/posix_spawnattr_destroy: New file.
3000 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
3001 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
3004 New module 'posix_spawnattr_setsigmask'.
3005 * modules/posix_spawnattr_setsigmask: New file.
3006 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
3008 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
3011 New module 'posix_spawnattr_getsigmask'.
3012 * modules/posix_spawnattr_getsigmask: New file.
3013 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
3015 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
3018 New module 'posix_spawnattr_setsigdefault'.
3019 * modules/posix_spawnattr_setsigdefault: New file.
3020 * lib/spawnattr_setdefault.c: New file, from GNU libc with
3022 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
3025 New module 'posix_spawnattr_getsigdefault'.
3026 * modules/posix_spawnattr_getsigdefault: New file.
3027 * lib/spawnattr_getdefault.c: New file, from GNU libc with
3029 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
3032 New module 'posix_spawnattr_setschedpolicy'.
3033 * modules/posix_spawnattr_setschedpolicy: New file.
3034 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
3036 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
3039 New module 'posix_spawnattr_getschedpolicy'.
3040 * modules/posix_spawnattr_getschedpolicy: New file.
3041 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
3043 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
3046 New module 'posix_spawnattr_setschedparam'.
3047 * modules/posix_spawnattr_setschedparam: New file.
3048 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
3050 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
3053 New module 'posix_spawnattr_getschedparam'.
3054 * modules/posix_spawnattr_getschedparam: New file.
3055 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
3057 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
3060 New module 'posix_spawnattr_setpgroup'.
3061 * modules/posix_spawnattr_setpgroup: New file.
3062 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
3064 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
3067 New module 'posix_spawnattr_getpgroup'.
3068 * modules/posix_spawnattr_getpgroup: New file.
3069 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
3071 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
3074 New module 'posix_spawnattr_setflags'.
3075 * modules/posix_spawnattr_setflags: New file.
3076 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
3077 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
3080 New module 'posix_spawnattr_getflags'.
3081 * modules/posix_spawnattr_getflags: New file.
3082 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
3083 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
3086 New module 'posix_spawnattr_init'.
3087 * modules/posix_spawnattr_init: New file.
3088 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
3089 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
3092 New module 'posix_spawn_file_actions_destroy'.
3093 * modules/posix_spawn_file_actions_destroy: New file.
3094 * lib/spawn_faction_destroy.c: New file, from GNU libc with
3096 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
3099 New module 'posix_spawn_file_actions_addopen'.
3100 * modules/posix_spawn_file_actions_addopen: New file.
3101 * lib/spawn_faction_addopen.c: New file, from GNU libc with
3103 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
3106 New module 'posix_spawn_file_actions_adddup2'.
3107 * modules/posix_spawn_file_actions_adddup2: New file.
3108 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
3110 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
3113 New module 'posix_spawn_file_actions_addclose'.
3114 * modules/posix_spawn_file_actions_addclose: New file.
3115 * lib/spawn_faction_addclose.c: New file, from GNU libc with
3117 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
3120 New module 'posix_spawn_file_actions_init'.
3121 * modules/posix_spawn_file_actions_init: New file.
3122 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
3123 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
3126 New module 'posix_spawn-internal'.
3127 * modules/posix_spawn-internal: New file.
3128 * lib/spawn_int.h: New file, from GNU libc with modifications.
3129 * lib/spawni.c: New file, from GNU libc with modifications.
3130 * m4/posix_spawn.m4: New file.
3133 * modules/spawn: New file.
3134 * lib/spawn.in.h: New file, from GNU libc with modifications.
3135 * m4/spawn_h.m4: New file.
3136 * doc/posix-headers/spawn.texi: Mention the new module.
3138 2008-09-28 Bruno Haible <bruno@clisp.org>
3140 * modules/sched-tests: New file.
3141 * tests/test-sched.c: New file.
3144 * modules/sched: New file.
3145 * lib/sched.in.h: New file.
3146 * m4/sched_h.m4: New file.
3147 * doc/posix-headers/sched.texi: Mention the new module.
3149 2008-09-27 Eric Blake <ebb9@byu.net>
3151 Fix previous patch, and tweak references to $0.
3152 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
3153 (func_version, func_gnulib_dir): Don't call this program
3155 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
3156 with using $0 in function.
3157 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
3158 (func_fatal_error): Reuse the name the user invoked us with.
3160 2008-09-27 Bruno Haible <bruno@clisp.org>
3162 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
3163 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
3164 (gl_ICONV_H): Not here.
3165 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
3166 instead of assigning ICONV_H directly.
3168 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
3169 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
3172 2008-09-27 Bruno Haible <bruno@clisp.org>
3174 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
3175 * modules/arpa_inet (Depends-on): Add link-warning.
3176 (Makefile.am): Insert the definition of GL_LINK-WARNING.
3177 * modules/unistd (Makefile.am): Likewise.
3179 2008-09-26 Bruno Haible <bruno@clisp.org>
3181 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
3183 (func_version): Essentially copied from gnulib-tool.
3184 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
3185 func_readlink): Copied from gnulib-tool.
3187 2008-09-26 Bruno Haible <bruno@clisp.org>
3189 * gnulib-tool (func_version): Change directory to $gnulib_dir before
3190 invoking git-version-gen.
3192 2008-09-26 Bruno Haible <bruno@clisp.org>
3194 * posix-modules: Update to directory names changed on 2008-01-19.
3195 Remove commas in output before splitting into words. No more need to
3196 avoid 'ftruncate' since 2007-02-19.
3198 2008-09-26 Bruno Haible <bruno@clisp.org>
3200 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
3202 2008-09-26 Bruno Haible <bruno@clisp.org>
3204 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
3205 * modules/fwriteerror (Depends-on): Add errno.
3207 2008-09-26 Bruno Haible <bruno@clisp.org>
3209 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
3210 * tests/test-vc-list-files-cvs.sh: Likewise.
3212 2008-09-26 Bruno Haible <bruno@clisp.org>
3214 * doc/posix-headers/sys_resource.texi: Reorder items.
3216 2008-09-26 Jim Meyering <meyering@redhat.com>
3218 fts: tweak inode comparison function
3219 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
3220 inode numbers, as documented.
3222 fts: sort dirent entries on inode number before traversing
3223 This avoids a quadratic, seek-related performance penalty when
3224 operating on a directory containing many entries (measurable at 10k;
3225 3.5 hours at 2 million entries with a cold cache) on certain types
3226 of file systems, including ext3 and ext4, but not tmpfs.
3227 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
3228 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
3229 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
3230 (fs_handles_readdir_ordered_dirents_efficiently): New function.
3231 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
3232 (fts_build): Set the stat.st_ino member from D_INO.
3233 If it is likely to be useful, sort dirent entries on inode number.
3235 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
3236 and the struct statfs.f_type member.
3237 * modules/fts (Depends-on): Add d-ino.
3239 2008-09-26 Bruno Haible <bruno@clisp.org>
3241 * modules/sigpipe-die (Depends-on): Add sigpipe.
3243 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
3244 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
3245 and GNULIB_STDIO_H_SIGPIPE are set.
3246 * lib/stdio-write.c: New file.
3247 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
3248 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
3249 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
3250 REPLACE_STDIO_WRITE_FUNCS.
3251 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
3252 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
3253 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
3254 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
3255 * modules/stdio (Files): Add lib/stdio-write.c.
3256 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
3257 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
3258 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
3259 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
3260 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
3261 REPLACE_FPRINTF_POSIX.
3262 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
3263 REPLACE_PRINTF_POSIX.
3264 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
3265 REPLACE_VFPRINTF_POSIX.
3266 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
3267 REPLACE_VPRINTF_POSIX.
3268 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
3270 * doc/posix-functions/fputc.texi: Likewise.
3271 * doc/posix-functions/fputs.texi: Likewise.
3272 * doc/posix-functions/fwrite.texi: Likewise.
3273 * doc/posix-functions/printf.texi: Likewise.
3274 * doc/posix-functions/putc.texi: Likewise.
3275 * doc/posix-functions/putchar.texi: Likewise.
3276 * doc/posix-functions/puts.texi: Likewise.
3277 * doc/posix-functions/vfprintf.texi: Likewise.
3278 * doc/posix-functions/vprintf.texi: Likewise.
3280 * modules/safe-write (Depends-on): Add write.
3282 * modules/sigpipe-tests: New file.
3283 * tests/test-sigpipe.c: New file.
3284 * tests/test-sigpipe.sh: New file.
3286 * modules/write: New file.
3287 * lib/unistd.in.h: Include <sys/types.h>.
3288 (write): New declaration.
3289 * lib/write.c: New file.
3290 * m4/write.m4: New file.
3291 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3292 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
3293 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
3294 GNULIB_WRITE, REPLACE_WRITE.
3295 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
3296 and the SIGPIPE issue.
3298 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
3299 (raise): New declaration.
3300 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
3301 (ext_signal): New function.
3302 (rpl_raise): New function.
3303 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
3304 GNULIB_SIGNAL_H_SIGPIPE.
3305 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
3306 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
3308 * modules/sigpipe: New file.
3309 * m4/sigpipe.m4: New file.
3311 2008-09-25 Derek Price <derek@ximbiot.com>
3312 Bruno Haible <bruno@clisp.org>
3314 * gnulib-tool (func_import): Report all license incompatibilities, not
3317 2008-09-25 Bruno Haible <bruno@clisp.org>
3319 * gnulib-tool (func_import): When computing the edits, consider not
3320 only the Makefile.ams that exist but also those that will be generated.
3322 2008-09-25 Simon Josefsson <simon@josefsson.org>
3324 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
3325 fixes gnulib-tool --test warning about duplicate dependency.
3327 2008-09-25 Bruno Haible <bruno@clisp.org>
3329 * gnulib-tool: Don't ask the user to perform edits in the generated
3331 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
3332 apply to the Makefile.am being generated.
3333 (func_emit_tests_Makefile_am): Execute edits that apply to the
3334 Makefile.am being generated.
3335 (func_import): Setup list of Makefile.am edits before emitting the
3336 Makefile.ams, not at the end.
3337 (func_create_testdir): Update.
3338 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
3340 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3342 * gnulib-tool (func_import): Store the --tests-base option in the
3343 comment in gnulib-cache.m4.
3345 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
3347 * NEWS: Document increased portability that sys_select now provides.
3349 * lib/sys_select.in.h: Install select wrapper.
3350 * lib/sys_socket.in.h: Use more descriptive name when there is no
3352 * lib/winsock-select.c: New.
3353 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
3354 Require gl_HEADER_SYS_SOCKET.
3355 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
3356 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
3357 * tests/test-sys_select.c: Add functional tests.
3359 2008-09-24 Eric Blake <ebb9@byu.net>
3361 open, fopen: close fd leak in last patch
3362 * lib/open.c (rpl_open): Close fd before returning error.
3363 * lib/fopen.c (rpl_fopen): Close fd before returning error.
3364 * doc/posix-functions/open.texi (open): Document that Irix also
3366 * doc/posix-functions/fopen.texi (fopen): Likewise.
3367 Reported by Paolo Bonzini.
3369 2008-09-24 Bruno Haible <bruno@clisp.org>
3371 Ensure that a filename ending in a slash cannot be used to access a
3373 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
3374 to check whether it's really a directory.
3375 * lib/fopen.c: Include fcntl.h, unistd.h.
3376 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
3378 * modules/fopen (Depends-on): Add unistd.
3379 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
3380 * tests/test-fopen.c (main): Likewise.
3381 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
3382 * doc/posix-functions/fopen.texi: Likewise.
3383 Reported by Eric Blake.
3385 2008-09-23 Eric Blake <ebb9@byu.net>
3387 c-stack: avoid compiler optimizations when provoking overflow
3388 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
3389 recursion harder to optimize, to ensure a stack overflow occurs.
3390 * tests/test-c-stack.c (recurse): Likewise.
3391 Borrowed from libsigsegv.
3393 c-stack: work around Irix sigaltstack bug
3394 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
3395 whether sigaltstack uses wrong end of stack_t (copied in part from
3397 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
3398 Irix bug, without requiring an over-allocation.
3399 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
3402 fopen: document mingw bug on directories
3403 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
3404 not allowing a stream visiting a directory, even though reading
3405 from such a stream is not portable.
3407 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
3409 * lib/poll.c: Rewrite.
3410 * modules/poll: Depend on alloca.
3412 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
3414 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
3415 instead define prototypes for a full set of wrappers. Ensure
3416 that Cygwin does not use the compatibility code, which is only
3418 * lib/winsock.c: New.
3419 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
3420 * modules/sys_socket: Add lib/winsock.c.
3422 * modules/poll-tests: Add errno and perror.
3423 * tests/test-poll.c: Use ioctl, not ioctlsocket.
3425 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
3427 * tests/test-poll.c: Downgrade minimum needed Winsock version.
3429 2008-09-23 Bruno Haible <bruno@clisp.org>
3431 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
3432 * doc/glibc-functions/*: Likewise.
3434 2008-09-23 Simon Josefsson <simon@josefsson.org>
3436 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
3439 2008-09-22 Eric Blake <ebb9@byu.net>
3440 Bruno Haible <bruno@clisp.org>
3442 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
3443 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
3444 supply %A but mishandle pseudo-NaN.
3445 Reported by Simon Josefsson.
3447 2008-09-21 Bruno Haible <bruno@clisp.org>
3449 * tests/test-lock.c (main): Tweak skip message.
3450 * tests/test-tls.c (main): Likewise.
3452 2008-09-21 Bruno Haible <bruno@clisp.org>
3454 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
3455 whether 'struct sigaction' has sa_sigaction here...
3456 (gl_PREREQ_SIG_HANDLER_H): ... not here.
3457 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
3459 2008-09-21 Bruno Haible <bruno@clisp.org>
3461 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
3463 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
3464 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
3466 (Support for obsolete systems lacking POSIX:2001): New section.
3467 (String handling <string.h>): Move strdup to the new section.
3468 Suggested by Simon Josefsson and Paolo Bonzini.
3470 2008-09-21 Bruno Haible <bruno@clisp.org>
3472 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
3473 exponents in %e and %g results on 'long double'. Needed for mingw's
3474 improved *printf functions.
3475 * tests/test-vasprintf-posix.c (test_function): Likewise.
3476 * tests/test-snprintf-posix.h (test_function): Likewise.
3477 * tests/test-sprintf-posix.h (test_function): Likewise.
3478 Reported by Eric Blake.
3480 2008-09-21 Bruno Haible <bruno@clisp.org>
3482 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
3483 * tests/test-sprintf-posix.h (test_function): Likewise.
3485 2008-09-21 Bruno Haible <bruno@clisp.org>
3487 * modules/getpass (Depends-on): Add strdup-posix.
3489 New module 'strdup-posix'.
3490 * modules/strdup-posix: New file.
3491 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
3492 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
3493 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3495 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
3496 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
3497 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
3500 * modules/strdup (Depends-on): Remove malloc-posix.
3502 2008-09-20 Bruno Haible <bruno@clisp.org>
3504 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
3507 2008-09-20 Bruno Haible <bruno@clisp.org>
3509 Ensure that wint_t gets defined on IRIX 5.3.
3510 * lib/wchar.in.h (wint_t): Define if not defined by the system.
3511 * lib/wctype.in.h (wint_t): Likewise.
3512 (__wctype_wint_t): Remove type.
3513 (isw*): Use wint_t instead of __wctype_wint_t.
3514 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
3515 * modules/wchar (Files): Add m4/wint_t.m4.
3516 (Makefile.am): Substitute HAVE_WINT_T.
3517 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
3518 * tests/test-wctype.c: Check that wint_t is defined.
3519 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
3520 * doc/posix-headers/wctype.texi: Likewise.
3521 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3523 2008-09-18 Bruno Haible <bruno@clisp.org>
3525 * gnulib-tool (func_exit): Update comment.
3527 2008-09-18 Simon Josefsson <simon@josefsson.org>
3529 * modules/getaddrinfo (Depends-on): Remove strdup, this module
3530 assumes strdup exists and does not depend on strdup to return
3531 ENOMEM on out of memory conditions.
3533 2008-09-18 Bruno Haible <bruno@clisp.org>
3535 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
3536 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
3537 digits for the exponent.
3539 2008-09-18 Jim Meyering <meyering@redhat.com>
3540 Bruno Haible <bruno@clisp.org>
3542 * lib/vasnprintf.c (decimal_point_char): Define also if
3543 NEED_PRINTF_INFINITE_LONG_DOUBLE.
3545 2008-09-16 Bruno Haible <bruno@clisp.org>
3546 and Eric Blake <ebb9@byu.net>
3548 vasnprintf: support Irix 5.3
3549 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
3550 that mishandle long double infinity.
3551 Reported by Tom G. Christensen.
3553 2008-09-16 Bruno Haible <bruno@clisp.org>
3555 * doc/glibc-functions/scandir.texi: Mention the function is missing on
3557 * doc/glibc-functions/alphasort.texi: Likewise.
3558 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
3560 2008-09-16 Jim Meyering <meyering@redhat.com>
3562 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
3563 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
3564 a umask modification leak out of a subshell. Otherwise, the
3565 opensolaris /bin/sh would be accepted and thus cause unwarranted
3566 failures in the coreutils test suite.
3568 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
3570 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
3573 2008-09-16 Jim Meyering <meyering@redhat.com>
3575 avoid spurious test failure when library is built without ACL support
3576 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
3577 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
3578 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
3579 * tests/test-copy-acl.sh: Likewise.
3581 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3583 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
3584 based on character occurrence counts.
3586 2008-09-15 Eric Blake <ebb9@byu.net>
3588 tests: avoid some compiler warnings
3589 * tests/test-memchr.c (main): Pass NULL indirectly.
3590 * tests/test-closein.c (main): Avoid unused variable.
3592 2008-09-15 Bruno Haible <bruno@clisp.org>
3594 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
3595 are missing on OpenBSD 4.0 individually.
3596 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
3598 2008-09-15 Bruno Haible <bruno@clisp.org>
3600 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
3601 * doc/posix-functions/strerror.texi: Mention also Cygwin.
3602 * doc/posix-functions/perror.texi: Likewise.
3603 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
3605 Reported by Eric Blake.
3607 * lib/errno.in.h: Use replacement values >= 2000.
3608 Reported by Eric Blake.
3610 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3612 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
3613 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
3615 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
3616 compareseq was aborted.
3618 2008-09-14 Bruno Haible <bruno@clisp.org>
3620 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
3622 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
3623 (fstrcmp_bounded): Simplify result computation accordingly.
3625 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3627 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
3628 (fstrcmp): Define in terms of fstrcmp_bounded.
3629 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
3630 lower_bound argument.
3631 Return quickly if the result is certainly < lower_bound.
3632 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
3634 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3636 * lib/diffseq.h (EARLY_ABORT): New macro.
3637 (compareseq): Change return type to bool. Return true when EARLY_ABORT
3640 2008-09-14 Bruno Haible <bruno@clisp.org>
3642 * modules/perror-tests: New file.
3643 * tests/test-perror.sh: New file.
3644 * tests/test-perror.c: New file.
3646 New module 'perror'.
3647 * lib/stdio.in.h (perror): New declaration.
3648 * lib/perror.c: New file.
3649 * m4/perror.m4: New file.
3650 * modules/perror: New file.
3651 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
3652 * doc/posix-functions/perror.texi: Mention the perror module.
3653 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
3655 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
3658 2008-09-14 Bruno Haible <bruno@clisp.org>
3660 * modules/stdio (Makefile.am): Reorder to match the order in
3662 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
3664 2008-09-13 Bruno Haible <bruno@clisp.org>
3666 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
3668 2008-09-13 Bruno Haible <bruno@clisp.org>
3670 Extend strerror to cover the added errno values.
3671 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
3672 (rpl_strerror): Provide error messages for the added errno values and
3673 for the WSA* values.
3674 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
3675 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
3677 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
3678 * modules/strerror (Depends-on): Add errno.
3679 * doc/posix-functions/strerror.texi: Document the change.
3680 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
3683 2008-09-13 Bruno Haible <bruno@clisp.org>
3685 * modules/EOVERFLOW: Remove file.
3686 * m4/eoverflow.m4: Remove file.
3687 * modules/EOVERFLOW-tests: Remove file.
3688 * tests/test-EOVERFLOW.c: Remove file.
3689 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
3690 * modules/ftell (Depends-on): Likewise.
3691 * modules/getdelim (Depends-on): Likewise.
3692 * modules/getugroups (Depends-on): Likewise.
3693 * modules/poll (Depends-on): Likewise.
3694 * modules/snprintf (Depends-on): Likewise.
3695 * modules/sprintf-posix (Depends-on): Likewise.
3696 * modules/vasnprintf (Depends-on): Likewise.
3697 * modules/vasprintf (Depends-on): Likewise.
3698 * modules/vfprintf-posix (Depends-on): Likewise.
3699 * modules/vsnprintf (Depends-on): Likewise.
3700 * modules/vsprintf-posix (Depends-on): Likewise.
3701 * modules/xvasprintf (Depends-on): Likewise.
3702 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3703 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
3704 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
3705 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
3706 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3707 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
3708 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
3709 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
3710 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3711 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
3712 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
3713 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
3714 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3715 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
3716 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
3717 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
3718 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3719 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
3720 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
3721 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
3722 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3723 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
3724 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
3725 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
3726 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
3727 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3728 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
3729 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
3730 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
3731 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
3732 * MODULES.html.sh: Remove EOVERFLOW.
3733 * NEWS: Mention the change.
3735 2008-09-13 Bruno Haible <bruno@clisp.org>
3737 * modules/errno-tests: New file.
3738 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
3740 * lib/errno.in.h: New file.
3741 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
3742 * modules/errno: New file.
3743 * doc/posix-headers/errno.texi: Update documentation.
3744 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
3746 2008-09-13 Bruno Haible <bruno@clisp.org>
3748 * tests/test-poll.c: Use #if for native Windows, rather than testing
3751 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3752 Bruno Haible <bruno@clisp.org>
3754 * lib/glob.c: Don't include <pwd.h> on native Windows.
3755 (WINDOWS32): New macro.
3756 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
3758 2008-09-13 Bruno Haible <bruno@clisp.org>
3760 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
3761 (ETIMEDOUT): Remove macro.
3762 (glthread_cond_timedwait_multithreaded): New declaration.
3763 (glthread_cond_timedwait): Use it.
3764 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
3765 (glthread_cond_timedwait_multithreaded): New function.
3767 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
3769 * modules/poll-tests: Do not check for io.h.
3770 * tests/test-poll.c: Check for __MSVCRT__ instead.
3772 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
3774 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
3775 * modules/poll-tests: Add inet_pton, stdbool, sockets.
3776 * tests/test-poll.c: Use them. Use _pipe on Windows.
3778 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
3780 * modules/poll-tests: New.
3781 * tests/test-poll.c: New.
3783 2008-09-12 Eric Blake <ebb9@byu.net>
3785 frexp: test for NetBSD failure on -0.0
3786 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
3787 not all, bugs from NetBSD 3.0 have been fixed.
3788 * doc/posix-functions/frexp.texi (frexp): Document bug.
3789 Reported by Thomas Klausner.
3791 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
3792 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
3794 Reported by Jonathan C. Patschke <jp@centtech.com>.
3796 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3798 * lib/glthread/cond.h: Use dummy implementation also if
3801 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3803 * modules/fnmatch-posix (License): Change to LGPLv2+.
3804 * modules/fnmatch-gnu (License): Likewise.
3806 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3808 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
3810 2008-09-11 Jim Meyering <meyering@redhat.com>
3812 * users.txt: Add gtk-vnc.
3814 2008-09-08 Simon Josefsson <simon@josefsson.org>
3816 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
3819 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
3820 required for 16-bit and 8-bit rotates.
3821 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
3822 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
3823 UINT8_MAX instead of hard-coded constants.
3824 Suggested by Paul Eggert.
3826 2008-09-07 Bruno Haible <bruno@clisp.org>
3828 * tests/test-striconveh.c (main): Check behaviour when converting from
3831 Make striconveh work better with stateful encodings.
3832 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
3833 that iconv does not increment the inptr when returning -1/EINVAL.
3835 2008-09-07 Bruno Haible <bruno@clisp.org>
3837 * build-aux/config.rpath: Update according to libtool-2.2.6.
3838 * build-aux/config.libpath: Likewise.
3840 2008-09-06 Bruno Haible <bruno@clisp.org>
3842 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
3843 * lib/freadptr.c (freadptr): Likewise.
3844 * lib/freadseek.c (freadptrinc): Likewise.
3845 Reported by Simon Josefsson.
3847 2008-09-06 Bruno Haible <bruno@clisp.org>
3849 * modules/freadptr (License): Change to LGPLv2+.
3850 * modules/freadseek (License): Likewise.
3851 Suggested by Eric Blake.
3853 * modules/memchr2 (License): Change to LGPLv2+.
3854 Approved by Eric Blake.
3856 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3857 Bruno Haible <bruno@clisp.org>
3859 Make gnulib-tool work with native 'sed' on AIX.
3860 * gnulib-tool (sed_noop): New variable.
3861 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
3862 func_add_or_update, func_create_testdir): Use it to initialize sed
3864 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3866 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
3867 Bruno Haible <bruno@clisp.org>
3869 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
3870 also works after #include directives.
3872 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
3874 getdate.y: reject an out-of-range timezone value
3875 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
3876 the range [-24...+24]. When specified with only one or two digits,
3877 * tests/test-getdate.c: Tests for the fix.
3878 * doc/getdate.texi: Document this change.
3880 2008-09-03 Bruno Haible <bruno@clisp.org>
3882 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
3884 2008-09-02 Simon Josefsson <simon@josefsson.org>
3886 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
3887 <bruce.korb@gmail.com> with ideas from Ben Pfaff
3888 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
3889 Blake <ebb9@byu.net>.
3891 * tests/test-bitrotate.c: Add more test vectors.
3893 2008-09-02 Eric Blake <ebb9@byu.net>
3895 vasnprintf-posix: handle large precision via %.*d
3896 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
3897 when handling it ourselves.
3898 * tests/test-vasnprintf-posix.c (test_function): Add test.
3899 * tests/test-snprintf-posix.h (test_function): Likewise.
3900 * tests/test-sprintf-posix.h (test_function): Likewise.
3901 * tests/test-vasprintf-posix.c (test_function): Likewise.
3902 Reported by Alain Guibert.
3904 2008-09-01 Eric Blake <ebb9@byu.net>
3906 c-stack: make configure-time check more robust
3907 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
3908 successful sigaction call.
3909 Reported by Tom G. Christensen.
3911 2008-09-01 Bruno Haible <bruno@clisp.org>
3913 New module 'findprog-lgpl'.
3914 * modules/findprog-lgpl: New file.
3915 * lib/findprog-lgpl.c: New file.
3916 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
3917 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
3918 to decide whether to use strdup or xstrdup, concatenated_filename or
3919 xconcatenated_filename.
3921 2008-09-01 Bruno Haible <bruno@clisp.org>
3923 Split module 'concat-filename' into 'concat-filename' (LGPL) and
3924 'xconcat-filename' (GPL).
3925 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
3926 (License): Change to LGPLv2+.
3927 * modules/xconcat-filename: New file.
3928 * lib/concat-filename.h (concatenated_filename): Change specification.
3929 (xconcatenated_filename): New declaration.
3930 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
3931 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
3933 * lib/xconcat-filename.c: New file.
3934 * NEWS: Mention the change.
3935 * lib/findprog.c: Include concat-filename.h, not filename.h.
3936 (find_in_path): Use xconcatenated_filename instead of
3937 concatenated_filename.
3938 * lib/javacomp.c: Include concat-filename.h, not filename.h.
3939 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
3940 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
3941 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
3942 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
3943 instead of concatenated_filename.
3944 * lib/javaexec.c: Include concat-filename.h, not filename.h.
3945 (execute_java_class): Use xconcatenated_filename instead of
3946 concatenated_filename.
3947 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
3948 * modules/javacomp (Depends-on): Likewise.
3949 * modules/javaexec (Depends-on): Likewise.
3951 2008-09-01 Bruno Haible <bruno@clisp.org>
3953 Split module 'filename' into 'filename' and 'concat-filename'.
3954 * modules/filename: Keep only lib/filename.h.
3955 (License): Change to LGPLv2+.
3956 * modules/concat-filename: New file, extracted from modules/filename.
3957 * lib/filename.h (concatenated_filename): Remove declaration.
3958 * lib/concat-filename.h: New file, extracted from lib/filename.h.
3959 * lib/concat-filename.c: Include concat-filename.h.
3960 * NEWS: Mention the change.
3962 2008-09-01 Simon Josefsson <simon@josefsson.org>
3964 * lib/bitrotate.h (rotl8, rotr8): Add.
3966 * modules/bitrotate (configure.ac): Need
3967 AC_REQUIRE([AC_C_INLINE]).
3968 (Description): Mention stdint.h. Reported by Bruno Haible
3971 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
3972 Paolo Bonzini <bonzini@gnu.org>.
3974 2008-08-31 Bruno Haible <bruno@clisp.org>
3976 Assume Solaris specific bi-arch conventions on Solaris systems.
3977 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
3978 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
3979 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
3980 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
3981 like acl_libdirstem.
3982 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
3984 * NEWS: Mention the change.
3985 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
3987 2008-08-31 Jim Meyering <meyering@redhat.com>
3989 * lib/strftime.h: Add comments describing the two added arguments.
3991 remove duplicate #include directives
3992 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
3993 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
3995 2008-08-31 Bruno Haible <bruno@clisp.org>
3997 New module 'sigpipe-die'.
3998 * modules/sigpipe-die: New file.
3999 * lib/sigpipe-die.h: New file.
4000 * lib/sigpipe-die.c: New file.
4001 * MODULES.html.sh (Signal handling): Add sigpipe-die.
4003 2008-08-31 Bruno Haible <bruno@clisp.org>
4005 Don't override previously installed signal handlers.
4006 * lib/fatal-signal.c (saved_sigactions): New variable.
4007 (uninstall_handlers): Reset the signal to the saved handler, not
4008 to SIG_DFL (except when ignored).
4009 (install_handlers): Save the previous handlers.
4011 2008-08-30 Bruno Haible <bruno@clisp.org>
4013 * gnulib-tool (func_reset_sigpipe): New function.
4014 (func_get_automake_snippet, func_modules_transitive_closure,
4015 func_import): Invoke it before a join command that reads from stdin,
4016 to avoid "echo: write error: Broken pipe" error messages on stderr.
4017 Reported by Sam Steingold <sds@gnu.org>.
4019 2008-08-30 Bruno Haible <bruno@clisp.org>
4021 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
4022 Code copied from m4/open.m4.
4023 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
4024 access and the filename ends in a slash. Code copied from lib/open.c.
4025 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
4026 * tests/test-fopen.c (main): Check against bug with trailing slash.
4028 2008-08-29 Bruno Haible <bruno@clisp.org>
4030 Avoid some "gcc -pedantic" warnings.
4031 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
4032 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
4033 * lib/dirent.in.h: Likewise.
4034 * lib/fcntl.in.h: Likewise.
4035 * lib/float.in.h: Likewise.
4036 * lib/iconv.in.h: Likewise.
4037 * lib/inttypes.in.h: Likewise.
4038 * lib/locale.in.h: Likewise.
4039 * lib/math.in.h: Likewise.
4040 * lib/netinet_in.in.h: Likewise.
4041 * lib/search.in.h: Likewise.
4042 * lib/signal.in.h: Likewise.
4043 * lib/stdarg.in.h: Likewise.
4044 * lib/stdint.in.h: Likewise.
4045 * lib/stdio.in.h: Likewise.
4046 * lib/stdlib.in.h: Likewise.
4047 * lib/string.in.h: Likewise.
4048 * lib/strings.in.h: Likewise.
4049 * lib/sys_select.in.h: Likewise.
4050 * lib/sys_socket.in.h: Likewise.
4051 * lib/sys_stat.in.h: Likewise.
4052 * lib/sys_time.in.h: Likewise.
4053 * lib/sysexits.in.h: Likewise.
4054 * lib/time.in.h: Likewise.
4055 * lib/unistd.in.h: Likewise.
4056 * lib/wchar.in.h: Likewise.
4057 * lib/wctype.in.h: Likewise.
4058 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
4059 * modules/fchdir (Makefile.am): Likewise.
4060 * modules/fcntl (Makefile.am): Likewise.
4061 * modules/float (Makefile.am): Likewise.
4062 * modules/iconv_open (Makefile.am): Likewise.
4063 * modules/inttypes (Makefile.am): Likewise.
4064 * modules/locale (Makefile.am): Likewise.
4065 * modules/math (Makefile.am): Likewise.
4066 * modules/netinet_in (Makefile.am): Likewise.
4067 * modules/search (Makefile.am): Likewise.
4068 * modules/signal (Makefile.am): Likewise.
4069 * modules/stdarg (Makefile.am): Likewise.
4070 * modules/stdint (Makefile.am): Likewise.
4071 * modules/stdio (Makefile.am): Likewise.
4072 * modules/stdlib (Makefile.am): Likewise.
4073 * modules/string (Makefile.am): Likewise.
4074 * modules/strings (Makefile.am): Likewise.
4075 * modules/sys_select (Makefile.am): Likewise.
4076 * modules/sys_socket (Makefile.am): Likewise.
4077 * modules/sys_stat (Makefile.am): Likewise.
4078 * modules/sys_time (Makefile.am): Likewise.
4079 * modules/sysexits (Makefile.am): Likewise.
4080 * modules/time (Makefile.am): Likewise.
4081 * modules/unistd (Makefile.am): Likewise.
4082 * modules/wchar (Makefile.am): Likewise.
4083 * modules/wctype (Makefile.am): Likewise.
4084 Reported by Reuben Thomas <rrt@sc3d.org>.
4086 2008-08-29 Bruno Haible <bruno@clisp.org>
4088 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
4091 2008-08-29 Simon Josefsson <simon@josefsson.org>
4093 * MODULES.html.sh (Misc): Add bitrotate.
4095 * modules/bitrotate: New file.
4097 * lib/bitrotate.h: New file.
4099 * modules/bitrotate-tests: New file.
4101 * tests/test-bitrotate.c: New file.
4103 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
4104 on the bitrotate module.
4106 * lib/arctwo.c: Use new bitrotate module.
4108 2008-08-29 Jim Meyering <meyering@redhat.com>
4110 bootstrap: merge changes from coreutils
4111 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
4112 of copied files. Remove a kludge, now that this is fixed.
4113 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
4114 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
4115 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
4117 2008-08-29 Bruno Haible <bruno@clisp.org>
4119 * MODULES.html.sh: Remove --cvs-urls option.
4121 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
4123 maint.mk: adjust to file name change
4124 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
4126 2008-08-28 Jim Meyering <meyering@redhat.com>
4128 * modules/getndelim2 (License): Relicense to LGPLv2+.
4129 Approved by Richard Stallman for the version of 1995, and by
4130 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
4132 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
4134 * lib/getdelim.c (flockfile, funlockfile): Make all of them
4135 dummy if one is not available. Do not touch them if
4136 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
4137 (getc_maybe_unlocked): New.
4138 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
4140 2008-08-26 Eric Blake <ebb9@byu.net>
4142 doc/INSTALL: resync from autoconf
4143 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
4144 (INSTALL_PRELUDE): Delete; this is done more efficiently by
4146 * install.texi [!autoconf]: ...here. Resync from autoconf.
4147 * INSTALL: Regenerate.
4148 * INSTALL.ISO: New file.
4149 * INSTALL.UTF-8: Likewise.
4151 2008-08-26 Jim Meyering <meyering@redhat.com>
4153 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
4154 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
4155 these definitions conditional, so that they may be overridden, too.
4157 2008-08-26 Bruno Haible <bruno@clisp.org>
4159 Generate INSTALL file variants with prettier quotes.
4160 * doc/Makefile (INSTALL_PRELUDE): New macro.
4162 (INSTALL.ISO, INSTALL.UTF-8): New rules.
4164 2008-08-26 Bruno Haible <bruno@clisp.org>
4166 Run makeinfo in an English locale.
4167 * doc/Makefile (MAKEINFO): New variable.
4169 2008-08-26 Bruno Haible <bruno@clisp.org>
4171 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
4172 Suggested by Eric Blake.
4174 2008-08-25 Bruno Haible <bruno@clisp.org>
4176 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
4178 2008-08-25 Eric Blake <ebb9@byu.net>
4180 c-stack: test that stack overflow can be caught
4181 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
4182 that platform allows handling stack overflow; at least OS/2 EMX
4183 has sigaltstack, but crashes before transferring control to
4184 handler on stack overflow.
4185 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
4186 check for HAVE_STACK_OVERFLOW_HANDLING.
4187 Reported by Elbert Pol.
4189 2008-08-25 Bruno Haible <bruno@clisp.org>
4191 * doc/posix-functions/strftime.texi: Fix description of strftime
4194 2008-08-24 Bruno Haible <bruno@clisp.org>
4196 * tests/uniwidth/test-uc_width2.c: New file.
4197 * tests/uniwidth/test-uc_width2.sh: New file.
4198 * modules/uniwidth/width-tests (Files): Add the new files.
4199 (TESTS): Add uniwidth/test-uc_width2.sh.
4200 (TESTS_ENVIRONMENT): New variable.
4201 (check_PROGRAMS): Add test-uc_width2.
4202 (test_uc_width2_SOURCES): New variable.
4204 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
4205 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
4207 Reported by Alexander V. Lukyanov <lav@netis.ru>.
4209 2008-08-22 Eric Blake <ebb9@byu.net>
4211 test-lock, test-tls: mention why a test is skipped
4212 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
4214 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
4216 count-one-bits: relax license
4217 * modules/count-one-bits (License): Relicense to LGPLv2+.
4218 Suggested by Ludovic Courtès, approved by Ben Pfaff.
4220 2008-08-22 Andreas Schwab <schwab@suse.de>
4222 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
4223 Remove spurious space in assignment.
4225 2008-08-21 Simon Josefsson <simon@josefsson.org>
4227 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
4228 Paul Eggert <eggert@CS.UCLA.EDU>.
4230 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
4232 * modules/gettext: Add m4/threadlib.m4.
4234 2008-08-19 Eric Blake <ebb9@byu.net>
4236 test-c-stack: fix compilation failure on FreeBSD 5.0
4237 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
4238 headers before <sys/resource.h>.
4239 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
4241 Reported by Nelson H. F. Beebe.
4243 strverscmp: migrate from "strverscmp.h" to <string.h>
4244 * modules/string (Makefile.am): Add new hooks.
4245 * modules/strverscmp (Files): Remove strverscmp.h.
4246 (Depends-on): Add string.
4247 (configure.ac): Add indicator.
4248 (Include): Mention new header.
4249 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
4251 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
4253 * lib/strverscmp.h: Delete.
4254 * lib/string.in.h (strverscmp): Provide declaration, when needed.
4255 * tests/test-strverscmp.c (includes): Adjust client.
4256 * lib/check-version.c (includes): Likewise.
4257 * NEWS: Document the change.
4259 strverscmp: add unit test
4260 * modules/strverscmp-tests: New file.
4261 * tests/test-strverscmp.c: Likewise.
4263 2008-08-19 Simon Josefsson <simon@josefsson.org>
4265 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
4266 regarding Windows crypto stuff, from Mono.
4268 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
4270 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
4271 if present, for intel RND. Return error on failures.
4273 2008-08-18 Ben Pfaff <blp@gnu.org>
4275 gitlog-to-changelog: give better diagnostic for failed pipe-open
4276 * build-aux/gitlog-to-changelog: Improve error message: suggest
4277 that the version of Git may be too old.
4279 2008-08-18 Simon Josefsson <simon@josefsson.org>
4281 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
4282 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
4284 2008-08-18 Bruno Haible <bruno@clisp.org>
4286 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
4289 2008-08-18 Bruno Haible <bruno@clisp.org>
4291 * lib/glthread/threadlib.c: Include <pthread.h>.
4293 2008-08-18 Bruno Haible <bruno@clisp.org>
4295 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
4296 glthread_recursive_lock_* macros.
4297 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
4300 2008-08-18 Bruno Haible <bruno@clisp.org>
4302 * lib/glthread/thread.c: Avoid forcing a context switch right after
4305 2008-08-17 Bruno Haible <bruno@clisp.org>
4307 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
4308 * lib/glthread/thread.h: Provide Win32 specific implementation.
4309 * modules/thread (Files): Add lib/glthread/thread.c.
4310 (Depends-on): Add lock.
4311 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
4313 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
4316 * modules/yield: New file.
4317 * lib/glthread/yield.h: New file.
4318 * m4/yield.m4: New file.
4319 * MODULES.html.sh (Multithreading): Add yield.
4321 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
4323 New module 'thread'.
4324 * modules/thread: New file.
4325 * lib/glthread/thread.h: New file.
4326 * m4/thread.m4: New file.
4327 * MODULES.html.sh (Multithreading): Add thread.
4329 2008-08-17 Bruno Haible <bruno@clisp.org>
4331 * lib/glthread/lock.h: Include <stdlib.h> always.
4332 * lib/glthread/tls.h: Likewise.
4333 * lib/glthread/cond.h: Likewise.
4335 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
4338 * modules/cond: New file.
4339 * lib/glthread/cond.h: New file.
4340 * lib/glthread/cond.c: New file.
4341 * m4/cond.m4: New file.
4342 * MODULES.html.sh (Multithreading): Add cond.
4344 2008-08-16 Eric Blake <ebb9@byu.net>
4346 c-stack: fix regression on Irix 5.3 from 2008-06-21
4347 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
4349 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
4350 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
4351 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
4352 * modules/signal (Makefile.am): Use the value.
4353 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
4354 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
4355 * doc/posix-headers/signal.texi (signal.h): Document this
4357 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
4358 Reported by Tom G. Christensen.
4360 2008-08-17 Bruno Haible <bruno@clisp.org>
4362 New module 'threadlib'.
4363 * modules/threadlib: New file.
4364 * lib/glthread/threadlib.c: New file, extracted from
4365 lib/glthread/lock.c.
4366 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
4368 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
4369 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
4370 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
4372 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
4373 (gl_DISABLE_THREADS): Remove macro.
4374 * modules/lock (Files): Remove build-aux/config.rpath.
4375 (Depends-on): Remove havelib. Add threadlib.
4376 (configure.ac-early): Remove section.
4377 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
4378 * modules/tls (Depends-on): Remove lock. Add threadlib.
4379 (Link): New section, copied from threadlib.
4380 * MODULES.html.sh (Multithreading): Add threadlib.
4382 2008-08-14 Bruno Haible <bruno@clisp.org>
4384 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
4385 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
4386 glthread_rwlock_unlock, glthread_rwlock_destroy,
4387 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
4388 glthread_recursive_lock_destroy): Define as macros always.
4389 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
4391 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
4392 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
4393 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
4394 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
4395 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
4396 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
4397 (glthread_recursive_lock_lock_func): Renamed from
4398 glthread_recursive_lock_lock.
4399 (glthread_recursive_lock_unlock_func): Renamed from
4400 glthread_recursive_lock_unlock.
4401 (glthread_recursive_lock_destroy_func): Renamed from
4402 glthread_recursive_lock_destroy.
4404 2008-08-14 Bruno Haible <bruno@clisp.org>
4406 * lib/glthread/lock.h: Renamed from lib/lock.h.
4407 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
4408 * lib/glthread/tls.h: Renamed from lib/tls.h.
4409 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
4410 * lib/fstrcmp.c: Update includes.
4411 * lib/strsignal.c: Update includes.
4412 * modules/lock (Files, Makefile.am): Update.
4413 (Include): Change to "glthread/lock.h".
4414 * modules/tls (Files, Makefile.am): Update.
4415 (Include): Change to "glthread/tls.h".
4416 * tests/test-lock.c: Update includes.
4417 * tests/test-tls.c: Update includes.
4418 * NEWS: Mention the renamed header files.
4420 2008-08-11 Jim Meyering <meyering@redhat.com>
4422 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
4424 2008-08-11 Eric Blake <ebb9@byu.net>
4426 test-c-stack: avoid C99-ism
4427 * tests/test-c-stack.c (main): Fix whitespace, move declaration
4429 Reported by Alain Guibert.
4431 2008-08-10 Jim Meyering <meyering@redhat.com>
4433 ensure that return value of uinttostr et al are not ignored
4434 * lib/inttostr.h (__GNUC_PREREQ): Define.
4435 (__attribute_warn_unused_result__): Define.
4436 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
4438 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
4440 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
4441 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
4443 2008-08-07 Jim Meyering <meyering@redhat.com>
4445 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
4447 * modules/mkstemp (License): Relicense under LGPLv2+.
4448 * modules/tempname (License): Likewise.
4450 2008-08-06 Bruno Haible <bruno@clisp.org>
4452 * lib/poll.c (poll): Further micro-optimization.
4454 2008-08-06 Jim Meyering <meyering@redhat.com>
4456 inet_pton.c: use locale-independent tolower
4457 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
4458 (inet_pton6): Use c_tolower rather than tolower.
4459 * modules/inet_pton (Depends-on): Add c-ctype.
4461 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
4463 * lib/poll.c (poll): Avoid division when timeout is 0, cache
4464 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
4466 2008-08-06 Jim Meyering <meyering@redhat.com>
4468 * modules/inet_pton (License): Relicense under LGPLv2+.
4470 2008-08-03 Bruno Haible <bruno@clisp.org>
4472 Additional non-aborting API for lock and tls.
4473 * lib/lock.h: Include <errno.h>.
4474 (glthread_lock_init): New macro/function.
4475 (gl_lock_init): Define as wrapper around glthread_lock_init.
4476 (glthread_lock_lock): New macro/function.
4477 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
4478 (glthread_lock_unlock): New macro/function.
4479 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
4480 (glthread_lock_destroy): New macro/function.
4481 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
4482 (glthread_rwlock_init): New macro/function.
4483 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
4484 (glthread_rwlock_rdlock): New macro/function.
4485 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
4486 (glthread_rwlock_wrlock): New macro/function.
4487 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
4488 (glthread_rwlock_unlock): New macro/function.
4489 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
4490 (glthread_rwlock_destroy): New macro/function.
4491 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
4492 (glthread_recursive_lock_init): New macro/function.
4493 (gl_recursive_lock_init): Define as wrapper around
4494 glthread_recursive_lock_init.
4495 (glthread_recursive_lock_lock): New macro/function.
4496 (gl_recursive_lock_lock): Define as wrapper around
4497 glthread_recursive_lock_lock.
4498 (glthread_recursive_lock_unlock): New macro/function.
4499 (gl_recursive_lock_unlock): Define as wrapper around
4500 glthread_recursive_lock_unlock.
4501 (glthread_recursive_lock_destroy): New macro/function.
4502 (gl_recursive_lock_destroy): Define as wrapper around
4503 glthread_recursive_lock_destroy.
4504 (glthread_once): New macro/function.
4505 (gl_once): Define as wrapper around glthread_once.
4506 Update function declarations.
4507 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
4508 glthread_rwlock_init. Return error code.
4509 (glthread_rwlock_rdlock_multithreaded): Renamed from
4510 glthread_rwlock_rdlock. Return error code.
4511 (glthread_rwlock_wrlock_multithreaded): Renamed from
4512 glthread_rwlock_wrlock. Return error code.
4513 (glthread_rwlock_unlock_multithreaded): Renamed from
4514 glthread_rwlock_unlock. Return error code.
4515 (glthread_rwlock_destroy_multithreaded): Renamed from
4516 glthread_rwlock_destroy. Return error code.
4517 (glthread_recursive_lock_init_multithreaded): Renamed from
4518 glthread_recursive_lock_init. Return error code.
4519 (glthread_recursive_lock_lock_multithreaded): Renamed from
4520 glthread_recursive_lock_lock. Return error code.
4521 (glthread_recursive_lock_unlock_multithreaded): Renamed from
4522 glthread_recursive_lock_unlock. Return error code.
4523 (glthread_recursive_lock_destroy_multithreaded): Renamed from
4524 glthread_recursive_lock_destroy. Return error code.
4525 (glthread_once_call): Make static.
4526 (glthread_once_multithreaded): Renamed from glthread_once.
4527 * lib/tls.h: Include <errno.h>.
4528 (glthread_tls_key_init): New macro/function.
4529 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
4530 (glthread_tls_set): New macro/function.
4531 (gl_tls_set): Define as wrapper around glthread_tls_set.
4532 (glthread_tls_key_destroy): New macro/function.
4533 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
4534 Update function declarations.
4535 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
4537 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
4539 2008-08-04 Eric Blake <ebb9@byu.net>
4541 gnumakefile: use space, not TAB, outside of targets
4542 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
4544 2008-08-02 Jim Meyering <meyering@redhat.com>
4546 getdate.y: avoid locale-dependent date parsing failure
4547 In Turkish locales, getdate would fail to recognize keywords
4548 containing a lowercase "i". The solution is not to rely on
4549 locale-sensitive case-conversion.
4550 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
4551 (lookup_word): Use c_toupper in place of toupper.
4552 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
4553 Reported by Vefa Bicakci <bicave@superonline.com> in
4554 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
4555 * modules/getdate (Depends-on): Add c-ctype.
4557 2008-08-02 Bruno Haible <bruno@clisp.org>
4559 * gnulib-tool (func_import): When updating or creating a .gitignore
4560 file, prepend each added line with a slash, and ignore leading slashes
4561 from the existing lines.
4562 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
4564 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4566 Portability fix for GNU make 3.79.1.
4567 * top/GNUmakefile: Avoid 'else COND', which older GNU make
4568 versions do not understand.
4570 2008-08-01 Bruno Haible <bruno@clisp.org>
4572 Work around bug of HP-UX 10.20 cc with -0.0 literal.
4573 * tests/test-isnanf.h (zero): New variable.
4574 (main): Avoid literal -0.0f.
4575 * tests/test-isnand.h (zero): New variable.
4576 (main): Avoid literal -0.0.
4577 * tests/test-isnanl.h (zero): New variable.
4578 (main): Avoid literal -0.0L.
4579 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
4580 (test_float, test_double, test_long_double): Avoid literals -0.0f,
4582 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
4583 (test_signbitd): Avoid literal -0.0.
4584 (test_signbitl): Avoid literal -0.0L.
4585 * tests/test-ceilf1.c (zero): New variable.
4586 (main): Avoid literal -0.0f.
4587 * tests/test-ceill.c (zero): New variable.
4588 (main): Avoid literal -0.0L.
4589 * tests/test-floorf1.c (zero): New variable.
4590 (main): Avoid literal -0.0f.
4591 * tests/test-floorl.c (zero): New variable.
4592 (main): Avoid literal -0.0L.
4593 * tests/test-roundf1.c (zero): New variable.
4594 (main): Avoid literal -0.0f.
4595 * tests/test-round1.c (zero): New variable.
4596 (main): Avoid literal -0.0.
4597 * tests/test-roundl.c (zero): New variable.
4598 (main): Avoid literal -0.0L.
4599 * tests/test-truncf1.c (zero): New variable.
4600 (main): Avoid literal -0.0f.
4601 * tests/test-trunc1.c (zero): New variable.
4602 (main): Avoid literal -0.0.
4603 * tests/test-truncl.c (zero): New variable.
4604 (main): Avoid literal -0.0L.
4605 * tests/test-frexp.c (zero): New variable.
4606 (main): Avoid literal -0.0.
4607 * tests/test-frexpl.c (zero): New variable.
4608 (main): Avoid literal -0.0L.
4609 * tests/test-ldexpl.c (zero): New variable.
4610 (main): Avoid literal -0.0L.
4611 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
4612 (zerod, zerol): New variables.
4613 (test_function): Avoid literals -0.0, -0.0L.
4614 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
4615 (zerod, zerol): New variables.
4616 (test_function): Avoid literals -0.0, -0.0L.
4617 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
4618 (zerod, zerol): New variables.
4619 (test_function): Avoid literals -0.0, -0.0L.
4620 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
4621 (zerod, zerol): New variables.
4622 (test_function): Avoid literals -0.0, -0.0L.
4623 * tests/test-strtod.c (zero): New variable.
4624 (main): Avoid literal -0.0.
4625 Reported by Jonathan C. Patschke <jp@centtech.com>.
4627 2008-07-31 Jim Meyering <meyering@redhat.com>
4629 sha256.h: correct definition of SHA224_DIGEST_SIZE
4630 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
4631 Reported by Paulie Pena IV <paulie4@gmail.com>.
4632 Define as 224 / 8, rather than as a literal.
4633 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
4634 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
4635 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
4637 2008-07-31 Bruno Haible <bruno@clisp.org>
4639 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
4640 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
4641 Reported by Jonathan Patschke <jp@centtech.com>.
4643 2008-07-31 Bruno Haible <bruno@clisp.org>
4645 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
4646 Reported by Paolo Bonzini <bonzini@gnu.org>.
4648 2008-07-30 Eric Blake <ebb9@byu.net>
4650 test-strtod: allow compilation without -lm
4651 * tests/test-strtod.c (main): Avoid link dependence on fabs.
4652 Reported by Dennis Clarke <blastwave@gmail.com>.
4654 2008-07-28 Jim Meyering <meyering@redhat.com>
4656 bootstrap: work also when there are no .po files in po/
4657 * build-aux/bootstrap (update_po_files): Complete the change
4658 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
4660 2008-07-27 Jim Meyering <meyering@redhat.com>
4662 * users.txt: Add zile.
4664 2008-07-26 Ben Pfaff <blp@gnu.org>
4666 Add missing dependencies on new m4/exponent[fdl].m4 files.
4667 * modules/isnanf-nolibm: Add m4/exponentf.m4.
4668 * modules/isnand-nolibm: Add m4/exponentd.m4.
4669 * modules/isnanl-nolibm: Add m4/exponentl.m4.
4670 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
4671 m4/isnan[fdl].m4, because the macros actually used moved.
4672 Reported by Jim Meyering.
4674 2008-07-14 Ben Pfaff <blp@gnu.org>
4677 * lib/isinf.c: New file.
4678 * lib/math.in.h: Define isinf macro if we have decided to replace
4680 * m4/isinf.m4: New file.
4681 * m4/math_h.m4: Initialize and substitute variables for isinf
4683 * modules/isinf: New file.
4684 * modules/isinf-tests: New file.
4685 * modules/math: Add substitutions for new module.
4686 * tests/test-isinf.c: New file.
4687 * doc/posix-functions/isinf.texi: Mention new module.
4688 * MODULES.html.sh: Mention new module.
4690 2008-07-14 Ben Pfaff <blp@gnu.org>
4692 Factor out some macros for use by additional modules.
4693 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
4695 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
4697 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
4699 * m4/exponentf.m4: New file.
4700 * m4/exponentd.m4: New file.
4701 * m4/exponentl.m4: New file.
4702 * modules/isnanf: Use new file m4/exponentf.m4.
4703 * modules/isnand: Use new file m4/exponentd.m4.
4704 * modules/isnanl: Use new file m4/exponentl.m4.
4706 2008-07-23 Ulrich Drepper <drepper@redhat.com>
4708 mktime.c: normalize tp->tm_isdst value to -1/0/1.
4709 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
4710 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
4711 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
4713 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
4714 readlink on platforms without PATH_MAX.
4716 2008-07-21 Eric Blake <ebb9@byu.net>
4718 Warn, not fail, on stale version.
4719 * top/GNUmakefile (_curr-ver): Tone down previous patch.
4721 Don't allow installation with stale devel version number.
4722 * top/GNUmakefile (_is-install-target): New macro.
4723 (_curr-ver): Forbid installation with stale version number.
4725 2008-07-20 Bruno Haible <bruno@clisp.org>
4727 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
4729 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
4731 2008-07-20 Bruno Haible <bruno@clisp.org>
4733 * lib/c-stack.h (c_stack_action): Add documentation.
4734 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
4736 2008-07-20 Bruno Haible <bruno@clisp.org>
4738 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
4739 * modules/readlink (License): Likewise.
4741 2008-07-17 Eric Blake <ebb9@byu.net>
4743 * modules/c-stack (Link): Fix typo.
4745 Make c-stack use libsigsegv, when available.
4746 * modules/c-stack (Depends-on): Add libsigsegv.
4747 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
4749 * lib/c-stack.c (SIGSTKSZ): Define fallback.
4750 (segv_handler, overflow_handler, c_stack_action)
4751 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
4752 implementation when libsigsegv is available, but only when using
4753 the library is necessary.
4754 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
4755 comment, explaining why XSI check fails on Linux.
4756 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
4757 * tests/test-c-stack2.sh: Tweak skip message.
4758 * NEWS: Document new link-time requirements.
4760 2008-07-16 Eric Blake <ebb9@byu.net>
4762 c-stack: Expose false positives when not using libsigsegv.
4763 * modules/c-stack-tests (Files): Expand test.
4764 * tests/test-c-stack.c (main): Add means to conditionally trigger
4765 non-overflow SIGSEGV.
4766 * tests/test-c-stack2.sh: New file.
4768 2008-07-14 Bruno Haible <bruno@clisp.org>
4770 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
4771 Reported by Eric Blake.
4773 2008-07-14 Sam Steingold <sds@gnu.org>
4774 Bruno Haible <bruno@clisp.org>
4776 New module libsigsegv.
4777 * modules/libsigsegv: New file.
4778 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
4780 * MODULES.html.sh (Signal handling): New section.
4782 2008-07-14 Bruno Haible <bruno@clisp.org>
4784 * modules/unictype/ctype-* (Description): Add the word "function".
4785 Improves the resulting doc in MODULES.html.
4787 2008-07-12 Ben Pfaff <blp@gnu.org>
4789 Add longlong module.
4790 * modules/longlong: New file.
4792 2008-07-12 Bruno Haible <bruno@clisp.org>
4794 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
4797 2008-07-10 Ben Pfaff <blp@gnu.org>
4800 * doc/posix-functions/isnan.texi: Mention new module.
4801 * lib/math.in.h: Define isnan macro if we have decided to replace
4803 * m4/isnan.m4: New file.
4804 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
4805 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
4807 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
4809 * m4/math_h.m4: Initialize and substitute variables for isnan
4811 * modules/isnan: New file.
4812 * modules/isnan-tests: New file.
4813 * modules/math: Add substitutions for new module.
4814 * tests/test-isnan.c: New file.
4815 * MODULES.html.sh: Mention new module.
4817 2008-07-10 Ben Pfaff <blp@gnu.org>
4820 * lib/isnanf.m4: New file.
4821 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
4822 (gl_HAVE_ISNANF_IN_LIBM): New macro.
4823 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
4824 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
4825 * modules/isnanf: New file.
4826 * modules/isnanf-tests: New file.
4827 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
4829 * tests/test-isnanf-nolibm.c: factored most of its contents into
4830 new file tests/test-isnanf.h.
4831 * tests/test-isnanf.h: New file.
4832 * tests/test-isnanf.c: New file.
4833 * MODULES.html.sh: Mention new module.
4834 * doc/glibc-functions/isnanf.texi: Mention new module.
4836 2008-07-10 Ben Pfaff <blp@gnu.org>
4839 * lib/isnand.h: New file.
4840 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
4841 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
4842 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
4844 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
4845 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
4846 (gl_HAVE_ISNAND_IN_LIBM): New macro.
4847 * modules/isnand: New file.
4848 * modules/isnand-tests: New file.
4849 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
4851 * tests/test-isnand-nolibm.c: factored most of its contents into
4852 new file tests/test-isnand.h.
4853 * tests/test-isnand.h: New file.
4854 * tests/test-isnand.c: New file.
4855 * MODULES.html.sh: Mention new module.
4857 2008-07-10 Ben Pfaff <blp@gnu.org>
4859 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
4860 * lib/isnand.h: Rename lib/isnand-nolibm.h.
4861 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
4862 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
4863 * modules/isnanf-nolibm: Update references to renamed files.
4864 * modules/isnand-nolibm: Likewise.
4865 * modules/isnanf-nolibm-tests: Likewise.
4866 * modules/isnand-nolibm-tests: Likewise.
4867 * lib/frexp.c: Likewise.
4868 * lib/isfinite.c: Likewise.
4869 * lib/signbitd.c: Likewise.
4870 * lib/signbitf.c: Likewise.
4871 * lib/vasnprintf.c: Likewise.
4872 * tests/test-ceilf1.c: Likewise.
4873 * tests/test-ceilf2.c: Likewise.
4874 * tests/test-floorf1.c: Likewise.
4875 * tests/test-floorf2.c: Likewise.
4876 * tests/test-frexp.c: Likewise.
4877 * tests/test-round1.c: Likewise.
4878 * tests/test-round2.c: Likewise.
4879 * tests/test-roundf1.c: Likewise.
4880 * tests/test-strtod.c: Likewise.
4881 * tests/test-trunc1.c: Likewise.
4882 * tests/test-trunc2.c: Likewise.
4883 * tests/test-truncf1.c: Likewise.
4884 * tests/test-truncf2.c: Likewise.
4885 * NEWS: Mention the renamed header files.
4887 2008-07-11 Jim Meyering <meyering@redhat.com>
4889 vc-list-files: make the last-resort awk code more portable
4890 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
4891 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
4892 does not support it.
4894 2008-07-10 Eric Blake <ebb9@byu.net>
4896 Work with tar's bootstrap.
4897 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
4898 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
4901 2008-07-09 Jim Meyering <meyering@redhat.com>
4903 posix-shell.m4: fix typo that made this test malfunction
4904 * m4/posix-shell.m4: Remove capitalization in variable name.
4906 2008-07-08 Bruno Haible <bruno@clisp.org>
4908 * m4/onceonly.m4: Update comments.
4909 Reported by Ben Pfaff <blp@cs.stanford.edu>.
4911 2008-07-04 Jim Meyering <meyering@redhat.com>
4913 * users.txt: Add vc-dwim.
4914 (bison, coreutils): Use the gitweb URL.
4916 2008-07-03 Jim Meyering <meyering@redhat.com>
4918 * users.txt: Add libffcall. From Sam Steingold.
4920 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
4922 getdate.y: do not ignore TZ with relative day, month or year offset
4923 * lib/getdate.y (get_date): Move the tz-handling block to follow the
4924 relative-date-handling, since otherwise, the latter would clobber the
4925 sole output (an updated Start value) of the tz-handling block.
4926 * tests/test-getdate.c: Tests for the fix
4928 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4930 Recognize 'foo_LIBRARIES += libgnu.a'.
4931 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
4932 makefile snippet has already specified an installation location,
4935 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
4937 getdate.y: factor out common actions
4938 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
4939 Use them in place of open-coded actions.
4941 2008-07-01 Simon Josefsson <simon@josefsson.org>
4943 Add self-test for getdate module.
4944 * modules/getdate-tests: New file.
4945 * tests/test-getdate.c: New file.
4947 2008-06-29 Bruno Haible <bruno@clisp.org>
4949 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
4951 Reported by Sylvain Beucler <beuc@beuc.net>.
4953 2008-06-29 Bruno Haible <bruno@clisp.org>
4955 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
4956 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
4958 2008-06-29 Bruno Haible <bruno@clisp.org>
4960 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
4962 Reported by Sylvain Beucler <beuc@beuc.net>.
4964 2008-06-26 Jim Meyering <meyering@redhat.com>
4966 make several modules depend on the "open" module
4967 This provides slightly increased consistency when opening-for-write
4968 the name of a non-directory spelled with a trailing slash.
4969 * modules/chdir-safer: Likewise.
4970 * modules/chown: Likewise.
4971 * modules/clean-temp: Likewise.
4972 * modules/copy-file: Likewise.
4973 * modules/fchdir: Likewise.
4974 * modules/fcntl-safer: Likewise.
4975 * modules/pipe: Likewise.
4976 * modules/utime: Likewise.
4977 Prompted by Eric Blake and Bruno Haible.
4979 2008-06-24 Andreas Schwab <schwab@suse.de>
4981 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
4982 literals can be used as initializers for global variables.
4984 2008-06-23 Eric Blake <ebb9@byu.net>
4986 Make gnulib-cache.m4 easier to diff.
4987 * gnulib-tool (func_import): Allow newlines when reading cached
4988 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
4990 2008-06-23 Bruno Haible <bruno@clisp.org>
4992 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
4993 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
4994 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
4995 m4/signalblocking.m4.
4996 (gl_PREREQ_SIGACTION): Don't invoke it.
4997 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
4998 gl_PREREQ_SIG_HANDLER_H.
4999 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
5000 Don't check for sigaction here.
5002 2008-06-23 Bruno Haible <bruno@clisp.org>
5004 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
5005 (install_handlers): Don't set the SA_RESETHAND flag.
5007 2008-06-23 Bruno Haible <bruno@clisp.org>
5009 * m4/sigaction.m4: Comment fixes.
5010 * lib/signal.in.h: Likewise.
5012 2008-06-23 Eric Blake <ebb9@byu.net>
5015 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
5017 Avoid SA_ namespace.
5018 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
5019 Reported by Ralf Wildenhues.
5021 Avoid test failure due to SA_RESTORER.
5022 * tests/test-sigaction.c (SA_MASK): New macro.
5023 (main): Avoid failing due to extension flags being set.
5024 Reported by Jim Meyering.
5026 Revert use of sig-handler.h in sigprocmask.c.
5027 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
5028 it requires the existence of struct sigaction.
5029 * lib/sigprocmask.c (handler_t): Restore typedef.
5030 (rpl_signal, old_handlers): Use local type.
5032 2008-06-22 Bruno Haible <bruno@clisp.org>
5034 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
5036 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5038 2008-06-22 Bruno Haible <bruno@clisp.org>
5040 * doc/posix-functions/siginterrupt.texi: Move note.
5042 * lib/signal.in.h (SA_RESTART): New macro.
5043 * lib/sigaction.c: Update comment.
5045 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
5047 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
5048 (gl_PREREQ_SIGPROCMASK): Invoke it.
5049 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
5051 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
5053 * lib/sigprocmask.c: Update a comment.
5055 2008-06-21 Eric Blake <ebb9@byu.net>
5057 Use sigaction module rather than signal().
5058 * modules/c-stack (Depends-on): Add sigaction.
5059 * modules/fatal-signal (Depends-on): Likewise.
5060 * modules/nanosleep (Depends-on): Likewise.
5061 * modules/sigprocmask (Files): Add sig-handler.h.
5062 * modules/sigaction (Files): Likewise.
5063 * lib/sig-handler.h (get_handler): New file, suggested by Paul
5065 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
5066 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
5067 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
5068 (init_fatal_signals): Likewise.
5069 * lib/nanosleep.c (rpl_nanosleep): Likewise.
5070 (siginterrupt): Delete fallback.
5071 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
5073 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
5076 New module sigaction, for mingw.
5077 * modules/sigaction: New module...
5078 * modules/sigaction-tests: ...and its test.
5079 * m4/sigaction.m4: New file.
5080 * lib/sigaction.c: Likewise.
5081 * tests/test-sigaction.c: Likewise.
5082 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
5083 * modules/signal (Makefile.am): Likewise.
5084 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
5086 * doc/posix-headers/signal.texi (signal.h): Mention provided
5088 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
5089 that sigaction is preferable.
5090 * doc/posix-functions/sigaction.texi (sigaction): Mention new
5092 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
5095 Improve robustness of sigprocmask by overriding signal.
5096 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
5098 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
5099 (SIGKILL, SIGSTOP): Provide fallbacks.
5100 (rpl_signal): Implement.
5101 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
5102 signal can be called inside handlers.
5104 Fix nanosleep module on mingw.
5105 * modules/nanosleep (Depends-on): Add sys_select.
5106 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
5108 Fix licensing of sigprocmask.
5109 * modules/raise (License): Relicense as LGPL.
5111 2008-06-21 Bruno Haible <bruno@clisp.org>
5113 * lib/propername.c (proper_name_utf8): Don't use the transliterated
5114 result if it contains question marks.
5115 Reported by Michael Geng <linux@michaelgeng.de>.
5117 2008-06-19 Bruno Haible <bruno@clisp.org>
5120 * doc/gnulib.texi: Include updated-stamp.texi.
5121 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
5122 (updated-stamp.texi): New rule.
5123 (gnulib.info): Depend on it.
5124 * doc/.gitignore: Add updated-stamp.texi.
5125 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
5127 2008-06-19 Bruno Haible <bruno@clisp.org>
5129 * doc/Makefile (gnulib.info): Update and simplify dependencies.
5130 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
5132 2008-06-19 Eric Blake <ebb9@byu.net>
5134 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
5135 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
5136 Reported by Stepan Kasal.
5138 2008-06-18 Bruno Haible <bruno@clisp.org>
5140 * lib/fatal-signal.c (init_fatal_signals): Add comment.
5141 Reported by Eric Blake.
5143 2008-06-18 Eric Blake <ebb9@byu.net>
5145 Work around cygwin 1.5.25 strsignal bug.
5146 * tests/test-strsignal.c: Allow for const char *.
5147 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
5149 2008-06-18 Simon Josefsson <simon@josefsson.org>
5151 * users.txt: Update URL to article and add author/date
5154 2008-06-17 Bruno Haible <bruno@clisp.org>
5156 New macro gl_DISABLE_THREADS.
5157 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
5158 if the user did not pass --enable-threads or --disable-threads option.
5159 (gl_DISABLE_THREADS): New macro.
5160 Reported by Eric Blake <ebb9@byu.net>.
5162 2008-06-17 Bruno Haible <bruno@clisp.org>
5164 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
5165 when the macro ignores it.
5166 Based on a patch by Eric Blake <ebb9@byu.net>.
5168 2008-06-17 Bruno Haible <bruno@clisp.org>
5170 * modules/tls (License): Change to LGPLv2+.
5171 Reported by Eric Blake.
5173 2008-06-17 Eric Blake <ebb9@byu.net>
5175 Simplify c-stack prerequisites.
5176 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
5177 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
5178 no longer requires <ucontext.h> to exist. Optimize setrlimit
5180 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
5183 Move c-stack test into testsuite.
5184 * modules/c-stack-tests: New file.
5185 * lib/c-stack.c [DEBUG]: Move test program...
5186 * tests/test-c-stack.c: ...into this new file. Skip rather than
5187 fail test if sigaltstack is lacking.
5188 * tests/test-c-stack.sh: New driver file.
5190 2008-06-16 Eric Blake <ebb9@byu.net>
5192 Use raise module consistently.
5193 * modules/fatal-signal (Depends-on): Add raise.
5194 * modules/sigprocmask (Depends-on): Likewise.
5195 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
5196 * lib/sigprocmask.c (sigprocmask): Likewise.
5197 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
5198 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
5200 Fix compliance bug in sigpending.
5201 * lib/sigprocmask.c (sigpending): Return pending array via
5202 parameter, not return value.
5204 2008-06-14 Eric Blake <ebb9@byu.net>
5206 Improve obstack-printf test code.
5207 * tests/test-obstack-printf.c (test_function): Fix comment, and
5208 simplify usage of obstack_* in macros. Add a test for coverage.
5209 Reported by Bruno Haible.
5211 2008-06-14 Bruno Haible <bruno@clisp.org>
5213 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
5214 array size as a constant, not as a const variable.
5215 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
5216 AC_USE_SYSTEM_EXTENSIONS.
5217 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
5218 Test whether the obstack_printf function actually exists.
5219 * modules/obstack-printf (Depends-on): Add extensions.
5220 (Include): Remove obstack.h.
5221 * modules/obstack-printf-posix (Depends-on): Add extensions.
5222 (Include): Remove obstack.h.
5224 2008-06-13 Eric Blake <ebb9@byu.net>
5226 Add obstack-printf and obstack-printf-posix modules.
5227 * modules/obstack-printf: New file.
5228 * modules/obstack-printf-posix: Likewise.
5229 * MODULES.html.sh (Misc): Mention them.
5230 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
5232 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
5234 * modules/stdio (Makefile.am): Accomodate new modules.
5235 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
5236 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
5238 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
5240 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
5241 (gl_REPLACE_OBSTACK_PRINTF): New macros
5242 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
5243 * tests/test-obstack-printf.c: New file.
5244 * modules/obstack-printf-tests: Likewise.
5245 * modules/obstack-printf-posix-tests: Likewise.
5247 2008-06-11 Bruno Haible <bruno@clisp.org>
5249 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
5250 * lib/open.c: Include errno.h.
5251 (open): Fail when attempting to write to a file that has a trailing
5253 * tests/test-open.c (main): Test against trailing slash bug.
5254 * doc/posix-functions/open.texi: Mention the trailing slash bug.
5256 2008-06-10 Bruno Haible <bruno@clisp.org>
5258 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
5259 for $? to work inside the trap command, with various /bin/sh-s.
5260 * tests/test-vc-list-files-cvs.sh: Likewise.
5262 2008-06-10 Bruno Haible <bruno@clisp.org>
5264 * lib/acl-internal.h: Don't include gettext.h here.
5265 * lib/set-mode-acl.c: Include gettext.h here.
5266 * lib/copy-acl.c: Likewise.
5268 2008-06-10 Bruno Haible <bruno@clisp.org>
5270 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
5271 * lib/wait-process.c (wait_subprocess): Likewise.
5272 * lib/execute.h (execute): Add termsigp argument.
5273 * lib/execute.c (execute): Likewise.
5274 * lib/csharpcomp.c (compile_csharp_using_pnet,
5275 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
5276 * lib/csharpexec.c (execute_csharp_using_pnet,
5277 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
5278 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
5279 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
5280 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
5281 is_jikes_present): Update.
5282 * lib/javaexec.c (execute_java_class): Update.
5283 * lib/javaversion.c (execute_and_read_line): Update.
5284 * NEWS: Document the changes.
5285 Reported by Eric Blake.
5287 2008-06-10 Eric Blake <ebb9@byu.net>
5289 Add missing include.
5290 * tests/test-strstr.c (includes): Add <signal.h>.
5291 * tests/test-strcasestr.c (includes): Likewise.
5292 * tests/test-memmem.c (includes): Likewise.
5294 2008-06-10 Bruno Haible <bruno@clisp.org>
5296 * lib/wait-process.c (wait_subprocess): Add an assertion.
5298 2008-06-10 Bruno Haible <bruno@clisp.org>
5300 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
5302 2008-06-10 Bruno Haible <bruno@clisp.org>
5304 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
5306 * tests/test-strcasestr.c (main): Likewise.
5307 * tests/test-strstr.c (main): Likewise.
5309 2008-06-09 Bruno Haible <bruno@clisp.org>
5311 Work around the Solaris 10 ACE ACLs ABI change.
5312 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
5313 declare if ACL_NO_TRIVIAL is present.
5314 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
5315 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
5316 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
5317 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
5318 define if ACL_NO_TRIVIAL is present.
5319 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
5320 and use the current ABI.
5321 (file_has_acl): Use same #if condition as elsewhere.
5322 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
5323 in use, and use the current ABI.
5324 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
5325 Reported by Jim Meyering.
5327 2008-06-09 Eric Blake <ebb9@byu.net>
5329 Work around environments that (stupidly) ignore SIGALRM.
5330 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
5331 before using alarm().
5332 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5333 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5334 Reported by Ian Beckwith <ianb@erislabs.net>.
5336 Produce autobuild blurb earlier in log.
5337 * modules/autobuild (configure.ac-early): Move AB_INIT here.
5339 2008-06-09 Jim Meyering <meyering@redhat.com>
5340 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
5342 utimens.c: correct kernel bug work-around
5343 OndÅ™ej VaÅ¡Ãk found that the invalid return value of 280 indicates
5344 failure, not success, and the kernel bug we're trying to work
5345 around affects not just the utimensat call, but also the fallback
5347 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
5349 [HAVE_FUTIMENS]: Use the same work-around, here.
5351 2008-06-09 Jim Meyering <meyering@redhat.com>
5353 add more guards around definition of ACE_-related code
5354 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
5355 ALLOW and ACE_OWNER are also defined.
5357 2008-06-08 Bruno Haible <bruno@clisp.org>
5359 * lib/acl-internal.h: Add me as co-author.
5360 * lib/file-has-acl.c: Likewise.
5361 * lib/set-mode-acl.c: Likewise.
5362 * lib/copy-acl.c: Likewise.
5364 2008-06-08 Bruno Haible <bruno@clisp.org>
5366 Add support for AIX ACLs.
5367 * lib/acl-internal.h (acl_nontrivial): New declaration.
5368 * lib/file-has-acl.c (acl_nontrivial): New function.
5369 (file_has_acl): Add implementation using AIX 4 ACL API.
5370 * lib/set-mode-acl.c (qset_acl): Likewise.
5371 * lib/copy-acl.c (qcopy_acl): Likewise.
5373 2008-06-08 Bruno Haible <bruno@clisp.org>
5375 Add support for HP-UX ACLs.
5376 * lib/acl-internal.h (acl_nontrivial): New declaration.
5377 * lib/file-has-acl.c (acl_nontrivial): New function.
5378 (file_has_acl): Add implementation using HP-UX 11 ACL API.
5379 * lib/set-mode-acl.c (qset_acl): Likewise.
5380 * lib/copy-acl.c (qcopy_acl): Likewise.
5382 2008-06-08 Bruno Haible <bruno@clisp.org>
5384 Add support for Cygwin ACLs.
5385 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
5386 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
5387 the chmod_or_fchmod call.
5388 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
5390 2008-06-08 Bruno Haible <bruno@clisp.org>
5392 Fix bug with setuid modes in Solaris 10+ code.
5393 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
5394 succeeded, when the mode contains some special bits.
5396 2008-06-08 Bruno Haible <bruno@clisp.org>
5398 Add support for Solaris 7..10 ACLs.
5399 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
5401 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
5403 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
5404 * lib/set-mode-acl.c (qset_acl): Likewise.
5405 * lib/copy-acl.c (qcopy_acl): Likewise.
5407 2008-06-08 Bruno Haible <bruno@clisp.org>
5409 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
5411 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
5412 (acl_access_nontrivial): Remove MacOS X case.
5413 (file_has_acl): Use acl_extended_nontrivial.
5414 * lib/copy-acl.c (qcopy_acl): Likewise.
5416 2008-06-08 Bruno Haible <bruno@clisp.org>
5418 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
5420 2008-06-08 Jim Meyering <meyering@redhat.com>
5422 * modules/acl (Maintainer): Add Bruno Haible.
5424 2008-06-07 Bruno Haible <bruno@clisp.org>
5426 Improve support for Tru64 ACLs.
5427 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
5430 2008-06-07 Bruno Haible <bruno@clisp.org>
5432 Add support for MacOS X ACLs.
5433 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
5434 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
5435 * lib/set-mode-acl.c (qset_acl): Likewise.
5436 * lib/copy-acl.c (qcopy_acl): Likewise.
5438 2008-06-07 Bruno Haible <bruno@clisp.org>
5440 Fix memory leak introduced on 2008-05-22.
5441 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
5444 2008-06-07 Bruno Haible <bruno@clisp.org>
5446 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
5447 to construct an empty ACL.
5449 2008-06-07 Bruno Haible <bruno@clisp.org>
5451 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
5453 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
5455 2008-06-07 Bruno Haible <bruno@clisp.org>
5457 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
5458 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
5460 2008-06-07 Bruno Haible <bruno@clisp.org>
5462 * doc/posix-functions/_setjmp.texi: Explain the use of this function
5463 regardless of POSIX.
5464 * doc/posix-functions/_longjmp.texi: Likewise.
5465 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
5466 SystemV platform in this case.
5468 2008-06-06 Eric Blake <ebb9@byu.net>
5470 Document abort() bugs.
5471 * doc/posix-functions/abort.texi (abort): Mention anomalies.
5473 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
5474 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
5476 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
5477 siglongjmp, but only as a macro.
5478 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
5480 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
5482 Tweak documentation to cover cygwin argz bugs.
5483 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
5484 argz bug fix; no code change needed since no cygwin releases
5485 occurred between the last fix and the bug being tested.
5486 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
5487 module and recently fixed cygwin bugs.
5488 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
5489 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
5490 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
5491 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
5492 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
5494 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
5495 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
5496 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
5497 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
5498 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
5499 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
5502 Avoid gcc warning on cygwin.
5503 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
5504 !ACL_NO_TRIVIAL]: Avoid unused variable.
5506 2008-06-05 Eric Blake <ebb9@byu.net>
5508 Be tolerant of UNKNOWN version in gnulib-tool test dir.
5509 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
5510 git-version-gen fails to come up with a version.
5511 Reported by Simon Josefsson.
5513 2008-06-05 Jim Meyering <meyering@redhat.com>
5514 Paul Eggert <eggert@cs.ucla.edu>
5516 utimens.c: work around a probable Linux kernel bug
5517 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
5518 appears to be a kernel bug that causes utimensat to return 280
5519 instead of 0, indicating success.
5521 2008-06-04 Bruno Haible <bruno@clisp.org>
5523 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
5526 2008-06-04 Bruno Haible <bruno@clisp.org>
5528 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
5529 * lib/file-has-acl.c (acl_access_nontrivial): New function.
5530 (file_has_acl): Use it. Save errno afterwards.
5531 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
5533 2008-06-03 Bruno Haible <bruno@clisp.org>
5535 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
5536 draft code. Simplify #ifs.
5537 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
5538 Put Solaris code after POSIX-draft code. Fix comments regarding
5539 Solaris 10, HP-UX. Mention Cygwin.
5540 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
5542 2008-06-03 Eric Blake <ebb9@byu.net>
5544 Provide fallback for older kernels.
5545 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
5546 Provide runtime fallback if kernel lacks support.
5547 Reported by Mike Frysinger.
5549 2008-06-02 Bruno Haible <bruno@clisp.org>
5551 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
5554 2008-06-02 Bruno Haible <bruno@clisp.org>
5556 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
5557 * lib/copy-acl.c (qcopy_acl): Update comment.
5559 2008-06-02 Bruno Haible <bruno@clisp.org>
5561 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
5564 2008-06-02 Bruno Haible <bruno@clisp.org>
5566 * tests/test-file-has-acl.sh: Use different code for Cygwin.
5567 * tests/test-set-mode-acl.sh: Likewise.
5568 * tests/test-copy-acl.sh: Likewise.
5569 * tests/test-copy-file.sh: Likewise.
5571 2008-06-02 Bruno Haible <bruno@clisp.org>
5573 * tests/test-file-has-acl.sh: Remove unused code.
5575 2008-06-01 Bruno Haible <bruno@clisp.org>
5577 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
5578 (copy_acl): Just a wrapper around qcopy_acl that emits the error
5580 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
5582 2008-06-01 Bruno Haible <bruno@clisp.org>
5584 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
5585 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
5586 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
5588 * modules/acl-tests (configure.ac): Remove tests now contained in
5591 2008-06-02 Jim Meyering <meyering@redhat.com>
5593 announce-gen: use a better key-server host name
5594 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
5595 it may be more consistently reliable. Suggested by Werner Koch
5596 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
5598 2008-06-01 Bruno Haible <bruno@clisp.org>
5600 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
5601 Reported by Voroskoi Andras <voroskoi@gmail.com>.
5603 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
5605 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
5607 2008-06-01 Bruno Haible <bruno@clisp.org>
5610 * tests/test-file-has-acl.sh: New file.
5611 * tests/test-file-has-acl.c: New file.
5612 * tests/test-set-mode-acl.sh: New file.
5613 * tests/test-set-mode-acl.c: New file.
5614 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
5615 * tests/test-copy-acl.c: New file.
5616 * modules/acl-tests: New file, based on modules/copy-file-tests.
5617 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
5618 (Depends-on): Add acl-tests.
5619 (configure.ac): Remove checks.
5620 (Makefile.am): Don't create test-sameacls program here any more.
5622 2008-06-01 Bruno Haible <bruno@clisp.org>
5624 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
5625 * tests/test-sameacls.c: Include progname.h.
5626 (main): Invoke set_program_name. Portability fixes for MacOS X,
5629 2008-06-01 Bruno Haible <bruno@clisp.org>
5631 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
5633 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
5635 2008-06-01 Bruno Haible <bruno@clisp.org>
5637 * modules/rpmatch (Depends-on): Add strdup.
5639 2008-06-01 Bruno Haible <bruno@clisp.org>
5641 * lib/pipe.c: Include unistd-safer.h.
5642 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
5643 * modules/pipe (Depends-on): Add unistd-safer.
5645 2008-05-30 Simon Josefsson <simon@josefsson.org>
5647 * modules/autobuild (configure.ac): Call AB_INIT.
5649 2008-05-30 Simon Josefsson <simon@josefsson.org>
5651 * tests/test-getaddrinfo.c: Don't print debug messages by default.
5652 Suggested by Bruno Haible <bruno@clisp.org>.
5654 2008-05-30 Simon Josefsson <simon@josefsson.org>
5656 * tests/test-base64.c: Cast size_t to unsigned long when invoking
5657 printf. Use %lu instead of %d. Reported by Bruno Haible
5660 2008-05-29 Eric Blake <ebb9@byu.net>
5662 Prefer new POSIX 200x interfaces over futimesat.
5663 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
5664 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
5666 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
5668 2008-05-28 Bruno Haible <bruno@clisp.org>
5670 * modules/stpcpy (License): Change to LGPLv2+.
5671 Requested by David Lutterkort <dlutter@redhat.com>.
5673 2008-05-27 Bruno Haible <bruno@clisp.org>
5675 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
5677 Reported by Jose E. Marchesi <jemarch@gnu.org>.
5679 2008-05-27 Bruno Haible <bruno@clisp.org>
5681 * modules/iconv_open (Link): New section, from module 'iconv'.
5682 * modules/striconv (Link): Likewise.
5683 * modules/striconveh (Link): Likewise.
5684 * modules/xstriconv (Link): Likewise.
5685 * modules/unicodeio (Link): Likewise.
5686 * modules/propername (Link): Likewise.
5687 Reported by Jim Meyering.
5689 2008-05-26 Jim Meyering <meyering@redhat.com>
5691 sha256: do not artificially restrict buffer length to be < 2^32
5692 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
5694 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
5697 avoid unaligned access errors, e.g., on sparc
5698 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
5699 direct access through a possibly-unaligned uint64* pointer.
5700 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
5701 direct access through a possibly-unaligned uint32* pointer.
5702 Prompted by this patch from Tom "spot" Callaway:
5703 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
5705 sha512.c: fix typo in comment
5706 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
5708 2008-05-25 Bruno Haible <bruno@clisp.org>
5710 * lib/set-mode-acl.c: Renamed from lib/acl.c.
5711 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
5712 (Makefile.am): Update lib_SOURCES.
5714 2008-05-25 Bruno Haible <bruno@clisp.org>
5716 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
5718 2008-05-25 Jim Meyering <meyering@redhat.com>
5720 useless-if-before-free: freed expr may have white-space differences
5721 * build-aux/useless-if-before-free: Recognize cases in which the
5722 freed expression differs from the tested one in embedded white
5723 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
5724 $1 was used, so we can't make any regexp shy. Improved tests now
5727 useless-if-before-free: accept white space in the expression.
5728 * build-aux/useless-if-before-free: For now, any white space
5729 in the expression must be identical in the free argument.
5731 useless-if-before-free: efficiency tweak
5732 * build-aux/useless-if-before-free: Make the expression-matching
5734 Make the *outer* regexp shy, not the expr-matching one.
5736 update code-in-comment to accept cast of free arg
5737 * build-aux/useless-if-before-free: Update regexp.
5739 2008-05-25 Bruno Haible <bruno@clisp.org>
5741 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
5742 * modules/copy-file-tests (Files, Makefile.am): Update.
5743 * tests/test-copy-file.c (func_test_copy): Update.
5745 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
5747 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
5749 2008-05-23 Bruno Haible <bruno@clisp.org>
5751 Improve support for ACLs on OSF/1.
5752 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
5753 Remove fallback for unknown flavors of ACLs.
5755 2008-05-22 Bruno Haible <bruno@clisp.org>
5757 Add support for ACLs on OSF/1.
5758 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
5760 (acl_free_text): New macro fallback.
5761 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
5763 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
5764 acl_free_text function. Require AC_C_INLINE.
5766 2008-05-22 Bruno Haible <bruno@clisp.org>
5768 Make copy_acl work on MacOS X 10.5.
5769 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
5770 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
5771 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
5772 If MODE_INSIDE_ACL, don't assume that every system has the same text
5773 representation for ACLs as FreeBSD.
5774 * lib/copy-acl.c (copy_acl): Add support for platforms with
5776 * lib/file-has-acl.c (file_has_acl): Likewise.
5777 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
5778 FreeBSD, MacOS X, or IRIX, respectively.
5780 2008-05-22 Bruno Haible <bruno@clisp.org>
5782 * lib/acl.h: Don't include <sys/acl.h>.
5783 (GETACLCNT): Move fallback to lib/acl-internal.h.
5784 * lib/acl-internal.h: Include <sys/acl.h> here.
5785 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
5787 2008-05-22 Bruno Haible <bruno@clisp.org>
5789 Split off copy_acl function to separate file.
5790 * lib/copy-acl.c: New file, extracted from lib/acl.c.
5791 * lib/acl.c (copy_acl): Moved function to separate file.
5792 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
5793 * modules/acl (Files): Add lib/copy-acl.c.
5794 (Makefiles.am): Augment lib_SOURCES.
5796 2008-05-22 Bruno Haible <bruno@clisp.org>
5798 * modules/copy-file-tests: New file.
5799 * tests/test-copy-file.sh: New file.
5800 * tests/test-copy-file.c: New file.
5801 * tests/test-copy-file-sameacls.c: New file.
5803 2008-05-22 Eric Blake <ebb9@byu.net>
5806 * tests/test-memcmp.c (main): Pass NULL indirectly.
5808 2008-05-21 Bruno Haible <bruno@clisp.org>
5810 Add reference doc about ACLs.
5811 * doc/acl-resources.txt: New file.
5812 * doc/acl-cygwin.txt: New file.
5814 2008-05-21 Bruno Haible <bruno@clisp.org>
5816 Avoid one more warning from gcc.
5817 * lib/vasnprintf.c (IF_LINT): Update comments.
5818 (VASNPRINTF): Use it also for the 'prefix' array initializer.
5820 2008-05-21 Jim Meyering <meyering@redhat.com>
5822 avoid a warning from gcc
5823 * lib/vasnprintf.c (IF_LINT): Define.
5824 (scale10_round_decimal_long_double):
5825 Use it to avoid a "may be used uninitialized" warning.
5826 (scale10_round_decimal_double): Likewise.
5828 2008-05-21 Simon Josefsson <simon@josefsson.org>
5830 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
5833 2008-05-20 Bruno Haible <bruno@clisp.org>
5835 * tests/test-memcmp.c (main): Test also the sign of the result. Test
5836 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
5838 2008-05-20 Simon Josefsson <simon@josefsson.org>
5840 * modules/memcmp-tests: New file.
5841 * tests/test-memcmp.c: New file.
5843 2008-05-19 Bruno Haible <bruno@clisp.org>
5845 * modules/propername (Notice, configure.ac): Put quoted "..." into
5847 * lib/propername.h: Update comments accordingly.
5848 Reported by Eric Blake.
5850 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
5852 * modules/getpass-gnu (Depends-on): Add fseeko.
5854 2008-05-19 Simon Josefsson <simon@josefsson.org>
5856 * modules/base64-tests: New file.
5858 2008-05-19 Bo Borgerson <gigabo@gmail.com>
5860 * lib/base64.c (base64_decode_ctx): If a decode context structure
5861 was passed in use it to ignore newlines. If a context structure
5862 was _not_ passed in, continue to treat newlines as garbage (this
5863 is the historical behavior). Formerly base64_decode.
5864 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
5865 takes a decode context structure.
5866 * lib/base64.h (base64_decode): Macro for four-argument calls.
5867 (base64_decode_alloc): Likewise.
5868 * lib/base64.c (base64_decode_ctx): If a decode context structure
5869 was passed in use it to ignore newlines. If a context structure
5870 was _not_ passed in, continue to treat newlines as garbage (this
5871 is the historical behavior). Formerly base64_decode.
5872 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
5873 takes a decode context structure.
5874 * lib/base64.h (base64_decode): Macro for four-argument calls.
5875 (base64_decode_alloc): Likewise.
5877 2008-05-19 Jim Meyering <meyering@redhat.com>
5879 avoid a warning from gcc
5880 * lib/trim.c (IF_LINT): Define.
5881 (trim2): Use it to avoid a "may be used uninitialized" warning.
5884 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
5886 2008-05-19 Bruno Haible <bruno@clisp.org>
5888 * doc/glibc-functions/getpass.texi: Document limits of other
5891 2008-05-19 Simon Josefsson <simon@josefsson.org>
5892 Bruno Haible <bruno@clisp.org>
5894 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
5896 2008-05-18 Bruno Haible <bruno@clisp.org>
5898 * modules/propername: New file, from GNU gettext.
5899 * lib/propername.h: New file, from GNU gettext.
5900 * lib/propername.c: New file, from GNU gettext.
5901 * MODULES.html.sh (Internationalization functions): Add propername.
5903 2008-05-16 Jim Meyering <meyering@redhat.com>
5904 Bruno Haible <bruno@clisp.org>
5906 Avoid some warnings from "gcc -Wshadow".
5907 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
5909 2008-05-15 Eric Blake <ebb9@byu.net>
5911 Extend previous patch to cygwin 1.7.0.
5912 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
5913 fast implementation in cygwin >= 1.7.0.
5914 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5915 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5917 2008-05-15 Bruno Haible <bruno@clisp.org>
5919 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
5920 implementation in glibc >= 2.9.
5921 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5922 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5924 2008-05-15 Bruno Haible <bruno@clisp.org>
5926 * MODULES.html.sh (Internationalization functions): Remove linebreak.
5927 (Unicode string functions): Add unilbrk/*.
5928 Reported by Karl Berry.
5930 2008-05-15 Eric Blake <ebb9@byu.net>
5932 Fix violation of <stdbool.h> replacement in regex.
5933 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
5934 * lib/regexec.c (re_search_internal): Likewise.
5935 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
5937 2008-05-15 Jim Meyering <meyering@redhat.com>
5939 avoid distracting test output when git or cvs is not found
5940 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
5941 * tests/test-vc-list-files-git.sh: Likewise.
5943 2008-05-15 Eric Blake <ebb9@byu.net>
5945 Glibc finally accepted the memmem speedup code, bugzilla #5514.
5946 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
5948 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
5949 * doc/posix-functions/strstr.texi (strstr): Likewise.
5950 * lib/str-two-way.h (MAX): Sychronize with glibc.
5952 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
5954 * lib/regcomp.c (optimize_utf8): Add a note on why we test
5956 (calc_first): Initialize constraint field.
5957 (duplicate_node_closure): Use it instead of special casing ANCHORS.
5959 (duplicate_node): Merge constraint field for all node types.
5960 (calc_eclosure_iter): Look at constraint field for all node types.
5961 * lib/regex_internal.c (create_cd_newstate): Don't look at
5964 2008-05-14 Bruno Haible <bruno@clisp.org>
5966 Help GCC to do better code generation.
5967 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
5968 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
5969 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
5970 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
5971 Declare with attribute 'malloc' if supported.
5973 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
5975 use "echo STR|wc -c" rather than unportable "expr length STR"
5976 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
5977 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
5979 2008-05-14 Jim Meyering <meyering@redhat.com>
5981 use dd ibs=$n count=1 ... rather than less-portable head -c$n
5982 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
5983 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
5984 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
5987 2008-05-14 Eric Blake <ebb9@byu.net>
5989 Avoid quadratic growth in gl_LIBSOURCES.
5990 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
5991 Suggested by Bruno Haible.
5994 * modules/xmemdup0-tests: New file.
5995 * tests/test-xmemdup0.c: Likewise.
5997 2008-05-13 Eric Blake <ebb9@byu.net>
5999 Split xmemdup0 into its own module.
6000 * modules/xmemdup0: New file.
6001 * lib/xmemdup0.h: Likewise.
6002 * lib/xmemdup0.c: Likewise.
6003 * MODULES.html.sh (Memory management functions): Add xmemdup0.
6004 * lib/xalloc.h (xmemdup0): Remove.
6005 * lib/xmalloc.c (xmemdup0): Likewise.
6007 2008-05-13 Eric Blake <ebb9@byu.net>
6008 Bruno Haible <bruno@clisp.org>
6010 Reduce number of forks required during autoconf.
6011 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
6012 and gl_LIBSOURCES_DIR.
6013 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
6014 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
6016 <m4_foreach_w>: Move...
6017 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
6019 2008-05-13 Eric Blake <ebb9@byu.net>
6021 * gnulib-tool: Fix various comment typos.
6023 2008-05-12 Bruno Haible <bruno@clisp.org>
6025 Tailor the linebreaking algorithm.
6026 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
6028 2008-05-12 Bruno Haible <bruno@clisp.org>
6030 Update to Unicode 5.0.0.
6031 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
6032 LBP_JV, LBP_JT. Redistribute values.
6033 (unilbrk_table): Change size.
6034 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
6035 Unicode TR#14 rev. 22.
6036 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
6037 LBP_JV, LBP_JT. Redistribute values.
6038 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
6039 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
6041 * lib/unilbrk/lbrkprop1.h: Regenerated.
6042 * lib/unilbrk/lbrkprop2.h: Regenerated.
6043 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
6044 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
6045 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
6047 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
6049 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
6051 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6052 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6053 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
6054 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
6055 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
6056 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
6058 2008-05-11 Bruno Haible <bruno@clisp.org>
6060 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
6062 2008-05-11 Bruno Haible <bruno@clisp.org>
6064 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
6065 * modules/unilbrk/gen-lbrk: New file.
6067 2008-05-11 Bruno Haible <bruno@clisp.org>
6069 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
6070 * m4/sha512.m4 (gl_SHA512): Likewise.
6072 2008-05-11 Jim Meyering <meyering@redhat.com>
6074 New modules: crypto/sha256, crypto/sha512 (from coreutils)
6075 * modules/crypto/sha256: New file.
6076 * modules/crypto/sha512: Likewise.
6077 * lib/sha256.c: Likewise.
6078 * lib/sha256.h: Likewise.
6079 * lib/sha512.c: Likewise.
6080 * lib/sha512.h: Likewise.
6081 * lib/u64.h: Likewise.
6082 * m4/sha256.m4: Likewise.
6083 * m4/sha512.m4: Likewise.
6084 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
6086 2008-05-10 Bruno Haible <bruno@clisp.org>
6088 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
6089 (Input/Output <stdio.h>): Add xprintf.
6090 (Signal handling <signal.h>): Add strsignal.
6091 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
6092 (Core language properties): Add func.
6093 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
6094 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
6096 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
6097 (Input/output): New section.
6098 (File system functions): Add openat-die, stat-macros.
6099 (Networking functions): Add sockets.
6100 (Unicode string functions): Add unictype/*.
6101 (Support for building libraries and executables): Add gperf.
6102 (Support for building documentation): Add agpl-3.0.
6103 (Misc): Add nocrash.
6105 2008-05-10 Bruno Haible <bruno@clisp.org>
6107 * modules/unictype/gen-ctype: New file.
6109 2008-05-10 Jim Meyering <meyering@redhat.com>
6111 Make chdir-safer.c more efficient on a system with no symlinks.
6112 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
6113 also if ELOOP is zero. Suggested by Bruno Haible.
6115 Make chdir-safer.c slightly safer.
6116 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
6117 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
6119 Avoid compile failure on systems without ELOOP (like mingw).
6120 * lib/chdir-safer.c (ELOOP): Define if not already defined.
6121 Reported by Bruno Haible.
6123 2008-05-10 Bruno Haible <bruno@clisp.org>
6125 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
6126 (is_utf8_encoding): Use a case-insensitive comparison.
6127 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
6130 2008-05-10 Bruno Haible <bruno@clisp.org>
6132 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
6133 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
6134 * lib/unilbrk/ulc-common.h (iconv_string_length,
6135 iconv_string_keeping_offsets): Remove declarations.
6136 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
6137 Don't include <iconv.h>, streq.h, xsize.h.
6138 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
6140 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
6141 <iconv.h>, streq.h, xsize.h.
6142 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
6144 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
6145 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
6146 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
6147 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
6149 2008-05-10 Bruno Haible <bruno@clisp.org>
6151 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
6152 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
6154 * modules/unilbrk/u32-width-linebreaks-tests: New file.
6155 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
6157 * modules/unilbrk/u16-width-linebreaks-tests: New file.
6158 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
6160 * modules/unilbrk/u8-width-linebreaks-tests: New file.
6161 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
6163 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
6164 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
6166 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
6167 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
6169 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
6170 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
6172 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
6173 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
6175 2008-05-10 Bruno Haible <bruno@clisp.org>
6177 Split up 'linebreak' module.
6178 * lib/unilbrk.h: New file, based on lib/linebreak.h.
6179 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
6180 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
6182 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
6183 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
6184 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
6186 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
6188 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
6190 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
6191 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
6192 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
6194 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
6196 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
6198 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
6200 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
6202 * modules/unilbrk/base: New file.
6203 * modules/unilbrk/tables: New file.
6204 * modules/unilbrk/u8-possible-linebreaks: New file.
6205 * modules/unilbrk/u16-possible-linebreaks: New file.
6206 * modules/unilbrk/u32-possible-linebreaks: New file.
6207 * modules/unilbrk/ulc-common: New file.
6208 * modules/unilbrk/ulc-possible-linebreaks: New file.
6209 * modules/unilbrk/u8-width-linebreaks: New file.
6210 * modules/unilbrk/u16-width-linebreaks: New file.
6211 * modules/unilbrk/u32-width-linebreaks: New file.
6212 * modules/unilbrk/ulc-width-linebreaks: New file.
6213 * lib/linebreak.h: Remove file.
6214 * lib/linebreak.c: Remove file.
6215 * m4/linebreak.m4: Remove file.
6216 * modules/linebreak: Remove file.
6217 * NEWS: Mention the changes.
6219 2008-05-09 Eric Blake <ebb9@byu.net>
6222 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
6224 * lib/xmalloc.c (xmemdup0): New C implementation.
6226 2008-05-08 Bruno Haible <bruno@clisp.org>
6228 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
6230 2008-05-07 Eric Blake <ebb9@byu.net>
6232 Support cross-compilation of <wctype.h>.
6233 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
6236 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
6238 * build-aux/vc-list-files: Add support for bzr.
6240 2008-05-03 Jim Meyering <meyering@redhat.com>
6242 avoid failed assertion with tight malloc
6243 * tests/test-getndelim2.c: Correct an off-by-one assertion.
6245 2008-05-03 Simon Josefsson <simon@josefsson.org>
6247 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
6248 are needed from arpa/inet.h.
6249 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
6250 Reported by Bruno Haible.
6252 2008-05-02 Jim Meyering <meyering@redhat.com>
6254 avoid compilation error on FreeBSD 6
6255 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
6257 2008-05-01 Jim Meyering <meyering@redhat.com>
6259 useless-if-before-free: correct --help's exit status description
6260 * build-aux/useless-if-before-free (usage): Like grep, exit 0
6261 for one or more matches, etc. Reported by Bruno Haible.
6263 vc-list-files: make the stand-alone gnulib test work
6264 * modules/vc-list-files-tests (configure.ac):
6265 Define and AC_SUBST abs_aux_dir.
6266 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
6267 $(abs_top_srcdir) to each script and having each of them
6268 duplicate the work of setting PATH, set PATH here, using
6269 the new variable, abs_aux_dir instead.
6270 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
6271 * tests/test-vc-list-files-git.sh: Likewise.
6272 Reported by Bruno Haible.
6274 2008-05-01 Bruno Haible <bruno@clisp.org>
6276 * lib/getndelim2.c (getndelim2): Fix newsize computation during
6277 reallocation. Rename 'done' to 'found_delimiter'.
6279 2008-05-01 Jim Meyering <meyering@redhat.com>
6281 vc-list-files: accommodate /bin/sh like the one from Solaris 10
6282 * build-aux/vc-list-files: Use `...`, not $(...).
6284 2008-04-30 Jim Meyering <meyering@redhat.com>
6286 add tests for vc-list-files
6287 * modules/vc-list-files-tests: New module.
6288 * tests/test-vc-list-files-cvs.sh: New file.
6289 * tests/test-vc-list-files-git.sh: New file.
6291 avoid a warning from gcc
6292 * lib/getndelim2.c (IF_LINT): Define.
6293 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
6295 vc-list-files: work properly with build-aux/cvsu, too
6296 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
6297 to all cvs-based clauses.
6299 vc-list-files: work properly in the CVS+awk case, too
6300 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
6302 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
6303 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
6304 take more than one file argument, so . Add quotes, just in case $dir
6305 ever contains a shell meta-character. Prompted by Soren Hansen in
6306 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
6308 2008-04-29 Eric Blake <ebb9@byu.net>
6310 Optimize getndelim2 to use block operations when possible.
6311 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
6312 freadseek, and memchr2.
6313 * lib/getndelim2.c (getndelim2): Use them for block reads.
6315 2008-04-29 Bruno Haible <bruno@clisp.org>
6317 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
6318 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6319 * modules/inet_ntop (Depends-on): Add extensions.
6320 * modules/inet_pton (Depends-on): Likewise.
6321 Reported by Simon Josefsson.
6323 2008-04-29 Jim Meyering <meyering@redhat.com>
6325 When the is more than one match in a block, match all of them.
6326 * build-aux/useless-if-before-free: Iterate through each block
6327 until there are no more matches.
6329 Fix broken useless-if-before-free script.
6330 * build-aux/useless-if-before-free: Fix typo: missing "?" after
6331 the expression to match cast of argument to free-like function.
6333 2008-04-29 Eric Blake <ebb9@byu.net>
6336 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
6338 2008-04-29 Jim Meyering <meyering@redhat.com>
6340 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
6341 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
6342 by gnulib to exist and to declare e.g., inet_ntop.
6343 Don't include "inet_ntop.h", now removed.
6345 * m4/arpa_inet_h.m4: Remove trailing blanks.
6347 2008-04-29 Eric Blake <ebb9@byu.net>
6349 Silence valgrind on safe reads beyond potential array bounds.
6350 * lib/rawmemchr.valgrind: New file.
6351 * lib/strchrnul.valgrind: Likewise.
6352 * modules/rawmemchr (Files): Distribute new file.
6353 * modules/strchrnul (Files): Likewise.
6354 Suggested by Bruno Haible.
6356 2008-04-29 Bruno Haible <bruno@clisp.org>
6358 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
6359 (inet_ntop, inet_pton): Change portability warning's wording.
6360 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
6361 Invoke gl_CHECK_NEXT_HEADERS.
6362 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
6363 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
6365 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6366 * modules/arpa_inet (Description): No longer only for systems that
6368 (Depends-on): Add include_next.
6369 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
6372 2008-04-29 Jim Meyering <meyering@redhat.com>
6374 * modules/mkdir (License): Re-license as LGPLv2+.
6376 2008-04-29 Bruno Haible <bruno@clisp.org>
6378 * modules/rawmemchr (Maintainer): Set to Eric.
6379 * modules/strchrnul (Maintainer): Likewise.
6381 2008-04-29 Simon Josefsson <simon@josefsson.org>
6383 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
6384 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
6386 * modules/arpa_inet (arpa/inet.h): Use them.
6388 2008-04-28 Eric Blake <ebb9@byu.net>
6391 * modules/getndelim2-tests: New file.
6392 * tests/test-getndelim2.c: Likewise.
6393 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
6395 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
6397 * MODULES.html.sh: Document new module.
6399 2008-04-20 Bruno Haible <bruno@clisp.org>
6401 * lib/c-stack.c (die): Use raise.
6402 * modules/c-stack (Depends-on): Add raise.
6404 2008-04-28 Bruno Haible <bruno@clisp.org>
6406 Expect rpmatch to be declared.
6407 * lib/yesno.c (rpmatch): Remove declaration.
6410 * lib/stdlib.in.h (rpmatch): New declaration.
6411 * lib/rpmatch.c: Include <stdlib.h> first.
6412 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
6413 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
6414 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
6416 * modules/rpmatch (Depends-on): Add stdlib, extensions.
6417 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6418 (Include): Set to <stdlib.h>.
6419 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
6421 * NEWS: Document the change.
6423 2008-04-28 Bruno Haible <bruno@clisp.org>
6425 Change rpmatch to use nl_langinfo when appropriate.
6426 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
6428 (localized_pattern): New function/macro.
6429 (try): Remove match, nomatch arguments. Copy the pattern into safe
6430 memory before caching it.
6431 (rpmatch): Use localized_pattern. Add translator comments.
6432 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
6433 Suggested by Eric Blake.
6434 * modules/rpmatch (Depends-on): Add stdbool.
6436 2008-04-28 Eric Blake <ebb9@byu.net>
6438 Add rawmemchr module, matching glibc.
6439 * modules/string (Makefile.am): New indicator.
6440 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
6441 * lib/string.in.h (rawmemchr): Declare when appropriate.
6442 * modules/rawmemchr: New file.
6443 * m4/rawmemchr.m4: Likewise.
6444 * lib/rawmemchr.c: Likewise.
6445 * modules/rawmemchr-tests: Likewise.
6446 * tests/test-rawmemchr.c: Likewise.
6447 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
6449 * modules/strchrnul (Depends-on): Add rawmemchr.
6450 * lib/strchrnul.c (strchrnul): Optimize a corner case.
6453 * tests/test-strchrnul.c: Reindent.
6454 * lib/strchrnul.c: Likewise.
6456 Optimize and test strchrnul.
6457 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
6458 * modules/strchrnul-tests: New file.
6459 * tests/test-strchrnul.c: Likewise.
6461 Remove intprops dependency.
6462 * modules/memchr (Depends-on): Remove intprops.
6463 * modules/memrchr (Depends-on): Likewise.
6464 * modules/memchr2 (Depends-on): Likewise.
6465 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
6466 * lib/memrchr.c (__memrchr): Likewise.
6467 * lib/memrchr2.c (memchr2): Likewise.
6468 Reported by Simon Josefsson.
6470 2008-04-28 Simon Josefsson <simon@josefsson.org>
6472 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
6473 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6475 2008-04-28 Simon Josefsson <simon@josefsson.org>
6477 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
6479 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
6481 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
6483 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
6485 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
6487 * m4/inet_pton.m4: Don't check for header files.
6489 * m4/inet_ntop.m4: Don't check for header files.
6491 2008-04-28 Simon Josefsson <simon@josefsson.org>
6493 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
6494 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
6495 trigger for cygwin).
6496 Reported by Bruno Haible <bruno@clisp.org>.
6498 2008-04-28 Bruno Haible <bruno@clisp.org>
6500 * doc/posix-functions/strdup.texi: Mention mingw problem.
6502 2008-04-27 Bruno Haible <bruno@clisp.org>
6504 * modules/stat-time-tests (Depends-on): Add sleep.
6505 * tests/test-stat-time.c (force_unlink): New function.
6507 (test_mtime): Remove the ctime related tests.
6508 (test_ctime): New function, containing the ctime related tests.
6509 (main): Call test_ctime, except on native Windows platforms.
6511 2008-04-27 Bruno Haible <bruno@clisp.org>
6513 * lib/rpmatch.c (rpmatch): Add some comments.
6514 Reported by James Youngman <jay@gnu.org>.
6516 2008-04-27 Bruno Haible <bruno@clisp.org>
6518 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
6521 2008-04-27 Bruno Haible <bruno@clisp.org>
6523 Make test-yesno.sh work on mingw.
6524 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
6525 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
6526 (main): Set stdin to binary mode.
6527 * modules/yesno-tests (Depends-on): Add binary-io.
6529 2008-04-27 Bruno Haible <bruno@clisp.org>
6531 Fix 'isfinite' on x86, x86_64, ia64 platforms.
6532 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
6533 argument that lie outside the IEEE 854 domain.
6534 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
6535 (gl_ISFINITE): Use it.
6536 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
6538 2008-04-27 Bruno Haible <bruno@clisp.org>
6540 Allow local renaming in config.h.
6541 * lib/memrchr.c (memrchr): Don't undefine outside libc.
6543 2008-04-27 Bruno Haible <bruno@clisp.org>
6545 * lib/memchr.c (__memchr): Change type of 'i'.
6546 * lib/memchr2.c (memchr2): Likewise.
6548 2008-04-26 Eric Blake <ebb9@byu.net>
6549 and Bruno Haible <bruno@clisp.org>
6551 Optimize and test memrchr.
6552 * modules/memrchr (Depends-on): Add intprops.
6553 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
6554 * modules/memrchr-tests: New file.
6555 * tests/test-memrchr.c: New file.
6557 2008-04-26 Bruno Haible <bruno@clisp.org>
6559 Add tentative support for DragonFly BSD.
6560 * lib/stdio-impl.h: Add macros for DragonFly BSD.
6561 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
6563 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
6564 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
6565 * lib/fpurge.c (fpurge): Likewise.
6566 * lib/freadable.c (freaadable): Likewise.
6567 * lib/freadahead.c (freadahead): Likewise.
6568 * lib/freading.c (freading): Likewise.
6569 * lib/freadptr.c (freadptr): Likewise.
6570 * lib/freadseek.c (freadptrinc): Likewise.
6571 * lib/fseeko.c (fseeko): Likewise.
6572 * lib/fseterr.c (fseterr): Likewise.
6573 * lib/fwritable.c (fwritable): Likewise.
6574 * lib/fwriting.c (fwriting): Likewise.
6576 2008-04-26 Bruno Haible <bruno@clisp.org>
6578 * lib/stdio-impl.h: New file.
6579 * lib/fbufmode.c: Include stdio-impl.h.
6580 (fbufmode): Use fp_, remove redundant #defines.
6581 * lib/fflush.c: Include stdio-impl.h.
6582 (clear_ungetc_buffer): Remove redundant #defines.
6583 * lib/fpurge.c: Include stdio-impl.h.
6584 (fpurge): Remove redundant #defines.
6585 * lib/freadable.c: Include stdio-impl.h.
6586 (freadable): Remove redundant #defines.
6587 * lib/freadahead.c: Include stdio-impl.h.
6588 (freadahead): Remove redundant #defines.
6589 * lib/freading.c: Include stdio-impl.h.
6590 (freading): Remove redundant #defines.
6591 * lib/freadptr.c: Include stdio-impl.h.
6592 (freadptr): Remove redundant #defines.
6593 * lib/freadseek.c: Include stdio-impl.h.
6594 (freadptrinc): Remove redundant #defines.
6595 * lib/fseeko.c: Include stdio-impl.h.
6596 (rpl_fseeko): Remove redundant #defines.
6597 * lib/fseterr.c: Include stdio-impl.h.
6598 (fseterr): Remove redundant #defines.
6599 * lib/fwritable.c: Include stdio-impl.h.
6600 (fwritable: Remove redundant #defines.
6601 * lib/fwriting.c: Include stdio-impl.h.
6602 (fwriting): Remove redundant #defines.
6603 * modules/fbufmode (Files): Add lib/stdio-impl.h.
6604 * modules/fflush (Files): Likewise.
6605 * modules/fpurge (Files): Likewise.
6606 * modules/freadable (Files): Likewise.
6607 * modules/freadahead (Files): Likewise.
6608 * modules/freading (Files): Likewise.
6609 * modules/freadptr (Files): Likewise.
6610 * modules/freadseek (Files): Likewise.
6611 * modules/fseeko (Files): Likewise.
6612 * modules/fseterr (Files): Likewise.
6613 * modules/fwritable (Files): Likewise.
6614 * modules/fwriting (Files): Likewise.
6616 2008-04-26 Bruno Haible <bruno@clisp.org>
6618 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
6619 restore_seek_optimization, update_fpos_cache): New functions, extracted
6621 (rpl_fflush): Use them.
6622 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
6623 (gl_REPLACE_FFLUSH): Use it.
6625 2008-04-26 Bruno Haible <bruno@clisp.org>
6627 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
6629 * tests/test-xstrtoimax.sh: Likewise.
6630 * tests/test-xstrtoumax.sh: Likewise.
6631 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6633 2008-04-26 Bruno Haible <bruno@clisp.org>
6635 * modules/memchr-tests: New file.
6636 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
6638 2008-04-26 Eric Blake <ebb9@byu.net>
6639 Bruno Haible <bruno@clisp.org>
6641 * lib/memchr.c: Include intprops.h.
6642 (__memchr): Optimize parallel detection of matching bytes. Rename local
6643 variables. Add explanatory comments.
6645 2008-04-26 Bruno Haible <bruno@clisp.org>
6647 Fix module 'memchr', broken since 2000-10-28.
6648 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
6650 2008-04-26 Bruno Haible <bruno@clisp.org>
6652 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
6655 2008-04-25 Eric Blake <ebb9@byu.net>
6657 Use native fstatat on cygwin 1.7.0.
6658 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
6661 2008-04-23 Eric Blake <ebb9@byu.net>
6663 Improve memchr2 performance.
6664 * lib/memchr2.c (memchr2): Further optimize parallel detection of
6666 * modules/memchr2 (Depends-on): Use intprops.h.
6668 2008-04-23 Simon Josefsson <simon@josefsson.org>
6670 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
6671 an inline function instead of a CPP macro. Patch by Ben Pfaff
6672 <blp@cs.stanford.edu>.
6674 2008-04-23 Simon Josefsson <simon@josefsson.org>
6676 * lib/arpa_inet.in.h: New file.
6678 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
6679 (Makefile.am): Sed in substitute header file.
6681 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
6682 gl_ARPA_INET_MODULE_INDICATOR. Use them.
6684 * modules/inet_ntop (configure.ac): Use
6685 gl_ARPA_INET_MODULE_INDICATOR.
6687 * modules/inet_pton (configure.ac): Use
6688 gl_ARPA_INET_MODULE_INDICATOR.
6690 2008-04-22 Jim Meyering <meyering@redhat.com>
6692 * modules/verify (License): Re-license as LGPLv2+.
6694 2008-04-22 Simon Josefsson <simon@josefsson.org>
6696 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
6697 parameter to void* as per POSIX standard (MinGW uses char*).
6699 2008-04-21 Bruno Haible <bruno@clisp.org>
6701 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
6702 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
6703 Define to replacements if REPLACE_ISWCNTRL is 1.
6704 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
6705 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
6706 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
6707 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
6709 * doc/posix-functions/iswalpha.texi: Likewise.
6710 * doc/posix-functions/iswblank.texi: Likewise.
6711 * doc/posix-functions/iswcntrl.texi: Likewise.
6712 * doc/posix-functions/iswdigit.texi: Likewise.
6713 * doc/posix-functions/iswgraph.texi: Likewise.
6714 * doc/posix-functions/iswlower.texi: Likewise.
6715 * doc/posix-functions/iswprint.texi: Likewise.
6716 * doc/posix-functions/iswpunct.texi: Likewise.
6717 * doc/posix-functions/iswspace.texi: Likewise.
6718 * doc/posix-functions/iswupper.texi: Likewise.
6719 * doc/posix-functions/iswxdigit.texi: Likewise.
6720 Reported by Alain Guibert.
6722 2008-04-21 Bruno Haible <bruno@clisp.org>
6724 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
6725 Patch by Alain Guibert.
6727 2008-04-21 Bruno Haible <bruno@clisp.org>
6729 Fix test failures on mingw.
6730 * tests/test-xstrtol.c (print_no_progname): New function.
6731 (main): Install it in error_print_progname hook.
6732 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
6733 * tests/test-xstrtoimax.sh: Likewise.
6734 * tests/test-xstrtoumax.sh: Likewise.
6736 2008-04-21 Bruno Haible <bruno@clisp.org>
6738 Fix test failure on mingw.
6739 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
6741 2008-04-21 Bruno Haible <bruno@clisp.org>
6743 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
6744 Actually assign a value.
6746 2008-04-20 Bruno Haible <bruno@clisp.org>
6748 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
6750 * lib/canonicalize.c (canonicalize_file_name): Elide if the
6751 'canonicalize-lgpl' module is also used.
6752 * lib/canonicalize-lgpl.c: Undo last change.
6753 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
6755 2008-04-20 Bruno Haible <bruno@clisp.org>
6757 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
6758 config.h. Provide _mkdir based fallback for mingw.
6759 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
6760 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
6761 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
6762 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
6763 rather than defining mkdir in config.h.
6764 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
6765 (gl_SYS_STAT_H_DEFAULTS): New macro.
6766 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
6768 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
6769 HAVE_DECL_MKDIR and HAVE_IO_H.
6771 2008-04-20 Bruno Haible <bruno@clisp.org>
6773 * lib/isapipe.c: Port to native Windows platforms.
6775 2008-04-20 Bruno Haible <bruno@clisp.org>
6777 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
6779 2008-04-21 Eric Blake <ebb9@byu.net>
6781 Work around preprocessors that don't handle UINTMAX_MAX.
6782 * lib/memchr2.c (memchr2): Avoid embedded #if.
6783 Reported by Alain Guibert, fix suggested by Bruno Haible.
6785 2008-04-21 Simon Josefsson <simon@josefsson.org>
6787 * doc/posix-functions/strftime.texi (strftime): Explain better
6788 Windows incompatibility. Suggested by Micah Cowan
6791 2008-04-20 Bruno Haible <bruno@clisp.org>
6793 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
6796 2008-04-20 Bruno Haible <bruno@clisp.org>
6798 Fix test failure on platforms with non-GNU iconv.
6799 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
6800 (U_TO_U8): Use it, rather than u16_to_u8.
6801 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
6802 units at the end of the input string.
6803 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
6805 2008-04-20 Bruno Haible <bruno@clisp.org>
6807 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
6808 when the resulting length is 0.
6809 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
6811 2008-04-20 Bruno Haible <bruno@clisp.org>
6813 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
6815 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
6817 2008-04-20 Bruno Haible <bruno@clisp.org>
6819 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
6820 * modules/tsearch-tests (configure.ac): Test for initstate function.
6822 2008-04-20 Bruno Haible <bruno@clisp.org>
6824 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
6825 for nlink_t if missing.
6826 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
6828 2008-04-19 Bruno Haible <bruno@clisp.org>
6830 Work around snprintf bug on Linux libc5.
6831 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
6832 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
6834 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6835 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
6837 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6838 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
6839 * modules/snprintf (Files): Add m4/printf.m4.
6840 * modules/vsnprintf (Files): Likewise.
6841 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
6842 * doc/posix-functions/vsnprintf.texi: Likewise.
6844 2008-04-19 Bruno Haible <bruno@clisp.org>
6846 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
6847 from 0.0058 to less than 10^-7.
6849 2008-04-19 Bruno Haible <bruno@clisp.org>
6851 Fix rounding when a precision is given.
6852 * lib/vasnprintf.c (is_borderline): New function.
6853 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
6855 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
6857 * tests/test-vasprintf-posix.c (test_function): Likewise.
6858 * tests/test-snprintf-posix.h (test_function): Likewise.
6859 * tests/test-sprintf-posix.h (test_function): Likewise.
6860 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
6861 * tests/test-printf-posix.h (test_function): Likewise.
6862 * tests/test-printf-posix.output: Update.
6863 Reported by John Darrington <john@darrington.wattle.id.au> via
6864 Ben Pfaff <blp@cs.stanford.edu>.
6866 2008-04-18 Simon Josefsson <simon@josefsson.org>
6868 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
6869 Suggested by Bruno Haible <bruno@clisp.org>.
6871 2008-04-17 Bruno Haible <bruno@clisp.org>
6873 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
6874 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
6876 Patch by Bruce Merry <bmerry@gmail.com>.
6878 2008-04-17 Simon Josefsson <simon@josefsson.org>
6880 * doc/posix-functions/strftime.texi (strftime): Mention that %e
6881 doesn't work under Windows.
6883 2008-04-16 Bruno Haible <bruno@clisp.org>
6885 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
6887 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
6888 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
6889 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
6890 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
6891 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
6892 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
6893 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
6895 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
6896 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
6897 Northern Sotho, Uighur.
6899 2008-04-16 Bruno Haible <bruno@clisp.org>
6901 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
6902 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
6903 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
6904 Reported by Daniel Bergström <daniel@octocode.com>.
6906 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
6907 Bruno Haible <bruno@clisp.org>
6909 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
6911 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
6912 New functions, mostly extracted from gl_locale_name_default.
6913 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
6915 2008-04-16 Eric Blake <ebb9@byu.net>
6917 Adjust strtod detection to catch glibc 2.7 bug.
6918 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
6919 Reported by John Gatewood Ham.
6921 2008-04-16 Bruno Haible <bruno@clisp.org>
6923 Add tentative support for Linux libc5.
6924 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
6925 * lib/fpurge.c (fpurge): Likewise.
6926 * lib/freadable.c (freadable): Likewise.
6927 * lib/freadahead.c (freadahead): Likewise.
6928 * lib/freading.c (freading): Likewise.
6929 * lib/freadptr.c (freadptr): Likewise.
6930 * lib/freadseek.c (freadptrinc): Likewise.
6931 * lib/fseeko.c (rpl_fseeko): Likewise.
6932 * lib/fseterr.c (fseterr): Likewise.
6933 * lib/fwritable.c (fwritable): Likewise.
6934 * lib/fwriting.c (fwriting): Likewise.
6935 Reported by Alain Guibert <alguibert+bts@free.fr>.
6937 2008-04-15 Bruno Haible <bruno@clisp.org>
6939 * modules/mathl (configure.ac): Define module indicator.
6941 2008-04-15 Bruno Haible <bruno@clisp.org>
6943 * lib/logl.c (logl): Remove unused variables.
6945 2008-04-15 Bruno Haible <bruno@clisp.org>
6947 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
6950 2008-04-15 Bruno Haible <bruno@clisp.org>
6952 * lib/trim.c (trim2): Fix argument of isspace() macro.
6954 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
6956 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
6958 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
6960 2008-04-14 Bruno Haible <bruno@clisp.org>
6962 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
6963 AC_LANG_PROGRAM argument.
6964 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
6965 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
6966 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
6967 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
6968 * m4/math_h.m4 (gl_MATH_H): Likewise.
6969 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
6970 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6971 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
6972 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
6973 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6974 * m4/regex.m4 (gl_REGEX): Likewise.
6975 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
6976 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
6977 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6978 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
6979 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
6980 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6981 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6982 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6984 2008-04-14 Jim Meyering <meyering@redhat.com>
6986 test-strtod: fix typos: s/abs/fabs/
6987 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
6989 2008-04-13 Bruno Haible <bruno@clisp.org>
6991 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
6992 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
6993 module is also used and while not building the reloc-wrapper.
6995 2008-04-13 Bruno Haible <bruno@clisp.org>
6997 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
6999 2008-04-13 Bruno Haible <bruno@clisp.org>
7001 Fix AIX compilation failure introduced on 2008-04-02.
7002 * tests/test-frexp.c (exp): Undefine before redefining.
7003 * tests/test-frexpl.c (exp): Likewise.
7005 2008-04-13 Bruno Haible <bruno@clisp.org>
7007 Work around a HP-UX stdio bug.
7008 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
7009 * tests/test-ftello.c (main): Likewise.
7010 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
7011 * doc/posix-functions/ftello.texi: Likewise.
7013 2008-04-13 Bruno Haible <bruno@clisp.org>
7015 Make test-signbit pass on HP-UX/hppa.
7016 * tests/test-signbit.c (minus_zerol): New variable.
7017 (test_signbitl): Use it.
7019 2008-04-13 Bruno Haible <bruno@clisp.org>
7021 Make truncl work on OSF/1 4.0.
7022 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
7023 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
7024 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
7025 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
7027 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
7029 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
7031 2008-04-13 Bruno Haible <bruno@clisp.org>
7033 * lib/unictype.h: Remove trailing comma from enumeration definitions.
7035 2008-04-13 Bruno Haible <bruno@clisp.org>
7037 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
7038 expression, so as to avoid HP-UX 11 cc compiler bug.
7040 2008-04-13 Bruno Haible <bruno@clisp.org>
7042 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
7044 2008-04-13 Bruno Haible <bruno@clisp.org>
7046 * lib/git-merge-changelog.c: Remove empty declaration outside of
7049 2008-04-13 Bruno Haible <bruno@clisp.org>
7051 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
7053 2008-04-13 Bruno Haible <bruno@clisp.org>
7055 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
7056 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
7057 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
7058 also if it exists but lacks definitions of the SHUT_* macros.
7059 * modules/sys_socket (Description): Update.
7060 Reported by Elbert Pol <e.pol@chello.nl>.
7062 2008-04-13 Bruno Haible <bruno@clisp.org>
7064 * lib/localcharset.c (OS2): Don't redefine if already defined.
7065 Reported by Elbert Pol <e.pol@chello.nl>.
7067 2008-04-13 Bruno Haible <bruno@clisp.org>
7069 * lib/binary-io.h [__EMX__]: Include <io.h>.
7070 Reported by Elbert Pol <e.pol@chello.nl>.
7072 2008-04-12 Bruno Haible <bruno@clisp.org>
7074 * lib/fpucw.h: Enable the definitions also for x86_64.
7075 Needed for NetBSD/x86_64.
7076 Reported by Thomas Klausner <tk@giga.or.at>.
7078 2008-04-12 Bruno Haible <bruno@clisp.org>
7080 * tests/test-strtod.c: Include isnand.h.
7081 (main): Use isnand instead of isnan.
7082 Reported by Jim Meyering.
7084 2008-04-12 Bruno Haible <bruno@clisp.org>
7086 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
7087 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
7089 2008-04-12 Jim Meyering <meyering@redhat.com>
7091 * m4/math_h.m4 (gl_MATH_H): Fix typos.
7093 2008-04-12 Bruno Haible <bruno@clisp.org>
7095 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
7096 Reported by Elbert Pol <e.pol@chello.nl>.
7098 2008-04-12 Eric Blake <ebb9@byu.net>
7100 Work around Solaris 10 math.h bug.
7101 * m4/math_h.m4 (gl_MATH_H): Check for bug.
7102 (gl_MATH_H_DEFAULTS): Set up default.
7103 * modules/math (Makefile.am): Replace new indicators.
7104 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
7105 * tests/test-math.c (main): Test this.
7106 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
7107 * doc/posix-headers/math.texi (math.h): Mention bug.
7108 Reported by Nelson H. F. Beebe and Jim Meyering.
7110 2008-04-11 Bruno Haible <bruno@clisp.org>
7112 Adapt to future versions of Apple GCC.
7113 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
7114 Reported by Peter O'Gorman <peter@pogma.com>.
7116 2008-04-11 Bruno Haible <bruno@clisp.org>
7118 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
7120 2008-04-11 Bruno Haible <bruno@clisp.org>
7122 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
7124 * modules/getaddrinfo-tests (Makefile.am): Define
7125 test_getaddrinfo_LDADD.
7127 2008-04-11 Bruno Haible <bruno@clisp.org>
7129 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
7130 (init): Fix syntax error.
7131 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
7134 2008-04-11 Bruno Haible <bruno@clisp.org>
7136 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
7137 * modules/glob (Depends-on): Add stdbool.
7139 2008-04-11 Bruno Haible <bruno@clisp.org>
7141 * lib/trim.c: Include <string.h>.
7143 2008-04-11 Eric Blake <ebb9@byu.net>
7145 Avoid compile failure on OS/2.
7146 * lib/regex_internal.h (internal_function): Disable optimization
7147 on OS/2 (__EMX__), where it caused compiler error.
7148 Reported by Elbert Pol.
7150 2008-04-11 Bruno Haible <bruno@clisp.org>
7152 Flush the standard error stream before aborting. Needed on mingw.
7153 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
7154 * tests/test-array_list.c (ASSERT): Likewise.
7155 * tests/test-array_oset.c (ASSERT): Likewise.
7156 * tests/test-avltree_list.c (ASSERT): Likewise.
7157 * tests/test-avltree_oset.c (ASSERT): Likewise.
7158 * tests/test-avltreehash_list.c (ASSERT): Likewise.
7159 * tests/test-binary-io.c (ASSERT): Likewise.
7160 * tests/test-byteswap.c (ASSERT): Likewise.
7161 * tests/test-c-ctype.c (ASSERT): Likewise.
7162 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
7163 * tests/test-c-strcasestr.c (ASSERT): Likewise.
7164 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
7165 * tests/test-c-strstr.c (ASSERT): Likewise.
7166 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
7167 * tests/test-canonicalize.c (ASSERT): Likewise.
7168 * tests/test-carray_list.c (ASSERT): Likewise.
7169 * tests/test-ceilf1.c (ASSERT): Likewise.
7170 * tests/test-ceilf2.c (ASSERT): Likewise.
7171 * tests/test-ceill.c (ASSERT): Likewise.
7172 * tests/test-count-one-bits.c (ASSERT): Likewise.
7173 * tests/test-fbufmode.c (ASSERT): Likewise.
7174 * tests/test-fflush2.c (ASSERT): Likewise.
7175 * tests/test-floorf1.c (ASSERT): Likewise.
7176 * tests/test-floorf2.c (ASSERT): Likewise.
7177 * tests/test-floorl.c (ASSERT): Likewise.
7178 * tests/test-fopen.c (ASSERT): Likewise.
7179 * tests/test-fpending.c (ASSERT): Likewise.
7180 * tests/test-fprintf-posix.c (ASSERT): Likewise.
7181 * tests/test-fpurge.c (ASSERT): Likewise.
7182 * tests/test-freadable.c (ASSERT): Likewise.
7183 * tests/test-freadahead.c (ASSERT): Likewise.
7184 * tests/test-freading.c (ASSERT): Likewise.
7185 * tests/test-freadptr.c (ASSERT): Likewise.
7186 * tests/test-freadptr2.c (ASSERT): Likewise.
7187 * tests/test-freadseek.c (ASSERT): Likewise.
7188 * tests/test-freopen.c (ASSERT): Likewise.
7189 * tests/test-frexp.c (ASSERT): Likewise.
7190 * tests/test-frexpl.c (ASSERT): Likewise.
7191 * tests/test-fseek.c (ASSERT): Likewise.
7192 * tests/test-fseeko.c (ASSERT): Likewise.
7193 * tests/test-fstrcmp.c (ASSERT): Likewise.
7194 * tests/test-ftell.c (ASSERT): Likewise.
7195 * tests/test-ftello.c (ASSERT): Likewise.
7196 * tests/test-func.c (ASSERT): Likewise.
7197 * tests/test-fwritable.c (ASSERT): Likewise.
7198 * tests/test-fwriting.c (ASSERT): Likewise.
7199 * tests/test-getdelim.c (ASSERT): Likewise.
7200 * tests/test-getline.c (ASSERT): Likewise.
7201 * tests/test-i-ring.c (ASSERT): Likewise.
7202 * tests/test-iconv-utf.c (ASSERT): Likewise.
7203 * tests/test-iconv.c (ASSERT): Likewise.
7204 * tests/test-isfinite.c (ASSERT): Likewise.
7205 * tests/test-isnand.c (ASSERT): Likewise.
7206 * tests/test-isnanf.c (ASSERT): Likewise.
7207 * tests/test-isnanl.h (ASSERT): Likewise.
7208 * tests/test-ldexpl.c (ASSERT): Likewise.
7209 * tests/test-linked_list.c (ASSERT): Likewise.
7210 * tests/test-linkedhash_list.c (ASSERT): Likewise.
7211 * tests/test-localename.c (ASSERT): Likewise.
7212 * tests/test-lseek.c (ASSERT): Likewise.
7213 * tests/test-mbscasecmp.c (ASSERT): Likewise.
7214 * tests/test-mbscasestr1.c (ASSERT): Likewise.
7215 * tests/test-mbscasestr2.c (ASSERT): Likewise.
7216 * tests/test-mbscasestr3.c (ASSERT): Likewise.
7217 * tests/test-mbscasestr4.c (ASSERT): Likewise.
7218 * tests/test-mbschr.c (ASSERT): Likewise.
7219 * tests/test-mbscspn.c (ASSERT): Likewise.
7220 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
7221 * tests/test-mbspbrk.c (ASSERT): Likewise.
7222 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
7223 * tests/test-mbsrchr.c (ASSERT): Likewise.
7224 * tests/test-mbsspn.c (ASSERT): Likewise.
7225 * tests/test-mbsstr1.c (ASSERT): Likewise.
7226 * tests/test-mbsstr2.c (ASSERT): Likewise.
7227 * tests/test-mbsstr3.c (ASSERT): Likewise.
7228 * tests/test-memchr2.c (ASSERT): Likewise.
7229 * tests/test-memmem.c (ASSERT): Likewise.
7230 * tests/test-open.c (ASSERT): Likewise.
7231 * tests/test-printf-frexp.c (ASSERT): Likewise.
7232 * tests/test-printf-frexpl.c (ASSERT): Likewise.
7233 * tests/test-printf-posix.c (ASSERT): Likewise.
7234 * tests/test-quotearg.c (ASSERT): Likewise.
7235 * tests/test-rbtree_list.c (ASSERT): Likewise.
7236 * tests/test-rbtree_oset.c (ASSERT): Likewise.
7237 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
7238 * tests/test-round1.c (ASSERT): Likewise.
7239 * tests/test-roundf1.c (ASSERT): Likewise.
7240 * tests/test-roundl.c (ASSERT): Likewise.
7241 * tests/test-signbit.c (ASSERT): Likewise.
7242 * tests/test-sleep.c (ASSERT): Likewise.
7243 * tests/test-snprintf-posix.c (ASSERT): Likewise.
7244 * tests/test-snprintf.c (ASSERT): Likewise.
7245 * tests/test-sprintf-posix.c (ASSERT): Likewise.
7246 * tests/test-stat-time.c (ASSERT): Likewise.
7247 * tests/test-strcasestr.c (ASSERT): Likewise.
7248 * tests/test-strerror.c (ASSERT): Likewise.
7249 * tests/test-striconv.c (ASSERT): Likewise.
7250 * tests/test-striconveh.c (ASSERT): Likewise.
7251 * tests/test-striconveha.c (ASSERT): Likewise.
7252 * tests/test-strsignal.c (ASSERT): Likewise.
7253 * tests/test-strstr.c (ASSERT): Likewise.
7254 * tests/test-strtod.c (ASSERT): Likewise.
7255 * tests/test-trunc1.c (ASSERT): Likewise.
7256 * tests/test-trunc2.c (ASSERT): Likewise.
7257 * tests/test-truncf1.c (ASSERT): Likewise.
7258 * tests/test-truncf2.c (ASSERT): Likewise.
7259 * tests/test-truncl.c (ASSERT): Likewise.
7260 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
7261 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
7262 * tests/test-vasnprintf.c (ASSERT): Likewise.
7263 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
7264 * tests/test-vasprintf.c (ASSERT): Likewise.
7265 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
7266 * tests/test-vprintf-posix.c (ASSERT): Likewise.
7267 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
7268 * tests/test-vsnprintf.c (ASSERT): Likewise.
7269 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
7270 * tests/test-wcwidth.c (ASSERT): Likewise.
7271 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
7272 * tests/test-xprintf-posix.c (ASSERT): Likewise.
7273 * tests/test-xvasprintf.c (ASSERT): Likewise.
7274 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
7275 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
7276 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
7277 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
7278 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
7279 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
7280 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
7281 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
7282 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
7283 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
7284 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
7285 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
7286 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
7287 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
7288 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
7289 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
7290 * tests/unictype/test-block_list.c (ASSERT): Likewise.
7291 * tests/unictype/test-block_of.c (ASSERT): Likewise.
7292 * tests/unictype/test-block_test.c (ASSERT): Likewise.
7293 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
7294 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
7295 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
7296 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
7297 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
7298 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
7299 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
7300 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
7301 * tests/unictype/test-combining.c (ASSERT): Likewise.
7302 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
7303 * tests/unictype/test-digit.c (ASSERT): Likewise.
7304 * tests/unictype/test-mirror.c (ASSERT): Likewise.
7305 * tests/unictype/test-numeric.c (ASSERT): Likewise.
7306 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
7307 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
7308 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
7309 * tests/unictype/test-scripts.c (ASSERT): Likewise.
7310 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
7311 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
7312 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
7313 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
7314 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
7315 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
7316 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
7317 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
7318 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
7319 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
7320 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
7321 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
7322 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
7323 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
7324 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
7325 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
7326 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
7327 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
7328 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
7329 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
7330 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
7331 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
7332 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
7333 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
7334 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
7335 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
7336 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
7337 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
7338 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
7339 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
7340 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
7341 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
7342 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
7343 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
7344 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
7345 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
7346 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
7347 Reported by Eric Blake.
7349 2008-04-11 Bruno Haible <bruno@clisp.org>
7351 * lib/wchar.in.h: Tweak comment.
7353 2008-04-11 Bruno Haible <bruno@clisp.org>
7355 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
7356 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
7358 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
7360 2008-04-11 Bruno Haible <bruno@clisp.org>
7362 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
7364 2008-04-11 Simon Josefsson <simon@josefsson.org>
7366 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
7367 of attempting to use non-existing /dev/*random. Based on patch
7368 from Adam Strzelecki <ono@java.pl> in
7369 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
7371 2008-04-08 Bruno Haible <bruno@clisp.org>
7373 Add tentative support for emx+gcc.
7374 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
7375 * lib/fpurge.c (fpurge): Likewise.
7376 * lib/freadable.c (freadable): Likewise.
7377 * lib/freadahead.c (freadahead): Likewise.
7378 * lib/freading.c (freading): Likewise.
7379 * lib/freadptr.c (freadptr): Likewise.
7380 * lib/freadseek.c (freadptrinc): Likewise.
7381 * lib/fseeko.c (rpl_fseeko): Likewise.
7382 * lib/fseterr.c (fseterr): Likewise.
7383 * lib/fwritable.c (fwritable): Likewise.
7384 * lib/fwriting.c (fwriting): Likewise.
7385 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
7387 2008-04-09 Eric Blake <ebb9@byu.net>
7389 Avoid some autoconf warnings.
7390 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
7391 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
7392 * m4/afs.m4 (gl_AFS): Likewise.
7393 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
7394 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
7395 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
7396 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
7397 (gl_INTEGER_TYPE_SUFFIX): Likewise.
7398 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
7399 (AC_CHECK_DECLS_ONCE): Likewise.
7401 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
7402 gnulib-tool requires autoconf 2.59 or better.
7403 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
7405 2008-04-08 Eric Blake <ebb9@byu.net>
7407 Use 'git describe --match' if present (added in git 1.5.5).
7408 * build-aux/git-version-gen: Limit result to tags that match 'v*'
7411 2008-04-08 Bruno Haible <bruno@clisp.org>
7413 Add tentative support for OpenServer.
7414 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
7416 * lib/fpurge.c (fpurge): Likewise.
7417 * lib/freadable.c (freadable): Likewise.
7418 * lib/freadahead.c (freadahead): Likewise.
7419 * lib/freading.c (freading): Likewise.
7420 * lib/freadptr.c (freadptr): Likewise.
7421 * lib/freadseek.c (freadptrinc): Likewise.
7422 * lib/fseeko.c (rpl_fseeko): Likewise.
7423 * lib/fseterr.c (fseterr): Likewise.
7424 * lib/fwritable.c (fwritable): Likewise.
7425 * lib/fwriting.c (fwriting): Likewise.
7426 Reported by Roger Cornelius <rac@tenzing.org> and
7427 Brian K. White <brian@aljex.com>.
7429 2008-04-06 Jim Meyering <meyering@redhat.com>
7431 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
7433 2008-04-06 Bruno Haible <bruno@clisp.org>
7435 Avoid possible error with non-ASCII bytes in UTF-8 locales.
7436 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
7437 * tests/test-printf-posix.sh: Likewise.
7438 * tests/test-vfprintf-posix.sh: Likewise.
7439 * tests/test-vprintf-posix.sh: Likewise.
7440 * tests/test-xprintf-posix.sh: Likewise.
7442 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7444 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
7445 hide error from 'ls', needed on OS/2.
7446 Report by Elbert Pol <elbert.pol@gmail.com>.
7448 2008-04-04 Eric Blake <ebb9@byu.net>
7450 Make test-fseeko.c failures meaningful.
7451 * tests/test-fseeko.c: Print line number on failure.
7452 * tests/test-fseek.c: Likewise.
7453 Reported by Nelson H. F. Beebe.
7455 Improve strtod bug detection check.
7456 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
7457 required for Solaris 10.
7458 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
7460 2008-04-04 Bruno Haible <bruno@clisp.org>
7462 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
7465 2008-04-03 Eric Blake <ebb9@byu.net>
7467 Ensure sane .version contents.
7468 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
7470 * build-aux/git-version-gen: Improve documentation.
7472 Make GNU make output nicer.
7473 * top/GNUmakefile [!_have-Makefile]: Add dependency on
7474 MAKECMDGOALS to enforce message for all command line targets. Set
7475 srcdir for use in maint.mk.
7477 Another maintainer tweak.
7478 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
7479 a target that regenerates version.
7481 2008-04-03 Jim Meyering <meyering@redhat.com>
7483 vc-list-files: don't cause coreutils "make po-check" failure
7484 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
7486 2008-04-03 Eric Blake <ebb9@byu.net>
7488 Allow VPATH usage of vc-list-files.
7489 * build-aux/vc-list-files (scriptversion): Add timestamp.
7490 (options): Add --help, --version, -C.
7491 (CVS): Support installed cvsu.
7493 2008-04-02 Bruno Haible <bruno@clisp.org>
7495 Avoid some "statement with no effect" warnings from gcc.
7496 * tests/test-wctype.c (main): Explicitly ignore unused values.
7497 Reported by Jim Meyering.
7499 2008-04-02 Jim Meyering <meyering@redhat.com>
7501 Avoid some warnings from "gcc -Wshadow".
7502 * tests/test-frexp.c (exp): Define to a different identifier.
7503 * tests/test-frexpl.c (exp): Likewise.
7505 2008-04-03 Jim Meyering <meyering@redhat.com>
7507 bootstrap: remove dangling *.[ch] symlinks from lib
7508 * build-aux/bootstrap [dangling symlink removal]: Move find's
7509 -depth option to precede all others, to avoid a warning.
7510 Remove *.[ch] files too, and from "$source_base" (usually lib/).
7512 2008-04-02 Bruno Haible <bruno@clisp.org>
7514 Avoid some warnings from "gcc -Wshadow".
7515 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
7516 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
7517 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
7518 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
7519 Reported by Jim Meyering.
7521 2008-04-01 Bruno Haible <bruno@clisp.org>
7523 Fix test to work on IRIX 6.5 with cc.
7524 * tests/test-math.c (numeric_equal): New function.
7527 2008-04-01 Bruno Haible <bruno@clisp.org>
7529 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
7531 2008-04-01 Bruno Haible <bruno@clisp.org>
7533 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
7534 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
7535 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
7536 (Depends-on): Remove math.
7538 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
7539 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
7540 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
7541 (Depends-on): Remove math.
7543 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
7544 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
7545 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
7546 (Depends-on): Remove math.
7547 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
7548 (Depends-on): Remove math.
7550 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
7551 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
7552 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
7553 (Depends-on): Remove math.
7554 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
7555 (Depends-on): Remove math.
7557 * tests/test-round1.c: Include nan.h.
7558 (main): Use NaNd instead of NAN.
7559 * modules/round-tests (Files): Add tests/nan.h.
7561 * tests/test-trunc1.c: Include nan.h.
7562 (main): Use NaNd instead of NAN.
7563 * modules/trunc-tests (Files): Add tests/nan.h.
7565 * tests/test-roundf1.c: Include nan.h.
7566 (main): Use NaNf instead of NAN.
7567 * modules/roundf-tests (Files): Add tests/nan.h.
7569 * tests/test-truncf1.c: Include nan.h.
7570 (main): Use NaNf instead of NAN.
7571 * modules/truncf-tests (Files): Add tests/nan.h.
7573 * tests/test-ceilf1.c: Include nan.h.
7574 (main): Use NaNf instead of NAN.
7575 * modules/ceilf-tests (Files): Add tests/nan.h.
7577 * tests/test-floorf1.c: Include nan.h.
7578 (main): Use NaNf instead of NAN.
7579 * modules/floorf-tests (Files): Add tests/nan.h.
7581 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
7582 (main): Use NaNf instead of NAN.
7583 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
7585 * tests/test-isnand.c: Include nan.h instead of <math.h>.
7586 (main): Use NaNd instead of NAN.
7587 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
7589 * tests/test-frexp.c: Include nan.h.
7590 (main): Use NaNd instead of NAN.
7591 * modules/frexp-tests (Files): Add tests/nan.h.
7593 * lib/isnan.c: Don't include <math.h>.
7594 (FUNC): Don't use NAN macro.
7595 * modules/isnand-nolibm (Depends-on): Remove math.
7596 * modules/isnanf-nolibm (Depends-on): Remove math.
7597 * modules/isnanl (Depends-on): Remove math.
7598 * modules/isnanl-nolibm (Depends-on): Remove math.
7600 * tests/nan.h: New file.
7602 2008-04-01 Eric Blake <ebb9@byu.net>
7605 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
7606 values to be the right type.
7608 For now, cater to gnulib strtod inaccuracies.
7609 * tests/test-strtod.c (main): Allow 1-ulp error on expected
7610 fractional results. While not as nice from a QoI perspective, it
7611 is a quicker patch than correctly implementing decimal to binary
7614 2008-03-31 Eric Blake <ebb9@byu.net>
7616 Guarantee a definition of NAN.
7617 * lib/math.in.h (NAN): Define if missing.
7618 * tests/test-math.c (main): Test it.
7619 * doc/posix-headers/math.texi (math.h): Document this.
7620 * lib/isnan.c (rpl_isnand): Use it.
7621 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
7622 * tests/test-floorf1.c (NaN): Likewise.
7623 * tests/test-frexp.c (NaN): Likewise.
7624 * tests/test-isnand.c (NaN): Likewise.
7625 * tests/test-isnanf.c (NaN): Likewise.
7626 * tests/test-round1.c (NaN): Likewise.
7627 * tests/test-roundf1.c (NaN): Likewise.
7628 * tests/test-snprintf-posix.h (NaN): Likewise.
7629 * tests/test-sprintf-posix.h (NaN): Likewise.
7630 * tests/test-trunc1.c (NaN): Likewise.
7631 * tests/test-truncf1.c (NaN): Likewise.
7632 * tests/test-vasnprintf-posix.c (NaN): Likewise.
7633 * tests/test-vasprintf-posix.c (NaN): Likewise.
7634 * modules/isnand-nolibm (Depends-on): Add math.
7635 * modules/isnanf-nolibm (Depends-on): Likewise.
7636 * modules/isnanl (Depends-on): Likewise.
7637 * modules/isnanl-nolibm (Depends-on): Likewise.
7638 * modules/snprintf-posix-tests (Depends-on): Likewise.
7639 * modules/sprintf-posix-tests (Depends-on): Likewise.
7640 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
7641 * modules/vsprintf-posix-tests (Depends-on): Likewise.
7642 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
7643 * modules/vasprintf-posix-tests (Depends-on): Likewise.
7645 2008-03-31 Bruno Haible <bruno@clisp.org>
7647 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
7648 * doc/posix-functions/strtod.texi: Likewise.
7650 2008-03-31 Bruno Haible <bruno@clisp.org>
7652 * tests/test-strtod.c (main): Don't use C99 syntax.
7654 2008-03-31 Bruno Haible <bruno@clisp.org>
7656 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
7657 Reported by Eric Blake.
7659 2008-03-31 Jim Meyering <meyering@redhat.com>
7661 Don't compare actual signbit return values.
7662 * tests/test-strtod.c (main): Rather, compare only their
7663 zero/non-zero nature.
7665 2008-03-31 Eric Blake <ebb9@byu.net>
7667 More strtod documentation.
7668 * doc/posix-functions/strtod.texi (strtod): Interpret more test
7669 failures as distinct bugs.
7671 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
7673 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
7674 Problem reported by Erik Benada in
7675 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
7677 2008-03-30 Bruno Haible <bruno@clisp.org>
7679 * tests/test-strtod.c: Add comments about which assertion fails on which
7681 * doc/posix-functions/strtod.texi: Add info about many more platforms.
7683 2008-03-30 Eric Blake <ebb9@byu.net>
7685 Test signbit behavior on zeros.
7686 * tests/test-signbit.c (test_signbitf): Add tests for zero.
7687 (test_signbitd, test_signbitl): Likewise.
7689 More strtod touchups.
7690 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
7691 sign of negative underflow, for now. Use .5, not .1.
7692 * doc/posix-functions/strtod.texi (strtod): Mention these
7694 Reported by Jim Meyering.
7696 2008-03-30 Bruno Haible <bruno@clisp.org>
7698 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
7699 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
7701 2008-03-30 Bruno Haible <bruno@clisp.org>
7703 Avoid failure when attempting to return empty iconv results on some
7705 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
7706 allocation, don't report ENOMEM when the resulting string is empty.
7708 2008-03-30 Bruno Haible <bruno@clisp.org>
7711 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
7712 Don't consider the width for tmp_length. Check count against tmp_length
7713 before doing the padding. Ensure enough allocation during padding.
7715 2008-03-30 Eric Blake <ebb9@byu.net>
7718 * lib/strtod.c (strtod): Avoid compiler warnings.
7719 Reported by Jim Meyering.
7721 2008-03-30 Bruno Haible <bruno@clisp.org>
7723 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
7724 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
7725 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
7726 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
7727 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
7728 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
7729 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
7730 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
7732 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
7733 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
7734 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
7735 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
7736 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
7737 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
7738 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
7739 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
7741 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
7742 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
7743 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
7744 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
7745 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
7746 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
7747 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
7748 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
7750 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
7751 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
7753 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
7754 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
7756 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
7757 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
7759 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
7760 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
7761 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
7763 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
7764 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
7765 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
7767 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
7768 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
7769 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
7771 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
7772 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
7773 * modules/vasprintf (Depends-on): Add EOVERFLOW.
7775 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
7776 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
7777 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
7778 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
7779 (Depends-on): Add EOVERFLOW.
7780 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
7781 (Depends-on): Add EOVERFLOW.
7782 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
7783 (Depends-on): Add EOVERFLOW.
7784 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
7785 (Depends-on): Add EOVERFLOW.
7786 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
7787 (Depends-on): Add EOVERFLOW.
7788 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
7789 (Depends-on): Add EOVERFLOW.
7790 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
7791 (Depends-on): Add EOVERFLOW.
7792 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
7793 (Depends-on): Add EOVERFLOW.
7795 * lib/sprintf.c (EOVERFLOW): Remove fallback.
7796 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
7797 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
7799 * lib/snprintf.c (EOVERFLOW): Remove fallback.
7800 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
7801 * modules/snprintf (Depends-on): Add EOVERFLOW.
7803 * lib/poll.c (EOVERFLOW): Remove fallback.
7804 * modules/poll (Depends-on): Add EOVERFLOW.
7806 * lib/getugroups.c (EOVERFLOW): Remove fallback.
7807 * modules/getugroups (Depends-on): Add EOVERFLOW.
7809 * lib/getdelim.c (EOVERFLOW): Remove fallback.
7810 * modules/getdelim (Depends-on): Add EOVERFLOW.
7812 * lib/ftell.c (EOVERFLOW): Remove fallback.
7813 * modules/ftell (Depends-on): Add EOVERFLOW.
7815 * lib/fprintf.c (EOVERFLOW): Remove fallback.
7816 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
7817 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
7819 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
7821 * modules/EOVERFLOW-tests: New file.
7822 * tests/test-EOVERFLOW.c: New file.
7824 * modules/EOVERFLOW: New file.
7825 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
7827 2008-03-30 Bruno Haible <bruno@clisp.org>
7829 Fix bug introduced on 2007-06-10.
7830 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
7831 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
7833 2008-03-30 Bruno Haible <bruno@clisp.org>
7835 Improve freadseek's efficiency after ungetc.
7836 * lib/freadseek.c: Include freadahead.h.
7837 (freadptrinc): New function, extracted from freadseek.
7838 (freadseek): Use it in a loop. Use freadahead to determine the number
7840 * modules/freadseek (Depends-on): Add freadahead.
7841 (configure.ac): Require AC_C_INLINE.
7843 2008-03-30 Bruno Haible <bruno@clisp.org>
7845 * lib/freadseek.c (freadseek): Don't ignore the return value of
7848 2008-03-29 Eric Blake <ebb9@byu.net>
7850 Add hex float support.
7851 * modules/strtod (Depends-on): Add c-ctype.
7852 (Link): Mention POW_LIB.
7853 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
7854 whitespace between 'e' and exponent.
7855 * tests/test-strtod.c (main): Enable hex float tests.
7856 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
7859 Document various strtod bugs, with some fixes.
7860 * doc/posix-functions/strtod.texi (strtod): Document bugs with
7861 "-0x", "inf", "nan", and hex constants.
7862 * doc/posix-functions/atof.texi (atof): Likewise.
7863 * modules/stdlib (Makefile.am): Support strtod.
7864 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
7865 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
7866 detect additional strtod bugs.
7867 * lib/stdlib.in.h (rpl_strtod): Add declarations.
7868 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
7869 bool where appropriate. Parse 'inf' and 'nan'.
7870 * tests/test-strtod.c: New file.
7871 * modules/strtod (Depends-on): Add stdbool, stdlib.
7872 (configure.ac): Turn on module indicator.
7873 * modules/strtod-tests: New module.
7875 2008-03-29 Eric Blake <ebb9@byu.net>
7878 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
7879 * modules/ftell-tests (Depends-on): Add binary-io.
7880 * modules/ftello-tests (Depends-on): Likewise.
7881 * tests/test-ftell.c (main): Enhance test to cover behavior after
7882 ungetc. Enforce binary mode.
7883 * tests/test-ftello.c (main): Likewise.
7885 Pass test-freadseek on cygwin.
7886 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
7887 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
7890 * tests/test-fflush2.c (main): Fix typo.
7892 2008-03-29 Bruno Haible <bruno@clisp.org>
7894 * tests/test-fflush2.c (main): Temporarily disable the contents of
7896 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
7897 Reported by Eric Blake.
7899 2008-03-28 Simon Josefsson <simon@josefsson.org>
7901 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
7902 (GC_SHA224_DIGEST_SIZE): Add.
7904 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
7905 (gc_hash_digest_length): Likewise.
7906 (gc_hash_buffer): Likewise.
7908 2008-03-25 Bruno Haible <bruno@clisp.org>
7910 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
7911 detail which gettext release to use.
7912 Reported by Simon Josefsson.
7914 2008-03-26 Jim Meyering <meyering@redhat.com>
7916 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
7917 * modules/gnumakefile (clean-GNUmakefile): Also, use
7918 test ... && ... || : syntax rather than if-then ... fi.
7920 gnumakefile: Don't double-quote-expand $(VPATH) value.
7921 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
7923 2008-03-24 Eric Blake <ebb9@byu.net>
7925 Alter GNUmakefile to install into top directory.
7926 * modules/maintainer-makefile: Split, and add dependency...
7927 * modules/gnumakefile: to this new module.
7928 * build-aux/GNUmakefile: Move...
7929 * top/GNUmakefile: ...here.
7930 * build-aux/maint.mk: Move...
7931 * top/maint.mk: ...here.
7932 * MODULES.html.sh (Support for maintaining...): Document new
7935 2008-03-23 Bruno Haible <bruno@clisp.org>
7937 * gnulib-tool: New options --vc-files, --no-vc-files.
7938 (func_usage): Document them.
7939 (vc_files): New variable.
7940 (func_import): Consider vc_files.
7941 (func_create_testdir): Set vc_files to empty.
7942 Suggested by Jim Meyering and Karl Berry.
7944 2008-03-23 Bruno Haible <bruno@clisp.org>
7946 Fix regex compilation error on HP-UX 11.
7947 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
7948 * modules/regex (Files): Add m4/mbstate_t.m4.
7949 Reported by Ton Voon <ton.voon@altinity.com>.
7951 2008-03-23 Bruno Haible <bruno@clisp.org>
7953 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
7955 2008-03-23 Eric Blake <ebb9@byu.net>
7956 Bruno Haible <bruno@clisp.org>
7958 Install files from top/ in the destination directory.
7959 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
7960 augmentation also for the files from top/.
7961 (func_import, func_create_testdir): Rewrite file names:
7962 top/filename -> filename.
7964 2008-03-23 Bruno Haible <bruno@clisp.org>
7966 Tweak "gnulib --version" output.
7967 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
7969 2008-03-23 Bruno Haible <bruno@clisp.org>
7971 Tweak "gnulib --version" output.
7972 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
7973 rather than contents of ChangeLog, when possible.
7975 2008-03-21 Eric Blake <ebb9@byu.net>
7977 More --version tweaks.
7978 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
7979 date of last ChangeLog entry.
7981 2008-03-21 Jim Meyering <meyering@redhat.com>
7983 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
7985 2008-03-20 Eric Blake <ebb9@byu.net>
7988 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
7990 2008-03-20 Simon Josefsson <simon@josefsson.org>
7992 * build-aux/GNUmakefile: Make git-version-gen optional. Add
7993 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
7995 2008-03-20 Eric Blake <ebb9@byu.net>
7997 Sync GNUmakefile with coreutils.
7998 * build-aux/GNUmakefile (have-Makefile): Rename...
7999 (_have-Makefile): ...to this, for namespace consideration.
8000 (GNUmakefile.cfg): Include, if present.
8001 (_autoreconf): Define a default.
8002 (_is-dist-target): New rule for rebuilds to pick up intra-release
8004 (maint-cfg.mk): Rename...
8005 (cfg.mk): ...to this.
8007 2008-03-18 Jim Meyering <meyering@redhat.com>
8009 New script and module: mktempd
8010 * MODULES.html.sh (maint+release support): Add mktempd.
8011 * build-aux/mktempd: New file.
8012 * modules/mktempd: New file.
8014 2008-03-15 Jim Meyering <meyering@redhat.com>
8017 * lib/sha1.c, lib/md5.c: 63 != ~63.
8018 Reported by Andreas Schwab.
8020 sha1.c, md5.c: Hoist a redundant expression.
8021 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
8022 "ctx->buflen" only once, before calling *_process_block.
8023 * lib/md5.c (md5_process_bytes): Likewise.
8025 2008-03-14 Eric Blake <ebb9@byu.net>
8027 Bump copyright year in files generated by gnulib-tool.
8028 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
8029 gnulib-tool, rather than hard-coding it.
8031 Fix 'gnulib-tool --version' output to work with git.
8032 * gnulib-tool (func_gnulib_dir): New function, extracted from...
8034 (func_version): Use it to invoke git-version-gen, rather than
8035 relying on CVS keyword expansion. Modernize wording.
8036 (cvsdatestamp, last_checkin_date, version): Kill unused
8039 2008-03-12 Jim Meyering <meyering@redhat.com>
8041 Recognize optional cast of the argument to free.
8042 * build-aux/useless-if-before-free: Update regexps.
8044 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
8046 2008-03-11 Bruno Haible <bruno@clisp.org>
8048 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
8049 by a single package.
8050 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
8051 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
8052 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
8053 Reported by Sam Steingold <sds@gnu.org>.
8055 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
8057 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
8060 2008-03-11 Bruno Haible <bruno@clisp.org>
8062 Avoid conflicts between local macro definitions.
8063 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
8064 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
8066 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
8067 Bruno Haible <bruno@clisp.org>
8069 Make va_copy work with some version of xlc on AIX 5.1.
8070 * lib/stdarg.in.h: New file.
8071 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
8072 On AIX, use a <stdarg.h> file substitute.
8073 * modules/stdarg (Files): Add lib/stdarg.in.h.
8074 (Depends-on): Add include_next.
8075 (Makefile.am): Build a stdarg.h substitute if requested.
8076 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
8078 2008-03-10 Bruno Haible <bruno@clisp.org>
8080 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
8081 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
8082 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
8084 2008-03-10 Bruno Haible <bruno@clisp.org>
8086 * modules/stdlib (Depends-on): Add include_next, remove
8089 2008-03-09 Bruno Haible <bruno@clisp.org>
8091 * lib/freadahead.h (freadahead): Document more precisely.
8092 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
8093 the sum of both buffer sizes.
8094 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
8095 * NEWS: Document the change.
8097 2008-03-09 Bruno Haible <bruno@clisp.org>
8099 Extend freadptr to return also the buffer size.
8100 * lib/freadptr.h (freadptr): Add sizep argument.
8101 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
8102 (freadptr): Add sizep argument. Determine buffer size like freadahead
8104 * tests/test-freadptr.c: Don't include freadahead.h.
8105 (main): Adapt for new calling convention of freadptr.
8106 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
8107 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
8108 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
8109 tests/test-freadptr2.sh.
8110 (Depends): Remove freadahead.
8111 (TESTS): Add test-freadptr2.sh.
8112 (check_PROGRAMS): Add test-freadptr2.
8114 2008-03-09 Bruno Haible <bruno@clisp.org>
8116 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
8117 Report and solution by Simon Josefsson.
8119 2008-03-06 Bruno Haible <bruno@clisp.org>
8121 Make fflush after ungetc work on BSD platforms.
8122 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
8123 * tests/test-fflush2.c: New file.
8124 * tests/test-fflush2.sh: New file.
8125 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
8126 tests/test-fflush2.c.
8127 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
8128 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
8130 2008-03-06 Eric Blake <ebb9@byu.net>
8132 Likewise for ftello.
8133 * modules/ftello (Dependencies): Add extensions.
8134 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
8136 2008-03-06 Bruno Haible <bruno@clisp.org>
8138 * modules/fseeko (Dependencies): Add extensions.
8139 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
8140 Needed on glibc systems.
8142 2008-03-06 Bruno Haible <bruno@clisp.org>
8144 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
8146 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
8148 2008-03-06 Bruno Haible <bruno@clisp.org>
8150 * users.txt: Add libgnupdf.
8152 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
8154 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
8155 (Header File Substitutes, Function Substitutes,
8156 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
8157 (Build robot for gnulib): Fix typo.
8159 2008-03-06 Bruno Haible <bruno@clisp.org>
8161 * doc/gnulib-tool.texi (VCS Issues): Small updates.
8162 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
8164 2008-03-06 Bruno Haible <bruno@clisp.org>
8166 * doc/func.texi: New file, extracted from doc/gnulib.texi.
8167 * doc/gnulib.texi: Include it.
8169 2008-03-06 Simon Josefsson <simon@josefsson.org>
8171 * modules/func (License): Change license to unlimited; there was
8172 no LGPL parts in the module anyway.
8174 2008-03-06 Simon Josefsson <simon@josefsson.org>
8176 * modules/__func__: Renamed to modules/func.
8177 * modules/__func__-tests: Renamed to modules/func-tests.
8178 * tests/test-__func__.c: Renamed to tests/test-func.c.
8179 * m4/__func__.m4: Renamed to m4/func.m4.
8180 * doc/gnulib.texi (__func__): Section renamed to func.
8181 Suggested by Eric Blake <ebb9@byu.net>.
8183 2008-03-06 Simon Josefsson <simon@josefsson.org>
8185 * doc/gnulib.texi (__func__): Use C99 terminology when talking
8186 about __func__. Make example self-contained. Suggested by Eric
8187 Blake <ebb9@byu.net>.
8189 * tests/test-__func__.c (main): Avoid extraneous () around __func.
8190 Suggested by Eric Blake <ebb9@byu.net>.
8192 2008-03-06 Simon Josefsson <simon@josefsson.org>
8194 * modules/__func__: New file.
8195 * modules/__func__-tests: New file.
8196 * tests/test-__func__.c: New file.
8197 * m4/__func__.m4: New file.
8198 * doc/gnulib.texi (__func__): Document __func__ module.
8200 2008-03-05 Simon Josefsson <simon@josefsson.org>
8202 * modules/byteswap (License): Re-license as LGPLv2+.
8204 2008-03-05 Simon Josefsson <simon@josefsson.org>
8206 * doc/Makefile: Add pdf target.
8208 2008-03-05 Simon Josefsson <simon@josefsson.org>
8210 * modules/inline (License): Use 'unlimited', since there are only
8211 *.m4 files in this module.
8213 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
8214 Bruno Haible <bruno@clisp.org>
8216 Add support for HP C 7.1 on OpenVMS 8.3.
8217 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
8219 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
8221 Update VMS specifics.
8222 * lib/getopt.c [VMS]: Remove include of unixlib.h.
8224 2008-03-02 Jim Meyering <meyering@redhat.com>
8226 Remove the last dependency on the "free" module.
8227 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
8228 Reported by Bob Proulx.
8230 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
8232 Remove useless "if" tests before free. Deprecate "free" module.
8233 * doc/posix-functions/free.texi: Mention that this
8234 module is no longer useful.
8235 * modules/free (Notice): Say this module is obsolete.
8236 * modules/readutmp (Depends-on): Remove free.
8237 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
8238 * lib/putenv.c (putenv): Likewise.
8239 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
8240 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
8241 * tests/test-c-strcasestr.c (main): Likewise.
8242 * tests/test-c-strstr.c (main): Likewise.
8243 * tests/test-mbscasestr1.c (main): Likewise.
8244 * tests/test-mbscasestr2.c (main): Likewise.
8245 * tests/test-mbsstr1.c (main): Likewise.
8246 * tests/test-mbsstr2.c (main): Likewise.
8247 * tests/test-memmem.c (main): Likewise.
8248 * tests/test-strcasestr.c (main): Likewise.
8249 * tests/test-striconv.c (main): Likewise.
8250 * tests/test-striconveh.c (main): Likewise.
8251 * tests/test-striconveha.c (main): Likewise.
8252 * tests/test-strstr.c (main): Likewise.
8254 * build-aux/git-version-gen: Adjust a comment and the Usage string.
8256 bootstrap: sync from coreutils again
8257 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
8259 2008-03-01 Jim Meyering <meyering@redhat.com>
8261 bootstrap: sync from coreutils
8262 * build-aux/bootstrap (update_po_files): Copy a .po file into place
8263 also when the target doesn't exist.
8265 2008-03-01 Eric Blake <ebb9@byu.net>
8267 Fix bugs in last patch.
8268 * lib/memchr2.c (memchr2): Fix typo.
8269 * tests/test-memchr2.c: Test previous bug, and don't use GNU
8271 Reported by Bruce Korb.
8273 New module 'memchr2'.
8274 * modules/memchr2: New file.
8275 * modules/memchr2-tests: Likewise.
8276 * lib/memchr2.h: Likewise.
8277 * lib/memchr2.c: Likewise, based on memchr.c.
8278 * tests/test-memchr2.c: New test.
8279 * MODULES.html.sh (String handling): Add memchr2.
8281 2008-02-29 Bruno Haible <bruno@clisp.org>
8283 * modules/freadseek-tests: New file.
8284 * tests/test-freadseek.sh: New file.
8285 * tests/test-freadseek.c: New file.
8287 New module 'freadseek'.
8288 * modules/freadseek: New file.
8289 * lib/freadseek.h: New file.
8290 * lib/freadseek.c: New file.
8291 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
8293 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
8295 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
8298 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
8299 program_invocation_name and program_invocation_short_name are
8302 2008-02-28 Bruno Haible <bruno@clisp.org>
8304 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
8305 * tests/test-freadptr.sh: Also test non-seekable stdin.
8307 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
8309 * build-aux/bootstrap (source_base, m4_base)
8310 (doc_base, tests_base): New variables.
8311 (gnulib_tool_options): Do not hardcode base directories, use
8312 the above variables instead.
8314 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
8316 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
8318 2008-02-28 Bruno Haible <bruno@clisp.org>
8320 * modules/freadptr-tests: New file.
8321 * tests/test-freadptr.sh: New file.
8322 * tests/test-freadptr.c: New file.
8324 New module 'freadptr'.
8325 * modules/freadptr: New file.
8326 * lib/freadptr.h: New file.
8327 * lib/freadptr.c: New file.
8328 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
8330 2008-02-26 Karl Berry <karl@freefriends.org>
8333 * libltdl/argz.c (argz_add, argz_count): New functions.
8334 * libltdl/argz.in.h: Declare them.
8335 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
8337 2008-02-22 Bruno Haible <bruno@clisp.org>
8339 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
8340 is a pointer type. Needed for HP-UX 10.
8341 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
8342 * doc/posix-functions/gmtime_r.texi: Likewise.
8343 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
8345 2008-02-24 Bruno Haible <bruno@clisp.org>
8347 * modules/environ-tests: New file.
8348 * tests/test-environ.c: New file.
8350 New module 'environ'.
8351 * modules/environ: New file.
8352 * lib/unistd.in.h (environ): New declaration.
8353 * m4/environ.m4: New file.
8354 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
8356 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
8358 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
8360 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
8361 wrong claim that 'environ' is missing on some systems.
8362 * modules/execute (Depends-on): Add environ.
8363 * lib/execute.c (environ): Remove fallback declaration.
8364 * modules/pipe (Depends-on): Add environ.
8365 * lib/pipe.c (environ): Remove fallback declaration.
8366 * modules/setenv (Depends-on): Add environ.
8367 * lib/setenv.c (environ): Remove fallback declaration.
8368 * modules/unsetenv (Depends-on): Add environ.
8369 * lib/unsetenv.c (environ): Remove fallback declaration.
8370 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
8372 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
8373 (gl_PREREQ_UNSETENV): Likewise.
8375 2008-02-24 Bruno Haible <bruno@clisp.org>
8377 * doc/posix-functions/environ.texi: Document the MacOS X problem.
8379 2008-02-20 Bob Proulx <bob@proulx.com>
8381 Enable use of older two part flavor 'git describe'.
8382 * build-aux/git-version-gen: If using the older two part flavor of
8383 git version then recreate the third part now present in the
8384 newer three part flavor of git describe.
8386 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
8388 * lib/fts.c (fts_build): Typo correction to comment.
8390 2008-02-17 Bruno Haible <bruno@clisp.org>
8392 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
8393 generating no-op conflicts.
8395 2008-02-17 Bruno Haible <bruno@clisp.org>
8398 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
8399 result_entries, rather than an index-based loop.
8401 2008-02-17 Bruno Haible <bruno@clisp.org>
8404 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
8406 (entry_create): New function.
8407 (entry_hashcode): Use the cached hashcode if possible.
8408 (read_changelog_file, try_split_merged_entry): Use entry_create.
8410 2008-02-17 Bruno Haible <bruno@clisp.org>
8412 Speed up from O(n^2) to O(n) for long ChangeLog files.
8413 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
8414 (read_changelog_file): Change implementation of entries_reversed list
8416 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
8418 2008-02-17 Bruno Haible <bruno@clisp.org>
8420 New option --split-merged-entry.
8421 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
8422 (find_paragraph_end, try_split_merged_entry): New functions.
8423 (long_options): Add option --split-merged-entry.
8424 (usage): Document option --split-merged-entry.
8425 (main): Implement option --split-merged-entry.
8426 Reported by Eric Blake.
8428 2008-02-17 Bruno Haible <bruno@clisp.org>
8430 * lib/git-merge-changelog.c: Include c-strstr.h.
8431 (main): Support the "git pull --rebase" situation.
8432 * modules/git-merge-changelog (Depends-on): Add c-strstr.
8433 Reported by Eric Blake.
8435 2008-02-16 Eric Blake <ebb9@byu.net>
8437 Avoid doubling \ in common case of "c-maybe" quoting style.
8438 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
8439 eliding outer quotes.
8440 * lib/quotearg.h: Document this.
8441 * tests/test-quotearg.c (result_strings, inputs, results_g)
8442 (flag_results, locale_results): Test it by adding a new string to
8444 (compare_strings): Test new string.
8446 2008-02-13 Eric Blake <ebb9@byu.net>
8448 Avoid trigraph quoting in default output.
8449 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
8450 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
8451 unless explicitly requested.
8452 * tests/test-quotearg.c (flag_results, main): Add additional tests.
8454 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
8456 Don't rely on signed integer overflowing to negative value.
8457 * lib/getugroups.c (getugroups): Include <limits.h>.
8458 Instead, compare against INT_MAX, and increment only if the test passes.
8460 2008-02-13 Jim Meyering <meyering@redhat.com>
8461 and Eric Blake <ebb9@byu.net>
8463 Avoid shadowing warning and compile errors on Linux.
8464 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
8465 forwarding macros on Linux.
8466 (dcgettext): Define a stub, for Linux.
8467 (results_g, main): Avoid warnings.
8469 2008-02-12 Eric Blake <ebb9@byu.net>
8471 Silence warning in last patch.
8472 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
8474 Quotearg part 4: add tests, fix c-maybe colon quoting.
8475 * lib/quotearg.h: Improve documentation.
8476 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
8477 escapes when adding outer quotes. When quoting trigraphs, use
8478 valid C notation. When quoting NUL, omit extra characters if next
8479 character is not digit. Alter prototype.
8480 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
8482 * modules/quotearg-tests: New module.
8483 * tests/test-quotearg.c: New test.
8485 2008-02-07 Eric Blake <ebb9@byu.net>
8487 Quotearg part 3: add flag to control outer quote elision.
8488 * lib/quotearg.h (c_maybe_quoting_style): New style.
8489 (enum quoting_flags): Better documentation of flags.
8490 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
8492 (quotearg_buffer_restyled): Handle new flag to elide outer
8495 Quotearg part 2: add flag that can control NUL elision.
8496 * lib/quotearg.h (set_quoting_flags): New prototype.
8497 * lib/quotearg.c (struct quoting_options): Add flag field.
8498 (set_quoting_flags): New function.
8499 (quotearg_buffer_restyled): Add flags parameter.
8500 (quotearg_alloc_mem): Set the flag if length cannot be returned.
8501 (quotearg_n_options): Set the flag, since length cannot be
8503 (quoting_options_from_style): Default flags correctly.
8505 Quotearg part 1: more wrappers, restore quotearg_char state.
8506 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
8507 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
8508 (quotearg_colon_mem): New wrappers.
8509 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
8510 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
8512 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
8513 (quotearg_colon_mem): New functions.
8515 2008-02-11 Bruno Haible <bruno@clisp.org>
8517 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
8518 library in the current directory: it does not work with parallel make.
8519 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8521 2008-02-11 Bruno Haible <bruno@clisp.org>
8523 * .gitattributes: New file.
8525 2008-02-11 Jim Meyering <meyering@redhat.com>
8527 useless-if-before-free: Fix reversed exit values.
8528 * build-aux/useless-if-before-free: Use correct values
8529 for EXIT_MATCH and EXIT_NO_MATCH.
8531 * build-aux/useless-if-before-free: Close stdout carefully.
8533 2008-02-10 Bruno Haible <bruno@clisp.org>
8535 New module 'git-merge-changelog'.
8536 * modules/git-merge-changelog: New file.
8537 * lib/git-merge-changelog.c: New file.
8539 2008-02-10 Jim Meyering <meyering@redhat.com>
8541 useless-if-before-free: New option: --list (-l).
8543 useless-if-before-free: Don't exit immediately upon open failure.
8544 * build-aux/useless-if-before-free: Exit 2 for errors.
8545 Upon failure to open a file, don't exit immediately.
8546 Rather, just warn and continue with any remaining files.
8548 2008-02-10 Bruno Haible <bruno@clisp.org>
8550 New abstract list operation 'node_set_value'.
8551 * lib/gl_list.h (gl_list_node_set_value): New function.
8552 (struct gl_list_implementation): New field node_set_value.
8553 * lib/gl_list.c (gl_list_node_set_value): New function.
8554 * lib/gl_array_list.c (gl_array_node_set_value): New function.
8555 (gl_array_list_implementation): Update.
8556 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
8557 (gl_carray_list_implementation): Update.
8558 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
8559 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
8560 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
8561 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
8562 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
8563 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
8564 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
8566 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
8567 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
8568 (gl_sublist_list_implementation): Update.
8570 2008-02-10 Bruno Haible <bruno@clisp.org>
8572 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
8573 Needed when ELEMENT is #defined to 'some_type *'.
8575 2008-02-10 Jim Meyering <meyering@redhat.com>
8577 New script and module: useless-if-before-free
8578 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
8579 * build-aux/useless-if-before-free: New file.
8580 * modules/useless-if-before-free: New file.
8582 * build-aux/gitlog-to-changelog: Use committer date, not author date.
8584 xstrtol_error: Fix typo.
8585 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
8586 s/exit_failure/exit_status/.
8588 2008-02-09 Jim Meyering <meyering@redhat.com>
8590 New script and module: gitlog-to-changelog
8591 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
8592 * modules/gitlog-to-changelog: New file.
8593 * build-aux/gitlog-to-changelog: New file.
8595 2008-02-08 Jim Meyering <meyering@redhat.com>
8597 Avoid two "parameter unused" warnings.
8598 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
8601 Use "git COMMAND", not "git-COMMAND".
8602 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
8603 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
8604 * build-aux/git-version-gen: Use "git status", not "git-status".
8606 2008-02-07 Bruno Haible <bruno@clisp.org>
8608 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
8609 Avoids a crash on Windows Vista.
8610 Reported by Adam Strzelecki <ono@java.pl> via
8611 Simon Josefsson <simon@josefsson.org>.
8613 2008-02-06 Bruno Haible <bruno@clisp.org>
8615 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
8616 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
8617 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
8618 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
8619 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
8620 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8621 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
8622 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
8623 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8624 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8625 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8626 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8627 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8628 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8629 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8630 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
8632 * tests/test-snprintf-posix.h (test_function): Likewise.
8633 * tests/test-sprintf-posix.h (test_function): Likewise.
8634 * tests/test-vasprintf-posix.c (test_function): Likewise.
8635 * doc/posix-functions/fprintf.texi: Update.
8636 * doc/posix-functions/printf.texi: Update.
8637 * doc/posix-functions/snprintf.texi: Update.
8638 * doc/posix-functions/sprintf.texi: Update.
8639 * doc/posix-functions/vfprintf.texi: Update.
8640 * doc/posix-functions/vprintf.texi: Update.
8641 * doc/posix-functions/vsnprintf.texi: Update.
8642 * doc/posix-functions/vsprintf.texi: Update.
8643 Reported by Peter Fales <psfales@alcatel-lucent.com>.
8645 2008-02-06 Bruno Haible <bruno@clisp.org>
8647 Fix bug introduced on 2008-01-26.
8648 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
8650 2008-02-06 Bruno Haible <bruno@clisp.org>
8652 Fix bug introduced on 2007-06-10.
8653 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
8654 !NEED_PRINTF_FLAG_ZERO.
8656 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
8658 getloadavg: use libperfstat on AIX5
8659 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
8661 2008-02-03 Bruno Haible <bruno@clisp.org>
8663 * lib/diffseq.h: Add comments about required #includes.
8664 Reported by Michael Biggs <gnulib@doubleplum.net>.
8666 2008-02-01 Bruno Haible <bruno@clisp.org>
8668 * users.txt: Add gnuit.
8670 2008-01-31 Bruno Haible <bruno@clisp.org>
8672 * lib/md4.c (set_uint32): Mark as inline.
8673 * lib/md5.c (set_uint32): Likewise.
8674 * lib/sha1.c (set_uint32): Likewise.
8675 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
8676 * m4/md5.m4 (gl_MD5): Likewise.
8677 * m4/sha1.m4 (gl_SHA1): Likewise.
8679 2008-01-31 Jim Meyering <meyering@redhat.com>
8681 Use "sizeof VAR", rather than a literal "4".
8682 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
8683 * lib/md4.c (md4_read_ctx): Likewise.
8684 * lib/sha1.c (sha1_read_ctx): Likewise.
8686 2008-01-31 Simon Josefsson <simon@josefsson.org>
8688 * tests/test-sha1.c: New file, based on test-md5.c.
8690 * modules/crypto/sha1-tests: New file.
8692 2008-01-31 Simon Josefsson <simon@josefsson.org>
8694 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
8696 2008-01-31 Jim Meyering <meyering@redhat.com>
8698 Prefer "sizeof v" over the equivalent "4".
8699 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
8700 * lib/md5.c (set_uint32): Likewise.
8701 * lib/sha1.c (set_uint32): Likewise.
8703 2008-01-31 Simon Josefsson <simon@josefsson.org>
8705 * lib/sha1.c (set_uint32): Mark function as static.
8707 2008-01-31 Simon Josefsson <simon@josefsson.org>
8709 md2: clarify comments to say that alignment is not required.
8710 * lib/md2.h: Remove warning about alignment in comment.
8711 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
8712 never been required.
8714 2008-01-31 Simon Josefsson <simon@josefsson.org>
8716 md4: adapt alignment constraint fix from sha1.
8717 * lib/md4.c (set_uint32): New function, from sha1.c
8718 (md4_read_ctx): Use it.
8719 (md4_finish_ctx): Doc fix.
8720 * lib/md4.h: Doc fix.
8722 2008-01-31 Simon Josefsson <simon@josefsson.org>
8724 md5: adapt alignment constraint fix from sha1.
8725 * lib/md5.c (set_uint32): New function, from sha1.c
8726 (md5_read_ctx): Use it.
8727 (md5_finish_ctx): Doc fix.
8728 * lib/md5.h: Doc fix.
8730 2008-01-30 Peter Palfrader <weasel@debian.org>
8732 sha1: remove the result buffer alignment constraint
8733 * lib/sha1.c (set_uint32): New function.
8734 (sha1_read_ctx): Rewrite to remove the result buffer alignment
8736 (sha1_finish_ctx): Remove comment warning about alignment constraint.
8737 * lib/sha1.h: Likewise.
8739 2008-01-30 Andreas Schwab <schwab@suse.de>
8740 Bruno Haible <bruno@clisp.org>
8742 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
8743 correct definition of LDBL_MIN_EXP.
8745 2008-01-30 Karl Berry <karl@gnu.org>
8747 * config/srclist-update: try to preserve x bit on updates.
8748 * config/srclistvars.sh: update for karl.
8750 2008-01-29 Jim Meyering <meyering@redhat.com>
8752 vasnprintf.c: Avoid warning about unused label
8753 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
8754 "overflow" label definition and associated code with the
8755 same cpp condition that guards the sole use of that label.
8757 2008-01-26 Bruno Haible <bruno@clisp.org>
8759 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
8760 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
8761 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
8762 * lib/isnanl-nolibm.h (isnanl): Likewise.
8763 Reported by Paul Eggert <eggert@cs.ucla.edu>.
8765 2008-01-26 Bruno Haible <bruno@clisp.org>
8767 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
8768 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
8770 2008-01-26 Bruno Haible <bruno@clisp.org>
8772 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
8773 GCC >= 4.0 built-in.
8774 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
8776 2008-01-26 Bruno Haible <bruno@clisp.org>
8778 Rename isnan, applicable to 'double' only, to isnand.
8779 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
8780 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
8781 (configure.ac): Update.
8782 (Include): Replace "isnan.h" with "isnand.h".
8783 * m4/isnand.m4: Renamed from m4/isnan.m4.
8784 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
8785 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
8787 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
8788 instead of HAVE_ISNAN_IN_LIBC.
8789 (isnand): Renamed from isnan.
8790 * lib/isnand.c: New file.
8791 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
8792 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
8793 (Makefile.am): Update.
8794 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
8795 Include isnand.h instead of isnan.h.
8796 (main): Test isnand instead of isnan.
8797 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
8799 * modules/frexp (Depends-on): Likewise.
8800 * modules/frexp-tests (Depends-on): Likewise.
8801 * modules/frexp-nolibm (Depends-on): Likewise.
8802 * modules/frexp-nolibm-tests (Depends-on): Likewise.
8803 * modules/isfinite (Depends-on): Likewise.
8804 * modules/round-tests (Depends-on): Likewise.
8805 * modules/signbit (Depends-on): Likewise.
8806 * modules/signbit-tests (Depends-on): Likewise.
8807 * modules/snprintf-posix (Depends-on): Likewise.
8808 * modules/sprintf-posix (Depends-on): Likewise.
8809 * modules/trunc-tests (Depends-on): Likewise.
8810 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8811 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8812 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8813 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8814 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8815 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8816 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8817 * modules/vasnprintf-posix (Depends-on): Likewise.
8818 * modules/vasprintf-posix (Depends-on): Likewise.
8819 * modules/vfprintf-posix (Depends-on): Likewise.
8820 * modules/vsnprintf-posix (Depends-on): Likewise.
8821 * modules/vsprintf-posix (Depends-on): Likewise.
8822 * lib/frexp.c: Include isnand.h instead of isnan.h.
8823 (ISNAN): Set to isnand instead of isnan.
8824 * lib/isfinite.c: Include isnand.h instead of isnan.h.
8825 (gl_isfinited): Use isnand instead of isnan.
8826 * lib/signbitd.c: Include isnand.h instead of isnan.h.
8827 (gl_signbitd): Use isnand instead of isnan.
8828 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
8829 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
8830 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
8831 (main): Use isnand instead of isnan.
8832 * tests/test-round1.c: Include isnand.h.
8833 (main): Use isnand instead of isnan.
8834 * tests/test-round2.c: Include isnand.h instead of isnan.h.
8835 (ISNAN): Set to isnand instead of isnan.
8836 * tests/test-trunc1.c: Include isnand.h.
8837 (main): Use isnand instead of isnan.
8838 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
8839 (equal): Use isnand instead of isnan.
8840 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
8842 * NEWS: Mention the change.
8844 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
8845 Bruno Haible <bruno@clisp.org>
8847 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
8848 the GCC builtins for signbits are present and set
8849 REPLACE_SIGNBIT_USING_GCC if so.
8850 * lib/math.in.h (signbit): Define using GCC builtins if
8851 REPLACE_SIGNBIT_USING_GCC is set.
8852 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
8853 REPLACE_SIGNBIT_USING_GCC.
8854 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
8856 2008-01-25 Jim Meyering <meyering@redhat.com>
8858 Prefer <config.h> over "config.h". See autoconf doc for explanation.
8859 * lib/poll.c: Include <config.h>, not "config.h".
8860 * tests/test-getaddrinfo.c: Likewise.
8862 2008-01-25 Simon Josefsson <simon@josefsson.org>
8864 * modules/sockets-tests: New file.
8866 2008-01-24 Simon Josefsson <simon@josefsson.org>
8868 * modules/sockets: New module, can be used to call WSA_Startup and
8869 WSA_Cleanup when needed.
8871 * lib/sockets.h, lib/sockets.c: New files.
8873 * m4/sockets.m4: New file.
8875 * tests/test-sockets.c: New file.
8877 2008-01-19 Bruno Haible <bruno@clisp.org>
8879 * doc/posix-headers: Renamed from doc/headers.
8880 * doc/posix-functions: Renamed from doc/functions.
8881 * doc/gnulib.texi: Update.
8883 2008-01-19 Bruno Haible <bruno@clisp.org>
8885 * doc/glibc-functions/strcasestr.texi: Include contents of
8886 doc/functions/strcasestr.texi, fixing the list of platforms.
8887 * doc/functions/strcasestr.texi: Remove file.
8889 2008-01-19 Bruno Haible <bruno@clisp.org>
8891 * doc/glibc-functions/memmem.texi: Include contents of
8892 doc/functions/memmem.texi.
8893 * doc/functions/memmem.texi: Remove file.
8895 2008-01-18 Bruno Haible <bruno@clisp.org>
8897 * doc/glibc-functions/*.texi: New files.
8898 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
8899 to use the new files.
8901 2008-01-17 Bruno Haible <bruno@clisp.org>
8903 * tests/test-gethostname.c (main): Fix printf statement.
8905 2008-01-17 Simon Josefsson <simon@josefsson.org>
8907 * modules/gethostname-tests: New file.
8909 * tests/test-gethostname.c: New file.
8911 2008-01-17 Simon Josefsson <simon@josefsson.org>
8913 * lib/gethostname.c: Include string.h unconditionally, strncpy is
8914 used by the UNAME case. Reported by Bruno Haible
8917 2008-01-17 Eric Blake <ebb9@byu.net>
8919 Convert c-strcasestr to be more efficient.
8920 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
8921 (Depends-on): Add c-strcase, remove malloca, strnlen.
8922 * tests/test-c-strcasestr.c (main): Enhance test.
8923 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
8925 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
8927 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
8928 Use it in creating po/Makevars.
8930 2008-01-15 Simon Josefsson <simon@josefsson.org>
8932 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
8933 Applications that requires it should initialize libgcrypt
8936 2008-01-16 Simon Josefsson <simon@josefsson.org>
8938 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
8940 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
8942 Fix problem with getdate on mingw32 reported by Simon Josefsson
8943 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
8944 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
8945 tzname", when deciding whether to declare tzname.
8946 * lib/strftime.c (tzname): Likewise.
8948 2008-01-15 Bruno Haible <bruno@clisp.org>
8950 Work around a MacOS X 10.5 bug in frexpl().
8951 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
8952 * doc/functions/frexpl.texi: Document the bug.
8953 Reported by Elias Pipping <pipping@gentoo.org>.
8955 2008-01-14 Eric Blake <ebb9@byu.net>
8957 Touch up previous patch.
8958 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
8959 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
8961 Convert strcasestr module to use Two-Way algorithm.
8962 * modules/strcasestr-simple: New module, based on the old
8963 strcasestr, but with Two-Way rather than KMP.
8964 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
8965 * lib/string.in.h (rpl_strcasestr): Declare.
8966 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
8968 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
8969 * modules/string (Makefile.am): Support strcasestr.
8970 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
8971 * modules/strcasestr-tests (Depends-on): Check for alarm.
8972 * tests/test-strcasestr.c: Augment test.
8973 * lib/str-two-way.h: Clean up stray macro.
8974 * NEWS: Document new module.
8975 * MODULES.html.sh (string handling): Likewise.
8976 * doc/functions/strcasestr.texi: New file.
8977 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
8978 here, since it is not a POSIX function.
8980 2008-01-14 Colin Watson <cjwatson@debian.org>
8981 Bruno Haible <bruno@clisp.org>
8983 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
8984 works fine; if not, set REPLACE_STRSIGNAL.
8985 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
8986 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8988 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
8989 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
8990 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
8992 2008-01-14 Bruno Haible <bruno@clisp.org>
8994 * modules/strsignal (Include): Change to <string.h>.
8996 2008-01-14 Colin Watson <cjwatson@debian.org>
8998 * modules/argp (Notice): Add a notice recommending to change
9000 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
9002 2008-01-13 Colin Watson <cjwatson@debian.org>
9004 * modules/strsignal-tests: New file.
9005 * tests/test-strsignal.c: New file.
9007 * lib/strsignal.c: New file, from glibc with modifications.
9008 * lib/siglist.h: New file, from glibc with modifications.
9009 * lib/string.in.h (strsignal): New declaration.
9010 * m4/strsignal.m4: New file.
9011 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9012 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
9013 * modules/strsignal: New file.
9014 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
9015 HAVE_DECL_STRSIGNAL.
9017 2008-01-13 Bruno Haible <bruno@clisp.org>
9019 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
9020 locale encoding is not ASCII. Needed for OpenBSD 4.0.
9021 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
9022 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9024 2008-01-13 Bruno Haible <bruno@clisp.org>
9026 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
9027 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
9028 * lib/argp.h (__attribute__): Likewise.
9029 * lib/c-stack.c (__attribute__): Likewise.
9030 * lib/error.h (__attribute__): Likewise.
9031 * lib/fts.c (__attribute__): Likewise.
9032 * lib/openat.h (__attribute__): Likewise.
9033 * lib/stdio.in.h (__attribute__): Likewise.
9034 * lib/string.in.h (__attribute__): Likewise.
9035 * lib/utimens.c (__attribute__): Likewise.
9036 * lib/vasnprintf.h (__attribute__): Likewise.
9037 * lib/xalloc.h (__attribute__): Likewise.
9038 * lib/xprintf.h (__attribute__): Likewise.
9039 * lib/xstrtol.h (__attribute__): Likewise.
9040 * lib/xvasprintf.h (__attribute__): Likewise.
9042 2008-01-12 Bruno Haible <bruno@clisp.org>
9044 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
9045 * doc/glibc-headers/a.out.texi: New file.
9046 * doc/glibc-headers/aliases.texi: New file.
9047 * doc/glibc-headers/alloca.texi: New file.
9048 * doc/glibc-headers/ar.texi: New file.
9049 * doc/glibc-headers/argp.texi: New file.
9050 * doc/glibc-headers/argz.texi: New file.
9051 * doc/glibc-headers/byteswap.texi: New file.
9052 * doc/glibc-headers/crypt.texi: New file.
9053 * doc/glibc-headers/endian.texi: New file.
9054 * doc/glibc-headers/envz.texi: New file.
9055 * doc/glibc-headers/err.texi: New file.
9056 * doc/glibc-headers/error.texi: New file.
9057 * doc/glibc-headers/execinfo.texi: New file.
9058 * doc/glibc-headers/fpu_control.texi: New file.
9059 * doc/glibc-headers/fstab.texi: New file.
9060 * doc/glibc-headers/fts.texi: New file.
9061 * doc/glibc-headers/getopt.texi: New file.
9062 * doc/glibc-headers/ieee754.texi: New file.
9063 * doc/glibc-headers/ifaddrs.texi: New file.
9064 * doc/glibc-headers/libintl.texi: New file.
9065 * doc/glibc-headers/mcheck.texi: New file.
9066 * doc/glibc-headers/mntent.texi: New file.
9067 * doc/glibc-headers/obstack.texi: New file.
9068 * doc/glibc-headers/paths.texi: New file.
9069 * doc/glibc-headers/printf.texi: New file.
9070 * doc/glibc-headers/pty.texi: New file.
9071 * doc/glibc-headers/resolv.texi: New file.
9072 * doc/glibc-headers/shadow.texi: New file.
9073 * doc/glibc-headers/sysexits.texi: New file.
9074 * doc/glibc-headers/ttyent.texi: New file.
9076 2008-01-12 Jim Meyering <meyering@redhat.com>
9078 announce-gen: emit Gnulib's git-based version string.
9079 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
9080 New option --gnulib-version=V, where V is expected to be
9081 the output of running git describe in the gnulib directory.
9082 (get_tool_versions): Request feedback on xdelta. I suspect it's
9083 not useful, and plan to stop publishing an xdelta file with each
9086 * build-aux/announce-gen: Also check for lzma-compressed files.
9088 2008-01-11 Bruno Haible <bruno@clisp.org>
9090 * tests/test-memmem.c (main): Increase maximum allowed time.
9091 * tests/test-strstr.c (main): Likewise.
9093 2008-01-11 Bruno Haible <bruno@clisp.org>
9095 * doc/functions/memmem.texi: Add more precisions about platforms.
9096 * doc/functions/strstr.texi: Likewise.
9098 2008-01-10 Eric Blake <ebb9@byu.net>
9100 * m4/strstr.m4: Delete cruft from copy-n-paste.
9101 Reported by Bruno Haible.
9103 2008-01-10 Bruno Haible <bruno@clisp.org>
9105 Make c-strstr rely on strstr.
9106 * lib/c-strstr.c: Don't include str-kmp.h.
9107 (c_strstr): Define in terms of strstr.
9108 * modules/c-strstr (Files): Remove lib/str-kmp.h.
9109 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
9111 2008-01-10 Bruno Haible <bruno@clisp.org>
9113 * doc/gnulib.texi (String Functions in C Locale): New section.
9114 * doc/c-ctype.texi: New file.
9115 * doc/c-strcase.texi: New file.
9116 * doc/c-strcaseeq.texi: New file.
9117 * doc/c-strcasestr.texi: New file.
9118 * doc/c-strstr.texi: New file.
9119 * doc/c-strtod.texi: New file.
9120 * doc/c-strtold.texi: New file.
9122 2008-01-10 Eric Blake <ebb9@byu.net>
9124 * lib/relocatable.h: Fix a comment.
9126 2008-01-10 Eric Blake <ebb9@byu.net>
9128 Share two-way algorithm.
9129 * lib/str-two-way.h: New file, merged from...
9130 * lib/memmem.c: ...here...
9131 * lib/strstr.c: ...and here.
9132 * modules/memmem (Files): Use it.
9133 * modules/strstr (Files): Likewise.
9135 Avoid quadratic strstr implementations.
9136 * lib/strstr.c: New file.
9137 * m4/strstr.m4: Likewise.
9138 * modules/strstr: Likewise.
9139 * modules/strstr-tests: Likewise.
9140 * tests/test-strstr.c: Likewise.
9141 * lib/string.in.h (rpl_strstr): Declare.
9142 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
9143 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
9144 * modules/string (Makefile.am): Likewise.
9145 * MODULES.html.sh (string handling): Mention new module.
9146 * doc/functions/strstr.texi (strstr): Document the bug.
9148 2008-01-10 Bruno Haible <bruno@clisp.org>
9150 * lib/relocatable.h (relocate): State whether result is freshly
9152 * lib/relocatable.c (relocate): Return a freshly allocated string
9153 instead of a pointer to a privately held string.
9154 Reported by Sylvain Beucler <beuc@gnu.org>.
9156 2008-01-10 Colin Watson <cjwatson@debian.org>
9158 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
9161 2008-01-09 Bruno Haible <bruno@clisp.org>
9163 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
9165 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
9166 if it's only a guess.
9167 * modules/memmem: Simplify by depending on memmem-simple.
9169 2008-01-09 Bruno Haible <bruno@clisp.org>
9171 Work around OpenBSD 4.0 tdelete() bug.
9172 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
9173 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
9174 macros and don't redefine the enum values.
9175 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
9176 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
9177 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
9179 2008-01-09 Bruno Haible <bruno@clisp.org>
9181 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
9182 (main): Don't perform the tests if setlocale did not install a UTF-8
9183 locale. Needed on OpenBSD 4.0.
9184 * modules/wcwidth-tests (Depends-on): Add localcharset.
9186 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
9188 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
9189 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
9190 * NEWS: announce this.
9191 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
9193 2008-01-09 Simon Josefsson <simon@josefsson.org>
9194 and Eric Blake <ebb9@byu.net>
9196 Add memmem-simple module.
9197 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
9198 (gl_FUNC_MEMMEM): Separate performance from presence checks.
9199 * modules/memmem-simple: New file.
9200 * modules/memmem (Description): Tweak.
9201 * MODULES.html.sh (string handling): Mention new module.
9202 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
9203 addressed by memmem-simple.
9204 * NEWS: Document the difference.
9206 2008-01-09 Eric Blake <ebb9@byu.net>
9208 Give gcc some memmem optimization hints.
9209 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
9210 (strcasestr): Declare as pure.
9211 * modules/memmem (Maintainer): Claim my implementation.
9213 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9215 Support AIX 6.1 and higher.
9216 * build-aux/config.libpath: Likewise.
9217 * build-aux/config.rpath: Likewise.
9219 2008-01-08 Jim Meyering <meyering@redhat.com>
9220 Bruno Haible <bruno@clisp.org>
9222 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
9223 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
9224 Reported by Peter Fales in
9225 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
9227 2008-01-08 Bruno Haible <bruno@clisp.org>
9229 * modules/unictype/category-of (Depends-on): Add
9230 unictype/category-none.
9231 * modules/unictype/category-and-tests (Depends-on): Add
9232 unictype/category-{L,N,Lu,Nd}.
9233 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
9234 * modules/unictype/category-or-tests (Depends-on): Add
9235 unictype/category-{L,N}.
9236 * modules/unictype/category-name-tests (Depends-on): Add
9237 unictype/category-{Z,Nl}.
9238 Reported by Simon Josefsson.
9240 2008-01-08 Bruno Haible <bruno@clisp.org>
9242 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
9244 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
9245 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
9246 Reported by Peter Miller <millerp@canb.auug.org.au>.
9248 2008-01-08 Eric Blake <ebb9@byu.net>
9250 Rewrite memmem to guarantee linear complexity without malloc.
9251 * lib/memmem.c (memmem): Use Two-Way rather than
9252 Knuth-Morris-Pratt, to allow O(1) space usage.
9253 (critical_factorization, two_way_short_needle)
9254 (two_way_long_needle): New functions.
9255 (knuth_morris_pratt): Delete.
9256 * modules/memmem (Depends-on): No longer need malloca or stdbool.
9258 * tests/test-memmem.c (main): Add tests for periodic needle and
9259 sublinear performance.
9260 * doc/functions/memmem.texi (memmem): Document other deficiencies
9261 in cygwin and older glibc.
9263 2008-01-08 Bruno Haible <bruno@clisp.org>
9265 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
9268 2008-01-08 Mike Frysinger <vapier@gentoo.org>
9270 Add a configure time option: --disable-acl.
9271 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
9274 2008-01-06 Simon Josefsson <simon@josefsson.org>
9276 * tests/test-localename.c: Don't include obsolete "setenv.h".
9278 * modules/localename-tests (Depends-on): Need unsetenv.
9280 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9282 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
9284 2008-01-06 Colin Watson <cjwatson@debian.org>
9286 * users.txt: Add man-db.
9288 2008-01-07 Bruno Haible <bruno@clisp.org>
9290 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
9291 previous section name.
9293 2008-01-07 Bruno Haible <bruno@clisp.org>
9295 * lib/progname.c (set_program_name): Don't strip off a leading
9296 "lt-" prefix outside a .libs directory.
9297 Suggested by Paul Eggert.
9299 2008-01-01 Sylvain Beucler <beuc@gnu.org>
9300 Bruno Haible <bruno@clisp.org>
9302 Improve memory cleanup in 'relocatable' module.
9303 * lib/relocatable.h (compute_curr_prefix): Change return type to
9305 * lib/relocatable.c (compute_curr_prefix): Change return type to
9306 'char *'. Free curr_installdir after use.
9307 (relocate): Free curr_prefix_better after use.
9308 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
9310 2008-01-01 Bruno Haible <bruno@clisp.org>
9312 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
9313 failure on older glibc systems.
9314 Reported by Peter Fales <psfales@alcatel-lucent.com>.
9316 2008-01-05 Eric Blake <ebb9@byu.net>
9318 Avoid quadratic system memmem.
9319 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
9320 Reported by Ralf Wildenhues.
9322 Fix memmem test for mingw.
9323 * modules/memmem-tests (configure.ac): Check for alarm.
9324 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
9326 * doc/functions/memmem.texi: New file.
9327 * doc/gnulib.texi (Function Substitutes): Add memmem.
9328 Reported by Bruno Haible.
9330 2008-01-04 Bruno Haible <bruno@clisp.org>
9332 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
9333 Require gl_HEADER_STRINGS_H_DEFAULTS, not
9334 gl_HEADER_STRING_H_DEFAULTS.
9336 2008-01-04 Eric Blake <ebb9@byu.net>
9338 Shorten duration of memmem test.
9339 * tests/test-memmem.c (main): Use alarm to declare failure if test
9341 Reported by Ralf Wildenhues.
9343 2007-12-21 Simon Josefsson <simon@josefsson.org>
9345 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
9346 string, needed by strerror.
9348 2008-01-03 Colin Watson <cjwatson@debian.org>
9349 Bruno Haible <bruno@clisp.org>
9351 * doc/gnulib-tool.texi (Localization): New section.
9353 2008-01-02 Bruno Haible <bruno@clisp.org>
9355 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
9356 variables to 'unsigned char *' type.
9357 Reported by Paul Eggert.
9359 2008-01-02 Jim Meyering <jim@meyering.net>
9361 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
9363 2007-12-31 Jim Meyering <jim@meyering.net>
9365 Avoid use of private FTS type name.
9366 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
9368 2007-12-30 Karl Berry <karl@gnu.org>
9370 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
9371 work around defect in Texinfo and/or the standalone Info browser.
9373 2007-12-30 Bruno Haible <bruno@clisp.org>
9375 Unify 5 copies of the KMP code.
9376 * lib/str-kmp.h: New file.
9377 * lib/c-strcasestr.c: Include str-kmp.h.
9378 (knuth_morris_pratt): Remove function.
9379 (c_strcasestr): Update.
9380 * lib/c-strstr.c: Include str-kmp.h.
9381 (knuth_morris_pratt): Remove function.
9382 (c_strcasestr): Update.
9383 * lib/mbscasestr.c: Include str-kmp.h.
9384 (knuth_morris_pratt_unibyte): Remove function.
9385 * lib/mbsstr.c: Include str-kmp.h.
9386 (knuth_morris_pratt_unibyte): Remove function.
9387 * lib/strcasestr.c: Include str-kmp.h.
9388 (knuth_morris_pratt): Remove function.
9389 (strcasestr): Update.
9390 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
9391 * modules/c-strstr (Files): Likewise.
9392 * modules/mbscasestr (Files): Likewise.
9393 * modules/mbsstr (Files): Likewise.
9394 * modules/strcasestr (Files): Likewise.
9395 Suggested by Paul Eggert.
9397 2007-12-30 Bruno Haible <bruno@clisp.org>
9399 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
9402 2007-12-30 Bruno Haible <bruno@clisp.org>
9404 * lib/xmalloca.h: Include xalloc.h.
9405 (xnmalloca): New macro.
9407 2007-12-30 Bruno Haible <bruno@clisp.org>
9409 * lib/malloca.h (nmalloca): New macro.
9410 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
9411 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
9412 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
9413 knuth_morris_pratt_multibyte): Likewise.
9414 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
9415 knuth_morris_pratt_multibyte): Likewise.
9416 * lib/memmem.c (knuth_morris_pratt): Likewise.
9417 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
9419 2007-12-25 Bruno Haible <bruno@clisp.org>
9421 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
9422 * lib/glob.c: Don't include openat.h.
9423 (link_exists2_p): Add back the code that deals with the
9424 !GLOB_ALTDIRFUNC case.
9425 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
9426 let it do the filename concatenation.
9427 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
9428 * modules/glob (Depends-on): Remove openat.
9430 2007-12-31 Bruno Haible <bruno@clisp.org>
9432 * modules/dirfd (License): Change to LGPLv2+.
9433 Approved by Jim Meyering.
9435 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
9437 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
9438 when multiplying M by sizeof (size_t).
9440 2007-12-10 Martin Lambers <marlam@marlam.de>
9442 Override getpagesize on mingw.
9443 * lib/getpagesize.c: New file.
9444 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
9445 * modules/getpagesize (Files): Add lib/getpagesize.c.
9446 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
9447 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9448 REPLACE_GETPAGESIZE.
9449 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
9451 2007-12-25 Bruno Haible <bruno@clisp.org>
9453 * modules/localcharset (Notice): New field.
9454 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
9455 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
9457 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
9458 Bruno Haible <bruno@clisp.org>
9460 Avoid using the syntax symbol() in formatted documentation.
9461 * MODULES.html.sh (func_module): When replacing symbol() with a
9462 hyperlink, remove the parentheses. Show an error if some remain.
9463 Recognize and render the '...' syntax.
9464 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
9465 Rework. Add paragraph about GCC's inlining.
9466 * doc/alloca.texi: Likewise.
9467 * doc/error.texi: Remove parentheses from symbol reference.
9468 * doc/gnulib-intro.texi: Likewise.
9469 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
9470 * modules/fnmatch (Description): Reword to say "the ... function".
9471 * modules/full-read (Description): Likewise.
9472 * modules/full-write (Description): Likewise.
9473 * modules/safe-read (Description): Likewise.
9474 * modules/safe-write (Description): Likewise.
9475 * modules/strchrnul (Description): Likewise.
9476 * modules/trim (Description): Likewise.
9477 * modules/error (Description): Remove parentheses from symbol
9479 * modules/verror (Description): Likewise.
9480 Reported by Karl Berry.
9482 2007-12-25 Bruno Haible <bruno@clisp.org>
9484 Fixup after 2007-10-16 commit.
9485 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
9487 2007-12-24 Bruno Haible <bruno@clisp.org>
9489 Make --enable-relocatable work with DESTDIR.
9490 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
9491 to compute installdir from destprog.
9492 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
9493 also set the RELOC_DESTDIR variable.
9494 Reported by Левашев Иван <octagram@bluebottle.com>.
9496 2007-12-24 Bruno Haible <bruno@clisp.org>
9498 Fix link error due to xalloc_die().
9499 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
9501 * lib/relocwrapper.c: Update comments.
9502 * build-aux/install-reloc: Remove xreadlink.c from file list.
9503 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
9505 Reported by Левашев Иван <octagram@bluebottle.com>.
9507 2007-12-24 Bruno Haible <bruno@clisp.org>
9509 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
9510 * lib/setenv.h: Remove file.
9511 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
9513 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
9514 (Depends-on): Add stdlib.
9515 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
9517 (Include): Replace setenv.h with <stdlib.h>.
9518 * modules/unsetenv: New file.
9519 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
9520 * lib/unsetenv.c: Include <stdlib.h> first.
9521 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
9522 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
9523 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
9524 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
9525 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
9526 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
9527 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
9528 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
9529 * doc/functions/unsetenv.texi: Update.
9530 * modules/xsetenv (Depends-on): Add unsetenv.
9531 * modules/getdate (Depends-on): Likewise.
9532 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
9533 * lib/xsetenv.c: Don't include setenv.h.
9534 * lib/getdate.y: Likewise.
9535 * lib/relocwrapper.c: Likewise.
9536 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
9537 (Depends-on): Add stdlib.
9538 * NEWS: Mention the changes.
9539 Reported by Левашев Иван <octagram@bluebottle.com>.
9541 2007-12-23 Bruno Haible <bruno@clisp.org>
9543 * lib/memmem.c (memmem): Use lowercase variable names. Tab
9546 2007-12-23 Bruno Haible <bruno@clisp.org>
9548 * lib/c-strcasestr.c: Add more comments.
9549 * lib/c-strstr.c: Likewise.
9550 * lib/mbscasestr.c: Likewise.
9551 * lib/mbsstr.c: Likewise.
9552 * lib/strcasestr.c: Likewise.
9553 * lib/memmem.c: Likewise.
9555 2007-12-23 Bruno Haible <bruno@clisp.org>
9557 * tests/test-memmem.c: Include <string.h> first.
9559 2007-12-22 Bruno Haible <bruno@clisp.org>
9561 * gnulib-tool (func_create_testdir): Change $auxdir while generating
9562 the contents of $testsbase.
9563 Reported by Ralf Wildenhues.
9565 2007-12-22 Bruno Haible <bruno@clisp.org>
9567 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
9568 two variables local_ldadd_before, local_ldadd_last.
9570 2007-12-20 Eric Blake <ebb9@byu.net>
9572 Work around circular library issue when cross-compiling.
9573 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
9574 that progname.o does not need to pull in rpl_memcmp.
9576 2007-12-19 Eric Blake <ebb9@byu.net>
9578 Fix memmem to avoid O(n^2) worst-case complexity.
9579 * lib/memmem.c (knuth_morris_pratt): New function.
9580 (memmem): Use it if first few naive iterations fail.
9581 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
9582 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
9583 * modules/memchr (License): Likewise.
9584 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
9586 * tests/test-memmem.c: Rewrite, borrowing ideas from
9587 test-mbsstr1.c; the old version wouldn't even compile!
9588 * modules/memmem-tests: New file.
9589 * lib/string.in.h (rpl_memmem): Add declaration.
9590 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
9591 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
9594 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
9596 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
9597 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
9598 before any system include files, and undef after them all. This
9599 should fix a problem on VMS reported by John E. Malmberg in
9600 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
9602 2007-12-17 Eric Blake <ebb9@byu.net>
9604 Revert addition of verify, for BSD/OS.
9605 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
9606 can't handle large files, for the sake of obsolete platforms.
9607 * modules/fseeko (Depends-on): Remove verify.
9608 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
9609 * doc/functions/ftello.texi (ftello): Likewise.
9610 * doc/functions/fgetpos.texi (fgetpos): Likewise.
9611 Reported by Larry Jones.
9613 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
9615 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
9616 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
9618 2007-12-17 Jim Meyering <meyering@redhat.com>
9620 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
9621 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
9622 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
9623 * modules/getcwd (Depends-on): Add openat.
9624 Reported by Petr Salinger.
9626 2007-12-17 Bruno Haible <bruno@clisp.org>
9628 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
9629 avoid a segmentation fault of the configure test on x86_64 systems.
9631 2007-12-15 Jim Meyering <meyering@redhat.com>
9633 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
9635 2007-12-13 Eric Blake <ebb9@byu.net>
9638 * tests/test-fseek.c (main): Also test ungetc handling.
9639 * tests/test-fseeko.c (main): Likewise.
9640 * modules/fseeko (Depends-on): Add verify.
9641 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
9643 Reported by Larry Jones.
9645 Fix fseeko on mingw.
9646 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
9649 Beef up fseek tests.
9650 * tests/test-fseek.c (main): Also test eof handling.
9651 * tests/test-fseeko.c (main): Likewise.
9652 Reported by Larry Jones.
9654 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
9656 Fix fseeko on BSD-based platforms.
9657 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
9660 2007-12-12 Eric Blake <ebb9@byu.net>
9662 Allow circular dependency of separate libtests.a
9663 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
9666 2007-12-11 Eric Blake <ebb9@byu.net>
9668 Fix bug with -0.0L in previous patch.
9669 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
9670 * tests/test-isnan.c (main): Also test on zeroes.
9671 * tests/test-isnanf.c (main): Likewise.
9672 * tests/test-isnanl.h (main): Likewise.
9674 Detect pseudo-denormals on x86 even when cross-compiling.
9675 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
9676 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
9677 invalid bit patterns that happen to satisfy ==.
9679 Avoid link failures with separate libtests.a.
9680 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
9681 last, to satisfy circular dependencies.
9683 2007-12-11 Eric Blake <ebb9@byu.net>
9684 and Bruno Haible <bruno@clisp.org>
9686 Fix OpenBSD 4.0 <float.h> handling of long double.
9687 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
9688 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
9689 * doc/headers/float.texi (float.h): Document OpenBSD bug.
9691 2007-12-11 Jim Meyering <meyering@redhat.com>
9693 * users.txt: Add libvirt.
9695 Support versions of autoconf prior to 2.59c.
9696 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
9697 if it is not already defined.
9699 2007-12-09 Bruno Haible <bruno@clisp.org>
9701 Let 'gnulib-tool --import' collect sources needed for the tests in
9702 tests/ rather than in lib/.
9703 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
9704 argument. If true, add rules to generate libtests.a, and put libtests.a
9705 into $(LDADD). Consider source files in subdirectories and set
9707 (func_emit_initmacro_start, func_emit_initmacro_end,
9708 func_emit_initmacro_done): Pass all arguments explicitly.
9709 (func_import): Determine two module lists main_modules,
9710 testsrelated_modules. Determine use_libtests. Determine two variables
9711 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
9712 instead of just sed_transform_lib_file. Determine two variables
9713 main_files and testsrelated_files. Compute 'files' as the union of
9714 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
9715 func_add_or_update. In the generated gnulib-comp.m4, collect the
9716 object files for tests/ in different variables than those for lib/.
9717 Substitute LIBTESTS_LIBDEPS.
9718 (func_create_testdir): Combine the uses_subdirs results from
9719 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
9721 2007-12-09 Bruno Haible <bruno@clisp.org>
9723 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
9724 the build-aux directory.
9726 2007-12-09 Bruno Haible <bruno@clisp.org>
9728 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
9729 introduced on 2006-09-09.
9731 2007-12-07 Jim Meyering <meyering@redhat.com>
9733 Let these macros work also with autoconf-2.59.
9734 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
9735 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
9736 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9738 2007-12-06 Jim Meyering <meyering@redhat.com>
9740 Avoid a configure-time syntax error in gl_FUNC_ACL.
9741 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
9742 function in each branch, before testing the cache variable.
9744 2007-12-04 Eric Blake <ebb9@byu.net>
9746 Make scripts executable.
9747 * build-aux/config.guess: Add execute permissions.
9748 * build-aux/config.sub: Likewise.
9749 * build-aux/gendocs.sh: Likewise.
9752 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
9754 * doc/functions/frexp.texi (frexp): Document the bug.
9756 Make cygwin fseeko check more reliable.
9757 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
9758 version numbers, rather than unrelated feature check.
9759 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
9760 * doc/functions/ftello.texi (ftello): Likewise.
9761 Reported by Bruno Haible.
9763 * m4/strerror.m4: Bump version number.
9765 2007-12-03 Bruno Haible <bruno@clisp.org>
9767 * doc/functions/mprotect.texi: Mention the mingw problem.
9769 2007-12-03 Eric Blake <ebb9@byu.net>
9771 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
9772 REPLACE_STRERROR is initialized before this macro.
9774 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
9776 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
9777 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
9778 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
9779 put -lsec in even for programs other than 'ls'. This fixes a problem
9780 for gettext reported by Bruno Haible in
9781 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
9782 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
9783 Add support for Solaris 10. This isn't efficient, but should get the
9786 2007-12-03 James Youngman <jay@gnu.org>
9788 * doc/regexprops-generic.texi: change "an close-group" to "a
9789 close-group" and "illegal" to "not allowed".
9791 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9793 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
9794 pr_byname.h. Needed for the rare case when the maintainer has done
9795 "make maintainer-clean" in the source directory and then attempts a
9796 build outside the source directory.
9797 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
9800 2007-12-02 Martin Lambers <marlam@marlam.de>
9801 Bruno Haible <bruno@clisp.org>
9803 * lib/getpagesize.h: Remove file.
9804 * lib/unistd.in.h: Include declaration of getpagesize here.
9805 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
9806 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
9808 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
9809 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
9810 * modules/getpagesize (Files): Remove lib/getpagesize.h.
9811 (Depends-on): Add unistd.
9812 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9813 (Include): Use <unistd.h> instead of getpagesize.h.
9814 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
9815 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
9816 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
9817 gl_GETPAGESIZE invocation, already handled by module dependency.
9818 * lib/pagealign_alloc.c: Don't include getpagesize.h.
9820 2007-12-02 Bruno Haible <bruno@clisp.org>
9822 * modules/strings-tests: New file.
9823 * tests/test-strings.c: New file.
9825 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
9826 * lib/strings.in.h: New file.
9827 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
9828 * m4/strings_h.m4: New file.
9829 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
9830 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
9831 * modules/strings: New file.
9832 * modules/string (Makefile.am): Update.
9833 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
9834 Reported by Karl Berry.
9836 2007-12-01 Eric Blake <ebb9@byu.net>
9838 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
9839 accomodate fix in cygwin 1.5.25.
9841 2007-12-01 Jim Meyering <meyering@redhat.com>
9843 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
9844 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
9845 that would inhibit utf8-optimization of a regexp containing line-
9846 or buffer-anchors, e.g., `^', `$'.
9848 2007-11-30 Bruno Haible <bruno@clisp.org>
9850 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
9851 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
9852 glthread_recursive_lock_init.
9853 * lib/lock.c (glthread_recursive_lock_init)
9854 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
9855 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
9857 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
9859 New function qset_acl, like set_acl but with syscall semantics.
9860 * lib/acl.h (qset_acl): New decl.
9861 * lib/acl.c (qset_acl): New function.
9862 (set_acl): Use new function. Use more-consistent diagnostics.
9864 2007-11-28 Jim Meyering <meyering@redhat.com>
9866 * modules/physmem (License): Change from GPL to LGPLv2+.
9868 2007-11-26 Bruno Haible <bruno@clisp.org>
9870 * lib/vasnprintf.c (decode_long_double): Don't abort if the
9871 'long double' type has excess precision.
9872 Reported by Jim Meyering in
9873 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
9875 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9877 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
9878 Sync from <http://gnu.org/licenses>.
9879 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
9880 with license text from same location.
9881 * doc/maintain.texi, doc/standards.texi: Sync from
9882 <http://savannah.gnu.org/projects/gnustandards>.
9884 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
9885 and Jim Meyering <meyering@redhat.com>
9887 Adjust getdate' grammar to accept a slightly more regular language.
9888 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
9889 Before, the former was rejected.
9890 * lib/getdate.y (digits_to_date_time): New function, factored
9892 (number): ...here. Just call digits_to_date_time.
9893 (hybrid): New non-terminal to handle an <unsigned number,
9894 signed relative offset> sequence consistently.
9896 2007-11-18 Jim Meyering <meyering@redhat.com>
9898 Pull my changes from coreutils:
9899 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
9900 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
9901 use of $gnulib_tool_option_extras, so that it's separated from the
9904 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
9905 * build-aux/bootstrap (cp_mark_as_generated): Create any required
9906 parent destination directories before copying a file into place.
9908 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
9910 bootstrap: work also with 4-argument variant of AC_INIT
9911 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
9913 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
9915 Port test-getaddrinfo to Solaris.
9916 Problem reported by Bruno Haible in
9917 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
9918 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
9919 explanation of setting 'hints'.
9920 Don't reject an implementation merely because it returns EAI_SERVICE.
9921 (EAI_SERVICE): Define to 0 if not defined.
9923 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
9925 The license of gnu-make and posix-shell is now "GPLed build tool".
9926 * modules/gnu-make (License): Likewise.
9927 * modules/posix-shell (License): Likewise.
9929 New module posix-shell, for determining a POSIX shell
9930 or perhaps something that is close enough to a POSIX shell.
9931 * m4/posix-shell.m4: New file.
9932 * modules/posix-shell: New file.
9934 * MODULES.html.sh: Mention new module.
9936 New module gnu-make, for determining whether we're using GNU Make.
9937 * m4/gnu-make.m4: New file.
9938 * modules/gnu-make: New file.
9939 * MODULES.html.sh: Mention new module.
9941 2007-11-14 Jim Meyering <meyering@redhat.com>
9943 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
9944 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
9945 use this macro to create a function _definition_.
9946 Remove useless "#undef ARGMATCH_DIE".
9948 2007-11-14 Bruno Haible <bruno@clisp.org>
9950 * lib/config.charset: Update for OpenBSD 4.1.
9951 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
9953 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
9955 Document 64-bit #if problems in stdint.texi.
9956 * doc/headers/stdint.texi (stdint.h): Mention problems with
9957 64-bit-#if, and how to work around them.
9959 Don't insist on 'long long int' support in the preprocessor. It
9960 breaks too many things. For example, PRIdMAX still uses a 'long
9961 long int' format with the latest Sun compiler, even though
9962 HAVE_LONG_LONG_INT isn't defined due to that compiler's
9963 preprocessor problem. This causes the latest coreutils to dump
9964 core on Solaris 10 sparc with the Sun C compiler.
9965 Instead, fix the 2007-10-16 problem in a different way, by evaluating
9966 the troublesome expressions at configure-time, not at #if-time.
9967 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
9969 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
9970 compile-time C checks, done at 'configure'-time.
9971 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
9972 * modules/inttypes (Makefile): Substitute the new symbols that
9973 gl_INTTYPES_H now generates.
9974 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
9976 2007-11-12 Bruno Haible <bruno@clisp.org>
9978 Tests for Unicode character classification functions.
9980 * modules/unictype/bidicategory-byname-tests: New file.
9981 * modules/unictype/bidicategory-name-tests: New file.
9982 * modules/unictype/bidicategory-of-tests: New file.
9983 * modules/unictype/bidicategory-test-tests: New file.
9984 * modules/unictype/block-list-tests: New file.
9985 * modules/unictype/block-of-tests: New file.
9986 * modules/unictype/block-test-tests: New file.
9987 * modules/unictype/category-C-tests: New file.
9988 * modules/unictype/category-Cc-tests: New file.
9989 * modules/unictype/category-Cf-tests: New file.
9990 * modules/unictype/category-Cn-tests: New file.
9991 * modules/unictype/category-Co-tests: New file.
9992 * modules/unictype/category-Cs-tests: New file.
9993 * modules/unictype/category-L-tests: New file.
9994 * modules/unictype/category-Ll-tests: New file.
9995 * modules/unictype/category-Lm-tests: New file.
9996 * modules/unictype/category-Lo-tests: New file.
9997 * modules/unictype/category-Lt-tests: New file.
9998 * modules/unictype/category-Lu-tests: New file.
9999 * modules/unictype/category-M-tests: New file.
10000 * modules/unictype/category-Mc-tests: New file.
10001 * modules/unictype/category-Me-tests: New file.
10002 * modules/unictype/category-Mn-tests: New file.
10003 * modules/unictype/category-N-tests: New file.
10004 * modules/unictype/category-Nd-tests: New file.
10005 * modules/unictype/category-Nl-tests: New file.
10006 * modules/unictype/category-No-tests: New file.
10007 * modules/unictype/category-P-tests: New file.
10008 * modules/unictype/category-Pc-tests: New file.
10009 * modules/unictype/category-Pd-tests: New file.
10010 * modules/unictype/category-Pe-tests: New file.
10011 * modules/unictype/category-Pf-tests: New file.
10012 * modules/unictype/category-Pi-tests: New file.
10013 * modules/unictype/category-Po-tests: New file.
10014 * modules/unictype/category-Ps-tests: New file.
10015 * modules/unictype/category-S-tests: New file.
10016 * modules/unictype/category-Sc-tests: New file.
10017 * modules/unictype/category-Sk-tests: New file.
10018 * modules/unictype/category-Sm-tests: New file.
10019 * modules/unictype/category-So-tests: New file.
10020 * modules/unictype/category-Z-tests: New file.
10021 * modules/unictype/category-Zl-tests: New file.
10022 * modules/unictype/category-Zp-tests: New file.
10023 * modules/unictype/category-Zs-tests: New file.
10024 * modules/unictype/category-and-not-tests: New file.
10025 * modules/unictype/category-and-tests: New file.
10026 * modules/unictype/category-byname-tests: New file.
10027 * modules/unictype/category-name-tests: New file.
10028 * modules/unictype/category-none-tests: New file.
10029 * modules/unictype/category-of-tests: New file.
10030 * modules/unictype/category-or-tests: New file.
10031 * modules/unictype/category-test-withtable-tests: New file.
10032 * modules/unictype/combining-class-tests: New file.
10033 * modules/unictype/ctype-alnum-tests: New file.
10034 * modules/unictype/ctype-alpha-tests: New file.
10035 * modules/unictype/ctype-blank-tests: New file.
10036 * modules/unictype/ctype-cntrl-tests: New file.
10037 * modules/unictype/ctype-digit-tests: New file.
10038 * modules/unictype/ctype-graph-tests: New file.
10039 * modules/unictype/ctype-lower-tests: New file.
10040 * modules/unictype/ctype-print-tests: New file.
10041 * modules/unictype/ctype-punct-tests: New file.
10042 * modules/unictype/ctype-space-tests: New file.
10043 * modules/unictype/ctype-upper-tests: New file.
10044 * modules/unictype/ctype-xdigit-tests: New file.
10045 * modules/unictype/decimal-digit-tests: New file.
10046 * modules/unictype/digit-tests: New file.
10047 * modules/unictype/mirror-tests: New file.
10048 * modules/unictype/numeric-tests: New file.
10049 * modules/unictype/property-alphabetic-tests: New file.
10050 * modules/unictype/property-ascii-hex-digit-tests: New file.
10051 * modules/unictype/property-bidi-arabic-digit-tests: New file.
10052 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
10053 * modules/unictype/property-bidi-block-separator-tests: New file.
10054 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
10055 * modules/unictype/property-bidi-common-separator-tests: New file.
10056 * modules/unictype/property-bidi-control-tests: New file.
10057 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
10058 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
10059 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
10060 * modules/unictype/property-bidi-european-digit-tests: New file.
10061 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
10062 * modules/unictype/property-bidi-left-to-right-tests: New file.
10063 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
10064 * modules/unictype/property-bidi-other-neutral-tests: New file.
10065 * modules/unictype/property-bidi-pdf-tests: New file.
10066 * modules/unictype/property-bidi-segment-separator-tests: New file.
10067 * modules/unictype/property-bidi-whitespace-tests: New file.
10068 * modules/unictype/property-byname-tests: New file.
10069 * modules/unictype/property-combining-tests: New file.
10070 * modules/unictype/property-composite-tests: New file.
10071 * modules/unictype/property-currency-symbol-tests: New file.
10072 * modules/unictype/property-dash-tests: New file.
10073 * modules/unictype/property-decimal-digit-tests: New file.
10074 * modules/unictype/property-default-ignorable-code-point-tests: New file.
10075 * modules/unictype/property-deprecated-tests: New file.
10076 * modules/unictype/property-diacritic-tests: New file.
10077 * modules/unictype/property-extender-tests: New file.
10078 * modules/unictype/property-format-control-tests: New file.
10079 * modules/unictype/property-grapheme-base-tests: New file.
10080 * modules/unictype/property-grapheme-extend-tests: New file.
10081 * modules/unictype/property-grapheme-link-tests: New file.
10082 * modules/unictype/property-hex-digit-tests: New file.
10083 * modules/unictype/property-hyphen-tests: New file.
10084 * modules/unictype/property-id-continue-tests: New file.
10085 * modules/unictype/property-id-start-tests: New file.
10086 * modules/unictype/property-ideographic-tests: New file.
10087 * modules/unictype/property-ids-binary-operator-tests: New file.
10088 * modules/unictype/property-ids-trinary-operator-tests: New file.
10089 * modules/unictype/property-ignorable-control-tests: New file.
10090 * modules/unictype/property-iso-control-tests: New file.
10091 * modules/unictype/property-join-control-tests: New file.
10092 * modules/unictype/property-left-of-pair-tests: New file.
10093 * modules/unictype/property-line-separator-tests: New file.
10094 * modules/unictype/property-logical-order-exception-tests: New file.
10095 * modules/unictype/property-lowercase-tests: New file.
10096 * modules/unictype/property-math-tests: New file.
10097 * modules/unictype/property-non-break-tests: New file.
10098 * modules/unictype/property-not-a-character-tests: New file.
10099 * modules/unictype/property-numeric-tests: New file.
10100 * modules/unictype/property-other-alphabetic-tests: New file.
10101 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
10102 * modules/unictype/property-other-grapheme-extend-tests: New file.
10103 * modules/unictype/property-other-id-continue-tests: New file.
10104 * modules/unictype/property-other-id-start-tests: New file.
10105 * modules/unictype/property-other-lowercase-tests: New file.
10106 * modules/unictype/property-other-math-tests: New file.
10107 * modules/unictype/property-other-uppercase-tests: New file.
10108 * modules/unictype/property-paired-punctuation-tests: New file.
10109 * modules/unictype/property-paragraph-separator-tests: New file.
10110 * modules/unictype/property-pattern-syntax-tests: New file.
10111 * modules/unictype/property-pattern-white-space-tests: New file.
10112 * modules/unictype/property-private-use-tests: New file.
10113 * modules/unictype/property-punctuation-tests: New file.
10114 * modules/unictype/property-quotation-mark-tests: New file.
10115 * modules/unictype/property-radical-tests: New file.
10116 * modules/unictype/property-sentence-terminal-tests: New file.
10117 * modules/unictype/property-soft-dotted-tests: New file.
10118 * modules/unictype/property-space-tests: New file.
10119 * modules/unictype/property-terminal-punctuation-tests: New file.
10120 * modules/unictype/property-test-tests: New file.
10121 * modules/unictype/property-titlecase-tests: New file.
10122 * modules/unictype/property-unassigned-code-value-tests: New file.
10123 * modules/unictype/property-unified-ideograph-tests: New file.
10124 * modules/unictype/property-uppercase-tests: New file.
10125 * modules/unictype/property-variation-selector-tests: New file.
10126 * modules/unictype/property-white-space-tests: New file.
10127 * modules/unictype/property-xid-continue-tests: New file.
10128 * modules/unictype/property-xid-start-tests: New file.
10129 * modules/unictype/property-zero-width-tests: New file.
10130 * modules/unictype/scripts-tests: New file.
10131 * modules/unictype/syntax-c-ident-tests: New file.
10132 * modules/unictype/syntax-c-whitespace-tests: New file.
10133 * modules/unictype/syntax-java-ident-tests: New file.
10134 * modules/unictype/syntax-java-whitespace-tests: New file.
10135 * tests/unictype/test-bidi_byname.c: New file.
10136 * tests/unictype/test-bidi_name.c: New file.
10137 * tests/unictype/test-bidi_of.c: New file.
10138 * tests/unictype/test-bidi_test.c: New file.
10139 * tests/unictype/test-block_list.c: New file.
10140 * tests/unictype/test-block_of.c: New file.
10141 * tests/unictype/test-block_test.c: New file.
10142 * tests/unictype/test-categ_and.c: New file.
10143 * tests/unictype/test-categ_and_not.c: New file.
10144 * tests/unictype/test-categ_byname.c: New file.
10145 * tests/unictype/test-categ_name.c: New file.
10146 * tests/unictype/test-categ_none.c: New file.
10147 * tests/unictype/test-categ_of.c: New file.
10148 * tests/unictype/test-categ_or.c: New file.
10149 * tests/unictype/test-categ_test_withtable.c: New file.
10150 * tests/unictype/test-combining.c: New file.
10151 * tests/unictype/test-decdigit.c: New file.
10152 * tests/unictype/test-digit.c: New file.
10153 * tests/unictype/test-mirror.c: New file.
10154 * tests/unictype/test-numeric.c: New file.
10155 * tests/unictype/test-pr_byname.c: New file.
10156 * tests/unictype/test-pr_test.c: New file.
10157 * tests/unictype/test-predicate-part1.h: New file.
10158 * tests/unictype/test-predicate-part2.h: New file.
10159 * tests/unictype/test-scripts.c: New file.
10160 * tests/unictype/test-sy_c_ident.c: New file.
10161 * tests/unictype/test-sy_java_ident.c: New file.
10163 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
10165 * tests/unictype/test-categ_Cc.c: Likewise.
10166 * tests/unictype/test-categ_Cf.c: Likewise.
10167 * tests/unictype/test-categ_Cn.c: Likewise.
10168 * tests/unictype/test-categ_Co.c: Likewise.
10169 * tests/unictype/test-categ_Cs.c: Likewise.
10170 * tests/unictype/test-categ_L.c: Likewise.
10171 * tests/unictype/test-categ_Ll.c: Likewise.
10172 * tests/unictype/test-categ_Lm.c: Likewise.
10173 * tests/unictype/test-categ_Lo.c: Likewise.
10174 * tests/unictype/test-categ_Lt.c: Likewise.
10175 * tests/unictype/test-categ_Lu.c: Likewise.
10176 * tests/unictype/test-categ_M.c: Likewise.
10177 * tests/unictype/test-categ_Mc.c: Likewise.
10178 * tests/unictype/test-categ_Me.c: Likewise.
10179 * tests/unictype/test-categ_Mn.c: Likewise.
10180 * tests/unictype/test-categ_N.c: Likewise.
10181 * tests/unictype/test-categ_Nd.c: Likewise.
10182 * tests/unictype/test-categ_Nl.c: Likewise.
10183 * tests/unictype/test-categ_No.c: Likewise.
10184 * tests/unictype/test-categ_P.c: Likewise.
10185 * tests/unictype/test-categ_Pc.c: Likewise.
10186 * tests/unictype/test-categ_Pd.c: Likewise.
10187 * tests/unictype/test-categ_Pe.c: Likewise.
10188 * tests/unictype/test-categ_Pf.c: Likewise.
10189 * tests/unictype/test-categ_Pi.c: Likewise.
10190 * tests/unictype/test-categ_Po.c: Likewise.
10191 * tests/unictype/test-categ_Ps.c: Likewise.
10192 * tests/unictype/test-categ_S.c: Likewise.
10193 * tests/unictype/test-categ_Sc.c: Likewise.
10194 * tests/unictype/test-categ_Sk.c: Likewise.
10195 * tests/unictype/test-categ_Sm.c: Likewise.
10196 * tests/unictype/test-categ_So.c: Likewise.
10197 * tests/unictype/test-categ_Z.c: Likewise.
10198 * tests/unictype/test-categ_Zl.c: Likewise.
10199 * tests/unictype/test-categ_Zp.c: Likewise.
10200 * tests/unictype/test-categ_Zs.c: Likewise.
10201 * tests/unictype/test-ctype_alnum.c: Likewise.
10202 * tests/unictype/test-ctype_alpha.c: Likewise.
10203 * tests/unictype/test-ctype_blank.c: Likewise.
10204 * tests/unictype/test-ctype_cntrl.c: Likewise.
10205 * tests/unictype/test-ctype_digit.c: Likewise.
10206 * tests/unictype/test-ctype_graph.c: Likewise.
10207 * tests/unictype/test-ctype_lower.c: Likewise.
10208 * tests/unictype/test-ctype_print.c: Likewise.
10209 * tests/unictype/test-ctype_punct.c: Likewise.
10210 * tests/unictype/test-ctype_space.c: Likewise.
10211 * tests/unictype/test-ctype_upper.c: Likewise.
10212 * tests/unictype/test-ctype_xdigit.c: Likewise.
10213 * tests/unictype/test-decdigit.h: Likewise.
10214 * tests/unictype/test-digit.h: Likewise.
10215 * tests/unictype/test-numeric.h: Likewise.
10216 * tests/unictype/test-pr_alphabetic.c: Likewise.
10217 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
10218 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10219 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
10220 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
10221 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
10222 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
10223 * tests/unictype/test-pr_bidi_control.c: Likewise.
10224 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
10225 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
10226 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10227 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
10228 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10229 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10230 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10231 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10232 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
10233 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
10234 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
10235 * tests/unictype/test-pr_combining.c: Likewise.
10236 * tests/unictype/test-pr_composite.c: Likewise.
10237 * tests/unictype/test-pr_currency_symbol.c: Likewise.
10238 * tests/unictype/test-pr_dash.c: Likewise.
10239 * tests/unictype/test-pr_decimal_digit.c: Likewise.
10240 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
10241 * tests/unictype/test-pr_deprecated.c: Likewise.
10242 * tests/unictype/test-pr_diacritic.c: Likewise.
10243 * tests/unictype/test-pr_extender.c: Likewise.
10244 * tests/unictype/test-pr_format_control.c: Likewise.
10245 * tests/unictype/test-pr_grapheme_base.c: Likewise.
10246 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10247 * tests/unictype/test-pr_grapheme_link.c: Likewise.
10248 * tests/unictype/test-pr_hex_digit.c: Likewise.
10249 * tests/unictype/test-pr_hyphen.c: Likewise.
10250 * tests/unictype/test-pr_id_continue.c: Likewise.
10251 * tests/unictype/test-pr_id_start.c: Likewise.
10252 * tests/unictype/test-pr_ideographic.c: Likewise.
10253 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
10254 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
10255 * tests/unictype/test-pr_ignorable_control.c: Likewise.
10256 * tests/unictype/test-pr_iso_control.c: Likewise.
10257 * tests/unictype/test-pr_join_control.c: Likewise.
10258 * tests/unictype/test-pr_left_of_pair.c: Likewise.
10259 * tests/unictype/test-pr_line_separator.c: Likewise.
10260 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
10261 * tests/unictype/test-pr_lowercase.c: Likewise.
10262 * tests/unictype/test-pr_math.c: Likewise.
10263 * tests/unictype/test-pr_non_break.c: Likewise.
10264 * tests/unictype/test-pr_not_a_character.c: Likewise.
10265 * tests/unictype/test-pr_numeric.c: Likewise.
10266 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10267 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
10268 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
10269 * tests/unictype/test-pr_other_id_continue.c: Likewise.
10270 * tests/unictype/test-pr_other_id_start.c: Likewise.
10271 * tests/unictype/test-pr_other_lowercase.c: Likewise.
10272 * tests/unictype/test-pr_other_math.c: Likewise.
10273 * tests/unictype/test-pr_other_uppercase.c: Likewise.
10274 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
10275 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
10276 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
10277 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
10278 * tests/unictype/test-pr_private_use.c: Likewise.
10279 * tests/unictype/test-pr_punctuation.c: Likewise.
10280 * tests/unictype/test-pr_quotation_mark.c: Likewise.
10281 * tests/unictype/test-pr_radical.c: Likewise.
10282 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10283 * tests/unictype/test-pr_soft_dotted.c: Likewise.
10284 * tests/unictype/test-pr_space.c: Likewise.
10285 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10286 * tests/unictype/test-pr_titlecase.c: Likewise.
10287 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10288 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10289 * tests/unictype/test-pr_uppercase.c: Likewise.
10290 * tests/unictype/test-pr_variation_selector.c: Likewise.
10291 * tests/unictype/test-pr_white_space.c: Likewise.
10292 * tests/unictype/test-pr_xid_continue.c: Likewise.
10293 * tests/unictype/test-pr_xid_start.c: Likewise.
10294 * tests/unictype/test-pr_zero_width.c: Likewise.
10295 * tests/unictype/test-sy_c_whitespace.c: Likewise.
10296 * tests/unictype/test-sy_java_whitespace.c: Likewise.
10298 2007-11-12 Bruno Haible <bruno@clisp.org>
10300 Unicode character classification functions.
10301 * lib/unictype.h: New file.
10302 * modules/unictype/base: New file.
10303 * modules/unictype/category-L: New file.
10304 * modules/unictype/category-Lu: New file.
10305 * modules/unictype/category-Ll: New file.
10306 * modules/unictype/category-Lt: New file.
10307 * modules/unictype/category-Lm: New file.
10308 * modules/unictype/category-Lo: New file.
10309 * modules/unictype/category-M: New file.
10310 * modules/unictype/category-Mn: New file.
10311 * modules/unictype/category-Mc: New file.
10312 * modules/unictype/category-Me: New file.
10313 * modules/unictype/category-N: New file.
10314 * modules/unictype/category-Nd: New file.
10315 * modules/unictype/category-Nl: New file.
10316 * modules/unictype/category-No: New file.
10317 * modules/unictype/category-P: New file.
10318 * modules/unictype/category-Pc: New file.
10319 * modules/unictype/category-Pd: New file.
10320 * modules/unictype/category-Ps: New file.
10321 * modules/unictype/category-Pe: New file.
10322 * modules/unictype/category-Pi: New file.
10323 * modules/unictype/category-Pf: New file.
10324 * modules/unictype/category-Po: New file.
10325 * modules/unictype/category-S: New file.
10326 * modules/unictype/category-Sm: New file.
10327 * modules/unictype/category-Sc: New file.
10328 * modules/unictype/category-Sk: New file.
10329 * modules/unictype/category-So: New file.
10330 * modules/unictype/category-Z: New file.
10331 * modules/unictype/category-Zs: New file.
10332 * modules/unictype/category-Zl: New file.
10333 * modules/unictype/category-Zp: New file.
10334 * modules/unictype/category-C: New file.
10335 * modules/unictype/category-Cc: New file.
10336 * modules/unictype/category-Cf: New file.
10337 * modules/unictype/category-Cs: New file.
10338 * modules/unictype/category-Co: New file.
10339 * modules/unictype/category-Cn: New file.
10340 * modules/unictype/category-or: New file.
10341 * modules/unictype/category-of: New file.
10342 * modules/unictype/category-test: New file.
10343 * modules/unictype/category-test-withtable: New file.
10344 * modules/unictype/category-byname: New file.
10345 * modules/unictype/category-none: New file.
10346 * modules/unictype/category-and: New file.
10347 * modules/unictype/category-and-not: New file.
10348 * modules/unictype/category-name: New file.
10349 * modules/unictype/combining-class: New file.
10350 * modules/unictype/category-all: New file.
10351 * modules/unictype/bidicategory-all: New file.
10352 * modules/unictype/bidicategory-byname: New file.
10353 * modules/unictype/bidicategory-name: New file.
10354 * modules/unictype/bidicategory-of: New file.
10355 * modules/unictype/bidicategory-test: New file.
10356 * modules/unictype/decimal-digit: New file.
10357 * modules/unictype/digit: New file.
10358 * modules/unictype/numeric: New file.
10359 * modules/unictype/mirror: New file.
10360 * modules/unictype/property-white-space: New file.
10361 * modules/unictype/property-alphabetic: New file.
10362 * modules/unictype/property-other-alphabetic: New file.
10363 * modules/unictype/property-not-a-character: New file.
10364 * modules/unictype/property-default-ignorable-code-point: New file.
10365 * modules/unictype/property-other-default-ignorable-code-point: New
10367 * modules/unictype/property-deprecated: New file.
10368 * modules/unictype/property-logical-order-exception: New file.
10369 * modules/unictype/property-variation-selector: New file.
10370 * modules/unictype/property-private-use: New file.
10371 * modules/unictype/property-unassigned-code-value: New file.
10372 * modules/unictype/property-uppercase: New file.
10373 * modules/unictype/property-other-uppercase: New file.
10374 * modules/unictype/property-lowercase: New file.
10375 * modules/unictype/property-other-lowercase: New file.
10376 * modules/unictype/property-titlecase: New file.
10377 * modules/unictype/property-soft-dotted: New file.
10378 * modules/unictype/property-id-start: New file.
10379 * modules/unictype/property-other-id-start: New file.
10380 * modules/unictype/property-id-continue: New file.
10381 * modules/unictype/property-other-id-continue: New file.
10382 * modules/unictype/property-xid-start: New file.
10383 * modules/unictype/property-xid-continue: New file.
10384 * modules/unictype/property-pattern-white-space: New file.
10385 * modules/unictype/property-pattern-syntax: New file.
10386 * modules/unictype/property-join-control: New file.
10387 * modules/unictype/property-grapheme-base: New file.
10388 * modules/unictype/property-grapheme-extend: New file.
10389 * modules/unictype/property-other-grapheme-extend: New file.
10390 * modules/unictype/property-grapheme-link: New file.
10391 * modules/unictype/property-bidi-control: New file.
10392 * modules/unictype/property-bidi-left-to-right: New file.
10393 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
10394 * modules/unictype/property-bidi-arabic-right-to-left: New file.
10395 * modules/unictype/property-bidi-european-digit: New file.
10396 * modules/unictype/property-bidi-eur-num-separator: New file.
10397 * modules/unictype/property-bidi-eur-num-terminator: New file.
10398 * modules/unictype/property-bidi-arabic-digit: New file.
10399 * modules/unictype/property-bidi-common-separator: New file.
10400 * modules/unictype/property-bidi-block-separator: New file.
10401 * modules/unictype/property-bidi-segment-separator: New file.
10402 * modules/unictype/property-bidi-whitespace: New file.
10403 * modules/unictype/property-bidi-non-spacing-mark: New file.
10404 * modules/unictype/property-bidi-boundary-neutral: New file.
10405 * modules/unictype/property-bidi-pdf: New file.
10406 * modules/unictype/property-bidi-embedding-or-override: New file.
10407 * modules/unictype/property-bidi-other-neutral: New file.
10408 * modules/unictype/property-hex-digit: New file.
10409 * modules/unictype/property-ascii-hex-digit: New file.
10410 * modules/unictype/property-ideographic: New file.
10411 * modules/unictype/property-unified-ideograph: New file.
10412 * modules/unictype/property-radical: New file.
10413 * modules/unictype/property-ids-binary-operator: New file.
10414 * modules/unictype/property-ids-trinary-operator: New file.
10415 * modules/unictype/property-zero-width: New file.
10416 * modules/unictype/property-space: New file.
10417 * modules/unictype/property-non-break: New file.
10418 * modules/unictype/property-iso-control: New file.
10419 * modules/unictype/property-format-control: New file.
10420 * modules/unictype/property-dash: New file.
10421 * modules/unictype/property-hyphen: New file.
10422 * modules/unictype/property-punctuation: New file.
10423 * modules/unictype/property-line-separator: New file.
10424 * modules/unictype/property-paragraph-separator: New file.
10425 * modules/unictype/property-quotation-mark: New file.
10426 * modules/unictype/property-sentence-terminal: New file.
10427 * modules/unictype/property-terminal-punctuation: New file.
10428 * modules/unictype/property-currency-symbol: New file.
10429 * modules/unictype/property-math: New file.
10430 * modules/unictype/property-other-math: New file.
10431 * modules/unictype/property-paired-punctuation: New file.
10432 * modules/unictype/property-left-of-pair: New file.
10433 * modules/unictype/property-combining: New file.
10434 * modules/unictype/property-composite: New file.
10435 * modules/unictype/property-decimal-digit: New file.
10436 * modules/unictype/property-numeric: New file.
10437 * modules/unictype/property-diacritic: New file.
10438 * modules/unictype/property-extender: New file.
10439 * modules/unictype/property-ignorable-control: New file.
10440 * modules/unictype/property-test: New file.
10441 * modules/unictype/property-byname: New file.
10442 * modules/unictype/property-all: New file.
10443 * modules/unictype/scripts: New file.
10444 * modules/unictype/scripts-all: New file.
10445 * modules/unictype/block-of: New file.
10446 * modules/unictype/block-test: New file.
10447 * modules/unictype/block-list: New file.
10448 * modules/unictype/block-all: New file.
10449 * modules/unictype/syntax-c-whitespace: New file.
10450 * modules/unictype/syntax-java-whitespace: New file.
10451 * modules/unictype/syntax-c-ident: New file.
10452 * modules/unictype/syntax-java-ident: New file.
10453 * modules/unictype/ctype-alnum: New file.
10454 * modules/unictype/ctype-alpha: New file.
10455 * modules/unictype/ctype-cntrl: New file.
10456 * modules/unictype/ctype-digit: New file.
10457 * modules/unictype/ctype-graph: New file.
10458 * modules/unictype/ctype-lower: New file.
10459 * modules/unictype/ctype-print: New file.
10460 * modules/unictype/ctype-punct: New file.
10461 * modules/unictype/ctype-space: New file.
10462 * modules/unictype/ctype-upper: New file.
10463 * modules/unictype/ctype-xdigit: New file.
10464 * modules/unictype/ctype-blank: New file.
10465 * lib/unictype/bidi_byname.c: New file.
10466 * lib/unictype/bidi_name.c: New file.
10467 * lib/unictype/bidi_of.c: New file.
10468 * lib/unictype/bidi_test.c: New file.
10469 * lib/unictype/bitmap.h: New file.
10470 * lib/unictype/block_test.c: New file.
10471 * lib/unictype/blocks.c: New file.
10472 * lib/unictype/categ_C.c: New file.
10473 * lib/unictype/categ_Cc.c: New file.
10474 * lib/unictype/categ_Cf.c: New file.
10475 * lib/unictype/categ_Cn.c: New file.
10476 * lib/unictype/categ_Co.c: New file.
10477 * lib/unictype/categ_Cs.c: New file.
10478 * lib/unictype/categ_L.c: New file.
10479 * lib/unictype/categ_Ll.c: New file.
10480 * lib/unictype/categ_Lm.c: New file.
10481 * lib/unictype/categ_Lo.c: New file.
10482 * lib/unictype/categ_Lt.c: New file.
10483 * lib/unictype/categ_Lu.c: New file.
10484 * lib/unictype/categ_M.c: New file.
10485 * lib/unictype/categ_Mc.c: New file.
10486 * lib/unictype/categ_Me.c: New file.
10487 * lib/unictype/categ_Mn.c: New file.
10488 * lib/unictype/categ_N.c: New file.
10489 * lib/unictype/categ_Nd.c: New file.
10490 * lib/unictype/categ_Nl.c: New file.
10491 * lib/unictype/categ_No.c: New file.
10492 * lib/unictype/categ_P.c: New file.
10493 * lib/unictype/categ_Pc.c: New file.
10494 * lib/unictype/categ_Pd.c: New file.
10495 * lib/unictype/categ_Pe.c: New file.
10496 * lib/unictype/categ_Pf.c: New file.
10497 * lib/unictype/categ_Pi.c: New file.
10498 * lib/unictype/categ_Po.c: New file.
10499 * lib/unictype/categ_Ps.c: New file.
10500 * lib/unictype/categ_S.c: New file.
10501 * lib/unictype/categ_Sc.c: New file.
10502 * lib/unictype/categ_Sk.c: New file.
10503 * lib/unictype/categ_Sm.c: New file.
10504 * lib/unictype/categ_So.c: New file.
10505 * lib/unictype/categ_Z.c: New file.
10506 * lib/unictype/categ_Zl.c: New file.
10507 * lib/unictype/categ_Zp.c: New file.
10508 * lib/unictype/categ_Zs.c: New file.
10509 * lib/unictype/categ_and.c: New file.
10510 * lib/unictype/categ_and_not.c: New file.
10511 * lib/unictype/categ_byname.c: New file.
10512 * lib/unictype/categ_name.c: New file.
10513 * lib/unictype/categ_none.c: New file.
10514 * lib/unictype/categ_of.c: New file.
10515 * lib/unictype/categ_or.c: New file.
10516 * lib/unictype/categ_test.c: New file.
10517 * lib/unictype/combining.c: New file.
10518 * lib/unictype/ctype_alnum.c: New file.
10519 * lib/unictype/ctype_alpha.c: New file.
10520 * lib/unictype/ctype_blank.c: New file.
10521 * lib/unictype/ctype_cntrl.c: New file.
10522 * lib/unictype/ctype_digit.c: New file.
10523 * lib/unictype/ctype_graph.c: New file.
10524 * lib/unictype/ctype_lower.c: New file.
10525 * lib/unictype/ctype_print.c: New file.
10526 * lib/unictype/ctype_punct.c: New file.
10527 * lib/unictype/ctype_space.c: New file.
10528 * lib/unictype/ctype_upper.c: New file.
10529 * lib/unictype/ctype_xdigit.c: New file.
10530 * lib/unictype/decdigit.c: New file.
10531 * lib/unictype/digit.c: New file.
10532 * lib/unictype/identsyntaxmap.h: New file.
10533 * lib/unictype/mirror.c: New file.
10534 * lib/unictype/numeric.c: New file.
10535 * lib/unictype/pr_alphabetic.c: New file.
10536 * lib/unictype/pr_ascii_hex_digit.c: New file.
10537 * lib/unictype/pr_bidi_arabic_digit.c: New file.
10538 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
10539 * lib/unictype/pr_bidi_block_separator.c: New file.
10540 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
10541 * lib/unictype/pr_bidi_common_separator.c: New file.
10542 * lib/unictype/pr_bidi_control.c: New file.
10543 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
10544 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
10545 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
10546 * lib/unictype/pr_bidi_european_digit.c: New file.
10547 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
10548 * lib/unictype/pr_bidi_left_to_right.c: New file.
10549 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
10550 * lib/unictype/pr_bidi_other_neutral.c: New file.
10551 * lib/unictype/pr_bidi_pdf.c: New file.
10552 * lib/unictype/pr_bidi_segment_separator.c: New file.
10553 * lib/unictype/pr_bidi_whitespace.c: New file.
10554 * lib/unictype/pr_byname.c: New file.
10555 * lib/unictype/pr_byname.gperf: New file.
10556 * lib/unictype/pr_combining.c: New file.
10557 * lib/unictype/pr_composite.c: New file.
10558 * lib/unictype/pr_currency_symbol.c: New file.
10559 * lib/unictype/pr_dash.c: New file.
10560 * lib/unictype/pr_decimal_digit.c: New file.
10561 * lib/unictype/pr_default_ignorable_code_point.c: New file.
10562 * lib/unictype/pr_deprecated.c: New file.
10563 * lib/unictype/pr_diacritic.c: New file.
10564 * lib/unictype/pr_extender.c: New file.
10565 * lib/unictype/pr_format_control.c: New file.
10566 * lib/unictype/pr_grapheme_base.c: New file.
10567 * lib/unictype/pr_grapheme_extend.c: New file.
10568 * lib/unictype/pr_grapheme_link.c: New file.
10569 * lib/unictype/pr_hex_digit.c: New file.
10570 * lib/unictype/pr_hyphen.c: New file.
10571 * lib/unictype/pr_id_continue.c: New file.
10572 * lib/unictype/pr_id_start.c: New file.
10573 * lib/unictype/pr_ideographic.c: New file.
10574 * lib/unictype/pr_ids_binary_operator.c: New file.
10575 * lib/unictype/pr_ids_trinary_operator.c: New file.
10576 * lib/unictype/pr_ignorable_control.c: New file.
10577 * lib/unictype/pr_iso_control.c: New file.
10578 * lib/unictype/pr_join_control.c: New file.
10579 * lib/unictype/pr_left_of_pair.c: New file.
10580 * lib/unictype/pr_line_separator.c: New file.
10581 * lib/unictype/pr_logical_order_exception.c: New file.
10582 * lib/unictype/pr_lowercase.c: New file.
10583 * lib/unictype/pr_math.c: New file.
10584 * lib/unictype/pr_non_break.c: New file.
10585 * lib/unictype/pr_not_a_character.c: New file.
10586 * lib/unictype/pr_numeric.c: New file.
10587 * lib/unictype/pr_other_alphabetic.c: New file.
10588 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
10589 * lib/unictype/pr_other_grapheme_extend.c: New file.
10590 * lib/unictype/pr_other_id_continue.c: New file.
10591 * lib/unictype/pr_other_id_start.c: New file.
10592 * lib/unictype/pr_other_lowercase.c: New file.
10593 * lib/unictype/pr_other_math.c: New file.
10594 * lib/unictype/pr_other_uppercase.c: New file.
10595 * lib/unictype/pr_paired_punctuation.c: New file.
10596 * lib/unictype/pr_paragraph_separator.c: New file.
10597 * lib/unictype/pr_pattern_syntax.c: New file.
10598 * lib/unictype/pr_pattern_white_space.c: New file.
10599 * lib/unictype/pr_private_use.c: New file.
10600 * lib/unictype/pr_punctuation.c: New file.
10601 * lib/unictype/pr_quotation_mark.c: New file.
10602 * lib/unictype/pr_radical.c: New file.
10603 * lib/unictype/pr_sentence_terminal.c: New file.
10604 * lib/unictype/pr_soft_dotted.c: New file.
10605 * lib/unictype/pr_space.c: New file.
10606 * lib/unictype/pr_terminal_punctuation.c: New file.
10607 * lib/unictype/pr_test.c: New file.
10608 * lib/unictype/pr_titlecase.c: New file.
10609 * lib/unictype/pr_unassigned_code_value.c: New file.
10610 * lib/unictype/pr_unified_ideograph.c: New file.
10611 * lib/unictype/pr_uppercase.c: New file.
10612 * lib/unictype/pr_variation_selector.c: New file.
10613 * lib/unictype/pr_white_space.c: New file.
10614 * lib/unictype/pr_xid_continue.c: New file.
10615 * lib/unictype/pr_xid_start.c: New file.
10616 * lib/unictype/pr_zero_width.c: New file.
10617 * lib/unictype/scripts.c: New file.
10618 * lib/unictype/sy_c_ident.c: New file.
10619 * lib/unictype/sy_c_whitespace.c: New file.
10620 * lib/unictype/sy_java_ident.c: New file.
10621 * lib/unictype/sy_java_whitespace.c: New file.
10623 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
10625 * lib/unictype/blocks.h: Likewise.
10626 * lib/unictype/categ_C.h: Likewise.
10627 * lib/unictype/categ_Cc.h: Likewise.
10628 * lib/unictype/categ_Cf.h: Likewise.
10629 * lib/unictype/categ_Cn.h: Likewise.
10630 * lib/unictype/categ_Co.h: Likewise.
10631 * lib/unictype/categ_Cs.h: Likewise.
10632 * lib/unictype/categ_L.h: Likewise.
10633 * lib/unictype/categ_Ll.h: Likewise.
10634 * lib/unictype/categ_Lm.h: Likewise.
10635 * lib/unictype/categ_Lo.h: Likewise.
10636 * lib/unictype/categ_Lt.h: Likewise.
10637 * lib/unictype/categ_Lu.h: Likewise.
10638 * lib/unictype/categ_M.h: Likewise.
10639 * lib/unictype/categ_Mc.h: Likewise.
10640 * lib/unictype/categ_Me.h: Likewise.
10641 * lib/unictype/categ_Mn.h: Likewise.
10642 * lib/unictype/categ_N.h: Likewise.
10643 * lib/unictype/categ_Nd.h: Likewise.
10644 * lib/unictype/categ_Nl.h: Likewise.
10645 * lib/unictype/categ_No.h: Likewise.
10646 * lib/unictype/categ_P.h: Likewise.
10647 * lib/unictype/categ_Pc.h: Likewise.
10648 * lib/unictype/categ_Pd.h: Likewise.
10649 * lib/unictype/categ_Pe.h: Likewise.
10650 * lib/unictype/categ_Pf.h: Likewise.
10651 * lib/unictype/categ_Pi.h: Likewise.
10652 * lib/unictype/categ_Po.h: Likewise.
10653 * lib/unictype/categ_Ps.h: Likewise.
10654 * lib/unictype/categ_S.h: Likewise.
10655 * lib/unictype/categ_Sc.h: Likewise.
10656 * lib/unictype/categ_Sk.h: Likewise.
10657 * lib/unictype/categ_Sm.h: Likewise.
10658 * lib/unictype/categ_So.h: Likewise.
10659 * lib/unictype/categ_Z.h: Likewise.
10660 * lib/unictype/categ_Zl.h: Likewise.
10661 * lib/unictype/categ_Zp.h: Likewise.
10662 * lib/unictype/categ_Zs.h: Likewise.
10663 * lib/unictype/categ_of.h: Likewise.
10664 * lib/unictype/combining.h: Likewise.
10665 * lib/unictype/ctype_alnum.h: Likewise.
10666 * lib/unictype/ctype_alpha.h: Likewise.
10667 * lib/unictype/ctype_blank.h: Likewise.
10668 * lib/unictype/ctype_cntrl.h: Likewise.
10669 * lib/unictype/ctype_digit.h: Likewise.
10670 * lib/unictype/ctype_graph.h: Likewise.
10671 * lib/unictype/ctype_lower.h: Likewise.
10672 * lib/unictype/ctype_print.h: Likewise.
10673 * lib/unictype/ctype_punct.h: Likewise.
10674 * lib/unictype/ctype_space.h: Likewise.
10675 * lib/unictype/ctype_upper.h: Likewise.
10676 * lib/unictype/ctype_xdigit.h: Likewise.
10677 * lib/unictype/decdigit.h: Likewise.
10678 * lib/unictype/digit.h: Likewise.
10679 * lib/unictype/mirror.h: Likewise.
10680 * lib/unictype/numeric.h: Likewise.
10681 * lib/unictype/pr_alphabetic.h: Likewise.
10682 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10683 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10684 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10685 * lib/unictype/pr_bidi_block_separator.h: Likewise.
10686 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10687 * lib/unictype/pr_bidi_common_separator.h: Likewise.
10688 * lib/unictype/pr_bidi_control.h: Likewise.
10689 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10690 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10691 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10692 * lib/unictype/pr_bidi_european_digit.h: Likewise.
10693 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10694 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10695 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10696 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10697 * lib/unictype/pr_bidi_pdf.h: Likewise.
10698 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10699 * lib/unictype/pr_bidi_whitespace.h: Likewise.
10700 * lib/unictype/pr_combining.h: Likewise.
10701 * lib/unictype/pr_composite.h: Likewise.
10702 * lib/unictype/pr_currency_symbol.h: Likewise.
10703 * lib/unictype/pr_dash.h: Likewise.
10704 * lib/unictype/pr_decimal_digit.h: Likewise.
10705 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10706 * lib/unictype/pr_deprecated.h: Likewise.
10707 * lib/unictype/pr_diacritic.h: Likewise.
10708 * lib/unictype/pr_extender.h: Likewise.
10709 * lib/unictype/pr_format_control.h: Likewise.
10710 * lib/unictype/pr_grapheme_base.h: Likewise.
10711 * lib/unictype/pr_grapheme_extend.h: Likewise.
10712 * lib/unictype/pr_grapheme_link.h: Likewise.
10713 * lib/unictype/pr_hex_digit.h: Likewise.
10714 * lib/unictype/pr_hyphen.h: Likewise.
10715 * lib/unictype/pr_id_continue.h: Likewise.
10716 * lib/unictype/pr_id_start.h: Likewise.
10717 * lib/unictype/pr_ideographic.h: Likewise.
10718 * lib/unictype/pr_ids_binary_operator.h: Likewise.
10719 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10720 * lib/unictype/pr_ignorable_control.h: Likewise.
10721 * lib/unictype/pr_iso_control.h: Likewise.
10722 * lib/unictype/pr_join_control.h: Likewise.
10723 * lib/unictype/pr_left_of_pair.h: Likewise.
10724 * lib/unictype/pr_line_separator.h: Likewise.
10725 * lib/unictype/pr_logical_order_exception.h: Likewise.
10726 * lib/unictype/pr_lowercase.h: Likewise.
10727 * lib/unictype/pr_math.h: Likewise.
10728 * lib/unictype/pr_non_break.h: Likewise.
10729 * lib/unictype/pr_not_a_character.h: Likewise.
10730 * lib/unictype/pr_numeric.h: Likewise.
10731 * lib/unictype/pr_other_alphabetic.h: Likewise.
10732 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10733 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10734 * lib/unictype/pr_other_id_continue.h: Likewise.
10735 * lib/unictype/pr_other_id_start.h: Likewise.
10736 * lib/unictype/pr_other_lowercase.h: Likewise.
10737 * lib/unictype/pr_other_math.h: Likewise.
10738 * lib/unictype/pr_other_uppercase.h: Likewise.
10739 * lib/unictype/pr_paired_punctuation.h: Likewise.
10740 * lib/unictype/pr_paragraph_separator.h: Likewise.
10741 * lib/unictype/pr_pattern_syntax.h: Likewise.
10742 * lib/unictype/pr_pattern_white_space.h: Likewise.
10743 * lib/unictype/pr_private_use.h: Likewise.
10744 * lib/unictype/pr_punctuation.h: Likewise.
10745 * lib/unictype/pr_quotation_mark.h: Likewise.
10746 * lib/unictype/pr_radical.h: Likewise.
10747 * lib/unictype/pr_sentence_terminal.h: Likewise.
10748 * lib/unictype/pr_soft_dotted.h: Likewise.
10749 * lib/unictype/pr_space.h: Likewise.
10750 * lib/unictype/pr_terminal_punctuation.h: Likewise.
10751 * lib/unictype/pr_titlecase.h: Likewise.
10752 * lib/unictype/pr_unassigned_code_value.h: Likewise.
10753 * lib/unictype/pr_unified_ideograph.h: Likewise.
10754 * lib/unictype/pr_uppercase.h: Likewise.
10755 * lib/unictype/pr_variation_selector.h: Likewise.
10756 * lib/unictype/pr_white_space.h: Likewise.
10757 * lib/unictype/pr_xid_continue.h: Likewise.
10758 * lib/unictype/pr_xid_start.h: Likewise.
10759 * lib/unictype/pr_zero_width.h: Likewise.
10760 * lib/unictype/scripts.h: Likewise.
10761 * lib/unictype/scripts_byname.gperf: Likewise.
10762 * lib/unictype/sy_c_ident.h: Likewise.
10763 * lib/unictype/sy_c_whitespace.h: Likewise.
10764 * lib/unictype/sy_java_ident.h: Likewise.
10765 * lib/unictype/sy_java_whitespace.h: Likewise.
10767 * lib/unictype/Makefile: New file.
10768 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
10770 * lib/unictype/3level.h: New file, copied from glibc.
10771 * lib/unictype/3levelbit.h: New file.
10773 2007-11-11 Bruno Haible <bruno@clisp.org>
10775 * modules/gperf: New file.
10776 * modules/iconv_open (Depends-on): Add it.
10777 (Makefile.am): Remove the GPERF definition.
10779 2007-11-11 Bruno Haible <bruno@clisp.org>
10781 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
10782 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
10784 2007-11-11 Bruno Haible <bruno@clisp.org>
10786 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
10787 (usage): Remove function.
10789 2007-11-11 Bruno Haible <bruno@clisp.org>
10791 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
10792 gl_FUNC_CEILF_LIBS.
10793 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
10795 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
10796 gl_FUNC_CEILL_LIBS.
10797 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
10798 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
10799 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
10801 2007-11-11 Bruno Haible <bruno@clisp.org>
10803 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
10804 roundf were declared but do not exist on functions.
10805 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
10806 roundl were declared but do not exist on functions.
10807 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
10808 HAVE_FLOORL_AND_CEILL, respectively.
10809 Needed for Sun C on Solaris 10.
10811 2007-11-11 Bruno Haible <bruno@clisp.org>
10813 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
10814 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
10815 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
10816 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
10817 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
10818 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
10819 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
10821 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
10822 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
10823 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
10824 of HAVE_DECL_ROUND*.
10825 * modules/math (Makefile.am): Update.
10827 2007-11-10 Bruno Haible <bruno@clisp.org>
10829 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
10830 ptrdiff_t as m4/intl.m4.
10832 2007-11-10 Jim Meyering <meyering@redhat.com>
10834 Avoid link failure for the argmatch test.
10835 * tests/test-argmatch.c (usage): Define function to avoid a link
10836 failure: argmatch_die requires a usage function.
10838 2007-11-09 Bruno Haible <bruno@clisp.org>
10840 * doc/functions/snprintf.texi: Mention BeOS deficiency.
10841 * doc/functions/vsnprintf.texi: Likewise.
10842 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
10843 with a size argument < 2.
10845 2007-11-09 Bruno Haible <bruno@clisp.org>
10847 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
10848 buffer. Fixes an inefficiency introduced on 2007-11-03.
10850 2007-11-09 Bruno Haible <bruno@clisp.org>
10852 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
10853 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
10855 2007-11-08 Jim Meyering <meyering@redhat.com>
10857 Change cache variable name prefix "jm_" to "gl_" everywhere.
10858 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
10859 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
10860 * m4/uptime.m4: s/gl_/jm_/
10862 2007-11-07 Bruno Haible <bruno@clisp.org>
10864 Update to GNU gettext 0.17.
10865 * m4/intl.m4: Update to GNU gettext 0.17.
10866 * m4/po.m4: Likewise.
10867 * modules/gettext (Files): Remove m4/ulonglong.m4.
10868 (configure.ac): Require gettext infrastructure from version 0.17.
10870 2007-11-06 Bruno Haible <bruno@clisp.org>
10872 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
10873 symbolic values are not defined in a public header.
10874 * lib/freadable.c (freadable) [QNX]: Likewise.
10875 * lib/freadahead.c (freadahead) [QNX]: Likewise.
10876 * lib/freading.c (freading) [QNX]: Likewise.
10877 * lib/fseterr.c (fseterr) [QNX]: Likewise.
10878 * lib/fwritable.c (fwritable) [QNX]: Likewise.
10879 * lib/fwriting.c (fwriting) [QNX]: Likewise.
10880 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
10881 Reported by Alain Magloire.
10883 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
10885 2007-11-05 Bruno Haible <bruno@clisp.org>
10887 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
10888 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
10889 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
10890 Reported by Eric Blake.
10892 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10893 Bruno Haible <bruno@clisp.org>
10895 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
10896 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
10897 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
10898 (malloc): Undefine also before including <stdlib.h>.
10899 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
10900 Needed on OSF/1 4.0.
10902 2007-11-05 Jim Meyering <meyering@redhat.com>
10904 git-version-gen: sync from coreutils.
10905 * build-aux/git-version-gen: Add comments.
10906 Change the first '-' to '.' in the snapshot version string,
10907 e.g., 6.9-377-08144 -> 6.9.377-08144
10908 Remove first parameter.
10909 Don't declare a version "-dirty" merely because a time
10912 2007-11-04 Bruno Haible <bruno@clisp.org>
10914 * lib/lock.h: Protect all macro definitions containing an 'if'
10915 statement through a "do { ... } while (0)".
10916 * lib/tls.h: Likewise.
10918 2007-11-04 Bruno Haible <bruno@clisp.org>
10920 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
10922 2007-11-04 Bruno Haible <bruno@clisp.org>
10924 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
10925 * modules/fprintf-posix (Depends-on): Add nocrash.
10926 * modules/snprintf-posix (Depends-on): Likewise.
10927 * modules/sprintf-posix (Depends-on): Likewise.
10928 * modules/vasnprintf-posix (Depends-on): Likewise.
10929 * modules/vasprintf-posix (Depends-on): Likewise.
10930 * modules/vfprintf-posix (Depends-on): Likewise.
10931 * modules/vsnprintf-posix (Depends-on): Likewise.
10932 * modules/vsprintf-posix (Depends-on): Likewise.
10933 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10934 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10935 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10936 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10937 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10938 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10939 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10941 2007-11-04 Bruno Haible <bruno@clisp.org>
10943 * modules/nocrash: New file.
10944 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
10945 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
10947 2007-11-04 Bruno Haible <bruno@clisp.org>
10949 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
10950 precision handling.
10951 * tests/test-vasprintf-posix.c (test_function): Likewise.
10952 * tests/test-snprintf-posix.h (test_function): Likewise.
10953 * tests/test-sprintf-posix.h (test_function): Likewise.
10955 Fix *printf behaviour for large precisions on mingw and BeOS.
10956 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
10957 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
10958 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
10959 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
10960 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10961 gl_PRINTF_PRECISION and test its result. Invoke
10962 gl_PREREQ_VASNPRINTF_PRECISION.
10963 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10964 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10965 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10966 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10967 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10968 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10969 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10970 * doc/functions/fprintf.texi: Update.
10971 * doc/functions/printf.texi: Update.
10972 * doc/functions/snprintf.texi: Update.
10973 * doc/functions/sprintf.texi: Update.
10974 * doc/functions/vfprintf.texi: Update.
10975 * doc/functions/vprintf.texi: Update.
10976 * doc/functions/vsnprintf.texi: Update.
10977 * doc/functions/vsprintf.texi: Update.
10979 2007-11-04 Bruno Haible <bruno@clisp.org>
10981 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
10983 2007-11-04 Bruno Haible <bruno@clisp.org>
10985 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
10986 Reported by Sylvain Beucler <beuc@gnu.org>.
10988 2007-11-03 Bruno Haible <bruno@clisp.org>
10990 * tests/test-fprintf-posix2.sh: New file.
10991 * tests/test-fprintf-posix2.c: New file.
10992 * modules/fprintf-posix-tests (Files): Add them.
10993 (TESTS): Add test-fprintf-posix2.sh.
10994 (configure.ac): Check for getrlimit and setrlimit.
10995 (check_PROGRAMS): Add test-fprintf-posix2.
10997 * tests/test-printf-posix2.sh: New file.
10998 * tests/test-printf-posix2.c: New file.
10999 * modules/printf-posix-tests (Files): Add them.
11000 (TESTS): Add test-printf-posix2.sh.
11001 (configure.ac): Check for getrlimit and setrlimit.
11002 (check_PROGRAMS): Add test-printf-posix2.
11004 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
11005 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
11006 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
11007 (decode_double): New function, copied from decode_long_double.
11008 (scale10_round_decimal_decoded): New function, extracted from
11009 scale10_round_decimal_long_double.
11010 (scale10_round_decimal_long_double): Use it.
11011 (scale10_round_decimal_double): New function.
11012 (floorlog10): New function.
11013 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
11014 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
11015 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
11016 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
11017 gl_PRINTF_ENOMEM and test its result. Invoke
11018 gl_PREREQ_VASNPRINTF_ENOMEM.
11019 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
11020 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11021 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11022 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11023 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
11024 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11025 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
11026 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
11027 * modules/snprintf-posix (Depends-on): Likewise.
11028 * modules/sprintf-posix (Depends-on): Likewise.
11029 * modules/vasnprintf-posix (Depends-on): Likewise.
11030 * modules/vasprintf-posix (Depends-on): Likewise.
11031 * modules/vfprintf-posix (Depends-on): Likewise.
11032 * modules/vsnprintf-posix (Depends-on): Likewise.
11033 * modules/vsprintf-posix (Depends-on): Likewise.
11034 * doc/functions/fprintf.texi: Update.
11035 * doc/functions/printf.texi: Update.
11036 * doc/functions/snprintf.texi: Update.
11037 * doc/functions/sprintf.texi: Update.
11038 * doc/functions/vfprintf.texi: Update.
11039 * doc/functions/vprintf.texi: Update.
11040 * doc/functions/vsnprintf.texi: Update.
11041 * doc/functions/vsprintf.texi: Update.
11043 2007-11-03 Bruno Haible <bruno@clisp.org>
11045 * modules/frexp-nolibm-tests: New file.
11047 * modules/frexp-nolibm: New file.
11048 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
11050 2007-11-03 Bruno Haible <bruno@clisp.org>
11052 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
11053 value is C99 compliant.
11054 Needed for OSF/1 5.1.
11056 2007-11-03 Bruno Haible <bruno@clisp.org>
11058 Fix out-of-memory handling of vasnprintf.
11059 * lib/printf-parse.c: Include <errno.h>.
11060 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
11061 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
11064 2007-11-02 Eric Blake <ebb9@byu.net>
11066 Fix tests on cygwin.
11067 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
11069 2007-11-01 Bruno Haible <bruno@clisp.org>
11071 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
11073 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
11074 needed for POSIX compatibility.
11076 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
11078 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
11079 for compatibility with GNU.
11081 2007-11-01 Bruno Haible <bruno@clisp.org>
11083 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
11084 (putenv): Renamed from rpl_putenv. Change argument type from
11085 'const char *' to 'char *'.
11086 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
11087 of defining putenv in config.h, just set REPLACE_PUTENV.
11088 * modules/putenv (Depends-on): Add stdlib.
11089 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11090 (Include): Use <stdlib.h>.
11091 * lib/stdlib.in.h (putenv): New declaration.
11092 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
11094 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
11096 Needed for MacOS X 10.5.0.
11097 Reported by Peter O'Gorman <peter@pogma.com>.
11099 2007-11-01 Jim Meyering <meyering@redhat.com>
11101 Treat an empty date string exactly like "0".
11102 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
11103 if the remaining date string (to be parsed) is empty, use "0".
11104 Reported by Mischa Molhoek and discussed in this thread:
11105 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
11107 2007-10-31 Bruno Haible <bruno@clisp.org>
11109 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
11110 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
11111 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
11112 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
11113 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
11114 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
11116 2007-10-31 Bruno Haible <bruno@clisp.org>
11118 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
11119 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
11120 (AC_TYPE_LONG_LONG_INT): Use it.
11121 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
11123 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
11125 * modules/stdint (Files): Remove m4/ulonglong.m4.
11126 * modules/strtoull (Files): Use m4/longlong.m4 instead of
11128 * modules/strtoumax (Files): Likewise.
11130 2007-10-30 Bruno Haible <bruno@clisp.org>
11132 * modules/xvasprintf-posix: New file.
11133 Suggested by Eric Blake.
11135 2007-10-30 Bruno Haible <bruno@clisp.org>
11137 * modules/xprintf-posix-tests: New file.
11138 * tests/test-xprintf-posix.sh: New file.
11139 * tests/test-xprintf-posix.c: New file.
11140 * tests/test-xfprintf-posix.c: New file.
11142 * modules/xprintf-posix: New file.
11144 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11146 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
11147 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
11148 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
11150 2007-10-29 Bruno Haible <bruno@clisp.org>
11152 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
11153 contain the special marker '_cv_'.
11154 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
11155 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
11156 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
11157 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
11158 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
11159 Reported by Ralf Wildenhues.
11161 2007-10-29 Bruno Haible <bruno@clisp.org>
11163 * gnulib-tool (func_import): When --lgpl is not specified, set
11164 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
11166 Reported by Simon Josefsson.
11168 2007-10-28 Bruno Haible <bruno@clisp.org>
11170 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
11171 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
11172 HAVE_DECL_ISFINITE.
11173 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
11174 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
11175 HAVE_DECL_ISFINITE.
11177 2007-10-28 Bruno Haible <bruno@clisp.org>
11179 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
11180 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
11182 2007-10-28 Bruno Haible <bruno@clisp.org>
11184 Fix link errors with Sun C 5.0 on Solaris 10.
11185 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
11186 function is declared but not present in the compiler's libm.
11187 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
11188 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11189 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
11190 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
11191 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
11192 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
11193 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
11194 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
11195 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
11196 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
11197 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
11200 2007-10-28 Bruno Haible <bruno@clisp.org>
11202 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
11203 gl_FUNC_FLOORL. Cache the result.
11204 (gl_FUNC_FLOORL): Use it.
11205 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
11206 gl_FUNC_CEILL. Cache the result.
11207 (gl_FUNC_CEILL): Use it.
11209 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
11210 gl_FUNC_FLOOR. Cache the result.
11211 (gl_FUNC_FLOOR): Use it.
11212 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
11213 gl_FUNC_CEIL. Cache the result.
11214 (gl_FUNC_CEIL): Use it.
11216 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
11217 gl_FUNC_FLOORF. Cache the result.
11218 (gl_FUNC_FLOORF): Use it.
11219 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
11220 gl_FUNC_CEILF. Cache the result.
11221 (gl_FUNC_CEILF): Use it.
11223 2007-10-28 Bruno Haible <bruno@clisp.org>
11225 * gnulib-tool: Allow specifying the LGPL version number through
11226 --lgpl=2 or --lgpl=3.
11227 (func_usage): Document --lgpl with argument.
11228 Handle --lgpl=... arguments.
11229 (func_import): Recognize also gl_LGPL calls with an argument. When
11230 --lgpl=2 is used and the module's license is just LGPL, report an
11231 error. Set sed_transform_lib_file according to the lgpl variable. In
11232 the generated files, use --lgpl or gl_LGPL invocations with argument,
11234 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
11236 * doc/gnulib-tool.texi (Modified imports): Update explanation of
11239 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11240 Bruno Haible <bruno@clisp.org>
11242 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
11243 (u16_uctomb_aux): Likewise.
11244 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
11246 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
11248 2007-10-28 Bruno Haible <bruno@clisp.org>
11250 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
11251 Invoke AM_GETTEXT_OPTION if it exists.
11252 * modules/vasprintf: Likewise.
11253 * modules/verror: Likewise.
11254 * modules/xprintf: Likewise.
11255 * modules/xvasprintf: Likewise.
11257 2007-10-27 Ben Pfaff <blp@gnu.org>
11259 * lib/math.in.h: Define isfinite macro and prototypes for
11260 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
11262 * m4/math_h.m4: New substitutions for isfinite module.
11263 * lib/isfinite.c: New file.
11264 * m4/isfinite.m4: New file.
11265 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
11266 * modules/isfinite: New file.
11267 * modules/isfinite-tests: New file.
11268 * tests/tests-isfinite.c: New file.
11269 * doc/functions/isfinite.texi: Mention isfinite module.
11270 * MODULES.html.sh: Mention new module.
11272 2007-10-27 Ben Pfaff <blp@gnu.org>
11274 Ralf Wildenhues reported that Tru64 4.0D declares the round
11275 functions but does not have definitions.
11276 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
11277 cannot be found in any library, set the output variable to
11278 "missing" instead of "".
11279 * m4/round.m4: Also use our substitute if we cannot find round in
11280 any library, even if it is declared.
11281 * m4/roundf.m4: Likewise for roundf.
11282 * m4/roundl.m4: Likewise for roundl.
11283 * lib/math.in.h: Undefine roundf, round, roundl before defining
11284 their replacements, to allow for hypothetical systems where these
11285 may be defined as macros but not available in libraries.
11287 2007-10-27 Bruno Haible <bruno@clisp.org>
11289 * doc/gnulib.texi: Invoke @firstparagraphindent.
11290 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
11292 (Source changes): New section.
11294 2007-10-26 Bruno Haible <bruno@clisp.org>
11296 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
11297 borrowed from autoconf.
11299 2007-10-26 Bruno Haible <bruno@clisp.org>
11301 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
11302 strerror returned the empty string. Needed on HP-UX 11.00.
11304 2007-10-24 Micah Cowan <micah@cowan.name>
11306 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
11307 * build-aux/bootstrap: Remove support for now-unnecessary option,
11308 --cvs-user, and envvars CVS_USER, CVS_RSH.
11310 2007-10-24 Jim Meyering <meyering@redhat.com>
11312 Avoid diagnostics from sha1sum when there is no cached checksum.
11313 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
11314 if the po.s1 file hasn't been created yet.
11316 * build-aux/bootstrap: Sync from coreutils:
11317 2007-10-24 Jim Meyering <meyering@redhat.com>
11318 Get gnulib from the git repository, not from an obsolete cvs one.
11319 * build-aux/bootstrap: Suggestion from Micah Cowan.
11320 2007-10-04 Jim Meyering <jim@meyering.net>
11321 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
11322 (update_po_files): Work also when there are no .po files in po/.
11324 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
11326 * README: Append ".git" to git and cg examples.
11327 Problem reported by Benoit Sigoure.
11329 2007-10-23 Micah Cowan <micah@cowan.name>
11331 * users.txt: Add wget.
11333 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11335 Fix linking of some unistdio tests on FreeBSD.
11336 * modules/unistdio/u16-vsnprintf-tests
11337 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
11338 * modules/unistdio/u16-vsprintf-tests
11339 (test_u16_vsnprintf1_LDADD): Likewise.
11340 * modules/unistdio/u32-vsnprintf-tests
11341 (test_u32_vsnprintf1_LDADD): Likewise.
11342 * modules/unistdio/u32-vsprintf-tests
11343 (test_u32_vsprintf1_LDADD): Likewise.
11344 * modules/unistdio/u8-vsnprintf-tests
11345 (test_u8_vsnprintf1_LDADD): Likewise.
11346 * modules/unistdio/u8-vsprintf-tests
11347 (test_u8_vsprintf1_LDADD): Likewise.
11348 * modules/unistdio/ulc-vsnprintf-tests
11349 (test_ulc_vsnprintf1_LDADD): Likewise.
11350 * modules/unistdio/ulc-vsprintf-tests
11351 (test_ulc_vsprintf1_LDADD): Likewise.
11353 Fix linking of some uniconv tests on FreeBSD.
11354 * modules/uniconv/u16-conv-from-enc-tests
11355 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
11356 * modules/uniconv/u16-conv-to-enc-tests
11357 (test_u16_conv_to_enc_LDADD): Likewise.
11358 * modules/uniconv/u16-strconv-from-enc-tests
11359 (test_u16_strconv_from_enc_LDADD): Likewise.
11360 * modules/uniconv/u16-strconv-to-enc-tests
11361 (test_u16_strconv_to_enc_LDADD): Likewise.
11362 * modules/uniconv/u32-conv-from-enc-tests
11363 (test_u32_conv_from_enc_LDADD): Likewise.
11364 * modules/uniconv/u32-conv-to-enc-tests
11365 (test_u32_conv_to_enc_LDADD): Likewise.
11366 * modules/uniconv/u32-strconv-from-enc-tests
11367 (test_u32_strconv_from_enc_LDADD): Likewise.
11368 * modules/uniconv/u32-strconv-to-enc-tests
11369 (test_u32_strconv_to_enc_LDADD): Likewise.
11370 * modules/uniconv/u8-conv-from-enc-tests
11371 (test_u8_conv_from_enc_LDADD): Likewise.
11372 * modules/uniconv/u8-conv-to-enc-tests
11373 (test_u8_conv_to_enc_LDADD): Likewise.
11374 * modules/uniconv/u8-strconv-from-enc-tests
11375 (test_u8_strconv_from_enc_LDADD): Likewise.
11376 * modules/uniconv/u8-strconv-to-enc-tests
11377 (test_u8_strconv_to_enc_LDADD): Likewise.
11379 2007-10-22 Bruno Haible <bruno@clisp.org>
11381 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
11384 2007-10-22 Eric Blake <ebb9@byu.net>
11386 Tweak x*printf documentation.
11387 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
11388 variable name and comments.
11389 Suggested by Bruno Haible.
11391 2007-10-22 Bruno Haible <bruno@clisp.org>
11393 * lib/acl.c (copy_acl): Fix file name in comment.
11395 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
11397 Fix Tru64 problem with stdbool.h.
11398 * lib/stdbool.in.h (false, true):
11399 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
11400 Don't declare as an enum in this situation; it runs afoul of Tru64.
11401 Problem reported by Steven M. Schweda in
11402 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
11404 2007-10-22 Eric Blake <ebb9@byu.net>
11406 Also wrap vf?printf.
11407 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
11408 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
11409 (xvprintf, xvfprintf): New functions.
11411 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11413 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
11414 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
11416 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
11417 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
11419 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
11421 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
11424 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11427 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
11428 Undef `sys' after including sys/table.h, for Tru64 4.0D.
11430 * tests/test-i-ring.c: Work for C89.
11432 2007-10-22 Bruno Haible <bruno@clisp.org>
11434 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
11435 -1u, in preprocessor expression, so that we don't test for the bug
11436 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
11437 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
11439 2007-10-22 Eric Blake <ebb9@byu.net>
11441 * tests/test-yesno.sh: Silence stderr during test.
11443 2007-10-22 Simon Josefsson <simon@josefsson.org>
11445 * modules/crypto/gc-camellia: New file.
11447 * m4/gc-camellia.m4: New file.
11449 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
11451 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
11453 2007-10-22 Simon Josefsson <simon@josefsson.org>
11455 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
11456 --help to stdout. Reported by sms@antinode.org (Steven
11459 2007-10-22 Simon Josefsson <simon@josefsson.org>
11461 * users.txt: Fix link to libksba.
11463 2007-10-21 Ben Pfaff <blp@gnu.org>
11465 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
11466 round.c roundf implementation that depends on floorf and ceilf to
11467 be tested unconditionally.
11469 2007-10-21 Ben Pfaff <blp@gnu.org>
11471 * m4/check-libm-func.m4: Removed.
11472 * m4/check-math-lib.m4: New file.
11473 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
11474 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
11475 definition and lack of AC_LIBOBJ([roundf]).
11476 * m4/roundl.m4: Ditto, and similarly for roundl.
11477 * modules/round: Reference new m4 file.
11478 * modules/roundf: Ditto.
11479 * modules/roundl: Ditto.
11480 * tests/test-round2.c (main): Use ROUND instead of round.
11481 Bug report from Bruno Haible.
11483 2007-10-21 Bruno Haible <bruno@clisp.org>
11485 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
11488 2007-10-21 Bruno Haible <bruno@clisp.org>
11490 * tests/test-wcwidth.c (main): Allow negative result for some control
11493 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
11494 Needed on OSF/1 5.1.
11496 2007-10-21 Bruno Haible <bruno@clisp.org>
11498 * tests/test-floorf1.c: Include isnanf.h.
11499 (main): Use isnanf() instead of isnan().
11500 * tests/test-ceilf1.c: Include isnanf.h.
11501 (main): Use isnanf() instead of isnan().
11502 * tests/test-truncf1.c: Include isnanf.h.
11503 (main): Use isnanf() instead of isnan().
11504 * tests/test-roundf1.c: Include isnanf.h.
11505 (main): Use isnanf() instead of isnan().
11507 2007-10-21 Eric Blake <ebb9@byu.net>
11509 * users.txt: Update URL for m4.
11511 2007-10-21 Bruno Haible <bruno@clisp.org>
11513 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
11515 2007-10-21 Bruno Haible <bruno@clisp.org>
11517 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
11518 Git's management files if the CVS files are not present.
11520 2007-10-20 Bruno Haible <bruno@clisp.org>
11522 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
11525 2007-10-20 Ben Pfaff <blp@gnu.org>
11527 * lib/math.in.h: Declare round, roundf, roundl if we are providing
11529 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
11530 * lib/round.c: New file.
11531 * lib/roundf.c: New file.
11532 * lib/roundl.c: New file.
11533 * m4/round.m4: New file.
11534 * m4/roundf.m4: New file.
11535 * m4/roundl.m4: New file.
11536 * m4/check-libm-func-m4: New file.
11537 * modules/math: Replace round, roundf, roundl related @VARS@ in
11539 * modules/round: New file.
11540 * modules/round-tests: New file.
11541 * modules/roundf: New file.
11542 * modules/roundf-tests: New file.
11543 * modules/roundl: New file.
11544 * modules/roundl-tests: New file.
11545 * tests/test-round1.c: New file.
11546 * tests/test-round2.c: New file.
11547 * tests/test-roundf1.c: New file.
11548 * tests/test-roundf2.c: New file.
11549 * tests/test-roundl.c: New file.
11550 * doc/functions/round.texi: Mention round module.
11551 * doc/functions/roundf.texi: Mention roundf module.
11552 * doc/functions/roundl.texi: Mention roundl module.
11553 * MODULES.html.sh: Mention new modules.
11554 Thanks to Bruno Haible for suggestions.
11556 2007-10-20 Jim Meyering <meyering@redhat.com>
11558 * lib/xprintf.c: Include <config.h> unconditionally.
11560 Change xprintf's license to GPL.
11561 * modules/xprintf (License): s/LGPL/GPL/, since this module
11562 depends on modules (exit and exitfail) which are GPL.
11563 Suggestion from Bruno Haible.
11566 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
11567 Use a clearer diagnostic.
11568 Patch from Bruno Haible.
11570 2007-10-20 Bruno Haible <bruno@clisp.org>
11572 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
11573 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
11574 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11576 2007-10-20 Bruno Haible <bruno@clisp.org>
11578 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
11579 precision in the comparison result > x - 1 or similar.
11580 * tests/test-ceilf2.c (correct_result_p): Likewise.
11581 * tests/test-truncf2.c (correct_result_p): Likewise.
11582 * tests/test-trunc2.c (correct_result_p): Likewise.
11583 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11585 2007-10-20 Bruno Haible <bruno@clisp.org>
11587 * modules/ceil: New file.
11588 * m4/ceil.m4: New file.
11589 * doc/functions/ceil.texi: Mention the 'ceil' module.
11591 2007-10-20 Bruno Haible <bruno@clisp.org>
11593 * modules/floor: New file.
11594 * m4/floor.m4: New file.
11595 * doc/functions/floor.texi: Mention the 'floor' module.
11597 2007-10-20 Bruno Haible <bruno@clisp.org>
11599 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
11601 * modules/floorf-tests (Depends-on): Likewise.
11602 * modules/truncf-tests (Depends-on): Likewise.
11603 * modules/trunc-tests (Depends-on): Likewise.
11604 Reported by Ben Pfaff.
11606 2007-10-19 Jim Meyering <meyering@redhat.com>
11608 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
11609 Don't bother testing specific errno values. Just test ferror.
11611 New module: xprintf
11612 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
11614 2007-10-19 Bruno Haible <bruno@clisp.org>
11616 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
11618 * modules/javaexec (Makefile.am): Likewise.
11619 * modules/relocatable-prog (Makefile.am): Likewise.
11620 Suggested by Jim Meyering.
11622 2007-10-18 Bruno Haible <bruno@clisp.org>
11624 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
11625 Reported by Jim Meyering.
11627 2007-10-18 Eric Blake <ebb9@byu.net>
11629 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
11631 2007-10-18 Bruno Haible <bruno@clisp.org>
11633 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
11634 the format string into writable memory. Needed in Fortify conditions.
11636 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
11637 Bruno Haible <bruno@clisp.org>
11639 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
11640 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
11641 * modules/trim (Depends-on): Add mbchar.
11642 (configure.ac): Add gl_FUNC_MBRTOWC.
11643 (Makefile.am): Augment lib_SOURCES.
11645 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
11647 Modify glob.c to use fstatat and dirfd, to simplify it.
11648 Suggested by Eric Blake.
11649 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
11650 Don't include <stdbool.h>; not used.
11651 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
11652 (link_exists_p): Simplify implementation, since we can now assume
11654 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
11656 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11658 * gnulib-tool (func_get_dependencies): Fix sed script to
11661 2007-10-17 Bruno Haible <bruno@clisp.org>
11663 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
11664 allow locale names without encoding suffix.
11665 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
11666 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11668 2007-10-16 Bruno Haible <bruno@clisp.org>
11670 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
11671 * lib/getgroups.c (getgroups): Likewise.
11672 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
11674 2007-10-16 Bruno Haible <bruno@clisp.org>
11676 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
11677 * modules/malloc-posix (License): Likewise.
11678 * modules/realloc-posix (License): Likewise.
11679 * modules/calloc-posix (License): Likewise.
11680 * modules/intprops (License): Change from GPL to LGPL, with
11681 Paul Eggert's approval.
11683 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
11685 Merge glibc changes into lib/glob.c.
11687 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
11688 2007-10-15 04:59:03 UTC. Here are the changes:
11690 2007-10-14 Ulrich Drepper <drepper@redhat.com>
11692 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
11694 * lib/glob.c: Add some branch prediction throughout.
11696 2007-10-07 Ulrich Drepper <drepper@redhat.com>
11699 * lib/glob.c (glob): Recognize patterns starting \/.
11701 2007-02-14 Jakub Jelinek <jakub@redhat.com>
11704 * lib/glob.c (attribute_hidden): Define if not defined.
11705 (glob): Unescape dirname, filename or username when needed and not
11706 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
11707 is NULL. Handle unescaped [ in pattern without closing ].
11708 Don't pass GLOB_CHECK down to recursive glob for directories.
11709 (__glob_pattern_type): New function.
11710 (__glob_pattern_p): Implement using __glob_pattern_type.
11711 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11712 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11713 Remove unreachable code.
11715 2006-09-30 Ulrich Drepper <drepper@redhat.com>
11717 * lib/glob.c (glob_in_dir): Add some comments and asserts to
11718 explain why there are no leaks.
11720 2006-09-25 Jakub Jelinek <jakub@redhat.com>
11723 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
11724 time, rather allocate increasingly bigger arrays of pointers, if
11725 possible with alloca, if too large with malloc.
11727 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
11729 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
11730 Problem reported by H.Merijn Brand in
11731 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
11732 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
11733 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
11735 2007-10-15 Bruno Haible <bruno@clisp.org>
11737 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
11738 with explicit rpl_ prefix.
11739 * lib/fopen.c (fopen): Likewise.
11740 * lib/freopen.c (freopen): Likewise.
11741 * lib/iconv.c (iconv): Likewise.
11742 * lib/iconv_close.c (iconv_close): Likewise.
11744 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11746 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
11748 2007-10-15 Bruno Haible <bruno@clisp.org>
11750 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
11751 <stddef.h> instead of <stdlib.h> since we only need NULL.
11752 Reported by Ben Pfaff <blp@cs.stanford.edu>.
11754 2007-10-15 Bruno Haible <bruno@clisp.org>
11756 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
11757 Replace paragraph talking about LIBOBJS.
11758 Reported by Colin Watson <cjwatson@debian.org>.
11760 2007-10-15 Bruno Haible <bruno@clisp.org>
11762 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
11763 <stdlib.h> before using NULL.
11765 2007-10-15 Simon Josefsson <simon@josefsson.org>
11767 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
11768 Reported by Albert Chin <china@thewrittenword.com>.
11770 2007-10-14 Bruno Haible <bruno@clisp.org>
11772 * modules/iconv_open-utf-tests: New file.
11773 * tests/test-iconv-utf.c: New file.
11775 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
11776 * modules/iconv_open-utf: New file.
11777 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
11778 (iconv, iconv_close): New declarations.
11779 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
11781 (iconv_open): Add special handling of conversion between UTF-8 and
11782 UTF-{16,32}{BE,LE}.
11783 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
11784 * lib/iconv_close.c: New file.
11785 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
11786 gl_FUNC_ICONV_OPEN.
11787 (gl_FUNC_ICONV_OPEN): Use it.
11788 (gl_FUNC_ICONV_OPEN_UTF): New macro.
11789 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
11790 and REPLACE_ICONV_UTF.
11791 * modules/iconv_open (Depends-on): Add c-strcase.
11792 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
11794 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
11796 2007-10-13 Albert Chin <china@thewrittenword.com>
11797 Bruno Haible <bruno@clisp.org>
11799 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
11800 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
11802 2007-10-13 Bruno Haible <bruno@clisp.org>
11804 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
11805 defined, use the ISO C99 inline semantics.
11806 * lib/argp.h (ARGP_EI): Likewise.
11808 2007-10-13 Bruno Haible <bruno@clisp.org>
11810 Handle 'inline' change in gcc 4.3.0.
11811 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
11812 argp_fmtstream_write, argp_fmtstream_set_lmargin,
11813 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
11814 argp_fmtstream_point): Disable 'extern' declaration if the function
11815 definition is going to be provided inline.
11816 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
11817 semantics, not the ISO C99 inline semantics.
11818 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
11819 'extern' declaration if the function definition is going to be provided
11821 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
11822 the GNU C inline semantics, not the ISO C99 inline semantics. With
11823 GCC 4.2, avoid a warning.
11825 2007-10-13 Bruno Haible <bruno@clisp.org>
11827 * lib/freading.h (freading): Enable the use of __freading for
11829 * lib/freading.c (freading): Likewise.
11831 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
11833 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
11834 "warning: C99 inline functions are not supported; using GNU89".
11836 2007-10-12 Bruno Haible <bruno@clisp.org>
11838 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
11840 * tests/test-ceilf2.c: New file.
11841 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
11843 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
11844 * modules/ceilf-tests: Update.
11846 2007-10-12 Bruno Haible <bruno@clisp.org>
11848 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
11850 * tests/test-floorf2.c: New file.
11851 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
11853 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
11854 * modules/floorf-tests: Update.
11856 2007-10-12 Bruno Haible <bruno@clisp.org>
11858 * tests/test-trunc2.c: New file.
11859 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
11861 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
11862 * modules/trunc-tests: Update.
11864 2007-10-12 Bruno Haible <bruno@clisp.org>
11866 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
11868 * tests/test-truncf2.c: New file.
11869 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
11871 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
11872 * modules/truncf-tests: Update.
11874 2007-10-11 Eric Blake <ebb9@byu.net>
11876 Don't claim strerror is broken on Interix.
11877 * doc/functions/strerror.texi (strerror): Known broken systems are
11878 now Solaris 8, and not Interix.
11879 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
11880 Interix on cross-compile.
11881 Reported by Martin Koeppe in
11882 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
11884 2007-10-11 Bruno Haible <bruno@clisp.org>
11886 * modules/i-ring-tests: New file.
11887 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
11890 2007-10-11 Bruno Haible <bruno@clisp.org>
11892 * modules/filenamecat-tests: New file.
11893 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
11894 * lib/filenamecat.c: Remove test code.
11896 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
11898 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
11900 * lib/strerror.c: Include <string.h> always, to test interface,
11901 and to remove the need for the dummy.
11902 Include intprops.h to compute width instead of doing it ourselves
11903 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
11904 (strerror): Define it to return NULL if there's no system strerror.
11905 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
11906 Omit !HAVE_STRERROR code. We don't need to worry about supporting
11907 ancient pre-strerror Unix systems well any more. Saying "unknown
11908 system error" is enough.
11909 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
11910 simpler strerror.c implementation.
11911 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
11912 Simplify the tests to reflect the simpler strerror implementation.
11913 * modules/strerror (Depends-on): Add intprops.
11915 2007-10-09 Eric Blake <ebb9@byu.net>
11917 Silence test-fpending.
11918 * modules/fpending-tests (Files): Add wrapper script.
11919 * tests/test-fpending.sh: New file.
11921 2007-10-09 Bruno Haible <bruno@clisp.org>
11923 * MODULES.html.sh (func_module): Don't create a hyperlink for
11924 function names like 'printf_frexp'.
11925 (Misc): Add crc, memxor.
11926 (Characteristics of floating types): New section.
11927 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
11928 isnanf-nolibm, signbit, trunc, truncf, truncl.
11929 (Enhancements for ISO C 99 functions): New subsection Input/output.
11930 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
11931 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
11932 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
11933 (Compatibility checks for POSIX:2001 functions): Add clock-time.
11934 (Enhancements for POSIX:2001 functions): Add chdir-long.
11935 (File system functions): Add areadlink, chdir-safer, read-file.
11936 Remove cycle-check.
11937 (File system as inode set): New section.
11938 (Date and time): Add gethrxtime.
11939 (Multithreading): Add openmp.
11940 (Internationalization functions): Add localename.
11941 (Unicode string functions): Add unistr/u*-mbsnlen.
11942 (Support for maintaining and releasing projects): Add git-version-gen.
11943 (Lone files): Remove directories.
11945 2007-10-08 Ben Pfaff <blp@gnu.org>
11947 * lib/xmalloca.h: Fix typo in comment.
11949 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
11951 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
11952 when avoiding problems with integer overflow. Use a portable test
11955 2007-10-08 Simon Josefsson <simon@josefsson.org>
11957 * modules/dummy (License): Change to LGPLv2+.
11958 * modules/float (License): Likewise
11959 * modules/realloc (License): Likewise
11960 * modules/stdlib (License): Likewise
11962 2007-10-07 Bruno Haible <bruno@clisp.org>
11964 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
11965 * floor.c (TWO_MANT_DIG): Likewise.
11966 * ceil.c (TWO_MANT_DIG): Likewise.
11967 Reported by Ben Pfaff.
11969 2007-10-07 Bruno Haible <bruno@clisp.org>
11971 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
11972 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
11973 * lib/frexp.c (FUNC): Likewise.
11974 * lib/printf-frexp.h (printf_frexp): Likewise.
11975 * lib/printf-frexpl.h (printf_frexpl): Likewise.
11976 * lib/printf-frexp.c (FUNC): Likewise.
11977 Suggested by Jim Meyering.
11979 2007-10-07 Jim Meyering <meyering@redhat.com>
11981 Make xnanosleep's integer overflow test more robust.
11982 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
11983 so that gcc-4.3.0 doesn't optimize away this test for overflow.
11985 2007-10-07 Bruno Haible <bruno@clisp.org>
11987 * NEWS: Mention the license change.
11989 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
11990 abbreviations in the modules files.
11992 Change copyright notice from GPLv2+ to GPLv3+.
11993 * README: Change copyright notice.
11994 * MODULES.html.sh: Likewise.
11995 * build-aux/bootstrap.conf: Likewise.
11996 * build-aux/config.libpath: Likewise.
11997 * build-aux/csharpcomp.sh.in: Likewise.
11998 * build-aux/csharpexec.sh.in: Likewise.
11999 * build-aux/install-reloc: Likewise.
12000 * build-aux/javacomp.sh.in: Likewise.
12001 * build-aux/javaexec.sh.in: Likewise.
12002 * build-aux/ldd.sh.in: Likewise.
12003 * build-aux/reloc-ldflags: Likewise.
12004 * build-aux/relocatable.sh.in: Likewise.
12005 * build-aux/x-to-1.in: Likewise.
12006 * check-module: Likewise.
12007 * config/srclistvars.sh: Likewise.
12008 * gnulib-tool: Likewise.
12009 * lib/acl-internal.h: Likewise.
12010 * lib/acl.c: Likewise.
12011 * lib/acl.h: Likewise.
12012 * lib/acl_entries.c: Likewise.
12013 * lib/areadlink-with-size.c: Likewise.
12014 * lib/areadlink.c: Likewise.
12015 * lib/areadlink.h: Likewise.
12016 * lib/argmatch.c: Likewise.
12017 * lib/argmatch.h: Likewise.
12018 * lib/argp-ba.c: Likewise.
12019 * lib/argp-eexst.c: Likewise.
12020 * lib/argp-fmtstream.c: Likewise.
12021 * lib/argp-fmtstream.h: Likewise.
12022 * lib/argp-fs-xinl.c: Likewise.
12023 * lib/argp-help.c: Likewise.
12024 * lib/argp-namefrob.h: Likewise.
12025 * lib/argp-parse.c: Likewise.
12026 * lib/argp-pin.c: Likewise.
12027 * lib/argp-pv.c: Likewise.
12028 * lib/argp-pvh.c: Likewise.
12029 * lib/argp-xinl.c: Likewise.
12030 * lib/argp.h: Likewise.
12031 * lib/at-func.c: Likewise.
12032 * lib/atanl.c: Likewise.
12033 * lib/backupfile.c: Likewise.
12034 * lib/backupfile.h: Likewise.
12035 * lib/basename.c: Likewise.
12036 * lib/binary-io.h: Likewise.
12037 * lib/byteswap.in.h: Likewise.
12038 * lib/c-stack.c: Likewise.
12039 * lib/c-stack.h: Likewise.
12040 * lib/c-strcasestr.c: Likewise.
12041 * lib/c-strcasestr.h: Likewise.
12042 * lib/c-strstr.c: Likewise.
12043 * lib/c-strstr.h: Likewise.
12044 * lib/c-strtod.c: Likewise.
12045 * lib/calloc.c: Likewise.
12046 * lib/canon-host.c: Likewise.
12047 * lib/canon-host.h: Likewise.
12048 * lib/canonicalize-lgpl.c: Likewise.
12049 * lib/canonicalize.c: Likewise.
12050 * lib/canonicalize.h: Likewise.
12051 * lib/ceil.c: Likewise.
12052 * lib/ceilf.c: Likewise.
12053 * lib/ceill.c: Likewise.
12054 * lib/chdir-long.c: Likewise.
12055 * lib/chdir-long.h: Likewise.
12056 * lib/chdir-safer.c: Likewise.
12057 * lib/chdir-safer.h: Likewise.
12058 * lib/chown.c: Likewise.
12059 * lib/classpath.c: Likewise.
12060 * lib/classpath.h: Likewise.
12061 * lib/clean-temp.c: Likewise.
12062 * lib/clean-temp.h: Likewise.
12063 * lib/cloexec.c: Likewise.
12064 * lib/close-stream.c: Likewise.
12065 * lib/closein.c: Likewise.
12066 * lib/closein.h: Likewise.
12067 * lib/closeout.c: Likewise.
12068 * lib/closeout.h: Likewise.
12069 * lib/concat-filename.c: Likewise.
12070 * lib/copy-file.c: Likewise.
12071 * lib/copy-file.h: Likewise.
12072 * lib/count-one-bits.h: Likewise.
12073 * lib/crc.c: Likewise.
12074 * lib/crc.h: Likewise.
12075 * lib/creat-safer.c: Likewise.
12076 * lib/csharpcomp.c: Likewise.
12077 * lib/csharpcomp.h: Likewise.
12078 * lib/csharpexec.c: Likewise.
12079 * lib/csharpexec.h: Likewise.
12080 * lib/cycle-check.c: Likewise.
12081 * lib/cycle-check.h: Likewise.
12082 * lib/diacrit.c: Likewise.
12083 * lib/diacrit.h: Likewise.
12084 * lib/diffseq.h: Likewise.
12085 * lib/dirchownmod.c: Likewise.
12086 * lib/dirent.in.h: Likewise.
12087 * lib/dirfd.c: Likewise.
12088 * lib/dirfd.h: Likewise.
12089 * lib/dirname.c: Likewise.
12090 * lib/dirname.h: Likewise.
12091 * lib/dummy.c: Likewise.
12092 * lib/dup-safer.c: Likewise.
12093 * lib/dup2.c: Likewise.
12094 * lib/eealloc.h: Likewise.
12095 * lib/error.c: Likewise.
12096 * lib/error.h: Likewise.
12097 * lib/euidaccess.c: Likewise.
12098 * lib/exclude.c: Likewise.
12099 * lib/exclude.h: Likewise.
12100 * lib/execute.c: Likewise.
12101 * lib/execute.h: Likewise.
12102 * lib/exitfail.c: Likewise.
12103 * lib/exitfail.h: Likewise.
12104 * lib/expl.c: Likewise.
12105 * lib/fatal-signal.c: Likewise.
12106 * lib/fatal-signal.h: Likewise.
12107 * lib/fbufmode.c: Likewise.
12108 * lib/fbufmode.h: Likewise.
12109 * lib/fchdir.c: Likewise.
12110 * lib/fchmodat.c: Likewise.
12111 * lib/fchownat.c: Likewise.
12112 * lib/fcntl--.h: Likewise.
12113 * lib/fcntl-safer.h: Likewise.
12114 * lib/fcntl.in.h: Likewise.
12115 * lib/fd-safer.c: Likewise.
12116 * lib/fflush.c: Likewise.
12117 * lib/file-has-acl.c: Likewise.
12118 * lib/file-set.c: Likewise.
12119 * lib/file-type.c: Likewise.
12120 * lib/file-type.h: Likewise.
12121 * lib/fileblocks.c: Likewise.
12122 * lib/filemode.c: Likewise.
12123 * lib/filemode.h: Likewise.
12124 * lib/filename.h: Likewise.
12125 * lib/filenamecat.c: Likewise.
12126 * lib/filenamecat.h: Likewise.
12127 * lib/findprog.c: Likewise.
12128 * lib/findprog.h: Likewise.
12129 * lib/float.in.h: Likewise.
12130 * lib/floor.c: Likewise.
12131 * lib/floorf.c: Likewise.
12132 * lib/floorl.c: Likewise.
12133 * lib/fopen-safer.c: Likewise.
12134 * lib/fopen.c: Likewise.
12135 * lib/fpending.c: Likewise.
12136 * lib/fpending.h: Likewise.
12137 * lib/fprintf.c: Likewise.
12138 * lib/fprintftime.h: Likewise.
12139 * lib/fpucw.h: Likewise.
12140 * lib/fpurge.c: Likewise.
12141 * lib/fpurge.h: Likewise.
12142 * lib/freadable.c: Likewise.
12143 * lib/freadable.h: Likewise.
12144 * lib/freadahead.c: Likewise.
12145 * lib/freadahead.h: Likewise.
12146 * lib/freading.c: Likewise.
12147 * lib/freading.h: Likewise.
12148 * lib/free.c: Likewise.
12149 * lib/freopen.c: Likewise.
12150 * lib/frexp.c: Likewise.
12151 * lib/frexpl.c: Likewise.
12152 * lib/fseek.c: Likewise.
12153 * lib/fseterr.c: Likewise.
12154 * lib/fseterr.h: Likewise.
12155 * lib/fstatat.c: Likewise.
12156 * lib/fstrcmp.c: Likewise.
12157 * lib/fstrcmp.h: Likewise.
12158 * lib/fsusage.c: Likewise.
12159 * lib/fsusage.h: Likewise.
12160 * lib/ftell.c: Likewise.
12161 * lib/ftello.c: Likewise.
12162 * lib/fts-cycle.c: Likewise.
12163 * lib/fts.c: Likewise.
12164 * lib/fts_.h: Likewise.
12165 * lib/full-read.c: Likewise.
12166 * lib/full-read.h: Likewise.
12167 * lib/full-write.c: Likewise.
12168 * lib/full-write.h: Likewise.
12169 * lib/fwritable.c: Likewise.
12170 * lib/fwritable.h: Likewise.
12171 * lib/fwriteerror.c: Likewise.
12172 * lib/fwriteerror.h: Likewise.
12173 * lib/fwriting.c: Likewise.
12174 * lib/fwriting.h: Likewise.
12175 * lib/gcd.c: Likewise.
12176 * lib/gcd.h: Likewise.
12177 * lib/getcwd.c: Likewise.
12178 * lib/getdate.h: Likewise.
12179 * lib/getdate.y: Likewise.
12180 * lib/getdomainname.c: Likewise.
12181 * lib/getdomainname.h: Likewise.
12182 * lib/getgroups.c: Likewise.
12183 * lib/gethostname.c: Likewise.
12184 * lib/gethrxtime.c: Likewise.
12185 * lib/gethrxtime.h: Likewise.
12186 * lib/getloadavg.c: Likewise.
12187 * lib/getndelim2.c: Likewise.
12188 * lib/getndelim2.h: Likewise.
12189 * lib/getnline.c: Likewise.
12190 * lib/getnline.h: Likewise.
12191 * lib/getopt.c: Likewise.
12192 * lib/getopt.in.h: Likewise.
12193 * lib/getopt1.c: Likewise.
12194 * lib/getopt_int.h: Likewise.
12195 * lib/getpagesize.h: Likewise.
12196 * lib/getsubopt.c: Likewise.
12197 * lib/gettime.c: Likewise.
12198 * lib/getugroups.c: Likewise.
12199 * lib/getugroups.h: Likewise.
12200 * lib/getusershell.c: Likewise.
12201 * lib/gl_anyavltree_list1.h: Likewise.
12202 * lib/gl_anyavltree_list2.h: Likewise.
12203 * lib/gl_anyhash_list1.h: Likewise.
12204 * lib/gl_anyhash_list2.h: Likewise.
12205 * lib/gl_anylinked_list1.h: Likewise.
12206 * lib/gl_anylinked_list2.h: Likewise.
12207 * lib/gl_anyrbtree_list1.h: Likewise.
12208 * lib/gl_anyrbtree_list2.h: Likewise.
12209 * lib/gl_anytree_list1.h: Likewise.
12210 * lib/gl_anytree_list2.h: Likewise.
12211 * lib/gl_anytree_oset.h: Likewise.
12212 * lib/gl_anytreehash_list1.h: Likewise.
12213 * lib/gl_anytreehash_list2.h: Likewise.
12214 * lib/gl_array_list.c: Likewise.
12215 * lib/gl_array_list.h: Likewise.
12216 * lib/gl_array_oset.c: Likewise.
12217 * lib/gl_array_oset.h: Likewise.
12218 * lib/gl_avltree_list.c: Likewise.
12219 * lib/gl_avltree_list.h: Likewise.
12220 * lib/gl_avltree_oset.c: Likewise.
12221 * lib/gl_avltree_oset.h: Likewise.
12222 * lib/gl_avltreehash_list.c: Likewise.
12223 * lib/gl_avltreehash_list.h: Likewise.
12224 * lib/gl_carray_list.c: Likewise.
12225 * lib/gl_carray_list.h: Likewise.
12226 * lib/gl_linked_list.c: Likewise.
12227 * lib/gl_linked_list.h: Likewise.
12228 * lib/gl_linkedhash_list.c: Likewise.
12229 * lib/gl_linkedhash_list.h: Likewise.
12230 * lib/gl_list.c: Likewise.
12231 * lib/gl_list.h: Likewise.
12232 * lib/gl_oset.c: Likewise.
12233 * lib/gl_oset.h: Likewise.
12234 * lib/gl_rbtree_list.c: Likewise.
12235 * lib/gl_rbtree_list.h: Likewise.
12236 * lib/gl_rbtree_oset.c: Likewise.
12237 * lib/gl_rbtree_oset.h: Likewise.
12238 * lib/gl_rbtreehash_list.c: Likewise.
12239 * lib/gl_rbtreehash_list.h: Likewise.
12240 * lib/gl_sublist.c: Likewise.
12241 * lib/gl_sublist.h: Likewise.
12242 * lib/group-member.c: Likewise.
12243 * lib/group-member.h: Likewise.
12244 * lib/hard-locale.c: Likewise.
12245 * lib/hard-locale.h: Likewise.
12246 * lib/hash-pjw.c: Likewise.
12247 * lib/hash-pjw.h: Likewise.
12248 * lib/hash-triple.c: Likewise.
12249 * lib/hash.c: Likewise.
12250 * lib/hash.h: Likewise.
12251 * lib/human.c: Likewise.
12252 * lib/human.h: Likewise.
12253 * lib/i-ring.c: Likewise.
12254 * lib/i-ring.h: Likewise.
12255 * lib/idcache.c: Likewise.
12256 * lib/imaxabs.c: Likewise.
12257 * lib/imaxdiv.c: Likewise.
12258 * lib/inet_pton.c: Likewise.
12259 * lib/inet_pton.h: Likewise.
12260 * lib/intprops.h: Likewise.
12261 * lib/inttostr.c: Likewise.
12262 * lib/inttostr.h: Likewise.
12263 * lib/inttypes.in.h: Likewise.
12264 * lib/isapipe.c: Likewise.
12265 * lib/isdir.c: Likewise.
12266 * lib/isnan.c: Likewise.
12267 * lib/isnan.h: Likewise.
12268 * lib/isnanf.c: Likewise.
12269 * lib/isnanf.h: Likewise.
12270 * lib/isnanl-nolibm.h: Likewise.
12271 * lib/isnanl.c: Likewise.
12272 * lib/isnanl.h: Likewise.
12273 * lib/javacomp.c: Likewise.
12274 * lib/javacomp.h: Likewise.
12275 * lib/javaexec.c: Likewise.
12276 * lib/javaexec.h: Likewise.
12277 * lib/javaversion.c: Likewise.
12278 * lib/javaversion.h: Likewise.
12279 * lib/javaversion.java: Likewise.
12280 * lib/lbrkprop.h: Likewise.
12281 * lib/lchmod.h: Likewise.
12282 * lib/lchown.c: Likewise.
12283 * lib/ldexpl.c: Likewise.
12284 * lib/linebreak.c: Likewise.
12285 * lib/linebreak.h: Likewise.
12286 * lib/linebuffer.c: Likewise.
12287 * lib/linebuffer.h: Likewise.
12288 * lib/locale.in.h: Likewise.
12289 * lib/logl.c: Likewise.
12290 * lib/long-options.c: Likewise.
12291 * lib/long-options.h: Likewise.
12292 * lib/lstat.c: Likewise.
12293 * lib/lstat.h: Likewise.
12294 * lib/math.in.h: Likewise.
12295 * lib/mbchar.c: Likewise.
12296 * lib/mbchar.h: Likewise.
12297 * lib/mbfile.h: Likewise.
12298 * lib/mbiter.h: Likewise.
12299 * lib/mbscasecmp.c: Likewise.
12300 * lib/mbscasestr.c: Likewise.
12301 * lib/mbschr.c: Likewise.
12302 * lib/mbscspn.c: Likewise.
12303 * lib/mbslen.c: Likewise.
12304 * lib/mbsncasecmp.c: Likewise.
12305 * lib/mbsnlen.c: Likewise.
12306 * lib/mbspbrk.c: Likewise.
12307 * lib/mbspcasecmp.c: Likewise.
12308 * lib/mbsrchr.c: Likewise.
12309 * lib/mbssep.c: Likewise.
12310 * lib/mbsspn.c: Likewise.
12311 * lib/mbsstr.c: Likewise.
12312 * lib/mbstok_r.c: Likewise.
12313 * lib/mbswidth.c: Likewise.
12314 * lib/mbswidth.h: Likewise.
12315 * lib/mbuiter.h: Likewise.
12316 * lib/memcasecmp.c: Likewise.
12317 * lib/memcasecmp.h: Likewise.
12318 * lib/memchr.c: Likewise.
12319 * lib/memcmp.c: Likewise.
12320 * lib/memcoll.c: Likewise.
12321 * lib/memcoll.h: Likewise.
12322 * lib/memcpy.c: Likewise.
12323 * lib/memrchr.c: Likewise.
12324 * lib/mkancesdirs.c: Likewise.
12325 * lib/mkdir-p.c: Likewise.
12326 * lib/mkdir-p.h: Likewise.
12327 * lib/mkdir.c: Likewise.
12328 * lib/mkdirat.c: Likewise.
12329 * lib/mkdtemp.c: Likewise.
12330 * lib/mkstemp-safer.c: Likewise.
12331 * lib/mkstemp.c: Likewise.
12332 * lib/modechange.c: Likewise.
12333 * lib/modechange.h: Likewise.
12334 * lib/mountlist.c: Likewise.
12335 * lib/mountlist.h: Likewise.
12336 * lib/mpsort.c: Likewise.
12337 * lib/nanosleep.c: Likewise.
12338 * lib/obstack.c: Likewise.
12339 * lib/obstack.h: Likewise.
12340 * lib/open-safer.c: Likewise.
12341 * lib/open.c: Likewise.
12342 * lib/openat-die.c: Likewise.
12343 * lib/openat-priv.h: Likewise.
12344 * lib/openat-proc.c: Likewise.
12345 * lib/openat.c: Likewise.
12346 * lib/openat.h: Likewise.
12347 * lib/pagealign_alloc.c: Likewise.
12348 * lib/pagealign_alloc.h: Likewise.
12349 * lib/physmem.c: Likewise.
12350 * lib/physmem.h: Likewise.
12351 * lib/pipe-safer.c: Likewise.
12352 * lib/pipe.c: Likewise.
12353 * lib/pipe.h: Likewise.
12354 * lib/posixtm.c: Likewise.
12355 * lib/posixtm.h: Likewise.
12356 * lib/posixver.c: Likewise.
12357 * lib/printf-frexp.c: Likewise.
12358 * lib/printf-frexp.h: Likewise.
12359 * lib/printf-frexpl.c: Likewise.
12360 * lib/printf-frexpl.h: Likewise.
12361 * lib/printf.c: Likewise.
12362 * lib/progname.c: Likewise.
12363 * lib/progname.h: Likewise.
12364 * lib/progreloc.c: Likewise.
12365 * lib/putenv.c: Likewise.
12366 * lib/quote.c: Likewise.
12367 * lib/quote.h: Likewise.
12368 * lib/quotearg.c: Likewise.
12369 * lib/quotearg.h: Likewise.
12370 * lib/raise.c: Likewise.
12371 * lib/readline.c: Likewise.
12372 * lib/readline.h: Likewise.
12373 * lib/readlink.c: Likewise.
12374 * lib/readtokens.c: Likewise.
12375 * lib/readtokens.h: Likewise.
12376 * lib/readtokens0.c: Likewise.
12377 * lib/readtokens0.h: Likewise.
12378 * lib/readutmp.c: Likewise.
12379 * lib/readutmp.h: Likewise.
12380 * lib/realloc.c: Likewise.
12381 * lib/relocwrapper.c: Likewise.
12382 * lib/rename-dest-slash.c: Likewise.
12383 * lib/rename.c: Likewise.
12384 * lib/rmdir.c: Likewise.
12385 * lib/rpmatch.c: Likewise.
12386 * lib/safe-read.c: Likewise.
12387 * lib/safe-read.h: Likewise.
12388 * lib/safe-write.c: Likewise.
12389 * lib/safe-write.h: Likewise.
12390 * lib/same-inode.h: Likewise.
12391 * lib/same.c: Likewise.
12392 * lib/same.h: Likewise.
12393 * lib/save-cwd.c: Likewise.
12394 * lib/save-cwd.h: Likewise.
12395 * lib/savedir.c: Likewise.
12396 * lib/savedir.h: Likewise.
12397 * lib/savewd.c: Likewise.
12398 * lib/savewd.h: Likewise.
12399 * lib/search.in.h: Likewise.
12400 * lib/setenv.c: Likewise.
12401 * lib/setenv.h: Likewise.
12402 * lib/settime.c: Likewise.
12403 * lib/sh-quote.c: Likewise.
12404 * lib/sh-quote.h: Likewise.
12405 * lib/sig2str.c: Likewise.
12406 * lib/sig2str.h: Likewise.
12407 * lib/signal.in.h: Likewise.
12408 * lib/signbitd.c: Likewise.
12409 * lib/signbitf.c: Likewise.
12410 * lib/signbitl.c: Likewise.
12411 * lib/sigprocmask.c: Likewise.
12412 * lib/sincosl.c: Likewise.
12413 * lib/sleep.c: Likewise.
12414 * lib/sprintf.c: Likewise.
12415 * lib/sqrtl.c: Likewise.
12416 * lib/stat-time.h: Likewise.
12417 * lib/stdio--.h: Likewise.
12418 * lib/stdio-safer.h: Likewise.
12419 * lib/stdlib--.h: Likewise.
12420 * lib/stdlib-safer.h: Likewise.
12421 * lib/stdlib.in.h: Likewise.
12422 * lib/stpcpy.c: Likewise.
12423 * lib/stpncpy.c: Likewise.
12424 * lib/strchrnul.c: Likewise.
12425 * lib/strcspn.c: Likewise.
12426 * lib/strerror.c: Likewise.
12427 * lib/strftime.c: Likewise.
12428 * lib/strftime.h: Likewise.
12429 * lib/striconveh.c: Likewise.
12430 * lib/striconveh.h: Likewise.
12431 * lib/striconveha.c: Likewise.
12432 * lib/striconveha.h: Likewise.
12433 * lib/stripslash.c: Likewise.
12434 * lib/strnlen1.c: Likewise.
12435 * lib/strnlen1.h: Likewise.
12436 * lib/strtod.c: Likewise.
12437 * lib/strtoimax.c: Likewise.
12438 * lib/strtok_r.c: Likewise.
12439 * lib/strtol.c: Likewise.
12440 * lib/strtoll.c: Likewise.
12441 * lib/strtoul.c: Likewise.
12442 * lib/strtoull.c: Likewise.
12443 * lib/sysexits.in.h: Likewise.
12444 * lib/tempname.c: Likewise.
12445 * lib/tempname.h: Likewise.
12446 * lib/timespec.h: Likewise.
12447 * lib/tls.c: Likewise.
12448 * lib/tls.h: Likewise.
12449 * lib/tmpdir.c: Likewise.
12450 * lib/tmpdir.h: Likewise.
12451 * lib/tmpfile-safer.c: Likewise.
12452 * lib/tmpfile.c: Likewise.
12453 * lib/trigl.c: Likewise.
12454 * lib/trigl.h: Likewise.
12455 * lib/trim.c: Likewise.
12456 * lib/trim.h: Likewise.
12457 * lib/trunc.c: Likewise.
12458 * lib/truncf.c: Likewise.
12459 * lib/truncl.c: Likewise.
12460 * lib/tsearch.c: Likewise.
12461 * lib/unicodeio.c: Likewise.
12462 * lib/unicodeio.h: Likewise.
12463 * lib/unistd--.h: Likewise.
12464 * lib/unistd-safer.h: Likewise.
12465 * lib/unistdio/ulc-fprintf.c: Likewise.
12466 * lib/unistdio/ulc-vfprintf.c: Likewise.
12467 * lib/unlinkdir.c: Likewise.
12468 * lib/unlinkdir.h: Likewise.
12469 * lib/unlocked-io.h: Likewise.
12470 * lib/unsetenv.c: Likewise.
12471 * lib/userspec.c: Likewise.
12472 * lib/utime.c: Likewise.
12473 * lib/utimecmp.c: Likewise.
12474 * lib/utimecmp.h: Likewise.
12475 * lib/utimens.c: Likewise.
12476 * lib/verify.h: Likewise.
12477 * lib/verror.c: Likewise.
12478 * lib/verror.h: Likewise.
12479 * lib/version-etc-fsf.c: Likewise.
12480 * lib/version-etc.c: Likewise.
12481 * lib/version-etc.h: Likewise.
12482 * lib/vfprintf.c: Likewise.
12483 * lib/vprintf.c: Likewise.
12484 * lib/vsprintf.c: Likewise.
12485 * lib/w32spawn.h: Likewise.
12486 * lib/wait-process.c: Likewise.
12487 * lib/wait-process.h: Likewise.
12488 * lib/wcwidth.c: Likewise.
12489 * lib/write-any-file.c: Likewise.
12490 * lib/xalloc-die.c: Likewise.
12491 * lib/xalloc.h: Likewise.
12492 * lib/xasprintf.c: Likewise.
12493 * lib/xgetcwd.c: Likewise.
12494 * lib/xgetcwd.h: Likewise.
12495 * lib/xgetdomainname.c: Likewise.
12496 * lib/xgetdomainname.h: Likewise.
12497 * lib/xgethostname.c: Likewise.
12498 * lib/xmalloc.c: Likewise.
12499 * lib/xmalloca.c: Likewise.
12500 * lib/xmalloca.h: Likewise.
12501 * lib/xmemcoll.c: Likewise.
12502 * lib/xnanosleep.c: Likewise.
12503 * lib/xreadlink.c: Likewise.
12504 * lib/xreadlink.h: Likewise.
12505 * lib/xsetenv.c: Likewise.
12506 * lib/xsetenv.h: Likewise.
12507 * lib/xstriconv.c: Likewise.
12508 * lib/xstriconv.h: Likewise.
12509 * lib/xstrndup.c: Likewise.
12510 * lib/xstrndup.h: Likewise.
12511 * lib/xstrtod.c: Likewise.
12512 * lib/xstrtod.h: Likewise.
12513 * lib/xstrtol-error.c: Likewise.
12514 * lib/xstrtol.c: Likewise.
12515 * lib/xstrtol.h: Likewise.
12516 * lib/xtime.h: Likewise.
12517 * lib/xvasprintf.c: Likewise.
12518 * lib/xvasprintf.h: Likewise.
12519 * lib/yesno.c: Likewise.
12520 * lib/yesno.h: Likewise.
12521 * posix-modules: Likewise.
12522 * tests/test-alloca-opt.c: Likewise.
12523 * tests/test-arcfour.c: Likewise.
12524 * tests/test-arctwo.c: Likewise.
12525 * tests/test-argmatch.c: Likewise.
12526 * tests/test-argp-2.sh: Likewise.
12527 * tests/test-argp.c: Likewise.
12528 * tests/test-arpa_inet.c: Likewise.
12529 * tests/test-array_list.c: Likewise.
12530 * tests/test-array_oset.c: Likewise.
12531 * tests/test-atexit.c: Likewise.
12532 * tests/test-avltree_list.c: Likewise.
12533 * tests/test-avltree_oset.c: Likewise.
12534 * tests/test-avltreehash_list.c: Likewise.
12535 * tests/test-base64.c: Likewise.
12536 * tests/test-binary-io.c: Likewise.
12537 * tests/test-byteswap.c: Likewise.
12538 * tests/test-c-ctype.c: Likewise.
12539 * tests/test-c-strcasecmp.c: Likewise.
12540 * tests/test-c-strcasestr.c: Likewise.
12541 * tests/test-c-strncasecmp.c: Likewise.
12542 * tests/test-c-strstr.c: Likewise.
12543 * tests/test-canonicalize-lgpl.c: Likewise.
12544 * tests/test-canonicalize.c: Likewise.
12545 * tests/test-carray_list.c: Likewise.
12546 * tests/test-ceilf.c: Likewise.
12547 * tests/test-ceill.c: Likewise.
12548 * tests/test-count-one-bits.c: Likewise.
12549 * tests/test-crc.c: Likewise.
12550 * tests/test-dirname.c: Likewise.
12551 * tests/test-fbufmode.c: Likewise.
12552 * tests/test-fcntl.c: Likewise.
12553 * tests/test-fflush.c: Likewise.
12554 * tests/test-floorf.c: Likewise.
12555 * tests/test-floorl.c: Likewise.
12556 * tests/test-fopen.c: Likewise.
12557 * tests/test-fprintf-posix.c: Likewise.
12558 * tests/test-fprintf-posix.h: Likewise.
12559 * tests/test-fpurge.c: Likewise.
12560 * tests/test-freadable.c: Likewise.
12561 * tests/test-freadahead.c: Likewise.
12562 * tests/test-freading.c: Likewise.
12563 * tests/test-freopen.c: Likewise.
12564 * tests/test-frexp.c: Likewise.
12565 * tests/test-frexpl.c: Likewise.
12566 * tests/test-fseek.c: Likewise.
12567 * tests/test-fseeko.c: Likewise.
12568 * tests/test-fseterr.c: Likewise.
12569 * tests/test-fstrcmp.c: Likewise.
12570 * tests/test-ftell.c: Likewise.
12571 * tests/test-ftello.c: Likewise.
12572 * tests/test-fwritable.c: Likewise.
12573 * tests/test-fwriting.c: Likewise.
12574 * tests/test-getaddrinfo.c: Likewise.
12575 * tests/test-getpass.c: Likewise.
12576 * tests/test-gettimeofday.c: Likewise.
12577 * tests/test-hmac-md5.c: Likewise.
12578 * tests/test-hmac-sha1.c: Likewise.
12579 * tests/test-iconv.c: Likewise.
12580 * tests/test-iconvme.c: Likewise.
12581 * tests/test-inttypes.c: Likewise.
12582 * tests/test-isnan.c: Likewise.
12583 * tests/test-isnanf.c: Likewise.
12584 * tests/test-isnanl-nolibm.c: Likewise.
12585 * tests/test-isnanl.c: Likewise.
12586 * tests/test-isnanl.h: Likewise.
12587 * tests/test-ldexpl.c: Likewise.
12588 * tests/test-linked_list.c: Likewise.
12589 * tests/test-linkedhash_list.c: Likewise.
12590 * tests/test-locale.c: Likewise.
12591 * tests/test-localename.c: Likewise.
12592 * tests/test-lock.c: Likewise.
12593 * tests/test-lseek.c: Likewise.
12594 * tests/test-malloca.c: Likewise.
12595 * tests/test-math.c: Likewise.
12596 * tests/test-mbscasecmp.c: Likewise.
12597 * tests/test-mbscasestr1.c: Likewise.
12598 * tests/test-mbscasestr2.c: Likewise.
12599 * tests/test-mbscasestr3.c: Likewise.
12600 * tests/test-mbscasestr4.c: Likewise.
12601 * tests/test-mbschr.c: Likewise.
12602 * tests/test-mbscspn.c: Likewise.
12603 * tests/test-mbsncasecmp.c: Likewise.
12604 * tests/test-mbspbrk.c: Likewise.
12605 * tests/test-mbspcasecmp.c: Likewise.
12606 * tests/test-mbsrchr.c: Likewise.
12607 * tests/test-mbsspn.c: Likewise.
12608 * tests/test-mbsstr1.c: Likewise.
12609 * tests/test-mbsstr2.c: Likewise.
12610 * tests/test-mbsstr3.c: Likewise.
12611 * tests/test-md5.c: Likewise.
12612 * tests/test-memmem.c: Likewise.
12613 * tests/test-netinet_in.c: Likewise.
12614 * tests/test-open.c: Likewise.
12615 * tests/test-printf-frexp.c: Likewise.
12616 * tests/test-printf-frexpl.c: Likewise.
12617 * tests/test-printf-posix.c: Likewise.
12618 * tests/test-printf-posix.h: Likewise.
12619 * tests/test-rbtree_list.c: Likewise.
12620 * tests/test-rbtree_oset.c: Likewise.
12621 * tests/test-rbtreehash_list.c: Likewise.
12622 * tests/test-read-file.c: Likewise.
12623 * tests/test-rijndael.c: Likewise.
12624 * tests/test-search.c: Likewise.
12625 * tests/test-signbit.c: Likewise.
12626 * tests/test-sleep.c: Likewise.
12627 * tests/test-snprintf-posix.c: Likewise.
12628 * tests/test-snprintf-posix.h: Likewise.
12629 * tests/test-snprintf.c: Likewise.
12630 * tests/test-sprintf-posix.c: Likewise.
12631 * tests/test-sprintf-posix.h: Likewise.
12632 * tests/test-stat-time.c: Likewise.
12633 * tests/test-stdbool.c: Likewise.
12634 * tests/test-stdint.c: Likewise.
12635 * tests/test-stdio.c: Likewise.
12636 * tests/test-stdlib.c: Likewise.
12637 * tests/test-stpncpy.c: Likewise.
12638 * tests/test-strcasestr.c: Likewise.
12639 * tests/test-striconv.c: Likewise.
12640 * tests/test-striconveh.c: Likewise.
12641 * tests/test-striconveha.c: Likewise.
12642 * tests/test-string.c: Likewise.
12643 * tests/test-sys_select.c: Likewise.
12644 * tests/test-sys_socket.c: Likewise.
12645 * tests/test-sys_stat.c: Likewise.
12646 * tests/test-sys_time.c: Likewise.
12647 * tests/test-sysexits.c: Likewise.
12648 * tests/test-time.c: Likewise.
12649 * tests/test-tls.c: Likewise.
12650 * tests/test-trunc.c: Likewise.
12651 * tests/test-truncf.c: Likewise.
12652 * tests/test-truncl.c: Likewise.
12653 * tests/test-unistd.c: Likewise.
12654 * tests/test-vasnprintf-posix.c: Likewise.
12655 * tests/test-vasnprintf-posix2.c: Likewise.
12656 * tests/test-vasnprintf.c: Likewise.
12657 * tests/test-vasprintf-posix.c: Likewise.
12658 * tests/test-vasprintf.c: Likewise.
12659 * tests/test-verify.c: Likewise.
12660 * tests/test-vfprintf-posix.c: Likewise.
12661 * tests/test-vprintf-posix.c: Likewise.
12662 * tests/test-vsnprintf-posix.c: Likewise.
12663 * tests/test-vsnprintf.c: Likewise.
12664 * tests/test-vsprintf-posix.c: Likewise.
12665 * tests/test-wchar.c: Likewise.
12666 * tests/test-wctype.c: Likewise.
12667 * tests/test-wcwidth.c: Likewise.
12668 * tests/test-xstrtol.c: Likewise.
12669 * tests/test-xvasprintf.c: Likewise.
12670 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
12671 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
12672 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
12673 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
12674 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
12675 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
12676 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
12677 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
12678 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
12679 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
12680 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
12681 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
12682 * tests/uniname/test-uninames.c: Likewise.
12683 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
12684 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
12685 * tests/unistdio/test-u16-printf1.h: Likewise.
12686 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
12687 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
12688 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
12689 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
12690 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
12691 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
12692 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
12693 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
12694 * tests/unistdio/test-u32-printf1.h: Likewise.
12695 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
12696 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
12697 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
12698 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
12699 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
12700 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
12701 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
12702 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
12703 * tests/unistdio/test-u8-printf1.h: Likewise.
12704 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
12705 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
12706 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
12707 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
12708 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
12709 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
12710 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
12711 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
12712 * tests/unistdio/test-ulc-printf1.h: Likewise.
12713 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
12714 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
12715 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
12716 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
12717 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
12718 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
12719 * tests/uniwidth/test-u16-strwidth.c: Likewise.
12720 * tests/uniwidth/test-u16-width.c: Likewise.
12721 * tests/uniwidth/test-u32-strwidth.c: Likewise.
12722 * tests/uniwidth/test-u32-width.c: Likewise.
12723 * tests/uniwidth/test-u8-strwidth.c: Likewise.
12724 * tests/uniwidth/test-u8-width.c: Likewise.
12725 * tests/uniwidth/test-uc_width.c: Likewise.
12726 * config/srclist-update: Likewise.
12727 (fixlicense): Update to GPLv3+.
12729 Change copyright notice from LGPLv2.1+ to LGPLv3+.
12730 * tests/test-tsearch.c: Change copyright notice.
12732 Change copyright notice from LGPLv2.0+ to LGPLv3+.
12733 * lib/c-strcaseeq.h: Change copyright notice.
12734 * lib/streq.h: Likewise.
12735 * lib/uniconv.h: Likewise.
12736 * lib/uniconv/u-conv-from-enc.h: Likewise.
12737 * lib/uniconv/u-conv-to-enc.h: Likewise.
12738 * lib/uniconv/u-strconv-from-enc.h: Likewise.
12739 * lib/uniconv/u-strconv-to-enc.h: Likewise.
12740 * lib/uniconv/u16-conv-from-enc.c: Likewise.
12741 * lib/uniconv/u16-conv-to-enc.c: Likewise.
12742 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
12743 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
12744 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
12745 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
12746 * lib/uniconv/u32-conv-from-enc.c: Likewise.
12747 * lib/uniconv/u32-conv-to-enc.c: Likewise.
12748 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
12749 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
12750 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
12751 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
12752 * lib/uniconv/u8-conv-from-enc.c: Likewise.
12753 * lib/uniconv/u8-conv-to-enc.c: Likewise.
12754 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
12755 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
12756 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
12757 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
12758 * lib/uniname.h: Likewise.
12759 * lib/uniname/uniname.c: Likewise.
12760 * lib/unistdio.h: Likewise.
12761 * lib/unistdio/u-asnprintf.h: Likewise.
12762 * lib/unistdio/u-asprintf.h: Likewise.
12763 * lib/unistdio/u-printf-args.c: Likewise.
12764 * lib/unistdio/u-printf-args.h: Likewise.
12765 * lib/unistdio/u-printf-parse.h: Likewise.
12766 * lib/unistdio/u-snprintf.h: Likewise.
12767 * lib/unistdio/u-sprintf.h: Likewise.
12768 * lib/unistdio/u-vasprintf.h: Likewise.
12769 * lib/unistdio/u-vsnprintf.h: Likewise.
12770 * lib/unistdio/u-vsprintf.h: Likewise.
12771 * lib/unistdio/u16-asnprintf.c: Likewise.
12772 * lib/unistdio/u16-asprintf.c: Likewise.
12773 * lib/unistdio/u16-printf-parse.c: Likewise.
12774 * lib/unistdio/u16-snprintf.c: Likewise.
12775 * lib/unistdio/u16-sprintf.c: Likewise.
12776 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
12777 * lib/unistdio/u16-u16-asprintf.c: Likewise.
12778 * lib/unistdio/u16-u16-snprintf.c: Likewise.
12779 * lib/unistdio/u16-u16-sprintf.c: Likewise.
12780 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
12781 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
12782 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
12783 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
12784 * lib/unistdio/u16-vasnprintf.c: Likewise.
12785 * lib/unistdio/u16-vasprintf.c: Likewise.
12786 * lib/unistdio/u16-vsnprintf.c: Likewise.
12787 * lib/unistdio/u16-vsprintf.c: Likewise.
12788 * lib/unistdio/u32-asnprintf.c: Likewise.
12789 * lib/unistdio/u32-asprintf.c: Likewise.
12790 * lib/unistdio/u32-printf-parse.c: Likewise.
12791 * lib/unistdio/u32-snprintf.c: Likewise.
12792 * lib/unistdio/u32-sprintf.c: Likewise.
12793 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
12794 * lib/unistdio/u32-u32-asprintf.c: Likewise.
12795 * lib/unistdio/u32-u32-snprintf.c: Likewise.
12796 * lib/unistdio/u32-u32-sprintf.c: Likewise.
12797 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
12798 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
12799 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
12800 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
12801 * lib/unistdio/u32-vasnprintf.c: Likewise.
12802 * lib/unistdio/u32-vasprintf.c: Likewise.
12803 * lib/unistdio/u32-vsnprintf.c: Likewise.
12804 * lib/unistdio/u32-vsprintf.c: Likewise.
12805 * lib/unistdio/u8-asnprintf.c: Likewise.
12806 * lib/unistdio/u8-asprintf.c: Likewise.
12807 * lib/unistdio/u8-printf-parse.c: Likewise.
12808 * lib/unistdio/u8-snprintf.c: Likewise.
12809 * lib/unistdio/u8-sprintf.c: Likewise.
12810 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
12811 * lib/unistdio/u8-u8-asprintf.c: Likewise.
12812 * lib/unistdio/u8-u8-snprintf.c: Likewise.
12813 * lib/unistdio/u8-u8-sprintf.c: Likewise.
12814 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
12815 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
12816 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
12817 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
12818 * lib/unistdio/u8-vasnprintf.c: Likewise.
12819 * lib/unistdio/u8-vasprintf.c: Likewise.
12820 * lib/unistdio/u8-vsnprintf.c: Likewise.
12821 * lib/unistdio/u8-vsprintf.c: Likewise.
12822 * lib/unistdio/ulc-asnprintf.c: Likewise.
12823 * lib/unistdio/ulc-asprintf.c: Likewise.
12824 * lib/unistdio/ulc-printf-parse.c: Likewise.
12825 * lib/unistdio/ulc-snprintf.c: Likewise.
12826 * lib/unistdio/ulc-sprintf.c: Likewise.
12827 * lib/unistdio/ulc-vasnprintf.c: Likewise.
12828 * lib/unistdio/ulc-vasprintf.c: Likewise.
12829 * lib/unistdio/ulc-vsnprintf.c: Likewise.
12830 * lib/unistdio/ulc-vsprintf.c: Likewise.
12831 * lib/unistr.h: Likewise.
12832 * lib/unistr/u-cpy-alloc.h: Likewise.
12833 * lib/unistr/u-cpy.h: Likewise.
12834 * lib/unistr/u-endswith.h: Likewise.
12835 * lib/unistr/u-move.h: Likewise.
12836 * lib/unistr/u-set.h: Likewise.
12837 * lib/unistr/u-startswith.h: Likewise.
12838 * lib/unistr/u-stpcpy.h: Likewise.
12839 * lib/unistr/u-stpncpy.h: Likewise.
12840 * lib/unistr/u-strcat.h: Likewise.
12841 * lib/unistr/u-strcpy.h: Likewise.
12842 * lib/unistr/u-strcspn.h: Likewise.
12843 * lib/unistr/u-strdup.h: Likewise.
12844 * lib/unistr/u-strlen.h: Likewise.
12845 * lib/unistr/u-strncat.h: Likewise.
12846 * lib/unistr/u-strncpy.h: Likewise.
12847 * lib/unistr/u-strnlen.h: Likewise.
12848 * lib/unistr/u-strpbrk.h: Likewise.
12849 * lib/unistr/u-strspn.h: Likewise.
12850 * lib/unistr/u-strstr.h: Likewise.
12851 * lib/unistr/u-strtok.h: Likewise.
12852 * lib/unistr/u16-check.c: Likewise.
12853 * lib/unistr/u16-chr.c: Likewise.
12854 * lib/unistr/u16-cmp.c: Likewise.
12855 * lib/unistr/u16-cpy-alloc.c: Likewise.
12856 * lib/unistr/u16-cpy.c: Likewise.
12857 * lib/unistr/u16-endswith.c: Likewise.
12858 * lib/unistr/u16-mblen.c: Likewise.
12859 * lib/unistr/u16-mbsnlen.c: Likewise.
12860 * lib/unistr/u16-mbtouc-aux.c: Likewise.
12861 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
12862 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
12863 * lib/unistr/u16-mbtouc.c: Likewise.
12864 * lib/unistr/u16-mbtoucr.c: Likewise.
12865 * lib/unistr/u16-move.c: Likewise.
12866 * lib/unistr/u16-next.c: Likewise.
12867 * lib/unistr/u16-prev.c: Likewise.
12868 * lib/unistr/u16-set.c: Likewise.
12869 * lib/unistr/u16-startswith.c: Likewise.
12870 * lib/unistr/u16-stpcpy.c: Likewise.
12871 * lib/unistr/u16-stpncpy.c: Likewise.
12872 * lib/unistr/u16-strcat.c: Likewise.
12873 * lib/unistr/u16-strchr.c: Likewise.
12874 * lib/unistr/u16-strcmp.c: Likewise.
12875 * lib/unistr/u16-strcpy.c: Likewise.
12876 * lib/unistr/u16-strcspn.c: Likewise.
12877 * lib/unistr/u16-strdup.c: Likewise.
12878 * lib/unistr/u16-strlen.c: Likewise.
12879 * lib/unistr/u16-strmblen.c: Likewise.
12880 * lib/unistr/u16-strmbtouc.c: Likewise.
12881 * lib/unistr/u16-strncat.c: Likewise.
12882 * lib/unistr/u16-strncmp.c: Likewise.
12883 * lib/unistr/u16-strncpy.c: Likewise.
12884 * lib/unistr/u16-strnlen.c: Likewise.
12885 * lib/unistr/u16-strpbrk.c: Likewise.
12886 * lib/unistr/u16-strrchr.c: Likewise.
12887 * lib/unistr/u16-strspn.c: Likewise.
12888 * lib/unistr/u16-strstr.c: Likewise.
12889 * lib/unistr/u16-strtok.c: Likewise.
12890 * lib/unistr/u16-to-u32.c: Likewise.
12891 * lib/unistr/u16-to-u8.c: Likewise.
12892 * lib/unistr/u16-uctomb-aux.c: Likewise.
12893 * lib/unistr/u16-uctomb.c: Likewise.
12894 * lib/unistr/u32-check.c: Likewise.
12895 * lib/unistr/u32-chr.c: Likewise.
12896 * lib/unistr/u32-cmp.c: Likewise.
12897 * lib/unistr/u32-cpy-alloc.c: Likewise.
12898 * lib/unistr/u32-cpy.c: Likewise.
12899 * lib/unistr/u32-endswith.c: Likewise.
12900 * lib/unistr/u32-mblen.c: Likewise.
12901 * lib/unistr/u32-mbsnlen.c: Likewise.
12902 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
12903 * lib/unistr/u32-mbtouc.c: Likewise.
12904 * lib/unistr/u32-mbtoucr.c: Likewise.
12905 * lib/unistr/u32-move.c: Likewise.
12906 * lib/unistr/u32-next.c: Likewise.
12907 * lib/unistr/u32-prev.c: Likewise.
12908 * lib/unistr/u32-set.c: Likewise.
12909 * lib/unistr/u32-startswith.c: Likewise.
12910 * lib/unistr/u32-stpcpy.c: Likewise.
12911 * lib/unistr/u32-stpncpy.c: Likewise.
12912 * lib/unistr/u32-strcat.c: Likewise.
12913 * lib/unistr/u32-strchr.c: Likewise.
12914 * lib/unistr/u32-strcmp.c: Likewise.
12915 * lib/unistr/u32-strcpy.c: Likewise.
12916 * lib/unistr/u32-strcspn.c: Likewise.
12917 * lib/unistr/u32-strdup.c: Likewise.
12918 * lib/unistr/u32-strlen.c: Likewise.
12919 * lib/unistr/u32-strmblen.c: Likewise.
12920 * lib/unistr/u32-strmbtouc.c: Likewise.
12921 * lib/unistr/u32-strncat.c: Likewise.
12922 * lib/unistr/u32-strncmp.c: Likewise.
12923 * lib/unistr/u32-strncpy.c: Likewise.
12924 * lib/unistr/u32-strnlen.c: Likewise.
12925 * lib/unistr/u32-strpbrk.c: Likewise.
12926 * lib/unistr/u32-strrchr.c: Likewise.
12927 * lib/unistr/u32-strspn.c: Likewise.
12928 * lib/unistr/u32-strstr.c: Likewise.
12929 * lib/unistr/u32-strtok.c: Likewise.
12930 * lib/unistr/u32-to-u16.c: Likewise.
12931 * lib/unistr/u32-to-u8.c: Likewise.
12932 * lib/unistr/u32-uctomb.c: Likewise.
12933 * lib/unistr/u8-check.c: Likewise.
12934 * lib/unistr/u8-chr.c: Likewise.
12935 * lib/unistr/u8-cmp.c: Likewise.
12936 * lib/unistr/u8-cpy-alloc.c: Likewise.
12937 * lib/unistr/u8-cpy.c: Likewise.
12938 * lib/unistr/u8-endswith.c: Likewise.
12939 * lib/unistr/u8-mblen.c: Likewise.
12940 * lib/unistr/u8-mbsnlen.c: Likewise.
12941 * lib/unistr/u8-mbtouc-aux.c: Likewise.
12942 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
12943 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
12944 * lib/unistr/u8-mbtouc.c: Likewise.
12945 * lib/unistr/u8-mbtoucr.c: Likewise.
12946 * lib/unistr/u8-move.c: Likewise.
12947 * lib/unistr/u8-next.c: Likewise.
12948 * lib/unistr/u8-prev.c: Likewise.
12949 * lib/unistr/u8-set.c: Likewise.
12950 * lib/unistr/u8-startswith.c: Likewise.
12951 * lib/unistr/u8-stpcpy.c: Likewise.
12952 * lib/unistr/u8-stpncpy.c: Likewise.
12953 * lib/unistr/u8-strcat.c: Likewise.
12954 * lib/unistr/u8-strchr.c: Likewise.
12955 * lib/unistr/u8-strcmp.c: Likewise.
12956 * lib/unistr/u8-strcpy.c: Likewise.
12957 * lib/unistr/u8-strcspn.c: Likewise.
12958 * lib/unistr/u8-strdup.c: Likewise.
12959 * lib/unistr/u8-strlen.c: Likewise.
12960 * lib/unistr/u8-strmblen.c: Likewise.
12961 * lib/unistr/u8-strmbtouc.c: Likewise.
12962 * lib/unistr/u8-strncat.c: Likewise.
12963 * lib/unistr/u8-strncmp.c: Likewise.
12964 * lib/unistr/u8-strncpy.c: Likewise.
12965 * lib/unistr/u8-strnlen.c: Likewise.
12966 * lib/unistr/u8-strpbrk.c: Likewise.
12967 * lib/unistr/u8-strrchr.c: Likewise.
12968 * lib/unistr/u8-strspn.c: Likewise.
12969 * lib/unistr/u8-strstr.c: Likewise.
12970 * lib/unistr/u8-strtok.c: Likewise.
12971 * lib/unistr/u8-to-u16.c: Likewise.
12972 * lib/unistr/u8-to-u32.c: Likewise.
12973 * lib/unistr/u8-uctomb-aux.c: Likewise.
12974 * lib/unistr/u8-uctomb.c: Likewise.
12975 * lib/unitypes.h: Likewise.
12976 * lib/uniwidth.h: Likewise.
12977 * lib/uniwidth/cjk.h: Likewise.
12978 * lib/uniwidth/u16-strwidth.c: Likewise.
12979 * lib/uniwidth/u16-width.c: Likewise.
12980 * lib/uniwidth/u32-strwidth.c: Likewise.
12981 * lib/uniwidth/u32-width.c: Likewise.
12982 * lib/uniwidth/u8-strwidth.c: Likewise.
12983 * lib/uniwidth/u8-width.c: Likewise.
12984 * lib/uniwidth/width.c: Likewise.
12986 2007-10-07 Bruno Haible <bruno@clisp.org>
12988 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
12989 The file is still under LGPL (see modules/inttypes).
12991 2007-10-06 Bruno Haible <bruno@clisp.org>
12993 * modules/trunc (Dependencies): Add 'extensions'.
12994 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
12995 Reported by Ben Pfaff <blp@gnu.org>.
12997 2007-10-06 Bruno Haible <bruno@clisp.org>
12999 * modules/freopen-tests: New file.
13000 * tests/test-freopen.c: New file.
13002 * modules/fopen-tests: New file.
13003 * tests/test-fopen.c: New file.
13005 * modules/fopen: New file.
13006 * lib/fopen.c: New file.
13007 * m4/fopen.m4: New file.
13008 * modules/freopen: New file.
13009 * lib/freopen.c: New file.
13010 * m4/freopen.m4: New file.
13011 * lib/stdio.in.h (fopen, freopen): New declarations.
13012 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
13013 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
13014 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
13015 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
13016 * doc/functions/fopen.texi: Mention the 'fopen' module.
13017 * doc/functions/freopen.texi: Mention the 'freopen' module.
13019 2007-10-06 Bruno Haible <bruno@clisp.org>
13021 * modules/open-tests: New file.
13022 * tests/test-open.c: New file.
13024 * modules/open: New file.
13025 * lib/open.c: New file.
13026 * m4/open.m4: New file.
13027 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
13029 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
13030 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
13032 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
13033 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
13035 * doc/functions/open.texi: Mention the 'open' module.
13037 2007-10-04 Bruno Haible <bruno@clisp.org>
13039 * modules/ceill-tests: New file.
13040 * tests/test-ceill.c: New file.
13042 * modules/ceill: New file.
13043 * lib/ceill.c: Replace entire file.
13044 * m4/ceill.m4: New file.
13045 * lib/math.in.h (ceill): Replace declaration.
13046 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
13047 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
13048 * doc/functions/ceill.texi: Mention the 'ceill' module.
13049 * modules/mathl (Files): Remove lib/ceill.c.
13050 (Depends-on): Add ceill.
13052 2007-10-04 Bruno Haible <bruno@clisp.org>
13054 * modules/ceilf-tests: New file.
13055 * tests/test-ceilf.c: New file.
13057 * modules/ceilf: New file.
13058 * lib/ceil.c: New file.
13059 * lib/ceilf.c: New file.
13060 * m4/ceilf.m4: New file.
13061 * lib/math.in.h (ceilf): New declaration.
13062 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
13064 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
13066 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
13068 2007-10-04 Bruno Haible <bruno@clisp.org>
13070 * modules/floorl-tests: New file.
13071 * tests/test-floorl.c: New file.
13073 * modules/floorl: New file.
13074 * lib/floorl.c: Replace entire file.
13075 * m4/floorl.m4: New file.
13076 * lib/math.in.h (floorl): Replace declaration.
13077 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
13078 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
13079 * doc/functions/floorl.texi: Mention the 'floorl' module.
13080 * modules/mathl (Files): Remove lib/floorl.c.
13081 (Depends-on): Add floorl.
13083 2007-10-04 Bruno Haible <bruno@clisp.org>
13085 * modules/floorf-tests: New file.
13086 * tests/test-floorf.c: New file.
13088 * modules/floorf: New file.
13089 * lib/floor.c: New file.
13090 * lib/floorf.c: New file.
13091 * m4/floorf.m4: New file.
13092 * lib/math.in.h (floorf): New declaration.
13093 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
13095 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
13097 * doc/functions/floorf.texi: Mention the 'floorf' module.
13099 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
13100 Bruno Haible <bruno@clisp.org>
13102 Advertise for the Git server instead of the CVS server.
13103 * doc/gnulib-intro.texi (Steady Development): Mention the Git
13104 repository instead of the CVS one.
13105 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
13106 about all VCS systems generically.
13107 * doc/gnulib.texi (Introduction): Capitalize `Git'.
13109 2007-10-04 Bruno Haible <bruno@clisp.org>
13111 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
13113 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
13115 2007-10-04 Bruno Haible <bruno@clisp.org>
13117 * modules/truncl-tests: New file.
13118 * tests/test-truncl.c: New file.
13120 * modules/truncl: New file.
13121 * lib/truncl.c: New file.
13122 * m4/truncl.m4: New file.
13123 * lib/math.in.h (truncl): New declaration.
13124 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
13126 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
13128 * doc/functions/truncl.texi: Mention the 'truncl' module.
13130 2007-10-04 Bruno Haible <bruno@clisp.org>
13132 * modules/truncf-tests: New file.
13133 * tests/test-truncf.c: New file.
13135 * modules/truncf: New file.
13136 * lib/trunc.c: Make paramerizable through USE_* macros.
13137 * lib/truncf.c: New file.
13138 * m4/truncf.m4: New file.
13139 * lib/math.in.h (truncf): New declaration.
13140 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
13142 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
13144 * doc/functions/truncf.texi: Mention the 'truncf' module.
13146 2007-10-03 Bruno Haible <bruno@clisp.org>
13148 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
13149 augmentation also for tests modules.
13150 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
13151 * modules/atexit-tests (Makefile.am): Likewise.
13152 * modules/binary-io-tests (Makefile.am): Likewise.
13153 * modules/c-strcase-tests (Makefile.am): Likewise.
13154 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
13155 * modules/canonicalize-tests (Makefile.am): Likewise.
13156 * modules/closein-tests (Makefile.am): Likewise.
13157 * modules/fprintf-posix-tests (Makefile.am): Likewise.
13158 * modules/freadahead-tests (Makefile.am): Likewise.
13159 * modules/fseek-tests (Makefile.am): Likewise.
13160 * modules/fseeko-tests (Makefile.am): Likewise.
13161 * modules/ftell-tests (Makefile.am): Likewise.
13162 * modules/ftello-tests (Makefile.am): Likewise.
13163 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
13164 * modules/isnanl-tests (Makefile.am): Likewise.
13165 * modules/lseek-tests (Makefile.am): Likewise.
13166 * modules/mbscasecmp-tests (Makefile.am): Likewise.
13167 * modules/mbscasestr-tests (Makefile.am): Likewise.
13168 * modules/mbschr-tests (Makefile.am): Likewise.
13169 * modules/mbscspn-tests (Makefile.am): Likewise.
13170 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
13171 * modules/mbspbrk-tests (Makefile.am): Likewise.
13172 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
13173 * modules/mbsrchr-tests (Makefile.am): Likewise.
13174 * modules/mbsspn-tests (Makefile.am): Likewise.
13175 * modules/mbsstr-tests (Makefile.am): Likewise.
13176 * modules/printf-posix-tests (Makefile.am): Likewise.
13177 * modules/snprintf-posix-tests (Makefile.am): Likewise.
13178 * modules/sprintf-posix-tests (Makefile.am): Likewise.
13179 * modules/tsearch-tests (Makefile.am): Likewise.
13180 * modules/uniname/uniname-tests (Makefile.am): Likewise.
13181 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
13182 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
13183 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
13184 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
13185 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
13186 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
13187 * modules/vprintf-posix-tests (Makefile.am): Likewise.
13188 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
13189 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
13190 * modules/xstrtoimax-tests (Makefile.am): Likewise.
13191 * modules/xstrtol-tests (Makefile.am): Likewise.
13192 * modules/xstrtoumax-tests (Makefile.am): Likewise.
13193 * modules/yesno-tests (Makefile.am): Likewise.
13195 2007-10-03 Bruno Haible <bruno@clisp.org>
13197 * modules/trunc-tests: New file.
13198 * tests/test-trunc.c: New file.
13200 * modules/trunc: New file.
13201 * lib/trunc.c: New file.
13202 * m4/trunc.m4: New file.
13203 * lib/math.in.h (trunc): New declaration.
13204 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
13206 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
13208 * doc/functions/trunc.texi: Mention the 'trunc' module.
13210 2007-10-03 Bruno Haible <bruno@clisp.org>
13212 * tests/test-fpending.c: New file, mostly copied
13213 from coreutils/lib/t-fpending.c.
13214 * modules/fpending-tests: New file.
13216 2007-10-03 Bruno Haible <bruno@clisp.org>
13218 Port the stdio extensions to QNX (untested).
13219 * lib/fseterr.c (fseterr): Add support for QNX.
13220 * lib/fbufmode.c (fbufmode): Likewise.
13221 * lib/freadable.c (freadable): Likewise.
13222 * lib/fwritable.c (fwritable): Likewise.
13223 * lib/freading.c (freading): Likewise.
13224 * lib/fwriting.c (fwriting): Likewise.
13225 * lib/freadahead.c (freadahed): Likewise.
13226 * lib/fpurge.c (fpurge): Likewise.
13227 * lib/fseeko.c (rpl_fseeko): Likewise.
13229 2007-10-03 Bruno Haible <bruno@clisp.org>
13230 Jim Meyering <jim@meyering.net>
13231 Eric Blake <ebb9@byu.net>
13233 * doc/relocatable.texi: Use @command instead of @program.
13235 2007-10-02 Jim Meyering <jim@meyering.net>
13237 Perform one more "_.h" -> ".in.h" substitution.
13238 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
13239 instead of unistd_.h here, too.
13241 2007-10-01 Bruno Haible <bruno@clisp.org>
13243 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
13244 Needed for the alloca-opt module.
13246 2007-09-30 Bruno Haible <bruno@clisp.org>
13248 * lib/alloca.in.h: Renamed from lib/alloca_.h.
13249 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
13251 * lib/argz.in.h: Renamed from lib/argz_.h.
13252 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
13253 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
13254 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
13256 * lib/dirent.in.h: Renamed from lib/dirent_.h.
13257 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
13259 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
13260 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
13262 * lib/float.in.h: Renamed from lib/float_.h.
13263 * modules/float (Files, Makefile.am): Use float.in.h instead of
13265 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
13266 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
13268 * lib/getopt.in.h: Renamed from lib/getopt_.h.
13269 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
13271 * lib/glob.in.h: Renamed from lib/glob_.h.
13272 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
13273 * lib/iconv.in.h: Renamed from lib/iconv_.h.
13274 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
13276 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
13277 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
13279 * lib/locale.in.h: Renamed from lib/locale_.h.
13280 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
13282 * lib/math.in.h: Renamed from lib/math_.h.
13283 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
13284 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
13285 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
13286 of netinet_in_.h. Add dependency.
13287 * lib/poll.in.h: Renamed from lib/poll_.h.
13288 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
13289 * lib/search.in.h: Renamed from lib/search_.h.
13290 * modules/search (Files, Makefile.am): Use search.in.h instead of
13292 * lib/signal.in.h: Renamed from lib/signal_.h.
13293 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
13295 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
13296 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
13298 * lib/stdint.in.h: Renamed from lib/stdint_.h.
13299 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
13301 * lib/stdio.in.h: Renamed from lib/stdio_.h.
13302 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
13304 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
13305 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
13307 * lib/string.in.h: Renamed from lib/string_.h.
13308 * modules/string (Files, Makefile.am): Use string.in.h instead of
13310 * doc/gnulib-tool.texi (Initial import): Update.
13311 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
13312 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
13313 of sys_select_.h. Add dependency.
13314 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
13315 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
13317 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
13318 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
13320 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
13321 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
13323 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
13324 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
13326 * lib/time.in.h: Renamed from lib/time_.h.
13327 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
13328 * lib/unistd.in.h: Renamed from lib/unistd_.h.
13329 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
13331 * lib/wchar.in.h: Renamed from lib/wchar_.h.
13332 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
13334 * lib/wctype.in.h: Renamed from lib/wctype_.h.
13335 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
13337 * build-aux/bootstrap (slurp): Update.
13338 * lib/.cppi-disable: Update.
13340 2007-09-30 Bruno Haible <bruno@clisp.org>
13342 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
13345 2007-09-30 Bruno Haible <bruno@clisp.org>
13347 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
13349 2007-09-29 Bruno Haible <bruno@clisp.org>
13351 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
13353 2007-09-29 Bruno Haible <bruno@clisp.org>
13355 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
13356 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
13357 * build-aux/install-reloc: Compile also areadlink.c.
13358 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
13360 2007-09-29 Bruno Haible <bruno@clisp.org>
13362 * gnulib-tool (func_emit_initmacro_done): Indentation.
13364 2007-09-29 Bruno Haible <bruno@clisp.org>
13366 * README: Add CVS checkout update instructions.
13367 Info from Bob Proulx <bob@proulx.com>.
13369 2007-09-28 Eric Blake <ebb9@byu.net>
13371 Provide move-if-change.
13372 * build-aux/move-if-change: New file, based on best practice
13373 rather than any canonical upstream location.
13375 2007-09-28 Jim Meyering <jim@meyering.net>
13377 Fix canonicalize loop-detection corner case.
13378 Do not attempt to stat the symlink values stored via seen_triple.
13379 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
13380 on linux-2.6.18, (but not 2.6.22).
13381 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
13382 triple_compare. The former compares dev,ino,filename, while the latter
13383 would actually stat dirname(filename) when dev and ino were equal.
13384 * lib/hash-triple.c: Install <string.h>.
13386 (triple_compare_ino_str): New function.
13387 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
13389 2007-09-28 Eric Blake <ebb9@byu.net>
13391 Enforce that AC_REPLACE_FUNCS files exist.
13392 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
13393 override check for typos.
13395 Fix test-closein on Solaris 10.
13396 * tests/test-closein.c (main): Don't assume stdin can be inherited
13397 closed on all systems.
13398 * tests/test-closein.sh: Likewise.
13399 Reported by Piotr Tarnowski.
13401 2007-09-28 Jim Meyering <jim@meyering.net>
13403 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
13405 2007-09-27 Jim Meyering <jim@meyering.net>
13407 canonicalize: Avoid a false-positive cycle failure.
13408 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
13409 Sort. Remove cycle-check.
13410 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
13412 (seen_triple): New function.
13413 (canonicalize_filename_mode): Use it instead of cycle-check.
13414 * tests/test-canonicalize.c: Add a test for this bug.
13415 * tests/test-canonicalize.sh: Set up and run the test.
13417 New module, file-set, from coreutils.
13418 * modules/file-set: Define it.
13419 * lib/file-set.c, lib/file-set.h: Implement.
13421 New module, hash-triple, from coreutils.
13422 * modules/hash-triple: Define it.
13423 * lib/hash-triple.c, lib/hash-triple.h: Implement.
13425 2007-09-25 Eric Blake <ebb9@byu.net>
13427 Fix strerror on Interix.
13428 * lib/string_.h (strerror): Declare replacement.
13429 * doc/functions/strerror.texi (strerror): Document the Interix
13431 * modules/string (Makefile.am): Support new hooks.
13432 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
13433 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
13434 gl_FUNC_STRERROR_SEPARATE.
13435 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
13436 * lib/strerror.c (rpl_strerror): Provide replacement.
13437 * modules/strerror (Depends-on): Add string.
13438 (configure.ac): Detect use of module.
13439 * tests/test-strerror.c: New file.
13440 * modules/strerror-tests: New test module.
13441 * modules/argp (Depends-on): Add strerror.
13442 * modules/error (Depends-on): Likewise.
13443 Reported by Martin Koeppe.
13445 2007-09-24 Bruno Haible <bruno@clisp.org>
13447 * README: Update git instructions.
13449 2007-09-24 Eric Blake <ebb9@byu.net>
13451 Revert fpending breakage from 2007-09-08.
13452 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
13455 2007-09-24 Jim Meyering <jim@meyering.net>
13457 filenamecat.c: Add a test.
13458 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
13459 showing how the function works when DIR is the empty string.
13461 2007-09-21 Simon Josefsson <simon@josefsson.org>
13463 * tests/test-canonicalize.sh: Turn on executable bit.
13465 2007-09-19 Eric Blake <ebb9@byu.net>
13467 * README: Update CVS instructions.
13469 2007-09-18 Bruno Haible <bruno@clisp.org>
13471 * modules/areadlink: New file.
13472 * lib/areadlink.h (areadlink): New declaration.
13473 * lib/areadlink.c: New file, based on lib/xreadlink.c.
13475 2007-09-17 Jim Meyering <jim@meyering.net>
13477 * lib/savewd.c (ESTALE) [!defined]: Define.
13478 Reported to be required on Interix by Martin Koeppe.
13480 2007-09-17 Bruno Haible <bruno@clisp.org>
13482 * gnulib-tool (func_version): Use $version.
13484 2007-09-16 Bruno Haible <bruno@clisp.org>
13486 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
13487 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
13488 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
13489 Reported by Greg Schafer <gschafer@zip.com.au>.
13491 2007-09-15 Bruno Haible <bruno@clisp.org>
13493 * gnulib-tool (sed): Try a little harder to make bash understand the
13495 Reported by Bruce Korb <bruce.korb@gmail.com>.
13497 2007-09-13 Eric Blake <ebb9@byu.net>
13499 * ChangeLog: Remove conflict markers.
13501 2007-09-13 Simon Josefsson <simon@josefsson.org>
13503 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
13504 Reported by Bruno Haible <bruno@clisp.org>.
13506 2007-09-12 Bruno Haible <bruno@clisp.org>
13508 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
13509 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
13512 2007-09-12 Eric Blake <ebb9@byu.net>
13514 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
13515 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
13516 Autoconf definition.
13517 * modules/euidaccess (Depends-on): Add extensions, for
13518 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
13519 * modules/fnmatch (Depends-on): Likewise.
13520 * modules/getaddrinfo (Depends-on): Likewise.
13521 * modules/getdelim (Depends-on): Likewise.
13522 * modules/getline (Depends-on): Likewise.
13523 * modules/getsubopt (Depends-on): Likewise.
13524 * modules/gettext (Depends-on): Likewise.
13525 * modules/group-member (Depends-on): Likewise.
13526 * modules/mbchar (Depends-on): Likewise.
13527 * modules/memmem (Depends-on): Likewise.
13528 * modules/mempcpy (Depends-on): Likewise.
13529 * modules/memrchr (Depends-on): Likewise.
13530 * modules/pagealign_alloc (Depends-on): Likewise.
13531 * modules/readutmp (Depends-on): Likewise.
13532 * modules/stpcpy (Depends-on): Likewise.
13533 * modules/stpncpy (Depends-on): Likewise.
13534 * modules/strchrnul (Depends-on): Likewise.
13535 * modules/strndup (Depends-on): Likewise.
13536 * modules/strsep (Depends-on): Likewise.
13537 * modules/strverscmp (Depends-on): Likewise.
13538 * modules/vasprintf (Depends-on): Likewise.
13539 * modules/wcwidth (Depends-on): Likewise.
13540 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
13541 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
13542 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
13543 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
13544 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13545 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13546 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
13547 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
13548 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
13549 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
13550 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13551 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
13552 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
13553 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
13554 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
13555 * m4/readutmp.m4 (gl_READUTMP): Likewise.
13556 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13557 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
13558 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13559 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
13560 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
13561 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
13562 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
13563 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
13564 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
13565 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13566 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
13567 so that lock.m4 can be used in gettext without extensions module.
13569 2007-09-11 Bruno Haible <bruno@clisp.org>
13571 * m4/isc-posix.m4: Remove file.
13572 Suggested by Eric Blake.
13574 2007-09-11 Eric Blake <ebb9@byu.net>
13576 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
13578 2007-09-10 Bruno Haible <bruno@clisp.org>
13580 * posix-modules: Fix typo in error message.
13581 Reported by Matt <mkraai@beckman.com>.
13583 2007-09-09 Bruno Haible <bruno@clisp.org>
13585 * doc/functions/getdelim.texi: Update list of platforms lacking the
13587 * doc/functions/getline.texi: Likewise.
13589 2007-09-09 Jim Meyering <jim@meyering.net>
13591 * lib/hash.c (hash_initialize): Detect calloc failure.
13592 Reported by Bruno Haible.
13594 2007-09-09 Bruno Haible <bruno@clisp.org>
13596 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
13597 malloc or realloc fails.
13599 2007-09-09 Bruno Haible <bruno@clisp.org>
13601 * modules/getcwd (Depends-on): Add malloc-posix.
13602 * modules/glob (Depends-on): Likewise.
13603 * modules/putenv (Depends-on): Likewise.
13604 * modules/strdup (Depends-on): Likewise.
13605 * modules/getdelim (Depends-on): Add realloc-posix.
13606 * modules/read-file (Depends-on): Likewise.
13608 2007-09-09 Bruno Haible <bruno@clisp.org>
13610 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
13611 (gl_FUNC_MALLOC_POSIX): Require it.
13612 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
13613 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
13614 * modules/realloc (Files): Add m4/malloc.m4.
13615 * modules/calloc (Files): Likewise.
13617 2007-09-09 Bruno Haible <bruno@clisp.org>
13619 * modules/malloc-posix: New file.
13620 * modules/malloc (Depends-on): Add malloc-posix.
13621 * lib/malloc.c: Include errno.h.
13622 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
13623 and a POSIX-compatible malloc into a single function. Set ENOMEM
13624 when returning NULL.
13625 * m4/malloc.m4: New file.
13626 * doc/functions/malloc.texi: Mention the malloc-posix module.
13627 * lib/stdlib_.h (malloc): New declaration.
13628 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
13629 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
13630 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
13631 and HAVE_MALLOC_POSIX.
13633 2007-09-09 Bruno Haible <bruno@clisp.org>
13635 * modules/realloc-posix: New file.
13636 * modules/realloc (Depends-on): Add realloc-posix.
13637 * lib/realloc.c: Include errno.h.
13638 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
13639 and a POSIX-compatible realloc into a single function. Set ENOMEM
13640 when returning NULL.
13641 * m4/realloc.m4: New file.
13642 * doc/functions/realloc.texi: Mention the realloc-posix module.
13643 * lib/stdlib_.h (realloc): New declaration.
13644 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
13645 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
13646 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
13647 and HAVE_REALLOC_POSIX.
13649 2007-09-09 Bruno Haible <bruno@clisp.org>
13651 * modules/calloc-posix: New file.
13652 * modules/calloc (Depends-on): Add calloc-posix.
13653 * lib/calloc.c: Include errno.h.
13654 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
13655 and a POSIX-compatible calloc into a single function. Set ENOMEM
13656 when returning NULL.
13657 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
13658 * doc/functions/calloc.texi: Mention the calloc-posix module.
13659 * lib/stdlib_.h (calloc): New declaration.
13660 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
13661 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
13662 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
13663 and HAVE_CALLOC_POSIX.
13665 2007-09-09 Bruno Haible <bruno@clisp.org>
13667 Allow for modules to show an arbitrary notice.
13668 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
13669 * gnulib-tool: New option --extract-notice.
13670 (func_usage): Document it.
13671 (sed_extract_prog): Update.
13672 (func_get_notice): New function.
13673 (func_modules_notice): New function.
13674 (func_import, func_create_testdir): Invoke it.
13675 Suggested by Jim Meyering.
13677 2007-09-09 Bruno Haible <bruno@clisp.org>
13679 * gnulib-tool: New options --verbose, --quiet.
13680 (func_usage): Document them.
13681 (verbose): New variable.
13682 (func_execute_command): New function.
13683 (func_import): Don't show the module list and the file list if
13685 (func_create_testdir): Likewise. Use func_execute_command.
13686 (func_create_megatestdir): Use func_execute_command.
13688 2007-09-08 Bruno Haible <bruno@clisp.org>
13690 * gnulib-tool (func_import): Prefer rsync over wget when available,
13691 for fetching the PO files.
13693 2007-09-08 Bruno Haible <bruno@clisp.org>
13695 * posix-modules: New file. Portions copied from gnulib-tool.
13696 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
13698 2007-09-08 Jim Meyering <jim@meyering.net>
13700 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
13701 * lib/fpending.h: Rename from __fpending.h.
13702 * lib/fpending.c: Rename from __fpending.c.
13703 Include "fpending.h", not "__fpending.h".
13704 * lib/__fpending.h, lib/__fpending.c: Remove files.
13705 * modules/fpending (Files): Reflect new file names.
13706 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
13708 2007-09-08 Bruno Haible <bruno@clisp.org>
13710 * m4/inttypes-h.m4: Remove stub file.
13712 2007-09-07 Simon Josefsson <simon@josefsson.org>
13714 * doc/headers/stdint.texi: Discuss #include_next issue.
13716 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
13718 * build-aux/bootstrap: Remove obsolete comment about wget --help.
13720 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13722 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
13725 2007-09-03 Jim Meyering <jim@meyering.net>
13727 New module: git-version-gen.
13728 * modules/git-version-gen: New file.
13730 Import changes from coreutils for bootstrap script.
13732 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
13734 bootstrap: uses rsync to download the .po files
13735 * build-aux/bootstrap (po_download_command_format): New global.
13736 (download_po_files): Use rsync.
13737 (update_po_files): Don't remove .po files after download,
13738 so future rsync runs can take advantage of the copies.
13740 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
13742 Solve the unnecessary-.po-file-regeneration problem once and for all.
13743 * build-aux/bootstrap (download_po_files): New function, renamed from
13744 get_translations. Now, downloads, but doesn't update LINGUAS.
13745 (update_po_files): New function.
13747 bootstrap: Ignore more.
13748 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
13749 uniwidth to e.g., lib/.gitignore.
13750 (slurp): Handle the sys_stat_.h -> sys mapping, too.
13752 * build-aux/bootstrap: New setting: vc_ignore.
13753 (insert_sorted_if_absent): Create $file if absent.
13754 Adapt to new, possibly empty, list: $vc_ignore.
13756 bootstrap: generate more ignorable names
13757 * build-aux/bootstrap (slurp): When generating ignorable names,
13758 also map .sin to .sed, .gperf to .c, and .y to .c.
13760 2007-09-03 Jim Meyering <jim@meyering.net>
13762 * build-aux/git-version-gen: New file, from coreutils. For details, see
13763 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
13765 2007-09-02 Bruno Haible <bruno@clisp.org>
13767 Fix mis-recognition of 'mcs' on QNX 6.
13768 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
13769 output contains the string "Mono".
13770 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
13771 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
13773 2007-09-01 Bruno Haible <bruno@clisp.org>
13775 Fix collision between uniwidth/* and linebreak modules.
13776 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
13777 u32_width): Remove declarations.
13778 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
13779 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
13780 streq3, streq2, streq1, streq0): Remove functions.
13781 (STREQ): Remove macro.
13782 (is_cjk_encoding): Remove function.
13783 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
13784 (uc_width, u8_width, u16_width, u32_width): Remove functions.
13785 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
13786 * NEWS: Document the change.
13788 2007-09-01 Bruno Haible <bruno@clisp.org>
13790 * lib/streq.h: Add double-inclusion guard.
13792 2007-09-01 Karl Berry <karl@gnu.org>
13794 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
13796 2007-08-28 Jim Meyering <jim@meyering.net>
13798 Rename mreadlink_with_size to areadlink_with_size.
13799 * NEWS: Document the change.
13800 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
13801 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
13802 * lib/mreadlink.h: Rename this to...
13803 * lib/areadlink.h: ...this.
13804 * modules/mreadlink-with-size: Rename this to...
13805 * modules/areadlink-with-size: ...this.
13806 * lib/canonicalize.c: Reflect the renaming.
13807 * modules/canonicalize: Likewise.
13809 2007-08-26 Bruno Haible <bruno@clisp.org>
13811 * gnulib-tool (func_import): When deciding which files to remove,
13812 consider also dangling symbolic links.
13813 Reported by Eric Blake.
13815 2007-08-26 Bruno Haible <bruno@clisp.org>
13817 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
13819 2007-08-23 Simon Josefsson <simon@josefsson.org>
13821 * lib/readline.c: Don't include getline.h, the prototype is now
13824 2007-08-23 Jim Meyering <jim@meyering.net>
13827 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
13828 around the funlockfile call, since funlockfile never sets errno.
13829 Don't set errno upon failed realloc.
13831 2007-08-22 Eric Blake <ebb9@byu.net>
13834 * lib/getdelim.c (getdelim): Revert regression that required *n to
13835 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
13836 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
13837 getdelim, rather than whether implementation is missing.
13838 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
13839 * lib/stdio_.h (getline): Also declare if replacement is
13841 * doc/functions/getdelim.texi: New file.
13842 * doc/functions/getline.texi: Likewise.
13843 * doc/gnulib.texi (Function Substitutes): Add new files.
13844 Reported by Bruno Haible.
13846 2007-08-22 Ludovic Courtès <ludo@gnu.org>
13848 * users.txt: Add Guile.
13850 2007-08-22 Eric Blake <ebb9@byu.net>
13852 * tests/test-getdelim.c (main): Use remove, not unlink.
13853 * tests/test-getline.c (main): Likewise.
13855 Move getline and getdelim into stdio.h, per POSIX 200x.
13856 * modules/getline (Files): Remove getline.h.
13857 (Depends-on): Add stdio.
13858 (configure.ac): Add module indicator.
13859 * modules/getdelim (Files): Remove getdelim.h.
13860 (Depends-on): Add stdio.
13861 (configure.ac): Add module indicator.
13862 * modules/stdio (Makefile.am): Work with new indicators.
13863 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
13864 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
13865 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13866 * lib/getdelim.h: Delete.
13867 * lib/getline.h: Delete.
13868 * lib/stdio_.h (getdelim, getline): Declare.
13869 * modules/getdelim-tests: New module.
13870 * modules/getline-tests: Likewise.
13871 * tests/test-getdelim.c: New file.
13872 * tests/test-getline.c: Likewise.
13873 * NEWS: Document the change.
13874 * lib/getline.c: Update choice of header.
13875 * lib/csharpcomp.c: Likewise.
13876 * lib/getpass.c: Likewise.
13877 * lib/javacomp.c: Likewise.
13878 * lib/javaversion.c: Likewise.
13879 * lib/yesno.c: Likewise.
13880 * lib/getdelim.c: Likewise.
13881 (getdelim): Set errno on failure, and avoid memory leak.
13883 2007-08-19 Bruno Haible <bruno@clisp.org>
13885 * modules/closein (Depends-on): Add freadahead.
13886 * lib/closein.c: Include freadahead.h.
13887 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
13890 2007-08-19 Bruno Haible <bruno@clisp.org>
13892 * modules/freadahead-tests: New file.
13893 * tests/test-freadahead.sh: New file.
13894 * tests/test-freadahead.c: New file.
13896 * modules/freadahead: New file.
13897 * lib/freadahead.h: New file.
13898 * lib/freadahead.c: New file.
13899 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
13900 fbufmode, fpurge, freadable, fwritable.
13902 2007-08-19 Eric Blake <ebb9@byu.net>
13904 Test yesno in combination with closein.
13905 * lib/yesno.c (yesno): Document use of stdin.
13906 * modules/yesno-tests (Files): New module.
13907 * tests/test-yesno.c (main): New file.
13908 * tests/test-yesno.sh: Likewise.
13910 2007-08-19 Bruno Haible <bruno@clisp.org>
13912 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
13913 * lib/fseeko.c (rpl_fseeko): Likewise.
13914 * lib/fseterr.c (fseterr): Likewise.
13916 2007-08-19 Bruno Haible <bruno@clisp.org>
13918 * tests/test-lseek.c (main): Disable a test for BeOS.
13919 * doc/functions/lseek.texi: Document the BeOS bug.
13921 2007-08-19 Bruno Haible <bruno@clisp.org>
13922 Eric Blake <ebb9@byu.net>
13924 * lib/lseek.c: Include <sys/stat.h>.
13925 (rpl_lseek): Add workaround code also for Unix platforms.
13927 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
13928 * doc/functions/lseek.texi: Document BeOS definiency.
13930 2007-08-18 Bruno Haible <bruno@clisp.org>
13932 * modules/fstrcmp-tests: New file.
13933 * tests/test-fstrcmp.c: New file.
13935 2007-08-18 Bruno Haible <bruno@clisp.org>
13937 * modules/fstrcmp: New file, from GNU gettext with modifications.
13938 * lib/fstrcmp.h: New file, from GNU gettext.
13939 * lib/fstrcmp.c: New file, from GNU gettext.
13940 * MODULES.html.sh (String handling): Add fstrcmp.
13942 2007-08-18 Bruno Haible <bruno@clisp.org>
13944 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
13946 (diag, compareseq): Remove const from the ctxt argument.
13947 (USE_HEURISTIC): Undefine at the end.
13949 2007-08-18 Jim Meyering <jim@meyering.net>
13951 New file: lib/idcache.h
13952 * NEWS: Mention the addition.
13953 * modules/idcache (Files): Add lib/idcache.h
13954 * lib/idcache.c: Include "idcache.h".
13955 Don't include <sys/types.h>.
13956 Add a FIXME comment.
13957 Move file-scoped "static" declarations to the top.
13958 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
13960 2007-08-17 Bruno Haible <bruno@clisp.org>
13961 and Paul Eggert <eggert@cs.ucla.edu>
13963 * MODULES.html.sh: Add diffseq.
13964 * modules/diffseq: New file.
13965 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
13966 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
13968 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
13970 Import changes from coreutils for bootstrap script.
13972 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
13974 * build-aux/bootstrap (slurp): Work even in environments where
13975 "ls" defaults to "ls -A". Put in a FIXME, though, since the
13976 current code does not slurp files whose names start with ".", and
13977 this looks like it might be a troublesome area.
13979 2007-07-11 Jim Meyering <jim@meyering.net>
13981 If there's a GPL vN copyright comment, require that N == 3.
13983 2007-07-08 Jim Meyering <jim@meyering.net>
13985 Run the coreutils-specific code only if tests/Makefile.am.in exists.
13986 * build-aux/bootstrap (mam_template): Move definition out of loop.
13988 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
13990 * build-aux/bootstrap (symlink_to_dir): Rename function from
13991 symlink_to_gnulib. Add a directory parameter. Update all
13993 (cp_mark_as_generated): Also check for -- and link to -- files in
13996 2007-07-08 Jim Meyering <jim@meyering.net>
13998 Adapt to deeper hierarchy in gnulib.
13999 * build-aux/bootstrap (symlink_to_dir): If the destination
14000 directory doesn't exist, create it. This is required at least for
14001 "lib/uniwidth/cjk.h".
14003 2007-05-15 Jim Meyering <jim@meyering.net>
14005 * build-aux/bootstrap: Now that generated Makefile.am files
14006 are no longer under version control, they must be created at
14009 2007-08-14 Ben Pfaff <blp@gnu.org>
14011 * lib/count-one-bits.h: Add comments. From Bruno Haible.
14013 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
14015 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
14016 given the changes below.
14017 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
14018 even on hosts that have padding bits beyond the supported 64.
14020 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
14022 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
14023 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
14024 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
14026 (xstrtol_error): Remove.
14027 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
14028 but with a different signature.
14029 (ATTRIBUTE_NORETURN, __attribute__): New macros.
14030 * lib/xstrtol-error.c: Include exitfail.h.
14031 (xstrtol_fatal): New function, with a different signature from the
14032 old xstrtol_error, so that the caller need not worry about passing
14033 in an exit status, or about storage management of the option argument.
14034 (xstrtol_error): Now a static function. Redo signature to
14035 implement xstrtol_fatal. Output the correct number of hyphens in
14036 front of the option so that the caller need not worry about
14037 storage management.
14039 (_): Remove; not used now.
14040 * modules/xstrtol: Depend on getopt.
14041 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
14042 of old STRTOL_FATAL_ERROR macro.
14043 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
14045 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
14046 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
14048 2007-08-08 Eric Blake <ebb9@byu.net>
14050 * lib/xstrtol-error.c: Add missing include.
14052 Move xstrtol messages into gnulib domain, when --pobase is used.
14053 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
14054 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
14055 * modules/xstrtol (Files): Distribute new file.
14056 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
14057 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
14058 * tests/test-xstrtol.c: ...into new file.
14059 * tests/test-xstrtoul.c: Also test xstrtoul.
14060 * tests/test-xstrtoimax.c: Also test xstrtoimax.
14061 * tests/test-xstrtoumax.c: Also test xstrtoumax.
14062 * tests/test-xstrtol.sh: Drive the tests.
14063 * tests/test-xstrtoimax.sh: Likewise.
14064 * tests/test-xstrtoumax.sh: Likewise.
14065 * modules/xstrtol-tests: New module.
14066 * modules/xstrtoimax-tests: Likewise.
14067 * modules/xstrtoumax-tests: Likewise.
14069 2007-08-08 Jim Meyering <jim@meyering.net>
14071 New function: mfile_name_concat.
14072 * lib/filenamecat.c (mfile_name_concat): New function, just like
14073 file_name_concat, but return NULL upon failure rather than exiting
14075 * lib/filenamecat.h: Declare it.
14077 2007-08-07 Bruno Haible <bruno@clisp.org>
14079 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
14080 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
14082 Reported by Eric Blake.
14084 2007-08-07 Simon Josefsson <simon@josefsson.org>
14086 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
14087 * modules/crypto/arcfour (License): Likewise.
14088 * modules/crypto/des-tests (License): Likewise.
14089 * modules/crypto/gc-arctwo-tests (License): Likewise.
14090 * modules/crypto/gc-des-tests (License): Likewise.
14091 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
14092 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
14093 * modules/crypto/gc-md2-tests (License): Likewise.
14094 * modules/crypto/gc-md4-tests (License): Likewise.
14095 * modules/crypto/gc-md5-tests (License): Likewise.
14096 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
14097 * modules/crypto/gc-rijndael-tests (License): Likewise.
14098 * modules/crypto/gc-sha1-tests (License): Likewise.
14099 * modules/crypto/gc-tests (License): Likewise.
14100 * modules/crypto/hmac-md5 (License): Likewise.
14101 * modules/crypto/hmac-sha1 (License): Likewise.
14102 * modules/crypto/md2-tests (License): Likewise.
14103 * modules/crypto/md4-tests (License): Likewise.
14104 * modules/crypto/md5 (License): Likewise.
14105 * modules/crypto/rijndael (License): Likewise.
14106 * modules/crypto/sha1 (License): Likewise.
14107 * modules/memxor (License): Likewise.
14109 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
14110 and Bruno Haible <bruno@clisp.org>
14112 * NEWS: Describe interface changes to human, xstrtol.
14113 * lib/human.h: Include <xstrtol.h>.
14114 (human_options): Return enum strtol_error, not int. Remove
14115 bool arg; take int * instead.
14116 * lib/human.c: Don't include "gettext.h".
14117 (_): Remove; no longer used.
14118 Don't include <xstrtol.h>, since human.h does it.
14119 (human_options): Adjust to abovementioned interface changes.
14120 Do not report error to stderr; that's now the caller's
14122 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
14124 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
14125 Str, Argument_type_string. All uses changed. Put " argument"
14126 in diagnostics to make them clearer. Change wording of suffix
14127 message for clarity.
14128 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
14129 Argument_type_string.
14130 (STRTOL_FATAL_WARN): Remove; no longer used.
14131 * modules/human (Depends-on): Remove gettext-h.
14133 2007-08-06 Simon Josefsson <simon@josefsson.org>
14135 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
14137 2007-07-31 Bruno Haible <bruno@clisp.org>
14139 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
14140 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
14141 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
14143 2007-07-31 Bruno Haible <bruno@clisp.org>
14145 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
14146 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
14148 2007-07-30 Bruno Haible <bruno@clisp.org>
14150 * modules/base64 (License): Use the synonymous term "LGPLv2+".
14151 * modules/c-ctype (License): Likewise.
14152 * modules/c-strcase (License): Likewise.
14153 * modules/check-version (License): Likewise.
14154 * modules/iconv (License): Likewise.
14155 * modules/iconv_open (License): Likewise.
14156 * modules/read-file (License): Likewise.
14157 * modules/striconv (License): Likewise.
14158 * modules/strverscmp (License): Likewise.
14159 * modules/vasprintf (License): Likewise.
14160 * modules/crypto/des (License): Likewise.
14161 * modules/crypto/gc (License): Likewise.
14162 * modules/crypto/gc-arcfour (License): Likewise.
14163 * modules/crypto/gc-arctwo (License): Likewise.
14164 * modules/crypto/gc-des (License): Likewise.
14165 * modules/crypto/gc-hmac-md5 (License): Likewise.
14166 * modules/crypto/gc-hmac-sha1 (License): Likewise.
14167 * modules/crypto/gc-md2 (License): Likewise.
14168 * modules/crypto/gc-md4 (License): Likewise.
14169 * modules/crypto/gc-md5 (License): Likewise.
14170 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
14171 * modules/crypto/gc-random (License): Likewise.
14172 * modules/crypto/gc-rijndael (License): Likewise.
14173 * modules/crypto/gc-sha1 (License): Likewise.
14174 * modules/crypto/md2 (License): Likewise.
14175 * modules/crypto/md4 (License): Likewise.
14177 2007-07-30 Jim Meyering <jim@meyering.net>
14179 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
14180 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
14181 it has valid stat data. This bug would cause du not to count the
14182 sizes of inaccessible directories.
14183 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
14184 in <http://bugzilla.redhat.com/250077>.
14186 2007-07-25 Peter O'Gorman <peter@pogma.com>
14187 Bruno Haible <bruno@clisp.org>
14189 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
14190 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
14191 #include_next, gives a diagnostic about it, but reports no error in
14193 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
14195 2007-07-24 Ben Pfaff <blp@gnu.org>
14197 Improve name: "count-one-bits" is better than "popcount".
14198 * MODULES.html.sh: Update name.
14199 * lib/popcount.h: Renamed lib/count-one-bits.h.
14200 (popcount): Renamed count_one_bits.
14201 (popcountl): Renamed count_one_bits_l.
14202 (popcountll): Renamed count_one_bits_ll.
14203 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
14204 * modules/popcount: Renamed module/count-one-bits.
14205 * modules/popcount-tests: Renamed module/count-one-bits-tests.
14206 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
14208 2007-07-23 Ben Pfaff <blp@gnu.org>
14210 * lib/popcount.h (popcount32): Reduce size of constants, to allow
14211 better code generation, and add U to large constants to avoid
14212 warnings, in non-GCC case.
14213 Suggested by Bruno Haible.
14215 2007-07-23 Ben Pfaff <blp@gnu.org>
14217 * lib/popcount.h: Use verify_true instead of if...abort.
14218 * modules/popcount: Depend on verify module.
14219 Suggested by Jim Meyering.
14221 2007-07-23 Bruno Haible <bruno@clisp.org>
14223 * gnulib-tool (func_import): Create a .cvsignore file also when the
14224 directory is not yet in CVS but the toplevel directory is. When
14225 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
14226 Reported by Karl Berry.
14228 2007-07-22 Ben Pfaff <blp@gnu.org>
14230 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
14232 Suggested by Eric Blake.
14234 2007-07-22 Ben Pfaff <blp@gnu.org>
14236 New module: popcount.
14237 * MODULES.html.sh: Add popcount.
14238 * modules/popcount: New file.
14239 * modules/popcount-tests: New file.
14240 * tests/test-popcount.c: New file.
14241 * lib/popcount.h: New file.
14242 * m4/popcount.m4: New file.
14244 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
14246 * build-aux/announce-gen: Update to GPLv3.
14248 * build-aux/config.guess: Update from config.
14250 2007-07-21 Bruno Haible <bruno@clisp.org>
14252 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
14253 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
14255 2007-07-20 Jim Meyering <jim@meyering.net>
14257 * check-module: Diagnose a self-dependency.
14259 2007-07-19 Bruno Haible <bruno@clisp.org>
14261 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
14263 Reported by Eric Blake.
14265 2007-07-18 Bruno Haible <bruno@clisp.org>
14267 * gnulib-tool: New options --po-base, --po-domain.
14268 (func_usage): Document them.
14269 (pobase, po_domain): New variables.
14270 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
14271 DEFAULT_TEXT_DOMAIN.
14272 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
14273 (func_import): Consider pobase and po_domain. Create a po/ directory.
14274 (func_create_testdir): Set pobase and po_domain to empty.
14275 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
14276 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
14278 2007-07-18 Bruno Haible <bruno@clisp.org>
14280 * gnulib-tool (func_get_automake_snippet): Synthesize also an
14281 EXTRA_DIST augmentation for files in build-aux/.
14283 2007-07-16 Bruno Haible <bruno@clisp.org>
14285 * modules/lseek (License): Use the synonymous term "LGPLv2+".
14286 * modules/getdelim (License): Likewise.
14288 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14290 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
14291 * modules/d-type (License): Likewise.
14292 * modules/extensions (License): Likewise.
14293 * modules/fnmatch (License): Likewise.
14294 * modules/fseeko (License): Likewise.
14295 * modules/getaddrinfo (License): Likewise.
14296 * modules/getline (License): Likewise.
14297 * modules/getlogin_r (License): Likewise.
14298 * modules/getpass (License): Likewise.
14299 * modules/gettimeofday (License): Likewise.
14300 * modules/glob (License): Likewise.
14301 * modules/inet_ntop (License): Likewise.
14302 * modules/malloc (License): Likewise.
14303 * modules/malloca (License): Likewise.
14304 * modules/memmem (License): Likewise.
14305 * modules/mempcpy (License): Likewise.
14306 * modules/memset (License): Likewise.
14307 * modules/minmax (License): Likewise.
14308 * modules/mktime (License): Likewise.
14309 * modules/netinet_in (License): Likewise.
14310 * modules/pathmax (License): Likewise.
14311 * modules/poll (License): Likewise.
14312 * modules/regex (License): Likewise.
14313 * modules/snprintf (License): Likewise.
14314 * modules/stdbool (License): Likewise.
14315 * modules/stdint (License): Likewise.
14316 * modules/stdio (License): Likewise.
14317 * modules/strcase (License): Likewise.
14318 * modules/strcasestr (License): Likewise.
14319 * modules/strdup (License): Likewise.
14320 * modules/string (License): Likewise.
14321 * modules/strndup (License): Likewise.
14322 * modules/strnlen (License): Likewise.
14323 * modules/strpbrk (License): Likewise.
14324 * modules/strptime (License): Likewise.
14325 * modules/strsep (License): Likewise.
14326 * modules/sys_select (License): Likewise.
14327 * modules/sys_socket (License): Likewise.
14328 * modules/sys_stat (License): Likewise.
14329 * modules/sys_time (License): Likewise.
14330 * modules/time (License): Likewise.
14331 * modules/time_r (License): Likewise.
14332 * modules/timegm (License): Likewise.
14333 * modules/unistd (License): Likewise.
14334 * modules/vsnprintf (License): Likewise.
14335 * modules/wctype (License): Likewise.
14337 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14339 * modules/argz (License): LGPLv2+.
14341 2007-07-15 Karl Berry <karl@gnu.org>
14343 * doc/gnulib.texi: revise node structure per new fdl.texi.
14345 2007-07-14 Bruno Haible <bruno@clisp.org>
14347 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
14349 * lib/uniname/uninames.h: Regenerated.
14351 2007-07-14 Karl Berry <karl@gnu.org>
14353 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
14354 omitting sectioning and index commands.
14356 2007-07-13 Bruno Haible <bruno@clisp.org>
14358 New gnulib-tool option --more-symlinks.
14359 * gnulib-tool (func_usage): Document --more-symlinks.
14360 (do_copyrights): New variable.
14361 Recognize option --more-symlinks.
14362 (func_import): Don't add a copyright notice transform to
14363 sed_transform_lib_file if do_copyrights is empty.
14365 2007-07-13 Bruno Haible <bruno@clisp.org>
14367 * lib/vasnprintf.c (decimal_point_char): Define also if
14368 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
14369 && !NEED_PRINTF_DIRECTIVE_A.
14370 Reported by Clemens Koller <clemens.koller@anagramm.de> via
14371 Gary V. Vaughan <gary@gnu.org>.
14373 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
14375 * lib/inttypes_.h: Undo previous change, since it was fixed
14376 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
14378 2007-07-13 Bruno Haible <bruno@clisp.org>
14380 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
14381 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
14383 2007-07-13 Jim Meyering <jim@meyering.net>
14385 df: Don't fail for Tru64's "file-on-file mount".
14386 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
14387 so we fall through and use statfs instead. Details here:
14388 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
14389 Reported by Albert Chin.
14391 2007-07-13 Bruno Haible <bruno@clisp.org>
14393 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
14394 * modules/configmake (License): Likewise.
14395 * modules/gettext (License): Likewise.
14396 * modules/gettext-h (License): Likewise.
14397 * modules/include_next (License): Likewise.
14398 * modules/link-warning (License): Likewise.
14399 * modules/localcharset (License): Likewise.
14400 * modules/localename (License): Likewise.
14401 * modules/lock (License): Likewise.
14402 * modules/relocatable-lib-lgpl (License): Likewise.
14403 * modules/size_max (License): Likewise.
14404 * modules/vasnprintf (License): Likewise.
14405 * modules/wchar (License): Likewise.
14406 * modules/xsize (License): Likewise.
14408 2007-07-13 Bruno Haible <bruno@clisp.org>
14410 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
14411 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
14413 2007-07-12 Bruno Haible <bruno@clisp.org>
14415 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
14416 in the modules files.
14418 2007-07-11 Karl Berry <karl@gnu.org>
14420 * MODULES.html.sh (func_module): use
14421 sed -e '\|^'"${includefile}"'$|d'
14422 instead of /.../d, to avoid errors on $includefile's containing /.
14424 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
14426 * gnulib-tool (func_import): Avoid duplication of --avoid
14428 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
14429 names to `_' in variable names.
14431 2007-07-10 Eric Blake <ebb9@byu.net>
14433 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
14434 * NEWS: Document this change.
14436 2007-07-08 Bruno Haible <bruno@clisp.org>
14438 Update to Unicode 5.0.
14439 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
14440 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
14441 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
14442 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
14443 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
14444 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
14445 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
14446 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
14447 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
14448 U+10A3F, U+1D242..U+1D244.
14449 (nonspacing_table_ind): Update.
14450 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
14451 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
14453 2007-07-08 Bruno Haible <bruno@clisp.org>
14455 Update to Unicode 5.0.
14456 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
14457 code transform. Extend the name index field of unicode_name_to_code and
14458 unicode_code_to_name from 16 to 24 bits.
14459 * lib/uniname/uniname.c (unicode_character_name,
14460 unicode_name_character): Add the range 0x12xxx to the code transform.
14461 * lib/uniname/uninames.h: Regenerated.
14462 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
14464 2007-07-07 Bruno Haible <bruno@clisp.org>
14466 * modules/wcwidth-tests: New file.
14467 * tests/test-wcwidth.c: New file.
14469 Work around MacOS X wcwidth() bug.
14470 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
14471 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
14472 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
14473 original wcwidth in non-UTF-8 locales.
14474 * modules/wcwidth (Depends-on): Add localcharset, streq,
14476 * doc/functions/wcwidth.texi: Update.
14478 2007-07-07 Bruno Haible <bruno@clisp.org>
14480 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
14481 (wcwidth): New declaration.
14482 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
14484 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
14485 here. Prepare for creating <wchar.h> unconditionally.
14486 * modules/wchar (Depends-on): Add link-warning.
14487 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
14488 REPLACE_WCWIDTH, and GL_LINK_WARNING.
14489 * lib/wcwidth.h: Remove file.
14490 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
14491 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
14492 * modules/wcwidth (Files): Remove lib/wcwidth.h.
14493 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
14494 (Include): Replace wcwidth.h with <wchar.h>.
14495 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
14496 * lib/mbchar.h: Don't include wcwidth.h.
14497 * lib/mbswidth.c: Likewise.
14498 * NEWS: Mention the change.
14500 2007-07-07 Bruno Haible <bruno@clisp.org>
14502 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
14503 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
14504 definition with an external declaration.
14505 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
14506 defined as a function. Remove AC_C_INLINE requirement.
14507 * modules/wcwidth (Files): Add lib/wcwidth.c.
14508 (Makefile.am): Remove redundant statement.
14510 2007-07-07 Bruno Haible <bruno@clisp.org>
14512 * MODULES.html.sh (Unicode string functions): Add the new modules.
14514 * tests/uniwidth/test-u32-strwidth.c: New file.
14515 * modules/uniwidth/u32-strwidth-tests: New file.
14517 * lib/uniwidth/u32-strwidth.c: New file.
14518 * modules/uniwidth/u32-strwidth: New file.
14520 * tests/uniwidth/test-u16-strwidth.c: New file.
14521 * modules/uniwidth/u16-strwidth-tests: New file.
14523 * lib/uniwidth/u16-strwidth.c: New file.
14524 * modules/uniwidth/u16-strwidth: New file.
14526 * tests/uniwidth/test-u8-strwidth.c: New file.
14527 * modules/uniwidth/u8-strwidth-tests: New file.
14529 * lib/uniwidth/u8-strwidth.c: New file.
14530 * modules/uniwidth/u8-strwidth: New file.
14532 * tests/uniwidth/test-u32-width.c: New file.
14533 * modules/uniwidth/u32-width-tests: New file.
14535 * lib/uniwidth/u32-width.c: New file.
14536 * modules/uniwidth/u32-width: New file.
14538 * tests/uniwidth/test-u16-width.c: New file.
14539 * modules/uniwidth/u16-width-tests: New file.
14541 * lib/uniwidth/u16-width.c: New file.
14542 * modules/uniwidth/u16-width: New file.
14544 * tests/uniwidth/test-u8-width.c: New file.
14545 * modules/uniwidth/u8-width-tests: New file.
14547 * lib/uniwidth/u8-width.c: New file.
14548 * modules/uniwidth/u8-width: New file.
14550 * tests/uniwidth/test-uc_width.c: New file.
14551 * modules/uniwidth/width-tests: New file.
14553 * lib/uniwidth/width.c: New file, from GNU libiconv.
14554 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
14555 * modules/uniwidth/width: New file.
14557 * lib/uniwidth.h: New file, from GNU libiconv.
14558 * modules/uniwidth/base: New file.
14560 2007-07-07 Bruno Haible <bruno@clisp.org>
14562 * lib/uniname.h: New file, from GNU gettext.
14563 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
14564 * lib/uniname/uninames.h: New file, from GNU gettext.
14565 * lib/uniname/uniname.c: New file, from GNU gettext.
14566 * tests/uniname/test-uninames.sh: New file.
14567 * tests/uniname/test-uninames.c: New file, from GNU gettext.
14568 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
14569 * modules/uniname/base: New file.
14570 * modules/uniname/uniname: New file.
14571 * modules/uniname/uniname-tests: New file.
14572 * MODULES.html.sh (Unicode string functions): Add the new modules.
14574 2007-07-06 Bruno Haible <bruno@clisp.org>
14576 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
14578 2007-07-06 Bruno Haible <bruno@clisp.org>
14580 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
14581 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
14582 includes <cygwin/sys_time.h> which includes <sys/select.h> which
14583 include <sys/time.h>.
14584 Reported by Eric Blake.
14586 2007-07-06 Eric Blake <ebb9@byu.net>
14588 Fix testing canonicalize on cygwin.
14589 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
14590 Revert patch from 2007-06-19.
14591 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
14592 canonicalize module is also in use.
14593 * tests/test-canonicalize.c: New file.
14594 * tests/test-canonicalize.sh: Likewise.
14595 * modules/canonicalize-tests: Likewise.
14597 2007-07-06 Jim Meyering <jim@meyering.net>
14599 * lib/getugroups.c (getugroups): Detect getgrent failure.
14600 Adjust comment to reflect reality: this function may return -1.
14602 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
14604 * build-aux/bootstrap (TP_URL,get_translations): Update to use
14605 the new TP address.
14607 (gnulib_mk): New variable.
14609 2007-07-05 Jim Meyering <jim@meyering.net>
14611 Don't let endgrent clobber errno, no matter how improbable.
14612 * lib/getugroups.c (getugroups): Save and restore errno around
14615 Close the group DB even when failing with 2^31 or more members.
14616 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
14618 2007-07-04 Jim Meyering <jim@meyering.net>
14620 * lib/getugroups.h: New file.
14621 * lib/getugroups.c: Include "getugroups.h".
14622 Remove uses of "register" keyword.
14623 Move local variable, "cp", down into scope where used.
14624 Give "username" parameter the "const" attribute.
14625 * modules/getugroups (Files): Add lib/getugroups.h
14627 2007-07-04 Karl Berry <karl@gnu.org>
14629 * MODULES.html.sh (func_all_modules): Complete rename of
14630 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
14632 2007-07-02 Bruno Haible <bruno@clisp.org>
14634 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
14635 mode, when inttypes.h comes from gnulib.
14636 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
14638 2007-07-02 Simon Josefsson <simon@josefsson.org>
14640 * NEWS: Mention lgpl module name change.
14642 * modules/lgpl-2.1: Renamed from lgpl.
14644 * NEWS: Mention gpl module name change.
14646 * modules/gpl-3.0: New file, based on gpl-2.0.
14648 * modules/gpl-2.0: Renamed from gpl.
14650 * modules/gpl: Fix filename, doc/gpl.texi is now found at
14653 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
14655 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
14656 #define __STDC_LIMIT_MACROS temporarily while including
14657 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
14658 Problem reported by Joel E. Denny in
14659 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
14661 2007-07-01 Bruno Haible <bruno@clisp.org>
14663 * lib/unistdio.h: New file.
14664 * lib/unistdio/u-asnprintf.h: New file.
14665 * lib/unistdio/u-asprintf.h: New file.
14666 * lib/unistdio/u-printf-args.c: New file.
14667 * lib/unistdio/u-printf-args.h: New file.
14668 * lib/unistdio/u-printf-parse.h: New file.
14669 * lib/unistdio/u-snprintf.h: New file.
14670 * lib/unistdio/u-sprintf.h: New file.
14671 * lib/unistdio/u-vasprintf.h: New file.
14672 * lib/unistdio/u-vsnprintf.h: New file.
14673 * lib/unistdio/u-vsprintf.h: New file.
14674 * lib/unistdio/ulc-asnprintf.c: New file.
14675 * lib/unistdio/ulc-asprintf.c: New file.
14676 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
14677 * lib/unistdio/ulc-printf-parse.c: New file.
14678 * lib/unistdio/ulc-snprintf.c: New file.
14679 * lib/unistdio/ulc-sprintf.c: New file.
14680 * lib/unistdio/ulc-vasnprintf.c: New file.
14681 * lib/unistdio/ulc-vasprintf.c: New file.
14682 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
14683 * lib/unistdio/ulc-vsnprintf.c: New file.
14684 * lib/unistdio/ulc-vsprintf.c: New file.
14685 * lib/unistdio/u8-asnprintf.c: New file.
14686 * lib/unistdio/u8-asprintf.c: New file.
14687 * lib/unistdio/u8-printf-parse.c: New file.
14688 * lib/unistdio/u8-snprintf.c: New file.
14689 * lib/unistdio/u8-sprintf.c: New file.
14690 * lib/unistdio/u8-vasnprintf.c: New file.
14691 * lib/unistdio/u8-vasprintf.c: New file.
14692 * lib/unistdio/u8-vsnprintf.c: New file.
14693 * lib/unistdio/u8-vsprintf.c: New file.
14694 * lib/unistdio/u8-u8-asnprintf.c: New file.
14695 * lib/unistdio/u8-u8-asprintf.c: New file.
14696 * lib/unistdio/u8-u8-snprintf.c: New file.
14697 * lib/unistdio/u8-u8-sprintf.c: New file.
14698 * lib/unistdio/u8-u8-vasnprintf.c: New file.
14699 * lib/unistdio/u8-u8-vasprintf.c: New file.
14700 * lib/unistdio/u8-u8-vsnprintf.c: New file.
14701 * lib/unistdio/u8-u8-vsprintf.c: New file.
14702 * lib/unistdio/u16-asnprintf.c: New file.
14703 * lib/unistdio/u16-asprintf.c: New file.
14704 * lib/unistdio/u16-printf-parse.c: New file.
14705 * lib/unistdio/u16-snprintf.c: New file.
14706 * lib/unistdio/u16-sprintf.c: New file.
14707 * lib/unistdio/u16-vasnprintf.c: New file.
14708 * lib/unistdio/u16-vasprintf.c: New file.
14709 * lib/unistdio/u16-vsnprintf.c: New file.
14710 * lib/unistdio/u16-vsprintf.c: New file.
14711 * lib/unistdio/u16-u16-asnprintf.c: New file.
14712 * lib/unistdio/u16-u16-asprintf.c: New file.
14713 * lib/unistdio/u16-u16-snprintf.c: New file.
14714 * lib/unistdio/u16-u16-sprintf.c: New file.
14715 * lib/unistdio/u16-u16-vasnprintf.c: New file.
14716 * lib/unistdio/u16-u16-vasprintf.c: New file.
14717 * lib/unistdio/u16-u16-vsnprintf.c: New file.
14718 * lib/unistdio/u16-u16-vsprintf.c: New file.
14719 * lib/unistdio/u32-asnprintf.c: New file.
14720 * lib/unistdio/u32-asprintf.c: New file.
14721 * lib/unistdio/u32-printf-parse.c: New file.
14722 * lib/unistdio/u32-snprintf.c: New file.
14723 * lib/unistdio/u32-sprintf.c: New file.
14724 * lib/unistdio/u32-vasnprintf.c: New file.
14725 * lib/unistdio/u32-vasprintf.c: New file.
14726 * lib/unistdio/u32-vsnprintf.c: New file.
14727 * lib/unistdio/u32-vsprintf.c: New file.
14728 * lib/unistdio/u32-u32-asnprintf.c: New file.
14729 * lib/unistdio/u32-u32-asprintf.c: New file.
14730 * lib/unistdio/u32-u32-snprintf.c: New file.
14731 * lib/unistdio/u32-u32-sprintf.c: New file.
14732 * lib/unistdio/u32-u32-vasnprintf.c: New file.
14733 * lib/unistdio/u32-u32-vasprintf.c: New file.
14734 * lib/unistdio/u32-u32-vsnprintf.c: New file.
14735 * lib/unistdio/u32-u32-vsprintf.c: New file.
14736 * tests/unistdio/test-ulc-asnprintf1.c: New file.
14737 * tests/unistdio/test-ulc-asnprintf1.h: New file.
14738 * tests/unistdio/test-ulc-printf1.h: New file.
14739 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
14740 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
14741 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
14742 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
14743 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
14744 * tests/unistdio/test-ulc-vasprintf1.c: New file.
14745 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
14746 * tests/unistdio/test-ulc-vsprintf1.c: New file.
14747 * tests/unistdio/test-u8-asnprintf1.c: New file.
14748 * tests/unistdio/test-u8-asnprintf1.h: New file.
14749 * tests/unistdio/test-u8-printf1.h: New file.
14750 * tests/unistdio/test-u8-vasnprintf1.c: New file.
14751 * tests/unistdio/test-u8-vasnprintf2.c: New file.
14752 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
14753 * tests/unistdio/test-u8-vasnprintf3.c: New file.
14754 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
14755 * tests/unistdio/test-u8-vasprintf1.c: New file.
14756 * tests/unistdio/test-u8-vsnprintf1.c: New file.
14757 * tests/unistdio/test-u8-vsprintf1.c: New file.
14758 * tests/unistdio/test-u16-asnprintf1.c: New file.
14759 * tests/unistdio/test-u16-asnprintf1.h: New file.
14760 * tests/unistdio/test-u16-printf1.h: New file.
14761 * tests/unistdio/test-u16-vasnprintf1.c: New file.
14762 * tests/unistdio/test-u16-vasnprintf2.c: New file.
14763 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
14764 * tests/unistdio/test-u16-vasnprintf3.c: New file.
14765 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
14766 * tests/unistdio/test-u16-vasprintf1.c: New file.
14767 * tests/unistdio/test-u16-vsnprintf1.c: New file.
14768 * tests/unistdio/test-u16-vsprintf1.c: New file.
14769 * tests/unistdio/test-u32-asnprintf1.c: New file.
14770 * tests/unistdio/test-u32-asnprintf1.h: New file.
14771 * tests/unistdio/test-u32-printf1.h: New file.
14772 * tests/unistdio/test-u32-vasnprintf1.c: New file.
14773 * tests/unistdio/test-u32-vasnprintf2.c: New file.
14774 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
14775 * tests/unistdio/test-u32-vasnprintf3.c: New file.
14776 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
14777 * tests/unistdio/test-u32-vasprintf1.c: New file.
14778 * tests/unistdio/test-u32-vsnprintf1.c: New file.
14779 * tests/unistdio/test-u32-vsprintf1.c: New file.
14780 * modules/unistdio/base: New file.
14781 * modules/unistdio/u-printf-args: New file.
14782 * modules/unistdio/ulc-asnprintf: New file.
14783 * modules/unistdio/ulc-asprintf: New file.
14784 * modules/unistdio/ulc-fprintf: New file.
14785 * modules/unistdio/ulc-printf-parse: New file.
14786 * modules/unistdio/ulc-snprintf: New file.
14787 * modules/unistdio/ulc-sprintf: New file.
14788 * modules/unistdio/ulc-vasnprintf: New file.
14789 * modules/unistdio/ulc-vasprintf: New file.
14790 * modules/unistdio/ulc-vfprintf: New file.
14791 * modules/unistdio/ulc-vsnprintf: New file.
14792 * modules/unistdio/ulc-vsprintf: New file.
14793 * modules/unistdio/u8-asnprintf: New file.
14794 * modules/unistdio/u8-asprintf: New file.
14795 * modules/unistdio/u8-printf-parse: New file.
14796 * modules/unistdio/u8-snprintf: New file.
14797 * modules/unistdio/u8-sprintf: New file.
14798 * modules/unistdio/u8-vasnprintf: New file.
14799 * modules/unistdio/u8-vasprintf: New file.
14800 * modules/unistdio/u8-vsnprintf: New file.
14801 * modules/unistdio/u8-vsprintf: New file.
14802 * modules/unistdio/u8-u8-asnprintf: New file.
14803 * modules/unistdio/u8-u8-asprintf: New file.
14804 * modules/unistdio/u8-u8-snprintf: New file.
14805 * modules/unistdio/u8-u8-sprintf: New file.
14806 * modules/unistdio/u8-u8-vasnprintf: New file.
14807 * modules/unistdio/u8-u8-vasprintf: New file.
14808 * modules/unistdio/u8-u8-vsnprintf: New file.
14809 * modules/unistdio/u8-u8-vsprintf: New file.
14810 * modules/unistdio/u16-asnprintf: New file.
14811 * modules/unistdio/u16-asprintf: New file.
14812 * modules/unistdio/u16-printf-parse: New file.
14813 * modules/unistdio/u16-snprintf: New file.
14814 * modules/unistdio/u16-sprintf: New file.
14815 * modules/unistdio/u16-vasnprintf: New file.
14816 * modules/unistdio/u16-vasprintf: New file.
14817 * modules/unistdio/u16-vsnprintf: New file.
14818 * modules/unistdio/u16-vsprintf: New file.
14819 * modules/unistdio/u16-u16-asnprintf: New file.
14820 * modules/unistdio/u16-u16-asprintf: New file.
14821 * modules/unistdio/u16-u16-snprintf: New file.
14822 * modules/unistdio/u16-u16-sprintf: New file.
14823 * modules/unistdio/u16-u16-vasnprintf: New file.
14824 * modules/unistdio/u16-u16-vasprintf: New file.
14825 * modules/unistdio/u16-u16-vsnprintf: New file.
14826 * modules/unistdio/u16-u16-vsprintf: New file.
14827 * modules/unistdio/u32-asnprintf: New file.
14828 * modules/unistdio/u32-asprintf: New file.
14829 * modules/unistdio/u32-printf-parse: New file.
14830 * modules/unistdio/u32-snprintf: New file.
14831 * modules/unistdio/u32-sprintf: New file.
14832 * modules/unistdio/u32-vasnprintf: New file.
14833 * modules/unistdio/u32-vasprintf: New file.
14834 * modules/unistdio/u32-vsnprintf: New file.
14835 * modules/unistdio/u32-vsprintf: New file.
14836 * modules/unistdio/u32-u32-asnprintf: New file.
14837 * modules/unistdio/u32-u32-asprintf: New file.
14838 * modules/unistdio/u32-u32-snprintf: New file.
14839 * modules/unistdio/u32-u32-sprintf: New file.
14840 * modules/unistdio/u32-u32-vasnprintf: New file.
14841 * modules/unistdio/u32-u32-vasprintf: New file.
14842 * modules/unistdio/u32-u32-vsnprintf: New file.
14843 * modules/unistdio/u32-u32-vsprintf: New file.
14844 * modules/unistdio/ulc-asnprintf-tests: New file.
14845 * modules/unistdio/ulc-vasnprintf-tests: New file.
14846 * modules/unistdio/ulc-vasprintf-tests: New file.
14847 * modules/unistdio/ulc-vsnprintf-tests: New file.
14848 * modules/unistdio/ulc-vsprintf-tests: New file.
14849 * modules/unistdio/u8-asnprintf-tests: New file.
14850 * modules/unistdio/u8-vasnprintf-tests: New file.
14851 * modules/unistdio/u8-vasprintf-tests: New file.
14852 * modules/unistdio/u8-vsnprintf-tests: New file.
14853 * modules/unistdio/u8-vsprintf-tests: New file.
14854 * modules/unistdio/u16-asnprintf-tests: New file.
14855 * modules/unistdio/u16-vasnprintf-tests: New file.
14856 * modules/unistdio/u16-vasprintf-tests: New file.
14857 * modules/unistdio/u16-vsnprintf-tests: New file.
14858 * modules/unistdio/u16-vsprintf-tests: New file.
14859 * modules/unistdio/u32-asnprintf-tests: New file.
14860 * modules/unistdio/u32-vasnprintf-tests: New file.
14861 * modules/unistdio/u32-vasprintf-tests: New file.
14862 * modules/unistdio/u32-vsnprintf-tests: New file.
14863 * modules/unistdio/u32-vsprintf-tests: New file.
14864 * MODULES.html.sh (Unicode string functions): Add the new modules.
14866 2007-07-01 Bruno Haible <bruno@clisp.org>
14868 * lib/sprintf.c (sprintf): Limit the available length estimation,
14869 to avoid address wraparound.
14870 * lib/vsprintf.c (vsprintf): Likewise.
14871 * modules/sprintf-posix (Dependencies): Add stdint.
14872 * modules/vsprintf-posix (Dependencies): Likewise.
14874 2007-07-01 Bruno Haible <bruno@clisp.org>
14876 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
14877 Windows PATH as well. Conservative double-quoting. Comments.
14879 2007-07-01 Bruno Haible <bruno@clisp.org>
14880 Eric Blake <ebb9@byu.net>
14881 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14883 * gnulib-tool (self_abspathname): Fix algorithm to cope with
14884 empty components in $PATH, denoting '.'.
14886 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14888 * gnulib-tool: Fix indentation.
14889 (func_create_megatestdir): Likewise.
14890 Report by Bruno Haible.
14892 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14894 Sync from Automake.
14895 * build-aux/gnupload: Fix shell portability issues with for loops.
14896 Report by Karl Berry.
14898 2007-06-29 Simon Josefsson <simon@josefsson.org>
14900 * build-aux/maint.mk (POURL): Use translationproject.org.
14902 2007-06-27 Simon Josefsson <simon@josefsson.org>
14903 Bruno Haible <bruno@clisp.org>
14905 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
14906 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
14907 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
14908 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
14909 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
14911 2007-06-27 Bruno Haible <bruno@clisp.org>
14913 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
14914 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
14916 2007-06-26 Karl Berry <karl@gnu.org>
14918 * MODULES.html.sh: remove xreadlink-with-size.
14920 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
14922 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
14923 method that I hope also handles the double-include problem noted
14925 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
14927 2007-06-23 Bruno Haible <bruno@clisp.org>
14929 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14930 Don't let the 'mostlyclean' target fail if the last subdirectory could
14932 Reported by Karl Berry.
14934 2007-06-23 Bruno Haible <bruno@clisp.org>
14936 * gnulib-tool (echo): Add a speedier workaround for ksh.
14937 * tests/test-echo.sh: Likewise.
14939 2007-06-23 Bruno Haible <bruno@clisp.org>
14941 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
14942 * tests/test-echo.sh: Likewise.
14944 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14946 * gnulib-tool (IFS): Initialize early, so we don't set it to
14948 (self_abspathname): Rewrite algorithm to set it, reindent.
14949 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
14950 (func_create_megatestdir): Merge some sed scripts.
14952 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
14954 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
14955 exposed by Sun Studio 11 cc on Solaris 8.
14957 2007-06-22 Bruno Haible <bruno@clisp.org>
14959 * gnulib-tool (echo): Ensure the echo primitive does not interpret
14961 * tests/test-echo.sh: New file.
14963 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14965 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
14966 simplify `sed_replace_build_aux' scripts, they are portable but
14967 echoing them with `echo' is not.
14968 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
14970 2007-06-21 Karl Berry <karl@gnu.org>
14972 * config/srclist.txt: guess we can't handle the licenses via
14973 srclist at the moment.
14975 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
14977 * MODULES.html.sh: Add include_next.
14978 * modules/include_next: New file.
14980 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
14982 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
14984 (gl_CHECK_NEXT_HEADERS): New macro.
14985 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
14986 the obsolescent gl_ABSOLUTE_HEADER.
14987 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
14988 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
14989 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
14990 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
14991 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
14992 * m4/math_h.m4 (gl_MATH_H): Likewise.
14993 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
14994 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14995 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14996 * m4/stdint.m4 (gl_STDINT_H): Likewise.
14997 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
14998 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
14999 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
15000 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15001 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15002 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
15003 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
15004 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
15005 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
15006 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15007 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15008 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
15009 * m4/inttypes.m4 (gl_INTTYPES_H): Define
15010 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
15011 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
15012 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
15013 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
15014 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
15015 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
15016 * lib/float_.h: Likewise.
15017 * lib/inttypes_.h: Likewise.
15018 * lib/math_.h: Likewise.
15019 * lib/search_.h: Likewise.
15020 * lib/signal_.h: Likewise.
15021 * lib/stdint_.h: Likewise.
15022 * lib/stdio_.h: Likewise.
15023 * lib/stdlib_.h: Likewise.
15024 * lib/string_.h: Likewise.
15025 * lib/sys_stat_.h: Likewise.
15026 * lib/sys_time_.h: Likewise.
15027 * lib/time_.h: Likewise.
15028 * lib/unistd_.h: Likewise.
15029 * lib/wchar_.h: Likewise.
15030 * lib/wctype_.h: Likewise.
15031 * lib/dirent_.h: Likewise.
15032 * lib/iconv_.h: Likewise.
15033 * lib/locale_.h: Likewise.
15034 * lib/netinet_in_.h: Likewise.
15035 * lib/sys_select_.h: Likewise.
15036 * lib/sys_socket_.h: Likewise.
15037 * lib/sysexits_.h: Likewise.
15038 * modules/fcntl (Depends-on): Depend on include_next, not
15040 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
15041 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
15042 * modules/fchdir: Likewise.
15043 * modules/float: Likewise.
15044 * modules/iconv_open: Likewise.
15045 * modules/inttypes: Likewise.
15046 * modules/locale: Likewise.
15047 * modules/math: Likewise.
15048 * modules/netinet_in: Likewise.
15049 * modules/search: Likewise.
15050 * modules/signal: Likewise.
15051 * modules/stdint: Likewise.
15052 * modules/stdio: Likewise.
15053 * modules/stdlib: Likewise.
15054 * modules/string: Likewise.
15055 * modules/sys_select: Likewise.
15056 * modules/sys_socket: Likewise.
15057 * modules/sys_stat: Likewise.
15058 * modules/sys_time: Likewise.
15059 * modules/sysexits: Likewise.
15060 * modules/time: Likewise.
15061 * modules/unistd: Likewise.
15062 * modules/wchar: Likewise.
15063 * modules/wctype: Likewise.
15064 * modules/sys_stat: Change maintainer to "all".
15065 * modules/unistd: Likewise.
15067 2007-06-20 Karl Berry <karl@gnu.org>
15069 * config/srclist.txt: track www changes in license files.
15071 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
15073 * build-aux/bootstrap: Remove stray dot.
15074 Make sure build_aux settings are honored when linking
15075 gnulib_extra_files.
15077 2007-06-19 Eric Blake <ebb9@byu.net>
15079 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
15080 Allow compilation on cygwin.
15082 2007-06-19 Jim Meyering <jim@meyering.net>
15084 xreadlink-with-size: Remove module. No longer used.
15085 Ex-callers now use xreadlink or mreadlink-with-size.
15086 * modules/xreadlink-with-size: Remove module.
15087 * lib/xreadlink-with-size.c: Remove file.
15088 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
15089 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
15090 just before the function definition *is* accurate.
15092 Eliminate one way canonicalize_filename_mode could exit.
15093 * lib/canonicalize.c (canonicalize_filename_mode):
15094 Use mreadlink_with_size, not xreadlink_with_size.
15096 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
15098 Detect porting problems to FreeBSD/arm, which has time_t wider than
15099 long int. Original problem reported for GNU diff by Xin Li in
15100 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
15101 * modules/getdate (Depends-on): Add intprops, verify.
15102 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
15103 is an integer type no wider than long int.
15105 2007-06-18 Jim Meyering <jim@meyering.net>
15107 New module: mreadlink-with-size.
15108 * MODULES.html.sh: Add mreadlink-with-size.
15109 * modules/mreadlink-with-size: New module
15110 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
15111 not xreadlink-with-size.
15112 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
15114 2007-06-16 Bruno Haible <bruno@clisp.org>
15116 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
15117 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
15118 Reported by Gary V. Vaughan <gary@gnu.org>.
15120 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
15122 Revamp lchown so that it lives in unistd.h where it belongs.
15123 * lib/lchown.h: Remove.
15124 * lib/dirchownmod.c: Don't include lib/lchown.h.
15125 * lib/fchownat.c: Likewise.
15126 * lib/openat.c: Likewise.
15127 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
15128 does not follow symlinks.
15129 (EOPNOTSUPP): Define if not defined.
15130 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
15132 (lchown): New decl.
15133 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
15134 Do not check for lchown decl.
15135 Set REPLACE_LCHOWN.
15136 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
15138 * modules/chown: Make it clear it follows symlinks.
15139 * modules/lchown: Make it clear it doesn't follow symlinks.
15140 (Files): Remove lib/lchown.h
15141 (Depends-on): Add unistd.
15142 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
15143 (Include): Include <unistd.h>, not "lchown.h".
15144 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
15147 2007-06-15 Jim Meyering <jim@meyering.net>
15149 Change license (GPL to LGPL) of fsusage and dependents.
15150 * modules/fsusage (License): Change to LGPL.
15151 * modules/full-read (License): Likewise.
15152 * modules/full-write (License): Likewise.
15153 * modules/safe-read (License): Likewise.
15154 * modules/safe-write (License): Likewise.
15156 2007-06-14 Ben Pfaff <blp@gnu.org>
15158 Missing part of allocsa -> malloca transition.
15159 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
15162 2007-06-12 Bruno Haible <bruno@clisp.org>
15164 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
15165 to ia64, x86_64, i386.
15166 Reported by Eric Blake.
15168 2007-06-12 Bruno Haible <bruno@clisp.org>
15170 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
15171 cross-compiling to x86_64.
15173 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
15175 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
15176 glitch reported by Ralf Wildenhues in
15177 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
15179 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
15182 2007-06-11 Bruno Haible <bruno@clisp.org>
15184 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
15185 replacement string.
15186 Reported by Eric Blake.
15188 2007-06-10 Bruno Haible <bruno@clisp.org>
15190 Prepare vasnprintf code for use with Unicode strings.
15191 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
15192 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
15194 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
15195 a_u32_string variants.
15196 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
15197 * lib/printf-args.c: Don't include config.h and the specification
15198 header if PRINTF_FETCHARGS is already defined.
15199 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
15200 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
15201 TYPE_U16_STRING, TYPE_U32_STRING.
15202 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
15203 u16_directive, u16_directives, u32_directive, u32_directives): New
15205 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
15207 * lib/printf-parse.c: Don't include config.h and the specification
15208 header if PRINTF_PARSE is already defined. Eliminate the set of
15209 parameters for WIDE_CHAR_VERSION; the user of this file must provide
15210 them now. Include c-ctype.h.
15211 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
15212 directive and CHAR_T_ONLY_ASCII.
15213 * lib/vasnprintf.c: Don't include config.h and the specification header
15214 if VASNPRINTF is already defined.
15215 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
15216 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
15217 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
15218 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
15219 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
15220 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
15222 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
15223 pad_ourselves also in this case, with the 'c' and 's' directives, and
15224 with a different notion of "width".
15225 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
15227 2007-06-10 Bruno Haible <bruno@clisp.org>
15229 * modules/unistr/u32-mbsnlen: New file.
15230 * lib/unistr/u32-mbsnlen.c: New file.
15232 * modules/unistr/u16-mbsnlen: New file.
15233 * lib/unistr/u16-mbsnlen.c: New file.
15235 * modules/unistr/u8-mbsnlen: New file.
15236 * lib/unistr/u8-mbsnlen.c: New file.
15238 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
15241 2007-06-10 Bruno Haible <bruno@clisp.org>
15243 * lib/string_.h (mbsnlen): New declaration.
15244 * lib/mbsnlen.c: New file.
15245 * m4/mbsnlen.m4: New file.
15246 * modules/mbsnlen: New file.
15247 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
15248 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
15249 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
15251 2007-06-10 Bruno Haible <bruno@clisp.org>
15253 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
15255 2007-06-10 Bruno Haible <bruno@clisp.org>
15257 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
15258 * lib/mbuiter.h: Likewise.
15260 2007-06-10 Bruno Haible <bruno@clisp.org>
15262 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
15265 2007-06-10 Karl Berry <karl@gnu.org>
15267 * config/srclist.txt: remove gettext entries, Bruno prefers
15268 to update individually.
15270 2007-06-10 Bruno Haible <bruno@clisp.org>
15272 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
15273 'maxlen'. Ensure only length + width bytes are allocated, not
15274 length + 1 + width.
15276 2007-06-09 Bruno Haible <bruno@clisp.org>
15278 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
15279 (CHAR_T): Remove macro.
15280 (VASNPRINTF): Update.
15282 2007-06-09 Bruno Haible <bruno@clisp.org>
15284 * MODULES.html.sh (Unicode string functions): Add the new modules.
15286 * modules/uniconv/u32-conv-to-enc: New file.
15287 * lib/uniconv/u32-conv-to-enc.c: New file.
15288 * modules/uniconv/u32-conv-to-enc-tests: New file.
15289 * tests/uniconv/test-u32-conv-to-enc.c: New file.
15291 * modules/uniconv/u16-conv-to-enc: New file.
15292 * lib/uniconv/u16-conv-to-enc.c: New file.
15293 * lib/uniconv/u-conv-to-enc.h: New file.
15294 * modules/uniconv/u16-conv-to-enc-tests: New file.
15295 * tests/uniconv/test-u16-conv-to-enc.c: New file.
15297 * modules/uniconv/u8-conv-to-enc: New file.
15298 * lib/uniconv/u8-conv-to-enc.c: New file.
15299 * modules/uniconv/u8-conv-to-enc-tests: New file.
15300 * tests/uniconv/test-u8-conv-to-enc.c: New file.
15302 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
15303 u32_conv_to_encoding): New declarations.
15305 2007-06-09 Bruno Haible <bruno@clisp.org>
15307 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
15309 2007-06-09 Bruno Haible <bruno@clisp.org>
15311 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
15312 * modules/malloca: Renamed from modules/allocsa, updated.
15313 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
15314 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
15315 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
15316 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
15317 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
15318 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
15319 * modules/xmalloca: Renamed from modules/xallocsa, updated.
15320 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
15321 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
15322 * modules/c-strcasestr (Depends-on): Update.
15323 * lib/c-strcasestr.c: Update.
15324 * modules/c-strstr (Depends-on): Update.
15325 * lib/c-strstr.c: Update.
15326 * modules/canonicalize-lgpl (Depends-on): Update.
15327 * lib/canonicalize-lgpl.c: Update.
15328 * modules/clean-temp (Depends-on): Update.
15329 * lib/clean-temp.c: Update.
15330 * modules/csharpcomp (Depends-on): Update.
15331 * lib/csharpcomp.c: Update.
15332 * modules/csharpexec (Depends-on): Update.
15333 * lib/csharpexec.c: Update.
15334 * modules/javacomp (Depends-on): Update.
15335 * lib/javacomp.c: Update.
15336 * modules/javaexec (Depends-on): Update.
15337 * lib/javaexec.c: Update.
15338 * modules/mbscasestr (Depends-on): Update.
15339 * lib/mbscasestr.c: Update.
15340 * modules/mbsstr (Depends-on): Update.
15341 * lib/mbsstr.c: Update.
15342 * modules/setenv (Depends-on): Update.
15343 * lib/setenv.c: Update.
15344 * modules/strcasestr (Depends-on): Update.
15345 * lib/strcasestr.c: Update.
15346 * modules/striconveha (Depends-on): Update.
15347 * lib/striconveha.c: Update.
15348 * modules/relocatable-prog-wrapper (Files): Update.
15349 * lib/relocwrapper.c: Update.
15350 * build-aux/install-reloc: Update.
15351 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
15353 2007-06-08 Bruno Haible <bruno@clisp.org>
15356 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
15357 * lib/fpurge.c (fpurge): Likewise.
15358 * lib/freading.c (freading): Likewise.
15359 * lib/fseeko.c (rpl_fseeko): Likewise.
15360 * lib/fseterr.c (fseterr): Likewise.
15361 * lib/fwriting.c (fwriting): Likewise.
15362 * tests/test-fflush.c (main): Avoid a failure on uClibc.
15364 2007-06-08 Bruno Haible <bruno@clisp.org>
15366 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
15367 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
15368 * modules/gettext (Files): Add m4/intlmacosx.m4.
15370 2007-06-07 Bruno Haible <bruno@clisp.org>
15372 * modules/localename-tests: New file.
15373 * tests/test-localename.c: New file.
15375 New module 'localename'.
15376 * lib/localename.h: New file.
15377 * lib/localename.c: New file, from GNU gettext.
15378 * m4/localename.m4: New file.
15379 * modules/localename: New file.
15381 2007-06-07 Bruno Haible <bruno@clisp.org>
15383 Work around the lack of <wchar.h> on some builds of uClibc.
15384 * doc/headers/wchar.texi: Update.
15385 * lib/wchar_.h: Include <wchar.h> only if it exists.
15386 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
15387 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
15388 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
15390 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
15391 * modules/mbfile (Depends-on): Add wchar.
15392 * modules/mbiter (Depends-on): Likewise.
15393 * modules/mbuiter (Depends-on): Likewise.
15394 Reported by Simon Josefsson.
15396 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
15398 Work around problem reported by Steven M. Schweda in
15399 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
15400 Tru64 5.1B with the Compaq compiler environment installed declares
15401 an 'isblank' function but does not define it in the C library.
15402 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
15403 * lib/regex_internal.h (isblank): Likewise.
15404 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
15405 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
15407 2007-06-05 Bruno Haible <bruno@clisp.org>
15409 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
15411 * modules/printf-safe: New file.
15412 * modules/fprintf-posix (Depends-on): Add printf-safe.
15413 * modules/printf-posix (Depends-on): Likewise.
15414 * modules/snprintf-posix (Depends-on): Likewise.
15415 * modules/sprintf-posix (Depends-on): Likewise.
15416 * modules/vasnprintf-posix (Depends-on): Likewise.
15417 * modules/vasprintf-posix (Depends-on): Likewise.
15418 * modules/vfprintf-posix (Depends-on): Likewise.
15419 * modules/vprintf-posix (Depends-on): Likewise.
15420 * modules/vsnprintf-posix (Depends-on): Likewise.
15421 * modules/vsprintf-posix (Depends-on): Likewise.
15422 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
15423 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
15424 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
15425 "no" on i386, x86_64, ia64.
15426 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
15427 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
15428 on i386, x86_64, ia64.
15429 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
15430 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
15431 on i386, x86_64, ia64.
15432 * tests/test-vasnprintf-posix.c: Include float.h.
15433 (LDBL80_WORDS): New macro.
15434 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
15435 on i386, x86_64, ia64.
15436 * tests/test-vasprintf-posix.c: Include float.h.
15437 (LDBL80_WORDS): New macro.
15438 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
15439 on i386, x86_64, ia64.
15440 * tests/test-snprintf-posix.c: Include float.h.
15441 * tests/test-sprintf-posix.c: Likewise.
15442 * tests/test-vsnprintf-posix.c: Likewise.
15443 * tests/test-vsprintf-posix.c: Likewise.
15445 2007-06-05 Bruno Haible <bruno@clisp.org>
15447 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
15448 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
15449 non-IEEE numbers on i386, x86_64, ia64.
15450 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
15451 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
15452 * tests/test-isnanl.h: Include float.h.
15453 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
15455 2007-06-05 Bruno Haible <bruno@clisp.org>
15457 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
15458 also the %a / %A. Handle the %a / %A code before this extra handling.
15460 2007-06-05 Bruno Haible <bruno@clisp.org>
15462 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
15463 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
15465 2007-06-05 Bruno Haible <bruno@clisp.org>
15467 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
15468 typo in variable name.
15470 2007-06-05 Eric Blake <ebb9@byu.net>
15472 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
15473 Reported by Simon Josefsson.
15475 2007-06-04 Bruno Haible <bruno@clisp.org>
15477 Avoid test failures on some PowerPC platforms.
15478 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
15479 Define differently for PowerPC.
15480 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
15481 Reported by Gary V. Vaughan <gary@gnu.org>.
15483 2007-06-02 Bruno Haible <bruno@clisp.org>
15485 Fix test-stdint failure on FreeBSD/ia64.
15486 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
15487 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
15488 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
15489 * doc/headers/stdint.texi: Update.
15491 2007-06-01 Bruno Haible <bruno@clisp.org>
15493 * tests/test-binary-io.c (main): Pass a third argument to open().
15494 Reported by Gary V. Vaughan <gary@gnu.org>.
15496 2007-06-01 Bruno Haible <bruno@clisp.org>
15498 * doc/functions/frexpl.texi: Update for mingw.
15500 2007-06-01 Bruno Haible <bruno@clisp.org>
15502 * tests/test-lseek.c (main): Disable test of errno for invalid third
15504 * doc/functions/lseek.texi: Update.
15505 Reported by Gary V. Vaughan <gary@gnu.org>.
15507 2007-05-28 Bruno Haible <bruno@clisp.org>
15509 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
15511 2007-05-31 Eric Blake <ebb9@byu.net>
15513 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
15516 2007-05-30 Eric Blake <ebb9@byu.net>
15517 and Bruno Haible <bruno@clisp.org>
15519 Work around mingw test failures exposed by m4-1.4.9b.
15520 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
15521 * tests/test-unistd.c: Disable uid_t and git_t tests for the
15524 2007-05-30 Bruno Haible <bruno@clisp.org>
15526 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
15527 assuming that they are closed. Needed on HP-UX 11.
15529 2007-05-29 Bruno Haible <bruno@clisp.org>
15531 Fix a problem with #include_next.
15532 * lib/dirent_.h: Split the double-inclusion guard.
15533 * lib/fcntl_.h: Likewise.
15534 * lib/float_.h: Likewise.
15535 * lib/iconv_.h: Likewise.
15536 * lib/inttypes_.h: Likewise.
15537 * lib/locale_.h: Likewise.
15538 * lib/math_.h: Likewise.
15539 * lib/netinet_in_.h: Likewise.
15540 * lib/search_.h: Likewise.
15541 * lib/signal_.h: Likewise.
15542 * lib/stdint_.h: Likewise.
15543 * lib/stdio_.h: Likewise.
15544 * lib/stdlib_.h: Likewise.
15545 * lib/string_.h: Likewise.
15546 * lib/sys_select_.h: Likewise.
15547 * lib/sys_socket_.h: Likewise.
15548 * lib/sys_stat_.h: Likewise.
15549 * lib/sys_time_.h: Likewise.
15550 * lib/sysexits_.h: Likewise.
15551 * lib/time_.h: Likewise.
15552 * lib/unistd_.h: Likewise.
15553 * lib/wchar_.h: Likewise.
15554 * lib/wctype_.h: Likewise.
15556 2007-05-29 Bruno Haible <bruno@clisp.org>
15558 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
15561 2007-05-29 Bruno Haible <bruno@clisp.org>
15563 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
15565 Reported by Eric Blake.
15567 2007-05-29 Bruno Haible <bruno@clisp.org>
15569 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
15572 2007-05-29 Eric Blake <ebb9@byu.net>
15573 Bruno Haible <bruno@clisp.org>
15575 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
15578 2007-05-28 Eric Blake <ebb9@byu.net>
15580 * modules/closein-tests (test_closein_LDADD): Support test on
15581 cygwin with libtool.
15583 2007-05-28 Bruno Haible <bruno@clisp.org>
15585 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
15586 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
15587 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
15588 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
15589 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
15590 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
15591 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
15592 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
15593 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
15595 2007-05-28 Eric Blake <ebb9@byu.net>
15597 Unconditionally include <config.h> in unit tests.
15598 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
15599 * tests/test-allocsa.c, tests/test-arcfour.c,
15600 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
15601 tests/test-array_list.c, tests/test-array_oset.c,
15602 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
15603 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
15604 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
15605 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
15606 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
15607 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
15608 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
15609 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
15610 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
15611 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
15612 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
15613 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
15614 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
15615 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
15616 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
15617 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
15618 test-md5.c, test-memmem.c, test-printf-posix.c,
15619 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
15620 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
15621 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
15622 test-strcasestr.c, test-striconv.c, test-striconveh.c,
15623 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
15624 test-vasnprintf-posix2.c, test-vasnprintf.c,
15625 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
15626 test-vfprintf-posix.c, test-vprintf-posix.c,
15627 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
15628 test-xvasprintf.c: Likewise.
15630 2007-05-28 Bruno Haible <bruno@clisp.org>
15632 * gnulib-tool (func_import): Remember the --with-tests command-line
15633 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
15634 Reported by Eric Blake.
15636 2007-05-28 Bruno Haible <bruno@clisp.org>
15638 * modules/ftell-tests: New file.
15639 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
15640 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
15642 * lib/ftell.c: New file.
15643 * modules/ftell: New file.
15644 * m4/ftell.m4: New file.
15645 * doc/functions/ftell.texi: Update.
15646 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
15648 * lib/stdio_.h (rpl_ftell): New declaration.
15649 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
15652 2007-05-28 Eric Blake <ebb9@byu.net>
15654 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
15656 2007-05-28 Bruno Haible <bruno@clisp.org>
15658 * modules/fseek-tests: New file.
15659 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
15660 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
15662 * lib/fseek.c: New file.
15663 * modules/fseek: New file.
15664 * m4/fseek.m4: New file.
15665 * doc/functions/fseek.texi: Update.
15666 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
15668 * lib/stdio_.h (rpl_fseek): New declaration.
15669 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
15672 2007-05-28 Bruno Haible <bruno@clisp.org>
15674 * lib/stdio_.h (fflush): More comments.
15676 2007-05-28 Bruno Haible <bruno@clisp.org>
15678 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
15681 2007-05-28 Eric Blake <ebb9@byu.net>
15683 Improve lseek module.
15684 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
15685 * lib/unistd_.h (lseek): Scale back link warning message.
15686 * tests/test-lseek.c: Beef up test.
15687 * tests/test-lseek.sh: Exercise more facets of lseek.
15688 Reported by Bruno Haible.
15690 2007-05-28 Bruno Haible <bruno@clisp.org>
15692 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
15695 2007-05-27 Bruno Haible <bruno@clisp.org>
15697 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
15699 2007-05-27 Bruno Haible <bruno@clisp.org>
15701 * modules/openmp: New file.
15702 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
15705 2007-05-26 Bruno Haible <bruno@clisp.org>
15707 * modules/chdir-long (Depends-on): Add fchdir.
15708 * modules/chdir-safer (Depends-on): Likewise.
15709 * modules/fts (Depends-on): Likewise.
15710 * modules/fts-lgpl (Depends-on): Likewise.
15711 * modules/openat (Depends-on): Likewise.
15712 * modules/savewd (Depends-on): Likewise.
15714 2007-05-24 Eric Blake <ebb9@byu.net>
15716 Fix lseek on mingw.
15717 * modules/lseek: New module.
15718 * m4/lseek.m4: New file.
15719 * lib/lseek.c: New file.
15720 * modules/lseek-tests: New file.
15721 * tests/test-lseek.c: New file.
15722 * tests/test-lseek.sh: New file.
15723 * MODULES.html.sh: Document lseek module.
15724 * modules/fflush (Depends-on): Add lseek, fseeko.
15725 * modules/fseeko (Depends-on): Likewise.
15726 * modules/ftello (Depends-on): Likewise.
15727 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
15729 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
15731 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
15732 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
15733 * lib/ftello.c (rpl_ftello): Likewise.
15734 * tests/test-fseeko.c (main): Test this.
15735 * tests/test-fseeko.sh: Likewise.
15736 * tests/test-ftello.c (main): Likewise.
15737 * tests/test-ftello.sh: Likewise.
15738 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
15739 implies replacing fseek.
15740 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
15742 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
15743 * modules/unistd (Makefile.am): Likewise.
15744 * lib/unistd_.h (lseek): Declare a replacement.
15745 * doc/functions/lseek.texi (lseek): Document this fix.
15746 * doc/functions/fseek.texi (fseek): Likewise.
15747 * doc/functions/ftell.texi (ftell): Likewise.
15749 2007-05-24 Bruno Haible <bruno@clisp.org>
15751 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
15752 in the printed representation of a NaN.
15753 * tests/test-vasprintf-posix.c (test_function): Likewise.
15754 * tests/test-snprintf-posix.h (test_function): Likewise.
15755 * tests/test-sprintf-posix.h (test_function): Likewise.
15756 Reported by Eric Blake.
15758 2007-05-23 Eric Blake <ebb9@byu.net>
15760 Fix fseeko/ftello on cygwin 1.5.24.
15761 * doc/functions/fseeko.texi (fseeko): Document the fix.
15762 * doc/functions/ftello.texi (ftello): Document the fix.
15763 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
15764 * doc/functions/stdout.text (stdout): New file.
15765 * doc/functions/stderr.text (stderr): New file.
15766 * doc/gnulib.texi (Function Substitutes): Use new files.
15767 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
15769 * tests/test-ftello.c (main): Likewise for ftello.
15770 * tests/test-fseeko.sh: New file.
15771 * tests/test-ftello.sh: New file.
15772 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
15773 with seekable stdin.
15774 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
15775 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
15776 (gl_REPLACE_FSEEKO): New macro.
15777 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
15778 * modules/fseeko (Files): Distribute fseeko.c.
15779 * modules/ftello (Files): Distribute ftello.c.
15780 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
15782 * lib/ftello.c (rpl_ftello): New file.
15783 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
15785 (gl_STDIN_LARGE_OFFSET): New macro.
15786 * modules/stdio (Makefile.am): Perform the replacement.
15787 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
15789 2007-05-23 Bruno Haible <bruno@clisp.org>
15791 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
15792 GNULIB_POSIXCHECK is defined.
15794 2007-05-21 Bruno Haible <bruno@clisp.org>
15796 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
15797 Check also the output for NaN arguments. When cross-compiling, guess
15799 * lib/vasnprintf.c: Update comments.
15800 * tests/test-vasnprintf-posix.c (strisnan): New function.
15801 (test_function): Use it.
15802 * tests/test-vasprintf-posix.c (strisnan): New function.
15803 (test_function): Use it.
15804 * tests/test-snprintf-posix.h (strisnan): New function.
15805 (test_function): Use it.
15806 * tests/test-sprintf-posix.h (strisnan): New function.
15807 (test_function): Use it.
15808 Reported by Eric Blake.
15810 2007-05-20 Bruno Haible <bruno@clisp.org>
15812 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
15813 numbers that fails on BeOS.
15814 * doc/functions/frexpl.texi: Update.
15816 2007-05-20 Jim Meyering <jim@meyering.net>
15818 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
15819 forced upon us by glibc-2.6.
15821 2007-05-20 Bruno Haible <bruno@clisp.org>
15823 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
15824 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
15825 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
15826 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
15827 NEED_PRINTF_INFINITE.
15828 (is_infinitel): New function.
15829 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
15830 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
15831 gl_PREREQ_VASNPRINTF_INFINITE.
15832 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
15833 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15834 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
15835 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
15836 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
15837 gl_PREREQ_VASNPRINTF_INFINITE.
15838 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15839 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15840 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15841 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15842 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15843 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15844 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15845 * doc/functions/fprintf.texi: Update.
15846 * doc/functions/printf.texi: Update.
15847 * doc/functions/snprintf.texi: Update.
15848 * doc/functions/sprintf.texi: Update.
15849 * doc/functions/vfprintf.texi: Update.
15850 * doc/functions/vprintf.texi: Update.
15851 * doc/functions/vsnprintf.texi: Update.
15852 * doc/functions/vsprintf.texi: Update.
15854 2007-05-20 Bruno Haible <bruno@clisp.org>
15856 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
15857 was not found in libc.
15858 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15860 2007-05-20 Bruno Haible <bruno@clisp.org>
15862 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
15863 printed as "-nan" instead of "nan".
15864 * tests/test-vasprintf-posix.c (test_function): Likewise.
15865 * tests/test-snprintf-posix.h (test_function): Likewise.
15866 * tests/test-sprintf-posix.h (test_function): Likewise.
15867 Needed for HP-UX 11.
15869 2007-05-20 Jim Meyering <jim@meyering.net>
15871 Fix buggy test for the fchownat-deref bug.
15872 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
15873 symlink required for the run-test. Without it, this test would
15874 always declare that fchownat doesn't work, and client code would
15875 unnecessarily use the replacement function with fixed libc.
15876 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
15877 Reported by Greg Schafer.
15879 2007-05-19 Bruno Haible <bruno@clisp.org>
15881 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
15882 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
15883 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
15884 Needed for IRIX 6.5 and Solaris 2.5.1.
15886 2007-05-19 Bruno Haible <bruno@clisp.org>
15888 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
15889 (test_function): Skip tests involving -0.0 on platforms where
15891 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
15892 (test_function): Skip tests involving -0.0 on platforms where
15894 * tests/test-snprintf-posix.h (have_minus_zero): New function.
15895 (test_function): Skip tests involving -0.0 on platforms where
15897 * tests/test-sprintf-posix.h (have_minus_zero): New function.
15898 (test_function): Skip tests involving -0.0 on platforms where
15900 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
15902 * tests/test-printf-posix.h (test_function): Likewise.
15903 * tests/test-printf-posix.output: Remove all -0.0 related results.
15904 Needed for IRIX 6.5.
15906 2007-05-19 Bruno Haible <bruno@clisp.org>
15908 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
15909 printed as "nan0x7fffffff" instead of "nan".
15910 * tests/test-vasprintf-posix.c (test_function): Likewise.
15911 * tests/test-snprintf-posix.h (test_function): Likewise.
15912 * tests/test-sprintf-posix.h (test_function): Likewise.
15913 * tests/test-fprintf-posix.h (NaN): Remove macro.
15914 (test_function): Remove all NaN related tests.
15915 * tests/test-printf-posix.h (NaN): Remove macro.
15916 (test_function): Remove all NaN related tests.
15917 * tests/test-printf-posix.output: Remove all NaN related results.
15918 Needed for IRIX 6.5.
15920 2007-05-19 Bruno Haible <bruno@clisp.org>
15922 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
15923 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15925 2007-05-19 Bruno Haible <bruno@clisp.org>
15927 * lib/float_.h: New file.
15928 * m4/float_h.m4: New file.
15929 * modules/float: New file.
15930 * modules/isnanl (Dependencies): Add float.
15931 * modules/isnanl-nolibm (Dependencies): Likewise.
15932 * modules/mathl (Dependencies): Likewise.
15933 * modules/printf-frexpl (Dependencies): Likewise.
15934 * modules/signbit (Dependencies): Likewise.
15935 * modules/vasnprintf (Dependencies): Likewise.
15936 * doc/headers/float.texi: Update.
15938 2007-05-19 Jim Meyering <jim@meyering.net>
15940 * lib/utimens.c (gl_futimens): Rename from futimens,
15941 now that glibc-2.6 declares futimens.
15942 * lib/utimens.h: Likewise.
15944 2007-05-19 Bruno Haible <bruno@clisp.org>
15946 Avoid test failures on mingw.
15947 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
15948 * tests/test-printf-posix.sh: Likewise.
15949 * tests/test-vfprintf-posix.sh: Likewise.
15950 * tests/test-vprintf-posix.sh: Likewise.
15952 2007-05-19 Bruno Haible <bruno@clisp.org>
15954 Fix *printf result for NaN, Inf, -0.0 on mingw.
15955 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
15956 * lib/vasnprintf.c: Include math.h and isnan.h.
15957 (is_infinite_or_zero): New function.
15958 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
15959 values in the %f, %F, %e, %E, %g, %G directives.
15960 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
15961 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15962 gl_PRINTF_INFINITE and test its result. Invoke
15963 gl_PREREQ_VASNPRINTF_INFINITE.
15964 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15965 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15966 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15967 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15968 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15969 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15970 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15971 * doc/functions/fprintf.texi: Update.
15972 * doc/functions/printf.texi: Update.
15973 * doc/functions/snprintf.texi: Update.
15974 * doc/functions/sprintf.texi: Update.
15975 * doc/functions/vfprintf.texi: Update.
15976 * doc/functions/vprintf.texi: Update.
15977 * doc/functions/vsnprintf.texi: Update.
15978 * doc/functions/vsprintf.texi: Update.
15980 2007-05-19 Bruno Haible <bruno@clisp.org>
15982 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
15983 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
15984 Instead of multiplying with 10^k, set extra_zeroes to k.
15985 (scale10_round_long_double): Remove function.
15987 2007-05-18 Bruno Haible <bruno@clisp.org>
15989 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
15990 introduced on 2007-05-06.
15992 2007-05-18 Bruno Haible <bruno@clisp.org>
15994 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
15996 * tests/test-vasprintf-posix.c (test_function): Likewise.
15997 * tests/test-snprintf-posix.h (test_function): Likewise.
15998 * tests/test-sprintf-posix.h (test_function): Likewise.
16000 2007-05-18 Bruno Haible <bruno@clisp.org>
16002 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
16003 (strmatch): New function.
16004 (test_function): Test the %f directive on numbers of various exponents.
16005 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
16006 (strmatch): New function.
16007 (test_function): Test the %f directive on numbers of various exponents.
16008 * tests/test-snprintf-posix.h (strmatch): New function.
16009 (test_function): Test the %f directive on numbers of various exponents.
16010 * tests/test-sprintf-posix.h (strmatch): New function.
16011 (test_function): Test the %f directive on numbers of various exponents.
16012 * tests/test-snprintf-posix.c (SIZEOF): New macro.
16013 * tests/test-sprintf-posix.c (SIZEOF): New macro.
16014 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
16015 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
16017 2007-05-18 Bruno Haible <bruno@clisp.org>
16019 Add support for 'long double' number output.
16020 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
16021 * lib/vasnprintf.c: Include math.h and float+.h.
16022 (mp_limb_t): New type.
16023 (GMP_LIMB_BITS): New macro.
16024 (mp_twolimb_t): New type.
16025 (GMP_TWOLIMB_BITS): New macro.
16027 (multiply, divide, convert_to_decimal, decode_long_double,
16028 scale10_round_long_double, scale10_round_decimal_long_double,
16029 floorlog10l): New functions.
16030 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
16031 for the %f, %F, %e, %E, %g, %G directives.
16032 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
16033 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16034 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
16035 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
16036 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16037 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16038 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16039 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16040 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16041 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16042 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16043 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
16044 * modules/snprintf-posix (Depends-on): Likewise.
16045 * modules/sprintf-posix (Depends-on): Likewise.
16046 * modules/vasnprintf-posix (Depends-on): Likewise.
16047 * modules/vasprintf-posix (Depends-on): Likewise.
16048 * modules/vfprintf-posix (Depends-on): Likewise.
16049 * modules/vsnprintf-posix (Depends-on): Likewise.
16050 * modules/vsprintf-posix (Depends-on): Likewise.
16051 * modules/vasnprintf (Files): Add lib/float+.h.
16052 * doc/functions/fprintf.texi: Update.
16053 * doc/functions/printf.texi: Update.
16054 * doc/functions/snprintf.texi: Update.
16055 * doc/functions/sprintf.texi: Update.
16056 * doc/functions/vfprintf.texi: Update.
16057 * doc/functions/vprintf.texi: Update.
16058 * doc/functions/vsnprintf.texi: Update.
16059 * doc/functions/vsprintf.texi: Update.
16061 2007-05-18 Bruno Haible <bruno@clisp.org>
16063 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
16065 2007-05-18 Bruno Haible <bruno@clisp.org>
16067 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
16068 for printing 64-bit integers. Needed for mingw.
16070 2007-05-18 Bruno Haible <bruno@clisp.org>
16072 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
16073 gl_FUNC_FREXPL_WORKS.
16074 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
16076 2007-05-18 Bruno Haible <bruno@clisp.org>
16078 * modules/frexpl-nolibm-tests: New file.
16080 * modules/frexpl-nolibm: New file.
16081 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
16083 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
16085 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
16086 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
16087 GCC 4.2, which otherwise issues a lot of warnings.
16088 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
16089 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
16091 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
16092 * modules/iconv_open (iconv.h): Likewise.
16093 * modules/locale (locale.h): Likewise.
16094 * modules/netinet_in (netinet/in.h): Likewise.
16095 * modules/sys_select (sys_select.h): Likewise.
16096 * modules/sys_socket (sys/socket.h): Likewise.
16097 * modules/sys_stat (sys/stat.h): Likewise.
16098 * modules/sysexits (sysexits.h): Likewise.
16099 * modules/unistd (unistd.h): Likewise.
16101 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16103 * modules/closein-tests (Makefile.am): Distribute
16106 2007-05-17 Bruno Haible <bruno@clisp.org>
16108 * tests/test-printf-posix.output: Renamed from
16109 tests/test-fprintf-posix.out.
16110 * modules/fprintf-posix-tests: Update.
16111 * modules/printf-posix-tests: Update.
16112 * modules/vfprintf-posix-tests: Update.
16113 * modules/vprintf-posix-tests: Update.
16114 * tests/test-fprintf-posix.sh: Update.
16115 * tests/test-printf-posix.sh: Update.
16116 * tests/test-vfprintf-posix.sh: Update.
16117 * tests/test-vprintf-posix.sh: Update.
16118 Reported by Ralf Wildenhues.
16120 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
16122 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
16123 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
16124 GCC 4.2, which otherwise issues a lot of warnings.
16125 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
16126 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
16127 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
16128 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
16129 it should no longer be needed.
16130 * lib/string_.h: Likewise.
16131 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
16132 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
16133 * modules/inttypes (inttypes.h): Likewise.
16134 * modules/math (math.h): Likewise.
16135 * modules/search (search.h): Likewise.
16136 * modules/signal (signal.h): Likewise.
16137 * modules/stdint (stdint.h): Likewise.
16138 * modules/stdio (stdio.h): Likewise.
16139 * modules/stdlib (stdlib.h): Likewise.
16140 * modules/string (string.h): Likewise.
16141 * modules/sys_time (sys/time.h): Likewise.
16142 * modules/time (time.h): Likewise.
16143 * modules/wchar (wchar.h): Likewise.
16144 * modules/wctype (wtype.h): Likewise.
16146 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
16148 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
16150 2007-05-13 Bruno Haible <bruno@clisp.org>
16152 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
16153 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16154 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
16155 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
16156 (gl_PREREQ_STRTOK_R): Don't require it here.
16158 2007-05-13 Bruno Haible <bruno@clisp.org>
16160 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
16161 when used in C++ mode.
16163 2007-05-12 Bruno Haible <bruno@clisp.org>
16165 * lib/linebuffer.h: Tweak doc.
16166 * lib/linebuffer.c: Likewise.
16168 2007-05-12 James Youngman <jay@gnu.org>
16170 * lib/linebuffer.c (readlinebuffer_delim): New function,
16171 like readlinebuffer, but use a caller-specified delimiter.
16172 (readlinebuffer): Just call readlinebuffer_delim with '\n'
16174 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
16176 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
16178 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
16179 * modules/openat (Files): Remove openat-die.c.
16180 (Depends-on): Add openat-die.
16181 * modules/openat-die: New module.
16183 2007-05-06 Bruno Haible <bruno@clisp.org>
16185 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
16186 Update with info about Cygwin.
16187 * doc/functions/fprintf.texi: Update.
16188 * doc/functions/printf.texi: Update.
16189 * doc/functions/snprintf.texi: Update.
16190 * doc/functions/sprintf.texi: Update.
16191 * doc/functions/vfprintf.texi: Update.
16192 * doc/functions/vprintf.texi: Update.
16193 * doc/functions/vsnprintf.texi: Update.
16194 * doc/functions/vsprintf.texi: Update.
16195 Reported by Eric Blake.
16197 2007-05-06 Bruno Haible <bruno@clisp.org>
16199 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
16200 padding ourselves for the floating-point directives.
16201 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
16202 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
16203 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
16204 gl_PRINTF_FLAG_ZERO and test its result. Invoke
16205 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
16206 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16207 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
16208 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16209 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16210 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16211 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16212 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16213 * tests/test-snprintf-posix.h (test_function): Also check the width
16214 and some flags in the %f directive.
16215 * tests/test-sprintf-posix.h (test_function): Likewise.
16216 * tests/test-vasnprintf-posix.c (test_function): Likewise.
16217 * tests/test-vasprintf-posix.c (test_function): Likewise.
16218 * doc/functions/fprintf.texi: Update.
16219 * doc/functions/printf.texi: Update.
16220 * doc/functions/snprintf.texi: Update.
16221 * doc/functions/sprintf.texi: Update.
16222 * doc/functions/vfprintf.texi: Update.
16223 * doc/functions/vprintf.texi: Update.
16224 * doc/functions/vsnprintf.texi: Update.
16225 * doc/functions/vsprintf.texi: Update.
16227 2007-05-06 Bruno Haible <bruno@clisp.org>
16229 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
16230 pass the ' flag character to sprintf or snprintf.
16231 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
16232 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
16233 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
16234 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
16235 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
16236 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16237 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
16238 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16239 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16240 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16241 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16242 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16243 * tests/test-snprintf-posix.h (test_function): Also check the grouping
16245 * tests/test-sprintf-posix.h (test_function): Likewise.
16246 * tests/test-vasnprintf-posix.c (test_function): Likewise.
16247 * tests/test-vasprintf-posix.c (test_function): Likewise.
16248 * doc/functions/fprintf.texi: Update.
16249 * doc/functions/printf.texi: Update.
16250 * doc/functions/snprintf.texi: Update.
16251 * doc/functions/sprintf.texi: Update.
16252 * doc/functions/vfprintf.texi: Update.
16253 * doc/functions/vprintf.texi: Update.
16254 * doc/functions/vsnprintf.texi: Update.
16255 * doc/functions/vsprintf.texi: Update.
16257 2007-05-01 Bruno Haible <bruno@clisp.org>
16259 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
16261 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
16263 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
16264 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
16266 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
16268 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
16269 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
16270 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
16272 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
16274 * lib/argp-help.c (struct hol_entry): New member `ord'.
16275 (HOL_ENTRY_PTRCMP): Use ord for comparison
16276 (hol_sort): Initialize ord.
16278 2007-05-01 Bruno Haible <bruno@clisp.org>
16280 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
16281 Reported by Eric Blake.
16282 * doc/gnulib.texi (Function Substitutes): Update.
16284 2007-05-01 Bruno Haible <bruno@clisp.org>
16286 * doc/functions.texi: Remove file, now redundant through
16287 doc/functions/*.texi.
16289 2007-05-01 Bruno Haible <bruno@clisp.org>
16291 * modules/argp (Depends-on): Add sleep.
16293 2007-05-01 Bruno Haible <bruno@clisp.org>
16295 * modules/sleep-tests: New file.
16296 * tests/test-sleep.c: New file.
16298 * modules/sleep: New file.
16299 * lib/sleep.c: New file.
16300 * m4/sleep.m4: New file.
16301 * lib/unistd_.h (sleep): New declaration.
16302 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
16304 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
16305 * doc/functions/sleep.texi: Document the sleep module.
16307 2007-05-01 Bruno Haible <bruno@clisp.org>
16309 * lib/sigprocmask.h: Remove file.
16310 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
16311 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
16312 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
16313 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
16314 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
16315 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
16316 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
16317 HAVE_SIGSET_T as a shell variable.
16318 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
16319 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
16320 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
16321 (Depends-on): Add signal. Remove verify.
16322 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
16323 (Include): Mention <signal.h> instead of sigprocmask.h.
16324 * NEWS: Mention the change.
16325 * lib/fatal-signal.c: Don't include sigprocmask.h.
16327 2007-05-01 Bruno Haible <bruno@clisp.org>
16329 * modules/signal: New file.
16330 * lib/signal_.h: New file.
16331 * m4/signal_h.m4: New file.
16333 2007-05-01 Bruno Haible <bruno@clisp.org>
16335 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
16336 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
16337 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
16338 HAVE_WCTYPE_CTMP_BUG into wctype.h.
16340 2007-05-01 Bruno Haible <bruno@clisp.org>
16342 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
16344 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
16345 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
16346 * modules/sys_stat (Makefile.am): Substitute their values into
16349 2007-05-01 Bruno Haible <bruno@clisp.org>
16351 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
16352 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
16353 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
16355 2007-05-01 Bruno Haible <bruno@clisp.org>
16357 * doc/header/assert.texi: Undo last change: don't mention the gnulib
16358 'assert' module here.
16360 2007-05-01 Bruno Haible <bruno@clisp.org>
16362 * doc/functions/*.texi: New files.
16363 * doc/functions/google-ranking.txt: New file.
16364 * doc/gnulib.texi (Function Substitutes): New chapter.
16365 (ctime, inet_ntoa): Remove sections.
16366 * doc/ctime.texi: Remove file.
16367 * doc/inet_ntoa.texi: Remove file.
16368 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
16370 (%.info): New rule, specifying a --reference-limit.
16372 2007-05-01 Bruno Haible <bruno@clisp.org>
16374 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
16376 2007-05-01 Bruno Haible <bruno@clisp.org>
16378 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
16379 the portability of 'mkdir' to mingw systems.
16381 2007-05-01 Bruno Haible <bruno@clisp.org>
16383 * doc/headers/google-ranking.txt: New file.
16385 2007-04-30 Eric Blake <ebb9@byu.net>
16387 Prefer fseeko to fseek.
16388 * modules/getpass (Depends-on): Add fseeko.
16389 * lib/getpass.c (getpass): Use fseeko, not fseek.
16391 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
16393 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
16394 assumes the sorting is stable, while most qsort implementations
16395 are not. Use argument addresses to ensure they never compare as
16398 * tests/test-argp-2.sh (usage-indent test): Fix output
16399 (func_compare): Restore diff options
16400 * tests/test-argp.c: Restore #include "progname.h"
16402 2007-04-29 Bruno Haible <bruno@clisp.org>
16404 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
16405 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
16406 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
16407 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16408 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
16409 (configure.ac): Define CHECK_SNPRINTF_POSIX.
16410 (TESTS, check_PROGRAMS): Add test-snprintf.
16411 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
16412 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
16413 (TESTS, check_PROGRAMS): Add test-vsnprintf.
16414 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
16415 assertions that fail on HP-UX, OSF/1, or IRIX.
16416 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
16418 2007-04-29 Bruno Haible <bruno@clisp.org>
16420 * MODULES.html.sh (posix_functions): Remove 'contents'.
16422 2007-04-29 Karl Berry <karl@gnu.org>
16424 * config/srclist.txt (gendocs_template_min): new entry.
16426 2007-04-29 Bruno Haible <bruno@clisp.org>
16428 Work around fpurge bug on BSD systems.
16429 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
16430 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
16431 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
16432 fpurge to rpl_fpurge if the system already has this function.
16433 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
16434 the case where the system already has this function. Correct invariants
16436 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
16439 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
16441 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
16442 proposed by Sven Verdoolaege.
16444 * tests/test-argp.c: Fix option ordering. Test deeply clustered
16446 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
16447 (usage and help tests): Update
16449 2007-04-29 Bruno Haible <bruno@clisp.org>
16451 * tests/test-fflush.c (main): Use a file of size 17, not 10.
16452 Print more information in case of failure. Disable a test on BeOS.
16454 2007-04-29 Bruno Haible <bruno@clisp.org>
16456 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
16457 This helps debugging on systems on which no gdb is available.
16459 2007-04-29 Bruno Haible <bruno@clisp.org>
16461 * lib/freading.h: Improve comments.
16462 * lib/fwriting.h: Likewise.
16463 * tests/test-freading.c (main): Don't check freading immediately after
16464 repositioning. Needed for glibc.
16466 2007-04-29 Bruno Haible <bruno@clisp.org>
16468 * lib/freading.c (freading): Trivial simplification.
16470 2007-04-28 Bruno Haible <bruno@clisp.org>
16472 * tests/test-fwriting.c (main): Also test the interaction between
16473 fflush and fwriting.
16474 * modules/fwriting-tests (Depends-on): Add fflush.
16476 * tests/test-freading.c (main): Also test the interaction between
16477 fflush and freading.
16478 * modules/freading-tests (Depends-on): Add fflush.
16480 2007-04-28 Bruno Haible <bruno@clisp.org>
16482 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
16484 Suggested by Eric Blake.
16486 2007-04-28 Jim Meyering <jim@meyering.net>
16488 Avoid false-negative in gl_STDINT_H's C99 conformance test.
16489 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
16490 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
16492 2007-04-27 Eric Blake <ebb9@byu.net>
16494 * doc/headers/assert.texi (assert.h): Document assert module use.
16496 2007-04-27 Bruno Haible <bruno@clisp.org>
16498 * doc/headers/*.texi: New files.
16499 * doc/gnulib.texi (Header File Substitutes): New chapter.
16500 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
16502 (standards.info ,standards.html, standards.dvi): Update dependencies.
16503 (mostlyclean, clean): New targets.
16505 2007-04-27 Bruno Haible <bruno@clisp.org>
16507 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
16508 * modules/sysexits (Files, Makefile.am): Update.
16510 * lib/sys_socket_.h: Renamed from lib/socket_.h.
16511 * modules/sys_socket (Files, Makefile.am): Update.
16513 * lib/sys_stat_.h: Renamed from lib/stat_.h.
16514 * modules/sys_stat (Files, Makefile.am): Update.
16516 2007-04-27 Eric Blake <ebb9@byu.net>
16518 * lib/freading.h: Improve comments.
16519 * lib/fwriting.h: Likewise.
16520 * lib/fflush.c: Likewise.
16522 Fix closein for mingw.
16523 * modules/closein-tests: Add tests for closein.
16524 * tests/test-closein.c: New file.
16525 * tests/test-closein.sh: Likewise.
16526 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
16527 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
16529 2007-04-27 Bruno Haible <bruno@clisp.org>
16531 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
16533 * lib/math_.h [__DECC]: Likewise.
16534 * lib/stdio_.h [__DECC]: Likewise.
16535 * lib/stdlib_.h [__DECC]: Likewise.
16536 * lib/string_.h [__DECC]: Likewise.
16537 * lib/time_.h [__DECC]: Likewise.
16538 * lib/wchar_.h [__DECC]: Likewise.
16539 * lib/wctype_.h [__DECC]: Likewise.
16541 2007-04-27 Bruno Haible <bruno@clisp.org>
16543 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
16545 2007-04-27 Bruno Haible <bruno@clisp.org>
16547 * lib/fflush.c: Add comments.
16548 * modules/fpurge-tests (Depends-on): Add fflush.
16549 * modules/freadable-tests (Depends-on): Likewise.
16550 * modules/fwritable-tests (Depends-on): Likewise.
16552 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
16554 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
16555 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
16556 Report by Bruno Haible <bruno@clisp.org>.
16558 2007-04-26 Eric Blake <ebb9@byu.net>
16560 Fix fflush on mingw.
16561 * modules/fflush (Depends-on): Add freading.
16562 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
16565 2007-04-26 Eric Blake <ebb9@byu.net>
16566 and Bruno Haible <bruno@clisp.org>
16568 Implement freading and fwriting.
16569 * lib/freading.c: New file.
16570 * lib/freading.h: Likewise.
16571 * m4/freading.m4: Likewise.
16572 * modules/freading: Likewise.
16573 * modules/freading-tests: Likewise.
16574 * tests/test-freading.c: Likewise.
16575 * lib/fwriting.c: New file.
16576 * lib/fwriting.h: Likewise.
16577 * m4/fwriting.m4: Likewise.
16578 * modules/fwriting: Likewise.
16579 * modules/fwriting-tests: Likewise.
16580 * tests/test-fwriting.c: Likewise.
16581 * MODULES.html.sh (File stream based Input/Output): Mention them.
16583 2007-04-26 Bruno Haible <bruno@clisp.org>
16585 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
16586 'long' when we assume it.
16587 Suggested by Eric Blake.
16589 2007-04-26 Bruno Haible <bruno@clisp.org>
16591 Ensure fseeko, ftello are declared on glibc systems.
16592 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
16593 * modules/fseeko (configure.ac-early): Likewise.
16594 * modules/ftello (configure.ac-early): Likewise.
16595 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
16596 AC_FUNC_FSEEKO for this.
16597 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
16598 (gl_CHECK_FSEEKO): Remove macro.
16600 2007-04-26 Bruno Haible <bruno@clisp.org>
16602 * tests/test-fflush.c (main): Also check the ftell result after
16603 fflush and fseek/fseeko.
16604 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
16605 file descriptor position cache in the stream.
16606 * lib/fseeko.c (rpl_fseeko): Likewise.
16608 2007-04-26 Bruno Haible <bruno@clisp.org>
16610 * modules/fflush-tests (Depends-on): Add fseeko.
16612 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
16613 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16615 * lib/argz_.h: ensure error_t definition is obtained in same
16616 mechanism system argz.h would have.
16617 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
16618 argz facilities are known bad. Err on the side of caution if
16621 2007-04-25 Eric Blake <ebb9@byu.net>
16623 * lib/fpurge.c (includes): Use stdlib.h for free.
16624 * tests/test-fflush.c (main): Also test fflush-fseeko.
16626 2007-04-25 Bruno Haible <bruno@clisp.org>
16628 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
16629 * lib/fseeko.c: New file.
16630 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
16631 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
16632 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
16634 (gl_FUNC_FSEEKO): Invoke it.
16635 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
16636 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
16637 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
16639 2007-04-25 Bruno Haible <bruno@clisp.org>
16641 * modules/fflush (Depends-on): Add ftello.
16643 2007-04-25 Bruno Haible <bruno@clisp.org>
16645 * modules/ftello-tests: New file.
16646 * tests/test-ftello.c: New file.
16648 * modules/ftello: New file.
16649 * m4/ftello.m4: New file.
16650 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
16652 * lib/stdio_.h (ftello): New declaration.
16653 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
16656 2007-04-25 Bruno Haible <bruno@clisp.org>
16658 * modules/fseeko-tests: New file.
16659 * tests/test-fseeko.c: New file.
16661 * modules/fseeko: New file.
16662 * m4/fseeko.m4: New file.
16663 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
16665 * lib/stdio_.h (fseeko): New declaration.
16666 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
16669 2007-04-25 Bruno Haible <bruno@clisp.org>
16671 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
16673 2007-04-25 Bruno Haible <bruno@clisp.org>
16675 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
16676 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
16677 * tests/test-unistd.c: Likewise.
16678 * tests/test-fcntl.c: Likewise.
16680 2007-04-23 Eric Blake <ebb9@byu.net>
16682 * lib/fflush.c: Fix missing include.
16683 Reported by Bruno Haible.
16685 2007-04-23 Bruno Haible <bruno@clisp.org>
16687 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
16688 Reported by Eric Blake.
16690 2007-04-23 Bruno Haible <bruno@clisp.org>
16692 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
16694 2007-04-23 Bruno Haible <bruno@clisp.org>
16696 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
16698 2007-04-23 Bruno Haible <bruno@clisp.org>
16700 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
16701 Needed on HP-UX 11.
16703 2007-04-16 Eric Blake <ebb9@byu.net>
16705 Make fflush rely on fpurge.
16706 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
16707 open coding all variants.
16708 * modules/fflush (Depends-on): Add fpurge and unistd.
16709 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
16710 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
16712 Fix --with-tests compilation on cygwin.
16713 * modules/argmatch-tests (Makefile.am): List gnulib library first
16715 * modules/argp-tests (Makefile.am): Likewise.
16716 * modules/array-list-tests (Makefile.am): Likewise.
16717 * modules/array-oset-tests (Makefile.am): Likewise.
16718 * modules/avltree-list-tests (Makefile.am): Likewise.
16719 * modules/avltree-oset-tests (Makefile.am): Likewise.
16720 * modules/avltreehash-list-tests (Makefile.am): Likewise.
16721 * modules/carray-list-tests (Makefile.am): Likewise.
16722 * modules/dirname-tests (Makefile.am): Likewise.
16723 * modules/frexp-tests (Makefile.am): Likewise.
16724 * modules/isnanl-tests (Makefile.am): Likewise.
16725 * modules/linked-list-tests (Makefile.am): Likewise.
16726 * modules/linkedhash-list-tests (Makefile.am): Likewise.
16727 * modules/lock-tests (Makefile.am): Likewise.
16728 * modules/rbtree-list-tests (Makefile.am): Likewise.
16729 * modules/rbtree-oset-tests (Makefile.am): Likewise.
16730 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
16731 * modules/tls-tests (Makefile.am): Likewise.
16732 * modules/tsearch-tests (Makefile.am): Likewise.
16733 * modules/xvasprintf-tests (Makefile.am): Likewise.
16735 Fix fpurge for cygwin.
16736 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
16738 * modules/fpurge-tests (Depends-on): Clean up trash.
16740 2007-04-16 Simon Josefsson <simon@josefsson.org>
16742 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
16744 * m4/autobuild.m4: Re-indent.
16746 2007-04-13 Bruno Haible <bruno@clisp.org>
16748 * modules/fpurge-tests: New file.
16749 * tests/test-fpurge.c: New file.
16751 * modules/fpurge: New file.
16752 * lib/fpurge.h: New file.
16753 * lib/fpurge.c: New file.
16754 * m4/fpurge.m4: New file.
16756 2007-04-13 Bruno Haible <bruno@clisp.org>
16758 * modules/fbufmode-tests: New file.
16759 * tests/test-fbufmode.c: New file.
16761 * modules/fbufmode: New file.
16762 * lib/fbufmode.h: New file.
16763 * lib/fbufmode.c: New file.
16764 * m4/fbufmode.m4: New file.
16766 2007-04-13 Bruno Haible <bruno@clisp.org>
16768 * modules/fwritable-tests: New file.
16769 * tests/test-fwritable.c: New file.
16771 * modules/fwritable: New file.
16772 * lib/fwritable.h: New file.
16773 * lib/fwritable.c: New file.
16774 * m4/fwritable.m4: New file.
16776 2007-04-13 Bruno Haible <bruno@clisp.org>
16778 * modules/freadable-tests: New file.
16779 * tests/test-freadable.c: New file.
16781 * modules/freadable: New file.
16782 * lib/freadable.h: New file.
16783 * lib/freadable.c: New file.
16784 * m4/freadable.m4: New file.
16786 2007-04-13 Bruno Haible <bruno@clisp.org>
16788 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
16791 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
16793 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
16794 gzip bootstrap.conf to avoid dragging in i18n machinery.
16795 (gnulib_tool_option): Use it.
16797 2007-04-13 Bruno Haible <bruno@clisp.org>
16799 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
16801 * tests/test-vasprintf-posix.c (test_function): Likewise.
16802 * tests/test-snprintf-posix.h (test_function): Likewise.
16803 * tests/test-sprintf-posix.h (test_function): Likewise.
16804 * tests/test-fprintf-posix.h (test_function): Likewise.
16805 * tests/test-printf-posix.h (test_function): Likewise.
16806 * tests/test-fprintf-posix.out: Likewise.
16808 2007-04-13 Bruno Haible <bruno@clisp.org>
16810 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
16811 * modules/tls-tests (configure.ac): Likewise.
16812 Reported by Arto C. Nirkko <anirkko@insel.ch>.
16814 2007-04-13 Bruno Haible <bruno@clisp.org>
16816 * lib/tls.c (glthread_tls_get): Fix return type.
16817 Patch by Arto C. Nirkko <anirkko@insel.ch>.
16819 2007-04-12 Eric Blake <ebb9@byu.net>
16821 * modules/gettime (Depends-on): Remove gettime.
16822 Reported by Dmitry V. Levin.
16824 2007-04-12 Bruno Haible <bruno@clisp.org>
16826 * modules/fflush (Include): Mention <stdio.h>.
16827 * modules/strtoimax (Include): Mention <inttypes.h>.
16828 * modules/strtoumax (Include): Likewise.
16830 2007-04-12 Eric Blake <ebb9@byu.net>
16832 * .cvsignore: New file.
16833 * .gitignore: Likewise.
16835 2007-04-12 Bruno Haible <bruno@clisp.org>
16837 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
16838 not before, since $(LDADD) often contains libgnu.a.
16839 * modules/striconv-tests (test_striconv_LDADD): Likewise.
16840 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
16841 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
16844 2007-04-12 Eric Blake <ebb9@byu.net>
16846 Work around glibc's failure to flush stdin on fclose.
16847 * lib/closein.c (close_stdin): Flush stdin before closing.
16849 Work around glibc's failure to reset seekable stdin on exit.
16850 * modules/closein: New module.
16851 * lib/closein.c: New file.
16852 * lib/closein.h: Likewise.
16853 * m4/closein.m4: Likewise.
16854 * MODULES.html.sh (File stream based Input/Output): Document it.
16856 2007-04-12 Simon Josefsson <simon@josefsson.org>
16858 * gnulib-tool: Rename generated 'autobuild' script to
16859 'do-autobuild' in --create-megatestdir output.
16861 * doc/gnulib.texi (Build robot for gnulib): Fix.
16863 2007-04-12 Simon Josefsson <simon@josefsson.org>
16865 * modules/sysexits (Depends-on): Add absolute-header.
16867 2007-04-12 Eric Blake <ebb9@byu.net>
16869 No need to preserve errno on success.
16870 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
16871 Reported by Bruno Haible.
16873 2007-04-12 Simon Josefsson <simon@josefsson.org>
16875 * MODULES.html.sh (Support for maintaining and releasing
16876 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
16878 2007-04-12 Simon Josefsson <simon@josefsson.org>
16880 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
16882 2007-04-12 Simon Josefsson <simon@josefsson.org>
16884 * modules/autobuild: New module.
16886 * m4/autobuild.m4: New file.
16888 2007-04-11 Bruno Haible <bruno@clisp.org>
16890 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
16891 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
16892 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
16893 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
16894 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16895 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16896 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16897 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
16898 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16899 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16900 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
16901 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16902 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16903 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
16904 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16905 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16906 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
16907 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16908 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16909 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
16910 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16911 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16912 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
16913 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16914 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16915 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
16916 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16917 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16918 Reported by Eric Blake.
16920 2007-04-11 Bruno Haible <bruno@clisp.org>
16922 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
16924 2007-04-10 Bruno Haible <bruno@clisp.org>
16926 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
16927 for NaN and Infinity. Needed on FreeBSD 6.1.
16928 * tests/test-vasnprintf-posix.c (test_function): Undo last change
16929 regarding results for "%010a" of Infinity and NaN.
16930 * tests/test-vasprintf-posix.c (test_function): Likewise.
16931 * tests/test-snprintf-posix.h (test_function): Likewise.
16932 * tests/test-sprintf-posix.h (test_function): Likewise.
16933 * tests/test-fprintf-posix.h (test_function): Likewise.
16934 * tests/test-printf-posix.h (test_function): Likewise.
16935 * tests/test-fprintf-posix.out: Likewise.
16937 2007-04-10 Bruno Haible <bruno@clisp.org>
16939 * modules/locale-tests: New file.
16940 * tests/test-locale.c: New file.
16942 * modules/locale: New file.
16943 * lib/locale_.h: New file.
16944 * m4/locale_h.m4: New file.
16946 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
16947 Bruno Haible <bruno@clisp.org>
16949 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
16950 be determined, test for availability of the copysignf, copysign,
16951 copysignl functions.
16952 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
16953 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
16954 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
16956 2007-04-09 Eric Blake <ebb9@byu.net>
16958 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
16959 * modules/stdio (Makefile.am): Support fflush.
16960 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16961 * modules/fflush: New file.
16962 * lib/fflush.c: Likewise.
16963 * m4/fflush.m4: Likewise.
16964 * modules/fflush-tests: New test.
16965 * tests/test-fflush.c: Likewise.
16966 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
16968 2007-04-06 Bruno Haible <bruno@clisp.org>
16970 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
16971 (VASNPRINTF): Use signbit for faster determination whether to print a
16973 * modules/vasnprintf (Files): Remove lib/float+.h.
16974 * modules/fprintf-posix (Depends-on): Add signbit.
16975 * modules/snprintf-posix (Depends-on): Likewise.
16976 * modules/sprintf-posix (Depends-on): Likewise.
16977 * modules/vasnprintf-posix (Depends-on): Likewise.
16978 * modules/vasprintf-posix (Depends-on): Likewise.
16979 * modules/vfprintf-posix (Depends-on): Likewise.
16980 * modules/vsnprintf-posix (Depends-on): Likewise.
16981 * modules/vsprintf-posix (Depends-on): Likewise.
16983 2007-04-06 Bruno Haible <bruno@clisp.org>
16985 * tests/test-frexp.c (main): Test also the sign bit of zero results.
16986 * tests/test-frexpl.c (main): Likewise.
16987 * tests/test-ldexpl.c (main): Likewise.
16988 * modules/frexp-tests (Depends-on): Add signbit.
16989 * modules/frexpl-tests (Depdends-on): Likewise.
16990 * modules/ldexpl-tests (Depdends-on): Likewise.
16992 2007-04-06 Bruno Haible <bruno@clisp.org>
16994 * modules/signbit-tests: New file.
16995 * tests/test-signbit.c: New file.
16997 * modules/signbit: New file.
16998 * lib/signbitf.c: New file.
16999 * lib/signbitd.c: New file.
17000 * lib/signbitl.c: New file.
17001 * m4/signbit.m4: New file.
17002 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
17003 (signbit): New macro.
17004 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
17006 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
17007 REPLACE_FREXPL into math.h.
17009 2007-04-06 Bruno Haible <bruno@clisp.org>
17011 * modules/isnanf-nolibm-tests: New file.
17012 * tests/test-isnanf.c: New file.
17014 * modules/isnanf-nolibm: New file.
17015 * lib/isnanf.h: New file.
17016 * lib/isnanf.c: New file.
17017 * lib/isnan.c: Consider the USE_FLOAT macro.
17018 * m4/isnanf.m4: New file.
17020 2007-04-06 Bruno Haible <bruno@clisp.org>
17022 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
17023 (Link): New section.
17025 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
17027 2007-04-06 Bruno Haible <bruno@clisp.org>
17029 Assume the 'long double' type.
17030 * m4/longdouble.m4: Remove file.
17031 * config/srclist.txt: Don't mention longdouble.m4.
17032 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
17033 * lib/float+.h: Likewise.
17034 * lib/frexp.c: Likewise.
17035 * lib/printf-args.h: Likewise.
17036 * lib/printf-args.c: Likewise.
17037 * lib/printf-frexp.c: Likewise.
17038 * lib/printf-parse.c: Likewise.
17039 * lib/vasnprintf.c: Likewise.
17040 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
17041 * m4/intl.m4: Likewise.
17042 * m4/isnanl.m4: Likewise.
17043 * m4/printf.m4: Likewise.
17044 * m4/printf-frexpl.m4: Likewise.
17045 * m4/vasnprintf.m4: Likewise.
17046 * modules/allocsa (Files): Remove m4/longdouble.m4.
17047 * modules/gettext (Files): Likewise.
17048 * modules/relocatable-prog-wrapper (Files): Likewise.
17049 * modules/vasnprintf (Files): Likewise.
17050 * modules/isnanl (Files): Likewise.
17051 (Include): Simplify.
17052 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
17053 (Include): Simplify.
17054 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
17055 (Include): Simplify.
17056 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
17057 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
17058 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
17059 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
17060 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
17061 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
17062 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
17063 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
17064 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
17065 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
17066 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
17067 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
17068 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
17069 * tests/test-isnanl.c: Likewise.
17070 * tests/test-snprintf-posix.h: Likewise.
17071 * tests/test-sprintf-posix.h: Likewise.
17072 * tests/test-vasnprintf-posix.c: Likewise.
17073 * tests/test-vasnprintf-posix2.c: Likewise.
17074 * tests/test-vasprintf-posix.c: Likewise.
17076 2007-04-06 Bruno Haible <bruno@clisp.org>
17078 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
17079 * lib/math_.h [__DECC]: Include the overridden include file through
17080 #include_next, outside the double-inclusion guard.
17081 * lib/stdio_.h [__DECC]: Likewise.
17082 * lib/stdlib_.h [__DECC]: Likewise.
17083 * lib/string_.h [__DECC]: Likewise.
17084 * lib/time_.h [__DECC]: Likewise.
17085 * lib/wchar_.h [__DECC]: Likewise.
17086 * lib/wctype_.h [__DECC]: Likewise.
17087 * lib/inttypes_.h [__DECC]: Likewise.
17088 Reported by Albert Chin <china@thewrittenword.com> in
17089 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
17091 2007-04-04 Eric Blake <ebb9@byu.net>
17093 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
17096 2007-04-04 Bruno Haible <bruno@clisp.org>
17098 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
17099 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
17101 2007-04-04 Bruno Haible <bruno@clisp.org>
17103 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
17104 results for "%010a" of Infinity and NaN.
17105 * tests/test-vasprintf-posix.c (test_function): Likewise.
17106 * tests/test-snprintf-posix.h (test_function): Likewise.
17107 * tests/test-sprintf-posix.h (test_function): Likewise.
17108 * tests/test-fprintf-posix.h (test_function): Remove these tests.
17109 * tests/test-printf-posix.h (test_function): Likewise.
17110 * tests/test-fprintf-posix.out: Update.
17111 Needed for FreeBSD 6.1.
17113 2007-04-04 Bruno Haible <bruno@clisp.org>
17115 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
17116 directly used by the gnulib modules nor by gnulib-tool.
17118 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
17120 * DEPENDENCIES: Give overall description of version dependency
17121 desirability. Use more-typical names for apps.
17122 Add shell, coreutils, diffutils, grep, tar, gzip.
17124 2007-04-04 Simon Josefsson <simon@josefsson.org>
17126 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
17128 2007-04-04 Karl Berry <karl@gnu.org>
17130 * MODULES.html.sh (func_module): missing '.
17132 2007-04-03 Bruno Haible <bruno@clisp.org>
17134 * modules/argmatch-tests (Makefile.am): New variable
17135 test_argmatch_LDADD.
17136 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
17137 * modules/array-list-tests (Makefile.am): New variable
17138 test_array_list_LDADD.
17139 * modules/array-oset-tests (Makefile.am): New variable
17140 test_array_oset_LDADD.
17141 * modules/avltree-list-tests (Makefile.am): New variable
17142 test_avltree_list_LDADD.
17143 * modules/avltree-oset-tests (Makefile.am): New variable
17144 test_avltree_oset_LDADD.
17145 * modules/avltreehash-list-tests (Makefile.am): New variable
17146 test_avltreehash_list_LDADD.
17147 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
17148 test_canonicalize_lgpl_LDADD.
17149 * modules/carray-list-tests (Makefile.am): New variable
17150 test_carray_list_LDADD.
17151 * modules/dirname-tests (Makefile.am): New variable
17152 test_dirname_LDADD.
17153 * modules/linked-list-tests (Makefile.am): New variable
17154 test_linked_list_LDADD.
17155 * modules/linkedhash-list-tests (Makefile.am): New variable
17156 test_linkedhash_list_LDADD.
17157 * modules/rbtree-list-tests (Makefile.am): New variable
17158 test_rbtree_list_LDADD.
17159 * modules/rbtree-oset-tests (Makefile.am): New variable
17160 test_rbtree_oset_LDADD.
17161 * modules/rbtreehash-list-tests (Makefile.am): New variable
17162 test_rbtreehash_list_LDADD.
17163 * modules/xvasprintf-tests (Makefile.am): New variable
17164 test_xvasprintf_LDADD.
17165 Reported by Eric Blake.
17167 2007-04-03 Eric Blake <ebb9@byu.net>
17169 * DEPENDENCIES: Weaken m4 requirements.
17171 2007-04-03 Bruno Haible <bruno@clisp.org>
17173 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
17174 * modules/isnanl-tests (configure.ac): Likewise.
17176 2007-04-03 Ben Pfaff <blp@gnu.org>
17178 * modules/iconv_open: Add $(srcdir)/ to source directory
17179 references in Makefile fragments that call gperf, to fix VPATH
17182 2007-04-03 Bruno Haible <bruno@clisp.org>
17184 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
17185 * lib/ldexpl.c: Undo last change.
17187 2007-04-03 Bruno Haible <bruno@clisp.org>
17189 * modules/printf-frexpl (Depends-on): Undo last change.
17190 (Files): Add m4/ldexpl.m4.
17192 2007-04-03 Bruno Haible <bruno@clisp.org>
17194 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
17195 * modules/isnanl (Link): New section.
17197 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
17198 * modules/frexp (Link): New section.
17200 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
17201 * modules/frexpl (Link): New section.
17203 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
17204 * modules/ldexpl (Link): New section.
17206 2007-04-03 Bruno Haible <bruno@clisp.org>
17208 * modules/TEMPLATE-EXTENDED: New file.
17209 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
17211 2007-04-03 Bruno Haible <bruno@clisp.org>
17213 * DEPENDENCIES: New file.
17214 Suggested by Simon Josefsson.
17216 2007-04-03 Bruno Haible <bruno@clisp.org>
17218 * doc/gnulib.texi: Escape @.
17220 2007-04-03 James Youngman <jay@gnu.org>
17221 and Paul Eggert <eggert@cs.ucla.edu>
17223 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
17224 birthtime on all systems that have birthtime, not just those which
17225 use st_birthtimensec rather than st_birthtim. Putting zero in
17226 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
17227 that the birth time is not available for files on an NFS mount.
17229 2007-04-03 Simon Josefsson <simon@josefsson.org>
17231 * modules/memxor: Move back from crypto/, suggested by Bruno.
17232 * modules/crypto/hmac-sha1: Fix memxor dependency.
17234 * modules/crypto/gc: Moved from ../.
17236 2007-04-02 Eric Blake <ebb9@byu.net>
17238 * lib/ldexpl.c (includes): Avoid libm.
17240 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
17242 2007-04-02 Bruno Haible <bruno@clisp.org>
17244 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
17247 2007-04-02 Bruno Haible <bruno@clisp.org>
17249 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
17250 x86 or x86_64 platforms running MacOS X.
17251 Reported by Ryan Schmidt <@ryandesign.com>.
17253 2007-04-02 Bruno Haible <bruno@clisp.org>
17255 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
17258 2007-04-01 Simon Josefsson <simon@josefsson.org>
17260 * modules/crypto/arcfour: Moved from ../.
17261 * modules/crypto/arcfour-tests: Moved from ../.
17262 * modules/crypto/arctwo: Moved from ../.
17263 * modules/crypto/arctwo-tests: Moved from ../.
17264 * modules/crypto/des: Moved from ../.
17265 * modules/crypto/des-tests: Moved from ../.
17266 * modules/crypto/gc-arcfour: Moved from ../.
17267 * modules/crypto/gc-arcfour-tests: Moved from ../.
17268 * modules/crypto/gc-arctwo: Moved from ../.
17269 * modules/crypto/gc-arctwo-tests: Moved from ../.
17270 * modules/crypto/gc-des: Moved from ../.
17271 * modules/crypto/gc-des-tests: Moved from ../.
17272 * modules/crypto/gc-hmac-md5: Moved from ../.
17273 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
17274 * modules/crypto/gc-hmac-sha1: Moved from ../.
17275 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
17276 * modules/crypto/gc-md2: Moved from ../.
17277 * modules/crypto/gc-md2-tests: Moved from ../.
17278 * modules/crypto/gc-md4: Moved from ../.
17279 * modules/crypto/gc-md4-tests: Moved from ../.
17280 * modules/crypto/gc-md5: Moved from ../.
17281 * modules/crypto/gc-md5-tests: Moved from ../.
17282 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
17283 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
17284 * modules/crypto/gc-random: Moved from ../.
17285 * modules/crypto/gc-rijndael: Moved from ../.
17286 * modules/crypto/gc-rijndael-tests: Moved from ../.
17287 * modules/crypto/gc-sha1: Moved from ../.
17288 * modules/crypto/gc-sha1-tests: Moved from ../.
17289 * modules/crypto/gc-tests: Moved from ../.
17290 * modules/crypto/hmac-md5: Moved from ../.
17291 * modules/crypto/hmac-md5-tests: Moved from ../.
17292 * modules/crypto/hmac-sha1: Moved from ../.
17293 * modules/crypto/hmac-sha1-tests: Moved from ../.
17294 * modules/crypto/md2: Moved from ../.
17295 * modules/crypto/md2-tests: Moved from ../.
17296 * modules/crypto/md4: Moved from ../.
17297 * modules/crypto/md4-tests: Moved from ../.
17298 * modules/crypto/md5: Moved from ../.
17299 * modules/crypto/md5-tests: Moved from ../.
17300 * modules/crypto/memxor: Moved from ../.
17301 * modules/crypto/rijndael: Moved from ../.
17302 * modules/crypto/rijndael-tests: Moved from ../.
17303 * modules/crypto/sha1: Moved from ../.
17305 2007-03-30 James Youngman <jay@gnu.org>
17307 * tests/test-stat-time.c (prepare_test): use chmod() rather than
17308 rename() to change the ctime of a file (because ctime is unaffected
17309 by rename on jfs2 on AIX 5.1).
17310 (main): Start by doing cleanup, in case a previous run failed leaving
17313 2007-03-31 Bruno Haible <bruno@clisp.org>
17315 Support old proprietary implementations of iconv.
17316 * modules/iconv_open: New file.
17317 * lib/iconv_.h: New file.
17318 * m4/iconv_h.m4: New file.
17319 * lib/iconv_open.c: New file.
17320 * lib/iconv_open-aix.gperf: New file.
17321 * lib/iconv_open-hpux.gperf: New file.
17322 * lib/iconv_open-irix.gperf: New file.
17323 * lib/iconv_open-osf.gperf: New file.
17324 * m4/iconv_open.m4: New file.
17325 * modules/linebreak (Depends-on): Add iconv_open.
17326 * modules/striconv (Depends-on): Likewise.
17327 * modules/striconveh (Depends-on): Likewise.
17328 * modules/unicodeio (Depends-on): Likewise.
17329 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
17331 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
17332 conversion if cd is (iconv_t)(-1).
17333 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
17336 2007-03-31 Bruno Haible <bruno@clisp.org>
17338 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
17339 work on Solaris either. Protect also second use of "autodetect_jp".
17341 2007-03-31 Bruno Haible <bruno@clisp.org>
17343 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
17344 the function is not present.
17346 2007-03-31 Bruno Haible <bruno@clisp.org>
17348 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
17349 the function is not present.
17351 2007-03-31 Bruno Haible <bruno@clisp.org>
17353 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
17354 a bug in HP-UX iconv_open().
17356 2007-03-31 Bruno Haible <bruno@clisp.org>
17358 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
17359 (Mathematics <math.h>): New section, add fpieee.
17360 (Input/output <stdio.h>): Add fseterr.
17361 (Mathematics <math.h>): New section, add printf-frexp.
17362 (Container data structures): Add sublist.
17363 (Core language properties): Add fpucw, inline.
17364 (Functions for greatest-width integer types <inttypes.h>): Add
17365 imaxabs, imaxdiv, inttypes.
17366 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
17367 isnanl-nolibm, ldexp.
17368 (Mathematics <math.h>): New section, add printf-frexpl.
17369 (Support for systems lacking POSIX:2001): Add fprintf-posix,
17370 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
17371 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
17372 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
17373 (Unicode string functions): Add unistr/u*-mbtoucr.
17374 (Java): Add javacomp-script, javaexec-script.
17375 (C#): Add csharpcomp-script, csharpexec-script.
17376 (Support for building libraries and executables): Add havelib,
17378 (Support for maintaining and releasing projects): Renamed from
17379 'Support for maintaining and release projects'. Add announce-gen.
17381 2007-03-31 Bruno Haible <bruno@clisp.org>
17383 * README: Talk primarily about git.
17384 (git and CVS): Renamed from CVS.
17385 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
17386 gnulib is available through git.
17387 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
17389 2007-03-30 Bruno Haible <bruno@clisp.org>
17391 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
17392 * lib/poll_.h: Likewise.
17393 * lib/stat_.h: Likewise.
17394 * lib/sys_time_.h: Likewise.
17395 * lib/sysexit_.h: Likewise.
17396 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
17397 * lib/stdbool_.h: Likewise.
17398 * lib/byteswap_.h: Add double-inclusion guard.
17400 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
17402 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
17404 2007-03-30 Karl Berry <karl@gnu.org>
17406 * config/srclist-update: double space after USA in the license
17407 substitution, since that's how it's usually (?) written.
17409 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
17411 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
17412 reported by Bruno Haible.
17414 2007-03-29 Bruno Haible <bruno@clisp.org>
17416 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
17417 a bug in AIX iconv().
17419 2007-03-29 Bruno Haible <bruno@clisp.org>
17421 * modules/ldexpl-tests: New file.
17422 * tests/test-ldexpl.c: New file.
17424 2007-03-29 Bruno Haible <bruno@clisp.org>
17426 * lib/ldexpl.c: Include fpucw.h.
17427 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
17429 * modules/ldexpl (Depends-on): Add fpucw.
17431 2007-03-29 Bruno Haible <bruno@clisp.org>
17433 * modules/ldexpl: New file.
17434 * m4/ldexpl.m4: New file.
17435 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
17437 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
17439 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
17441 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
17442 gl_FUNC_LDEXPL_WORKS.
17443 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
17444 * modules/mathl (Files): Remove lib/ldexpl.c.
17445 (Depends-on): Add ldexpl.
17447 2007-03-29 Bruno Haible <bruno@clisp.org>
17449 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
17451 2007-03-29 Bruno Haible <bruno@clisp.org>
17453 * tests/test-striconveh.c (main): Don't assume that a direct conversion
17454 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
17455 and possibly also HP-UX.
17456 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
17457 work on AIX, IRIX, HP-UX, OSF/1.
17458 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
17459 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
17460 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
17461 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
17462 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
17463 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
17465 2007-03-29 Bruno Haible <bruno@clisp.org>
17467 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
17469 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
17471 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
17472 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
17474 2007-03-29 Eric Blake <ebb9@byu.net>
17476 * lib/acl-internal.h: Remove redundant include.
17477 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
17478 Cygwin when a file is locked.
17480 2007-03-29 Bruno Haible <bruno@clisp.org>
17482 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
17484 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
17486 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
17488 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
17489 try to remove a parent directory if the child couldn't be removed
17490 (except for the first rmdir, which could fail because the child
17491 doesn't exist). Problem reported by Jeff Blaine in
17492 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
17494 2007-03-28 Bruno Haible <bruno@clisp.org>
17496 * lib/striconveh.c (utf8conv_carefully): New function.
17497 (mem_cd_iconveh_internal): Invoke it.
17499 2007-03-28 Bruno Haible <bruno@clisp.org>
17501 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
17502 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
17504 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
17505 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
17508 2007-03-28 Bruno Haible <bruno@clisp.org>
17510 * modules/unistr/u8-mbtoucr: New file.
17511 * lib/unistr/u8-mbtoucr.c: New file.
17512 * modules/unistr/u16-mbtoucr: New file.
17513 * lib/unistr/u16-mbtoucr.c: New file.
17514 * modules/unistr/u16-mbtoucr: New file.
17515 * lib/unistr/u16-mbtoucr.c: New file.
17516 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
17518 2007-03-27 Simon Josefsson <simon@josefsson.org>
17519 Bruno Haible <bruno@clisp.org>
17521 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
17522 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
17523 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
17525 * m4/stdio_h.m4: Add stubs for vasprintf too.
17527 * modules/stdio: Support vasprintf in sed command.
17529 * modules/vasprintf: Depend on stdio for prototypes. Remove
17530 vasprintf.h. Add stdio module indicator.
17532 * lib/stdio_.h: Declare asprintf and vasprintf, based on
17535 * lib/vasprintf.h: File removed.
17537 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
17538 * lib/vasprintf.c: Ditto.
17539 * lib/xvasprintf.c: Ditto.
17540 * tests/test-vasprintf-posix.c: Ditto.
17541 * tests/test-vasprintf.c: Ditto.
17543 2007-03-27 Bruno Haible <bruno@clisp.org>
17545 Make vasnprintf multithread-safe.
17546 * lib/vasnprintf.c (decimal_point_char): New function.
17547 (VASNPRINTF): Use it.
17548 Suggested by Simon Josefsson.
17550 2007-03-27 Eric Blake <ebb9@byu.net>
17552 Support sub-second birthtime on cygwin.
17553 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
17554 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
17555 (get_stat_birthtime): Also work with st_birthtim.
17557 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
17559 * lib/stat-time.h (USE_BIRTHTIME): Remove.
17560 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
17561 (get_stat_birthtime_ns): Do not try to use "spare" fields.
17562 (get_stat_birthtime_ns): Simplify compile-time tests.
17563 (get_stat_birthtime): Change the API to look like
17564 get_stat_mtime etc., except return a negative tv_nsec on error.
17565 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
17566 Don't check for "spare" fields.
17567 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
17568 or for struct stat.st_birthtime, as these tests aren't used.
17569 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
17571 2007-03-27 Bruno Haible <bruno@clisp.org>
17573 * lib/stat-time.h: Include <sys/stat.h>.
17575 2007-03-27 James Youngman <jay@gnu.org>
17577 * lib/stat-time.h (get_stat_birthtime): New function for
17578 retrieving st_birthtime as provided by UFS2 (hence *BSD).
17579 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
17581 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
17582 * modules/stat-time-test: New file.
17583 * tests/test-stat-time.c: New test, devised by Bruno Haible.
17585 2007-03-26 Bruno Haible <bruno@clisp.org>
17587 Better support of signalling NaNs.
17588 * lib/atanl.c: Include isnanl.h.
17589 (atanl): Perform test for NaN at the beginning of the function and
17590 through a call to isnanl.
17591 * lib/cosl.c: Include isnanl.h.
17592 (cosl): Perform test for NaN at the beginning of the function and
17593 through a call to isnanl.
17594 * lib/ldexpl.c: Include isnanl.h.
17595 (ldexpl): Perform test for NaN through a call to isnanl.
17596 * lib/logl.c: Include isnanl.h.
17597 (logl): Perform test for NaN at the beginning of the function and
17598 through a call to isnanl.
17599 * lib/sinl.c: Include isnanl.h.
17600 (sinl): Perform test for NaN at the beginning of the function and
17601 through a call to isnanl.
17602 * lib/sqrtl.c: Include isnanl.h.
17603 (sqrtl): Perform test for NaN at the beginning of the function and
17604 through a call to isnanl.
17605 * lib/tanl.c: Include isnanl.h.
17606 (tanl): Perform test for NaN at the beginning of the function and
17607 through a call to isnanl.
17608 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
17609 * modules/mathl (Depends-on): Add isnanl.
17611 2007-03-26 Eric Blake <ebb9@byu.net>
17613 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
17614 regression in logic sense of previous patch.
17616 2007-03-26 Bruno Haible <bruno@clisp.org>
17618 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
17619 unportable shell command "if ! ...".
17620 Reported by Ralf Wildenhues.
17622 2007-03-25 Bruno Haible <bruno@clisp.org>
17624 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
17625 <sysexits.h> file, and only add EX_CONFIG.
17626 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
17627 absolute file name and whether it is sufficient. Substitute also
17628 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
17629 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
17630 ABSOLUTE_SYSEXITS_H into sysexits.h.
17632 2007-03-25 Bruno Haible <bruno@clisp.org>
17634 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
17637 2007-03-25 Bruno Haible <bruno@clisp.org>
17639 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
17640 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
17642 2007-03-25 Bruno Haible <bruno@clisp.org>
17644 * lib/vasnprintf.c: Include langinfo.h.
17645 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
17647 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
17648 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
17649 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
17650 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17651 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17652 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17653 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
17654 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
17655 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17656 Reported by Simon Josefsson.
17658 2007-03-25 Bruno Haible <bruno@clisp.org>
17660 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
17661 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
17662 * modules/vasnprintf (Depends-on): Add stdint.
17664 2007-03-25 Bruno Haible <bruno@clisp.org>
17666 * modules/fpieee: New file.
17667 * m4/fpieee.m4: New file.
17668 * modules/isnan-nolibm (Depends-on): Add fpieee.
17669 * modules/isnanl-nolibm (Depends-on): Add fpieee.
17670 * modules/isnanl (Depends-on): Add fpieee.
17672 2007-03-25 Bruno Haible <bruno@clisp.org>
17674 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
17676 2007-03-25 Bruno Haible <bruno@clisp.org>
17678 Avoid test failures on IRIX 6.5.
17679 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
17681 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
17685 2007-03-25 Bruno Haible <bruno@clisp.org>
17687 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
17688 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
17689 exists but doesn't work.
17690 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
17691 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
17692 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
17693 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
17695 2007-03-25 Bruno Haible <bruno@clisp.org>
17697 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
17698 returns inf. Needed on IRIX 6.5.
17700 2007-03-25 Bruno Haible <bruno@clisp.org>
17702 * tests/test-frexpl.c: Include isnanl-nolibm.h.
17703 (main): Use isnanl instead of x != x idiom.
17704 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
17706 * tests/test-frexp.c: Include isnan.h.
17707 (main): Use isnan instead of x != x idiom.
17708 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
17710 2007-03-25 Bruno Haible <bruno@clisp.org>
17712 * tests/test-frexp.c (NaN): New function/macro.
17713 (main): Use it instead of 0.0 / 0.0.
17714 * tests/test-isnan.c (NaN): New function/macro.
17715 (main): Use it instead of 0.0 / 0.0.
17716 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
17717 (test_function): Use it instead of 0.0 / 0.0.
17718 * tests/test-vasprintf-posix.c (NaN): New function/macro.
17719 (test_function): Use it instead of 0.0 / 0.0.
17720 * tests/test-snprintf-posix.h (NaN): New function/macro.
17721 (test_function): Use it instead of 0.0 / 0.0.
17722 * tests/test-sprintf-posix.h (NaN): New function/macro.
17723 (test_function): Use it instead of 0.0 / 0.0.
17724 * tests/test-fprintf-posix.h (NaN): New function/macro.
17725 (test_function): Use it instead of 0.0 / 0.0.
17726 * tests/test-printf-posix.h (NaN): New function/macro.
17727 (test_function): Use it instead of 0.0 / 0.0.
17729 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
17731 2007-03-25 Bruno Haible <bruno@clisp.org>
17733 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
17735 2007-03-25 Bruno Haible <bruno@clisp.org>
17737 * lib/regexec.c (merge_state_with_log): Make static.
17739 2007-03-25 Bruno Haible <bruno@clisp.org>
17741 * lib/trigl.c (kernel_rem_pio2): Make static.
17743 2007-03-25 Bruno Haible <bruno@clisp.org>
17745 * lib/sincosl.c (sincosl_table): Make static.
17747 2007-03-25 Bruno Haible <bruno@clisp.org>
17749 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
17750 if the compiler does not support C99.
17752 2007-03-25 Bruno Haible <bruno@clisp.org>
17754 * modules/time (Makefile.am): Ensure all rule action lines start with a
17757 2007-03-24 Bruno Haible <bruno@clisp.org>
17759 * modules/tsearch-tests: New file.
17760 * tests/test-tsearch.sh: New file.
17761 * tests/test-tsearch.c: New file, mostly copied from glibc.
17763 * modules/search-tests: New file.
17764 * tests/test-search.c: New file.
17766 * modules/search: New file.
17767 * lib/search_.h: New file, incorporating lib/tsearch.h.
17768 * m4/search_h.m4: New file.
17769 * lib/tsearch.h: Remove file.
17770 * lib/tsearch.c: Include search.h instead of tsearch.h.
17771 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
17773 * modules/tsearch (Files): Remove lib/tsearch.h.
17774 (Depends-on): Add search.
17775 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
17776 (Include): Change tsearch.h into search.h.
17778 2007-03-24 Bruno Haible <bruno@clisp.org>
17780 * modules/fpucw: New file.
17781 * lib/fpucw.h: New file.
17782 * lib/frexp.c: Include fpucw.h.
17783 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
17785 * lib/printf-frexp.c: Include fpucw.h.
17786 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
17788 * lib/vasnprintf.c: Include fpucw.h.
17789 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
17790 'long double' calculations.
17791 * tests/test-frexpl.c: Include fpucw.h.
17792 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
17793 * tests/test-printf-frexpl.c: Include fpucw.h.
17794 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
17795 * modules/frexpl (Depends-on): Add fpucw.
17796 * modules/printf-frexpl (Depends-on): Likewise.
17797 * modules/fprintf-posix (Depends-on): Likewise.
17798 * modules/snprintf-posix (Depends-on): Likewise.
17799 * modules/sprintf-posix (Depends-on): Likewise.
17800 * modules/vasnprintf-posix (Depends-on): Likewise.
17801 * modules/vasprintf-posix (Depends-on): Likewise.
17802 * modules/vfprintf-posix (Depends-on): Likewise.
17803 * modules/vsnprintf-posix (Depends-on): Likewise.
17804 * modules/vsprintf-posix (Depends-on): Likewise.
17805 * modules/frexpl-tests (Depends-on): Likewise.
17806 * modules/printf-frexpl-tests (Depends-on): Likewise.
17808 2007-03-24 Bruno Haible <bruno@clisp.org>
17810 * lib/float+.h: New file.
17811 * lib/isnan.c: Include float+.h.
17813 (FUNC): Compare only SIZE bytes of the value.
17814 * lib/vasnprintf.c: Include float+.h.
17815 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
17816 SIZEOF_LDBL or SIZEOF_DBL bytes.
17817 * modules/isnan-nolibm (Files): Add lib/float+.h.
17818 * modules/isnanl-nolibm (Files): Add lib/float+.h.
17819 * modules/isnanl (Files): Add lib/float+.h.
17820 * modules/vasnprintf (Files): Add lib/float+.h.
17822 2007-03-24 Bruno Haible <bruno@clisp.org>
17824 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
17825 include isnanl-nolibm.h.
17827 2007-03-24 Bruno Haible <bruno@clisp.org>
17829 * tests/test-read-file.c (main): Don't produce spurious output for
17830 expected situations. Make the test fail if it encountered unexpected
17833 2007-03-24 Bruno Haible <bruno@clisp.org>
17835 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
17836 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
17838 2007-03-24 Bruno Haible <bruno@clisp.org>
17840 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
17842 2007-03-24 Bruno Haible <bruno@clisp.org>
17844 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
17845 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
17847 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
17848 * modules/utf8-ucs4: Turn into a symbolic link to module
17851 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
17853 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
17854 unistr/u8-mbtouc-unsafe.
17856 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
17857 * modules/utf16-ucs4: Turn into a symbolic link to module
17860 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
17862 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
17863 unistr/u16-mbtouc-unsafe.
17865 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
17866 * modules/ucs4-utf8: Turn into a symbolic link to module
17869 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
17870 * modules/ucs4-utf16: Turn into a symbolic link to module
17873 2007-03-24 Bruno Haible <bruno@clisp.org>
17875 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
17876 Enable the function only if HAVE_INLINE.
17877 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
17878 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
17879 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
17880 Enable the function only if HAVE_INLINE.
17881 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
17882 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
17883 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
17884 Enable the function only if HAVE_INLINE.
17885 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
17886 Enable the function only if HAVE_INLINE.
17887 * modules/utf8-ucs4: Update.
17888 * modules/utf8-ucs4-unsafe: Update.
17889 * modules/utf16-ucs4: Update.
17890 * modules/utf16-ucs4-unsafe: Update.
17891 * modules/ucs4-utf8: Update.
17892 * modules/ucs4-utf16: Update.
17894 2007-03-24 Bruno Haible <bruno@clisp.org>
17896 * lib/utf8-ucs4.h: Remove file.
17897 * lib/utf8-ucs4-unsafe.h: Remove file.
17898 * lib/utf16-ucs4.h: Remove file.
17899 * lib/utf16-ucs4-unsafe.h: Remove file.
17900 * lib/ucs4-utf8.h: Remove file.
17901 * lib/ucs4-utf16.h: Remove file.
17902 * lib/unistr.h: Include their previous contents.
17903 * m4/utf-ucs4.m4: Remove file.
17904 * m4/ucs4-utf.m4: Remove file.
17905 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
17906 (Depends-on): Add unistr/base.
17907 (configure.ac): Remove gl_UTF_UCS4.
17908 (Makefile.am): Update.
17909 (Include): Change to unistr.h.
17910 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
17911 (Depends-on): Add unistr/base.
17912 (configure.ac): Remove gl_UTF_UCS4.
17913 (Makefile.am): Update.
17914 (Include): Change to unistr.h.
17915 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
17916 (Depends-on): Add unistr/base.
17917 (configure.ac): Remove gl_UTF_UCS4.
17918 (Makefile.am): Update.
17919 (Include): Change to unistr.h.
17920 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
17921 (Depends-on): Add unistr/base.
17922 (configure.ac): Remove gl_UTF_UCS4.
17923 (Makefile.am): Update.
17924 (Include): Change to unistr.h.
17925 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
17926 (Depends-on): Add unistr/base.
17927 (configure.ac): Remove gl_UCS4_UTF.
17928 (Makefile.am): Update.
17929 (Include): Change to unistr.h.
17930 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
17931 (Depends-on): Add unistr/base.
17932 (configure.ac): Remove gl_UCS4_UTF.
17933 (Makefile.am): Update.
17934 (Include): Change to unistr.h.
17935 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
17936 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
17937 utf8-ucs4-unsafe.h.
17938 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
17939 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
17940 utf16-ucs4-unsafe.h.
17941 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
17942 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
17943 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
17944 * lib/unistr/u8-strchr.c: Likewise.
17945 * lib/unistr/u8-strrchr.c: Likewise.
17946 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
17947 * lib/unistr/u16-strchr.c: Likewise.
17948 * lib/unistr/u16-strrchr.c: Likewise.
17949 * lib/striconveh.c: Update.
17950 * lib/linebreak.c: Update.
17952 2007-03-24 Bruno Haible <bruno@clisp.org>
17954 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
17955 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
17957 2007-03-22 Bruno Haible <bruno@clisp.org>
17959 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
17961 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
17963 * MODULES.html.sh (File system functions): New module write-any-file.
17964 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
17965 * m4/write-any-file.m4: New files.
17967 2007-03-23 Eric Blake <ebb9@byu.net>
17969 * gnulib-tool: Rearrange space-tab sequences, since some editors
17972 2007-03-23 Eric Blake <ebb9@byu.net>
17974 * lib/version-etc.c (version_etc_va): Update license wording to
17975 be more concise. Recommended by Richard Stallman.
17977 2007-03-22 Bruno Haible <bruno@clisp.org>
17979 * lib/poll.c (MSG_PEEK): New fallback definition.
17981 2007-03-22 Bruno Haible <bruno@clisp.org>
17983 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
17984 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
17986 Fixes a compilation error on BeOS.
17988 2007-03-22 Bruno Haible <bruno@clisp.org>
17990 * modules/frexpl-tests: New file.
17991 * tests/test-frexpl.c: New file.
17993 * modules/frexpl: New file.
17994 * m4/frexpl.m4: New file.
17995 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
17996 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
17997 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
17998 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
17999 (Depends-on): Add frexpl. Remove isnanl-nolibm.
18000 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
18002 2007-03-22 Bruno Haible <bruno@clisp.org>
18004 * lib/frexpl.c: Share code with lib/frexp.c.
18005 * modules/mathl (Files): Add lib/frexp.c.
18006 (Depends-on): Add isnanl-nolibm.
18008 2007-03-22 Bruno Haible <bruno@clisp.org>
18010 * modules/printf-frexp (Files): Add m4/frexp.m4.
18011 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
18012 only if the found frexp function actually works.
18014 2007-03-22 Bruno Haible <bruno@clisp.org>
18016 * lib/frexp.c: Remove older implementation that uses divisions.
18018 2007-03-21 Bruno Haible <bruno@clisp.org>
18020 * modules/frexp-tests: New file.
18021 * tests/test-frexp.c: New file.
18023 * modules/frexp: New file.
18024 * lib/frexp.c: New file.
18025 * m4/frexp.m4: New file.
18026 * lib/math_.h (frexp): New declaration.
18027 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
18029 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
18031 2007-03-21 Bruno Haible <bruno@clisp.org>
18033 * modules/isnanl-tests: New file.
18034 * tests/test-isnanl.c: New file.
18036 * modules/isnanl: New file.
18037 * lib/isnanl.h: New file.
18038 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
18039 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
18040 gl_FUNC_ISNANL_WORKS.
18041 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
18044 2007-03-21 Bruno Haible <bruno@clisp.org>
18046 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
18049 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
18050 * lib/vasnprintf.c: Update.
18051 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
18052 tests/test-isnanl.h, remove tests/test-isnanl.c.
18053 (Makefile.am): Update.
18054 * tests/test-isnanl-nolibm.c: New file.
18055 * tests/test-isnanl.h: New file.
18056 * tests/test-isnanl.c: Remove file.
18058 2007-03-21 Jim Meyering <jim@meyering.net>
18060 When trying to open ".", treat ESTALE like EACCES.
18061 * lib/savewd.c (savewd_save): Resort to forking not just upon
18062 failure with EACCES, but also when errno is ESTALE.
18064 2007-03-20 Bruno Haible <bruno@clisp.org>
18066 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
18067 Needed on AIX 5.1. Reported by Matthew Woehlke.
18069 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
18071 Suggestions by Bruno Haible:
18072 * lib/acl-internal.h: Include "gettext.h" rather than rolling
18074 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
18075 * modules/acl (Depends-on): Add gettext.
18077 2007-03-19 Bruno Haible <bruno@clisp.org>
18079 * modules/iconvme: Remove file.
18080 * lib/iconvme.h: Remove file.
18081 * lib/iconvme.c: Remove file.
18082 * m4/iconvme.m4: Remove file.
18084 2007-03-19 Bruno Haible <bruno@clisp.org>
18086 * doc/relocatable-maint.texi: Break long shell script line.
18087 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
18089 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
18091 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
18092 handle file_has_acl.
18093 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
18094 * lib/acl.c: Move header inclusions and related macro defns into
18095 lib/acl-internal.h.
18096 (S_ISLNK): Remove defn, since that's now done for us.
18097 (file_has_acl): Move to lib/file-has-acl.c.
18098 Call acl_trivial if available. This is the crucial part of the fix.
18099 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
18100 shared within the library. Rewrite a bit, partly to make it compatible
18101 with the GNU coding style.
18102 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
18103 Remove unnecessary double-quotes.
18104 Don't test for acl_to_text; the build will catch that.
18105 Replace acl_entries if it doesn't exist and it is needed.
18106 Check for -lsec and acl_trivial (as used on Solaris 10).
18107 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
18108 lib/file-has-acl.c.
18109 (Depends-on): Add sys_stat, for S_ISLNK.
18111 2007-03-19 Ben Pfaff <blp@gnu.org>
18113 * doc/gnulib.texi: Fix typos.
18114 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
18116 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
18118 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
18119 If size is zero here, buf must be zero.
18121 2007-03-19 Simon Josefsson <simon@josefsson.org>
18123 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
18126 2007-03-18 Bruno Haible <bruno@clisp.org>
18128 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
18129 Suggested by Eric Blake.
18131 2007-03-18 Ben Pfaff <blp@gnu.org>
18133 * doc/relocatable.texi: Recommend using as prefix a directory
18134 that does not exist and will never be created. Based on
18135 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
18138 2007-03-17 Bruno Haible <bruno@clisp.org>
18140 * lib/fchownat.c: Include lchown.h.
18142 2007-03-17 Bruno Haible <bruno@clisp.org>
18144 Fix endless loop when the given allocated size was > INT_MAX.
18145 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
18146 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
18147 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
18148 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
18149 * lib/sprintf.c (sprintf): Likewise.
18151 2007-03-17 Bruno Haible <bruno@clisp.org>
18153 * tests/test-argp-2.sh (func_compare): Output a context diff.
18155 2007-03-17 Bruno Haible <bruno@clisp.org>
18157 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
18158 locale's decimal-point character.
18160 2007-03-17 Bruno Haible <bruno@clisp.org>
18162 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
18163 before comparing it. Needed because on some platforms (e.g. x86) a
18164 'long double' occupies less bytes than sizeof (long double).
18166 2007-03-17 Bruno Haible <bruno@clisp.org>
18168 * tests/test-crc.c (main): Make printf statements 64-bit clean.
18169 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
18170 * tests/test-getaddrinfo.c (simple): Likewise.
18171 * tests/test-read-file.c (main): Likewise.
18173 2007-03-17 Bruno Haible <bruno@clisp.org>
18175 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
18177 2007-03-17 Bruno Haible <bruno@clisp.org>
18179 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
18182 2007-03-17 Bruno Haible <bruno@clisp.org>
18184 * tests/test-c-strcasecmp.c: Include c-strcase.h.
18185 * tests/test-c-strncasecmp.c: Likewise.
18187 2007-03-17 Bruno Haible <bruno@clisp.org>
18189 * modules/stdlib (Depends-on): Add unistd.
18190 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
18191 Needed for MacOS X 10.3.
18193 2007-03-17 Bruno Haible <bruno@clisp.org>
18195 * lib/unistr/u-strdup.h: Include <stdlib.h>.
18197 2007-03-17 Bruno Haible <bruno@clisp.org>
18199 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
18201 2007-03-17 Bruno Haible <bruno@clisp.org>
18203 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
18204 to reflect files copied from gnulib (with or without modifications).
18205 Suggested by Jim Meyering.
18207 2007-03-17 Eric Blake <ebb9@byu.net>
18209 * NEWS: Document stdlib change from 2007-02-18.
18211 2007-03-17 Jim Meyering <jim@meyering.net>
18213 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
18214 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
18215 someone uses a name containing shell meta-characters.
18216 Reported by Alfred M. Szmidt.
18218 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
18220 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
18222 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
18223 and copy gettext configuration files only if configure.ac contains
18224 a use of AM_GNU_GETTEXT_VERSION.
18226 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
18228 * build-aux/bootstrap (gnulib_name): New variable.
18229 (gnulib_tool_options): Use it.
18231 2007-03-13 Simon Josefsson <simon@josefsson.org>
18233 * tests/test-des.c: Use new namespace.
18235 2007-03-15 Bruno Haible <bruno@clisp.org>
18237 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
18238 Reported by James Youngman <jay@gnu.org>.
18240 2007-03-15 Bruno Haible <bruno@clisp.org>
18242 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
18243 declared prototype. Needed with cc on OSF/1 5.1.
18245 2007-03-15 Bruno Haible <bruno@clisp.org>
18247 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
18248 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
18249 (struct gl_list_implementation): Add dispose_fn argument to the
18250 'create_empty', 'create' methods.
18251 (struct gl_list_impl_base): Add field 'dispose_fn'.
18252 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
18254 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
18255 dispose_fn argument.
18256 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
18257 dispose_fn on the dropped values.
18258 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
18259 dispose_fn argument.
18260 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
18262 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
18263 (gl_tree_remove_node): Call dispose_fn on the dropped value.
18264 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
18265 (gl_tree_remove_node): Call dispose_fn on the dropped value.
18266 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
18268 (gl_tree_list_free): Call dispose_fn on the dropped values.
18269 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
18270 the dropped values.
18271 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
18272 Add dispose_fn argument.
18273 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
18274 Call dispose_fn on the dropped values.
18275 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
18276 Add dispose_fn argument.
18277 (gl_sublist_create): Initialize the 'dispose_fn' field.
18278 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
18279 * tests/test-array_list.c (main): Update.
18280 * tests/test-carray_list.c (main): Update.
18281 * tests/test-avltree_list.c (main): Update.
18282 * tests/test-rbtree_list.c (main): Update.
18283 * tests/test-avltreehash_list.c (main): Update.
18284 * tests/test-rbtreehash_list.c (main): Update.
18285 * tests/test-linked_list.c (main): Update.
18286 * tests/test-linkedhash_list.c (main): Update.
18287 * tests/test-array_oset.c (main): Update.
18289 2007-03-15 Bruno Haible <bruno@clisp.org>
18291 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
18292 (gl_oset_create_empty): Add dispose_fn argument.
18293 (struct gl_oset_implementation): Add dispose_fn argument to
18294 'create_empty' method.
18295 (struct gl_oset_impl_base): Add dispose_fn field.
18296 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
18297 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
18298 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
18300 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
18301 (gl_tree_oset_free): Call dispose_fn on the dropped values.
18302 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
18304 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
18306 * tests/test-array_oset.c (main): Update.
18307 * tests/test-avltree_oset.c (main): Update.
18308 * tests/test-rbtree_oset.c (main): Update.
18309 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
18311 2007-03-13 Bruno Haible <bruno@clisp.org>
18313 * tests/test-stdbool.c (i): Update after last patch.
18315 2007-03-12 Bruno Haible <bruno@clisp.org>
18317 * lib/quotearg.c: Include <wctype.h> early, before the definition of
18318 the iswprint macro. Needed on Solaris 2.5.1.
18320 2007-03-12 Bruno Haible <bruno@clisp.org>
18322 * tests/test-printf-frexp.c (main): Declare x as volatile.
18324 2007-03-12 Simon Josefsson <simon@josefsson.org>
18326 * doc/gnulib.texi (Build robot for gnulib): New section.
18328 2007-03-12 Jim Meyering <jim@meyering.net>
18330 * build-aux/bootstrap: New file.
18331 * build-aux/bootstrap.conf: New file, from coreutils.
18333 2007-03-11 Bruno Haible <bruno@clisp.org>
18335 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
18337 2007-03-12 Simon Josefsson <simon@josefsson.org>
18339 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
18340 avoid collisions with 'des_setkey'. Reported by Bruno Haible
18341 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
18343 2007-03-11 Bruno Haible <bruno@clisp.org>
18345 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
18346 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
18348 2007-03-11 Bruno Haible <bruno@clisp.org>
18350 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
18351 formula. Needed for SunPRO C 5.0.
18353 2007-03-11 Bruno Haible <bruno@clisp.org>
18355 * modules/long-options (Depends-on): Add getopt.
18357 2007-03-11 Bruno Haible <bruno@clisp.org>
18359 * modules/modechange (Depends-on): Add stdbool.
18361 2007-03-11 Bruno Haible <bruno@clisp.org>
18363 * modules/i-ring (Depends-on): Add stdbool.
18365 2007-03-11 Bruno Haible <bruno@clisp.org>
18367 * modules/gc-des (Depends-on): Add stdbool.
18369 2007-03-11 Bruno Haible <bruno@clisp.org>
18371 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
18373 2007-03-11 Bruno Haible <bruno@clisp.org>
18375 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
18377 2007-03-11 Bruno Haible <bruno@clisp.org>
18379 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
18381 2007-03-11 Bruno Haible <bruno@clisp.org>
18383 * lib/vasnprintf.c (sprintf): Undefine.
18385 2007-03-11 Bruno Haible <bruno@clisp.org>
18387 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
18388 initializers in SunPRO C and Compaq C compilers.
18390 2007-03-11 Bruno Haible <bruno@clisp.org>
18392 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
18393 decrementing code ANSI C compliant.
18395 2007-03-11 Bruno Haible <bruno@clisp.org>
18397 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
18398 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
18400 2007-03-11 Bruno Haible <bruno@clisp.org>
18402 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
18403 <stdbool.h> substitute doesn't pass.
18405 2007-03-11 Bruno Haible <bruno@clisp.org>
18407 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
18409 2007-03-11 Bruno Haible <bruno@clisp.org>
18411 * gnulib-tool (func_create_megatestdir): Create also an autobuild
18412 script, for submission to autobuild.josefsson.org.
18414 2007-03-10 Bruno Haible <bruno@clisp.org>
18416 * modules/canonicalize-lgpl-tests: New file.
18417 * tests/test-canonicalize-lgpl.sh: New file.
18418 * tests/test-canonicalize-lgpl.c: New file.
18420 * modules/c-strcase-tests: New file.
18421 * tests/test-c-strcase.sh: New file.
18422 * tests/test-c-strcasecmp.c: New file.
18423 * tests/test-c-strncasecmp.c: New file.
18425 * modules/atexit-tests: New file.
18426 * tests/test-atexit.sh: New file.
18427 * tests/test-atexit.c: New file.
18429 2007-03-10 Bruno Haible <bruno@clisp.org>
18431 * tests/test-binary-io.sh: Use temporary filenames that are not so
18432 likely to clash with those of other tests (in a parallel make).
18433 * tests/test-binary-io.c: Likewise.
18435 2007-03-10 Bruno Haible <bruno@clisp.org>
18437 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
18438 fallback; use #error instead.
18439 Suggested by Simon Josefsson.
18441 2007-03-10 Bruno Haible <bruno@clisp.org>
18443 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
18444 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
18445 first and the last.
18447 2007-03-10 Bruno Haible <bruno@clisp.org>
18449 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
18451 2007-03-10 Bruno Haible <bruno@clisp.org>
18453 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
18455 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
18456 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
18457 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
18459 2007-03-10 Bruno Haible <bruno@clisp.org>
18461 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
18463 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
18466 2007-03-09 Eric Blake <ebb9@byu.net>
18467 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
18469 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
18470 types are not being provided by gnulib.
18471 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
18472 types are supported.
18474 2007-03-10 Bruno Haible <bruno@clisp.org>
18476 * lib/stdio_.h (__attribute__): New macro.
18477 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
18478 vsprintf): Specify __attribute__ __format__ for GCC.
18479 Suggested by Eric Blake.
18481 2007-03-09 Bruno Haible <bruno@clisp.org>
18483 * modules/printf-posix-tests: New file.
18484 * tests/test-printf-posix.sh: New file.
18485 * tests/test-printf-posix.c: New file.
18487 * modules/printf-posix: New file.
18488 * lib/printf.c: New file.
18489 * m4/printf-posix-rpl.m4: New file.
18490 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
18492 * lib/stdio_.h (printf): New declaration.
18493 (format, __format__, ____printf____, ____scanf____, ____strftime____,
18494 ____strfmon____): New macros.
18495 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
18498 2007-03-09 Bruno Haible <bruno@clisp.org>
18500 * tests/test-vasnprintf-posix2.sh: New file.
18501 * tests/test-vasnprintf-posix2.c: New file.
18502 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
18503 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
18504 (Makefile.am): Activate test-vasnprintf-posix2.sh.
18506 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
18507 a locale dependent decimal point, rather than always '.'.
18509 2007-03-09 Eric Blake <ebb9@byu.net>
18511 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
18512 spite of platforms like Tandem/NSK that define it to -1.
18514 2007-03-08 Bruno Haible <bruno@clisp.org>
18516 * modules/vprintf-posix-tests: New file.
18517 * tests/test-vprintf-posix.sh: New file.
18518 * tests/test-vprintf-posix.c: New file.
18519 * tests/test-printf-posix.h: New file.
18521 * modules/vprintf-posix: New file.
18522 * lib/vprintf.c: New file.
18523 * m4/vprintf-posix.m4: New file.
18524 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
18526 * lib/stdio_.h (vprintf): New declaration.
18527 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
18530 2007-03-08 Bruno Haible <bruno@clisp.org>
18532 * modules/fprintf-posix-tests: New file.
18533 * tests/test-fprintf-posix.sh: New file.
18534 * tests/test-fprintf-posix.c: New file.
18536 * modules/fprintf-posix: New file.
18537 * lib/fprintf.c: New file.
18538 * m4/fprintf-posix.m4: New file.
18539 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
18541 * lib/stdio_.h (fprintf): New declaration.
18542 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
18545 2007-03-08 Bruno Haible <bruno@clisp.org>
18547 * modules/vfprintf-posix-tests: New file.
18548 * tests/test-vfprintf-posix.sh: New file.
18549 * tests/test-vfprintf-posix.c: New file.
18550 * tests/test-fprintf-posix.h: New file.
18551 * tests/test-fprintf-posix.out: New file.
18553 * modules/vfprintf-posix: New file.
18554 * lib/vfprintf.c: New file.
18555 * m4/vfprintf-posix.m4: New file.
18556 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
18558 * lib/stdio_.h (vfprintf): New declaration.
18559 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
18562 2007-03-08 Bruno Haible <bruno@clisp.org>
18564 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
18566 2007-03-08 Bruno Haible <bruno@clisp.org>
18568 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
18569 instead of 'expr' invocations.
18570 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
18571 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
18572 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
18573 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
18574 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
18575 Suggested by Paul Eggert.
18577 2007-03-08 Bruno Haible <bruno@clisp.org>
18579 * modules/fseterr-tests: New file.
18580 * tests/test-fseterr.c: New file.
18582 * modules/fseterr: New file.
18583 * lib/fseterr.h: New file.
18584 * lib/fseterr.c: New file.
18586 2007-03-08 Bruno Haible <bruno@clisp.org>
18588 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
18589 * lib/getopt_.h: Likewise.
18590 * lib/mbswidth.h: Likewise.
18591 * lib/setenv.h: Likewise.
18592 * lib/vasnprintf.h: Likewise.
18593 * lib/vasprintf.h: Likewise.
18594 * lib/verror.h: Likewise.
18595 * lib/xsetenv.h: Likewise.
18596 * lib/xvasprintf.h: Likewise.
18598 2007-03-08 Jim Meyering <jim@meyering.net>
18600 * users.txt: Add parted.
18602 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
18604 2007-03-07 Bruno Haible <bruno@clisp.org>
18606 * m4/printf.m4: Make the shell script snippets copy&pastable.
18608 2007-03-02 Bruno Haible <bruno@clisp.org>
18610 * lib/netinet_in_.h: New file.
18611 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
18612 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
18613 * modules/netinet_in (Files): Add lib/netinet_in_.h.
18614 (Depends-on): Add absolute-header.
18615 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
18618 2007-03-03 Bruno Haible <bruno@clisp.org>
18620 * lib/sys_select_.h: New file.
18621 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
18622 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
18623 * modules/sys_select (Files): Add lib/sys_select_.h.
18624 (Depends-on): Add absolute-header.
18625 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
18628 2007-03-02 Bruno Haible <bruno@clisp.org>
18630 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
18631 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
18633 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
18634 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
18635 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
18636 * modules/sys_socket (Depends-on): Add absolute-header.
18637 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
18638 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
18639 (Include): Remove requirement of inclusion of <sys/types.h>.
18641 2007-03-02 Bruno Haible <bruno@clisp.org>
18643 * lib/byteswap_.h (bswap_32): Fix formula.
18645 2007-03-06 Bruno Haible <bruno@clisp.org>
18647 * modules/sprintf-posix-tests: New file.
18648 * tests/test-sprintf-posix.c: New file.
18650 * modules/sprintf-posix: New file.
18651 * lib/sprintf.c: New file.
18652 * m4/sprintf-posix.m4: New file.
18653 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
18655 * lib/stdio_.h (sprintf): New declaration.
18656 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
18659 2007-03-06 Bruno Haible <bruno@clisp.org>
18661 * modules/vsprintf-posix-tests: New file.
18662 * tests/test-vsprintf-posix.c: New file.
18663 * tests/test-sprintf-posix.h: New file.
18665 * modules/vsprintf-posix: New file.
18666 * lib/vsprintf.c: New file.
18667 * m4/vsprintf-posix.m4: New file.
18668 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
18670 * lib/stdio_.h (vsprintf): New declaration.
18671 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
18674 2007-03-06 Bruno Haible <bruno@clisp.org>
18676 * modules/vsnprintf (Depend-on): Remove minmax.
18678 2007-03-06 Bruno Haible <bruno@clisp.org>
18680 * modules/snprintf-posix-tests: New file.
18681 * tests/test-snprintf-posix.c: New file.
18683 * modules/snprintf-posix: New file.
18684 * m4/snprintf-posix.m4: New file.
18685 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
18687 (gl_FUNC_SNPRINTF): Invoke it.
18688 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
18689 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
18691 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
18693 2007-03-06 Bruno Haible <bruno@clisp.org>
18695 * modules/vsnprintf-posix-tests: New file.
18696 * tests/test-vsnprintf-posix.c: New file.
18697 * tests/test-snprintf-posix.h: New file.
18699 * modules/vsnprintf-posix: New file.
18700 * m4/vsnprintf-posix.m4: New file.
18701 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
18703 (gl_FUNC_VSNPRINTF): Invoke it.
18704 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
18705 * lib/stdio_.h (vsnprintf): Define as a replacement if
18706 REPLACE_VSNPRINTF is set.
18707 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
18709 2007-03-06 Bruno Haible <bruno@clisp.org>
18711 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
18712 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
18714 2007-03-06 Bruno Haible <bruno@clisp.org>
18716 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
18717 (asinl): Declare also if HAVE_DECL_ASINL is set.
18718 (atanl): Declare also if HAVE_DECL_ATANL is set.
18719 (ceill): Declare also if HAVE_DECL_CEILL is set.
18720 (cosl): Declare also if HAVE_DECL_COSL is set.
18721 (expl): Declare also if HAVE_DECL_EXPL is set.
18722 (floorl): Declare also if HAVE_DECL_FLOORL is set.
18723 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
18724 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
18725 (logl): Declare also if HAVE_DECL_LOGL is set.
18726 (sinl): Declare also if HAVE_DECL_SINL is set.
18727 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
18728 (tanl): Declare also if HAVE_DECL_TANL is set.
18729 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
18730 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
18731 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
18732 declaration of frexpl, ldexpl.
18733 * modules/printf-frexpl (Depends-on): Add math.
18734 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
18736 2007-03-05 Bruno Haible <bruno@clisp.org>
18738 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
18739 frexpl and ldexpl are declared.
18740 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
18742 2007-03-05 Bruno Haible <bruno@clisp.org>
18744 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
18745 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
18747 2007-03-05 Bruno Haible <bruno@clisp.org>
18749 * lib/stdio_.h: Include <stddef.h>.
18751 2007-03-05 Bruno Haible <bruno@clisp.org>
18753 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
18755 2007-03-05 Bruno Haible <bruno@clisp.org>
18757 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
18758 NetBSD 4, from Ralf Wildenhues.
18760 2007-03-04 Bruno Haible <bruno@clisp.org>
18762 * lib/vasprintf.h: Update #if logic for the case when the functions
18763 exist but are overridden.
18765 2007-03-04 Bruno Haible <bruno@clisp.org>
18767 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
18768 implementations: glibc-2.4 and MacOS X 10.3.
18769 * tests/test-vasnprintf-posix.c (test_function): Test also the case
18770 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
18771 * tests/test-vasprintf-posix.c (test_function): Likewise.
18773 2007-03-04 Bruno Haible <bruno@clisp.org>
18775 * modules/vasprintf-posix-tests: New file.
18776 * tests/test-vasprintf-posix.c: New file.
18778 * modules/vasprintf-posix: New file.
18779 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
18781 * m4/vasprintf-posix.m4: New file.
18782 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
18784 (gl_FUNC_VASPRINTF): Invoke it.
18785 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
18787 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
18789 2007-03-04 Bruno Haible <bruno@clisp.org>
18791 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
18792 REPLACE_GETTIMEOFDAY.
18793 * modules/sys_time (Makefile.am): Likewise.
18794 * m4/sys_time_h.m4: Likewise.
18795 * m4/gettimeofday.m4: Likewise.
18797 2007-03-04 Bruno Haible <bruno@clisp.org>
18799 * modules/vasnprintf-posix-tests: New file.
18800 * tests/test-vasnprintf-posix.c: New file.
18802 * modules/vasnprintf-posix: New file.
18803 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
18805 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
18806 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
18807 REPLACE_VASNPRINTF is defined.
18808 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
18809 gl_FUNC_VASNPRINTF.
18810 (gl_FUNC_VASNPRINTF): Invoke it.
18811 * m4/vasnprintf-posix.m4: New file.
18812 * m4/printf.m4: New file.
18814 2007-03-04 Bruno Haible <bruno@clisp.org>
18816 Compile progreloc.c only if --enable-relocatable is specified.
18817 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
18818 if --enable-relocatable was specified.
18819 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
18822 2007-03-04 Jim Meyering <jim@meyering.net>
18824 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
18825 Use it consistently, rather than enumerating errno constants.
18827 2007-03-04 Bruno Haible <bruno@clisp.org>
18829 * modules/xvasprintf-tests: New file.
18830 * tests/test-xvasprintf.c: New file.
18832 * modules/vasprintf-tests: New file.
18833 * tests/test-vasprintf.c: New file.
18835 * modules/vasnprintf-tests: New file.
18836 * tests/test-vasnprintf.c: New file.
18838 * modules/vsnprintf-tests: New file.
18839 * tests/test-vsnprintf.c: New file.
18841 * modules/snprintf-tests: New file.
18842 * tests/test-snprintf.c: New file.
18844 2007-03-04 Bruno Haible <bruno@clisp.org>
18846 Compile relocatable.c only if --enable-relocatable is specified.
18847 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
18848 gl_RELOCATABLE_LIBRARY.
18849 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
18850 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
18851 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
18852 gl_RELOCATABLE_LIBRARY.
18853 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
18854 (Makefile.am): Remove lib_SOURCES.
18855 * modules/relocatable-lib-lgpl (configure.ac): Invoke
18856 gl_RELOCATABLE_LIBRARY.
18857 (Makefile.am): Remove lib_SOURCES.
18858 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
18860 * modules/relocatable-prog-wrapper (configure.ac): Invoke
18861 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
18863 2007-03-04 Bruno Haible <bruno@clisp.org>
18865 * modules/argmatch-tests: New file.
18866 * tests/test-argmatch.c: New file.
18868 * tests/test-allocsa.c (main): Halve the number of loop runs.
18870 * modules/alloca-opt-tests: New file.
18871 * tests/test-alloca-opt.c: New file.
18873 2007-03-04 Jim Meyering <jim@meyering.net>
18875 Work around difference between Linux ACLs and Solaris 10 ZFS.
18876 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
18879 2007-03-03 Bruno Haible <bruno@clisp.org>
18881 * modules/relocatable-prog (Depends-on): Add back progreloc's
18882 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
18884 2007-03-03 Bruno Haible <bruno@clisp.org>
18886 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
18887 * modules/relocatable-lib: New file.
18889 2007-03-03 Bruno Haible <bruno@clisp.org>
18891 * modules/relocatable-prog: Renamed from modules/relocatable.
18892 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
18894 2007-03-03 Bruno Haible <bruno@clisp.org>
18896 * modules/relocatable-script (Files): Add doc/relocatable.texi,
18897 m4/relocatable-lib.m4.
18898 (Depends-on): Remove 'relocatable'.
18899 (configure.ac): Add gl_RELOCATABLE_NOP.
18901 2007-03-03 Bruno Haible <bruno@clisp.org>
18903 * modules/relocatable-prog-wrapper: New file.
18904 * modules/relocatable (Depends-on): Add it. Remove all other
18905 dependencies except progname.
18906 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
18908 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
18909 (gl_FUNC_STRERROR): Nop.
18910 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
18912 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
18913 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
18915 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
18916 (gl_FUNC_READLINK): Update.
18918 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
18920 2007-03-03 Bruno Haible <bruno@clisp.org>
18922 * lib/xreadlink.c: Include <unistd.h> unconditionally.
18923 * modules/xreadlink (Depends-on): Add unistd.
18924 * modules/xreadlink-with-size (Depends-on): Likewise.
18926 2007-03-03 Bruno Haible <bruno@clisp.org>
18928 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
18929 extracted from gt_FUNC_SETENV.
18930 (gt_FUNC_SETENV): Remove macro.
18931 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
18932 remove gt_FUNC_SETENV.
18934 2007-03-03 Bruno Haible <bruno@clisp.org>
18936 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
18937 ENABLE_RELOCATABLE here.
18938 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
18940 2007-03-03 Bruno Haible <bruno@clisp.org>
18942 * modules/rbtreehash-list-tests (Depends-on): Add progname.
18943 * tests/test-rbtreehash_list.c: Include progname.h.
18944 (main): Call set_program_name.
18946 * modules/rbtree-oset-tests (Depends-on): Add progname.
18947 * tests/test-rbtree_oset.c: Include progname.h.
18948 (main): Call set_program_name.
18950 * modules/rbtree-list-tests (Depends-on): Add progname.
18951 * tests/test-rbtree_list.c: Include progname.h.
18952 (main): Call set_program_name.
18954 * modules/linked-list-tests (Depends-on): Add progname.
18955 * tests/test-linked_list.c: Include progname.h.
18956 (main): Call set_program_name.
18958 2007-03-03 Bruno Haible <bruno@clisp.org>
18960 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
18961 All uses of __restrict changed to _Restrict_.
18962 * lib/glob_.h (__restrict): Remove macro.
18964 2007-03-02 Bruno Haible <bruno@clisp.org>
18966 * modules/gettext (configure.ac): Require gettext infrastructure
18967 from version 0.16.1.
18969 2007-03-02 Bruno Haible <bruno@clisp.org>
18971 * modules/linkedhash-list-tests (Depends-on): Add progname.
18972 * tests/test-linkedhash_list.c: Include progname.h.
18973 (main): Call set_program_name.
18975 * modules/carray-list-tests (Depends-on): Add progname.
18976 * tests/test-carray_list.c: Include progname.h.
18977 (main): Call set_program_name.
18979 * modules/avltreehash-list-tests (Depends-on): Add progname.
18980 * tests/test-avltreehash_list.c: Include progname.h.
18981 (main): Call set_program_name.
18983 * modules/avltree-oset-tests (Depends-on): Add progname.
18984 * tests/test-avltree_oset.c: Include progname.h.
18985 (main): Call set_program_name.
18987 * modules/avltree-list-tests (Depends-on): Add progname.
18988 * tests/test-avltree_list.c: Include progname.h.
18989 (main): Call set_program_name.
18991 * modules/array-oset-tests (Depends-on): Add progname.
18992 * tests/test-array_oset.c: Include progname.h.
18993 (main): Call set_program_name.
18995 * modules/array-list-tests (Depends-on): Add progname.
18996 * tests/test-array_list.c: Include progname.h.
18997 (main): Call set_program_name.
18999 * modules/argp-tests (Depends-on): Add progname.
19000 * tests/test-argp.c: Include argp.h first. Include progname.h.
19001 (main): Call set_program_name.
19003 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
19005 * doc/gnulib-tool.texi (Initial import): Reword description of
19006 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
19007 limited effect even if defined after the first system include.
19009 2007-03-01 Bruno Haible <bruno@clisp.org>
19011 * build-aux/config.libpath: Update to libtool-1.5.22.
19012 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19014 2007-03-01 Bruno Haible <bruno@clisp.org>
19016 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
19018 Reported by Ralf Wildenhues.
19020 2007-03-01 Bruno Haible <bruno@clisp.org>
19022 * build-aux/install-reloc: Remove object files left over by some
19024 Reported by Ralf Wildenhues.
19026 2007-03-01 Bruno Haible <bruno@clisp.org>
19028 * build-aux/install-reloc: Break long lines.
19030 2007-03-01 Bruno Haible <bruno@clisp.org>
19032 * doc/relocatable.texi: Document that it may not work on OpenBSD.
19033 Reported by Ralf Wildenhues.
19035 2007-03-01 Bruno Haible <bruno@clisp.org>
19037 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
19038 include ordering constraints.
19040 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
19042 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
19043 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
19044 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
19045 as another example.
19046 * lib/time_.h: Fix misspelling.
19047 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
19048 Require gl_HEADER_TIME_H_DEFAULTS.
19049 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
19050 * m4/time_r.m4 (gl_TIME_R): Likewise.
19051 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
19053 2007-03-01 Bruno Haible <bruno@clisp.org>
19055 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
19056 * m4/utimens.m4 (gl_UTIMENS): Likewise.
19058 2007-03-01 Jim Meyering <jim@meyering.net>
19060 * modules/xreadlink (Maintainer): Add my name.
19061 * modules/xreadlink-with-size (Depends-on): Alphabetize.
19063 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
19064 Bruno Haible <bruno@clisp.org>
19066 * build-aux/install-reloc: Compile also c-ctype.c.
19067 * build-aux/relocatable.sh.in: New file.
19068 * doc/relocatable.texi: New file.
19069 * doc/relocatable-maint.texi: New file.
19070 * doc/gnulib.texi: Include relocatable-maint.texi.
19071 * lib/progreloc.c: Include unistd.h unconditionally.
19072 * lib/relocwrapper.c: Include unistd.h unconditionally.
19074 (add_dotbin): Use c_tolower.
19075 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
19076 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
19077 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
19078 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
19079 to m4/relocatable-lib.m4.
19080 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
19081 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
19082 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
19083 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
19084 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
19085 * modules/relocatable: New file.
19086 * modules/relocatable-lib: New file.
19087 * modules/relocatable-script: New file.
19089 2007-02-28 Bruno Haible <bruno@clisp.org>
19091 Import --enable-relocatable infrastructure.
19092 * build-aux/config.libpath: New file, from GNU gettext.
19093 * build-aux/install-reloc: New file, from GNU gettext.
19094 * build-aux/reloc-ldflags: New file, from GNU gettext.
19095 * lib/relocatable.h: New file, from GNU gettext.
19096 * lib/relocatable.c: New file, from GNU gettext.
19097 * lib/relocwrapper.c: New file, from GNU gettext.
19098 * m4/relocatable.m4: New file, from GNU gettext.
19100 2007-02-28 Bruno Haible <bruno@clisp.org>
19102 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
19104 * modules/xreadlink: New file, from GNU gettext with modifications.
19105 * lib/xreadlink.c: New file, from GNU gettext.
19106 * lib/xreadlink.h: Add comments.
19107 (xreadlink): New declaration.
19109 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
19110 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
19111 lib/xreadlink-with-size.c.
19112 (configure.ac): Remove gl_XREADLINK invocation.
19113 (Makefile.am): Augment lib_SOURCES.
19114 * m4/xreadlink.m4: Remove file.
19115 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
19116 (xreadlink_with_size): Renamed from xreadink.
19117 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
19118 * modules/canonicalize (Depends-on): Replace xreadlink with
19119 xreadlink-with-size.
19120 * lib/canonicalize.c (canonicalize_filename_mode): Update.
19122 2007-02-25 Jim Meyering <jim@meyering.net>
19124 * build-aux/announce-gen: When complaining about excess arguments,
19127 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
19129 * README: Document signed integer overflow situation more
19132 2007-02-25 Bruno Haible <bruno@clisp.org>
19134 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
19135 'a' or 'A' conversion.
19137 2007-02-25 Bruno Haible <bruno@clisp.org>
19139 * modules/filename: Renamed from modules/pathname.
19140 (Files): Replace lib/pathname.h with lib/filename.h. Replace
19141 lib/concatpath.c with lib/concat-filename.c.
19142 (Makefile.am): Update.
19143 (Include): Replace pathname.h with filename.h.
19144 * lib/filename.h: Renamed from lib/pathname.h.
19145 (concatenated_filename): Renamed from concatenated_pathname.
19146 * lib/concat-filename.c: Renamed from lib/concatpath.c.
19147 (concatenated_filename): Renamed from concatenated_pathname.
19148 * lib/findprog.c: Include filename.h instead of pathname.h.
19149 (find_in_path): Update.
19150 * lib/javacomp.c: Include filename.h instead of pathname.h.
19151 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
19152 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
19153 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
19154 is_oldgcj_14_13_usable, is_javac_usable): Update.
19155 * lib/javaexec.c: Include filename.h instead of pathname.h.
19156 (execute_java_class): Update.
19157 * modules/findprog: Update.
19158 * modules/javacomp: Update.
19159 * modules/javaexec: Update.
19160 * MODULES.html.sh (File system functions): Add 'filename', remove
19163 2007-02-25 Bruno Haible <bruno@clisp.org>
19165 * modules/printf-frexpl-tests: New file.
19166 * tests/test-printf-frexpl.c: New file.
19168 * modules/printf-frexpl: New file.
19169 * lib/printf-frexpl.h: New file.
19170 * lib/printf-frexpl.c: New file.
19171 * m4/printf-frexpl.m4: New file.
19173 2007-02-25 Bruno Haible <bruno@clisp.org>
19175 * modules/printf-frexp-tests: New file.
19176 * tests/test-printf-frexp.c: New file.
19178 * modules/printf-frexp: New file.
19179 * lib/printf-frexp.h: New file.
19180 * lib/printf-frexp.c: New file.
19181 * m4/printf-frexp.m4: New file.
19183 2007-02-25 Bruno Haible <bruno@clisp.org>
19185 Assume automake >= 1.10 for the tests.
19186 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
19187 * modules/arctwo-tests: Likewise.
19188 * modules/argp-tests: Likewise.
19189 * modules/avltree-list-tests: Likewise.
19190 * modules/avltree-oset-tests: Likewise.
19191 * modules/avltreehash-list-tests: Likewise.
19192 * modules/carray-list-tests: Likewise.
19193 * modules/crc-tests: Likewise.
19194 * modules/des-tests: Likewise.
19195 * modules/gc-arcfour-tests: Likewise.
19196 * modules/gc-arctwo-tests: Likewise.
19197 * modules/gc-des-tests: Likewise.
19198 * modules/gc-hmac-md5-tests: Likewise.
19199 * modules/gc-hmac-sha1-tests: Likewise.
19200 * modules/gc-md2-tests: Likewise.
19201 * modules/gc-md4-tests: Likewise.
19202 * modules/gc-md5-tests: Likewise.
19203 * modules/gc-pbkdf2-sha1-tests: Likewise.
19204 * modules/gc-rijndael-tests: Likewise.
19205 * modules/gc-sha1-tests: Likewise.
19206 * modules/gc-tests: Likewise.
19207 * modules/getaddrinfo-tests: Likewise.
19208 * modules/hmac-md5-tests: Likewise.
19209 * modules/hmac-sha1-tests: Likewise.
19210 * modules/linked-list-tests: Likewise.
19211 * modules/linkedhash-list-tests: Likewise.
19212 * modules/lock-tests: Likewise.
19213 * modules/md2-tests: Likewise.
19214 * modules/md4-tests: Likewise.
19215 * modules/md5-tests: Likewise.
19216 * modules/rbtree-list-tests: Likewise.
19217 * modules/rbtree-oset-tests: Likewise.
19218 * modules/rbtreehash-list-tests: Likewise.
19219 * modules/read-file-tests: Likewise.
19220 * modules/rijndael-tests: Likewise.
19221 * modules/stdint-tests: Likewise.
19222 * modules/tls-tests: Likewise.
19224 2007-02-24 Bruno Haible <bruno@clisp.org>
19226 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
19227 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
19228 function; instead check whether isnan with a double argument links.
19229 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
19230 function; instead check whether isnan with a 'long double' argument
19232 Reported by Eric Blake <ebb9@byu.net>.
19234 2007-02-24 Bruno Haible <bruno@clisp.org>
19236 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
19238 * lib/isnanl.c: Remove all code. Just include isnan.c.
19239 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
19241 2007-02-25 Jim Meyering <jim@meyering.net>
19243 Avoid conflicting types for 'unsetenv' on FreeBSD.
19244 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
19245 conflicting with FreeBSD's (5.0 and 6.1) function declaration
19248 2007-02-24 Bruno Haible <bruno@clisp.org>
19250 * modules/isnanl-nolibm-tests: New file.
19251 * tests/test-isnanl.c: New file.
19253 * modules/isnanl-nolibm: New file.
19254 * lib/isnanl.h: New file.
19255 * lib/isnanl.c: New file.
19256 * m4/isnanl.m4: New file.
19258 2007-02-24 Bruno Haible <bruno@clisp.org>
19260 * modules/isnan-nolibm-tests: New file.
19261 * tests/test-isnan.c: New file.
19263 * modules/isnan-nolibm: New file.
19264 * lib/isnan.h: New file.
19265 * lib/isnan.c: New file.
19266 * m4/isnan.m4: New file.
19268 2007-02-24 Bruno Haible <bruno@clisp.org>
19270 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
19271 assume that an exponent fits in 20 bits.
19273 2007-02-24 Jim Meyering <jim@meyering.net>
19275 * m4/regex.m4: Update the description of the configure-time option,
19276 --without-included-regex, to state accurately what the defaults are,
19277 and perhaps to give people an idea why using this option is risky.
19279 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
19281 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
19282 loops on small arguments. This attempts to avoid the problem
19283 Bruno Haible reported for AIX 4.3.2 in
19284 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
19286 2007-02-23 Bruno Haible <bruno@clisp.org>
19288 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
19289 Needed for help2man.
19291 2007-02-23 Karl Berry <karl@gnu.org>
19293 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
19294 exists, foo.h should be cvs-ignored, not committed.
19296 2007-02-23 Eric Blake <ebb9@byu.net>
19298 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
19299 * lib/stat-time.h (includes): Likewise.
19300 * lib/utimecmp.c (includes): Likewise.
19301 * lib/utimens.h (includes): Likewise.
19302 * lib/getdate.y (includes): Also include "timespec.h" for use
19303 internal to the module.
19304 * modules/utimens (Depends-on): Revert yesterday's patch.
19305 * modules/nanosleep (Depends-on): Add missing dependency.
19307 2007-02-22 Bruno Haible <bruno@clisp.org>
19309 * lib/glob.c: Don't include getlogin_r.h.
19311 2007-02-22 Jim Meyering <jim@meyering.net>
19313 * modules/utimens (Depends-on): Add timespec, required for
19314 utimens.h's inclusion of timespec.h.
19316 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
19318 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
19319 long unreadable paths in GNU/Linux. Problem reported by Andreas
19321 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
19322 I'll try to think of a better way to fix the Solaris problem.
19324 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
19325 like glibc; on Solaris 10, it fails with errno == EINVAL.
19326 POSIX says the behavior is unspecified if the first argument is NULL,
19327 so play it safe and never pass NULL to the system getcwd.
19329 2007-02-21 Jim Meyering <jim@meyering.net>
19331 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
19332 of gettimeofday. It would conflict with the one now always
19333 provided via sys_time_.h. Reported by Matthew Woehlke, as
19334 an IRIX 6.5 build failure.
19336 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
19338 Minor fixups to port to Solaris 10 with Sun C 5.8.
19339 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
19340 * modules/getcwd (Depends-on): Add dirfd.
19341 * lib/putenv.c (putenv): #undef it.
19342 (rpl_putenv): New decl.
19343 (malloc, free): Include <stdlib.h> rather than prototyping separately.
19345 2007-02-20 Bruno Haible <bruno@clisp.org>
19347 * modules/stdio-tests: New file.
19348 * tests/test-stdio.c: New file.
19350 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
19351 (Depends-on): Add stdio.
19352 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
19353 (Include): Use <stdio.h> instead of vsnprintf.h.
19354 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
19355 HAVE_DECL_VSNPRINTF.
19356 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
19358 * modules/snprintf (Files): Remove lib/snprintf.h.
19359 (Depends-on): Add stdio.
19360 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
19361 (Include): Use <stdio.h> instead of snprintf.h.
19362 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
19363 HAVE_DECL_SNPRINTF.
19364 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
19365 * lib/getaddrinfo.c: Likewise.
19367 * modules/stdio: New file.
19368 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
19369 * lib/snprintf.h: Remove file.
19370 * lib/vsnprintf.h: Remove file.
19371 * lib/.cppi-disable: Remove snprintf.h.
19372 * m4/stdio_h.m4: New file.
19373 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
19375 2007-02-20 Jim Meyering <jim@meyering.net>
19377 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
19378 used by e.g., mingw. From Bruno Haible.
19380 2007-02-19 Bruno Haible <bruno@clisp.org>
19382 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
19384 Reported by Ben Pfaff <blp@cs.stanford.edu>.
19386 2007-02-19 Bruno Haible <bruno@clisp.org>
19388 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
19391 2007-02-19 Bruno Haible <bruno@clisp.org>
19393 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
19395 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
19397 2007-02-19 Jim Meyering <jim@meyering.net>
19399 Don't use FD after a successful "fdopendir (fd)".
19400 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
19401 Reset it by calling dirfd on the just-obtained DIR*.
19403 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
19404 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
19406 2007-02-18 Bruno Haible <bruno@clisp.org>
19408 * lib/readlink.c: Include <unistd.h>.
19409 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
19411 * modules/readlink (Depends-on): Add unistd.
19412 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19413 (Include): Add <unistd.h>.
19415 * lib/getlogin_r.h: Remove file.
19416 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
19417 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
19418 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
19419 HAVE_DECL_GETLOGIN_R.
19420 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
19421 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19422 (Include): Use <unistd.h> instead of getlogin_r.h.
19424 * lib/getcwd.h: Remove file.
19425 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
19426 * lib/xgetcwd.c: Likewise.
19427 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
19428 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
19429 * modules/getcwd (Files): Remove lib/getcwd.h.
19430 (Depends-on): Add unistd.
19431 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19432 (Include): Use <unistd.h> instad of getcwd.h.
19434 * lib/ftruncate.c: Include <unistd.h> first.
19435 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
19436 Set HAVE_FTRUNCATE.
19437 * modules/ftruncate (Depends-on): Add unistd.
19438 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19440 * lib/fchdir.c: Include <unistd.h> first.
19441 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
19442 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
19443 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
19444 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19445 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
19447 * lib/dup2.c: Include <unistd.h> first.
19448 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
19450 * modules/dup2 (Depends-on): Add unistd.
19451 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19453 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
19454 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
19455 REPLACE_CHOWN. Don't define chown as a macro here.
19456 * modules/chown (Depends-on): Add unistd.
19457 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19459 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
19460 Add definition for GL_LINK_WARNING.
19461 (chown, dup2): New declarations.
19462 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
19464 (ftruncate): New declaration.
19465 (getcwd): New declaration, taken from old getcwd.h.
19466 (getlogin_r): New declaration, taken from old getlogin_r.h.
19467 (readlink): New declaration.
19468 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
19469 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
19470 (gl_PREREQ_UNISTD): Remove macro.
19471 (gl_UNISTD_MODULE_INDICATOR): New macro.
19472 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
19473 many new variables. Don't set UNISTD_H.
19474 * modules/unistd (Description): Change.
19475 (Depends-on): Add link-warning.
19476 (configure.ac): Update.
19477 (Makefile.am): Create unistd.h always. Substitute many new variables
19480 2007-02-18 Bruno Haible <bruno@clisp.org>
19482 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
19483 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
19485 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
19486 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
19487 * lib/getsubopt.h: Remove file.
19488 * modules/getsubopt (Files): Remove lib/getsubopt.h.
19489 (Depends-on): Add stdlib.
19490 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19491 (Includes): Use <stdlib.h> instead of getsubopt.h.
19492 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
19493 Set HAVE_GETSUBOPT.
19494 * lib/getsubopt.c: Don't include getsubopt.h.
19496 2007-02-18 Bruno Haible <bruno@clisp.org>
19498 * modules/fchdir (Depends-on): Add dup2.
19500 2007-02-18 Bruno Haible <bruno@clisp.org>
19502 * lib/stdlib_.h: Handle glibc's special invocation convention
19505 2007-02-18 Bruno Haible <bruno@clisp.org>
19507 * modules/stdlib-tests: New file.
19508 * tests/test-stdlib.c: New file.
19510 * modules/mkstemp (Files): Remove lib/mkstemp.h.
19511 (Depends-on): Add stdlib.
19512 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19513 (Includes): Use <stdlib.h> instead of mkstemp.h.
19514 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
19515 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
19516 * lib/mkstemp.c: Don't include mkstemp.h.
19517 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
19518 * lib/stdlib--.h: Don't include mkstemp.h.
19520 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
19521 (Depends-on): Add stdlib.
19522 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19523 (Includes): Use <stdlib.h> instead of mkdtemp.h.
19524 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
19526 * lib/mkdtemp.c: Don't include mkdtemp.h.
19527 * lib/clean-temp.c: Don't include mkdtemp.h.
19529 * modules/exit (Files): Remove lib/exit.h.
19530 (Depends-on): Add stdlib.
19531 (Makefile.am): Remove lib_SOURCES.
19532 (Include): Use <stdlib.h> instead of exit.h.
19533 * lib/argmatch.c: Don't include exit.h.
19534 * lib/execute.c: Likewise.
19535 * lib/pagealign_alloc.c: Likewise.
19536 * lib/pipe.c: Likewise.
19537 * lib/wait-process.c: Likewise.
19538 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
19539 * lib/exitfail.c: Likewise.
19540 * lib/savewd.c: Likewise.
19541 * lib/xsetenv.c: Likewise.
19543 * modules/stdlib: New file.
19544 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
19545 and extra comments about mkstemp().
19546 * lib/exit.h: Remove file.
19547 * lib/mkdtemp.h: Remove file.
19548 * lib/mkstemp.h: Remove file.
19549 * m4/stdlib_h.m4: New file.
19550 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
19552 2007-02-18 Bruno Haible <bruno@clisp.org>
19554 * modules/math-tests: New file.
19555 * tests/test-math.c: New file.
19557 * modules/math: New file.
19558 * modules/mathl (Files): Remove lib/mathl.h.
19559 (Depends-on): Add math.
19560 (Makefile.am): Don't mention mathl.h.
19561 (Include): Use <math.h> instead of mathl.h.
19562 * lib/math_.h: New file.
19563 * lib/mathl.h: Remove file.
19564 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
19566 * lib/asinl.c: Likewise.
19567 * lib/atanl.c: Likewise.
19568 * lib/ceill.c: Likewise.
19569 * lib/cosl.c: Likewise.
19570 * lib/expl.c: Likewise.
19571 * lib/floorl.c: Likewise.
19572 * lib/frexpl.c: Likewise.
19573 * lib/ldexpl.c: Likewise.
19574 * lib/logl.c: Likewise.
19575 * lib/sincosl.c: Likewise.
19576 * lib/sinl.c: Likewise.
19577 * lib/sqrtl.c: Likewise.
19578 * lib/tanl.c: Likewise.
19579 * lib/trigl.c: Likewise.
19580 * m4/math_h.m4: New file.
19581 * MODULES.html.sh (Mathematics): Add math.
19583 2007-02-17 Bruno Haible <bruno@clisp.org>
19585 * modules/wctype-tests: New file.
19586 * tests/test-wctype.c: New file.
19588 * modules/wchar-tests: New file.
19589 * tests/test-wchar.c: New file.
19591 * modules/unistd-tests: New file.
19592 * tests/test-unistd.c: New file.
19594 * modules/time-tests: New file.
19595 * tests/test-time.c: New file.
19597 * modules/sysexits-tests: New file.
19598 * tests/test-sysexits.c: New file.
19600 * modules/sys_time-tests: New file.
19601 * tests/test-sys_time.c: New file.
19603 * modules/sys_stat-tests: New file.
19604 * tests/test-sys_stat.c: New file.
19606 * modules/sys_socket-tests: New file.
19607 * tests/test-sys_socket.c: New file.
19609 * modules/sys_select-tests: New file.
19610 * tests/test-sys_select.c: New file.
19612 * modules/string-tests: New file.
19613 * tests/test-string.c: New file.
19615 * modules/stdbool-tests: New file.
19616 * tests/test-stdbool.c: New file.
19618 * modules/netinet_in-tests: New file.
19619 * tests/test-netinet_in.c: New file.
19621 * modules/inttypes-tests: New file.
19622 * tests/test-inttypes.c: New file.
19624 * modules/fcntl-tests: New file.
19625 * tests/test-fcntl.c: New file.
19627 * modules/byteswap-tests: New file.
19628 * tests/test-byteswap.c: New file.
19630 * modules/arpa_inet-tests: New file.
19631 * tests/test-arpa_inet.c: New file.
19633 2007-02-17 Bruno Haible <bruno@clisp.org>
19635 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
19636 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
19637 if the corresponding module is not enabled. Emit link warnings if
19638 the function is used nevertheless.
19639 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
19640 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
19641 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
19642 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
19643 * modules/inttypes (Depends-on): Add link-warning.
19644 (Makefile.am): Copy the contents of build-aux/link-warning.h into
19645 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
19646 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
19647 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
19648 * modules/imaxdiv (configure.ac): Likewise.
19649 * modules/strtoimax (configure.ac): Likewise.
19650 * modules/strtoumax (configure.ac): Likewise.
19652 2007-02-17 Bruno Haible <bruno@clisp.org>
19654 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
19655 gl_STRING_MODULE_INDICATOR_DEFAULTS.
19656 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
19657 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
19659 2007-02-17 Bruno Haible <bruno@clisp.org>
19661 * modules/link-warning: New file.
19662 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
19663 * lib/string_.h (GL_LINK_WARNING): Remove definition.
19664 * modules/string (Depends-on): Add link-warning.
19665 (Makefile.am): Copy the contents of build-aux/link-warning.h into
19667 * MODULES.html.sh (Support for building libraries and executables): Add
19670 2007-02-17 Bruno Haible <bruno@clisp.org>
19672 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
19673 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
19674 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
19677 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
19678 Bruno Haible <bruno@clisp.org>
19680 * modules/tmpfile: New file.
19681 * lib/tmpfile.c: New file.
19682 * m4/tmpfile.m4: New file.
19683 * MODULES.html.sh (func_all_modules): New section "Input/output".
19685 2007-02-15 Bruno Haible <bruno@clisp.org>
19687 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
19688 (supports_delete_on_close): New function.
19689 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
19691 2007-02-14 Bruno Haible <bruno@clisp.org>
19693 * modules/mbspcasecmp-tests: New file.
19694 * tests/test-mbspcasecmp.sh: New file.
19695 * tests/test-mbspcasecmp.c: New file.
19697 New module mbspcasecmp.
19698 * modules/mbspcasecmp: New file.
19699 * lib/mbspcasecmp.c: New file.
19700 * lib/string_.h (strncasecmp): Change warning message.
19701 (mbspcasecmp): New declaration.
19702 * m4/mbspcasecmp.m4: New file.
19703 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19704 GNULIB_MBSPCASECMP.
19705 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
19706 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
19708 2007-02-14 Bruno Haible <bruno@clisp.org>
19710 * modules/mbsncasecmp-tests: New file.
19711 * tests/test-mbsncasecmp.sh: New file.
19712 * tests/test-mbsncasecmp.c: New file.
19714 New module mbsncasecmp.
19715 * modules/mbsncasecmp: New file.
19716 * lib/mbsncasecmp.c: New file.
19717 * lib/string_.h (mbsncasecmp): New declaration.
19718 * m4/mbsncasecmp.m4: New file.
19719 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19720 GNULIB_MBSNCASECMP.
19721 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
19722 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
19724 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
19726 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
19727 Verify that it doesn't overlap with our flags.
19728 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
19729 do not have the desired effect in multibyte locales; instead, use
19731 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
19732 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
19733 we don't require GNU fnmatch ourselves (if our users require it, they
19734 should do so explicitly).
19736 Fix regex code so it doesn't rely on strcasecmp.
19737 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
19738 Otherwise, include gnulib's langinfo.h.
19739 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
19740 undesirable behavior in non-C locales. Instead, rely on localecharset.
19741 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
19742 * modules/regex (FILES): Remove m4/codeset.m4.
19743 (Depends-on): Add localcharset. Remove strcase.
19745 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19747 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
19748 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19750 2007-02-13 Bruno Haible <bruno@clisp.org>
19752 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
19753 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19755 2007-02-12 Bruno Haible <bruno@clisp.org>
19757 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
19758 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
19759 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
19760 time warning rather than a link error.
19762 2007-02-12 Bruno Haible <bruno@clisp.org>
19764 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
19765 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19766 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19768 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
19770 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
19773 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
19775 New module 'time', so that apps can include <time.h> as per
19776 POSIX and GNU instead of separate include files like time_r.h
19777 and timegm.h. This implementation tries out a simpler approach
19778 for replacing decls in standard include files (as compared to
19779 the string module), somewhat as an experiment.
19781 * config/srclist.txt: Comment out mktime.c for now.
19782 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
19783 since it doesn't apply any more. Use generic wording instead.
19784 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
19786 * lib/time_.h, m4/time_h.m4, modules/time: New files.
19787 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
19788 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
19789 Don't include <sys/types.h>; no longer needed since we assume C89.
19790 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
19791 * lib/strftime.c: Likewise.
19792 * lib/time_r.c: Likewise.
19793 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
19794 * lib/nanosleep.c: Include <time.h> first, to check interface.
19795 * lib/strptime.c: Likewise.
19796 * lib/time_r.c: Likewise.
19797 * lib/timegm.c: Likewise.
19798 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
19800 * lib/timegm.c: Don't include timegm.h; no longer needed.
19801 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
19802 time.h now handles any problems in that area.
19803 (struct timespec, nanosleep): Remove; time.h now arranges for these.
19804 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
19805 that time.h defines struct timespec.
19806 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
19807 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
19809 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
19810 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
19811 needed. Set REPLACE_LOCALTIME.
19812 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
19813 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
19814 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
19815 nanosleep; time_h.m4 now does that. Don't require
19816 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
19817 module handles this now.
19818 * modules/getdate (Depends-on): Remove timespec. Add time.
19819 * modules/nanosleep (Depends-on): Likewise.
19820 * modules/stat-time (Depends-on): Likewise.
19821 * modules/nanosleep (Include): Include time.h, not timespec.h.
19822 * modules/strptime (Files): Remove lib/strptime.h.
19823 (Depends-on): Add extensions, time.
19824 (Include): Include time.h, not strptime.h.
19825 * modules/time_r (Files): Remove lib/time_r.h.
19826 (Depends-on): Add time.
19827 (Include): Include time.h, not time_r.h.
19828 * modules/timegm: Likewise.
19829 * modules/timespec (Description): Now does timespec-related decls
19830 of our own, instead of struct timespec itself.
19831 (Depends-on): Add time; remove extensions.
19832 (Maintainer): Add self.
19833 * modules/utimecmp (Depends-on): Add time; remove timespec.
19834 * modules/utimens (Depends-on): Likewise.
19835 * modules/xnanosleep (Depends-on): Likewise.
19837 2007-02-11 Bruno Haible <bruno@clisp.org>
19839 * lib/c-strstr.c: Include allocsa.h.
19840 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
19841 * lib/c-strcasestr.c: Include allocsa.h.
19842 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
19843 * lib/strcasestr.c: Include allocsa.h.
19844 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
19845 * lib/mbsstr.c: Include allocsa.h.
19846 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
19847 allocsa/freesa instead of malloc/free.
19848 * lib/mbscasestr.c: Include allocsa.h.
19849 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
19850 allocsa/freesa instead of malloc/free.
19851 * modules/c-strstr (Depends-on): Add allocsa.
19852 * modules/c-strcasestr (Depends-on): Likewise.
19853 * modules/strcasestr (Depends-on): Likewise.
19854 * modules/mbsstr (Depends-on): Likewise.
19855 * modules/mbscasestr (Depends-on): Likewise.
19857 2007-02-11 Bruno Haible <bruno@clisp.org>
19859 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
19861 * modules/mbsspn-tests: New file.
19862 * tests/test-mbsspn.sh: New file.
19863 * tests/test-mbsspn.c: New file.
19865 2007-02-11 Bruno Haible <bruno@clisp.org>
19867 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
19869 * modules/mbspbrk-tests: New file.
19870 * tests/test-mbspbrk.sh: New file.
19871 * tests/test-mbspbrk.c: New file.
19873 2007-02-11 Bruno Haible <bruno@clisp.org>
19875 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
19878 * modules/mbscspn-tests: New file.
19879 * tests/test-mbscspn.sh: New file.
19880 * tests/test-mbscspn.c: New file.
19882 2007-02-11 Bruno Haible <bruno@clisp.org>
19884 * modules/mbscasecmp-tests: New file.
19885 * tests/test-mbscasecmp.sh: New file.
19886 * tests/test-mbscasecmp.c: New file.
19888 2007-02-11 Bruno Haible <bruno@clisp.org>
19890 Ensure O(n) worst-case complexity of mbscasestr.
19891 * lib/mbscasestr.c: Include stdbool.h.
19892 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
19894 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
19895 the bookkeeping indicates that it's worth it.
19896 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
19898 * modules/mbscasestr-tests: New file.
19899 * tests/test-mbscasestr1.c: New file.
19900 * tests/test-mbscasestr2.sh: New file.
19901 * tests/test-mbscasestr2.c: New file.
19902 * tests/test-mbscasestr3.sh: New file.
19903 * tests/test-mbscasestr3.c: New file.
19904 * tests/test-mbscasestr4.sh: New file.
19905 * tests/test-mbscasestr4.c: New file.
19906 * m4/locale-tr.m4: New file.
19908 2007-02-11 Bruno Haible <bruno@clisp.org>
19910 Ensure O(n) worst-case complexity of mbsstr.
19911 * lib/mbsstr.c: Include stdbool.h.
19912 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
19914 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
19915 bookkeeping indicates that it's worth it.
19916 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
19918 * modules/mbsstr-tests: New file.
19919 * tests/test-mbsstr1.c: New file.
19920 * tests/test-mbsstr2.sh: New file.
19921 * tests/test-mbsstr2.c: New file.
19922 * tests/test-mbsstr3.sh: New file.
19923 * tests/test-mbsstr3.c: New file.
19924 * m4/locale-fr.m4: New file.
19926 2007-02-11 Bruno Haible <bruno@clisp.org>
19928 * lib/mbsrchr.c (mbsrchr): Fix bug.
19930 * modules/mbsrchr-tests: New file.
19931 * tests/test-mbsrchr.sh: New file.
19932 * tests/test-mbsrchr.c: New file.
19934 2007-02-11 Bruno Haible <bruno@clisp.org>
19936 * lib/mbschr.c (mbschr): Fix bug.
19938 * modules/mbschr-tests: New file.
19939 * tests/test-mbschr.sh: New file.
19940 * tests/test-mbschr.c: New file.
19941 * m4/locale-zh.m4: New file.
19943 2007-02-11 Bruno Haible <bruno@clisp.org>
19945 Support for copying multibyte string iterators.
19946 * lib/mbiter.h: Include <string.h>.
19947 (mbiter_multi_copy): New function.
19948 (mbi_copy): New macro.
19949 * lib/mbuiter.h: Include <string.h>.
19950 (mbuiter_multi_copy): New function.
19951 (mbui_copy): New macro.
19953 2007-02-11 Bruno Haible <bruno@clisp.org>
19956 * modules/mbslen: New file.
19957 * lib/mbslen.c: New file.
19958 * lib/string_.h (mbslen): New declaration.
19959 * m4/mbslen.m4: New file.
19960 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19962 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
19963 * MODULES.html.sh (Internationalization functions): Add mbslen.
19965 2007-02-11 Bruno Haible <bruno@clisp.org>
19967 Ensure O(n) worst-case complexity of strcasestr substitute.
19968 * lib/strcasestr.c: Include stdbool.h.
19969 (knuth_morris_pratt): New function.
19970 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
19971 bookkeeping indicates that it's worth it.
19972 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
19974 * modules/strcasestr-tests: New file.
19975 * tests/test-strcasestr.c: New file.
19977 2007-02-11 Bruno Haible <bruno@clisp.org>
19979 Ensure O(n) worst-case complexity of c_strcasestr.
19980 * lib/c-strcasestr.c: Include stdbool.h, string.h.
19981 (knuth_morris_pratt): New function.
19982 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
19983 the bookkeeping indicates that it's worth it.
19984 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
19986 * modules/c-strcasestr-tests: New file.
19987 * tests/test-c-strcasestr.c: New file.
19989 2007-02-11 Bruno Haible <bruno@clisp.org>
19991 Ensure O(n) worst-case complexity of c_strstr.
19992 * lib/c-strstr.c: Include stdbool.h, string.h.
19993 (knuth_morris_pratt): New function.
19994 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
19995 bookkeeping indicates that it's worth it.
19996 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
19998 * lib/c-strstr.c: Complete rewrite for maintainability.
20000 * modules/c-strstr-tests: New file.
20001 * tests/test-c-strstr.c: New file.
20003 2007-02-11 Bruno Haible <bruno@clisp.org>
20005 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
20006 5.2.1 and earlier, whereby \055 was treated just like the range
20008 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
20010 2007-02-08 Bruno Haible <bruno@clisp.org>
20012 * modules/regex (Depends-on): Add stdbool.
20013 Reported by Dalibor Topic <robilad@kaffe.org>.
20015 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
20017 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
20018 Prefer returning from main to exiting from it.
20019 Remove unnecessary parens after sizeof.
20021 2007-02-05 Bruno Haible <bruno@clisp.org>
20024 * modules/mbssep: New file.
20025 * lib/mbssep.c: New file.
20026 * lib/string_.h (strsep): Add a conditional link warning.
20027 (mbssep): New declaration.
20028 * m4/mbssep.m4: New file.
20029 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
20031 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
20032 * MODULES.html.sh (Internationalization functions): Add mbssep.
20034 2007-02-05 Bruno Haible <bruno@clisp.org>
20036 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
20037 Optimize search in case of 1 delimiter.
20039 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
20041 * lib/acl.h: Include sys/types.h before sys/acl.h.
20043 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
20045 Merge upstream fix for glibc bugzilla #3957:
20047 2007-02-05 Jakub Jelinek <jakub@redhat.com>
20049 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
20050 bit for RE_HAT_LISTS_NOT_NEWLINE.
20051 (build_charclass_op): Remove bogus comment.
20053 2007-02-05 Simon Josefsson <simon@josefsson.org>
20055 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
20057 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
20059 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
20060 * lib/memmem.c [!defined _LIBC]: Include config.h.
20062 2007-02-04 Bruno Haible <bruno@clisp.org>
20064 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
20067 2007-02-04 Bruno Haible <bruno@clisp.org>
20069 New module mbstok_r.
20070 * modules/mbstok_r: New file.
20071 * lib/mbstok_r.c: New file.
20072 * lib/string_.h (strtok_r): Change argument names to match the
20073 comments. Add a conditional link warning.
20074 (mbstok_r): New declaration.
20075 * m4/mbstok_r.m4: New file.
20076 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
20078 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
20079 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
20081 2007-02-04 Bruno Haible <bruno@clisp.org>
20084 * modules/mbsspn: New file.
20085 * lib/mbsspn.c: New file.
20086 * lib/string_.h (strspn): Add a conditional link warning.
20087 (mbsspn): New declaration.
20088 * m4/mbsspn.m4: New file.
20089 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
20091 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
20092 * MODULES.html.sh (Internationalization functions): Add mbsspn.
20094 2007-02-04 Bruno Haible <bruno@clisp.org>
20096 New module mbspbrk.
20097 * modules/mbspbrk: New file.
20098 * lib/mbspbrk.c: New file.
20099 * lib/string_.h (strpbrk): Add a conditional link warning.
20100 (mbspbrk): New declaration.
20101 * m4/mbspbrk.m4: New file.
20102 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
20104 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
20105 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
20107 2007-02-04 Bruno Haible <bruno@clisp.org>
20109 New module mbscspn.
20110 * modules/mbscspn: New file.
20111 * lib/mbscspn.c: New file.
20112 * lib/string_.h (strcspn): Add a conditional link warning.
20113 (mbscspn): New declaration.
20114 * m4/mbscspn.m4: New file.
20115 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
20117 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
20118 * MODULES.html.sh (Internationalization functions): Add mbscspn.
20120 2007-02-04 Bruno Haible <bruno@clisp.org>
20122 New module mbscasestr, reduced goal of strcasestr.
20123 * modules/mbscasestr: New file.
20124 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
20125 (mbscasestr): Renamed from strcasestr.
20126 * lib/strcasestr.c: Don't include mbuiter.h.
20127 (strcasestr): Remove support for multibyte locales.
20128 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
20129 Change the conditional link warning.
20130 (mbscasestr): New declaration.
20131 * m4/mbscasestr.m4: New file.
20132 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
20133 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
20134 REPLACE_STRCASESTR.
20135 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
20136 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20137 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
20138 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
20139 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
20140 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
20141 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
20142 (Depends-on): Remove mbuiter.
20143 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
20145 2007-02-04 Bruno Haible <bruno@clisp.org>
20147 Simplify handling of strncasecmp.
20148 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
20149 the conditional link warning.
20150 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20151 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
20152 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
20153 * modules/strcase (configure.ac): Don't invoke
20154 gl_STRING_MODULE_INDICATOR.
20155 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
20157 2007-02-04 Bruno Haible <bruno@clisp.org>
20159 New module mbscasecmp, reduced goal of strcasecmp.
20160 * modules/mbscasecmp: New file.
20161 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
20162 (mbscasecmp): Renamed from strcasecmp.
20163 * lib/strcasecmp.c: Don't include mbuiter.h.
20164 (strcasecmp): Remove support for multibyte locales.
20165 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
20166 Change the conditional link warning.
20167 (mbscasecmp): New declaration.
20168 * m4/mbscasecmp.m4: New file.
20169 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
20170 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
20171 REPLACE_STRCASECMP.
20172 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
20173 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
20175 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
20176 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
20177 * modules/strcase (Files): Remove m4/mbrtowc.m4.
20178 (Depends-on): Remove mbuiter.
20179 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
20181 2007-02-04 Bruno Haible <bruno@clisp.org>
20183 New module mbsstr. Remove module strstr.
20184 * modules/mbsstr: New file.
20185 * modules/strstr: Remove file.
20186 * lib/mbsstr.c: Renamed from lib/strstr.c.
20187 (mbsstr): Renamed from strstr.
20188 * lib/string_.h (strstr): Remove declaration. Change the conditional
20190 (mbsstr): New declaration.
20191 * m4/mbsstr.m4: New file.
20192 * m4/strstr.m4: Remove file.
20193 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
20195 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
20196 Don't initialize GNULIB_STRSTR.
20197 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
20198 substitute GNULIB_STRSTR and REPLACE_STRSTR.
20199 * MODULES.html.sh (Internationalization functions): Add mbsstr.
20200 (Support for systems lacking ANSI C 89): Remove strstr.
20202 2007-02-04 Bruno Haible <bruno@clisp.org>
20204 New module mbsrchr.
20205 * modules/mbsrchr: New file.
20206 * lib/mbsrchr.c: New file.
20207 * lib/string_.h (strrchr): Add a conditional link warning.
20208 (mbsrchr): New declaration.
20209 * m4/mbsrchr.m4: New file.
20210 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
20212 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
20213 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
20215 2007-02-04 Bruno Haible <bruno@clisp.org>
20218 * modules/mbschr: New file.
20219 * lib/mbschr.c: New file.
20220 * lib/string_.h (strchr): Add a conditional link warning.
20221 (mbschr): New declaration.
20222 * m4/mbschr.m4: New file.
20223 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
20225 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
20226 * MODULES.html.sh (Internationalization functions): Add mbschr.
20228 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
20230 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
20232 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
20234 2007-02-04 Bruno Haible <bruno@clisp.org>
20236 New module description section 'configure.ac-early'.
20237 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
20238 (func_get_autoconf_early_snippet): New function.
20239 (func_import, func_create_testdir): Use it. Remove special cases for
20240 modules 'extensions' and 'lock'.
20241 * modules/extensions (configure.ac-early): Require
20242 gl_USE_SYSTEM_EXTENSIONS.
20243 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
20245 2007-02-04 Bruno Haible <bruno@clisp.org>
20247 Make use of gcj-4.3's -fsource and -ftarget option.
20248 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
20249 and if so try the options -fsource and -ftarget.
20250 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
20251 source_version, ftarget_option, target_version arguments.
20252 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
20253 (is_envjavac_oldgcj_14_14_usable): Renamed from
20254 is_envjavac_gcj_14_14_usable.
20255 (is_envjavac_oldgcj_14_13_usable): Renamed from
20256 is_envjavac_gcj_14_13_usable.
20257 (is_gcj_present): Update.
20258 (is_gcj_43, is_gcj43_usable): New functions.
20259 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
20260 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
20261 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
20262 try the options -fsource and -ftarget.
20264 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
20266 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
20267 checking code. Set N = ceil (1.5 * N) rather than to a slightly
20270 2007-02-03 Jim Meyering <jim@meyering.net>
20272 Give tools a better chance to allocate space for very large buffers.
20273 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
20275 Make pwd and readlink work also when run with an unreadable parent dir
20276 on systems with openat support.
20277 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
20278 provided getcwd function, even when we have openat support.
20279 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
20281 2007-02-02 Bruno Haible <bruno@clisp.org>
20283 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
20284 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
20285 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
20286 portability problems if one of these functions is only used on specific
20288 Reported by Paul Eggert.
20290 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
20292 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
20293 is causing more trouble than it's curing.
20294 * lib/regex_internal.h (__mempcpy): Remove.
20295 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
20296 (and make the code a tad smaller to boot).
20297 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
20299 2007-02-02 Jim Meyering <jim@meyering.net>
20301 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
20302 section, not in the Makefile.am: one.
20304 2007-02-02 Eric Blake <ebb9@byu.net>
20306 * lib/strchrnul.c: Always include config.h first.
20308 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
20309 gnulib strstr is not necessary here.
20311 2007-02-02 Simon Josefsson <simon@josefsson.org>
20313 * m4/socklen.m4: Fix typo.
20315 2007-02-02 Eric Blake <ebb9@byu.net>
20317 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
20318 * modules/netinet_in (Makefile.am): Likewise.
20320 2007-02-01 Bruno Haible <bruno@clisp.org>
20322 * lib/string_.h (GL_LINK_WARNING): New macro.
20323 (strcasecmp, strstr, strcasestr): If provided by the system,
20324 conditionally define as a macro that leads to a warning instead of to
20326 (strncasecmp): Conditionally define as a macro that leads to a warning.
20328 2007-02-01 Karl Berry <karl@gnu.org>
20330 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
20332 2007-02-01 Bruno Haible <bruno@clisp.org>
20334 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
20337 2007-02-01 Eric Blake <ebb9@byu.net>
20339 * modules/regex (Depends-on): Revert dependence on mempcpy.
20340 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
20341 module's definition of mempcpy.
20342 Reported by Paul Eggert.
20344 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
20346 * lib/string_.h: If the gnulib module XYZ is not present, undefine
20347 the symbol XYZ before redefining it. This fixes a problem with
20348 programs that don't use XYZ, when compiled on systems that define
20349 XYZ to something else.
20351 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
20353 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
20354 occurs when "mkdir -m foo" creates a setgid directory that is (1)
20355 writeable to group or other and (2) is intended to have a special
20356 mode bit that is set or cleared. In such a case, the directory
20357 should be neither group- nor other-writeable until the special
20358 mode bits are right.
20360 2007-01-31 Eric Blake <ebb9@byu.net>
20362 * modules/mountlist (Depends-on): Add strstr.
20364 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
20366 * modules/string (Makefile.am): Remove redundant replacement.
20367 * modules/regex (Depends-on): Add mempcpy.
20369 2007-01-31 Bruno Haible <bruno@clisp.org>
20371 New module description field 'Link'.
20372 * gnulib-tool (func_usage): Document --extract-link-directive.
20373 (sed_extract_prog): Recognize 'Link' directive.
20374 (func_get_link_directive): New function.
20375 (func_import): Show summary of link directives.
20376 Handle --extract-link-directive option.
20377 * modules/acl (Link): New section.
20378 * modules/clock-time (Link): New section.
20379 * modules/euidaccess (Link): New section.
20380 * modules/gettext (Link): New section.
20381 * modules/iconv (Link): New section.
20382 * modules/lock (Link): New section.
20383 * modules/nanosleep (Link): New section.
20384 * modules/readline (Link): New section.
20386 2007-01-27 Bruno Haible <bruno@clisp.org>
20388 Enforce the use of gnulib modules for unportable <string.h> functions.
20389 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
20390 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
20391 (gl_HEADER_STRING_H_BODY): Require it.
20392 * lib/string_.h: If the gnulib module XYZ is not present, redefine
20393 the symbol XYZ to one that gives a link error.
20394 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
20395 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
20396 * modules/mempcpy (configure.ac): Likewise.
20397 * modules/memrchr (configure.ac): Likewise.
20398 * modules/stpcpy (configure.ac): Likewise.
20399 * modules/stpncpy (configure.ac): Likewise.
20400 * modules/strcase (configure.ac): Likewise.
20401 * modules/strcasestr (configure.ac): Likewise.
20402 * modules/strchrnul (configure.ac): Likewise.
20403 * modules/strdup (configure.ac): Likewise.
20404 * modules/strndup (configure.ac): Likewise.
20405 * modules/strnlen (configure.ac): Likewise.
20406 * modules/strpbrk (configure.ac): Likewise.
20407 * modules/strsep (configure.ac): Likewise.
20408 * modules/strstr (configure.ac): Likewise.
20409 * modules/strtok_r (configure.ac): Likewise.
20411 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
20413 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
20415 2007-01-30 Jim Meyering <jim@meyering.net>
20417 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
20419 2007-01-29 Bruno Haible <bruno@clisp.org>
20421 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
20422 * lib/execute.c: Likewise.
20423 * lib/pipe.c: Likewise.
20424 * lib/printf-args.h: Likewise.
20425 * lib/printf-args.c: Likewise.
20426 * lib/printf-parse.c: Likewise.
20427 * lib/vasnprintf.c: Likewise.
20429 2007-01-29 Eric Blake <ebb9@byu.net>
20431 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
20434 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
20436 * lib/strptime.h (strptime): Use 'restrict' for args where
20437 POSIX requires this.
20438 * lib/strptime.c (strptime): Likewise.
20439 Change license notice from LGPL to GPL, since gnulib-tool will
20440 change this as needed.
20441 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
20443 Include "strptime.h" first, to check interface.
20444 Do not #undef _LIBC and _NL_CURRENT.
20445 Do not include <stdlib.h>; no longer needed.
20446 Include "time_r.h" and declare ptime_locale_status
20447 only if _LIBC is not defined.
20448 (__P): Remove unused macro.
20449 (match_string): Bring back glibc version, but use it only if _LIBC
20451 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
20452 Remove unnecessary assertion and abort() call.
20453 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
20454 * m4/strptime.m4: Fix serial number comment.
20455 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
20456 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
20457 (Depends-on): Add time_r.
20459 2007-01-29 Bruno Haible <bruno@clisp.org>
20461 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20463 * modules/strptime (Depends-on): Add stdbool.
20464 * lib/strptime.h: Include <time.h> always. Add comments.
20466 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
20468 * modules/strptime: New file.
20469 * lib/strptime.h: New file.
20470 * lib/strptime.c: New file.
20471 * m4/strptime.m4: New file.
20473 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
20475 * MODULES.html.sh: New module mpsort.
20476 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
20478 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
20479 a circularity problem with HP-UX ia64 reported by Bob Proulx in
20480 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
20482 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
20484 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
20486 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
20487 the parameter matches the prototype.
20489 2007-01-28 Jim Meyering <jim@meyering.net>
20491 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
20492 sys/time.h here, reverting that part of the previous patch:
20493 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
20495 2007-01-28 Bruno Haible <bruno@clisp.org>
20497 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
20498 value of $(SYS_TIME_H).
20499 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
20500 remove it conditionally, too. [added by Jim Meyering]
20501 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
20502 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
20503 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
20504 GETTIMEOFDAY_REPLACEMENT to 1.
20506 2007-01-28 Bruno Haible <bruno@clisp.org>
20508 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
20509 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
20510 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
20511 Set UNISTD_H instead of UNISTD_H2.
20512 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
20514 2007-01-28 Bruno Haible <bruno@clisp.org>
20516 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
20517 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
20519 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20521 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
20522 (func_create_testdir): Ensure C locale for `grep' and `tr'
20524 (func_create_megatestdir): Avoid one `grep'. Fix bug in
20525 ACLOCAL_AMFLAGS parsing state machine.
20527 2007-01-27 Bruno Haible <bruno@clisp.org>
20529 * modules/unistr/base: Update.
20531 2007-01-27 Bruno Haible <bruno@clisp.org>
20533 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
20534 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
20535 * modules/unistr/u32-mbtouc-unsafe: Renamed from
20536 modules/unistr/u32-mbtouc.
20537 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
20538 * lib/unistr.h: Update.
20539 * lib/linebreak.c: Update.
20540 * modules/unistr/u32-mbtouc: Renamed from
20541 modules/unistr/u32-mbtouc-safe.
20542 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
20543 * lib/unistr.h: Update.
20544 * lib/unistr/u32-to-u8.c: Update.
20545 * lib/unistr/u32-to-u16.c: Update.
20547 2007-01-27 Bruno Haible <bruno@clisp.org>
20549 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
20550 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
20551 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
20552 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
20553 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
20554 * modules/unistr/u16-mbtouc-unsafe: Renamed from
20555 modules/unistr/u16-mbtouc.
20556 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
20557 * lib/unistr.h: Update.
20558 * lib/linebreak.c: Update.
20559 * modules/linebreak: Update.
20560 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
20561 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
20562 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
20563 * modules/unistr/u16-mbtouc: Renamed from
20564 modules/unistr/u16-mbtouc-safe.
20565 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
20566 * lib/unistr.h: Update.
20567 * lib/unistr/u16-to-u8.c: Update.
20568 * modules/unistr/u16-to-u8: Update.
20569 * lib/unistr/u16-to-u32.c: Update.
20570 * modules/unistr/u16-to-u32: Update.
20572 2007-01-27 Bruno Haible <bruno@clisp.org>
20574 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
20575 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
20576 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
20577 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
20578 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
20579 * modules/unistr/u8-mbtouc-unsafe: Renamed from
20580 modules/unistr/u8-mbtouc.
20581 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
20582 * lib/unistr.h: Update.
20583 * lib/striconveh.c: Update.
20584 * modules/striconveh: Update.
20585 * lib/linebreak.c: Update.
20586 * modules/linebreak: Update.
20587 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
20588 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
20589 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
20590 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
20591 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
20592 * lib/unistr.h: Update.
20593 * lib/striconveh.c: Update.
20594 * modules/striconveh: Update.
20595 * lib/unistr/u8-to-u16.c: Update.
20596 * modules/unistr/u8-to-u16: Update.
20597 * lib/unistr/u8-to-u32.c: Update.
20598 * modules/unistr/u8-to-u32: Update.
20600 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20603 * lib/argz.c: Do not include strings.h nor memory.h, include
20604 string.h unconditionally. Patch by Simon Josefsson.
20606 2007-01-27 Bruno Haible <bruno@clisp.org>
20608 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
20609 from gl_HEADER_STRING_H_BODY.
20610 (gl_HEADER_STRING_H_BODY): Require it.
20611 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
20612 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
20613 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
20614 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
20615 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20616 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
20617 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20618 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
20619 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
20620 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
20621 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
20622 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
20623 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
20624 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20625 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
20627 2007-01-27 Bruno Haible <bruno@clisp.org>
20629 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
20630 check_PROGRAMS into noinst_PROGRAMS.
20631 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
20632 check_PROGRAMS in this case.
20633 (func_import): Set for_test to false.
20634 (func_create_testdir): Set for_test to true.
20636 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20637 Bruno Haible <bruno@clisp.org>
20639 * modules/strcasestr (Files): Remove lib/strcasestr.h.
20640 (Depends-on): Add string.
20641 (Includes): Use <string.h> instead of strcasestr.h.
20642 * modules/string (Makefile.am): Also substitute the value of
20643 REPLACE_STRCASESTR.
20644 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
20645 assume strcasestr is declared in <string.h> not <strings.h>. Also
20646 set REPLACE_STRCASESTR.
20647 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
20648 REPLACE_STRCASESTR.
20649 * lib/strcasestr.h: Remove file.
20650 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
20651 * lib/string_.h (strcasestr): New declaration.
20653 2007-01-27 Bruno Haible <bruno@clisp.org>
20655 * lib/string_.h: Use 'extern'.
20657 2007-01-27 Jim Meyering <jim@meyering.net>
20659 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
20660 of set-but-not-used local, "q".
20662 * lib/mempcpy.c: Include <config.h> before <string.h>.
20663 This fixes a compilation error on HP-UX, due to the system's
20664 "restrict"-using mempcpy prototype.
20666 2007-01-26 Bruno Haible <bruno@clisp.org>
20668 Small optimization.
20669 * lib/javacomp.c: Include c-strstr.h.
20670 (is_envjavac_gcj): Use c_strstr instead of strstr.
20671 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
20673 2007-01-26 Bruno Haible <bruno@clisp.org>
20675 * MODULES.html.sh (Unicode string functions): Add the new modules.
20677 * modules/uniconv/u32-strconv-to-locale: New file.
20678 * lib/uniconv/u32-strconv-to-locale.c: New file.
20680 * modules/uniconv/u16-strconv-to-locale: New file.
20681 * lib/uniconv/u16-strconv-to-locale.c: New file.
20683 * modules/uniconv/u8-strconv-to-locale: New file.
20684 * lib/uniconv/u8-strconv-to-locale.c: New file.
20686 * modules/uniconv/u32-strconv-from-locale: New file.
20687 * lib/uniconv/u32-strconv-from-locale.c: New file.
20689 * modules/uniconv/u16-strconv-from-locale: New file.
20690 * lib/uniconv/u16-strconv-from-locale.c: New file.
20692 * modules/uniconv/u8-strconv-from-locale: New file.
20693 * lib/uniconv/u8-strconv-from-locale.c: New file.
20695 * modules/uniconv/u32-strconv-to-enc: New file.
20696 * lib/uniconv/u32-strconv-to-enc.c: New file.
20697 * modules/uniconv/u32-strconv-to-enc-tests: New file.
20698 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
20700 * modules/uniconv/u16-strconv-to-enc: New file.
20701 * lib/uniconv/u16-strconv-to-enc.c: New file.
20702 * lib/uniconv/u-strconv-to-enc.h: New file.
20703 * modules/uniconv/u16-strconv-to-enc-tests: New file.
20704 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
20706 * modules/uniconv/u8-strconv-to-enc: New file.
20707 * lib/uniconv/u8-strconv-to-enc.c: New file.
20708 * modules/uniconv/u8-strconv-to-enc-tests: New file.
20709 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
20711 * modules/uniconv/u32-strconv-from-enc: New file.
20712 * lib/uniconv/u32-strconv-from-enc.c: New file.
20713 * modules/uniconv/u32-strconv-from-enc-tests: New file.
20714 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
20716 * modules/uniconv/u16-strconv-from-enc: New file.
20717 * lib/uniconv/u16-strconv-from-enc.c: New file.
20718 * modules/uniconv/u16-strconv-from-enc-tests: New file.
20719 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
20721 * modules/uniconv/u8-strconv-from-enc: New file.
20722 * lib/uniconv/u8-strconv-from-enc.c: New file.
20723 * lib/uniconv/u-strconv-from-enc.h: New file.
20724 * modules/uniconv/u8-strconv-from-enc-tests: New file.
20725 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
20727 * modules/uniconv/u32-conv-from-enc: New file.
20728 * lib/uniconv/u32-conv-from-enc.c: New file.
20729 * modules/uniconv/u32-conv-from-enc-tests: New file.
20730 * tests/uniconv/test-u32-conv-from-enc.c: New file.
20732 * modules/uniconv/u16-conv-from-enc: New file.
20733 * lib/uniconv/u16-conv-from-enc.c: New file.
20734 * lib/uniconv/u-conv-from-enc.h: New file.
20735 * modules/uniconv/u16-conv-from-enc-tests: New file.
20736 * tests/uniconv/test-u16-conv-from-enc.c: New file.
20738 * modules/uniconv/u8-conv-from-enc: New file.
20739 * lib/uniconv/u8-conv-from-enc.c: New file.
20740 * modules/uniconv/u8-conv-from-enc-tests: New file.
20741 * tests/uniconv/test-u8-conv-from-enc.c: New file.
20743 * modules/uniconv/base: New file.
20744 * lib/uniconv.h: New file.
20746 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
20748 * doc/gnulib-tool.texi (Initial import): Update to match current
20749 behavior with strdup module.
20750 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
20751 * lib/memmem.h: Remove; all uses removed. This is now done
20753 * lib/mempcpy.h: Likewise.
20754 * lib/memrchr.h: Likewise.
20755 * lib/stpcpy.h: Likewise.
20756 * lib/stpncpy.h: Likewise.
20757 * lib/strcase.h: Likewise.
20758 * lib/strchrnul.h: Likewise.
20759 * lib/strdup.h: Likewise.
20760 * lib/strndup.h: Likewise.
20761 * lib/strnlen.h: Likewise.
20762 * lib/strpbrk.h: Likewise.
20763 * lib/strsep.h: Likewise.
20764 * lib/strstr.h: Likewise.
20765 * lib/strtok_r.h: Likewise.
20766 * lib/string_.h: New file.
20767 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
20768 Rely on <string.h> instead.
20769 * lib/canon-host.c: Likewise.
20770 * lib/chdir-long.c: Likewise.
20771 * lib/concatpath.c: Likewise.
20772 * lib/exclude.c: Likewise.
20773 * lib/fchdir.c: Likewise.
20774 * lib/getaddrinfo.c: Likewise.
20775 * lib/getcwd.c: Likewise.
20776 * lib/getsubopt.c: Likewise.
20777 * lib/glob.c: Likewise.
20778 * lib/hard-locale.c: Likewise.
20779 * lib/iconvme.c: Likewise.
20780 * lib/javacomp.c: Likewise.
20781 * lib/mempcpy.c: Likewise.
20782 * lib/memrchr.c: Likewise.
20783 * lib/regex_internal.h: Likewise.
20784 * lib/stpncpy.c: Likewise.
20785 * lib/strcasecmp.c: Likewise.
20786 * lib/strchrnul.c: Likewise.
20787 * lib/strdup.c: Likewise.
20788 * lib/striconv.c: Likewise.
20789 * lib/striconveh.c: Likewise.
20790 * lib/striconveha.c: Likewise.
20791 * lib/strncasecmp.c: Likewise.
20792 * lib/strndup.c: Likewise.
20793 * lib/strnlen.c: Likewise.
20794 * lib/strsep.c: Likewise.
20795 * lib/strstr.c: Likewise.
20796 * lib/strtok_r.c: Likewise.
20797 * lib/userspec.c: Likewise.
20798 * lib/w32spawn.h: Likewise.
20799 * lib/xstrndup.c: Likewise.
20800 * lib/mountlist.c (strstr): Remove decl.
20801 * m4/string_h.m4: New file.
20802 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
20803 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
20804 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
20805 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
20806 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
20807 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
20808 Set REPLACE_STRCASECMP if necessary.
20809 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
20810 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
20811 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
20812 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
20813 HAVE_DECL_STRDUP if necessary.
20814 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
20815 since gl_FUNC_STRNDUP does that now.
20816 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
20817 Check for decl here...
20818 (gl_PREREQ_STRNLEN): ... not here.
20819 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
20820 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
20821 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
20822 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
20824 * modules/string: New file.
20825 * modules/memmem (Files): Remove special-purpose include file.
20826 (Depends-on): Add string.
20827 (Include): Include <string.h>, not the removed file.
20828 * modules/mempcpy: Likewise.
20829 * modules/memrchr: Likewise.
20830 * modules/stpcpy: Likewise.
20831 * modules/stpncpy: Likewise.
20832 * modules/strcase: Likewise.
20833 * modules/strchrnul: Likewise.
20834 * modules/strdup: Likewise.
20835 * modules/strndup: Likewise.
20836 * modules/strnlen: Likewise.
20837 * modules/strpbrk: Likewise.
20838 * modules/strsep: Likewise.
20839 * modules/strstr: Likewise.
20840 * modules/strtok_r: Likewise.
20841 * tests/test-dirname.c: Don't include "strdup.h", since
20842 <string.h> now suffices.
20843 * tests/test-memmem.c: Don't include "memmem.h", since
20844 <string.h> now suffices.
20846 2007-01-25 Bruno Haible <bruno@clisp.org>
20848 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
20851 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
20852 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
20853 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
20854 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
20856 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
20857 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
20858 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
20859 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
20860 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
20861 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
20863 2007-01-24 Bruno Haible <bruno@clisp.org>
20865 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
20866 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
20867 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
20868 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
20870 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
20871 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
20872 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
20873 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
20874 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
20875 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
20877 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
20879 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
20880 Reported by Ralf Wildenhues.
20882 2007-01-24 Bruno Haible <bruno@clisp.org>
20884 Drop AC_REQUIRE calls that are redundant with the module dependencies.
20885 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
20887 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
20888 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
20889 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
20891 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
20893 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
20894 Don't use 'exit'; just return from 'main'.
20895 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
20897 * lib/fnmatch_.h: Readjust white space and comments to match
20898 glibc, to avoid spurious diffs.
20900 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
20902 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
20903 2004-12-01 change by Jakub Jelinek, since this code won't compile
20904 if !LIBC. Problem reported by Bob Proulx.
20906 2007-01-23 Bruno Haible <bruno@clisp.org>
20908 * lib/striconveh.c: Include c-strcaseeq.h.
20909 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
20910 * modules/striconveh (Depends-on): Add c-strcaseeq.
20912 2007-01-23 Bruno Haible <bruno@clisp.org>
20914 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
20916 * modules/c-strcaseeq: New file.
20917 * lib/c-strcaseeq.h: New file.
20919 * modules/streq: New file.
20920 * lib/streq.h: New file.
20922 2007-01-23 Bruno Haible <bruno@clisp.org>
20924 * modules/striconveha-tests: New file.
20925 * tests/test-striconveha.c: New file.
20927 * lib/striconveha.h: Include <stdbool.h>.
20928 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
20929 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
20930 (mem_iconveha_notranslit): Renamed from mem_iconveha.
20931 (mem_iconveha): New function.
20932 (str_iconveha_notranslit): Renamed from str_iconveha.
20933 (str_iconveha): New function.
20934 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
20937 2007-01-23 Bruno Haible <bruno@clisp.org>
20939 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
20940 encodings without forgiving before trying any encoding with handler.
20941 (str_iconveha): Try all encodings without forgiving before trying any
20942 encoding with handler.
20944 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
20946 Import the following changes from libc.
20948 2005-10-14 Ulrich Drepper <drepper@redhat.com>
20950 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
20952 2004-12-01 Jakub Jelinek <jakub@redhat.com>
20954 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
20955 normal_bracket label.
20957 2004-09-01 Jakub Jelinek <jakub@redhat.com>
20960 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
20961 to normal_bracket after fetching the next character.
20963 2007-01-22 Bruno Haible <bruno@clisp.org>
20965 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
20967 * lib/striconveh.c (iconv_carefully_1): New function.
20968 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
20970 (str_cd_iconveh): Update.
20971 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
20972 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
20973 * tests/test-striconveh.c (MAGIC): New macro.
20974 (new_offsets): New function.
20975 (main): Test call with and without offsets.
20977 2007-01-22 Bruno Haible <bruno@clisp.org>
20979 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
20980 * modules/sys_select (Makefile.am): Likewise.
20981 * modules/sys_socket (Makefile.am): Likewise.
20982 * modules/sys_time (Makefile.am): Likewise.
20984 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
20986 * modules/gettimeofday (License): Change from GPL to LGPL, since
20987 gettimeofday is a library function.
20989 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20991 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
20993 2007-01-21 Bruno Haible <bruno@clisp.org>
20995 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
20997 2007-01-21 Bruno Haible <bruno@clisp.org>
20999 * modules/striconveha: New file.
21000 * lib/striconveha.h: New file.
21001 * lib/striconveha.c: New file.
21002 * MODULES.html.sh (Internationalization functions): Add striconveha.
21003 * lib/striconv.c (str_iconv): Optimize the case of an empty input
21005 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
21007 2007-01-21 Bruno Haible <bruno@clisp.org>
21009 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
21010 * lib/striconveh.c (str_iconveh): Likewise.
21012 2007-01-21 Bruno Haible <bruno@clisp.org>
21014 * lib/striconveh.h (mem_iconveh): New declaration.
21015 * lib/striconveh.c (mem_iconveh): New function.
21016 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
21018 2007-01-21 Bruno Haible <bruno@clisp.org>
21020 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
21022 * lib/striconveh.h (mem_cd_iconveh): Change specification.
21023 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
21024 original result buffer.
21025 (str_cd_iconveh): Update.
21026 * tests/test-striconveh.c (main): Update.
21028 * lib/striconv.h (mem_cd_iconv): Change specification.
21029 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
21031 (str_cd_iconv): Update.
21032 * tests/test-striconv.c (main): Update.
21034 2007-01-21 Bruno Haible <bruno@clisp.org>
21036 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
21038 2007-01-20 Jim Meyering <jim@meyering.net>
21040 * lib/userspec.c (parse_with_separator): If a user or group string
21041 starts with "+", skip the corresponding name-to-ID look-up, since
21042 such a look-up must fail: user and group names may not include "+".
21044 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
21046 * lib/poll.c: Include sys/time.h and time.h unconditionally,
21047 since we now assume the sys_time module.
21048 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
21049 check for sys/time.h; no longer needed.
21050 * modules/poll (Depends-on): Depend on sys_time.
21052 2007-01-18 Bruno Haible <bruno@clisp.org>
21054 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
21055 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
21057 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
21060 * tests/test-gettimeofday.c: Include <time.h>.
21061 (dummy): Remove variable.
21063 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
21064 gl_HEADER_SYS_TIME_H.
21065 (gl_HEADER_SYS_TIME_H): New macro.
21067 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
21068 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
21069 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
21070 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
21071 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
21072 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
21073 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
21074 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
21075 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
21076 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
21077 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
21079 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
21080 last change; it caused a compilation error when cross-compiling to
21083 2007-01-18 Jim Meyering <jim@meyering.net>
21085 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
21086 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
21087 than the race-prone "test -d sys || mkdir sys".
21088 (configure.ac): Use AC_PROG_MKDIR_P.
21089 * modules/sys_select: Likewise.
21090 * modules/sys_socket: Likewise.
21091 * modules/sys_time: Likewise.
21093 2007-01-18 Eric Blake <ebb9@byu.net>
21095 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
21096 replace gettimeofday.
21097 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
21098 name, to avoid infinite recursion.
21100 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
21102 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
21104 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
21105 assume timespec.h defines struct timeval.
21106 * lib/settime.c: Likewise.
21107 * lib/utimens.c: Likewise.
21108 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
21109 since we now assume the gettimeofday module.
21110 * lib/tempname.c (__gen_tempname): Likewise.
21111 * lib/gettimeofday.h: Remove.
21112 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
21113 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
21114 Include <time.h>, for 'time()'.
21115 (localtime_buffer_addr): Also use this workaround if
21116 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
21117 to simplify the uses. All uses changed.
21118 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
21119 that #undef is inside {}, and 'const' follows type name consistently.
21120 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
21121 (gettimeofday): Do not use the maximum possible value for
21122 tv->tv_usec, since that might break usages other than ls.c.
21123 Instead, we'll leave ls.c alone. This undoes today's patch
21124 by Bruno. Add a compile-time warning for 1s-clock resolution;
21125 we've never observed the problem but might as well keep the
21127 * lib/nanosleep.c: Include timespec.h first, for interface check.
21128 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
21129 now assume the sys_time module.
21130 * lib/tempname.c: Likewise.
21131 * lib/timespec.h: Likewise.
21132 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
21134 * lib/strftime.c: Likewise.
21135 * lib/timespec.h: Likewise.
21136 * lib/posixtm.c: Include posixtm.h first, for interface check.
21137 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
21138 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
21139 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
21140 * lib/sys_time_.h: New file.
21141 * lib/timespec.h (struct timespec): Use long int, not long.
21142 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
21143 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
21144 Remove obsolescent call to AC_HEADER_TIME.
21145 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
21146 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21147 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
21148 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
21150 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
21151 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
21152 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
21153 into the sys_time module. Check for gettimeofday just once.
21154 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
21155 for gettimeofday signature to just check the signature. Merely
21156 compile it, since linking doesn't test signature. Improve test for
21157 whether gettimeofday.o is actually needed.
21158 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
21159 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
21160 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
21161 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
21162 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
21163 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
21164 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
21165 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
21166 than worrying about sys/time.h.
21167 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
21168 Don't bother worrying about TIME_WITH_SYS_TIME.
21169 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
21170 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
21171 * m4/sys_time_h.m4: New file.
21172 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
21173 Don't include sys/time.h. Return from main rather than exiting.
21174 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
21176 * modules/gethrxtime (Depends-on): Add sys_time.
21177 * modules/gettime (Depends-on): Likewise.
21178 * modules/gettimeofday (Depends-on): Likewise.
21179 * modules/nanosleep (Depends-on): Likewise.
21180 * modules/settime (Depends-on): Likewise.
21181 * modules/tempname (Depends-on): Likewise.
21182 * modules/utimens (Depends-on): Likewise.
21183 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
21184 (Include:) Change back to <sys/time.h>.
21185 (Maintainer:) Add self.
21186 * modules/sys_time: New file.
21187 * modules/tempname (Depends-on): Add gettimeofday.
21188 * tests/test-gettimeofday.c: Include <sys/time.h>
21189 rather than gettimeofday.h.
21191 2007-01-17 Bruno Haible <bruno@clisp.org>
21193 * gnulib-tool (func_get_license): Revert last patch. Instead, let
21194 the license default to GPL.
21195 (func_create_testdir): Don't complain if a module is LGPL and its
21196 tests module depends on GPLed modules.
21198 2007-01-17 Bruno Haible <bruno@clisp.org>
21200 * lib/gettimeofday.c (gettimeofday): Add code for the case
21201 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
21202 maximum possible value for tv->tv_usec, rather than the minimum one.
21204 2005-10-08 Martin Lambers <marlam@marlam.de>
21205 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
21206 2007-01-16 Bruno Haible <bruno@clisp.org>
21208 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
21209 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
21210 gl_FUNC_GETTIMEOFDAY.
21211 (Include): Add gettimeofday.h.
21212 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
21213 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
21214 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
21215 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
21216 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
21217 * lib/gettimeofday.h: New file.
21218 * lib/gettimeofday.c: Include <sys/timeb.h>.
21219 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
21220 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
21221 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
21222 fall back on time().
21224 * tests/test-gettimeofday.c: New file.
21225 * modules/gettimeofday-tests: New file.
21227 2007-01-16 Eric Blake <ebb9@byu.net>
21229 * modules/fnmatch (Depends-on): Depend on wchar.
21230 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
21231 * m4/fnmatch.m4: Likewise.
21232 * modules/mbchar (Makefile.am): Assume <wchar.h>.
21233 * m4/mbchar.m4: Likewise.
21234 * modules/mbswidth (Depends-on): Depend on wchar.
21235 * lib/mbswidth.c: Assume <wchar.h>.
21236 * m4/mbswidth.m4: Likewise.
21237 * modules/quotearg (Depends-on): Depend on wchar.
21238 * lib/quotearg.c: Assume <wchar.h>.
21239 * m4/quotearg.m4: Likewise.
21240 * modules/regex (Depends-on): Depend on wchar.
21241 * lib/regex_internal.h: Assume <wchar.h>.
21242 * m4/regex.m4: Likewise.
21243 * modules/stdint (Depends-on): Depend on wchar.
21244 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
21245 * m4/stdint.m4: Likewise.
21246 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
21247 * modules/strftime (Depends-on): Depend on wchar.
21248 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
21249 * modules/strtol (Depends-on): Depend on wchar.
21250 * lib/strtol.c: Assume <wchar.h>.
21251 * modules/wcwidth (Depends-on): Depend on wchar.
21252 * lib/wcwidth.h: Assume <wchar.h>.
21253 * m4/wcwidth.m4: Likewise.
21255 2007-01-16 Bruno Haible <bruno@clisp.org>
21257 * modules/csharpexec-script: New, created from...
21258 * modules/csharpexec: ... this.
21260 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
21262 * modules/javaexec-script: New, created from...
21263 * modules/javaexec: ... this.
21265 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21267 * modules/poll (Dependencies): Add sys_select.
21269 2007-01-15 Jim Meyering <jim@meyering.net>
21271 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
21272 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
21273 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
21274 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
21276 2007-01-15 Bruno Haible <bruno@clisp.org>
21278 * modules/striconveh: New file.
21279 * lib/striconveh.h: New file.
21280 * lib/striconveh.c: New file.
21281 * MODULES.html.sh (Internationalization functions): Add striconveh.
21283 * modules/striconveh-tests: New file.
21284 * tests/test-striconveh.c: New file.
21286 2007-01-15 Bruno Haible <bruno@clisp.org>
21288 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
21289 not from GNU libiconv or GNU libc.
21291 2007-01-15 Bruno Haible <bruno@clisp.org>
21293 * doc/gnulib-intro.texi (Copyright): Explain the different license
21294 terms for module descriptions, autoconf macros, tests, documentation.
21296 2007-01-14 Bruno Haible <bruno@clisp.org>
21298 * modules/striconv-tests: New file.
21299 * tests/test-striconv.c: New file.
21301 2007-01-14 Bruno Haible <bruno@clisp.org>
21303 * modules/iconv-tests: New file.
21304 * tests/test-iconv.c: New file.
21306 2007-01-14 Bruno Haible <bruno@clisp.org>
21308 * gnulib-tool (func_get_license): For test modules, use the license of
21311 2007-01-14 Bruno Haible <bruno@clisp.org>
21313 * modules/iconv (Include): Clarify that <iconv.h> can only be included
21314 if iconv is found to exist.
21316 2007-01-14 Bruno Haible <bruno@clisp.org>
21318 * modules/c-ctype-tests: New file.
21319 * tests/test-c-ctype.c: New file.
21321 2007-01-14 Bruno Haible <bruno@clisp.org>
21323 * modules/binary-io-tests: New file.
21324 * tests/test-binary-io.sh: New file.
21325 * tests/test-binary-io.c: New file.
21327 2007-01-14 Bruno Haible <bruno@clisp.org>
21329 * modules/array-oset-tests: New file.
21330 * tests/test-array_oset.c: New file.
21332 2007-01-14 Bruno Haible <bruno@clisp.org>
21334 * modules/array-list-tests: New file.
21335 * tests/test-array_list.c: New file.
21337 2007-01-14 Bruno Haible <bruno@clisp.org>
21339 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
21341 Reported by Simon Josefsson in
21342 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
21344 2007-01-14 Bruno Haible <bruno@clisp.org>
21346 * modules/allocsa-tests: New file.
21347 * tests/test-allocsa.c: New file.
21349 2007-01-14 Bruno Haible <bruno@clisp.org>
21351 * modules/fchdir (Depends-on): Add absolute-header.
21352 * modules/unistd (Depends-on): Likewise.
21354 2006-12-30 Bruno Haible <bruno@clisp.org>
21356 * modules/fchdir: New file.
21357 * modules/unistd (Files): Add lib/unistd_.h.
21358 (Makefile.am): Generate unistd.h from unistd_.h.
21359 * lib/fchdir.c: New file.
21360 * lib/dirent_.h: New file.
21361 * lib/unistd_.h: New file.
21362 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
21363 * m4/fchdir.m4: New file.
21364 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
21365 (gl_HEADER_UNISTD): Invoke it.
21366 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
21368 * lib/backupfile.c (opendir, closedir): Undefine.
21369 * lib/chown.c (open, close): Undefine.
21370 * lib/clean-temp.c (open, close): Undefine.
21371 * lib/copy-file.c (open, close): Undefine.
21372 * lib/execute.c (open, close): Undefine.
21373 * lib/fsusage.c (open, close): Undefine.
21374 * lib/gc-gnulib.c (open, close): Undefine.
21375 * lib/getcwd.c (opendir, closedir): Undefine.
21376 * lib/glob.c (opendir, closedir): Undefine.
21377 * lib/javacomp.c (open, close): Undefine.
21378 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
21379 * lib/openat-proc.c (open, close): Undefine.
21380 * lib/pagealign_alloc.c (open, close): Undefine.
21381 * lib/pipe.c (open, close): Undefine.
21382 * lib/progreloc.c (open, close): Undefine.
21383 * lib/savedir.c (opendir, closedir): Undefine.
21384 * lib/utime.c (open, close): Undefine.
21385 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
21387 2007-01-10 Bruno Haible <bruno@clisp.org>
21389 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
21391 2007-01-12 Eric Blake <ebb9@byu.net>
21393 Provide a robust <wchar.h>. Further simplifications are now
21394 possible in other modules, but not included here.
21395 * modules/wchar: New module.
21396 * m4/wchar.m4: New file.
21397 * lib/wchar_.h: Likewise.
21398 * modules/mbchar (Depends-on): Depend on wchar, as the first use
21400 * MODULES.html.sh (Extended multibyte and wide character utilities):
21403 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
21405 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
21406 to a reasonable default for memory allocation.
21407 (xreadlink): Don't allocate a huge buffer, to work around a buggy
21408 file system that reports garbage st_size values for symlinks.
21409 Problem reported by Liyang Hu.
21411 2007-01-11 Simon Josefsson <simon@josefsson.org>
21413 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
21414 Emacs .#* auto-save files).
21416 2007-01-11 Bruno Haible <bruno@clisp.org>
21418 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
21421 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
21423 Use @...@ consistently in lib/wctype_.h.
21424 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
21425 on it being set to 1 or 0.
21426 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
21427 go back to AC_SUBSTing it.
21428 * modules/wctype (Makefile.am): Undo previous change.
21430 2007-01-10 Eric Blake <ebb9@byu.net>
21432 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
21433 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
21434 * modules/wctype (Makefile.am): Likewise.
21435 Reported by Chris McGuire.
21437 2007-01-10 Jim Meyering <jim@meyering.net>
21439 fts.c: a small readability/maintainability improvement
21440 * lib/fts.c (fts_read): Make this code slightly more readable and
21441 maintainable by hoisting the "sp->fts_cur = p" assignments to
21442 immediately follow the statements that set P. Derived from
21443 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
21445 2007-01-10 Eric Blake <ebb9@byu.net>
21447 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
21448 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
21449 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21450 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21451 Reported by Chris McGuire.
21453 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21455 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
21458 2007-01-09 Bruno Haible <bruno@clisp.org>
21460 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
21461 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
21463 (func_module): Use them.
21465 2007-01-09 Bruno Haible <bruno@clisp.org>
21467 * modules/unistr/base: New file.
21468 * lib/unistr.h: New file.
21470 * modules/unistr/u8-to-u16: New file.
21471 * lib/unistr/u8-to-u16.c: New file.
21473 * modules/unistr/u8-to-u32: New file.
21474 * lib/unistr/u8-to-u32.c: New file.
21476 * modules/unistr/u16-to-u8: New file.
21477 * lib/unistr/u16-to-u8.c: New file.
21479 * modules/unistr/u16-to-u32: New file.
21480 * lib/unistr/u16-to-u32.c: New file.
21482 * modules/unistr/u32-to-u8: New file.
21483 * lib/unistr/u32-to-u8.c: New file.
21485 * modules/unistr/u32-to-u16: New file.
21486 * lib/unistr/u32-to-u16.c: New file.
21488 * modules/unistr/u8-check: New file.
21489 * modules/unistr/u16-check: New file.
21490 * modules/unistr/u32-check: New file.
21491 * lib/unistr/u8-check.c: New file.
21492 * lib/unistr/u16-check.c: New file.
21493 * lib/unistr/u32-check.c: New file.
21495 * modules/unistr/u8-chr: New file.
21496 * modules/unistr/u16-chr: New file.
21497 * modules/unistr/u32-chr: New file.
21498 * lib/unistr/u8-chr.c: New file.
21499 * lib/unistr/u16-chr.c: New file.
21500 * lib/unistr/u32-chr.c: New file.
21502 * modules/unistr/u8-cmp: New file.
21503 * modules/unistr/u16-cmp: New file.
21504 * modules/unistr/u32-cmp: New file.
21505 * lib/unistr/u8-cmp.c: New file.
21506 * lib/unistr/u16-cmp.c: New file.
21507 * lib/unistr/u32-cmp.c: New file.
21509 * modules/unistr/u8-cpy: New file.
21510 * modules/unistr/u16-cpy: New file.
21511 * modules/unistr/u32-cpy: New file.
21512 * lib/unistr/u8-cpy.c: New file.
21513 * lib/unistr/u16-cpy.c: New file.
21514 * lib/unistr/u32-cpy.c: New file.
21515 * lib/unistr/u-cpy.h: New file.
21517 * modules/unistr/u8-cpy-alloc: New file.
21518 * modules/unistr/u16-cpy-alloc: New file.
21519 * modules/unistr/u32-cpy-alloc: New file.
21520 * lib/unistr/u8-cpy-alloc.c: New file.
21521 * lib/unistr/u16-cpy-alloc.c: New file.
21522 * lib/unistr/u32-cpy-alloc.c: New file.
21523 * lib/unistr/u-cpy-alloc.h: New file.
21525 * modules/unistr/u8-endswith: New file.
21526 * modules/unistr/u16-endswith: New file.
21527 * modules/unistr/u32-endswith: New file.
21528 * lib/unistr/u8-endswith.c: New file.
21529 * lib/unistr/u16-endswith.c: New file.
21530 * lib/unistr/u32-endswith.c: New file.
21531 * lib/unistr/u-endswith.h: New file.
21533 * modules/unistr/u8-mblen: New file.
21534 * modules/unistr/u16-mblen: New file.
21535 * modules/unistr/u32-mblen: New file.
21536 * lib/unistr/u8-mblen.c: New file.
21537 * lib/unistr/u16-mblen.c: New file.
21538 * lib/unistr/u32-mblen.c: New file.
21540 * modules/unistr/u8-mbtouc: New file.
21541 * modules/unistr/u16-mbtouc: New file.
21542 * modules/unistr/u32-mbtouc: New file.
21543 * lib/unistr/u8-mbtouc.c: New file.
21544 * lib/unistr/u16-mbtouc.c: New file.
21545 * lib/unistr/u32-mbtouc.c: New file.
21547 * modules/unistr/u8-mbtouc-safe: New file.
21548 * modules/unistr/u16-mbtouc-safe: New file.
21549 * modules/unistr/u32-mbtouc-safe: New file.
21550 * lib/unistr/u8-mbtouc-safe.c: New file.
21551 * lib/unistr/u16-mbtouc-safe.c: New file.
21552 * lib/unistr/u32-mbtouc-safe.c: New file.
21554 * modules/unistr/u8-move: New file.
21555 * modules/unistr/u16-move: New file.
21556 * modules/unistr/u32-move: New file.
21557 * lib/unistr/u8-move.c: New file.
21558 * lib/unistr/u16-move.c: New file.
21559 * lib/unistr/u32-move.c: New file.
21560 * lib/unistr/u-move.h: New file.
21562 * modules/unistr/u8-next: New file.
21563 * modules/unistr/u16-next: New file.
21564 * modules/unistr/u32-next: New file.
21565 * lib/unistr/u8-next.c: New file.
21566 * lib/unistr/u16-next.c: New file.
21567 * lib/unistr/u32-next.c: New file.
21569 * modules/unistr/u8-prev: New file.
21570 * modules/unistr/u16-prev: New file.
21571 * modules/unistr/u32-prev: New file.
21572 * lib/unistr/u8-prev.c: New file.
21573 * lib/unistr/u16-prev.c: New file.
21574 * lib/unistr/u32-prev.c: New file.
21576 * modules/unistr/u8-set: New file.
21577 * modules/unistr/u16-set: New file.
21578 * modules/unistr/u32-set: New file.
21579 * lib/unistr/u8-set.c: New file.
21580 * lib/unistr/u16-set.c: New file.
21581 * lib/unistr/u32-set.c: New file.
21582 * lib/unistr/u-set.h: New file.
21584 * modules/unistr/u8-startswith: New file.
21585 * modules/unistr/u16-startswith: New file.
21586 * modules/unistr/u32-startswith: New file.
21587 * lib/unistr/u8-startswith.c: New file.
21588 * lib/unistr/u16-startswith.c: New file.
21589 * lib/unistr/u32-startswith.c: New file.
21590 * lib/unistr/u-startswith.h: New file.
21592 * modules/unistr/u8-stpcpy: New file.
21593 * modules/unistr/u16-stpcpy: New file.
21594 * modules/unistr/u32-stpcpy: New file.
21595 * lib/unistr/u8-stpcpy.c: New file.
21596 * lib/unistr/u16-stpcpy.c: New file.
21597 * lib/unistr/u32-stpcpy.c: New file.
21598 * lib/unistr/u-stpcpy.h: New file.
21600 * modules/unistr/u8-stpncpy: New file.
21601 * modules/unistr/u16-stpncpy: New file.
21602 * modules/unistr/u32-stpncpy: New file.
21603 * lib/unistr/u8-stpncpy.c: New file.
21604 * lib/unistr/u16-stpncpy.c: New file.
21605 * lib/unistr/u32-stpncpy.c: New file.
21606 * lib/unistr/u-stpncpy.h: New file.
21608 * modules/unistr/u8-strcat: New file.
21609 * modules/unistr/u16-strcat: New file.
21610 * modules/unistr/u32-strcat: New file.
21611 * lib/unistr/u8-strcat.c: New file.
21612 * lib/unistr/u16-strcat.c: New file.
21613 * lib/unistr/u32-strcat.c: New file.
21614 * lib/unistr/u-strcat.h: New file.
21616 * modules/unistr/u8-strchr: New file.
21617 * modules/unistr/u16-strchr: New file.
21618 * modules/unistr/u32-strchr: New file.
21619 * lib/unistr/u8-strchr.c: New file.
21620 * lib/unistr/u16-strchr.c: New file.
21621 * lib/unistr/u32-strchr.c: New file.
21623 * modules/unistr/u8-strcmp: New file.
21624 * modules/unistr/u16-strcmp: New file.
21625 * modules/unistr/u32-strcmp: New file.
21626 * lib/unistr/u8-strcmp.c: New file.
21627 * lib/unistr/u16-strcmp.c: New file.
21628 * lib/unistr/u32-strcmp.c: New file.
21630 * modules/unistr/u8-strcpy: New file.
21631 * modules/unistr/u16-strcpy: New file.
21632 * modules/unistr/u32-strcpy: New file.
21633 * lib/unistr/u8-strcpy.c: New file.
21634 * lib/unistr/u16-strcpy.c: New file.
21635 * lib/unistr/u32-strcpy.c: New file.
21636 * lib/unistr/u-strcpy.h: New file.
21638 * modules/unistr/u8-strcspn: New file.
21639 * modules/unistr/u16-strcspn: New file.
21640 * modules/unistr/u32-strcspn: New file.
21641 * lib/unistr/u8-strcspn.c: New file.
21642 * lib/unistr/u16-strcspn.c: New file.
21643 * lib/unistr/u32-strcspn.c: New file.
21644 * lib/unistr/u-strcspn.h: New file.
21646 * modules/unistr/u8-strdup: New file.
21647 * modules/unistr/u16-strdup: New file.
21648 * modules/unistr/u32-strdup: New file.
21649 * lib/unistr/u8-strdup.c: New file.
21650 * lib/unistr/u16-strdup.c: New file.
21651 * lib/unistr/u32-strdup.c: New file.
21652 * lib/unistr/u-strdup.h: New file.
21654 * modules/unistr/u8-strlen: New file.
21655 * modules/unistr/u16-strlen: New file.
21656 * modules/unistr/u32-strlen: New file.
21657 * lib/unistr/u8-strlen.c: New file.
21658 * lib/unistr/u16-strlen.c: New file.
21659 * lib/unistr/u32-strlen.c: New file.
21660 * lib/unistr/u-strlen.h: New file.
21662 * modules/unistr/u8-strmblen: New file.
21663 * modules/unistr/u16-strmblen: New file.
21664 * modules/unistr/u32-strmblen: New file.
21665 * lib/unistr/u8-strmblen.c: New file.
21666 * lib/unistr/u16-strmblen.c: New file.
21667 * lib/unistr/u32-strmblen.c: New file.
21669 * modules/unistr/u8-strmbtouc: New file.
21670 * modules/unistr/u16-strmbtouc: New file.
21671 * modules/unistr/u32-strmbtouc: New file.
21672 * lib/unistr/u8-strmbtouc.c: New file.
21673 * lib/unistr/u16-strmbtouc.c: New file.
21674 * lib/unistr/u32-strmbtouc.c: New file.
21676 * modules/unistr/u8-strncat: New file.
21677 * modules/unistr/u16-strncat: New file.
21678 * modules/unistr/u32-strncat: New file.
21679 * lib/unistr/u8-strncat.c: New file.
21680 * lib/unistr/u16-strncat.c: New file.
21681 * lib/unistr/u32-strncat.c: New file.
21682 * lib/unistr/u-strncat.h: New file.
21684 * modules/unistr/u8-strncmp: New file.
21685 * modules/unistr/u16-strncmp: New file.
21686 * modules/unistr/u32-strncmp: New file.
21687 * lib/unistr/u8-strncmp.c: New file.
21688 * lib/unistr/u16-strncmp.c: New file.
21689 * lib/unistr/u32-strncmp.c: New file.
21691 * modules/unistr/u8-strncpy: New file.
21692 * modules/unistr/u16-strncpy: New file.
21693 * modules/unistr/u32-strncpy: New file.
21694 * lib/unistr/u8-strncpy.c: New file.
21695 * lib/unistr/u16-strncpy.c: New file.
21696 * lib/unistr/u32-strncpy.c: New file.
21697 * lib/unistr/u-strncpy.h: New file.
21699 * modules/unistr/u8-strnlen: New file.
21700 * modules/unistr/u16-strnlen: New file.
21701 * modules/unistr/u32-strnlen: New file.
21702 * lib/unistr/u8-strnlen.c: New file.
21703 * lib/unistr/u16-strnlen.c: New file.
21704 * lib/unistr/u32-strnlen.c: New file.
21705 * lib/unistr/u-strnlen.h: New file.
21707 * modules/unistr/u8-strpbrk: New file.
21708 * modules/unistr/u16-strpbrk: New file.
21709 * modules/unistr/u32-strpbrk: New file.
21710 * lib/unistr/u8-strpbrk.c: New file.
21711 * lib/unistr/u16-strpbrk.c: New file.
21712 * lib/unistr/u32-strpbrk.c: New file.
21713 * lib/unistr/u-strpbrk.h: New file.
21715 * modules/unistr/u8-strrchr: New file.
21716 * modules/unistr/u16-strrchr: New file.
21717 * modules/unistr/u32-strrchr: New file.
21718 * lib/unistr/u8-strrchr.c: New file.
21719 * lib/unistr/u16-strrchr.c: New file.
21720 * lib/unistr/u32-strrchr.c: New file.
21722 * modules/unistr/u8-strspn: New file.
21723 * modules/unistr/u16-strspn: New file.
21724 * modules/unistr/u32-strspn: New file.
21725 * lib/unistr/u8-strspn.c: New file.
21726 * lib/unistr/u16-strspn.c: New file.
21727 * lib/unistr/u32-strspn.c: New file.
21728 * lib/unistr/u-strspn.h: New file.
21730 * modules/unistr/u8-strstr: New file.
21731 * modules/unistr/u16-strstr: New file.
21732 * modules/unistr/u32-strstr: New file.
21733 * lib/unistr/u8-strstr.c: New file.
21734 * lib/unistr/u16-strstr.c: New file.
21735 * lib/unistr/u32-strstr.c: New file.
21736 * lib/unistr/u-strstr.h: New file.
21738 * modules/unistr/u8-strtok: New file.
21739 * modules/unistr/u16-strtok: New file.
21740 * modules/unistr/u32-strtok: New file.
21741 * lib/unistr/u8-strtok.c: New file.
21742 * lib/unistr/u16-strtok.c: New file.
21743 * lib/unistr/u32-strtok.c: New file.
21744 * lib/unistr/u-strtok.h: New file.
21746 * modules/unistr/u8-uctomb: New file.
21747 * modules/unistr/u16-uctomb: New file.
21748 * modules/unistr/u32-uctomb: New file.
21749 * lib/unistr/u8-uctomb.c: New file.
21750 * lib/unistr/u16-uctomb.c: New file.
21751 * lib/unistr/u32-uctomb.c: New file.
21753 * MODULES.html.sh (Unicode string functions): Add the new modules.
21755 2007-01-08 Bruno Haible <bruno@clisp.org>
21757 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
21758 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
21761 2007-01-08 Karl Berry <karl@gnu.org>
21763 * doc/error.texi: mention that main() fns must set program_name
21764 when progname is used.
21766 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
21768 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
21769 WCTYPE_H is empty, for the benefit of builds from non-distclean
21770 directories. Problem reported by Eric Blake in
21771 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
21773 2007-01-08 Bruno Haible <bruno@clisp.org>
21775 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
21776 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
21777 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
21778 PROVIDE_CANONICALIZE_FILENAME_MODE.
21779 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
21781 2007-01-08 Bruno Haible <bruno@clisp.org>
21783 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
21784 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
21785 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
21786 * lib/fts.c: Likewise.
21787 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
21789 2006-12-25 Bruno Haible <bruno@clisp.org>
21791 * modules/utf8-ucs4-safe: New file.
21792 * lib/utf8-ucs4-safe.h: New file.
21793 * lib/unistr/utf8-ucs4-safe.c: New file.
21795 * modules/utf16-ucs4-safe: New file.
21796 * lib/utf16-ucs4-safe.h: New file.
21797 * lib/unistr/utf16-ucs4-safe.c: New file.
21799 * MODULES.html.sh (Unicode string functions): Add the new modules.
21801 2007-01-08 Bruno Haible <bruno@clisp.org>
21803 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
21804 (Depends-on): Add unitypes.
21805 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
21806 (u8_mbtouc_aux): Move out to separate file.
21807 (u8_mbtouc): Use ucs4_t, uint8_t types.
21808 * lib/unistr/utf8-ucs4.c: New file.
21810 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
21811 (Depends-on): Add unitypes.
21812 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
21813 (u16_mbtouc_aux): Move out to separate file.
21814 (u16_mbtouc): Use ucs4_t, uint16_t types.
21815 * lib/unistr/utf16-ucs4.c: New file.
21817 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
21818 (Depends-on): Add unitypes.
21819 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
21820 (u8_uctomb_aux): Move out to separate file.
21821 (u8_uctomb): Use ucs4_t, uint8_t types.
21822 * lib/unistr/ucs4-utf8.c: New file.
21824 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
21825 (Depends-on): Add unitypes.
21826 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
21827 (u16_uctomb_aux): Move out to separate file.
21828 (u16_uctomb): Use ucs4_t, uint16_t types.
21829 * lib/unistr/ucs4-utf16.c: New file.
21831 2006-12-25 Bruno Haible <bruno@clisp.org>
21833 * modules/unitypes: New file.
21834 * lib/unitypes.h: New file.
21835 * MODULES.html.sh (func_all_modules): New section "Unicode string
21836 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
21837 this section. Add unitypes.
21839 2007-01-08 Bruno Haible <bruno@clisp.org>
21841 Avoid variable names that conflict with those from libtool.
21842 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
21843 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
21844 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
21845 library_names_spec to acl_library_names_spec, hardcode_* to
21847 Reported by Ralf Wildenhues.
21849 2007-01-08 Bruno Haible <bruno@clisp.org>
21851 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
21853 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
21855 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
21856 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
21858 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
21860 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
21861 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
21862 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
21863 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
21865 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
21867 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
21868 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
21869 GC_USE_<algorithm>.
21870 * lib/gc-libgcrypt.c: Likewise.
21871 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
21872 * modules/gc-arctwo (configure.ac): Likewise.
21873 * modules/gc-des (configure.ac): Likewise.
21874 * modules/gc-hmac-md5 (configure.ac): Likewise.
21875 * modules/gc-hmac-sha1 (configure.ac): Likewise.
21876 * modules/gc-md2 (configure.ac): Likewise.
21877 * modules/gc-md4 (configure.ac): Likewise.
21878 * modules/gc-md5 (configure.ac): Likewise.
21879 * modules/gc-random (configure.ac): Likewise.
21880 * modules/gc-rijndael (configure.ac): Likewise.
21881 * modules/gc-sha1 (configure.ac): Likewise.
21883 2007-01-08 Bruno Haible <bruno@clisp.org>
21885 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
21887 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
21889 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
21891 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
21892 * modules/fcntl-safer (configure.ac): Likewise.
21893 * modules/fopen-safer (configure.ac): Likewise.
21894 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
21895 GNULIB_FWRITEERROR macro definition.
21897 2007-01-08 Bruno Haible <bruno@clisp.org>
21899 * m4/gnulib-common.m4: New file.
21900 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
21901 (func_get_filelist): Add m4/gnulib-common.m4.
21903 2007-01-08 Bruno Haible <bruno@clisp.org>
21905 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
21908 2007-01-08 Jim Meyering <jim@meyering.net>
21910 Use a more robust test for a "can't happen" condition.
21911 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
21912 narrowed the st_size value. Presuming the "can't happen" condition
21913 is true, that narrowing could conceivably convert an invalid st_size
21914 value into a valid one. Instead, use a change based on Matthew
21915 Woehlke's original patch.
21917 Slight readability improvement: use an assert-like macro
21918 in place of literal "abort ()" uses.
21919 * lib/fts.c (fts_assert): Define.
21920 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
21921 Use this macro instead of a bare 'abort'.
21923 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
21925 Don't worry about using IRIX 5.3's wctype.h broken definitions;
21926 simply work around them.
21927 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
21928 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
21929 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
21931 Don't bother to define as macros, since the standard doesn't require it.
21932 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
21933 longer worry about IRIX 5.3.
21934 (HAVE_WCTYPE_CTMP_BUG): Remove.
21936 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
21938 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
21939 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
21940 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
21941 Problems reported by Georg Schwarz for IRIX 5.3.
21943 * gnulib-tool (autoconf_minversion): Take the maximum version number
21944 found, not the minimum. Problem reported by James Youngman.
21946 2007-01-03 Karl Berry <karl@gnu.org>
21948 * doc/error.texi: new file, explaining interaction with progname.
21949 * doc/gnulib.texi: include it. Update copyright.
21951 2007-01-03 Simon Josefsson <simon@josefsson.org>
21953 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
21954 AC_CANONICAL_HOST, to improve autobuild outputs.
21956 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
21957 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21959 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
21960 sockets, server sockets, and other file descriptors. Count errors
21961 to compute the return value. Reorder the code a bit to be easier
21962 to follow. Don't set event bits that were not requested (except
21963 POLLERR and POLLHUP).
21965 2007-01-01 Bruno Haible <bruno@clisp.org>
21967 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
21969 2007-01-03 Jim Meyering <jim@meyering.net>
21971 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
21973 2007-01-02 Bruno Haible <bruno@clisp.org>
21975 * modules/settime (Include): Require timespec.h.
21976 * modules/nanosleep (Include): Likewise.
21978 2007-01-01 Bruno Haible <bruno@clisp.org>
21980 * gnulib-tool (func_emit_copyright_notice): Bump year.
21981 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
21983 2007-01-01 Bruno Haible <bruno@clisp.org>
21985 Improve support for OpenBSD.
21986 * build-aux/config.rpath (libname_spec): Export.
21987 (library_names_spec): New variable. Export.
21988 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
21989 library_names_spec from the config.rpath output. Locate shared library
21990 through the name pattern in library_names_spec.
21992 2007-01-01 Eric Blake <ebb9@byu.net>
21994 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
21996 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
21998 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
21999 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
22000 assume the C locale, and avoid an "eval" that could cause trouble.
22001 Problem with SORT reported by Bob Proulx.
22003 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
22004 Define. Trivial patch from Henning Nielsen Lund, originally
22005 sent to bug-grep@gnu.org today.
22007 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
22009 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
22010 struct stat. Problem reported by Henning Nielsen Lund.
22011 * lib/acl.c: Include acl.h first, to check interface. Don't
22012 bother to include sys/types.h and sys/stat.h again.
22014 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
22016 Import the following change from libc; problem reported by
22019 2005-10-13 Ulrich Drepper <drepper@redhat.com>
22022 * lib/argp.h: Remove __NTH for __argp_usage inline function.
22024 2006-12-28 Jim Meyering <jim@meyering.net>
22026 * build-aux/announce-gen: Do not assume that the package
22027 builds any of tar.gz, tar.bz2, and .xdelta files.
22028 Suggestion from Simon Josefsson.
22030 2006-12-28 Simon Josefsson <simon@josefsson.org>
22032 * modules/announce-gen: New file.
22034 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
22036 * lib/mbchar.h: Just include <wctype.h>; the wctype module
22037 handles its gotchas now.
22038 * lib/mbswidth.c: Likewise.
22039 * lib/wcwidth.h: Likewise.
22040 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
22041 and iswcntrl; the wctype module does this stuff now.
22042 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22043 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22044 * modules/mbchar (Depends-on): Add wctype.
22045 * modules/mbswidth (Depends-on): Likewise.
22046 * modules/wcwidth (Depends-on): Likewise.
22048 2006-12-27 Eric Blake <ebb9@byu.net>
22050 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
22051 module uses more than what <wctype.h> is required to provide.
22053 2006-12-26 Eric Blake <ebb9@byu.net>
22055 * gnulib-tool (sed_extract_prog): Avoid space-tab.
22057 2006-12-26 Eric Blake <ebb9@byu.net>
22059 * modules/absolute-header: New module.
22060 * modules/fcntl (Depends-on): Depend on it.
22061 * modules/inttypes (Depends-on): Likewise.
22062 * modules/stdint (Depends-on): Likewise.
22063 * modules/sys_stat (Depends-on): Likewise.
22064 * modules/wctype (Depends-on): Likewise.
22065 * MODULES.html.sh (Support for building libraries and
22066 executables): Document it.
22068 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
22070 * gnulib-tool (SED): Remove, undoing previous change.
22071 The problem was that it broke coreutils on Solaris, because
22072 "sed --posix" leaked into a makefile.
22073 (sed): New alias, if 'alias' and GNU sed.
22075 2006-12-24 Jim Meyering <jim@meyering.net>
22077 Work around an fchownat bug in glibc-2.4:
22078 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
22079 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
22080 in spite of the -P option.
22081 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
22083 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
22084 * modules/openat (Files): Add lib/fchownat.c.
22085 * lib/openat.c (fchownat): Don't define here. Move to...
22086 * lib/fchownat.c: ...this new file.
22088 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
22090 Fix bug reported by Bruno Haible in
22091 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
22092 where quotearg.c didn't compile on Mac OS X 10.2 because it
22093 lacks <wchar.h> and wint_t.
22094 * lib/wctype_.h (__wctype_wint_t): New type.
22095 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
22096 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
22097 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
22098 Arg is now of type __wctype_wint_t, not wint_t.
22099 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
22100 substitute HAVE_WINT_T.
22101 * modules/wctype (Files): Add m4/wint_t.m4.
22102 (wctype.h): Substitute HAVE_WINT_T.
22104 2006-12-23 Bruno Haible <bruno@clisp.org>
22106 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
22108 2006-12-23 Bruno Haible <bruno@clisp.org>
22110 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
22112 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
22115 2006-12-22 Bruno Haible <bruno@clisp.org>
22117 * lib/copy-file.c: Include acl.h.
22118 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
22119 Close the file descriptors only after being done with copy_acl.
22120 * modules/copy-file (Depends-on): Add acl.
22122 2006-12-22 Bruno Haible <bruno@clisp.org>
22124 * gnulib-tool (SED): New variable.
22125 Use $SED instead of sed everywhere.
22127 2006-12-22 Bruno Haible <bruno@clisp.org>
22129 * modules/no-c++: New file.
22130 * m4/no-c++.m4: New file.
22131 * MODULES.html.sh (Support for building libraries and executables):
22134 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
22136 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
22137 Include <limits.h>, and use its INT_MAX to rewrite the
22138 j loop so that it does not overflow 'int'. Problem reported by
22140 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
22141 Play it safe by shifting left by 1 rather than multiplying by 2,
22142 as GCC is less likely to optimize this away when the value
22143 is signed (when it assumes overflow leads to undefined behavior).
22144 Also, don't assume time_t uses two's complement.
22146 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
22148 * MODULES.html.sh: New module wctype.
22149 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
22150 * lib/fnmatch.c: Don't bother to include <wchar.h> before
22151 <wctype.h>, since the new wctype module should fix this.
22152 * lib/quotearg.c: Include <wctype.h> unconditionally, since
22153 the wctype module should arrange for it.
22154 * lib/regex_internal.h: Likewise.
22155 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
22156 since the wctype module should handle this now.
22157 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
22158 * modules/fnmatch (Depends-on): Add wctype.
22159 * modules/quotearg (Depends-on): Likewise.
22160 * modules/regex (Depends-on): Likewise.
22162 2006-12-19 Bruno Haible <bruno@clisp.org>
22164 * lib/strdup.h [C++]: Wrap definitions in extern "C".
22165 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
22167 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22169 * modules/savewd (Depends-on): Fix dependency on fcntl.
22171 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
22173 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
22174 conforms to C99, rather than relying on the user's environment
22175 setting of STDINT_H.
22177 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
22178 and Eric Blake <ebb9@byu.net>
22180 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
22181 This is more consistent with the other defines here.
22182 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
22183 Port to z/OS. Problem reported by Paul Gilmartin.
22184 Change local vars to use gl_ prefix rather than ac_.
22185 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
22186 with other defines.
22187 * modules/double-slash-root: New module.
22188 * modules/dirname (Files): Remove m4/double-slash-root.m4.
22189 (Depends-on): Add double-slash-root.
22190 * MODULES.html.sh (File system functions): Mention new module.
22192 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
22194 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
22195 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
22196 This is for the benefit of gzip, which doesn't do i18n.
22198 2006-12-12 Jim Meyering <jim@meyering.net>
22200 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
22201 Reported by Andreas Schwab <schwab@suse.de>.
22203 2006-12-12 Bruno Haible <bruno@clisp.org>
22205 Merge these changes.
22206 2006-09-05 Bruno Haible <bruno@clisp.org>
22207 * lib/iconvme.c (iconv_string): No need to save and restore errno when
22208 iconv_alloc succeeded.
22209 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
22210 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
22211 test for " && dest " at the end - dest is always != NULL there. Call
22212 iconv with 4xNULL arguments initially, to reset the state. Call iconv
22213 with 2xNULL arguments, also to flush the state storage. Handle the
22214 IRIX iconv behaviour. Realloc the final result, to throw away unused
22217 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
22219 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
22220 and fchmodat unconditionally, since glibc 2.4 has them.
22221 Problem reported by Arkadiusz Miskiewicz.
22223 2006-12-10 Bruno Haible <bruno@clisp.org>
22225 * gnulib-tool (func_import): Show the include files only for those
22226 modules that are copied and specified.
22227 Reported by Karl Berry.
22229 2006-12-08 Jim Meyering <jim@meyering.net>
22231 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
22232 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
22234 * build-aux/announce-gen: Add two new options, both optional:
22235 --bootstrap-tools=TOOL_LIST
22236 a comma-separated list of tools, e.g.,
22237 autoconf,automake,bison,gnulib
22238 --gnulib-snapshot-date=DATE
22239 if gnulib is in the bootstrap tool list,
22240 then report this as the snapshot date.
22241 If not specified, use the current date/time.
22242 If you specify a date here, be sure it's UTC.
22244 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22246 * tests/test-argp-2.sh: Fix test to match actual output.
22247 (func_compare): Fix sed script to be portable.
22249 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
22251 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
22252 workaround for this case. It is not autoconfigured now; offhand
22253 it's hard to see how to autoconfigure it.
22255 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
22257 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
22258 a directory that is about to be chowned. Such a directory's
22259 initial file permissions should permit the owner only and this
22260 should not be changed until after the chown, since the group and
22261 other bits would be incorrect if they granted permission before
22264 Fix porting problem for iswctype reported by Georg Schwarz in:
22265 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
22266 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
22267 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
22268 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
22269 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
22271 2006-12-03 Jim Meyering <jim@meyering.net>
22273 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
22274 p->fts_statp may not yet be defined.
22275 (fts_read): Instead, set it in the caller, once p->fts_statp is
22276 sure to be defined, and corresponds to a top-level directory.
22277 This bug made du -x fail. Here's the coreutils test case:
22278 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
22279 Reported by Mike Frysinger.
22281 2006-12-01 Jim Meyering <jim@meyering.net>
22283 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
22284 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
22285 Reported by Simon Josefsson.
22287 2006-11-30 Jim Meyering <jim@meyering.net>
22289 * m4/warning.m4: Use the all-permissive copyright notice
22290 recommended by RMS (rather than LGPL).
22291 * m4/vararrays.m4: Likewise.
22292 * m4/flexmember.m4: Likewise.
22294 2006-11-29 Bruno Haible <bruno@clisp.org>
22296 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
22297 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
22299 Reported by Simon Josefsson <simon@josefsson.org>.
22301 2006-11-28 James Youngman <jay@gnu.org>
22303 * README: Advise users that they might find the bug-gnulib@gnu.org
22304 and autotools-announce@gnu.org mailing lists useful.
22306 2006-11-28 Bruno Haible <bruno@clisp.org>
22308 * m4/ptrdiff_max.m4: Remove file.
22310 2006-11-21 Bruno Haible <bruno@clisp.org>
22312 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
22314 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
22315 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
22317 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
22318 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
22320 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
22322 2006-11-28 Jim Meyering <jim@meyering.net>
22324 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
22325 warning from "gcc -Wshadow" about shadowing the builtin.
22327 2006-11-27 Bruno Haible <bruno@clisp.org>
22329 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
22331 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
22333 2006-11-27 Bruno Haible <bruno@clisp.org>
22334 Paul Eggert <eggert@cs.ucla.edu>
22336 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
22338 2006-11-26 Bruno Haible <bruno@clisp.org>
22340 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
22341 noinst_LTLIBRARIES.
22343 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
22344 Bruno Haible <bruno@clisp.org>
22346 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
22347 if compiling with "gcc -ansi".
22349 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
22351 Fix some incompatibilities with gcc -ansi -pedantic.
22352 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
22353 if compiling pedantically with GCC, unless it's C99 or later.
22354 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
22355 it mishandles gcc -ansi -pedantic as well.
22356 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
22358 * lib/regexec.c (check_node_accept_bytes): Don't use auto
22359 initializers for struct if -pedantic, unless it's C99 or later.
22361 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
22363 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
22364 Don't close an fd more than once. Identical atimes indicate
22365 success, not failure.
22367 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
22369 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
22371 2006-11-23 Jim Meyering <jim@meyering.net>
22373 * build-aux/announce-gen: New file. From coreutils.
22375 2006-11-22 Jim Meyering <jim@meyering.net>
22377 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
22378 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
22379 (fts_read): Use a temporary to narrow the overused st_size member
22380 before using it in a switch statement. Reported by Matthew Woehlke.
22382 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
22383 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
22385 2006-11-20 Bruno Haible <bruno@clisp.org>
22387 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
22388 changequote instead of pairs of brackets.
22389 Reported by Andreas Schwab <schwab@suse.de>.
22391 2006-11-21 Jim Meyering <jim@meyering.net>
22393 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
22394 so as to remain compatible with older compilers.
22395 Patch from Michael Deutschmann.
22397 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
22399 * MODULES.html.sh (File system functions): Add openat.
22401 * lib/openat.h (rpl_fstatat): New macro, if
22402 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
22403 (fstatat): Define to rpl_fstatat under the same conditions,
22404 unless COMPILING_FSTATAT.
22405 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
22406 seems to have the bug.
22407 * lib/fstatat.c: New file.
22408 * modules/openat (Files): Add it.
22410 2006-11-20 Bruno Haible <bruno@clisp.org>
22412 * Makefile: New file.
22414 2006-11-20 Jim Meyering <jim@meyering.net>
22416 The beginnings of syntax-related checks for gnulib.
22417 * lib/Makefile: New file.
22418 * lib/t-idcache: New script. Ensure that the two halves of
22419 idcache.c stay in sync.
22421 * lib/idcache.c: Adjust comments in user- and group- portions to
22422 be more accurate, and to be consistent with one another.
22424 2006-11-20 Jim Meyering <jim@meyering.net>
22426 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
22427 continue using the flexible array member (thus, this module performs
22428 half as many malloc calls), with the addition that...
22429 (getgroup, getuser): Consistently record a non-match via an empty
22430 "name" string, and map an empty string match to a NULL return value.
22431 * modules/idcache (Depends-on): Re-add flexmember.
22433 * lib/idcache.c (getuser): Remove all uses of the register keyword.
22434 (getuidbyname, getgroup, getgidbyname): Likewise.
22436 Use cleaner syntax: NULL rather than 0.
22437 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
22439 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
22441 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
22442 It mishandled the case where the group was missing.
22443 Problem reported by Greg Schafer.
22444 * modules/idcache: Likewise.
22446 2006-11-18 Jim Meyering <jim@meyering.net>
22448 * check-module (%exempt_header): Add exception for some
22449 conditionally-included headers.
22451 * modules/i-ring (Depends-on): Add verify.
22452 (License): Change to LGPL.
22454 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
22456 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
22457 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
22458 and inttostr.h. Use snprintf rather than uinttostr, so that
22459 LGPLed code doesn't depend on GPLed.
22461 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
22463 * modules/inline (License): Change from GPL to LGPL.
22465 2006-11-17 Jim Meyering <jim@meyering.net>
22467 * modules/d-type (License): Switch to LGPL.
22469 2006-11-15 Bruno Haible <bruno@clisp.org>
22471 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
22473 2006-11-15 Eric Blake <ebb9@byu.net>
22475 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
22476 the module dependency.
22478 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22479 Bruno Haible <bruno@clisp.org>
22481 * gnulib-tool (func_create_testdir): Add license consistency check.
22483 2006-11-15 Eric Blake <ebb9@byu.net>
22485 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
22486 random "(cached)" in configure output.
22488 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22490 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
22491 test for conforming inttypes.h is both announced and cached.
22493 * MODULES.html.sh (seen_modules, seen_files): New variables.
22494 (func_module): Rewrite to use a few less gnulib-tool and sed
22495 invocations. Avoid a couple of quadratic algorithms for ...
22496 (missed_modules, missed_files): ... these, with ...
22497 (func_append, func_tmpdir): ... these new functions, from
22498 gnulib-tool. Analogously, install traps for cleanup.
22500 * tests/test-gc.c (main): Remove unused variables.
22501 * tests/test-read-file.c: Include stdlib.h, for 'free'.
22503 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
22505 * modules/inttostr (License): Change to LGPL.
22507 2006-11-14 Eric Blake <ebb9@byu.net>
22509 * modules/tempname (License): Change to LGPL.
22511 2006-11-14 Eric Blake <ebb9@byu.net>
22513 * doc/functions.texi (Function Portability): *printf functions on
22514 Cygwin now understand all POSIX size specifiers.
22516 2006-11-14 Bruno Haible <bruno@clisp.org>
22518 * modules/c-ctype (License): Change to LGPL.
22520 2006-11-12 Bruno Haible <bruno@clisp.org>
22522 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22523 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
22524 for GNOME libraries, for which the include files are installed in
22525 subdirectories of $prefix/include.
22527 2006-11-12 Bruno Haible <bruno@clisp.org>
22529 * m4/lib-link.m4: Require at least autoconf-2.54.
22530 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
22531 name to underscores for the --with option.
22533 2006-11-13 Bruno Haible <bruno@clisp.org>
22535 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
22536 the tests directory.
22537 Reported by Ralf Wildenhues.
22539 2006-11-13 Bruno Haible <bruno@clisp.org>
22541 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
22542 (func_emit_initmacro_end): Undo the override here.
22543 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
22544 Works around the famous automake error in coreutils.
22546 2006-11-13 Eric Blake <ebb9@byu.net>
22548 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
22549 element, not its node.
22551 2006-11-12 Bruno Haible <bruno@clisp.org>
22553 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
22554 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
22556 2006-11-12 Bruno Haible <bruno@clisp.org>
22558 * gnulib-tool: New option --local-symlink.
22559 (func_usage): Document it.
22560 (lsymbolic): New variable.
22561 (func_import, func_create_testdir): If --symlink was not specified,
22562 test whether --local-symlink was specified and the file comes from
22563 the local_gnulib_dir.
22565 2006-11-12 Bruno Haible <bruno@clisp.org>
22567 * gnulib-tool (func_ln): New function.
22568 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
22570 2006-11-12 Bruno Haible <bruno@clisp.org>
22572 Finish support for source files in subdirectories.
22573 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
22574 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
22576 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
22578 2006-11-12 Bruno Haible <bruno@clisp.org>
22580 * gnulib-tool (func_get_automake_snippet): Synthesize also an
22581 EXTRA_lib_SOURCES augmentation.
22582 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
22584 2006-11-12 Jim Meyering <jim@meyering.net>
22586 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
22587 file descriptors. This also averts a failure on systems with
22588 native openat support when a traversed directory lacks "x" access.
22589 * lib/fts_.h: Include "i-ring.h"
22590 (struct FTS) [fts_fd_ring]: New member.
22591 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
22592 (FCHDIR): Add parentheses.
22593 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
22594 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
22595 When descending, rather than simply closing the previous
22596 fts_cwd_fd value, push that file descriptor onto the ring.
22597 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
22598 (fts_open): Initialize the new fd_ring member.
22599 (fts_close): Clear the ring.
22600 (fts_safe_changedir): When possible, use our new fd_ring to skip
22601 the diropen and fstat and dev/ino comparison that would normally
22602 accompany a virtual `chdir ("..")'.
22604 * modules/fts (Depends-on): Add i-ring.
22605 * modules/i-ring: New module.
22606 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
22607 * m4/i-ring.m4: New file.
22609 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22611 * gnulib-tool (func_create_testdir): Fix replacement of
22612 `build-aux' in configure.ac. Run autotools in gltests
22614 (func_create_testdir, func_create_megatestdir, test): There is
22615 no need for '--force' in most autotool invocations in a new
22616 tree. Actually fail the whole test if any of the tools, or the
22617 configure or make stages fail.
22619 Sync from Automake.
22620 * build-aux/gnupload: Revert last change. Add pointer to upload
22621 instructions of the GNU Maintenance Instructions.
22622 Suggestion by Karl Berry.
22624 2006-11-10 Jim Meyering <jim@meyering.net>
22626 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
22628 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
22630 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
22631 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
22632 (bind_textdomain_codeset) [! ENABLE_NLS]:
22633 Evaluate all the arguments. That way, callers get compatible behavior
22634 if the arguments have side effects. Also, it avoids some GCC
22635 diagnostics in some cases; Joel E. Denny reported problems when Bison
22636 was configured with --enable-gcc-warnigs.
22638 2006-11-10 Jim Meyering <jim@meyering.net>
22640 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
22641 relevant options in CFLAGS (like -O, -fno-inline) are taken into
22644 2006-11-10 Jim Meyering <jim@meyering.net>
22646 * modules/inline: New file/module.
22647 * modules/xalloc (Files): Remove m4/inline.m4.
22648 (Depends-on): Add inline, instead.
22649 * modules/oset: Likewise.
22650 * modules/list: Likewise.
22652 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
22654 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
22655 Problem reported by Matthew Woehlke.
22657 2006-11-09 Bruno Haible <bruno@clisp.org>
22659 * lib/tempname.c (gen_tempname): Remove variant that invokes
22661 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
22664 2006-11-08 Bruno Haible <bruno@clisp.org>
22666 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
22667 to 'yes' instead of 'cross-compiling'.
22669 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
22671 * lib/quotearg.h (quotearg_free): New decl.
22672 * lib/quotearg.c (quotearg_free): New function.
22673 (slot0, nslots, slotvec0, slotvec):
22674 Now file-scope so that quotearg_free can get at them.
22676 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22678 Sync from Automake.
22679 * build-aux/gnupload: Add missing 'gnu' to example URL.
22680 Report by Karl Berry.
22682 2006-11-08 Bruno Haible <bruno@clisp.org>
22684 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
22685 Suggested by Paul Eggert.
22687 2006-11-08 Jim Meyering <jim@meyering.net>
22689 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
22690 It's already included if !_LIBC.
22691 (fts_safe_changedir): Add a comment.
22693 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
22695 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
22696 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
22699 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
22700 definitions up, to avoid colliding with change below.
22701 (static_inline) [HAVE_INLINE]: New macro.
22702 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
22703 Provide extern decls when !HAVE_INLINE. Do not define unless
22704 static_inline is defined, either by us or by xmalloc.c. Use
22705 static_inline rather than static inline.
22706 (XCALLOC): Optimize sizeof(T) = 1 case.
22707 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
22709 2006-11-07 Bruno Haible <bruno@clisp.org>
22711 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
22712 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
22714 * modules/xalloc (Files): Add m4/inline.m4.
22716 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22718 * README: Fix typo.
22719 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
22720 (Miscellanous Notes): ...from this.
22722 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
22724 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
22725 Mention that offsetof should be used instead of sizeof.
22728 2006-11-07 Bruno Haible <bruno@clisp.org>
22730 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
22732 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
22734 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
22735 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
22736 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
22737 (gl_tree_add_before, gl_tree_add_after):
22738 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
22739 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
22740 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
22741 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
22742 (gl_linked_add_after, gl_linked_add_at): Likewise.
22743 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
22744 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
22745 (gl_tree_add_before, gl_tree_add_after): Likewise.
22746 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
22747 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
22748 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
22750 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22752 * lib/gl_oset.h: Use C comment style, not C++ comment style.
22754 2006-11-06 Bruno Haible <bruno@clisp.org>
22756 * m4/inline.m4: New file.
22757 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
22758 * modules/list (Files): Add m4/inline.m4.
22759 * modules/oset (Files): Likewise.
22761 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
22763 * lib/idcache.c: Include <stddef.h>, for offsetof.
22764 (struct userid.name): Change from char * to a flexible array member.
22766 * modules/idcache (Depends-on): Add flexmember.
22768 * MODULES.html.sh (Core language properties): New module flexmember.
22769 * modules/flexmember, m4/flexmember.m4: New files.
22771 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
22772 inline functions that are identical with the old xnmalloc_inline,
22773 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
22774 that we can avoid some unnecessary integer multiplications and
22775 divisions in the common case where the element size is known at
22777 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
22779 (xnboundedmalloc): Remove.
22780 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
22781 arguments, for consistency with rest of this header.
22782 (xcharalloc): Rewrite using XNMALLOC.
22783 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
22784 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
22785 versions have been moved to lib/xalloc.h and renamed to be the
22786 non-*_inline versions.
22787 (xmalloc, xrealloc): Implement without reference to the xnmalloc
22788 and xnrealloc functions, since those functions are now inline and
22790 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
22791 renaming described above.
22792 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
22793 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
22794 captures the dependency in AC_C_INLINE.
22796 New module canonicalize-lgpl, proposed by Charles Wilson in
22797 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
22798 with a few small changes afterwards.
22799 * MODULES.html.sh (File system functions): New module
22801 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
22802 and canonicalize_file_name.
22803 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
22804 * modules/canonicalize-lgpl: New files.
22806 2006-11-05 Bruno Haible <bruno@clisp.org>
22808 * gnulib-tool (func_import, func_create_testdir): Create directories
22809 also for files in subdirectories of lib/.
22811 2006-11-05 Bruno Haible <bruno@clisp.org>
22813 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
22816 2006-11-03 Bruno Haible <bruno@clisp.org>
22818 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
22819 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
22820 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
22821 (xnboundedmalloc): New inline function.
22822 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
22823 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
22825 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
22827 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
22828 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
22829 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
22831 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
22832 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
22834 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
22835 gl_tree_add_after): Use XMALLOC instead of xmalloc.
22836 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
22838 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
22839 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
22840 gl_tree_add_after): Use XMALLOC instead of xmalloc.
22841 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
22842 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
22843 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
22844 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
22846 2006-11-03 Bruno Haible <bruno@clisp.org>
22848 * lib/c-ctype.h [C++]: Define functions without name mangling.
22849 * lib/fwriteerror.h [C++]: Likewise.
22850 * lib/gcd.h [C++]: Likewise.
22851 * lib/linebreak.h [C++]: Likewise.
22853 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
22855 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
22856 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
22857 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
22858 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
22859 Check for functions and headers just once.
22860 Check for declaration of canonicalize_file_name.
22861 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
22863 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
22865 * gnulib-tool (func_import): Fix typo in actioncmd.
22867 2006-11-02 Bruno Haible <bruno@clisp.org>
22869 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
22870 newline sequence in the Makefile.am snippet as a space, like "make"
22872 Reported by Roger Persson <perrog@gmail.com>.
22874 2006-11-01 Bruno Haible <bruno@clisp.org>
22876 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
22877 already declared in <string.h>.
22878 * lib/strcase.h (strncasecmp): Don't declare it if yes.
22880 2006-11-01 Bruno Haible <bruno@clisp.org>
22882 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
22883 * lib/strcase.h: Include <string.h>.
22884 (strcasecmp): Define to rpl_strcasecmp here.
22886 2006-11-01 Bruno Haible <bruno@clisp.org>
22888 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
22890 2006-11-01 Eric Blake <ebb9@byu.net>
22892 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
22894 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
22896 2006-10-29 Bruno Haible <bruno@clisp.org>
22898 Make it compile in C++ mode.
22899 * lib/full-write.c (full_rw): Add a cast.
22901 2006-11-01 Bruno Haible <bruno@clisp.org>
22903 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
22904 be POSIX compliant.
22905 Reported by Roger Persson <perrog@gmail.com>.
22907 2006-11-01 Eric Blake <ebb9@byu.net>
22909 * lib/getopt_.h: Fix comments.
22911 2006-10-31 Eric Blake <ebb9@byu.net>
22913 * modules/tmpdir (Depends-on): Add sys_stat.
22914 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
22915 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
22916 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
22917 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
22920 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
22922 Avoid some C++ diagnostics reported by Bruno Haible.
22923 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
22925 (quotearg_alloc): Use xcharalloc rather than xmalloc.
22926 (struct slotvec): Move to top level.
22927 (quotearg_n_options): Rewrite to avoid xmalloc.
22928 * lib/xalloc.h (xcharalloc): New function.
22929 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
22930 [defined __cplusplus]: Add function template that provides result
22931 type propagation. This part of the change is from Bruno Haible.
22933 2006-10-29 Bruno Haible <bruno@clisp.org>
22935 Make it compile in C++ mode.
22936 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
22937 * lib/strnlen1.c (strnlen1): Cast memchr result.
22938 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
22939 * lib/clean-temp.c (string_equals, string_hash): Add casts.
22940 (create_temp_dir): Rename local variable 'template'.
22941 (compile_csharp_using_sscli): Add cast.
22942 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
22943 * lib/findprog.c (find_in_path): Likewise.
22944 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
22945 * lib/wait-process.c (register_slave_subprocess): Likewise.
22947 2006-10-22 Bruno Haible <bruno@clisp.org>
22949 * modules/tsearch: New file.
22950 * lib/tsearch.h: New file.
22951 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
22952 * m4/tsearch.m4: New file.
22953 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
22955 2006-10-29 Eric Blake <ebb9@byu.net>
22957 * lib/arcfour.c: Assume config.h.
22958 * lib/arctwo.c: Likewise.
22959 * lib/base64.c: Likewise.
22960 * lib/check-version.c: Likewise.
22961 * lib/crc.c: Likewise.
22962 * lib/des.c: Likewise.
22963 * lib/gc-gnulib.c: Likewise.
22964 * lib/gc-libgcrypt.c: Likewise.
22965 * lib/gc-pbkdf2-sha1.c: Likewise.
22966 * lib/getaddrinfo.c: Likewise.
22967 * lib/getdelim.c: Likewise.
22968 * lib/getline.c: Likewise.
22969 * lib/hmac-md5.c: Likewise.
22970 * lib/hmac-sha1.c: Likewise.
22971 * lib/iconvme.c: Likewise.
22972 * lib/md2.c: Likewise.
22973 * lib/md4.c: Likewise.
22974 * lib/memxor.c: Likewise.
22975 * lib/read-file.c: Likewise.
22976 * lib/readline.c: Likewise.
22977 * lib/rijndael-alg-fst.c: Likewise.
22978 * lib/rijndael-api-fst.c: Likewise.
22979 * lib/xgetdomainname.c: Likewise.
22981 2006-10-28 Eric Blake <ebb9@byu.net>
22983 * lib/xstrndup.c: Assume config.h.
22985 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
22987 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
22988 stat-macros.h is now for our own macros, whereas stat_h is for
22989 macros in the <sys/stat.h> name space.
22990 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
22991 (STAT_MACROS_H): Remove.
22992 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
22993 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
22994 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
22995 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
22996 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
22997 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
22998 Move these macros to ...
22999 * lib/stat_.h: here. Don't include stat-macros.h.
23000 * lib/canonicalize.c: Don't include stat-macros.h.
23001 * lib/chown.c: Likewise.
23002 * lib/euidaccess.c: Likewise.
23003 * lib/file-type.c: Likewise.
23004 * lib/filemode.c: Likewise.
23005 * lib/glob.c: Likewise.
23006 * lib/isapipe.c: Likewise.
23007 * lib/lchown.c: Likewise.
23008 * lib/lstat.c: Likewise.
23009 * lib/mkdir-p.c: Likewise.
23010 * lib/rmdir.c: Likewise.
23011 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
23012 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
23013 unless mkdir isn't declared, to speed up 'configure'.
23014 Always create sys/stat.h, since it's unlikely any real sys/stat.h
23015 would define all the S_* symbols.
23016 * modules/canonicalize (Depends-on):
23017 Depend on sys_stat, not stat-macros.
23018 * modules/chown: Likewise.
23019 * modules/euidaccess: Likewise.
23020 * modules/filemode: Likewise.
23021 * modules/file-type: Likewise.
23022 * modules/glob: Likewise.
23023 * modules/isapipe: Likewise.
23024 * modules/lchown: Likewise.
23025 * modules/lstat: Likewise.
23026 * modules/mkancesdirs: Likewise.
23027 * modules/rmdir: Likewise.
23028 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
23029 * modules/modechange: Likewise.
23030 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
23031 (configure.ac): Remove gl_STAT_MACROS.
23032 * modules/sys_stat (Depends-on): Remove stat-macros.
23034 2006-10-27 Bruno Haible <bruno@clisp.org>
23036 * m4/signed.m4: Remove file.
23037 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
23039 * modules/vasnprintf (Files): Remove m4/signed.m4.
23041 2006-10-27 Bruno Haible <bruno@clisp.org>
23043 Update to GNU gettext 0.16.
23044 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
23045 m4/inttypes-h.m4, m4/signed.m4.
23046 * m4/gettext.m4: Update to GNU gettext 0.16.
23047 * m4/intl.m4: New file, from GNU gettext.
23048 * m4/intldir.m4: New file, from GNU gettext.
23049 * config/srclist.txt: Update
23051 2006-10-27 Eric Blake <ebb9@byu.net>
23053 * MODULES.html.sh: Document tempname.
23054 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
23056 (Files): Move lib/tempname.c...
23057 * modules/tempname: ...to this new module.
23058 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
23059 (gl_PREREQ_TEMPNAME): Move...
23060 * m4/tempname.m4: ...to this new file.
23061 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
23062 * modules/sys_stat (Depends-on): Add stat-macros.
23063 * lib/stat_.h (includes): Pick up stat macros.
23064 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
23065 if stat macros are broken.
23066 * lib/tempname.c (includes): No need to include "stat-macros.h".
23067 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
23068 (direxists, __path_search) [!_LIBC]: Don't compile these in
23069 gnulib; the tmpdir module covers that.
23070 * lib/tempname.h: New file.
23072 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
23074 * COPYING: Explain how gnulib-tool converts licence headers.
23075 Almost all wording by Eric Blake.
23077 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
23079 * lib/mbchar.h (is_basic_table): Make read-only.
23080 * lib/mbchar.c (is_basic_table): Likewise.
23081 Reported by John Darrington.
23083 2006-10-25 Bruno Haible <bruno@clisp.org>
23085 * lib/progname.h (set_program_name): Undefine before defining.
23087 2006-10-25 Bruno Haible <bruno@clisp.org>
23089 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
23090 false for non-gcc C++ compilers.
23091 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
23093 2006-10-24 Bruno Haible <bruno@clisp.org>
23095 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
23096 iconv implementations like Irix iconv.
23098 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
23100 * modules/vararrays: New file.
23101 * m4/vararrays.m4: New file, taken from diffutils.
23102 * MODULES.html.sh: New module vararrays.
23104 2006-10-24 Karl Berry <karl@gnu.org>
23106 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
23107 Don't call GNU Unix.
23109 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23111 * users.txt: Add Libtool.
23115 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
23117 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
23118 to gnulib's policy of including config.h unconditionally.
23120 2006-10-24 Bruno Haible <bruno@clisp.org>
23122 * modules/wcwidth (Files): Add m4/wint_t.m4.
23123 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
23124 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
23126 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
23128 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
23129 to pacify GCC with some -W flags enabled. Problem reported by
23132 2006-10-24 Jim Meyering <jim@meyering.net>
23134 * MODULES.html.sh: Remove uinttostr. It's not a module.
23135 Reported by Karl Berry.
23137 2006-10-23 Bruno Haible <bruno@clisp.org>
23139 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
23141 2006-10-24 Bruno Haible <bruno@clisp.org>
23143 * lib/gl_list.h: Use C comment style, not C++ comment style.
23145 2006-10-23 Eric Blake <ebb9@byu.net>
23147 * lib/getaddrinfo.c (includes): Add missing include.
23149 2006-10-23 Bruno Haible <bruno@clisp.org>
23150 Paul Eggert <eggert@cs.ucla.edu>
23152 Ability to rename obstack_free.
23153 * lib/obstack.h (__obstack_free): New macro. Declare instead of
23155 (obstack_free): Invoke the __obstack_free macro.
23156 * lib/obstack.c (obstack_free): Use __obstack_free macro.
23158 2006-10-23 Bruno Haible <bruno@clisp.org>
23159 Paul Eggert <eggert@cs.ucla.edu>
23161 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
23162 __argc, __argv from the declaration. (They are defined as macros on
23165 2006-10-22 Bruno Haible <bruno@clisp.org>
23167 * doc/gnulib-intro.texi: New file.
23168 * doc/gnulib.texi: Include it.
23170 2006-10-21 Bruno Haible <bruno@clisp.org>
23172 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
23173 "Introduction", "Miscellanous Notes", "Particular Modules".
23175 2006-10-21 Bruno Haible <bruno@clisp.org>
23177 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23178 Change mostlyclean-local rule to avoid sh syntax error from bash
23179 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
23181 2006-10-23 Jim Meyering <jim@meyering.net>
23183 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
23184 in place of snprintf.
23186 * modules/inttostr (Files): Add lib/uinttostr.c.
23187 * lib/uinttostr.c (inttostr): New file/function.
23188 * lib/inttostr.h (uinttostr): Declare.
23189 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
23190 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
23192 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
23194 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
23196 * lib/canonicalize.c (ELOOP): Define if not already defined.
23197 Problem reported by Bruno Haible in
23198 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
23200 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
23202 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
23203 Problem reported by Perry Smith and Ville Laurikari.
23205 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
23208 2006-10-19 Bruno Haible <bruno@clisp.org>
23210 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
23213 2006-10-19 Bruno Haible <bruno@clisp.org>
23215 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
23218 2006-10-19 Bruno Haible <bruno@clisp.org>
23220 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
23222 2006-10-19 Bruno Haible <bruno@clisp.org>
23224 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
23227 2006-10-19 Bruno Haible <bruno@clisp.org>
23229 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
23232 2006-10-19 Bruno Haible <bruno@clisp.org>
23234 * gnulib-tool (func_create_testdir): Don't include ftruncate and
23235 mountlist by default.
23237 2006-10-16 Bruno Haible <bruno@clisp.org>
23239 * lib/c-strstr.c: Include c-strstr.h.
23241 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
23243 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
23246 2006-10-18 Bruno Haible <bruno@clisp.org>
23248 * lib/lock.h [C++]: Wrap definitions in extern "C".
23250 2006-10-18 Bruno Haible <bruno@clisp.org>
23252 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
23255 2006-10-18 Bruno Haible <bruno@clisp.org>
23257 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
23259 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
23261 * lib/xstrtol.h: Include gettext.h.
23262 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
23263 Problem reported by Eric Blake.
23264 * modules/xstrtol (Depends-on): Add gettext-h.
23266 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
23268 * lib/strftime.c (advance): New macro.
23269 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
23270 incomplete type, so you can't add 0 to it. Problem and patch
23271 reported by Eelco Dolstra for dietlibc.
23273 2006-10-18 Jim Meyering <jim@meyering.net>
23275 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
23276 type for a local, and rename it: s/up/user_proc/.
23278 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
23280 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
23281 READ_UTMP_USER_PROCESS.
23282 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
23284 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
23286 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
23287 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
23289 2006-10-17 Eric Blake <ebb9@byu.net>
23291 * lib/sigprocmask.c (sigprocmask): Fix typo.
23293 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
23295 * modules/clean-temp (Makefile.am): Don't add to make output...
23296 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
23299 2006-10-17 Bruno Haible <bruno@clisp.org>
23301 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
23302 differently if DEFAULT_TEXT_DOMAIN is set.
23304 2006-10-16 Bruno Haible <bruno@clisp.org>
23306 * lib/clean-temp.c: Include fwriteerror.h.
23308 2006-10-16 Bruno Haible <bruno@clisp.org>
23310 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
23312 2006-10-16 Bruno Haible <bruno@clisp.org>
23314 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
23315 * lib/sigprocmask.h: Include <sys/types.h>.
23316 (sigset_t): Use the system's definition if present.
23318 2006-10-17 Eric Blake <ebb9@byu.net>
23320 * lib/xvasprintf.c (includes): Assume config.h.
23321 * lib/xasprintf.c (includes): Likewise.
23323 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
23325 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
23326 at least as wide as intmax_t.
23328 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
23330 (Imported from Automake.)
23331 * build-aux/gnupload: Update to version 1.1 of directive file.
23333 2006-10-16 Eric Blake <ebb9@byu.net>
23335 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
23336 match Automake 1.10a.
23338 2006-10-14 Bruno Haible <bruno@clisp.org>
23340 * modules/sigprocmask: New file.
23341 * lib/sigprocmask.h: New file.
23342 * lib/sigprocmask.c: New file.
23343 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
23344 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
23345 request sigprocmask.o.
23346 (gl_PREREQ_SIGPROCMASK): New macro.
23347 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
23348 (Depends-on): Add sigprocmask.
23349 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
23350 gt_SIGNALBLOCKING. Test for 'raise' only once.
23351 * lib/fatal-signal.c: Include sigprocmask.h.
23352 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
23353 unblock_fatal_signals): Define always.
23354 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23357 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
23359 Sync from Automake.
23360 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
23361 which incorrectly sets the mode of an existing destination
23362 directory. In some cases the unpatched install-sh could do the
23363 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
23364 system. We hope this is rare in practice, but it's clearly worth
23365 fixing. Problem reported by Alex Unleashed in
23366 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
23367 Also, don't bother to check for -m bugs unless we're using -m;
23368 suggested by Stepan Kasal.
23370 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23372 Sync from Automake.
23373 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
23374 `-c' flag, so they appear at the same position as in %FASTDEP%
23375 mode in depend2.am. Fixes build failure for FreeBSD's c89,
23376 which ignores unknown options only after the first non-option.
23377 Bug report against M4 by Nelson H. F. Beebe.
23379 2006-10-13 Jim Meyering <jim@meyering.net>
23381 Fix a bug in yesterday's change.
23382 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
23383 p->fts_statp->st_dev would be used uninitialized.
23384 Ensures that we always call fts_stat on the very first entry.
23385 Miklos Szeredi reported that find -xdev stopped working.
23387 2006-10-12 Bruno Haible <bruno@clisp.org>
23389 * gnulib-tool (func_get_automake_snippet): Append an automatically
23390 computed EXTRA_DIST augmentation.
23391 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
23392 * modules/alloca-opt (Makefile.am): Likewise.
23393 * modules/allocsa (Makefile.am): Likewise.
23394 * modules/arcfour (Makefile.am): Likewise.
23395 * modules/arctwo (Makefile.am): Likewise.
23396 * modules/argmatch (Makefile.am): Likewise.
23397 * modules/argz (Makefile.am): Likewise.
23398 * modules/atexit (Makefile.am): Likewise.
23399 * modules/backupfile (Makefile.am): Likewise.
23400 * modules/byteswap (Makefile.am): Likewise.
23401 * modules/c-strtod (Makefile.am): Likewise.
23402 * modules/c-strtold (Makefile.am): Likewise.
23403 * modules/calloc (Makefile.am): Likewise.
23404 * modules/canon-host (Makefile.am): Likewise.
23405 * modules/canonicalize (Makefile.am): Likewise.
23406 * modules/chdir-long (Makefile.am): Likewise.
23407 * modules/chdir-safer (Makefile.am): Likewise.
23408 * modules/check-version (Makefile.am): Likewise.
23409 * modules/chown (Makefile.am): Likewise.
23410 * modules/cloexec (Makefile.am): Likewise.
23411 * modules/close-stream (Makefile.am): Likewise.
23412 * modules/closeout (Makefile.am): Likewise.
23413 * modules/crc (Makefile.am): Likewise.
23414 * modules/csharpexec (Makefile.am): Likewise.
23415 * modules/cycle-check (Makefile.am): Likewise.
23416 * modules/des (Makefile.am): Likewise.
23417 * modules/dev-ino (Makefile.am): Likewise.
23418 * modules/dirfd (Makefile.am): Likewise.
23419 * modules/dirname (Makefile.am): Likewise.
23420 * modules/dup2 (Makefile.am): Likewise.
23421 * modules/eealloc (Makefile.am): Likewise.
23422 * modules/error (Makefile.am): Likewise.
23423 * modules/euidaccess (Makefile.am): Likewise.
23424 * modules/exclude (Makefile.am): Likewise.
23425 * modules/exitfail (Makefile.am): Likewise.
23426 * modules/fcntl-safer (Makefile.am): Likewise.
23427 * modules/fcntl (Makefile.am): Likewise.
23428 * modules/file-type (Makefile.am): Likewise.
23429 * modules/fileblocks (Makefile.am): Likewise.
23430 * modules/filemode (Makefile.am): Likewise.
23431 * modules/filenamecat (Makefile.am): Likewise.
23432 * modules/fnmatch (Makefile.am): Likewise.
23433 * modules/fopen-safer (Makefile.am): Likewise.
23434 * modules/fpending (Makefile.am): Likewise.
23435 * modules/fprintftime (Makefile.am): Likewise.
23436 * modules/free (Makefile.am): Likewise.
23437 * modules/fsusage (Makefile.am): Likewise.
23438 * modules/ftruncate (Makefile.am): Likewise.
23439 * modules/fts (Makefile.am): Likewise.
23440 * modules/gc-arcfour (Makefile.am): Likewise.
23441 * modules/gc-des (Makefile.am): Likewise.
23442 * modules/gc-hmac-md5 (Makefile.am): Likewise.
23443 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
23444 * modules/gc-md4 (Makefile.am): Likewise.
23445 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
23446 * modules/gc-sha1 (Makefile.am): Likewise.
23447 * modules/gc (Makefile.am): Likewise.
23448 * modules/getaddrinfo (Makefile.am): Likewise.
23449 * modules/getcwd (Makefile.am): Likewise.
23450 * modules/getdelim (Makefile.am): Likewise.
23451 * modules/getdomainname (Makefile.am): Likewise.
23452 * modules/getgroups (Makefile.am): Likewise.
23453 * modules/gethostname (Makefile.am): Likewise.
23454 * modules/gethrxtime (Makefile.am): Likewise.
23455 * modules/getline (Makefile.am): Likewise.
23456 * modules/getloadavg (Makefile.am): Likewise.
23457 * modules/getlogin_r (Makefile.am): Likewise.
23458 * modules/getndelim2 (Makefile.am): Likewise.
23459 * modules/getopt (Makefile.am): Likewise.
23460 * modules/getpagesize (Makefile.am): Likewise.
23461 * modules/getpass-gnu (Makefile.am): Likewise.
23462 * modules/getpass (Makefile.am): Likewise.
23463 * modules/getsubopt (Makefile.am): Likewise.
23464 * modules/gettime (Makefile.am): Likewise.
23465 * modules/gettimeofday (Makefile.am): Likewise.
23466 * modules/getugroups (Makefile.am): Likewise.
23467 * modules/getusershell (Makefile.am): Likewise.
23468 * modules/glob (Makefile.am): Likewise.
23469 * modules/group-member (Makefile.am): Likewise.
23470 * modules/hard-locale (Makefile.am): Likewise.
23471 * modules/hash (Makefile.am): Likewise.
23472 * modules/hmac-md5 (Makefile.am): Likewise.
23473 * modules/hmac-sha1 (Makefile.am): Likewise.
23474 * modules/human (Makefile.am): Likewise.
23475 * modules/idcache (Makefile.am): Likewise.
23476 * modules/imaxabs (Makefile.am): Likewise.
23477 * modules/imaxdiv (Makefile.am): Likewise.
23478 * modules/inet_ntop (Makefile.am): Likewise.
23479 * modules/inet_pton (Makefile.am): Likewise.
23480 * modules/intprops (Makefile.am): Likewise.
23481 * modules/inttostr (Makefile.am): Likewise.
23482 * modules/inttypes (Makefile.am): Likewise.
23483 * modules/isapipe (Makefile.am): Likewise.
23484 * modules/javaversion (Makefile.am): Likewise.
23485 * modules/lchmod (Makefile.am): Likewise.
23486 * modules/lchown (Makefile.am): Likewise.
23487 * modules/localcharset (Makefile.am): Likewise.
23488 * modules/long-options (Makefile.am): Likewise.
23489 * modules/lstat (Makefile.am): Likewise.
23490 * modules/malloc (Makefile.am): Likewise.
23491 * modules/mathl (Makefile.am): Likewise.
23492 * modules/mbchar (Makefile.am): Likewise.
23493 * modules/md2 (Makefile.am): Likewise.
23494 * modules/md4 (Makefile.am): Likewise.
23495 * modules/md5 (Makefile.am): Likewise.
23496 * modules/memcasecmp (Makefile.am): Likewise.
23497 * modules/memchr (Makefile.am): Likewise.
23498 * modules/memcmp (Makefile.am): Likewise.
23499 * modules/memcoll (Makefile.am): Likewise.
23500 * modules/memcpy (Makefile.am): Likewise.
23501 * modules/memmem (Makefile.am): Likewise.
23502 * modules/memmove (Makefile.am): Likewise.
23503 * modules/mempcpy (Makefile.am): Likewise.
23504 * modules/memrchr (Makefile.am): Likewise.
23505 * modules/memset (Makefile.am): Likewise.
23506 * modules/memxor (Makefile.am): Likewise.
23507 * modules/mkancesdirs (Makefile.am): Likewise.
23508 * modules/mkdir-p (Makefile.am): Likewise.
23509 * modules/mkdir (Makefile.am): Likewise.
23510 * modules/mkdtemp (Makefile.am): Likewise.
23511 * modules/mkstemp (Makefile.am): Likewise.
23512 * modules/mktime (Makefile.am): Likewise.
23513 * modules/modechange (Makefile.am): Likewise.
23514 * modules/mountlist (Makefile.am): Likewise.
23515 * modules/nanosleep (Makefile.am): Likewise.
23516 * modules/obstack (Makefile.am): Likewise.
23517 * modules/openat (Makefile.am): Likewise.
23518 * modules/pagealign_alloc (Makefile.am): Likewise.
23519 * modules/pathmax (Makefile.am): Likewise.
23520 * modules/physmem (Makefile.am): Likewise.
23521 * modules/poll (Makefile.am): Likewise.
23522 * modules/posixtm (Makefile.am): Likewise.
23523 * modules/posixver (Makefile.am): Likewise.
23524 * modules/putenv (Makefile.am): Likewise.
23525 * modules/quote (Makefile.am): Likewise.
23526 * modules/quotearg (Makefile.am): Likewise.
23527 * modules/raise (Makefile.am): Likewise.
23528 * modules/read-file (Makefile.am): Likewise.
23529 * modules/readline (Makefile.am): Likewise.
23530 * modules/readlink (Makefile.am): Likewise.
23531 * modules/readtokens (Makefile.am): Likewise.
23532 * modules/readutmp (Makefile.am): Likewise.
23533 * modules/realloc (Makefile.am): Likewise.
23534 * modules/regex (Makefile.am): Likewise.
23535 * modules/rename-dest-slash (Makefile.am): Likewise.
23536 * modules/rename (Makefile.am): Likewise.
23537 * modules/rijndael (Makefile.am): Likewise.
23538 * modules/rmdir (Makefile.am): Likewise.
23539 * modules/rpmatch (Makefile.am): Likewise.
23540 * modules/safe-read (Makefile.am): Likewise.
23541 * modules/safe-write (Makefile.am): Likewise.
23542 * modules/same-inode (Makefile.am): Likewise.
23543 * modules/same (Makefile.am): Likewise.
23544 * modules/save-cwd (Makefile.am): Likewise.
23545 * modules/savedir (Makefile.am): Likewise.
23546 * modules/setenv (Makefile.am): Likewise.
23547 * modules/settime (Makefile.am): Likewise.
23548 * modules/sha1 (Makefile.am): Likewise.
23549 * modules/sig2str (Makefile.am): Likewise.
23550 * modules/snprintf (Makefile.am): Likewise.
23551 * modules/stat-macros (Makefile.am): Likewise.
23552 * modules/stat-time (Makefile.am): Likewise.
23553 * modules/stdbool (Makefile.am): Likewise.
23554 * modules/stdint (Makefile.am): Likewise.
23555 * modules/stdlib-safer (Makefile.am): Likewise.
23556 * modules/stpcpy (Makefile.am): Likewise.
23557 * modules/stpncpy (Makefile.am): Likewise.
23558 * modules/strcase (Makefile.am): Likewise.
23559 * modules/strcasestr (Makefile.am): Likewise.
23560 * modules/strchrnul (Makefile.am): Likewise.
23561 * modules/strcspn (Makefile.am): Likewise.
23562 * modules/strdup (Makefile.am): Likewise.
23563 * modules/strerror (Makefile.am): Likewise.
23564 * modules/strftime (Makefile.am): Likewise.
23565 * modules/strndup (Makefile.am): Likewise.
23566 * modules/strnlen (Makefile.am): Likewise.
23567 * modules/strpbrk (Makefile.am): Likewise.
23568 * modules/strsep (Makefile.am): Likewise.
23569 * modules/strstr (Makefile.am): Likewise.
23570 * modules/strtod (Makefile.am): Likewise.
23571 * modules/strtoimax (Makefile.am): Likewise.
23572 * modules/strtok_r (Makefile.am): Likewise.
23573 * modules/strtol (Makefile.am): Likewise.
23574 * modules/strtoll (Makefile.am): Likewise.
23575 * modules/strtoul (Makefile.am): Likewise.
23576 * modules/strtoull (Makefile.am): Likewise.
23577 * modules/strtoumax (Makefile.am): Likewise.
23578 * modules/strverscmp (Makefile.am): Likewise.
23579 * modules/sys_socket (Makefile.am): Likewise.
23580 * modules/sys_stat (Makefile.am): Likewise.
23581 * modules/sysexits (Makefile.am): Likewise.
23582 * modules/time_r (Makefile.am): Likewise.
23583 * modules/timegm (Makefile.am): Likewise.
23584 * modules/timespec (Makefile.am): Likewise.
23585 * modules/tmpfile-safer (Makefile.am): Likewise.
23586 * modules/trim (Makefile.am): Likewise.
23587 * modules/unistd-safer (Makefile.am): Likewise.
23588 * modules/unlinkdir (Makefile.am): Likewise.
23589 * modules/unlocked-io (Makefile.am): Likewise.
23590 * modules/userspec (Makefile.am): Likewise.
23591 * modules/utime (Makefile.am): Likewise.
23592 * modules/utimecmp (Makefile.am): Likewise.
23593 * modules/utimens (Makefile.am): Likewise.
23594 * modules/vasnprintf (Makefile.am): Likewise.
23595 * modules/vasprintf (Makefile.am): Likewise.
23596 * modules/vsnprintf (Makefile.am): Likewise.
23597 * modules/xalloc (Makefile.am): Likewise.
23598 * modules/xgetcwd (Makefile.am): Likewise.
23599 * modules/xnanosleep (Makefile.am): Likewise.
23600 * modules/xreadlink (Makefile.am): Likewise.
23601 * modules/xstrtod (Makefile.am): Likewise.
23602 * modules/xstrtol (Makefile.am): Likewise.
23603 * modules/xstrtold (Makefile.am): Likewise.
23604 * modules/yesno (Makefile.am): Likewise.
23605 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
23607 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
23609 * modules/error (Makefile.am): Distribute files through
23610 EXTRA_DIST, not lib_SOURCES.
23612 2006-10-12 Eric Blake <ebb9@byu.net>
23614 * modules/error (Makefile.am): Distribute files in /lib.
23615 * modules/obstack (Makefile.am): Likewise.
23617 2006-10-12 Bruno Haible <bruno@clisp.org>
23619 * modules/acl (Makefile.am): Distribute all files in lib/ through
23621 * modules/arcfour (Makefile.am): Likewise.
23622 * modules/arctwo (Makefile.am): Likewise.
23623 * modules/argmatch (Makefile.am): Likewise.
23624 * modules/argz (Makefile.am): Likewise.
23625 * modules/atexit (Makefile.am): Likewise.
23626 * modules/backupfile (Makefile.am): Likewise.
23627 * modules/c-strtod (Makefile.am): Likewise.
23628 * modules/c-strtold (Makefile.am): Likewise.
23629 * modules/calloc (Makefile.am): Likewise.
23630 * modules/canon-host (Makefile.am): Likewise.
23631 * modules/canonicalize (Makefile.am): Likewise.
23632 * modules/chdir-long (Makefile.am): Likewise.
23633 * modules/chdir-safer (Makefile.am): Likewise.
23634 * modules/check-version (Makefile.am): Likewise.
23635 * modules/chown (Makefile.am): Likewise.
23636 * modules/cloexec (Makefile.am): Likewise.
23637 * modules/close-stream (Makefile.am): Likewise.
23638 * modules/closeout (Makefile.am): Likewise.
23639 * modules/crc (Makefile.am): Likewise.
23640 * modules/cycle-check (Makefile.am): Likewise.
23641 * modules/des (Makefile.am): Likewise.
23642 * modules/dirfd (Makefile.am): Likewise.
23643 * modules/dirname (Makefile.am): Likewise.
23644 * modules/dup2 (Makefile.am): Likewise.
23645 * modules/euidaccess (Makefile.am): Likewise.
23646 * modules/exclude (Makefile.am): Likewise.
23647 * modules/exitfail (Makefile.am): Likewise.
23648 * modules/fcntl-safer (Makefile.am): Likewise.
23649 * modules/file-type (Makefile.am): Likewise.
23650 * modules/fileblocks (Makefile.am): Likewise.
23651 * modules/filemode (Makefile.am): Likewise.
23652 * modules/filenamecat (Makefile.am): Likewise.
23653 * modules/fnmatch (Makefile.am): Likewise.
23654 * modules/fopen-safer (Makefile.am): Likewise.
23655 * modules/fpending (Makefile.am): Likewise.
23656 * modules/fprintftime (Makefile.am): Likewise.
23657 * modules/free (Makefile.am): Likewise.
23658 * modules/fsusage (Makefile.am): Likewise.
23659 * modules/ftruncate (Makefile.am): Likewise.
23660 * modules/fts (Makefile.am): Likewise.
23661 * modules/gc (Makefile.am): Likewise.
23662 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
23663 * modules/getaddrinfo (Makefile.am): Likewise.
23664 * modules/getcwd (Makefile.am): Likewise.
23665 * modules/getdelim (Makefile.am): Likewise.
23666 * modules/getdomainname (Makefile.am): Likewise.
23667 * modules/getgroups (Makefile.am): Likewise.
23668 * modules/gethostname (Makefile.am): Likewise.
23669 * modules/gethrxtime (Makefile.am): Likewise.
23670 * modules/getline (Makefile.am): Likewise.
23671 * modules/getloadavg (Makefile.am): Likewise.
23672 * modules/getlogin_r (Makefile.am): Likewise.
23673 * modules/getopt (Makefile.am): Likewise.
23674 * modules/getpass (Makefile.am): Likewise.
23675 * modules/getpass-gnu (Makefile.am): Likewise.
23676 * modules/getsubopt (Makefile.am): Likewise.
23677 * modules/gettime (Makefile.am): Likewise.
23678 * modules/gettimeofday (Makefile.am): Likewise.
23679 * modules/getugroups (Makefile.am): Likewise.
23680 * modules/getusershell (Makefile.am): Likewise.
23681 * modules/glob (Makefile.am): Likewise.
23682 * modules/group-member (Makefile.am): Likewise.
23683 * modules/hard-locale (Makefile.am): Likewise.
23684 * modules/hash (Makefile.am): Likewise.
23685 * modules/hmac-md5 (Makefile.am): Likewise.
23686 * modules/hmac-sha1 (Makefile.am): Likewise.
23687 * modules/human (Makefile.am): Likewise.
23688 * modules/idcache (Makefile.am): Likewise.
23689 * modules/imaxabs (Makefile.am): Likewise.
23690 * modules/imaxdiv (Makefile.am): Likewise.
23691 * modules/inet_ntop (Makefile.am): Likewise.
23692 * modules/inet_pton (Makefile.am): Likewise.
23693 * modules/inttostr (Makefile.am): Likewise.
23694 * modules/isapipe (Makefile.am): Likewise.
23695 * modules/lchown (Makefile.am): Likewise.
23696 * modules/long-options (Makefile.am): Likewise.
23697 * modules/lstat (Makefile.am): Likewise.
23698 * modules/malloc (Makefile.am): Likewise.
23699 * modules/mathl (Makefile.am): Likewise.
23700 * modules/mbchar (Makefile.am): Likewise.
23701 * modules/md2 (Makefile.am): Likewise.
23702 * modules/md4 (Makefile.am): Likewise.
23703 * modules/md5 (Makefile.am): Likewise.
23704 * modules/memcasecmp (Makefile.am): Likewise.
23705 * modules/memchr (Makefile.am): Likewise.
23706 * modules/memcmp (Makefile.am): Likewise.
23707 * modules/memcoll (Makefile.am): Likewise.
23708 * modules/memcpy (Makefile.am): Likewise.
23709 * modules/memmem (Makefile.am): Likewise.
23710 * modules/memmove (Makefile.am): Likewise.
23711 * modules/mempcpy (Makefile.am): Likewise.
23712 * modules/memrchr (Makefile.am): Likewise.
23713 * modules/memset (Makefile.am): Likewise.
23714 * modules/memxor (Makefile.am): Likewise.
23715 * modules/mkancesdirs (Makefile.am): Likewise.
23716 * modules/mkdir (Makefile.am): Likewise.
23717 * modules/mkdir-p (Makefile.am): Likewise.
23718 * modules/mkdtemp (Makefile.am): Likewise.
23719 * modules/mkstemp (Makefile.am): Likewise.
23720 * modules/mktime (Makefile.am): Likewise.
23721 * modules/modechange (Makefile.am): Likewise.
23722 * modules/mountlist (Makefile.am): Likewise.
23723 * modules/nanosleep (Makefile.am): Likewise.
23724 * modules/openat (Makefile.am): Likewise.
23725 * modules/pagealign_alloc (Makefile.am): Likewise.
23726 * modules/physmem (Makefile.am): Likewise.
23727 * modules/poll (Makefile.am): Likewise.
23728 * modules/posixtm (Makefile.am): Likewise.
23729 * modules/posixver (Makefile.am): Likewise.
23730 * modules/putenv (Makefile.am): Likewise.
23731 * modules/quote (Makefile.am): Likewise.
23732 * modules/quotearg (Makefile.am): Likewise.
23733 * modules/raise (Makefile.am): Likewise.
23734 * modules/read-file (Makefile.am): Likewise.
23735 * modules/readline (Makefile.am): Likewise.
23736 * modules/readlink (Makefile.am): Likewise.
23737 * modules/readtokens (Makefile.am): Likewise.
23738 * modules/readutmp (Makefile.am): Likewise.
23739 * modules/realloc (Makefile.am): Likewise.
23740 * modules/regex (Makefile.am): Likewise.
23741 * modules/rename (Makefile.am): Likewise.
23742 * modules/rename-dest-slash (Makefile.am): Likewise.
23743 * modules/rijndael (Makefile.am): Likewise.
23744 * modules/rmdir (Makefile.am): Likewise.
23745 * modules/rpmatch (Makefile.am): Likewise.
23746 * modules/safe-read (Makefile.am): Likewise.
23747 * modules/safe-write (Makefile.am): Likewise.
23748 * modules/same (Makefile.am): Likewise.
23749 * modules/save-cwd (Makefile.am): Likewise.
23750 * modules/savedir (Makefile.am): Likewise.
23751 * modules/setenv (Makefile.am): Likewise.
23752 * modules/settime (Makefile.am): Likewise.
23753 * modules/sha1 (Makefile.am): Likewise.
23754 * modules/sig2str (Makefile.am): Likewise.
23755 * modules/snprintf (Makefile.am): Likewise.
23756 * modules/stdlib-safer (Makefile.am): Likewise.
23757 * modules/stpcpy (Makefile.am): Likewise.
23758 * modules/stpncpy (Makefile.am): Likewise.
23759 * modules/strcase (Makefile.am): Likewise.
23760 * modules/strcasestr (Makefile.am): Likewise.
23761 * modules/strchrnul (Makefile.am): Likewise.
23762 * modules/strcspn (Makefile.am): Likewise.
23763 * modules/strdup (Makefile.am): Likewise.
23764 * modules/strerror (Makefile.am): Likewise.
23765 * modules/strftime (Makefile.am): Likewise.
23766 * modules/strndup (Makefile.am): Likewise.
23767 * modules/strnlen (Makefile.am): Likewise.
23768 * modules/strpbrk (Makefile.am): Likewise.
23769 * modules/strsep (Makefile.am): Likewise.
23770 * modules/strstr (Makefile.am): Likewise.
23771 * modules/strtod (Makefile.am): Likewise.
23772 * modules/strtoimax (Makefile.am): Likewise.
23773 * modules/strtok_r (Makefile.am): Likewise.
23774 * modules/strtol (Makefile.am): Likewise.
23775 * modules/strtoll (Makefile.am): Likewise.
23776 * modules/strtoul (Makefile.am): Likewise.
23777 * modules/strtoull (Makefile.am): Likewise.
23778 * modules/strtoumax (Makefile.am): Likewise.
23779 * modules/strverscmp (Makefile.am): Likewise.
23780 * modules/time_r (Makefile.am): Likewise.
23781 * modules/timegm (Makefile.am): Likewise.
23782 * modules/tmpfile-safer (Makefile.am): Likewise.
23783 * modules/unistd-safer (Makefile.am): Likewise.
23784 * modules/unlinkdir (Makefile.am): Likewise.
23785 * modules/userspec (Makefile.am): Likewise.
23786 * modules/utime (Makefile.am): Likewise.
23787 * modules/utimecmp (Makefile.am): Likewise.
23788 * modules/utimens (Makefile.am): Likewise.
23789 * modules/vasnprintf (Makefile.am): Likewise.
23790 * modules/vasprintf (Makefile.am): Likewise.
23791 * modules/vsnprintf (Makefile.am): Likewise.
23792 * modules/xalloc (Makefile.am): Likewise.
23793 * modules/xgetcwd (Makefile.am): Likewise.
23794 * modules/xnanosleep (Makefile.am): Likewise.
23795 * modules/xreadlink (Makefile.am): Likewise.
23796 * modules/xstrtod (Makefile.am): Likewise.
23797 * modules/xstrtol (Makefile.am): Likewise.
23798 * modules/xstrtold (Makefile.am): Likewise.
23799 * modules/yesno (Makefile.am): Likewise.
23801 2006-10-12 Jim Meyering <jim@meyering.net>
23803 * m4/getloadavg.m4: Revert the change below.
23805 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
23806 lib/getloadavg.c using "ls -L", not "test -f". The latter would
23807 fail with a symlink, which is what coreutils' ./bootstrap now
23808 creates by default.
23810 2006-10-12 Bruno Haible <bruno@clisp.org>
23812 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
23814 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
23815 MSVC and mingw explicitly.
23817 2006-10-11 Simon Josefsson <jas@extundo.com>
23818 Bruno Haible <bruno@clisp.org>
23820 Add support for multiple gnulib-tool invocations in the scope of a
23821 single configure.ac file.
23822 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
23823 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
23824 with the same contents as the _LIBADD variable.
23825 (func_emit_initmacro_start, func_emit_initmacro_end,
23826 func_emit_initmacro_done): New functions.
23827 (func_import, func_create_testdir): Invoke them. Allow the identifiers
23828 gl_LIBOBJS and gl_LTLIBOBJS.
23830 2006-10-11 Bruno Haible <bruno@clisp.org>
23832 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
23833 (func_create_testdir): Don't create po/Makefile.am, don't invoke
23834 autoreconf. Instead, invoke autopoint explicitly but move back the
23835 *.m4 files from gnulib.
23837 2006-10-11 Bruno Haible <bruno@clisp.org>
23839 * gnulib-tool (func_usage): Make module names after --create-testdir
23841 (func_create_testdir): If no module was specified, use nearly all
23844 2006-10-12 Jim Meyering <jim@meyering.net>
23846 Big performance improvement for fts-based tools that use FTS_NOSTAT.
23847 Avoid spurious inode-mismatch problems on non-POSIX file systems.
23848 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
23849 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
23850 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
23851 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
23852 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
23853 (fts_set_stat_required): New function.
23854 (fts_open): Defer the calls to fts_stat, if possible or requested.
23855 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
23856 into fts_stat itself.
23857 (fts_read): Perform any required (deferred) fts_stat call.
23858 (fts_build): Likewise, for the directory we're about to open and read.
23859 In the readdir loop, carefully decide whether each entry will require
23860 an eventual call to fts_stat, using dirent.d_type info if available.
23861 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
23862 a command line argument into this function. Update all callers.
23863 Map a return value of FTS_DOT to FTS_D for a command line argument.
23864 * modules/fts (Depends-on): Add d-type. Alphabetize.
23865 Thanks to Miklos Szeredi for his tenacity and for the initial
23866 bug report about "find" failing on a FUSE-based file system.
23868 * lib/fts.c (fts_open): Use consistent indentation.
23870 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
23872 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
23873 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
23874 reported by Jim Meyering. All uses of cache variables renamed
23875 to match Autoconf's.
23876 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
23879 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
23880 Fix misspelling in diagnostic.
23882 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
23884 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
23885 defined. Problem reported by Matthew Woehlke.
23887 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
23888 Add support for Tandem NonStop R series.
23889 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
23892 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
23893 (has_trailing_slash): Omit size arg; all callers changed.
23894 Omit 'inline', since it doesn't help performance and we'd
23895 need to configure it.
23896 Don't count //, ///, etc. as having a trailing slash.
23897 As a side effect, this removes a C99ism reported by Matthew Woehlke.
23898 (rpl_rename_dest_slash): On failure, use rename's errno rather
23899 than (in some cases) an incorrect or junk errno.
23900 Simplify code by removing need to compute length; this does
23901 cause it to make two passes instead of one over the file name,
23904 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
23905 change, since Autoconf's version may no longer be appropriate now
23906 that we are using CVS Autoconf's version. Add support for Tandem.
23908 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
23909 Bruno Haible <bruno@clisp.org>
23911 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
23912 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
23913 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
23914 gl_AC_TYPE_LONG_LONG.
23916 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
23917 instead of HAVE_LONG_LONG.
23918 * lib/printf-args.c (printf_fetchargs): Likewise.
23919 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23920 * lib/vasnprintf.c (VASNPRINTF): Likewise.
23921 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
23922 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
23923 gl_AC_TYPE_LONG_LONG.
23925 2006-10-11 Bruno Haible <bruno@clisp.org>
23927 * m4/longlong.m4: Add comments.
23928 * m4/ulonglong.m4: Likewise.
23930 2006-10-10 Bruno Haible <bruno@clisp.org>
23932 Make it possible to #define stpcpy, strdup to aliases.
23933 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
23934 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
23936 2006-10-10 Bruno Haible <bruno@clisp.org>
23938 Make it possible to #define gcd to an alias.
23939 * lib/gcd.c: Include config.h.
23941 2006-10-10 Bruno Haible <bruno@clisp.org>
23943 Make it possible to #define c_isascii to an alias.
23944 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
23945 defined. Undefine the macros before defining them, to avoid gcc
23947 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
23948 define NO_C_CTYPE_MACROS early.
23950 2006-10-10 Bruno Haible <bruno@clisp.org>
23952 Make it possible to #define set_program_name to an alias.
23953 * lib/progname.c: Don't undefine set_program_name; instead, undefine
23954 ENABLE_RELOCATABLE early.
23956 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
23958 Port to Tandem NSK OSS, which has 64-bit signed int but at most
23959 32-bit unsigned int. Problem reported by Matthew Woehlke in:
23960 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
23961 More generally, don't assume that 64-bit signed int is available
23962 if unsigned int is, and vice versa.
23963 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
23964 unsigned symbols, not on their signed counterparts.
23965 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
23966 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
23967 (UINT64_C, UINTMAX_C):
23969 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
23970 unsigned counterparts.
23971 (Have_long_long, Unsigned): New macros.
23972 (Int): Renamed from INT.
23973 (strtoimax): Use the new macros.
23974 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
23975 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
23976 * modules/inttypes (inttypes.h): Substitute
23977 HAVE_UNSIGNED_LONG_LONG_INT.
23978 * modules/stdint (stdint.h): Likewise.
23979 (Files): Add m4/ulonglong.m4.
23981 2006-10-10 Bruno Haible <bruno@clisp.org>
23983 Fix a gcc -Wshadow warning.
23984 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
23986 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
23987 gl_linked_indexof_from_to): Likewise.
23988 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
23990 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
23992 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
23993 Reported by Eric Blake.
23995 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
23997 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
23998 for NetBSD. Problem reported by Bruno Haible.
24000 2006-10-09 Jim Meyering <jim@meyering.net>
24002 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
24003 Patch from Bruno Haible.
24005 2006-10-09 Jim Meyering <jim@meyering.net>
24007 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
24008 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
24009 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
24011 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
24013 Don't include <config.h> twice; this doesn't work in some cases,
24014 e.g., when config.h has "#define intmax_t long long int" and
24015 we include <config.h>, <inttypes.h>, <config.h> in that order.
24016 Problem reported by Matthew Woehlke in:
24017 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
24018 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
24019 * lib/fts-cycle.c: Don't include config.h.
24020 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
24021 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
24022 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
24023 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
24025 * lib/xstrtoumax.c: Likewise.
24026 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
24027 __strtol and the like, so that this module is more like its siblings.
24028 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
24029 Remove; no longer needed now that we assume gnulib inttypes.h.
24031 2006-10-08 Bruno Haible <bruno@clisp.org>
24033 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
24036 2006-10-07 Jim Meyering <jim@meyering.net>
24038 * modules/inttypes (inttypes.h): Revert what seems to have been
24039 an inadvertent part of today's change: use "|", not "/" in the
24040 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
24042 2006-10-07 Bruno Haible <bruno@clisp.org>
24044 * modules/sublist: New file.
24046 2006-10-07 Bruno Haible <bruno@clisp.org>
24048 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
24049 * modules/argz (argz.h): Likewise.
24050 * modules/arpa_inet (arpa/inet.h): Likewise.
24051 * modules/byteswap (byteswap.h): Likewise.
24052 * modules/configmake (configmake.h): Likewise.
24053 * modules/fcntl (fcntl.h): Likewise.
24054 * modules/fnmatch (fnmatch.h): Likewise.
24055 * modules/getopt (getopt.h): Likewise.
24056 * modules/glob (glob.h): Likewise.
24057 * modules/inttypes (inttypes.h): Likewise.
24058 * modules/netinet_in (netinet/in.h): Likewise.
24059 * modules/poll (poll.h): Likewise.
24060 * modules/stdbool (stdbool.h): Likewise.
24061 * modules/stdint (stdint.h): Likewise.
24062 * modules/sys_select (sys/select.h): Likewise.
24063 * modules/sys_socket (sys/socket.h): Likewise.
24064 * modules/sys_stat (sys/stat.h): Likewise.
24065 * modules/sysexits (sysexits.h): Likewise.
24066 * modules/unistd (unistd.h): Likewise.
24067 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24068 Add a "DO NOT EDIT" comment to the generated file.
24069 (func_import): Likewise for gnulib-comp.m4.
24071 2006-10-07 Bruno Haible <bruno@clisp.org>
24073 * lib/gl_sublist.h: New file.
24074 * lib/gl_sublist.c: New file.
24076 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
24078 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
24079 name (relative to the original working directory) and the file
24080 name component (relative to the temporary working directory). All
24082 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
24083 * lib/mkdir-p.c (make_dir_parents): Likewise.
24084 * lib/mkdir-p.h (make_dir_parents): Likewise.
24086 2006-10-06 Eric Blake <ebb9@byu.net>
24088 Define several macros for use by the clean-temp module.
24089 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
24090 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
24091 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
24093 * lib/clean-temp.h (close_stream_temp): New declaration.
24094 * lib/clean-temp.c (includes): Pull in headers according to what
24095 other modules are in use.
24096 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
24098 2006-10-06 Bruno Haible <bruno@clisp.org>
24100 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
24101 instead of fopen, fwriteerror.
24103 2006-10-06 Bruno Haible <bruno@clisp.org>
24105 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
24106 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
24108 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
24109 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
24110 Return an error indicator.
24111 Suggested by Eric Blake.
24113 2006-10-06 Bruno Haible <bruno@clisp.org>
24115 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
24116 Reported by Eric Blake.
24118 2006-10-06 Bruno Haible <bruno@clisp.org>
24120 * modules/closeout (Description): Mention stderr too.
24122 2006-10-06 Bruno Haible <bruno@clisp.org>
24123 and Paul Eggert <eggert@cs.ucla.edu>
24125 * lib/closeout.c (close_stdout): Also close stderr.
24126 * lib/closeout.h: Update comment.
24128 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
24130 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
24131 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
24132 * lib/dirchownmod.c: Include lchown.h.
24133 * lib/lchown.c: Don't include files that lchown.h now includes.
24134 Don't declare chown, since lchown.h now does that.
24135 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
24136 (lchown): Define to rpl_chown if lchown is declared but
24137 does not exist. Declare using a prototype if lchown is not
24138 declared. Add a copyright notice.
24139 * lib/mkstemp.h: Include <unistd.h>.
24140 * lib/openat.c: Include lchown.h.
24142 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
24143 we now test for that separately.
24144 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
24145 rather than O_NOFOLLOW, when testing whether it's possible to
24146 avoid a race condition reliably.
24147 * lib/savewd.c (savewd_chdir): Likewise.
24149 Remove macros that are no longer needed now that stdint.h is
24151 * lib/fsusage.c (UINTMAX_MAX): Remove.
24152 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
24153 * lib/utimecmp.c (SIZE_MAX): Remove.
24155 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
24157 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
24158 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
24161 2006-10-05 Bruno Haible <bruno@clisp.org>
24163 * lib/gl_list.h (gl_sortedlist_search_from_to,
24164 gl_sortedlist_indexof_from_to): New declarations.
24165 (gl_list_implementation): New fields sortedlist_search_from_to,
24166 sortedlist_indexof_from_to.
24167 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
24169 * lib/gl_list.c (gl_sortedlist_search_from_to,
24170 gl_sortedlist_indexof_from_to): New functions.
24171 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
24173 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
24174 (gl_array_sortedlist_search_from_to): New function.
24175 (gl_array_list_implementation): Update.
24176 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
24178 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
24179 (gl_carray_sortedlist_search_from_to): New function.
24180 (gl_carray_list_implementation): Update.
24181 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
24182 gl_linked_sortedlist_indexof_from_to): New functions.
24183 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
24184 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
24185 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
24186 gl_tree_sortedlist_indexof_from_to): New functions.
24187 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
24188 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
24190 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
24191 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
24194 2006-10-05 Bruno Haible <bruno@clisp.org>
24196 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
24197 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
24198 (struct gl_list_implementation): Add fields search_from_to,
24199 indexof_from_to. Remove fields search, indexof.
24200 (gl_list_search): Use the search_from_to method.
24201 (gl_list_search_from, gl_list_search_from_to): New functions.
24202 (gl_list_indexof): Use the indexof_from_to method.
24203 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
24204 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
24205 (gl_list_search_from, gl_list_search_from_to): New functions.
24206 (gl_list_indexof): Use the indexof_from_to method.
24207 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
24208 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
24209 gl_array_indexof. Add start_index, end_index arguments.
24210 (gl_array_search_from_to): Renamed from gl_array_search. Add
24211 start_index, end_index arguments.
24212 (gl_array_remove, gl_array_list_implementation): Update.
24213 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
24214 gl_carray_indexof. Add start_index, end_index arguments.
24215 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
24216 start_index, end_index arguments.
24217 (gl_carray_remove, gl_carray_list_implementation): Update.
24218 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
24219 gl_linked_search. Add start_index, end_index arguments.
24220 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
24221 start_index, end_index arguments.
24222 (gl_linked_remove): Update.
24223 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
24224 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
24225 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
24227 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
24228 gl_tree_search. Add start_index, end_index arguments.
24229 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
24230 start_index, end_index arguments.
24231 (gl_tree_remove): Update.
24232 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
24233 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
24234 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
24236 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
24237 gl_tree_search. Add start_index, end_index arguments.
24238 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
24239 start_index, end_index arguments.
24240 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
24242 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
24244 2006-10-05 Bruno Haible <bruno@clisp.org>
24246 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
24248 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
24249 fwriteerror_temp): New declarations.
24250 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
24251 (descriptors): New variable.
24252 (cleanup): First, close the descriptors.
24253 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
24254 fclose_temp, fwriteerror_temp): New functions.
24256 2006-10-04 Jim Meyering <jim@meyering.net>
24258 * lib/fts.c (fts_open): Tiny comment change.
24260 2006-10-04 Bruno Haible <bruno@clisp.org>
24262 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
24263 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
24265 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
24266 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
24267 gl_LOCK_EARLY_BODY.
24268 (gl_LOCK): Require gl_LOCK_BODY.
24270 2006-10-04 Bruno Haible <bruno@clisp.org>
24272 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
24273 (gl_oset_search_atleast): New declaration.
24274 (struct gl_oset_implementation): Add field 'search_atleast'.
24275 (gl_oset_search_atleast): New inline function.
24276 * lib/gl_oset.c (gl_oset_search_atleast): New function.
24277 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
24278 (gl_array_oset_implementation): Update.
24279 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
24280 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
24281 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
24283 2006-10-04 Bruno Haible <bruno@clisp.org>
24285 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
24287 2006-10-03 Bruno Haible <bruno@clisp.org>
24289 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
24290 from gl_avltreehash_list_implementation.
24292 2006-10-03 Bruno Haible <bruno@clisp.org>
24294 * lib/gl_oset.c (gl_oset_add): Fix return type.
24296 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
24298 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
24300 2006-10-02 Eric Blake <ebb9@byu.net>
24302 * modules/strnlen (Depends-on): Add extensions.
24304 2006-10-02 Eric Blake <ebb9@byu.net>
24306 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
24307 definition in 2.60+.
24309 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
24311 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
24314 2006-10-02 Bruno Haible <bruno@clisp.org>
24316 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
24317 to the AUTOMAKE_OPTIONS.
24318 Reported by Jim Meyering.
24320 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
24322 Work around bug in Solaris 10 /proc file system:
24323 /proc/self/fd/NNN/.. isn't the parent directory of
24324 the directory whose file descriptor is NNN. This needs to
24325 be worked around at run time, not compile time, since a
24326 program might be built on Solaris 8, where things work, and
24328 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
24329 to use the following interface instead:
24330 (OPENAT_BUFFER_SIZE): New macro.
24331 (openat_proc_name): New function.
24332 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
24333 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
24335 * lib/openat-proc.c: New file.
24336 * modules/openat (Files): Add lib/openat-proc.c.
24337 (Depends-on): Add same-inode, stdbool.
24338 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
24340 2006-09-29 Bruno Haible <bruno@clisp.org>
24342 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
24343 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
24344 argument. Set stdout_closed before testing for ferror, not after.
24345 (fwriteerror, fwriteerror_no_ebadf): New functions.
24347 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24349 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
24351 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
24353 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
24354 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
24356 2006-09-28 Jim Meyering <jim@meyering.net>
24358 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
24359 Include <unistd.h>.
24361 2006-09-28 Bruno Haible <bruno@clisp.org>
24363 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
24364 * modules/linkedhash-list (Depends-on): Likewise.
24365 * modules/rbtreehash-list (Depends-on): Likewise.
24367 2006-09-28 Bruno Haible <bruno@clisp.org>
24369 * lib/strndup.h: Simplify the redefinition of strndup.
24370 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
24371 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
24373 2006-09-28 Bruno Haible <bruno@clisp.org>
24375 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
24376 * lib/gl_linkedhash_list.c: Likewise.
24377 * lib/gl_rbtreehash_list.c: Likewise.
24379 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
24381 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
24384 * lib/__fpending.h: Don't include <stdio_ext.h> unless
24385 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
24386 it causes <stdio_ext.h> to cause a compile-time error.
24387 Problem reported by Nelson H. F. Beebe.
24388 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
24389 of HAVE_DECL___PENDING.
24391 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
24392 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
24395 2006-09-27 Jim Meyering <jim@meyering.net>
24397 This file could end up with a definition for a function
24398 named __strndup, rather than rpl_strndup on a system with
24399 incomplete weak_alias support.
24400 * lib/strndup.c (strndup): Rename from __strndup.
24401 Remove #defines that used to map __strndup to strndup.
24402 Don't use K&R prototypes.
24403 Remove LIBC-related code, since this file is not sync'd with glibc.
24404 * lib/strndup.h: Revamp, accordingly.
24405 * m4/strndup.m4: Modernize.
24407 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
24409 * modules/savewd (Depends-on): Add 'raise'.
24410 * lib/savewd.c: Include <signal.h>, for 'raise'.
24412 2006-09-26 Jim Meyering <jim@meyering.net>
24414 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
24415 when we detect Darwin 8.7.0's acl_get_file bug.
24416 Rearrange to perform the new (below) run-test while $LIBS
24417 contains any acl-related library. Set USE_ACL at the end.
24418 (gl_ACL_GET_FILE): New function.
24420 2006-09-26 Eric Blake <ebb9@byu.net>
24422 * lib/verror.c: Include <config.h> unconditionally.
24424 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
24426 * modules/clock-time (Maintainer): Add self.
24427 * modules/getlogin_r (Depends-on): Add extensions.
24429 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24431 * modules/clock-time: New module.
24432 * modules/nanosleep (Depends-on): Add clock-time.
24433 * modules/gethrxtime (Depends-on): Likewise.
24434 * modules/gettime (Depends-on): Likewise.
24435 * modules/settime (Depends-on): Likewise.
24437 * modules/fts-lgpl: Depend on openat.
24438 * modules/mkancesdirs: Depend on savewd.
24439 * modules/mkdir-p: Likewise.
24441 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24443 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
24445 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
24446 `gl_have_arbitrary_file_name_length_limit' to
24447 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
24448 actually works between configure runs.
24450 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24451 Bruno Haible <bruno@clisp.org>
24453 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
24455 2006-09-25 Jim Meyering <jim@meyering.net>
24457 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
24458 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
24460 2006-09-25 Eric Blake <ebb9@byu.net>
24462 * gnulib-tool (func_import, func_create_testdir): Fix typos in
24463 exec's in 2006-09-18 patch when shuffling fds.
24465 2006-09-25 Bruno Haible <bruno@clisp.org>
24467 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
24468 Reported by Jim Meyering.
24470 2006-09-24 Jim Meyering <jim@meyering.net>
24472 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
24473 compare a pointer against a literal "0". That caused failures with
24474 at least HP-UX's hpcc.
24476 2006-09-22 Simon Josefsson <jas@extundo.com>
24480 * modules/gc-hmac-sha1:
24481 * modules/gc-hmac-md5:
24483 * modules/gc-arcfour: Distribute more files.
24485 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24487 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
24488 (gl_linked_iterator_from_to): Initialize struct completely.
24489 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
24490 (gl_tree_iterator_from_to): Likewise
24491 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
24492 * lib/gl_array_list.c [lint] (gl_array_iterator)
24493 (gl_array_iterator_from_to): Likewise.
24494 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
24495 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
24496 (gl_carray_iterator_from_to): Likewise.
24498 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
24499 * lib/md4.c (md4_process_block): Remove unused variable.
24500 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
24501 parentheses for clarity.
24503 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24505 * modules/bison-i18n (Depends-on): Add gettext.
24507 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24509 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
24510 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
24511 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
24512 also add missing comma that caused broken test.
24513 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
24514 stdlib.h, for `abort'.
24515 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
24517 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
24518 include unistd.h if present, for `rmdir'.
24519 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
24521 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
24522 in the process include standard headers for prototypes.
24523 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
24524 gets declared on GNU/Linux.
24525 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
24526 unistd.h, for `rmdir'.
24527 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
24529 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
24531 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
24533 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
24535 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24537 * gnulib-tool (func_version): Create output all at once. This
24538 may help avoid triggering unnecessary SIGPIPEs, and at any
24539 rate it doesn't hurt.
24541 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24542 Bruno Haible <bruno@clisp.org>
24544 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
24545 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
24546 * m4/signed.m4 (bh_C_SIGNED): Likewise.
24548 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
24549 (gl_FUNC_VASPRINTF): Invoke it.
24551 2006-09-22 Bruno Haible <bruno@clisp.org>
24553 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
24554 getloadavg.c as first argument.
24556 2006-09-22 Bruno Haible <bruno@clisp.org>
24558 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
24559 at the beginning of the gl_INIT macro.
24560 * modules/getloadavg (configure.ac): Pass $gl_source_base to
24563 2006-09-22 Bruno Haible <bruno@clisp.org>
24565 * gnulib-tool (func_create_megatestdir): Don't include the config-h
24567 Suggested by Ralf Wildenhues.
24569 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
24571 Import this patch from libc:
24573 2006-09-06 Jakub Jelinek <jakub@redhat.com>
24575 * lib/regex_internal.c (re_string_reconstruct): Handle
24576 offset < pstr->valid_raw_len && pstr->offsets_needed case.
24577 Ensure no bytes read before raw_mbs array. Pass a saved copy of
24578 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
24579 re_string_context_at.
24581 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
24583 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
24584 gl_REGEX now does it for us.
24585 (gl_REGEX): Add test taken from
24586 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
24588 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
24589 Check that large offsets work. Modernize Autoconf usages.
24590 Prefer "yes" to mean a good thing rather than a bad.
24591 Don't put "#define mkstemp" in config.h, as this might interfere
24592 with standard system headers that "#define mkstemp mkstemp64".
24594 * modules/mkstemp (Depends-on): Add extensions, so that
24595 mkstemp is visible on some platforms.
24596 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
24597 (Include): Change to "mkstemp.h" from <stdlib.h>.
24598 (Files): Add mkstemp.h.
24600 * lib/mkstemp.h: New file, since some standard headers
24602 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
24603 Include "mkstemp.h".
24604 Make the _LIBC code resemble glibc original more,
24605 e.g., use K&R style.
24606 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
24607 (mkstemp): Remove, since mkstemp.h does this for us.
24608 * lib/stdlib--.h: Include mkstemp.h.
24610 Import this patch from libc:
24612 2006-04-07 Ulrich Drepper <drepper@redhat.com>
24614 * lib/tempname.c (__gen_tempname): Change attempts_min
24615 into a macro. Use preprocessor to decide how to initialize
24616 attempts [Coverity CID 67].
24618 2006-09-20 Bruno Haible <bruno@clisp.org>
24620 * lib/mkdtemp.c: Import from libc.
24621 2006-04-07 Ulrich Drepper <drepper@redhat.com>
24622 * sysdeps/posix/tempname.c (__gen_tempname): Change
24623 attempts_min into a macro. Use preprocessor to decide how to
24624 initialize attempts [Coverity CID 67].
24625 2001-11-27 Paul Eggert <eggert@twinsun.com>
24626 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
24627 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
24629 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24631 * gnulib-tool (func_exit): New function, to allow to pass the
24632 exit status portably through the trap. Use everywhere.
24633 (--help, --version): Signal a write error.
24634 (trap): catch SIGPIPE, for write errors.
24635 Exit at the end of the trap, with the correct exit status.
24637 2006-09-19 Karl Berry <karl@gnu.org>
24639 * doc/gnulib.texi: note about the license texinfo files.
24641 2006-09-19 Eric Blake <ebb9@byu.net>
24643 * gnulib-tool: Avoid space-tab.
24645 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
24647 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
24648 that prevented coreutils 6.1 from building. Problem reported
24649 by Petter Reinholdtsen.
24651 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
24653 * gnulib-tool (avoidlist): Fix typo that broke options like
24654 --avoid=lock that are used by coreutils bootstrap.
24656 2006-09-18 Mark D. Baushke <mdb@gnu.org>
24658 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
24659 more systematically.
24661 2006-09-18 Jim Meyering <jim@meyering.net>
24663 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
24665 2006-09-18 Bruno Haible <bruno@clisp.org>
24667 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
24669 2006-09-18 Bruno Haible <bruno@clisp.org>
24671 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
24672 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
24673 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
24674 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
24675 * m4/gettext.m4: Require autoconf >= 2.52.
24676 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
24677 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
24678 of gl_cv_header_inttypes_h.
24680 2006-09-18 Bruno Haible <bruno@clisp.org>
24682 * lib/javaversion.c: Include configmake.h.
24684 2006-09-18 Bruno Haible <bruno@clisp.org>
24686 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
24687 avoid that the while loops be executed in a subshell.
24689 2006-09-18 Bruno Haible <bruno@clisp.org>
24691 * MODULES.html.sh (func_module): Break long lines.
24692 Suggested by Bruce Korb <bkorb@gnu.org>.
24694 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24696 Speed up by a factor of 1.12.
24697 * gnulib-tool (nl): New variable.
24698 (func_import): Rewrite include directive extraction to only read each
24701 2006-09-17 Bruno Haible <bruno@clisp.org>
24703 * modules/javaversion (Makefile.am): Remove DEFS setting.
24704 (Depends-on): Add configmake, for PKGDATADIR definition.
24706 2006-09-17 Bruno Haible <bruno@clisp.org>
24708 * gnulib-tool (func_create_testdir): Rewrite all files at once.
24710 2006-09-17 Bruno Haible <bruno@clisp.org>
24712 * gnulib-tool (func_append): New function, stolen from libtool.m4.
24713 (func_modules_transitive_closure, func_modules_add_dummy,
24714 func_modules_to_filelist, func_import, func_create_testdir,
24715 func_create_megatestdir, ...): Use it wherever possible.
24716 Suggested by Ralf Wildenhues.
24718 2006-09-16 Karl Berry <karl@gnu.org>
24720 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
24721 to avoid sectioning errors.
24722 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
24723 [ifinfo]: blank line after @center-ed titles.
24724 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
24725 Spell FSF address consistently with others.
24726 (These changes approved by rms.)
24728 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24730 Speed up by a factor of 1.61.
24731 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
24732 already checked module names again.
24734 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24736 Speed up by a factor of 1.13.
24737 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
24738 for new_files, and the input to func_add_or_update.
24740 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24742 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
24743 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
24745 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
24747 * modules/mkancesdirs (Depends-on): Add fcntl.
24748 * modules/savewd: New file.
24749 * MODULES.html.sh (File system functions): Add savewd.
24751 * modules/configmake (Makefile.am): Add support for the
24752 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
24754 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
24756 * m4/savewd.m4: New file.
24758 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
24760 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
24761 (dirchownmod): New arg FD. All callers changed.
24762 Use FD rather than opening the directory ourself, as opening is
24763 now the caller's responsibility.
24764 * lib/dirchownmod.h: Likewise.
24765 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
24766 hosts that require <sys/types.h> before <sys/stat.h>. Include
24767 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
24768 (test_dir): Remove.
24769 (mkancesdirs): Return length of prefix of FILE that has already
24770 been made, or -2 if there is a child doing the work. Redo
24771 algorithm so that it is O(N) rather than O(N**2). Optimize away
24772 ".", and treat ".." specially since it might stray back into
24773 already-created areas. Use a subprocess if necessary. New arg
24774 WD; all users changed. MAKE_DIR function should now return 1
24775 if it creates a directory that is not readable. Return -2 if
24776 a child process is spun off.
24777 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
24778 Adjust signature to match code.
24779 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
24780 (make_dir_parents): Use a subprocess if necessary. New arg WD;
24782 * lib/savewd.c, lib/savewd.h: New files.
24784 2006-09-15 Jim Meyering <jim@meyering.net>
24786 * modules/rename-dest-slash: New module.
24787 * MODULES.html.sh (posix_compat): Add it here.
24789 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
24791 2006-09-15 Jim Meyering <jim@meyering.net>
24793 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
24796 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
24798 2006-09-15 Jim Meyering <jim@meyering.net>
24800 * lib/rename-dest-slash.c (has_trailing_slash): Use
24801 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
24802 (rpl_rename_dest_slash): Perform the cheaper trailing slash
24803 test before testing whether SRC is a directory.
24804 Suggestions from Bruno Haible.
24806 Avoid a warning about an unused variable.
24807 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
24808 into the #ifdef block where it's used.
24810 * lib/rename-dest-slash.c: New file.
24812 2006-09-14 Bruno Haible <bruno@clisp.org>
24814 * lib/allocsa.c: Include <config.h> unconditionally.
24815 * lib/asnprintf.c: Likewise.
24816 * lib/asprintf.c: Likewise.
24817 * lib/c-strcasecmp.c: Likewise.
24818 * lib/c-strcasestr.c: Likewise.
24819 * lib/c-strncasecmp.c: Likewise.
24820 * lib/c-strstr.c: Likewise.
24821 * lib/classpath.c: Likewise.
24822 * lib/clean-temp.c: Likewise.
24823 * lib/concatpath.c: Likewise.
24824 * lib/copy-file.c: Likewise.
24825 * lib/csharpcomp.c: Likewise.
24826 * lib/csharpexec.c: Likewise.
24827 * lib/execute.c: Likewise.
24828 * lib/fatal-signal.c: Likewise.
24829 * lib/findprog.c: Likewise.
24830 * lib/fwriteerror.c: Likewise.
24831 * lib/gl_array_list.c: Likewise.
24832 * lib/gl_array_oset.c: Likewise.
24833 * lib/gl_avltree_list.c: Likewise.
24834 * lib/gl_avltree_oset.c: Likewise.
24835 * lib/gl_avltreehash_list.c: Likewise.
24836 * lib/gl_carray_list.c: Likewise.
24837 * lib/gl_linked_list.c: Likewise.
24838 * lib/gl_linkedhash_list.c: Likewise.
24839 * lib/gl_list.c: Likewise.
24840 * lib/gl_oset.c: Likewise.
24841 * lib/gl_rbtree_list.c: Likewise.
24842 * lib/gl_rbtree_oset.c: Likewise.
24843 * lib/gl_rbtreehash_list.c: Likewise.
24844 * lib/imaxabs.c: Likewise.
24845 * lib/imaxdiv.c: Likewise.
24846 * lib/javacomp.c: Likewise.
24847 * lib/javaexec.c: Likewise.
24848 * lib/javaversion.c: Likewise.
24849 * lib/linebreak.c: Likewise.
24850 * lib/localcharset.c: Likewise.
24851 * lib/lock.c: Likewise.
24852 * lib/mbchar.c: Likewise.
24853 * lib/mbswidth.c: Likewise.
24854 * lib/mkdtemp.c: Likewise.
24855 * lib/pipe.c: Likewise.
24856 * lib/printf-args.c: Likewise.
24857 * lib/printf-parse.c: Likewise.
24858 * lib/progname.c: Likewise.
24859 * lib/progreloc.c: Likewise.
24860 * lib/readlink.c: Likewise.
24861 * lib/sh-quote.c: Likewise.
24862 * lib/stpcpy.c: Likewise.
24863 * lib/stpncpy.c: Likewise.
24864 * lib/strcasecmp.c: Likewise.
24865 * lib/strcasestr.c: Likewise.
24866 * lib/strcspn.c: Likewise.
24867 * lib/striconv.c: Likewise.
24868 * lib/strncasecmp.c: Likewise.
24869 * lib/strnlen1.c: Likewise.
24870 * lib/strstr.c: Likewise.
24871 * lib/strtok_r.c: Likewise.
24872 * lib/tls.c: Likewise.
24873 * lib/tmpdir.c: Likewise.
24874 * lib/unicodeio.c: Likewise.
24875 * lib/unsetenv.c: Likewise.
24876 * lib/vasnprintf.c: Likewise.
24877 * lib/vasprintf.c: Likewise.
24878 * lib/wait-process.c: Likewise.
24879 * lib/xallocsa.c: Likewise.
24880 * lib/xsetenv.c: Likewise.
24881 * lib/xstriconv.c: Likewise.
24883 2006-09-13 Simon Josefsson <jas@extundo.com>
24885 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
24886 that internally, suggested by Ralf Wildenhues
24887 <Ralf.Wildenhues@gmx.de>.
24889 2006-09-13 Simon Josefsson <jas@extundo.com>
24891 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
24893 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24895 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
24897 * lib/_fpending.c: Include <config.h> unconditionally, since we no
24898 longer worry about uses that don't define HAVE_CONFIG_H.
24899 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
24900 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
24901 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
24902 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
24903 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
24904 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
24905 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
24906 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
24907 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
24908 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
24909 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
24910 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
24911 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
24912 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
24913 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
24914 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
24915 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
24916 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
24917 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
24918 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
24919 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
24920 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
24921 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
24922 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
24923 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
24924 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
24925 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
24926 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
24927 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
24928 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
24929 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
24930 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
24931 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
24932 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
24933 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
24934 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
24935 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
24936 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
24937 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
24938 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
24939 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
24942 2006-09-13 Eric Blake <ebb9@byu.net>
24944 * lib/getopt.c: Fix typo in last commit.
24946 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
24948 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
24951 2006-09-12 Jim Meyering <jim@meyering.net>
24953 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
24954 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
24955 Reported by Nelson H. F. Beebe.
24957 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
24959 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
24960 program_invocation_name and program_invocation_short_name are
24962 * lib/argp-namefrob.h: Move declarations of program_invocation_name
24963 and program_invocation_short_name to argp.h, so they are visible
24965 * lib/argp.h: Likewise
24967 2006-09-10 Bruno Haible <bruno@clisp.org>
24969 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
24970 m4/inttypes_h.m4, m4/uintmax_t.m4.
24972 2006-09-10 Bruno Haible <bruno@clisp.org>
24974 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
24975 gl_AC_TYPE_UINTMAX_T.
24977 2006-09-10 Bruno Haible <bruno@clisp.org>
24979 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
24981 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
24983 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
24984 convention. Text proposed by Bruno Haible.
24985 (struct argp_option): Document the use of N_() wrappers.
24987 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
24988 '\v', and translate the two parts separately, instead of feeding
24989 the whole string to gettext. This allows to exclude
24990 '\v' from the strings visible to the translator by writing doc
24991 strings as N_("..") "\v" N_("..").
24993 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
24995 * config/srclist.txt: Undo latest change; the bug was fixed.
24997 2006-09-09 Bruno Haible <bruno@clisp.org>
24999 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
25000 assignments if building a library without libtool.
25001 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
25002 in func_emit_lib_Makefile_am.
25003 (func_import): When building a static library libfoo.a, arrange to
25004 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
25005 (func_create_testdir): Likewise.
25006 * modules/gc (configure.ac, Makefile.am): If building statically,
25007 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
25008 * modules/iconvme (configure.ac, Makefile.am): Likewise.
25009 * modules/striconv (configure.ac, Makefile.am): Likewise.
25010 Based on a suggestion by Ralf Wildenhues.
25012 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
25014 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
25015 Check for unistd.h too, since Autoconf doesn't assume POSIX.
25018 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
25019 Add year_2050_test to catch glibc bug 2821
25020 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
25022 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
25023 Prefer #ifdef to #if.
25025 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
25026 Return from 'main' instead of calling 'exit'.
25028 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
25030 * lib/mktime.c (guess_time_tm): Fix bug where mktime
25031 returned the maximum time_t value rather than (time_t) -1.
25032 Problem originally reported by William Bardwell
25033 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
25035 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
25037 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
25040 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
25042 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
25045 2006-09-08 Jim Meyering <jim@meyering.net>
25047 Don't make generated files read-only. That would bother too many
25048 people. However, do retain the ability to work when targets are
25049 read-only: remove the destination and temporary files before writing
25050 them (when generated via sed or echo), or by using the -f option for
25051 both cp and mv commands. Suggestion to use -f from Paul Eggert.
25052 * modules/alloca-opt, modules/argz, modules/arpa_inet:
25053 * modules/byteswap, modules/configmake, modules/fcntl:
25054 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
25055 * modules/localcharset, modules/netinet_in, modules/poll:
25056 * modules/stdbool, modules/stdint, modules/sys_select:
25057 * modules/sys_socket, modules/sys_stat, modules/sysexits:
25059 2006-09-08 Jim Meyering <jim@meyering.net>
25061 Avoid new build failure on FreeBSD 6.0.
25062 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
25063 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
25064 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
25066 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25068 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
25070 2006-09-07 Jim Meyering <jim@meyering.net>
25072 Fix global typo in last change: use chmod u-w, not chmod u-x.
25073 Spotted by Paul Eggert and Bruce Korb.
25074 * modules/alloca-opt, modules/argz, modules/arpa_inet:
25075 * modules/byteswap, modules/configmake, modules/fcntl:
25076 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
25077 * modules/localcharset, modules/netinet_in, modules/poll:
25078 * modules/stdbool, modules/stdint, modules/sys_select:
25079 * modules/sys_socket, modules/sys_stat, modules/sysexits:
25081 2006-09-06 Jim Meyering <jim@meyering.net>
25083 Make generated files be read-only.
25084 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
25085 Ensure that each generated file is now read-only.
25086 * modules/argz: Likewise.
25087 * modules/arpa_inet: Likewise.
25088 * modules/byteswap: Likewise.
25089 * modules/configmake: Likewise.
25090 * modules/fcntl: Likewise.
25091 * modules/fnmatch: Likewise.
25092 * modules/getopt: Likewise.
25093 * modules/glob: Likewise.
25094 * modules/inttypes: Likewise.
25095 * modules/netinet_in: Likewise.
25096 * modules/poll: Likewise.
25097 * modules/stdbool: Likewise.
25098 * modules/stdint: Likewise.
25099 * modules/sys_select: Likewise.
25100 * modules/sys_socket: Likewise.
25101 * modules/sys_stat: Likewise.
25102 * modules/sysexits: Likewise.
25103 * modules/localcharset: Same as above, but continue using temporary
25104 file named "t-$@" (why different?) rather than the "$@-t" used
25107 * modules/sysexits (Makefile.am): Replace literal occurrences
25108 of "sysexit.h" more readable, and more consistent, "$@".
25110 2006-09-06 Bruno Haible <bruno@clisp.org>
25112 * modules/striconv: New file.
25113 * modules/xstriconv: New file.
25114 * MODULES.html.sh (Internationalization functions): Add striconv,
25117 2006-09-06 Bruno Haible <bruno@clisp.org>
25119 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
25120 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
25121 not using libtool correctly.
25123 2006-09-06 Bruno Haible <bruno@clisp.org>
25125 * lib/striconv.h: New file.
25126 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
25128 * lib/xstriconv.h: New file.
25129 * lib/xstriconv.c: New file.
25131 2006-09-06 Bruno Haible <bruno@clisp.org>
25133 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
25136 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25138 * lib/argz_.h: Sync from Libtool.
25140 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
25141 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25143 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
25145 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
25147 * modules/trim: New file.
25149 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
25151 * lib/trim.h: New file.
25152 * lib/trim.c: New file.
25154 2006-09-05 Bruno Haible <bruno@clisp.org>
25156 * MODULES.html.sh (String handling): Add trim.
25158 2006-09-04 Karl Berry <karl@gnu.org>
25160 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
25161 until next release.
25163 2006-09-03 Bruno Haible <bruno@clisp.org>
25165 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
25168 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
25170 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
25171 not gl_GETLOADAVG. Omit unneeded semicolons.
25172 Problems reported by Ralf Wildenhues in
25173 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
25174 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
25175 at the end, which is the usual gnulib style.
25177 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
25178 of doing all the work ourselves.
25179 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
25180 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
25182 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
25184 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
25185 Problem reported by Ralf Wildenhues in
25186 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
25188 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
25189 HAVE_STRUCT_STATFS_F_FSTYPENAME.
25191 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
25193 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
25194 yesterday's patch by changing test -n to test -z.
25196 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
25198 * modules/getloadavg (Files): Add m4/getloadavg.m4.
25199 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
25200 the former is now obsolescent.
25202 * modules/chdir-long (Depends-on): Add fcntl.
25204 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
25206 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
25207 obsolescent, and programs should use gnulib instead.
25208 * m4/getloadavg.m4: New file, with contents taken from Autoconf
25209 but with prefixes changed.
25211 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
25213 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
25214 or stdbool.h, because they might not exist while configuring.
25216 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
25217 Don't include unistd.h or limits.h; not needed, since chdir-long.h
25219 (O_DIRECTORY): Remove.
25221 2006-08-31 Eric Blake <ebb9@byu.net>
25223 * gnulib-tool: Don't let emacs change spaces to TAB.
25225 2006-08-31 Bruno Haible <bruno@clisp.org>
25227 * gnulib-tool: When calling func_import more than once, do it in a
25229 Reported by Eric Blake <ebb9@byu.net>.
25231 2006-08-31 Bruno Haible <bruno@clisp.org>
25233 * gnulib-tool (nl): Remove variable.
25234 (sed_transform_lib_file): Use more robust test for config-h module.
25235 (func_import): Fix typo in 2006-08-25 patch.
25237 2006-08-31 Bruno Haible <bruno@clisp.org>
25239 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
25240 specified, augment Makefile.am variables instead of assigning them.
25242 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
25244 Work around a bug in both the Linux and SunOS 64-bit kernels:
25245 nanosleep mishandles sleeps for longer than 2**31 seconds.
25246 Problem reported by Frank v Waveren in
25247 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
25248 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
25249 Check for nanosleep bug.
25250 (LIB_NANOSLEEP): Append clock_gettime library if needed.
25252 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
25254 Work around a bug in both the Linux and SunOS 64-bit kernels:
25255 nanosleep mishandles sleeps for longer than 2**31 seconds.
25256 Problem reported by Frank v Waveren in
25257 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
25258 * lib/nanosleep.c (BILLION): New constant.
25259 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
25260 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
25263 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
25265 * modules/nanosleep (Depends-on): Add gettime.
25267 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
25268 and Simon Josefsson <jas@extundo.com>
25269 and Oskar Liljeblad <oskar@osk.mine.nu>
25271 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
25272 * gnulib-tool (func_import): New license type 'unmodifiable license
25274 * modules/fdl: Use it. Longer description.
25275 * module/gpl, module/lgpl: New files.
25277 2006-08-30 Jim Meyering <jim@meyering.net>
25279 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
25280 shadowing the parameter.
25282 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25286 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25288 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
25289 sharing with gnulib. Report by Eric Blake.
25291 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
25293 * modules/isapipe: New file.
25294 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
25296 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
25298 * modules/configmake (Makefile.am): Add a comment, and omit
25299 the CONFIGMAKE_ prefix from generated macro names. Suggested
25302 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
25304 * m4/isapipe.m4: New file.
25306 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
25308 * lib/isapipe.c, lib/isapipe.h: New files.
25310 2006-08-29 Jim Meyering <jim@meyering.net>
25312 * modules/configmake (Makefile.am): Make configmake.h depend on
25313 Makefile. Otherwise, a stale configmake.h could hang around.
25315 2006-08-29 Eric Blake <ebb9@byu.net>
25317 * lib/error.c (error_at_line, print_errno_message): Match libc, after
25318 resolution of upstream bug 3044.
25320 2006-08-29 Bruno Haible <bruno@clisp.org>
25322 * modules/localcharset (Depends-on): Add configmake.
25323 (Makefile.am): Remove setting of LIBDIR through DEFS.
25325 2006-08-29 Bruno Haible <bruno@clisp.org>
25327 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
25330 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
25332 * modules/fcntl: New file.
25333 * modules/chdir-safer (Depends-on): Add fcntl.
25334 * modules/fts: Likewise.
25335 * modules/mkdir-p: Likewise.
25337 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
25338 This undoes the most recent change, since we're now addressing the
25339 problem in a different way.
25341 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
25342 into output, since the output might be called Makefile.am even
25343 if $makefile_name is something different.
25344 (func_import): Use $makefile_am rather than
25345 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
25348 * modules/inttypes (Files): Add m4/inttypes-h.m4.
25350 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
25352 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
25353 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
25354 recent change to stdint.m4, since we're now addressing the problem in a
25357 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
25359 * m4/fcntl_h.m4: New file.
25361 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
25363 * lib/fcntl_.h: New file.
25364 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
25366 * lib/dirchownmod.c: Likewise.
25367 * lib/fts.c: Likewise.
25369 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
25370 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
25371 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
25372 just before including <inttypes.h>, to avoid circular inclusion.
25374 2006-08-28 Jim Meyering <jim@meyering.net>
25376 * doc/visibility.texi: Actually read and correct the grammar of the
25377 sentence affected by yesterday's change.
25379 2006-08-28 Eric Blake <ebb9@byu.net>
25381 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
25384 2006-08-28 Eric Blake <ebb9@byu.net>
25386 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
25388 2006-08-28 Eric Blake <ebb9@byu.net>
25390 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
25392 2006-08-28 Bruno Haible <bruno@clisp.org>
25394 * modules/c-strstr: New file, from GNU gettext.
25395 * MODULES.html.sh (String handling): Add c-strstr.
25397 2006-08-28 Bruno Haible <bruno@clisp.org>
25399 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
25401 Reported by Eric Blake.
25403 2006-08-28 Bruno Haible <bruno@clisp.org>
25405 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
25406 (VASNPRINTF): Return a string of length > INT_MAX without failing.
25407 * lib/vasprintf.c: Include errno.h, limits.h.
25408 (EOVERFLOW): New fallback definition.
25409 (vasprintf): Test here whether the string length is > INT_MAX.
25410 * lib/vsnprintf.c: Include errno.h, limits.h.
25411 (EOVERFLOW): New fallback definition.
25412 (vsnprintf): Fix bug when generated string was too long for the buffer.
25413 Test here whether the string length is > INT_MAX.
25415 2006-08-28 Bruno Haible <bruno@clisp.org>
25417 * lib/inttypes_.h (SCNX*): Remove definitions.
25418 Reported by Eric Blake.
25420 2006-08-28 Bruno Haible <bruno@clisp.org>
25422 * lib/c-strstr.h: New file, from GNU gettext.
25423 * lib/c-strstr.c: New file, from GNU gettext.
25425 2006-08-28 Bruno Haible <bruno@clisp.org>
25427 * gnulib-tool: Reorder some statements.
25429 2006-08-28 Bruno Haible <bruno@clisp.org>
25431 * gnulib-tool: New option --makefile-name.
25432 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
25434 (func_import): Write $makefile_name to the cache file, and read it from
25435 there unless explicitly specified. Use $makefile_name as file name
25436 instead of Makefile.am. Adjust the recommendations accordingly.
25438 2006-08-28 Bruno Haible <bruno@clisp.org>
25440 * gnulib-tool (func_verify_module): Check against misapplying patch.
25442 2006-08-28 Bruno Haible <bruno@clisp.org>
25444 * gnulib-tool (func_relativize, func_relconcat): New functions.
25445 Give an error if --local-dir is given with --update.
25446 Remove trailing slashes from $local_gnulib_dir.
25447 (func_import): Store the relativized $local_gnulib_dir in
25448 gnulib-cache.m4, and read it from there if not specified explicitly.
25450 2006-08-28 Bruno Haible <bruno@clisp.org>
25452 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
25453 is the current directory. Respect also $local_gnulib_dir.
25455 2006-08-28 Bruno Haible <bruno@clisp.org>
25456 Simon Josefsson <jas@extundo.com>
25459 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
25461 2006-08-27 Jim Meyering <jim@meyering.net>
25463 * doc/visibility.texi: Remove duplicate word: "pointer".
25465 2006-08-26 Bruno Haible <bruno@clisp.org>
25467 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
25468 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
25469 (Makefile.am): Create inttypes.h from inttypes_.h.
25470 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
25472 * modules/imaxabs: New file.
25474 * modules/imaxdiv: New file.
25476 2006-08-26 Bruno Haible <bruno@clisp.org>
25478 * m4/inttypes.m4: New file.
25479 * m4/_inttypes_h.m4: Remove file.
25480 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
25482 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
25484 * m4/imaxabs.m4: New file.
25486 * m4/imaxdiv.m4: New file.
25488 2006-08-26 Bruno Haible <bruno@clisp.org>
25490 * lib/inttypes_.h: New file.
25491 * lib/inttypes.h: Remove file.
25492 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
25494 * lib/imaxabs.c: New file.
25496 * lib/imaxdiv.c: New file.
25498 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
25500 New config-h module, so that "make" output needn't be cluttered
25501 by -DHAVE_CONFIG_H.
25502 * MODULES.html.sh (Support for building libraries and executables):
25504 * modules/config-h: New file.
25505 * gnulib-tool (nl, sed_transform_lib_file): New vars.
25506 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
25507 the config-h module is used.
25509 New configmake module, so that "make" output needn't be cluttered
25510 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
25511 * MODULES.html.sh (Support for building libraries and executables):
25513 * modules/configmake: New file.
25515 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
25517 * m4/config-h.m4: New file.
25519 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
25521 * config/srclist.txt: Add elisp-comp.
25523 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
25525 * MODULES.html.sh (Support for building libraries and executables):
25527 * build-aux/elisp-comp: New file.
25528 * modules/elisp-comp: New file.
25530 2006-08-24 Bruno Haible <bruno@clisp.org>
25532 * gnulib-tool (func_create_testdir): Use non-default values of
25533 sourcebase and m4base.
25535 2006-08-24 Bruno Haible <bruno@clisp.org>
25537 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
25540 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
25542 * modules/openat (Depends-on): Add lchown.
25544 2006-08-23 Bruno Haible <bruno@clisp.org>
25546 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
25547 of gl_LOCK_EARLY instead of gl_LOCK.
25549 2006-08-23 Bruno Haible <bruno@clisp.org>
25551 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
25553 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
25555 2006-08-23 Bruno Haible <bruno@clisp.org>
25557 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
25560 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
25561 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
25562 (gl_LOCK): New macro.
25564 2006-08-22 Simon Josefsson <jas@extundo.com>
25566 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
25569 2006-08-22 Simon Josefsson <jas@extundo.com>
25571 * MODULES.html.sh: Add "Support for maintaining and release
25574 * build-aux/gnupload: New file, from coreutils.
25576 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
25578 Avoid the need for AC_LIBSOURCES in m4 macros.
25579 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
25580 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
25581 * modules/check-version (EXTRA_DIST): Add check-version.h.
25582 * modules/crc (EXTRA_DIST): Add crc.h.
25583 * modules/des (EXTRA_DIST): Add des.h.
25584 * modules/gc (EXTRA_DIST): Add gc.h.
25585 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
25586 * modules/getline (EXTRA_DIST): Add getline.h.
25587 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
25588 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
25589 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
25590 * modules/md2 (EXTRA_DIST): Add md2.h.
25591 * modules/md4 (EXTRA_DIST): Add md4.h.
25592 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
25593 * modules/read-file (EXTRA_DIST): Add read-file.h.
25594 * modules/readline (EXTRA_DIST): Add readline.h.
25595 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
25596 rijndael-api-fst.h.
25598 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
25600 * m4/rijndael.m4 (gl_ARCFOUR):
25601 * m4/arctwo.m4 (gl_ARCTWO):
25602 * m4/check-version.m4 (gl_CHECK_VERSION):
25603 * m4/crc.m4 (gl_CRC):
25604 * m4/des.m4 (gl_DES):
25605 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
25606 * m4/gc.m4 (gl_GC):
25607 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
25608 * m4/getline.m4 (gl_FUNC_GETLINE):
25609 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
25610 * m4/hmac-md5.m4 (gl_HMAC_MD5):
25611 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
25612 * m4/md2.m4 (gl_MD2):
25613 * m4/md4.m4 (gl_MD4):
25614 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
25615 * m4/read-file.m4 (gl_FUNC_READ_FILE):
25616 * m4/readline.m4 (gl_FUNC_READLINE):
25617 * m4/rijndael.m4 (gl_RIJNDAEL):
25618 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
25619 to get the necessary .h files and whatnot.
25621 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
25623 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
25624 gnulib rather than the other way around.
25625 * config/srclistvars.sh (COREUTILS): Remove.
25627 2006-08-22 Jim Meyering <jim@meyering.net>
25629 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
25631 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
25633 2006-08-22 Eric Blake <ebb9@byu.net>
25635 * modules/regexprops-generic: New file.
25636 * MODULES.html.sh (Support for building documentation): List it.
25638 2006-08-22 Eric Blake <ebb9@byu.net>
25640 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
25641 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25642 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
25643 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
25645 2006-08-22 Bruno Haible <bruno@clisp.org>
25647 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
25648 and lib_LTLIBRARIES like the other lib_* variables.
25650 2006-08-22 Bruno Haible <bruno@clisp.org>
25652 * build-aux/x-to-1.in: New file, from GNU gettext.
25654 2006-08-22 Bruno Haible <bruno@clisp.org>
25656 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
25659 2006-08-22 Bruno Haible <bruno@clisp.org>
25661 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
25664 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
25667 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
25669 Problem reported by Bruno Haible.
25671 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
25673 Avoid the need for AC_LIBSOURCES in m4 macros.
25674 * modules/acl (EXTRA_DIST): Add acl.h.
25675 * modules/argmatch (Files): Add m4/argmatch.m4.
25676 (configure.ac): Add gl_ARGMATCH.
25677 (EXTRA_DIST): Renamed from lib_SOURCES, for
25678 consistency with the other modules. Remove argmatch.c.
25679 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
25680 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
25681 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
25682 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
25683 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
25684 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
25685 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
25686 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
25687 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
25688 * modules/closeout (EXTRA_DIST): Add closeout.h.
25689 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
25690 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
25691 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
25692 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
25693 dirname.h; remove basename.c and stripslash.c.
25694 * modules/exclude (EXTRA_DIST): Add exclude.h.
25695 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
25696 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
25697 * modules/file-type (EXTRA_DIST): Add file-type.h.
25698 * modules/filemode (EXTRA_DIST): Add filemode.h.
25699 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
25700 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
25701 * modules/fpending (EXTRA_DIST): Add __fpending.h.
25702 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
25703 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
25704 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
25705 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
25706 * modules/getdate (EXTRA_DIST): Add getdate.c.
25707 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
25708 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
25709 * modules/getpass (EXTRA_DIST): Add getpass.h.
25710 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
25711 * modules/group-member (EXTRA_DIST): Add group-member.h.
25712 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
25713 * modules/hash (EXTRA_DIST): Add hash.h.
25714 * modules/human (EXTRA_DIST): Add human.h.
25715 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
25716 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
25717 * modules/lchown (EXTRA_DIST): Add lchown.h.
25718 * modules/long-options (EXTRA_DIST): Add long-options.h.
25719 * modules/lstat (EXTRA_DIST): Add lstat.h.
25720 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
25721 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
25722 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
25723 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
25724 * modules/memxor (EXTRA_DIST): Add memxor.h.
25725 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
25726 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
25727 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
25728 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
25729 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
25730 * modules/physmem (EXTRA_DIST): Add physmem.h.
25731 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
25732 * modules/posixver (EXTRA_DIST): Add posixver.h.
25733 * modules/quote (EXTRA_DIST): Add quote.h.
25734 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
25735 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
25736 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
25737 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
25738 regex_internal.h regexec.c.
25739 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
25740 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
25741 * modules/same (EXTRA_DIST): Add same.h.
25742 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
25743 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
25744 * modules/savedir (EXTRA_DIST): Add savedir.h.
25745 * modules/sha1 (EXTRA_DIST): Add sha1.h.
25746 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
25747 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
25748 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
25749 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
25750 * modules/strdup (EXTRA_DIST): Add strdup.h.
25751 * modules/strftime (EXTRA_DIST): Add strftime.h.
25752 * modules/strndup (EXTRA_DIST): Add strndup.h.
25753 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
25754 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
25755 * modules/time_r (EXTRA_DIST): Add time_r.h.
25756 * modules/timespec (EXTRA_DIST): Add timespec.h.
25757 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
25758 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
25759 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
25760 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
25761 * modules/userspec (EXTRA_DIST): Add userspec.h.
25762 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
25763 * modules/utimens (EXTRA_DIST): Add utimens.h.
25764 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
25765 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
25766 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
25767 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
25768 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
25769 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
25770 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
25771 * modules/yesno (EXTRA_DIST): Add yesno.h.
25773 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
25775 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
25777 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
25778 * m4/dev-ino.m4, same-inode.m4: Remove.
25780 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
25781 * m4/acl.m4 (AC_FUNC_ACL):
25782 * m4/backupfile.m4 (gl_BACKUPFILE):
25783 * m4/c-strtod.m4 (gl_C99_STRTOLD):
25784 * m4/canon-host.m4 (gl_CANON_HOST):
25785 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
25786 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
25787 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
25788 * m4/cloexec.m4 (gl_CLOEXEC):
25789 * m4/close-stream.m4 (gl_CLOSE_STREAM):
25790 * m4/closeout.m4 (gl_CLOSEOUT):
25791 * m4/dirfd.m4 (gl_FUNC_DIRFD):
25792 * m4/dirname.m4 (gl_DIRNAME):
25793 * m4/exclude.m4 (gl_EXCLUDE):
25794 * m4/exitfail.m4 (gl_EXITFAIL):
25795 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
25796 * m4/file-type.m4 (gl_FILE_TYPE):
25797 * m4/filemode.m4 (gl_FILEMODE):
25798 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
25799 * m4/fpending.m4 (gl_FUNC_FPENDING):
25800 * m4/fprintftime.m4 (gl_FPRINTFTIME):
25801 * m4/fts.m4 (gl_FUNC_FTS):
25802 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
25803 * m4/getdate.m4 (gl_GETDATE):
25804 * m4/gethrxtime.m4 (gl_GETHRXTIME):
25805 * m4/getpagesize.m4 (gl_GETPAGESIZE):
25806 * m4/getpass.m4 (gl_FUNC_GETPASS):
25807 * m4/gettime.m4 (gl_GETTIME):
25808 * m4/getugroups.m4 (gl_GETUGROUPS):
25809 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
25810 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
25811 * m4/hard-locale.m4 (gl_HARD_LOCALE):
25812 * m4/hash.m4 (gl_HASH):
25813 * m4/idcache.m4 (gl_IDCACHE):
25814 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
25815 * m4/lchown.m4 (gl_FUNC_LCHOWN):
25816 * m4/long-options.m4 (gl_LONG_OPTIONS):
25817 * m4/lstat.m4 (gl_FUNC_LSTAT):
25818 * m4/md5.m4 (gl_MD5):
25819 * m4/memcasecmp.m4 (gl_MEMCASECMP):
25820 * m4/memcoll.m4 (gl_MEMCOLL):
25821 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
25822 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
25823 * m4/memxor.m4 (gl_MEMXOR):
25824 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
25825 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
25826 * m4/modechange.m4 (gl_MODECHANGE):
25827 * m4/mountlist.m4 (gl_MOUNTLIST):
25828 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
25829 * m4/openat.m4 (gl_FUNC_OPENAT):
25830 * m4/pathmax.m4 (gl_PATHMAX):
25831 * m4/physmem.m4 (gl_PHYSMEM):
25832 * m4/posixtm.m4 (gl_POSIXTM):
25833 * m4/posixver.m4 (gl_POSIXVER):
25834 * m4/quote.m4 (gl_QUOTE):
25835 * m4/quotearg.m4 (gl_QUOTEARG):
25836 * m4/readtokens.m4 (gl_READTOKENS):
25837 * m4/readutmp.m4 (gl_READUTMP):
25838 * m4/regex.m4 (gl_REGEX):
25839 * m4/safe-read.m4 (gl_SAFE_READ):
25840 * m4/safe-write.m4 (gl_SAFE_WRITE):
25841 * m4/same.m4 (gl_SAME):
25842 * m4/save-cwd.m4 (gl_SAVE_CWD):
25843 * m4/savedir.m4 (gl_SAVEDIR):
25844 * m4/settime.m4 (gl_SETTIME):
25845 * m4/sha1.m4 (gl_SHA1):
25846 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
25847 * m4/stat-macros.m4 (gl_STAT_MACROS):
25848 * m4/stat-time.m4 (gl_STAT_TIME):
25849 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
25850 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
25851 * m4/strdup.m4 (gl_FUNC_STRDUP):
25852 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
25853 * m4/strndup.m4 (gl_FUNC_STRNDUP):
25854 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
25855 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
25856 * m4/time_r.m4 (gl_TIME_R):
25857 * m4/timespec.m4 (gl_TIMESPEC):
25858 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
25859 * m4/unlinkdir.m4 (gl_UNLINKDIR):
25860 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
25861 * m4/userspec.m4 (gl_USERSPEC):
25862 * m4/utimecmp.m4 (gl_UTIMECMP):
25863 * m4/utimens.m4 (gl_UTIMENS):
25864 * m4/xalloc.m4 (gl_XALLOC):
25865 * m4/xgetcwd.m4 (gl_XGETCWD):
25866 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
25867 * m4/xreadlink.m4 (gl_XREADLINK):
25868 * m4/xstrtod.m4 (gl_XSTRTOD):
25869 * m4/yesno.m4 (gl_YESNO):
25870 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
25871 to get the necessary .h files and whatnot.
25873 2006-08-21 Mark D. Baushke <mdb@gnu.org>
25874 Bruno Haible <bruno@clisp.org>
25876 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
25877 /bin/sh understanding of '!' conditional negation.
25879 2006-08-21 Jim Meyering <jim@meyering.net>
25881 * modules/openat (Depends-on): Really alphabetize.
25883 * modules/acl (Depends-on): Add error and quote.
25885 * check-module (find_included_lib_files): Add at-func.c to the
25886 ok-to-include-more-than-once white list.
25888 * modules/openat (Depends-on): Add lstat. Alphabetize.
25890 2006-08-21 Bruno Haible <bruno@clisp.org>
25892 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25893 Emit a pkgdata_DATA variable only if some snippets add contents to it.
25894 Reported by Martin Lambers <marlam@marlam.de>.
25896 2006-08-21 Bruno Haible <bruno@clisp.org>
25898 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
25899 specify an installation location, don't emit a noinst_LIBRARIES or
25900 noinst_LTLIBRARIES assignment.
25902 2006-08-21 Bruno Haible <bruno@clisp.org>
25905 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
25906 BeOS has mbrtowc() but no <wctype.h>.
25908 2006-08-21 Bruno Haible <bruno@clisp.org>
25911 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
25914 2006-08-21 Bruno Haible <bruno@clisp.org>
25917 * lib/mbchar.h: Include <wctype.h> only if it exists.
25919 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
25921 Remove files that are no longer needed by their respective modules.
25922 * m4/obstack.m4: Remove.
25923 * m4/strerror_r.m4: Remove.
25924 * m4/uint32_t.m4: Remove.
25925 * m4/uintptr_t.m4: Remove.
25926 * m4/ullong_max.m4: Remove.
25927 * m4/xstrtoimax.m4: Remove.
25928 * m4/xstrtoumax.m4: Remove.
25930 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
25931 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
25932 dependencies now capture this.
25934 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
25935 Do not use AC_LIBSOURCES, since gnulib modules now do this.
25936 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
25937 * m4/human.m4 (gl_HUMAN): Likewise.
25938 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
25939 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
25941 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
25943 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
25944 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
25946 * m4/human.m4 (gl_HUMAN): Likewise.
25947 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
25948 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
25949 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
25950 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
25951 * m4/xstrtol (gl_XSTRTOL): Likewise.
25953 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
25954 AC_TYPE_LONG_LONG_INT.
25955 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
25956 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
25957 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
25958 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
25960 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
25963 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
25964 (gl_PREREQ_XSTRTOUL): Remove.
25966 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
25968 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
25971 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
25973 Add and change modules to make it easier for coreutils to use
25975 * modules/backupfile (Files): Remove m4/d-ino.m4.
25976 (Depends-on): Add d-ino.
25977 * modules/cycle-check (Depends-on): Add stdint.
25978 (lib_SOURCES): Add cycle-check.h.
25979 * modules/d-ino: New module.
25980 * modules/d-type: New module.
25981 * modules/error (Files): Remove m4/strerror_r.m4.
25982 * modules/filemode (Files): Add m4/st_dm_mode.m4.
25983 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
25984 m4/inttypes_h.m4, m4/uintmax_t.m4.
25985 (Depends-on): Add stdint.
25986 (lib_SOURCES): Add fsusage.h.
25987 * modules/getcwd (Files): Remove d-ino.m4.
25988 (Depends-on): Add d-ino.
25989 * modules/getndelim2 (Depends-on): Add stdint.
25990 * modules/glob (Files): Remove m4/d-type.m4.
25991 (Depends-on): Add d-type.
25992 * modules/host-os: New module.
25993 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
25994 m4/inttypes_h.m4, m4/uintmax_t.m4.
25995 * Depends-on: Add stdint.
25996 (lib_SOURCES): Add human.h.
25997 * modules/inttostr (Files): Remove m4/intmax_t.m4,
25998 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
25999 m4/uintmax_t.m4, m4/ulonglong.m4.
26000 (Depends-on): Add stdint.
26001 (EXTRA_DIST): Add inttostr.h.
26002 * modules/lchmod: New module.
26003 * modules/link-follow: New module.
26004 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
26005 (Depends-on): Add lchmod.
26006 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
26007 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
26008 (Depends-on): Add stdint.
26009 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
26010 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
26011 (Depends-on): Add stdint.
26012 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
26013 * modules/perl: New module.
26014 * modules/regex (Depends-on): Add stdint.
26015 * modules/rmdir-errno: New module.
26016 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
26018 (Depends-on): Add stdint.
26019 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
26021 (Depends-on): Add stdint.
26022 * modules/unlink-busy: New module.
26023 * modules/utimecmp (Depends-on): Add stdint.
26024 * modules/uptime: New module.
26025 * modules/winsz-ioctl: New module.
26026 * modules/winsz-termios: New module.
26027 * modules/xnanosleep (Depends-on): Add nanosleep.
26028 * modules/ullong_max: Remove.
26029 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
26030 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
26031 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
26032 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
26033 (Depends-on): Add inttypes.
26034 (lib_SOURCES): Add xstrtol.h.
26035 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
26036 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
26037 * MODULES.html.sh: Move 'assert' into the assert section.
26038 Move 'dummy' into the linking section.
26040 Add section for compatibility checks for POSIX:2001 functions,
26041 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
26042 winsz-ioctl, and winsz-termios into it.
26044 Add top-level Misc section and put host-os, perl, and uptime
26047 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
26049 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
26050 now assume the stdint module. Do not include inttypes.h.
26051 * lib/fsusage.h: Likewise.
26052 * lib/getndelim2.c: Likewise.
26053 * lib/human.h: Likewise.
26054 * lib/inttostr.h: Likewise.
26055 * lib/obstack.c: Likewise.
26056 * lib/regex_internal.h: Likewise.
26057 * lib/tempname.c: Likewise.
26058 * lib/utimecmp.c: Likewise.
26059 * lib/xstrtol.h: Likewise.
26061 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
26063 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
26064 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
26065 * lib/xtime.h: Likewise.
26067 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
26069 * modules/openat (Files): Add lib/fchmodat.c.
26070 Fixes problem reported by Jay Youngman.
26072 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
26074 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
26075 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
26077 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
26078 Bruno Haible <bruno@clisp.org>
26080 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
26081 and is a script that invokes bison. Tighten the code. Add comments.
26083 2006-08-18 Jim Meyering <jim@meyering.net>
26085 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
26086 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
26087 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
26088 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
26090 2006-08-18 Bruno Haible <bruno@clisp.org>
26092 * modules/bison-i18n: New file.
26093 * MODULES.html.sh (Internationalization functions): Add it.
26095 2006-08-18 Bruno Haible <bruno@clisp.org>
26097 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
26098 sys/statvfs.h. When getmntinfo was found, check its declaration and
26099 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
26101 2006-08-18 Bruno Haible <bruno@clisp.org>
26103 * m4/bison-i18n.m4: New file, from bison.
26105 2006-08-18 Bruno Haible <bruno@clisp.org>
26107 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
26108 (ME_DUMMY): Treat "kernfs" as a dummy.
26109 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
26111 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
26113 Update from coreutils.
26115 2006-08-15 Jim Meyering <jim@meyering.net>
26117 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
26119 2006-01-17 Jim Meyering <jim@meyering.net>
26121 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
26123 2006-01-11 Jim Meyering <jim@meyering.net>
26125 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
26126 Check for the lchmod function.
26128 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
26130 Update from coreutils.
26132 * lib/__fpending.h: Add copyright notice.
26133 * lib/fprintftime.h: Likewise.
26134 * lib/savedir.c: Use (C) in copyright notice.
26135 * lib/savedir.h: Likewise.
26137 2006-08-15 Jim Meyering <jim@meyering.net>
26139 * lib/at-func.c: New file, with the logic of all emulated at-functions.
26140 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
26141 in support of the EXPECTED_ERRNO macro.
26142 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
26143 definitions. Instead, define the appropriate symbols and include
26145 * lib/mkdirat.c (mkdirat): Likewise.
26146 * lib/fchmodat.c (fchmodat): Likewise.
26147 (ENOSYS): Remove definition.
26148 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
26149 it. Don't include "unistd--.h" -- it wasn't ever used.
26151 2006-01-17 Jim Meyering <jim@meyering.net>
26153 Rewrite fts.c not to change the current working directory,
26154 by using openat, fstatat, fdopendir, etc..
26156 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
26157 (HAVE_OPENAT_SUPPORT): Define.
26158 [_LIBC] (fchdir): Don't undef or define; no longer used.
26159 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
26160 Now, this `function' always succeeds, and consumes its file descriptor
26161 parameter -- so callers must not close such FDs. Update callers.
26162 (diropen_fd, opendirat, cwd_advance_fd): New functions.
26163 (diropen): Add parameter, SP. Adjust all callers.
26164 Implement using diropen_fd, rather than open.
26165 (fts_open): Initialize new member, fts_cwd_fd.
26166 Remove fts_rft-setting code.
26167 (fts_close): Close fts_cwd_fd, if necessary.
26168 (__opendir2): Define in terms of opendir or opendirat,
26169 depending on whether the FST_NOCHDIR flag is set.
26170 (fts_build): Since fts_safe_changedir consumes its FD, and since
26171 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
26172 and close the dup'd file descriptor upon failure.
26173 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
26174 (fts_safe_changedir): Tweak semantics to reflect that this function
26175 now calls cwd_advance_fd and hence consumes its FD argument.
26176 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
26177 [struct FTS] (fts_rft): Remove now-unused member.
26178 [struct FTS] (fts_cycle.state): Improve comment.
26180 * lib/openat.c (openat_needs_fchdir): New function.
26181 * lib/openat.h (openat_needs_fchdir): Declare it.
26183 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
26185 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
26186 Problem and fix reported by Pádraig Brady in
26187 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
26189 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
26191 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
26193 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
26195 * lib/memcoll.c (memcoll): Optimize for the common case where the
26196 arguments are bytewise equal.
26198 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
26200 * doc/regexprops-generic.texi: Add a copyright notice.
26202 2006-08-15 Bruno Haible <bruno@clisp.org>
26204 * modules/tmpdir (License): Change to LGPL.
26206 2006-08-15 Bruno Haible <bruno@clisp.org>
26208 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
26211 2006-08-14 Simon Josefsson <jas@extundo.com>
26213 * config/srclist.txt: Add gnupload.
26215 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
26217 Change copyright notice from LGPL 2 to GPL 2, since that's the
26218 standard form used in the gnulib repository.
26219 * tests/test-lock.c: Likewise.
26220 * tests/test-stdint.c: Likewise.
26221 * tests/test-tls.c: Likewise.
26223 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
26224 prelude-manager. User shorter URLs for GNU projects, without '?'.
26225 Add copyright notice.
26227 * check-module: Add copyright notice. Output a copyright
26228 notice if "--version" is specified.
26229 * modules/COPYING: New file.
26230 * tests/test-getaddrinfo.c: Add copyright notice.
26231 * tests/test-verify.c: Likewise.
26233 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
26235 Change copyright notice from LGPL 2 to GPL 2, since that's the
26236 standard form used in the gnulib repository.
26237 * lib/lock.c: LGPL -> GPL.
26238 * lib/lock.h: Likewise.
26239 * lib/strnlen1.c: Likewise.
26240 * lib/strnlen1.h: Likewise.
26241 * lib/tls.c: Likewise.
26242 * lib/tls.h: Likewise.
26243 * lib/tmpdir.c: Likewise.
26245 * lib/TODO: Remove; this belongs only in coreutils.
26247 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
26249 Add copyright notices to long-enough files that lack them, since
26250 otherwise the files aren't clearly free. Use the same notice that
26251 getdate.texi already uses.
26252 * doc/alloca-opt.texi: Add copyright notice.
26253 * doc/alloca.texi: Likewise.
26254 * doc/ctime.texi: Likewise.
26255 * doc/functions.texi: Likewise.
26256 * doc/gcd.texi: Likewise.
26257 * doc/gnulib-tool.texi: Likewise.
26258 * doc/inet_ntoa.texi: Likewise.
26259 * doc/visibility.texi: Likewise.
26261 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
26262 * doc/quote.texi: Add copyright notice.
26264 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
26265 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
26266 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
26267 Mention SunOS 5.11. Mention that everything before SunOS 5.7
26268 is now obsolete, and give a pointer to the Sun list.
26269 Add copyright notice.
26271 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
26273 * config/srclistvars.sh: Add copyright notice.
26275 2006-08-14 Eric Blake <ebb9@byu.net>
26277 Import the following change from libc:
26279 2006-08-12 Ulrich Drepper <drepper@redhat.com>
26282 * lib/misc/error.c: Add space between program name and message if file
26285 2006-08-12 Karl Berry <karl@gnu.org>
26287 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
26288 remove, these originate in gnulib now.
26290 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26292 * doc/Makefile (standards.info standards.html standards.dvi):
26293 Also depend on make-stds.texi.
26295 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
26297 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
26298 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
26300 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
26301 in wchar_t. Problem reported by Eric Blake.
26303 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
26304 LEN is smaller than SIZE. Suggested by Bruno Haible.
26305 Also, help the compiler to keep LEN in a register.
26307 2006-08-11 Eric Blake <ebb9@byu.net>
26309 * users.txt: Sort. Add tar.
26311 2006-08-11 Bruno Haible <bruno@clisp.org>
26313 * users.txt: New file.
26315 2006-08-11 Bruno Haible <bruno@clisp.org>
26317 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
26318 before <wchar.h>. Needed for OSF/1 and BSD/OS.
26320 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
26322 * modules/snprintf (Depends-on): Remove minmax.
26323 (Maintainer): Add self and Bruno.
26325 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
26327 * lib/.cppi-disable: Add snprintf.h, socket_.h.
26328 * lib/snprintf.c: Include <errno.h> and <limits.h>.
26329 (EOVERFLOW): Define if the system does not.
26330 Do not include "minmax.h"; it wasn't used.
26331 (snprintf): Don't assume size_t promotes to an unsigned type.
26332 Fix bug when generated string was too long for the buffer: the
26333 buffer's contents are supposed to be the initial prefix of the
26334 output. Don't assume vasnprintf returns EOVERFLOW if the size
26335 exceeds INT_MAX; do the check ourselves.
26337 Import the following changes from libc:
26339 2006-06-02 Jakub Jelinek <jakub@redhat.com>
26341 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
26342 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
26343 set wc to the byte which couldn't be converted.
26344 (re_string_reconstruct): Don't clear valid_raw_len before calling
26345 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
26346 tip_context using re_string_context_at.
26348 2006-05-02 Ulrich Drepper <drepper@redhat.com>
26350 * lib/posix/regex.h: g++ still cannot handled [restrict].
26352 2006-04-21 Ulrich Drepper <drepper@redhat.com>
26354 * lib/posix/regex.h: Remove special handling for VMS.
26356 2006-08-10 Jim Meyering <jim@meyering.net>
26358 * modules/same-inode: New module.
26359 * modules/dev-ino: New module.
26360 * modules/cycle-check: Depend on these modules, rather than simply
26361 including their .h files.
26362 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
26363 required via m4/cycle-check.m4.
26364 * modules/same: Depend on new same-inode module, rather than
26365 including same-inode.h.
26366 * modules/chdir-safer: New file.
26368 * modules/chown (Depends-on): Add stat-macros.
26370 2006-08-10 Jim Meyering <jim@meyering.net>
26372 * m4/cycle-check.m4: New file.
26373 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
26374 * m4/dev-ino.m4, m4/same-inode.m4: New files.
26376 2006-08-10 Eric Blake <ebb9@byu.net>
26378 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
26379 in from original proposal.
26381 2006-08-10 Eric Blake <ebb9@byu.net>
26382 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26384 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
26387 2006-08-10 Bruno Haible <bruno@clisp.org>
26389 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
26392 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
26394 Sync from coreutils.
26396 2006-07-19 Mike Frysinger <vapier@gentoo.org>
26398 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
26399 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
26401 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
26403 * modules/restrict: Remove; no longer needed now that we assume
26404 Autoconf 2.59 or later.
26405 * MODULES.html.sh: Remove 'restrict'.
26406 * modules/argp (Depends-on): Remove 'restrict'.
26407 * modules/base64 (Depends-on): Likewise.
26408 * modules/gc (Depends-on): Likewise.
26409 * modules/getaddrinfo (Depends-on): Likewise.
26410 * modules/glob (Depends-on): Likewise.
26411 * modules/inet_ntop (Depends-on): Likewise.
26412 * modules/inet_pton (Depends-on): Likewise.
26413 * modules/memxor (Depends-on): Likewise.
26414 * modules/regex (Depends-on): Likewise.
26415 * modules/strtok_r (Depends-on): Likewise.
26416 * modules/time_r (Depends-on): Likewise.
26418 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
26420 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
26421 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
26422 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
26423 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
26424 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
26425 * m4/memxor.m4 (gl_MEMXOR): Likewise.
26426 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
26427 gl_C_RESTRICT replaced by AC_C_RESTRICT.
26429 Merge from coreutils.
26430 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
26431 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
26432 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
26433 * m4/time_r.m4 (gl_TIME_R): Likewise.
26435 2006-08-09 Karl Berry <karl@gnu.org>
26437 * config/srclist.txt: no more gettext-tools, per Bruno.
26439 2006-08-08 Eric Blake <ebb9@byu.net>
26441 * modules/verror: New module.
26442 * MODULES.html.sh: Document it.
26444 2006-08-08 Eric Blake <ebb9@byu.net>
26446 * lib/verror.h, lib/verror.c: New files.
26448 2006-08-08 Eric Blake <ebb9@byu.net>
26450 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
26451 verror_at_line output complies with GNU Coding Standards even when
26454 2006-08-07 Bruno Haible <bruno@clisp.org>
26456 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
26458 Reported by Ralf Wildenhues.
26460 2006-08-07 Bruno Haible <bruno@clisp.org>
26462 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
26463 in an AC_DEFUN. Needed so that the autoconf snippets can use
26466 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26468 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26469 Initialize pkgdata_DATA.
26470 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
26473 2006-08-06 Eric Blake <ebb9@byu.net>
26475 * lib/error.h: Fold in some upstream changes from glibc.
26476 * lib/error.c: Likewise.
26478 2006-08-04 Bruno Haible <bruno@clisp.org>
26480 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26481 Make the mostlyclean-local rule depend on mostlyclean-generic.
26482 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
26484 2006-07-31 Bruno Haible <bruno@clisp.org>
26486 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
26487 <stdlib.h>, <string.h>.
26489 2006-07-30 Bruno Haible <bruno@clisp.org>
26491 * modules/readlink (License): Change to LGPL.
26493 2006-07-30 Bruno Haible <bruno@clisp.org>
26495 * modules/javaversion (Makefile.am): Distribute javaversion.java and
26496 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
26497 set PKGDATADIR to point to it.
26499 2006-07-30 Bruno Haible <bruno@clisp.org>
26501 * modules/csharpexec (configure.ac): Comment out macro invocation.
26502 * modules/javaexec (configure.ac): Likewise.
26503 * modules/javacomp-script (configure.ac): Likewise.
26505 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
26507 2006-07-30 Bruno Haible <bruno@clisp.org>
26509 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
26512 2006-07-30 Bruno Haible <bruno@clisp.org>
26514 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
26516 2006-07-30 Bruno Haible <bruno@clisp.org>
26518 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26519 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
26522 2006-07-29 Bruno Haible <bruno@clisp.org>
26524 Make it possible for gnulib-tool to work with locally modified or
26525 augmented gnulib repositories.
26526 * gnulib-tool (func_usage): Document --local-dir option.
26527 (local_gnulib_dir): New variable.
26528 Handle --local-dir option.
26529 (func_lookup_file): New function.
26530 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
26531 (func_get_description, func_get_filelist, func_get_description,
26532 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
26533 func_get_automake_snippet, func_get_include_directive,
26534 func_get_license, func_get_maintainer): Use func_lookup_file.
26535 (func_import, func_create_testdir): Use func_lookup_file.
26537 2006-07-29 Bruno Haible <bruno@clisp.org>
26539 * modules/setenv (Depends-on): Add unistd.
26541 2006-07-29 Bruno Haible <bruno@clisp.org>
26543 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
26545 2006-07-29 Bruno Haible <bruno@clisp.org>
26547 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
26549 2006-07-29 Bruno Haible <bruno@clisp.org>
26551 * gnulib-tool (import, update): If there is no Makefile.am, look at
26552 aclocal.m4, instead of bailing out.
26554 2006-07-29 Bruno Haible <bruno@clisp.org>
26556 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
26557 Categorize the options by when they are useful.
26559 2006-07-29 Bruno Haible <bruno@clisp.org>
26561 * gnulib-tool (func_usage): Document option --no-libtool.
26562 Handle option --no-libtool.
26563 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
26564 for changed semantics of $libtool variable.
26565 (func_import): Likewise. If libtool is not used, show this through
26566 an option --no-libtool.
26567 (func_create_testdir): Update.
26569 2006-07-29 Bruno Haible <bruno@clisp.org>
26571 * gnulib-tool (func_import): Extend error message about missing
26574 2006-07-29 Bruno Haible <bruno@clisp.org>
26576 * gnulib-tool (func_import): Don't create the $docbase directory if
26577 there is no file to store there.
26579 2006-07-29 Bruno Haible <bruno@clisp.org>
26581 * gnulib-tool (autoconf_minversion): If a --dir option is given and
26582 relevant, look for configure.ac there, not in the current directory.
26583 Also use a simple search for AC_PREREQ, not "autoconf --trace".
26585 2006-07-29 Bruno Haible <bruno@clisp.org>
26587 * gnulib-tool (SORT): New variable.
26588 (func_usage): Undocument --assume-autoconf option.
26589 Remove --assume-autoconf option handling.
26590 (autoconf_minversion): Determine from the contents of configure.ac.
26591 (func_import): Remove autoconf_minversion handling.
26592 Suggested by Eric Blake.
26594 2006-07-29 Bruno Haible <bruno@clisp.org>
26596 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
26598 2006-07-29 Bruno Haible <bruno@clisp.org>
26600 * config/srclist.txt (*setenv.[ch]): Remove rules.
26602 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26604 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
26606 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26608 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
26611 2006-07-28 Simon Josefsson <jas@extundo.com>
26613 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
26614 * modules/inet_pton (Depends-on): Likewise.
26616 2006-07-28 Simon Josefsson <jas@extundo.com>
26618 * m4/netinet_in_h.m4: New file.
26620 2006-07-28 Simon Josefsson <jas@extundo.com>
26622 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
26625 2006-07-28 Simon Josefsson <jas@extundo.com>
26627 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
26630 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
26632 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
26633 setgid on directories only if they set these bits.
26634 * lib/modechange.h: Remove obsolete comment about masks.
26636 2006-07-28 Eric Blake <ebb9@byu.net>
26638 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
26641 2006-07-28 Bruno Haible <bruno@clisp.org>
26643 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
26645 2006-07-28 Bruno Haible <bruno@clisp.org>
26647 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
26649 2006-07-28 Bruno Haible <bruno@clisp.org>
26651 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
26652 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
26654 Avoids link error on FreeBSD 4.x.
26655 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26657 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
26659 * lib/mbswidth.c (iswcntrl): Likewise.
26661 2006-07-27 Bruno Haible <bruno@clisp.org>
26663 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
26666 2006-07-27 Bruno Haible <bruno@clisp.org>
26668 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
26669 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
26672 2006-07-26 Eric Blake <ebb9@byu.net>
26674 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
26676 2006-07-26 Eric Blake <ebb9@byu.net>
26678 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
26679 like mingw that lack mkstemp.
26680 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
26681 avoid compilation warning on mingw.
26683 2006-07-26 Bruno Haible <bruno@clisp.org>
26685 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
26686 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
26687 INT_FAST*_MIN, INTPTR_MIN.
26689 2006-07-25 Bruno Haible <bruno@clisp.org>
26691 * modules/version-etc (Depends-on): Add stdarg.
26693 2006-07-25 Bruno Haible <bruno@clisp.org>
26695 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
26698 2006-07-25 Bruno Haible <bruno@clisp.org>
26700 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
26701 defined in <stdarg.h> or config.h.
26703 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
26705 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
26706 (gl_STDIO_SAFER): Remove.
26708 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
26710 * MODULES.html.sh (File stream based Input/Output):
26711 Add fopen-safer, tmpfile-safer; remove stdio-safer.
26712 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
26713 * modules/fopen-safer, modules/tmpfile-safer: New files.
26714 * modules/stdio-safer: Remove.
26716 2006-07-24 Bruno Haible <bruno@clisp.org>
26718 * modules/tmpdir: New file.
26719 * MODULES.html.sh (File system functions): Add it.
26721 2006-07-24 Bruno Haible <bruno@clisp.org>
26723 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
26724 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
26726 2006-07-24 Bruno Haible <bruno@clisp.org>
26728 * modules/clean-temp: New file.
26730 2006-07-24 Bruno Haible <bruno@clisp.org>
26732 * m4/tmpdir.m4: New file, from GNU gettext.
26734 2006-07-24 Bruno Haible <bruno@clisp.org>
26736 * lib/tmpdir.h: New file, from GNU gettext.
26737 * lib/tmpdir.c: New file, from GNU gettext.
26739 2006-07-24 Bruno Haible <bruno@clisp.org>
26741 * lib/clean-temp.h: New file, from GNU gettext.
26742 * lib/clean-temp.c: New file, from GNU gettext.
26744 2006-07-23 Eric Blake <ebb9@byu.net>
26746 * modules/stdio-safer (Files): Add tmpfile-safer.c.
26747 (Depends-on): Add binary-io.
26749 2006-07-23 Eric Blake <ebb9@byu.net>
26751 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
26753 2006-07-23 Eric Blake <ebb9@byu.net>
26755 * lib/tmpfile-safer.c: New file.
26756 * lib/stdio-safer.h (fopen_safer): Add prototype.
26757 * lib/stdio--.h (tmpfile): Make safer.
26759 2006-07-23 Bruno Haible <bruno@clisp.org>
26761 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
26762 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
26763 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
26764 gl_linked_remove_at): Use it.
26766 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26767 and Simon Josefsson <jas@extundo.com>
26769 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
26771 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
26773 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
26775 * modules/close-stream: New file.
26776 * modules/closeout (Description): Make it clear that it exits
26777 with a diagnostic on error.
26778 (Depends-on): Add close-stream. Remove fpending, stdbool.
26779 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
26781 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
26783 * m4/close-stream.m4: New file.
26785 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
26787 * lib/close-stream.c, lib/close-stream.h: New files.
26789 2006-07-22 Bruno Haible <bruno@clisp.org>
26791 Merge from GNU gettext 0.15.
26793 2006-05-01 Bruno Haible <bruno@clisp.org>
26795 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
26797 2006-07-22 Bruno Haible <bruno@clisp.org>
26799 * modules/javaversion: New file.
26800 * MODULES.html.sh (Java): Add javaversion.
26802 2006-03-12 Bruno Haible <bruno@clisp.org>
26804 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
26806 2005-12-04 Bruno Haible <bruno@clisp.org>
26808 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
26811 2006-06-21 Bruno Haible <bruno@clisp.org>
26813 Avoid warnings from recent versions of mcs.
26814 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
26815 -o, -L, -r any more. Use options documented since mcs-1.0
26816 instead. Similarly for -g.
26818 2005-12-04 Bruno Haible <bruno@clisp.org>
26820 * build-aux/csharpcomp.sh.in: Suffix for resources is
26821 .resources, not .resource.
26823 2005-07-09 Bruno Haible <bruno@clisp.org>
26825 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
26827 Reported by Mark Junker <mjscod@gmx.de>.
26829 2006-07-22 Bruno Haible <bruno@clisp.org>
26831 * modules/gettext: Upgrade to gettext-0.15.
26832 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
26834 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
26836 2006-07-22 Bruno Haible <bruno@clisp.org>
26838 Merge from GNU gettext 0.15.
26840 2006-03-25 Bruno Haible <bruno@clisp.org>
26842 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
26844 2006-07-21 Bruno Haible <bruno@clisp.org>
26846 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
26849 2006-05-09 Bruno Haible <bruno@clisp.org>
26851 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
26852 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
26853 for the conftestver execution.
26855 2006-05-01 Bruno Haible <bruno@clisp.org>
26857 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
26858 optional target-version argument. Verify that the compiler
26859 groks source of the specified source-version, or add -source
26860 option as necessary. Verify that the compiler produces
26861 bytecode in the specified target-version, or add -target and
26862 -source options as necessary. Make the result of the test
26863 available as variable CONF_JAVAC. Also log error output in
26866 2006-03-11 Bruno Haible <bruno@clisp.org>
26868 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
26870 2006-05-09 Bruno Haible <bruno@clisp.org>
26872 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
26873 CLASSPATH_SEPARATOR to a semicolon.
26875 2006-03-12 Bruno Haible <bruno@clisp.org>
26877 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
26878 available as variable CONF_JAVA, for subsequent autoconf
26879 tests. Also log error output in config.log.
26881 2006-07-19 Bruno Haible <bruno@clisp.org>
26883 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
26884 that getline works on glibc2 systems. Needed to avoid trouble
26886 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
26888 2005-12-04 Bruno Haible <bruno@clisp.org>
26890 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
26891 launcher (untested).
26893 2005-12-04 Bruno Haible <bruno@clisp.org>
26895 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
26897 2006-07-22 Bruno Haible <bruno@clisp.org>
26899 * gettext.m4: Update from GNU gettext-0.15.
26900 * nls.m4: Likewise.
26902 * inttypes-pri.m4: Likewise.
26903 * inttypes-h.m4: Renamed from inttypes.m4.
26904 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
26906 2006-07-22 Bruno Haible <bruno@clisp.org>
26908 Merge from GNU gettext 0.15.
26910 2005-07-05 Bruno Haible <bruno@clisp.org>
26912 * printf-args.c (printf_fetchargs): Work around broken
26913 definition of wint_t on mingw.
26915 2005-02-12 Bruno Haible <bruno@clisp.org>
26917 * xallocsa.h: Add extern "C" for C++.
26919 2006-05-17 Bruno Haible <bruno@clisp.org>
26921 Cygwin portability.
26922 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
26924 2006-04-30 Bruno Haible <bruno@clisp.org>
26926 * progreloc.c: Include <mach-o/dyld.h> if available.
26927 (find_executable): Use _NSGetExecutablePath when possible.
26929 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
26931 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
26934 2005-12-29 Bruno Haible <bruno@clisp.org>
26936 * progreloc.c (set_program_name_and_installdir): Fix
26939 2005-12-04 Bruno Haible <bruno@clisp.org>
26941 Cygwin portability.
26942 * progreloc.c: Include <windows.h> also on Cygwin.
26943 (find_executable): Add support for Cygwin.
26944 (set_program_name_and_installdir): Handle also platforms with
26947 2006-07-11 Bruno Haible <bruno@clisp.org>
26949 * javacomp.c: Fix a comment.
26950 Reported by Jim Meyering.
26952 2006-04-30 Bruno Haible <bruno@clisp.org>
26954 * javacomp.h (compile_java_class): Add source_version,
26955 target_version arguments.
26956 * javacomp.c: Rewritten to choose only a compiler that
26957 respects the specified source_version and target_version.
26959 2006-06-27 Bruno Haible <bruno@clisp.org>
26961 Assume correct S_ISDIR macro.
26962 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
26964 2006-07-22 Bruno Haible <bruno@clisp.org>
26966 * javaversion.h: New file, from GNU gettext.
26967 * javaversion.c: New file, from GNU gettext.
26968 * javaversion.java: New file, from GNU gettext.
26969 * javaversion.class: New file, from GNU gettext.
26971 2006-05-17 Bruno Haible <bruno@clisp.org>
26973 Cygwin portability.
26974 * javaexec.c (execute_java_class): Test for jview program
26977 2006-04-09 Bruno Haible <bruno@clisp.org>
26979 * fatal-signal.c: Don't include string.h.
26980 (at_fatal_signal): Use a copying loop instead of memcpy.
26982 2005-12-04 Bruno Haible <bruno@clisp.org>
26984 * csharpexec.c: Add support for 'clix' launcher (untested).
26985 (execute_csharp_using_sscli): New function.
26986 (execute_csharp_program): Call it.
26988 2006-06-21 Bruno Haible <bruno@clisp.org>
26990 Avoid warnings from recent versions of mcs.
26991 * csharpcomp.c (compile_csharp_using_mono): Don't use options
26992 -o, -L, -r any more. Use options documented since mcs-1.0
26993 instead. Similarly for -g.
26995 2005-07-09 Bruno Haible <bruno@clisp.org>
26997 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
26999 Reported by Mark Junker <mjscod@gmx.de>.
27001 2006-06-17 Bruno Haible <bruno@clisp.org>
27003 * config.charset: Update for NetBSD 3.0.
27005 2006-05-17 Bruno Haible <bruno@clisp.org>
27007 Cygwin portability.
27008 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
27010 2006-05-16 Bruno Haible <bruno@clisp.org>
27012 * localcharset.c [CYGWIN]: Include <windows.h>.
27013 (get_charset_aliases): For Cygwin, return the same CPxxx
27014 aliases list as under WIN32.
27015 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
27016 the environment variables. Fall back to GetACP().
27018 2006-04-05 Bruno Haible <bruno@clisp.org>
27020 * config.charset: Update Juan Manuel Guerrero's address.
27022 2005-02-12 Bruno Haible <bruno@clisp.org>
27024 * allocsa.h: Add extern "C" for C++.
27026 2005-02-10 Bruno Haible <bruno@clisp.org>
27028 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
27029 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
27031 2006-07-22 Bruno Haible <bruno@clisp.org>
27033 * gettext.h: Update to GNU gettext-0.15.
27035 2006-07-22 Bruno Haible <bruno@clisp.org>
27037 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
27038 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
27039 lib-prefix.m4, longdouble.m4, ssize_t.m4.
27041 2006-07-21 Eric Blake <ebb9@byu.net>
27043 * modules/stdlib-safer: New file.
27044 * MODULES.html.sh (File stream based Input/Output): Add
27047 2006-07-21 Eric Blake <ebb9@byu.net>
27049 * lib/stdlib-safer.h: New file from coreutils, required by
27052 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
27054 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
27056 2006-07-20 Bruno Haible <bruno@clisp.org>
27058 * gnulib-tool: Recognize new option --assume-autoconf.
27059 (autoconf_minversion): New variable.
27060 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
27062 2006-07-20 Bruno Haible <bruno@clisp.org>
27064 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
27066 2006-07-19 Derek R. Price <derek@ximbiot.com>
27068 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
27069 Reindent and repaginate.
27071 2006-07-19 Derek Price <derek@ximbiot.com>
27073 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
27076 2006-07-17 Bruno Haible <bruno@clisp.org>
27078 * modules/list: New file.
27079 * modules/array-list: New file.
27080 * modules/carray-list, modules/carray-list-tests: New files.
27081 * modules/linked-list, modules/linked-list-tests: New files.
27082 * modules/avltree-list, modules/avltree-list-tests: New files.
27083 * modules/rbtree-list, modules/rbtree-list-tests: New files.
27084 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
27085 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
27086 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
27087 * modules/oset: New file.
27088 * modules/array-oset: New file.
27089 * modules/avltree-oset, modules/avltree-oset-tests: New files.
27090 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
27091 * tests/test-carray_list.c: New file.
27092 * tests/test-linked_list.c: New file.
27093 * tests/test-avltree_list.c: New file.
27094 * tests/test-rbtree_list.c: New file.
27095 * tests/test-linkedhash_list.c: New file.
27096 * tests/test-avltreehash_list.c: New file.
27097 * tests/test-rbtreehash_list.c: New file.
27098 * tests/test-avltree_oset.c: New file.
27099 * tests/test-rbtree_oset.c: New file.
27100 * MODULES.html.sh (Container data structures): New section.
27102 2006-07-17 Bruno Haible <bruno@clisp.org>
27104 * m4/gl_list.m4: New file.
27106 2006-07-17 Bruno Haible <bruno@clisp.org>
27108 * lib/gl_list.h: New file.
27109 * lib/gl_list.c: New file.
27110 * lib/gl_array_list.h: New file.
27111 * lib/gl_array_list.c: New file.
27112 * lib/gl_carray_list.h: New file.
27113 * lib/gl_carray_list.c: New file.
27114 * lib/gl_linked_list.h: New file.
27115 * lib/gl_linked_list.c: New file.
27116 * lib/gl_anylinked_list1.h: New file.
27117 * lib/gl_anylinked_list2.h: New file.
27118 * lib/gl_avltree_list.h: New file.
27119 * lib/gl_avltree_list.c: New file.
27120 * lib/gl_anyavltree_list1.h: New file.
27121 * lib/gl_anyavltree_list2.h: New file.
27122 * lib/gl_rbtree_list.h: New file.
27123 * lib/gl_rbtree_list.c: New file.
27124 * lib/gl_anyrbtree_list1.h: New file.
27125 * lib/gl_anyrbtree_list2.h: New file.
27126 * lib/gl_anytree_list1.h: New file.
27127 * lib/gl_anytree_list2.h: New file.
27128 * lib/gl_linkedhash_list.h: New file.
27129 * lib/gl_linkedhash_list.c: New file.
27130 * lib/gl_anyhash_list1.h: New file.
27131 * lib/gl_anyhash_list2.h: New file.
27132 * lib/gl_avltreehash_list.h: New file.
27133 * lib/gl_avltreehash_list.c: New file.
27134 * lib/gl_rbtreehash_list.h: New file.
27135 * lib/gl_rbtreehash_list.c: New file.
27136 * lib/gl_anytreehash_list1.h: New file.
27137 * lib/gl_anytreehash_list2.h: New file.
27139 * lib/gl_oset.h: New file.
27140 * lib/gl_oset.c: New file.
27141 * lib/gl_array_oset.h: New file.
27142 * lib/gl_array_oset.c: New file.
27143 * lib/gl_avltree_oset.h: New file.
27144 * lib/gl_avltree_oset.c: New file.
27145 * lib/gl_rbtree_oset.h: New file.
27146 * lib/gl_rbtree_oset.c: New file.
27147 * lib/gl_anytree_oset.h: New file.
27149 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
27151 * m4/mkancesdirs.m4: New file.
27152 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
27153 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
27154 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
27157 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
27159 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
27160 * lib/mkancesdirs.h: New files.
27161 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
27162 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
27163 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
27164 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
27165 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
27166 callers changed. Revamp internals significantly, by not
27167 attempting to create directories that are temporarily more
27168 permissive than the final results. Do not attempt to use
27169 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
27170 This removes some race conditions, fixes some bugs, and simplifies
27171 things. Use new dirchownmod function to do owner and mode changes.
27172 * lib/mkdir-p.h: Likewise.
27173 * lib/modechange.c (octal_to_mode): New function.
27174 (struct mode_change): New member mentioned.
27175 (make_node_op_equals): New arg mentioned. All callers changed.
27176 (mode_compile): Keep track of which mode bits the user has explicitly
27178 (mode_adjust): New arg DIR, so that we implement the X op correctly.
27179 New arg PMODE_BITS, to keep track of which mode bits the user
27180 mentioned; it treats S_ISUID and S_ISGID speciall.
27181 All callers changed.
27182 * lib/modechange.h: Likewise.
27184 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
27186 * MODULES.html.sh: Add mkancestors.
27187 * modules/mkancesdirs: New module.
27188 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
27189 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
27190 The chdir-safer and afs files are now orphans; I'll remove them
27191 unless someone speaks up.
27192 Add lib/dirchownmod.c, lib/dirchownmod.h.
27193 (Depends-on): Remove alloca, chown, save-cwd, dirname.
27194 Add lchown, mkancesdirs.
27195 (Maintainer): Add self.
27197 2006-07-15 Karl Berry <karl@gnu.org>
27199 * gnulib-tool: help message wording/arrangement.
27201 2006-07-14 Simon Josefsson <jas@extundo.com>
27203 * doc/gnulib.texi (Libtool and Windows): New section.
27205 2006-07-12 Simon Josefsson <jas@extundo.com>
27207 * modules/gendocs (License): Fix license, approved by Karl.
27209 2006-07-12 Eric Blake <ebb9@byu.net>
27211 * MODULES.html.sh: Add gendocs.
27213 2006-07-11 Eric Blake <ebb9@byu.net>
27215 * modules/fdl: New module, to install doc/fdl.texi.
27216 * MODULES.html.sh: Add new section for documentation modules.
27217 * gnulib-tool: Avoid space-tab.
27218 (--doc-base): New option, to manage files from doc.
27220 2006-07-11 Eric Blake <ebb9@byu.net>
27222 * m4/absolute-header.m4: Fix comments to match recent change.
27224 2006-07-11 Eric Blake <ebb9@byu.net>
27226 * gnulib-tool: List --doc-base before --tests-base.
27228 2006-07-11 Derek R. Price <derek@ximbiot.com>
27230 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
27232 2006-07-11 Bruno Haible <bruno@clisp.org>
27234 * README: Mention where to put documentation.
27236 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27238 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
27240 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
27242 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
27245 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
27247 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
27248 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
27249 "no/such/file/stdint.h" when there is no such file, so that
27250 the resulting C code can be parsed by dodgy compilers.
27251 Problems reported by Bob Proulx.
27253 2006-07-10 Derek R. Price <derek@ximbiot.com>
27255 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
27256 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
27257 macros into the GNU _D_EXACT_NAMLEN.
27258 * lib/savedir.c: Likewise.
27259 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
27261 2006-07-10 Derek R. Price <derek@ximbiot.com>
27262 and Paul Eggert <eggert@cs.ucla.edu>
27264 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
27266 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
27267 macros into the GNU _D_EXACT_NAMLEN.
27269 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
27271 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
27272 around the absolute name, to work around a problem with the HP-UX
27273 11.23 native C compiler, reported by Bob Proulx.
27275 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
27277 * doc/maintain.texi, make-stds.texi: Sync from
27278 <http://savannah.gnu.org/projects/gnustandards>.
27280 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
27282 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
27284 2006-07-09 Jim Meyering <jim@meyering.net>
27286 * m4/glob.m4: Remove a doubled word in a comment.
27288 2006-07-09 Jim Meyering <jim@meyering.net>
27290 * lib/argp-pv.c: Remove a doubled word in a comment.
27291 * lib/check-version.c (check_version): Likewise.
27292 * lib/javacomp.c (compile_java_class): Likewise.
27294 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
27296 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
27297 for the benefit of people using Autoconf 2.60. If you want to
27298 support older Autoconf versions you can copy m4/onceonly_2_57.m4
27299 (or m4/onceonly.m4, if pre-2.57) manually.
27301 2006-07-08 Jim Meyering <jim@meyering.net>
27303 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
27305 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
27306 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
27309 2006-07-08 Jim Meyering <jim@meyering.net>
27311 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
27313 2006-07-07 Simon Josefsson <jas@extundo.com>
27315 * tests/test-crc.c: Change expected crc value, the test vector
27316 were probably computed using the old broken crc.c?
27318 2006-07-06 Simon Josefsson <jas@extundo.com>
27320 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
27321 now the canonical place for the M4 file).
27323 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
27324 from the sys_socket dependency now.
27326 * modules/inet_pton (Files): Ditto.
27328 * modules/inet_ntop (Files): Ditto.
27330 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
27332 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
27333 not gl_PREREQ_GETUSERSHELL.
27335 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27337 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
27338 with only one argument, for Autoconf 2.60.
27339 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
27340 expand to nothing, so add a shell command to avoid syntax error.
27341 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
27343 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27345 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
27347 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
27349 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
27350 no longer needed. Check for isblank decl.
27351 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
27352 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
27355 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
27357 * lib/getloadavg.c: Use __VMS, not VMS.
27358 * lib/getopt.c: Likewise.
27359 * lib/getpagesize.h: Likewise.
27360 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
27361 and probably does not work.
27363 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
27365 * lib/.cppi-disable: Add wcwidth.
27366 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
27367 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
27368 (ISGRAPH): Remove. All uses changed to isgraph.
27369 (FOLD) [!defined _LIBC]: Remove special case.
27370 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
27371 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
27373 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
27376 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
27378 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
27379 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
27380 brackets. Other minor changes to suppress some compiler
27383 2006-07-06 Derek R. Price <derek@ximbiot.com>
27384 and Paul Eggert <eggert@cs.ucla.edu>
27386 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
27387 of invoking obsolescent AC_HEADER_DIRENT macro.
27388 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
27389 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
27390 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27391 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
27392 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
27393 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
27394 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
27395 * m4/readdir.m4: Remove; no longer needed.
27397 2006-07-06 Derek R. Price <derek@ximbiot.com>
27398 and Paul Eggert <eggert@cs.ucla.edu>
27400 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
27401 Don't worry about this obsolete case any more.
27402 (HAVE_DIR): Remove. All uses removed; we now assume you can read
27404 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
27405 worry about this obsolete case any more.
27406 * lib/fts.c: Likewise.
27407 * lib/getcwd.c: Likewise.
27408 * lib/glob.h: Likewise.
27409 * lib/savedir.c: Likewise.
27411 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
27413 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
27414 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
27415 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
27418 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
27419 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
27420 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
27422 * m4/getdate.m4 (gl_GETDATE): Likewise.
27423 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
27424 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
27425 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27426 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
27427 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
27428 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
27429 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
27432 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
27434 * lib/memcasecmp.c: Include <limits.h>.
27435 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
27436 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
27437 Don't assume isdigit succeeds only on '0' through '9'.
27439 2006-07-05 Eric Blake <ebb9@byu.net>
27441 * modules/getaddrinfo (Depends-on): Add snprintf.
27443 2006-07-05 Eric Blake <ebb9@byu.net>
27445 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
27446 to avoid 'header present but could not be compiled' on cygwin.
27448 2006-07-05 Eric Blake <ebb9@byu.net>
27450 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
27451 missing from netdb.h.
27452 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
27454 2006-07-05 Derek R. Price <derek@ximbiot.com>
27456 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
27458 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
27459 * m4/getdate.m4 (gl_GETDATE): Likewise.
27460 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
27461 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
27462 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27463 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
27464 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
27466 2006-07-05 Derek R. Price <derek@ximbiot.com>
27468 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
27469 All uses of is_space replaced by isspace.
27470 * lib/exit.h: Don't talk about STDC_HEADERS.
27471 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
27472 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
27473 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
27474 replaced by isprint etc.
27475 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
27476 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
27477 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
27478 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
27479 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
27480 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
27482 2006-07-05 Bruno Haible <bruno@clisp.org>
27484 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
27485 the function exists, before testing against AIX.
27486 Reported by Martin Lambers <marlam@marlam.de>.
27488 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
27490 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
27491 From Mark D. Baushke.
27493 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
27495 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
27496 to the absolute name, not just one, to bypass Sun C 5.8's
27497 "warning: #include of /usr/include/... may be non-portable".
27499 2006-07-04 Eric Blake <ebb9@byu.net>
27501 * modules/dirname-tests: New test module.
27502 * tests/test-dirname.c: New file, replacing dirname.c
27503 TEST_DIRNAME section that was recently deleted.
27505 2006-07-04 Bruno Haible <bruno@clisp.org>
27507 Assume ANSI C header files and <ctype.h> functions.
27508 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
27509 (mbsnwidth): Use isprint, iscntrl instead.
27511 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
27513 Merge from coreutils.
27514 * MODULES.html.sh: Add xstrtold.
27515 * modules/xstrtold: New file.
27516 * modules/cycle-check (Files): Add lib/same-inode.h.
27517 * modules/dirname (Files): Add m4/double-slash-root.m4.
27518 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
27519 * modules/mkdir-p (Files): Add lib/same-inode.h.
27520 * modules/same (Files): Add lib/same-inode.h.
27522 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
27524 * m4/absolute-header.m4: Renamed from full-header-path.m4.
27525 This is to keep the terminology clean; POSIX talks about
27526 "absolute pathnames", not "full pathnames", but the GNU
27527 Coding Standards say to use "path" for something else;
27528 so use "absolute" to keep both sides happy.
27529 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
27530 Set gl_absolute_header, not gl_full_header_path.
27531 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
27532 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
27535 Merge from coreutils.
27537 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
27539 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
27540 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
27541 want to require the building of c-strtod.o.
27542 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
27543 needs -lm directly.
27544 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
27546 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
27548 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
27549 --as-needed option if available. Problem reported by Albert Chin in
27550 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
27551 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
27552 cc merely issues a bunch of annoying warnings for --as-needed
27553 (this problem was reported by Bob Proulx). Also, try linking with
27554 -lm to detect a bug in binutils 2.16 (this problem was reported
27555 by Ralf Wildenhues).
27557 2006-06-18 Jim Meyering <jim@meyering.net>
27559 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
27560 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
27562 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
27563 also check for glibc-2.4's abort-inducing bug.
27565 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
27566 Low-probability clean-up should be to use rmdir to get rid of
27567 the just-created directory, not unlink.
27569 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
27570 configure fail, and request a bug report to inform us about it.
27571 Add a comment that, barring reports to the contrary, in 2007 we'll
27572 assume ftruncate is universally available.
27574 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
27576 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
27578 2006-03-12 Jim Meyering <jim@meyering.net>
27580 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
27581 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
27582 * m4/same.m4 (gl_SAME): Likewise.
27583 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
27585 2006-03-11 Eric Blake <ebb9@byu.net>
27587 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
27588 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
27589 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
27590 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
27592 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
27594 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
27595 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
27596 reported by Mark D. Baushke, one in
27597 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
27599 Merge from coreutils.
27601 * lib/.cppi-disable: Add stdint_.h.
27602 * lib/.cvsignore: Add stdint.h.
27604 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
27606 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
27607 both double and long double versions.
27608 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
27609 * lib/xstrtold.c: New file.
27610 * lib/xstrtod.h (xstrtold): New decl.
27612 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
27614 * lib/filemode.c (setst): Remove.
27615 (strmode): Rewrite to avoid setst. This makes the code shorter,
27616 (arguably) clearer, and the generated code is a bit smaller on my
27617 Debian GNU/Linux stable x86 host.
27619 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
27621 * lib/filemode.c: Include "filemode.h" first, to test the interface.
27622 Assume that filemode.h includes sys/types.h and sys/stat.h.
27623 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
27624 (ftypelet): Reorder to put common cases first, for efficiency.
27625 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
27627 (strmode): Renamed from mode_string, and now stores 12 bytes instead
27628 of 10, for compatibility with FreeBSD. All callers changed.
27629 (filemodestring): Now stores 12 bytes instead of 10, and sets file
27630 types that can't be deduced solely from st_mode. First arg is now a
27632 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
27633 (strmode): Renamed from mode_string.
27634 (filemodestring): New decl.
27635 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
27636 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
27638 (S_ISPORT, S_ISWHT): New macros, if not already defined.
27640 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
27642 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
27643 fsusage.h now does that. Include fsusage.h first, to test interface.
27644 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
27645 at most one method (the old code could have generated decls that
27646 didn't conform to C89, not that this was ever exercised).
27647 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
27649 2006-03-19 Jim Meyering <jim@meyering.net>
27651 Work even in a chroot where d_ino values for entries in "/"
27652 don't match the stat.st_ino values for the same names.
27653 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
27654 number, iterate through all entries again, using lstat instead.
27655 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
27656 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
27658 * lib/getcwd.c (__getcwd): Clarify a comment.
27659 Use memcpy in place of a call to strcpy.
27661 2006-03-12 Jim Meyering <jim@meyering.net>
27663 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
27664 matches that of the current directory (which we're about to chdir ".."
27665 out of), then save the dev-ino of the parent, instead.
27667 * lib/same-inode.h (SAME_INODE): New file/macro.
27668 * lib/chdir-safer.c (SAME_INODE): Remove definition.
27669 Include "same-inode.h", instead.
27670 * lib/same.c: Likewise.
27671 * lib/cycle-check.h: Include "same-inode.h".
27672 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
27673 * lib/cycle-check.c (SAME_INODE): Remove definition.
27674 * lib/root-dev-ino.h: Include "same-inode.h".
27676 2006-03-11 Eric Blake <ebb9@byu.net>
27678 * lib/same.c (same_name): s/base_name/last_component/
27679 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
27680 * lib/filenamecat.c (file_name_concat): Likewise.
27682 2006-03-11 Eric Blake <ebb9@byu.net>,
27683 Paul Eggert <eggert@cs.ucla.edu>
27685 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
27686 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
27688 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
27689 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
27690 (last_component): New method.
27691 * lib/dirname.c (dir_len): Determine when drive letters need a
27692 subsequent slash. Preserve // when it is special.
27693 (dir_name): Don't append dot when drive letter is absolute.
27694 [TEST_DIRNAME]: Move into a full-blown gnulib test.
27695 * lib/basename.c (base_name): New semantics - malloc the result.
27696 Preserve // when it is special. Preserve relative files that look
27697 like drive letters.
27698 (base_len): Preserve // when it is special.
27699 (last_component): New method, similar to old base_name semantics.
27700 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
27701 base_name. Strip redundant slashes from ///.
27703 2006-07-03 Jim Meyering <jim@meyering.net>
27705 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
27706 macro is used before the first cycle_check call.
27708 2006-07-03 Eric Blake <ebb9@byu.net>
27710 * modules/dirname (Depends-on): Add xstrndup.
27712 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
27714 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
27715 test cases, so that config.log is a bit easier to follow.
27717 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
27719 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
27720 both are 64 bits, since this seems to be the tradition, and this
27721 prevents gcc -Wformat from warning about usages with PRIuMAX. If
27722 we ever run into a host that prefers long long to long in this
27723 case, we'll need another configure-time test. Problem reported by
27726 2006-07-02 Eric Blake <ebb9@byu.net>
27728 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
27730 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
27732 * modules/inttypes (Depends-on): No longer depends on stdint.
27733 * modules/stdint (Description): Say more about assumptions.
27734 Say that the fast types might differ. Say macros are used.
27735 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
27736 (Makefile.am): Revise list of substituted symbols to match
27738 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
27739 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
27740 * tests/test-stdint.c (verify_same_types)
27741 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
27742 the code conforms to C99/C89.
27743 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
27744 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
27746 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
27748 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
27749 but fix a bug, by requiring at least 64 bits.
27750 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
27751 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
27752 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
27753 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
27755 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
27756 changes. Make 2.59 a prerequisite. Check and substitute for
27757 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
27758 inttypes.h. Do not use special include files; just use the
27759 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
27760 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
27761 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
27762 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
27763 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
27764 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
27765 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
27766 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
27767 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
27768 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
27769 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
27770 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
27771 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
27772 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
27773 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
27774 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
27775 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
27776 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
27777 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
27778 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
27779 WINT_MAX. Check for C99 conformance more strictly, by detecting
27780 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
27781 not check for things that C99 does not require, e.g., int8_t. If
27782 a test isn't needed unless <stdint.h> isn't working, and is
27783 unlikely to be needed for any other reason, then don't do it
27784 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
27785 size_t, since we assume C89 freestanding at least. Do not check
27786 for sig_atomic_t, wchar_t, or wint_t, since the code now does
27787 the right thing even if the types are not defined. Instead use:
27788 (gl_STDINT_TYPE_PROPERTIES): New macro.
27789 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
27790 testing whether <sys/types.h> clashes, as Autoconf does this for
27791 us now. All uses removed.
27792 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
27793 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
27794 (gl_CHECK_TYPE_SAME):
27795 Remove; no longer needed.
27796 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
27797 exists, since we'll return 0 anyway in that case.
27798 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
27800 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
27802 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
27803 possible collision with system files.
27804 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
27805 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
27806 WCHAR_MIN and WCHAR_MAX in this case.
27807 (<stddef.h>): Do not include; no longer needed.
27808 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
27809 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
27810 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
27811 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
27812 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
27813 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
27814 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
27815 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
27816 !defined(__c99))]: Include in this case too, since it's harmless
27818 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
27819 dangerous to do so.
27820 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
27821 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
27822 (_STDINT_MIN, _STDINT_MAX): New macros.
27823 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
27824 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
27825 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
27826 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
27827 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
27828 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
27829 macros, not typedefs; this simplifies things quite a bit.
27830 Use long int for all types narrower than int64_t.
27831 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
27832 Define in terms of long long int or int64_t or long int,
27833 not int64_t or int32_t. This saves some compile-time testing.
27834 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
27835 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
27836 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
27837 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
27838 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
27839 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
27840 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
27841 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
27842 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
27843 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
27844 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
27845 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
27846 undef any previous version and define our own version, for
27847 simplicity and consistency with the new macros for types.
27848 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
27849 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
27850 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
27851 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
27852 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
27853 @WINT_T_SUFFIX@ to keep things simple here.
27854 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
27855 Simplify by assuming typical 8/16/32/64 host, since we're
27856 already doing that elsewhere anyway.
27857 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
27858 and assume long long int is 64 bits if available. This
27859 speeds up 'configure'.
27861 2006-07-01 Eric Blake <ebb9@byu.net>
27863 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
27864 Reported by Andreas Buening.
27866 2006-07-01 Eric Blake <ebb9@byu.net>
27868 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
27870 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
27872 * lib/getaddrinfo.c: fixed typo
27874 2006-06-29 Jim Meyering <jim@meyering.net>
27876 * modules/strftime (Maintainer): Add my name, since with the
27877 FPRINTFTIME changes strftime.c has forked from glibc.
27879 2006-06-29 Eric Blake <ebb9@byu.net>
27881 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
27883 2006-06-29 Eric Blake <ebb9@byu.net>
27885 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
27887 2006-06-29 Eric Blake <ebb9@byu.net>
27889 * lib/stat_.h: New file.
27891 2006-06-29 Eric Blake <ebb9@byu.net>
27893 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
27894 unused static function.
27896 2006-06-29 Eric Blake <ebb9@byu.net>
27898 * doc/functions.texi (Function Portability): Document missing lstat
27901 2006-06-29 Eric Blake <ebb9@byu.net>
27903 * MODULES.html.sh: Add sys_stat.
27904 * modules/sys_stat: New module.
27905 * modules/mkstemp (Depends-on): Add sys_stat.
27907 2006-06-29 Derek R. Price <derek@ximbiot.com>
27909 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
27911 2006-06-29 Derek R. Price <derek@ximbiot.com>
27913 * m4/c-bs-a.m4: Removed.
27915 2006-06-29 Derek R. Price <derek@ximbiot.com>
27917 * lib/strftime.c: Assume strftime() exists.
27919 2006-06-29 Derek Price <derek@ximbiot.com>
27921 * modules/c-bs-a: Removed - \a is C89.
27922 * MODULES.html.sh: Remove c-bs-a.
27924 2006-06-29 Bruno Haible <bruno@clisp.org>
27926 * modules/wcwidth (License): Change to LGPL.
27928 2006-06-28 Simon Josefsson <jas@extundo.com>
27930 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
27933 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
27936 2006-06-28 Simon Josefsson <jas@extundo.com>
27938 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
27940 2006-06-28 Simon Josefsson <jas@extundo.com>
27942 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
27943 functions there. It will succeed on Windows XP, but on Windows
27944 2000 and (presumably) earlier, it will fail, and use the internal
27946 (use_win32_p): New function.
27947 (getaddrinfo): Use strtoul on servname, to support numeric ports.
27948 Support AI_NUMERICSERV to disable getservbyname.
27949 (getnameinfo): New function, only supports
27950 NI_NUMERICHOST|NI_NUMERICSERV for now.
27952 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
27953 only have some of them. Add AI_NUMERICSERV. Add prototype for
27956 2006-06-28 Eric Blake <ebb9@byu.net>
27958 * modules/wcwidth: New file.
27959 * modules/mbchar (Depends-on): Add wcwidth.
27960 * modules/mbswidth (Depends-on): Add wcwidth.
27961 * MODULES.html.sh: Add wcwidth.
27963 2006-06-28 Eric Blake <ebb9@byu.net>
27965 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
27966 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
27968 2006-06-28 Eric Blake <ebb9@byu.net>
27970 * lib/xvasprintf.h: Fix comments.
27972 2006-06-28 Eric Blake <ebb9@byu.net>
27974 * lib/mbchar.h (wcwidth): Include wcwidth.h.
27975 * lib/mbswidth.c (wcwidth): Move from here...
27976 * lib/wcwidth.h: ...to this new file.
27978 2006-06-28 Derek R. Price <derek@ximbiot.com>
27980 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
27982 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
27984 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
27986 2006-06-28 Derek R. Price <derek@ximbiot.com>
27988 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
27989 Autoconf 2.60 says this stuff was obsolete.
27991 2006-06-28 Bruno Haible <bruno@clisp.org>
27993 * modules/wcwidth (Files): Add m4/wchar_t.m4.
27995 2006-06-28 Bruno Haible <bruno@clisp.org>
27997 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
28000 2006-06-28 Bruno Haible <bruno@clisp.org>
28002 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
28003 declaration for wcwidth.
28004 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
28006 2006-06-28 Bruno Haible <bruno@clisp.org>
28008 * lib/mkdtemp.c [MINGW]: Include <io.h>.
28009 (mkdir): Define using _mkdir.
28011 2006-06-28 Bruno Haible <bruno@clisp.org>
28013 * lib/getaddrinfo.h: Fix POSIX URL.
28014 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
28016 (use_win32_p): Make static.
28017 (getaddrinfo): Reject service name if it is empty or does not consist
28018 solely of decimal digits, or if its value is > 65535.
28019 (getnameinfo): Remove useless casts.
28021 2006-06-27 Simon Josefsson <jas@extundo.com>
28023 * modules/sys_select: New file, suggested by Bruno Haible, Paul
28024 Eggert and Martin Lambers.
28026 2006-06-27 Simon Josefsson <jas@extundo.com>
28028 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
28029 Eggert and Martin Lambers.
28031 2006-06-27 Bruno Haible <bruno@clisp.org>
28033 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
28034 result to 0, not to empty.
28035 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
28037 2006-06-27 Bruno Haible <bruno@clisp.org>
28039 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
28041 2006-06-26 Simon Josefsson <jas@extundo.com>
28043 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
28046 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
28048 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
28049 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
28050 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
28052 2006-06-26 Mark D. Baushke <mdb@gnu.org>
28054 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
28056 2006-06-26 Bruno Haible <bruno@clisp.org>
28058 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
28060 2006-06-26 Bruno Haible <bruno@clisp.org>
28062 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
28064 2006-06-26 Bruno Haible <bruno@clisp.org>
28066 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
28067 SGI C compiler in pre-C99 mode.
28068 Suggested by Mark D. Baushke and Larry Jones.
28070 2006-06-26 Bruno Haible <bruno@clisp.org>
28072 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
28074 Reported by Mark D. Baushke and Larry Jones.
28076 2006-06-26 Bruno Haible <bruno@clisp.org>
28078 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
28080 Suggested by Mark D. Baushke and Larry Jones.
28082 2006-06-23 Simon Josefsson <jas@extundo.com>
28083 Bruno Haible <bruno@clisp.org>
28085 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
28086 Emit mostlyclean-local rule.
28087 (func_emit_tests_Makefile_am): Likewise.
28088 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
28090 2006-06-23 Mark D. Baushke <mdb@gnu.org>
28092 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
28094 2006-06-23 Bruno Haible <bruno@clisp.org>
28096 * tests/test-stdint.c: Update to match ISO C 99 Technical
28099 2006-06-23 Bruno Haible <bruno@clisp.org>
28101 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
28103 2006-06-23 Bruno Haible <bruno@clisp.org>
28105 * lib/stdint_.h: Treat IRIX like OpenBSD.
28107 2006-06-23 Bruno Haible <bruno@clisp.org>
28109 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
28110 ISO C 99 Technical Corrigendum 1.
28112 2006-06-22 Simon Josefsson <jas@extundo.com>
28114 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
28117 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
28119 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
28120 needed. Some compiler complained about some of them. Problem reported
28122 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
28124 2006-06-21 Simon Josefsson <jas@extundo.com>
28126 * tests/test-getaddrinfo.c: New file.
28128 * modules/getaddrinfo-tests: New file.
28130 * MODULES.html.sh: Add inet_pton.
28132 * modules/inet_pton: New file.
28134 2006-06-21 Simon Josefsson <jas@extundo.com>
28136 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
28137 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
28138 of using the (limited) gnulib implementation on Windows XP.
28140 * m4/inet_pton.m4: New file.
28142 2006-06-21 Simon Josefsson <jas@extundo.com>
28144 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
28147 * lib/socket_.h: Don't define WINVER.
28149 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
28150 slightly modified to work in gnulib.
28152 2006-06-21 Simon Josefsson <jas@extundo.com>
28154 * doc/gnulib.texi (Windows sockets): Add.
28156 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
28158 * lib/read-file.c (fread_file): Start with buffer allocation of
28159 0 bytes rather than 1 byte; this simplifies the code.
28160 Don't invoke feof; it's not needed. Refactor to avoid duplicate
28161 code to free buffer and save/restore errno.
28162 (internal_read_file): Remove unused local.
28164 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
28166 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
28167 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
28168 Problem reported by Denis Excoffier in
28169 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
28171 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
28173 * modules/sys_socket, modules/socklen: Include sys/types since
28174 FreeBSD 4.x's sys/socket.h needs it.
28176 2006-06-19 Simon Josefsson <jas@extundo.com>
28178 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
28180 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
28182 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
28184 2006-06-19 Bruno Haible <bruno@clisp.org>
28186 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
28187 and FULL_PATH_INTTYPES_H in angle brackets.
28188 Reported by Mark D. Baushke <mdb@gnu.org>.
28190 2006-06-17 Eric Blake <ebb9@byu.net>
28192 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
28195 2006-06-17 Bruno Haible <bruno@clisp.org>
28197 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
28200 2006-06-17 Bruno Haible <bruno@clisp.org>
28202 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
28203 whether errno is declared. Assume <errno.h> declares errno.
28205 2006-06-17 Bruno Haible <bruno@clisp.org>
28207 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
28209 2006-06-17 Bruno Haible <bruno@clisp.org>
28211 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
28212 problem on Solaris 2.5.1.
28214 2006-06-16 Eric Blake <ebb9@byu.net>
28216 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
28217 * lib/unicodeio.c [!defined errno]: Likewise.
28218 * lib/strtol.c [!defined errno]: Likewise.
28219 * lib/strtod.c [!defined errno]: Likewise.
28221 2006-06-15 Eric Blake <ebb9@byu.net>
28223 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
28225 2006-06-15 Eric Blake <ebb9@byu.net>
28227 * config/srclist.txt (ssize_t.m4): Lose sync.
28229 2006-06-15 Bruno Haible <bruno@clisp.org>
28231 * modules/stdint (Files): Include m4/full-header-path.m4,
28232 m4/size_max.m4, m4/wchar_t.m4.
28233 (Makefile.am): Many more substitutions.
28234 * modules/stdint-tests: New file.
28235 * tests/test-stdint.c: New file.
28237 2006-06-15 Bruno Haible <bruno@clisp.org>
28239 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
28240 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
28241 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
28242 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
28243 gl_CHECK_TYPE_SAME): New macros.
28245 2006-06-15 Bruno Haible <bruno@clisp.org>
28247 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
28249 2006-06-15 Bruno Haible <bruno@clisp.org>
28251 * lib/stdint_.h: Rewritten to be fully auto-configured.
28252 Fixes bug on HP-UX/IA64.
28254 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
28256 * lib/getdate.y (__attribute__): Don't define if already defined.
28257 Problem reported by Larry Jones.
28258 * lib/utimens.c (__attribute__): Likewise.
28260 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
28262 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
28263 reported by Andreas Schwab.
28265 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28266 Bruno Haible <bruno@clisp.org>
28268 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
28269 check for the declaration of strnlen and a run test that exposes the
28270 AIX 5.1 strnlen bug. In the failure case, #define strndup to
28273 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28274 Bruno Haible <bruno@clisp.org>
28276 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
28278 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28280 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
28281 compile test, for Tru64 4.0D.
28283 2006-05-28 Karl Berry <karl@gnu.org>
28285 * config/srclist.txt (printf-args.c): lose sync.
28287 2006-05-26 Martin Lambers <marlam@marlam.de>
28289 * lib/getpass.c: Updates the test for the native W32 API, and adds
28290 missing includes, thus fixing compilation warnings.
28292 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
28294 * lib/exclude.c (exclude_fnmatch): New function.
28295 (excluded_file_name): Call exclude_fnmatch.
28296 * lib/exclude.h (excluded_file_name): New prototype
28298 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
28300 * lib/tempname.c (small_open, large_open): New macros.
28301 (__open, __open64) [!_LIBC]: Remove.
28302 (__gen_tempname): Use small_open and large_open instead of __open
28303 and __open64. This fixes a portability bug on HP-UX 11.11i
28304 reported by Simon Wing-Tang in
28305 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
28307 2006-05-24 Bruno Haible <bruno@clisp.org>
28309 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
28310 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
28311 Reported by Thorsten Maerz <torte@netztorte.de> via
28312 Aaron Stone <aaron@serendipity.cx>.
28314 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
28316 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
28317 gl_ rather than jm_. Link, don't run, so that cross-compiles are
28318 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
28319 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
28320 not really conditional on the cache.
28321 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
28323 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
28325 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
28326 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
28327 (my_usleep): Don't mishandle maximum value.
28329 2006-05-19 Jim Meyering <jim@meyering.net>
28331 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
28333 2006-05-17 Bruno Haible <bruno@clisp.org>
28335 Cygwin portability.
28336 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
28338 2006-05-17 Bruno Haible <bruno@clisp.org>
28340 * lib/stdint_.h: Fix recognition of Cygwin.
28342 2006-05-15 Bruno Haible <bruno@clisp.org>
28344 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
28345 on libtool patch by Ralf Wildenhues.
28347 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
28349 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
28350 test for C99 conformance; (bool) 0.5 is an integer constant
28351 expression, but (bool) -0.5 is not. Problem reported by Fedor
28352 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
28354 2006-05-11 Simon Josefsson <jas@extundo.com>
28356 * m4/xvasprintf.m4: Fix obvious typo.
28358 2006-05-11 Jim Meyering <jim@meyering.net>
28360 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
28363 2006-05-10 Simon Josefsson <jas@extundo.com>
28365 * lib/md4.c: Typo fix, update copyright years.
28366 (K1, K2): Don't use L because it turn computations into 64-bit on
28369 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
28371 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
28372 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
28373 unwanted sign propagation, e.g., on hosts with 64-bit int.
28374 There still are some problems with reeelly weird theoretical hosts
28375 (e.g., 33-bit int) but it's not worth worrying about now.
28376 * lib/sha1.c (rol): Likewise.
28377 (K1, K2, K3, K4): Remove unnecessary L suffix.
28379 2006-05-10 Bruno Haible <bruno@clisp.org>
28381 * lib/des.c: Cast to avoid warnings.
28383 2006-05-09 Bruno Haible <bruno@clisp.org>
28385 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
28386 (Depends-on): Depend also on xsize, stdarg.
28387 (configure.ac): Add gl_XVASPRINTF.
28389 2006-05-09 Bruno Haible <bruno@clisp.org>
28391 * m4/xvasprintf.m4: New file.
28393 2006-05-09 Bruno Haible <bruno@clisp.org>
28395 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
28396 (EOVERFLOW): Define fallback value.
28397 (xstrcat): New function.
28398 (xvasprintf): Recognize the special case of a string concatenation.
28400 2006-05-08 Eric Blake <ebb9@byu.net>
28402 * gnulib-tool (func_version): Base copyright year on CVS date.
28403 (func_emit_copyright_notice): New function.
28404 (func_emit_lib_Makefile_am): Use it.
28405 (func_emit_tests_Makefile_am): Likewise.
28406 (func_import): Likewise.
28408 2006-05-08 Bruno Haible <bruno@clisp.org>
28410 * modules/stdarg: New file.
28411 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
28413 2006-05-08 Bruno Haible <bruno@clisp.org>
28415 * m4/stdarg.m4: New file, from GNU gettext.
28417 2006-05-08 Bruno Haible <bruno@clisp.org>
28419 * config/srclist.txt (build-aux/config.rpath): different from latest
28422 2006-05-08 Bruno Haible <bruno@clisp.org>
28424 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
28426 2006-05-05 Jim Meyering <jim@meyering.net>
28428 * m4/warning.m4: New file, derived from bison's file by the same name.
28430 2006-05-03 Bruno Haible <bruno@clisp.org>
28432 * lib/stdint_.h: Shorter URL.
28433 * lib/inttypes.h: Likewise.
28435 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
28437 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
28439 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
28441 * lib/verify.h: Document the internals better. Most of this change
28442 was written by Bruno Haible.
28444 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
28446 * doc/verify.texi: New file, partly based on a proposal by
28449 2006-05-02 Bruno Haible <bruno@clisp.org>
28451 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
28453 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
28455 2006-04-29 Bruno Haible <bruno@clisp.org>
28457 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
28458 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
28460 2006-04-29 Bruno Haible <bruno@clisp.org>
28462 * gnulib-tool: Make --update option actually work.
28464 2006-04-29 Bruno Haible <bruno@clisp.org>
28466 * doc/gcd.texi: New file.
28467 * doc/gnulib.texi: Include it.
28469 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
28471 * lib/getdate.y (get_date): When adding relative date, start with the
28472 initial time, not with the result of the first mktime call.
28474 2006-04-25 Bruno Haible <bruno@clisp.org>
28476 * gnulib-tool (func_import): Output the include directives in three
28477 blocks, sorted separately.
28478 Reported by Ben Pfaff <blp@cs.stanford.edu>.
28480 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
28482 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
28483 to define main with arguments, for C++. Reported by Eric Blake.
28484 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
28485 Prefer 'int main ()' to 'int main (void)', for C++.
28486 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
28487 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
28488 for 'main', for C99 and C++.
28490 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
28492 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
28493 Don't assume that exit status -1 is valid.
28494 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28495 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
28496 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
28497 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
28498 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
28499 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
28500 not AC_TRY_RUN. Use return, not exit. Don't assume that
28501 functions can be used without declaring them, or that you can
28502 exit with status -1.
28503 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
28505 2006-04-24 Karl Berry <karl@gnu.org>
28507 * config/srclist.txt (longdouble.m4): sync lost.
28509 2006-04-24 Eric Blake <ebb9@byu.net>
28511 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
28513 2006-04-24 Bruno Haible <bruno@clisp.org>
28515 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
28516 poll() implementation in AIX.
28517 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28519 2006-04-24 Bruno Haible <bruno@clisp.org>
28521 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
28522 assigned exactly once.
28524 2006-04-23 Claudio Fontana <claudio@gnu.org>
28525 Bruno Haible <bruno@clisp.org>
28527 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
28528 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
28531 2006-04-23 Bruno Haible <bruno@clisp.org>
28533 * modules/copy-file: Depend on unistd.
28534 * modules/execute: Likewise.
28535 * modules/fatal-signal: Likewise.
28536 * modules/findprog: Likewise.
28537 * modules/mkdtemp : Likewise.
28538 * modules/pipe: Likewise.
28539 * modules/wait-process: Likewise.
28541 2006-04-23 Bruno Haible <bruno@clisp.org>
28543 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
28544 condition was already detected.
28545 Reported by Ben Pfaff <blp@cs.stanford.edu>.
28547 2006-04-23 Bruno Haible <bruno@clisp.org>
28549 * lib/copy-file.c: Include <unistd.h> unconditionally.
28550 * lib/execute.c: Likewise.
28551 * lib/fatal-signal.c: Likewise.
28552 * lib/findprog.c: Likewise.
28553 * lib/mkdtemp.c: Likewise.
28554 * lib/pipe.h: Likewise.
28555 * lib/pipe.c: Likewise.
28556 * lib/wait-process.h: Likewise.
28558 2006-04-23 Bruno Haible <bruno@clisp.org>
28560 * gnulib-tool (func_usage): Fix --import description. Document
28562 (func_import): Create temporary file in a temporary directory, if
28563 --dry-run is specified. Silence errors from 'grep' when there are no
28564 m4 files in $m4dir.
28565 (func_create_testdir): Silence errors from 'grep' when there are no
28566 m4 files in $m4dir.
28567 Reported by Karl Berry <karl@freefriends.org>.
28569 2006-04-20 Bruno Haible <bruno@clisp.org>
28571 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
28572 one argument, so that the code will be portable to Autoconf 2.60.
28573 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
28574 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
28575 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
28577 2006-04-19 Derek Price <derek@ximbiot.com>
28578 Eric Blake <ebb9@byu.net>
28580 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
28581 rather than "/full/path.h". Update comment to match. Shorten &
28582 generalize m4_translit call via AS_TR_CPP.
28584 2006-04-19 Derek Price <derek@ximbiot.com>
28585 Eric Blake <ebb9@byu.net>
28587 * lib/inttypes.h: Correct grammar in comment.
28589 2006-04-18 Derek Price <derek@ximbiot.com>
28590 Paul Eggert <eggert@cs.ucla.edu>
28592 * modules/inttypes: New file.
28593 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
28595 2006-04-18 Derek Price <derek@ximbiot.com>
28596 Paul Eggert <eggert@cs.ucla.edu>
28598 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
28601 2006-04-18 Derek Price <derek@ximbiot.com>
28602 Paul Eggert <eggert@cs.ucla.edu>
28604 * lib/inttypes.h: New file.
28605 * lib/strtoimax.c: Assume <inttypes.h>.
28607 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
28609 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
28610 isn't mounted. Problem reported by Kir Kolyshkin.
28612 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
28614 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
28615 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
28617 * lib/regex.h (RE_DUP_MAX): Update comment to match current
28620 2006-04-12 Eric Blake <ebb9@byu.net>
28622 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
28623 is now done automatically by the corresponding Autoconf macro.
28625 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
28627 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
28630 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
28632 Merge regex changes from libc, removing some of our
28633 POSIX-conformance changes that were rejected and redoing them in a
28634 less-intrusive way.
28636 * lib/regcomp.c (re_compile_internal, init_dfa):
28637 Length arg is now size_t, not Idx. All uses changed.
28638 (peek_token): Forward decl now says internal_function.
28639 (__re_error_msgid, __re_error_msgid_idx):
28640 Now static rather than extern with attribute_hidden.
28641 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
28642 For some reason libc prefers K&R style defns for external functions.
28643 (regerror) [!defined _LIBC]: Likewise.
28644 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
28645 (seek_collating_symbol_entry, lookup_collation_sequence_value):
28646 (build_range_exp, build_collating_symbol):
28647 Use K&R-style defn.
28648 (re_compile_fastmap): Use '\0' to memset, not 0.
28649 (utf8_sb_map): Make the calculations more obvious.
28650 (init_dfa, parse_bracket_exp, build_charclass_op):
28651 Call calloc and cast result, as glibc does.
28652 (init_word_char, fetch_token, peek_token, peek_token_bracket):
28653 (build_range_exp, build_collating_symbol):
28654 Now internal functions.
28656 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
28658 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
28659 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
28660 Don't depend on VMS; depend on __VMS instead, for POSIX
28661 namespace cleanness.
28662 (regoff_t): Define to ssize_t, not long int.
28664 Remove the REG_ macros named below. Instead, make the old names
28665 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
28667 (REG_BACKSLASH_ESCAPE_IN_LISTS):
28668 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
28669 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
28670 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
28671 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
28672 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
28673 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
28674 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
28675 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
28676 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
28677 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
28678 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
28679 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
28680 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
28681 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
28682 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
28683 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
28685 Remove. All uses replaced by the old RE_* names.
28686 (RE_BACKSLASH_ESCAPE_IN_LISTS):
28687 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
28688 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
28689 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
28690 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
28691 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
28692 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
28693 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
28694 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
28695 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
28696 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
28697 Don't bother having these macros be independent of each others'
28698 values, since they no longer exist in the POSIX name space.
28700 Rename the following member names back to their old names,
28701 unless !__USE_GNU_REGEX. All uses changed back.
28702 (buffer): Renamed from re_buffer.
28703 (allocated): Renamed from re_allocated.
28704 (used): Renamed from re_used.
28705 (syntax): Renamed from re_syntax.
28706 (fastmap): Renamed from re_fastmap.
28707 (translate): Renamed from re_translate.
28708 (can_be_null): Renamed from re_can_be_null.
28709 (regs_allocated): Renamed from re_regs_allocated.
28710 (fastmap_accurate): Renamed from re_fastmap_accurate.
28711 (no_sub): Renamed from re_no_sub.
28712 (not_bol): Renamed from re_not_bol.
28713 (not_eol): Renamed from re_not_eol.
28714 (newline_anchor): Renamed from re_newline_anchor.
28715 (num_regs): Renamed from rm_num_regs.
28716 (start): Renamed from rm_start.
28717 (end): Renamed from rm_end.
28719 (free_state): Move up a bit.
28721 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
28722 #define to be empty.
28723 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
28724 when that is what is intended.
28725 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
28726 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
28728 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
28729 All uses changed back to re_malloc, etc. It's now the caller's
28730 responsibility to check for overflow; all callers changed.
28731 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
28732 (re_x2nrealloc): Remove.
28733 (free_state): Remove decl.
28735 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
28736 (re_set_registers, re_exec):
28737 Use K&R-style defn.
28739 2006-01-31 Roland McGrath <roland@redhat.com>
28741 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
28742 Reported by Mike Frysinger <vapier@gentoo.org>.
28744 2006-01-15 Andreas Jaeger <aj@suse.de>
28747 * lib/regex_internal.c (re_string_reconstruct): Adjust for
28748 build_wcs_upper_buffer change.
28749 (build_wcs_upper_buffer): Change return type.
28751 2005-12-10 Ulrich Drepper <drepper@redhat.com>
28753 * lib/regex_internal.h: Include <stdint.h> if available.
28755 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
28757 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
28759 2005-10-14 Ulrich Drepper <drepper@redhat.com>
28761 * lib/regcomp.c: Adjust for changed secondary hash function.
28763 2005-09-30 Ulrich Drepper <drepper@redhat.com>
28765 * lib/regex.h: Pretty printing.
28766 Clean up namespace a bit.
28768 2005-09-30 Jakub Jelinek <jakub@redhat.com>
28770 * lib/regexec.c (update_cur_sifted_state, check_arrival,
28771 check_arrival_add_next_nodes): Avoid using uninitialized variable.
28773 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
28774 Ulrich Drepper <drepper@redhat.com>
28777 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
28779 (bitset_word_t): Renamed from bitset_word. All uses changed.
28781 2005-09-22 Ulrich Drepper <drepper@redhat.com>
28784 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
28785 * lib/regcomp.c: Remove unnecessary uses of
28786 unsigned RE_TRANSLATE_TYPE.
28787 * lib/regex_internal.h: Likewise.
28788 * lib/regex_internal.c: Likewise.
28789 * lib/regexec.c: Likewise.
28790 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
28792 2005-09-07 Ulrich Drepper <drepper@redhat.com>
28794 * lib/regexec.c (find_recover_state): Remove unnecessary
28796 (transit_state_bkref): Make DFA a const pointer.
28797 (get_subexp): Likewise.
28798 (check_arrival): Likewise.
28799 (update_cur_sifted_state): Likewise.
28800 (re_search_internal): Likewise.
28801 (prune_impossible_nodes): Likewise.
28802 (acquire_init_state_context): Likewise.
28803 (proceed_next_node): Likewise.
28804 (set_regs): Likewise.
28805 (free_fail_stack_return): Likewise.
28806 (check_arrival_expand_ecl): Mark DFA parameter as const.
28807 (check_arrival_expand_ecl_sub): Likewise.
28808 (check_subexp_limits): Likewise.
28809 (sub_epsilon_src_nodes): Likewise.
28810 (add_epsilon_src_nodes): Likewise.
28811 (merge_state_array): Likewise.
28812 (update_regs): Likewise.
28813 (build_trtable): Likewise.
28814 (sift_states_backward): Mark MCTX parameter as const.
28815 (build_sifted_states): Likewise.
28816 (update_cur_sifted_state): Likewise.
28817 (sift_states_mkref): Likewise.
28818 (check_arrival_expand_ecl): Mark eclosure as const.
28819 (check_dst_limits_calc_pos_1): Likewise.
28820 * lib/regex_internal.h (re_match_context_t): Make dfa a const
28823 2005-09-06 Ulrich Drepper <drepper@redhat.com>
28825 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
28826 (transit_state_sb): Likewise.
28827 (transit_state_mb): Likewise.
28828 (sift_states_iter_mb): Likewise.
28829 (check_arrival_add_next_nodes): Likewise.
28830 (check_node_accept_bytes): Change first parameter to pointer-to-const.
28831 [_LIBC] (re_search_2_stub): Use mempcpy.
28833 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
28834 mbrtowc for very simple UTF-8 case.
28836 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
28837 a pointer-to-const.
28838 (re_acquire_state_context): Likewise.
28839 * lib/regex_internal.h: Adjust prototypes.
28841 * lib/regex.c: Prevent using C++ compilers.
28843 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
28844 (re_acquire_state_context): Likewise.
28846 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
28848 * modules/regex (Depends-on): Add ssize_t.
28850 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
28852 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
28855 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
28857 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
28859 2006-03-29 Mark D. Baushke <mdb@gnu.org>
28860 Bruno Haible <bruno@clisp.org>
28862 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
28863 <sys/types.h> and <inttypes.h>.
28865 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28867 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
28868 `__error_t_defined', so argp.h will not typedef the former.
28870 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
28872 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
28873 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
28874 glibc names. Even if glibc is changed to conform to POSIX, the
28875 traditional names will be available anyway, since regex depends on
28876 the extensions module. Also, fix a longstanding typo in the
28877 implementation of Spencer ERE test #75 from grep 2.3. Problems
28878 reported by Emanuele Giaquinta. Also, change sense of cached
28879 variable, so that the message makes sense.
28881 2006-03-24 Simon Josefsson <jas@extundo.com>
28883 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
28884 including some doc fixes.
28885 (base64_encode_alloc): Fix +1 bug on allocation failures.
28887 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28889 * lib/base64.c (base64_encode): Do not read past end of array with
28890 unsanitized input on systems with CHAR_BIT > 8.
28892 2006-03-24 Eric Blake <ebb9@byu.net>
28894 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
28896 2006-03-22 Karl Berry <karl@gnu.org>
28898 * config/srclist.txt (*setenv.[ch]): get from coreutils.
28899 * config/srclistvars.sh (COREUTILS): new var.
28901 2006-03-17 Jim Meyering <jim@meyering.net>
28903 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
28904 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
28906 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
28908 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
28909 no longer needs it. Instead, check that regoff_t is as least
28910 as wide as ptrdiff_t.
28912 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
28913 so that our regex.h stays compatible with the installed regex.
28914 This is helpful for installers who configure --without-included-regex.
28915 Problem reported by Emanuele Giaquinta.
28917 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
28919 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
28920 Typedef to long int, not to off_, as POSIX will likely change
28923 2006-03-15 Eric Blake <ebb9@byu.net>
28925 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
28927 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
28929 * lib/argp-help.c (validate_uparams): Fix typo
28930 * lib/argp-parse.c (argp_default_options): Consistently begin help
28931 messages with a lowercase letter.
28933 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
28935 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
28936 overrun buffers and shouldn't be used (much as gets shouldn't be
28938 * lib/time_r.c (asctime_r, ctime_r): Likewise.
28940 2006-03-08 Simon Josefsson <jas@extundo.com>
28942 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
28943 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28945 2006-03-08 Simon Josefsson <jas@extundo.com>
28947 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
28948 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28950 2006-03-08 Simon Josefsson <jas@extundo.com>
28952 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
28953 signal that configure disabled the device.
28955 2006-03-08 Simon Josefsson <jas@extundo.com>
28957 * build-aux/maint.mk: Fix refresh-po, to handle no translated
28960 2006-03-07 Simon Josefsson <jas@extundo.com>
28962 * modules/getopt (Depends-on): Add unistd.
28964 * modules/unistd: New file.
28966 2006-03-07 Simon Josefsson <jas@extundo.com>
28968 * modules/gc-random: New file.
28970 2006-03-07 Simon Josefsson <jas@extundo.com>
28972 * m4/unistd_h.m4: New file.
28974 2006-03-07 Simon Josefsson <jas@extundo.com>
28976 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
28977 test to be side-effect free by storing the result in the cache
28978 variable gl_cv_lib_readline, and moving the assignment of
28979 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
28980 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28982 2006-03-07 Simon Josefsson <jas@extundo.com>
28984 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
28985 error on missing devices (the functions will return an error).
28987 * m4/gc.m4: Move random stuff to gc-random.m4
28989 2006-03-07 Simon Josefsson <jas@extundo.com>
28991 * lib/unistd_.h: New file.
28993 2006-03-07 Simon Josefsson <jas@extundo.com>
28995 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
28997 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
28999 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
29000 Problem reported by Juan Manuel Guerrero.
29002 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
29004 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
29006 * lib/getlogin_r.c: Likewise.
29007 * lib/getlogin_r.h: Likewise.
29008 * lib/glob.c: Likewise.
29009 * lib/pagealign_alloc.c: Likewise.
29010 * lib/unistd_.h: Remove; no longer needed.
29012 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
29014 * MODULES.html.sh (Support for systems lacking POSIX:2001):
29016 * modules/c-stack (Depends-on): Add unistd.
29017 * modules/getlogin_r: Likewise.
29018 * modules/glob: Likewise.
29019 * modules/pagealign_alloc: Likewise.
29020 * modules/unistd (Files): Remove lib/unistd_.h.
29021 (EXTRA_DIST): Remove.
29022 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
29024 (MOSTLYCLEANFILES): Remove unistd.h-t.
29026 2006-03-03 Simon Josefsson <jas@extundo.com>
29028 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
29030 2006-03-03 Simon Josefsson <jas@extundo.com>
29032 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
29035 2006-03-03 Simon Josefsson <jas@extundo.com>
29037 * build-aux/maint.mk: Add indent target.
29039 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
29041 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
29042 our replacement poll.h in any case, to avoid a differing
29043 declaration from a system header. Seen on AIX.
29045 2006-03-01 Simon Josefsson <jas@extundo.com>
29047 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
29050 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
29052 * modules/gettime (Depends-on): Add extensions module.
29053 * modules/nanosleep (Depends-on): Likewise.
29054 * modules/settime (Depends-on): Likewise.
29056 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
29058 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
29059 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
29061 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29062 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
29064 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
29065 not "==". Reported by Ralf Wildenhues.
29067 2006-03-01 Karl Berry <karl@gnu.org>
29069 * doc/Copyright/request-*: new files, synced from gnuorg.
29071 2006-03-01 Karl Berry <karl@gnu.org>
29073 * config/srclist.txt (Copyright/*): new entries.
29075 2006-02-28 Simon Josefsson <jas@extundo.com>
29077 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
29079 2006-02-27 Simon Josefsson <jas@extundo.com>
29081 * lib/base64.h: Indent #define's. From Jim Meyering
29082 <jim@meyering.net>.
29084 2006-02-27 Jim Meyering <jim@meyering.net>
29086 Revert the change of 2006-02-24, so these files can continue
29087 to be sync'd from gettext.
29088 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
29091 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
29093 * modules/intprops: New file.
29094 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
29096 * modules/getloadavg (Files): Remove lib/intprops.h.
29097 (Depends-on): Add intprops.
29098 * modules/human: Likewise.
29099 * modules/inttostr: Likewise.
29100 * modules/openat: Likewise.
29101 * modules/sig2str: Likewise.
29102 * modules/userspec: Likewise.
29103 * modules/utimecmp: Likewise.
29104 * modules/xnanosleep: Likewise.
29105 * modules/xstrtol: Likewise.
29107 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
29109 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
29110 * modules/lock-tests (TESTS): Use $(EXEEXT).
29111 * modules/tls-tests: Likewise.
29112 * modules/argp-tests: Likewise.
29113 (check_PROGRAMS): New var, replacing...
29114 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
29116 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29118 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
29121 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
29123 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
29125 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29127 Sync from coreutils.
29128 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
29131 2006-02-22 Jim Meyering <jim@meyering.net>
29133 Sync from coreutils.
29134 * m4/chdir-safer.m4: New file.
29136 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
29138 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
29139 AT_FDCWD exceeds INT_MAX.
29140 * lib/openat.h (AT_FDCWD): Likewise.
29142 2006-02-17 Eric Blake <address@hidden>
29144 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
29146 2006-02-16 Simon Josefsson <jas@extundo.com>
29148 * modules/getaddrinfo (Depends-on): Add sys_socket.
29150 2006-02-15 Simon Josefsson <jas@extundo.com>
29152 * build-aux/maint.mk: Add dsyntax-check rule.
29154 2006-02-15 Eric Blake <ebb9@byu.net>
29156 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
29157 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
29158 'present but cannot compile' warnings on cygwin.
29159 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
29160 use ws2tcpip.h if sys/socket.h works.
29161 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
29162 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
29164 2006-02-14 Simon Josefsson <jas@extundo.com>
29166 * modules/maintainer-makefile (Files): Rename.
29168 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
29169 and (the local) Makefile.cfg to maint-cfg.mk.
29171 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
29174 * modules/maintainer-makefile: New module.
29176 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
29177 severaly stripped to make it possible to build it up from scratch
29178 with reliable tests.
29180 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
29181 fixes to permit overriding the default actions when configure and
29182 makefile are not available.
29184 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
29186 Sync from coreutils.
29187 * modules/lstat (Depends-on): Don't depend on xalloc.
29188 (License): Change from GPL to LGPL, since this is now simply a
29189 replacement for a libc function.
29191 2006-02-14 Jim Meyering <jim@meyering.net>
29193 Sync from coreutils.
29195 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
29196 failure on deficient systems, and simplify gnulib lgpl dependencies.
29197 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
29198 xmalloc/lstat combination. Based on a patch from Bruno Haible.
29200 * lib/xalloc-die.c: Remove unused definition of N_.
29202 2006-02-14 Jim Meyering <jim@meyering.net>
29204 Sync from coreutils.
29205 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
29206 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
29207 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
29208 double-quote uses of that variable, to accommodate the rare case in
29209 which getmntent is available in none of the libraries checked. This
29210 happens at least on FreeBSD 5.0.
29212 2006-02-13 Simon Josefsson <jas@extundo.com>
29214 * gnulib-tool (Usage): Fix --import, from
29215 karl@freefriends.org (Karl Berry).
29217 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
29219 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
29221 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
29223 * lib/argp-namefrob.h: Restore changes accidentally lost during the
29224 "autoupdate" on 2005-12-12.
29226 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
29228 * modules/closeout (Depends-on): Remove atexit.
29230 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
29232 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
29233 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
29235 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
29237 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
29238 __EXTENSIONS__ if this causes compilation to fail. Problem
29239 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
29240 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
29242 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
29244 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
29245 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
29246 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
29249 2006-01-26 Simon Josefsson <jas@extundo.com>
29251 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
29252 prototype is visible on mingw32.
29254 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
29257 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
29260 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
29262 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
29263 attempt to open for write; this always fails, at least on POSIX
29264 hosts. This reinstates the 2006-01-09 change, which was
29265 inadvertently removed.
29267 2006-01-26 Bruno Haible <bruno@clisp.org>
29269 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
29270 Reported by Paul Eggert.
29272 2006-01-26 Bruno Haible <bruno@clisp.org>
29273 Paul Eggert <eggert@cs.ucla.edu>
29275 * lib/stdbool_.h (_Bool)
29276 [(! (defined __cplusplus || defined __BEOS__)
29277 && !defined __GNUC__
29278 && !(defined __HP_cc || defined __xlc__
29279 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
29280 || defined __sgi))]:
29281 #define to signed char in these cases too; this simplifies
29282 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
29283 etc., separately) and makes it more conservative.
29285 2006-01-25 Simon Josefsson <jas@extundo.com>
29287 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
29288 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
29289 ws2tcpip.h with WINVER=0x0501. All for mingw32.
29291 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
29293 * lib/argp-namefrob.h: Bugfix. Remove stray #
29295 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
29297 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
29298 so that we test the test.
29299 Check for yet another HP-UX cc bug involving *bool |= bool.
29301 2006-01-25 Karl Berry <karl@gnu.org>
29303 * config/srclist.txt (vasnprintf.c): sync lost.
29305 2006-01-25 Jim Meyering <jim@meyering.net>
29307 Sync from the stable (b5) branch of coreutils:
29309 * lib/fts.c (fts_children): Don't let close() clobber errno from
29312 * lib/fts.c (fts_stat): When following a symlink-to-directory,
29313 don't necessarily interpret stat-fails+lstat-succeeds as indicating
29314 a dangling symlink. That can also happen at least for ELOOP.
29315 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
29316 FYI, this bug predates the inclusion of fts.c in coreutils.
29318 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
29319 in their own block, so pre-c99 compilers don't object.
29321 Avoid the double-free (first in fts_read, second in fts_close) that
29322 would occur when an `active' directory is made inaccessible (e.g.,
29323 via chmod a-x) during a traversal.
29324 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
29325 before returning. Reproduce this failure by
29326 mkdir -p a/b; cd a; chmod a-x . b
29327 Reported by Stavros Passas.
29329 2006-01-25 Jim Meyering <jim@meyering.net>
29331 * lib/fileblocks.c: Remove more useless parentheses.
29332 * lib/readutmp.h: Likewise.
29334 2006-01-25 Bruno Haible <bruno@clisp.org>
29336 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
29338 Reported by Paul Eggert.
29340 2006-01-25 Bruno Haible <bruno@clisp.org>
29342 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
29343 rid of a trap command. For Solaris sh.
29344 Reported by Mark D. Baushke <mdb@gnu.org>.
29346 2006-01-24 Simon Josefsson <jas@extundo.com>
29348 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
29351 2006-01-24 Karl Berry <karl@gnu.org>
29353 * config/srclist.txt (argp-namefrob.h): sync lost.
29355 2006-01-24 Jim Meyering <jim@meyering.net>
29357 * modules/openat (Files): Add lib/intprops.h.
29358 From Mark D. Baushke.
29360 2006-01-24 Jim Meyering <jim@meyering.net>
29362 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
29363 Reported by Mark D. Baushke.
29365 2006-01-24 Jim Meyering <jim@meyering.net>
29367 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
29369 2006-01-24 Bruno Haible <bruno@clisp.org>
29371 * modules/strnlen (Maintainer): Change from glibc to all.
29373 2006-01-24 Bruno Haible <bruno@clisp.org>
29375 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
29376 Patch by Paul Eggert.
29378 2006-01-24 Bruno Haible <bruno@clisp.org>
29380 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
29382 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
29385 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
29386 'signed char' to avoid problems with the built-in _Bool type.
29387 Reported by Paul Eggert on 2005-11-26.
29389 2006-01-24 Bruno Haible <bruno@clisp.org>
29391 * gnulib-tool (func_import): Avoid constructing complicated sed
29392 expressions inside backquote.
29393 Report and solution by Mark D. Baushke <mdb@gnu.org>.
29395 2006-01-23 Ulrich Drepper <drepper@redhat.com>
29397 These changes imported from libc.
29398 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
29399 test and two separate function calls.
29400 * lib/strndup.c (__strndup): Add libc_hidden_def.
29402 2006-01-23 Simon Josefsson <jas@extundo.com>
29404 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
29405 Remove the test_*_SOURCES variable: automake infers it by default.
29406 * modules/tls-tests: Likewise.
29408 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
29410 Work around porting bugs reported by Dieter in
29411 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
29412 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
29413 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
29414 Include "getopt.h" first, to check interface.
29415 (getenv): Declare only if defined HAVE_DECL_GETENV &&
29417 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
29418 (__strndup): Revert to K&R-style function dfns, the glibc style.
29419 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
29420 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
29421 Include strnlen.h first, to get prototype properly.
29422 (strnlen): Renamed from __strnlen.
29425 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
29427 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
29429 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
29431 * config/srclist.txt: Adjust to reflect glibc reorganization.
29432 This affects only comments.
29434 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
29436 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
29437 Reported by Bruce Korb <bkorb@gnu.org>.
29439 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
29441 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
29442 to pacify gcc -Wswitch-default.
29444 2006-01-22 Bruno Haible <bruno@clisp.org>
29446 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
29447 temporary buffer for sprintf, take into account the precision also
29448 for 'd', 'i', 'u', 'o', 'x', 'X'.
29450 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
29452 * modules/argp-tests: New module
29453 * tests/test-argp.c: New file
29454 * tests/test-argp-2.sh: New file
29456 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
29458 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
29459 (__argp_base_name): Removed
29460 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
29462 (__argp_base_name): Provide macro definition or extern declaration
29463 depending on the configuration
29465 2006-01-20 Simon Josefsson <jas@extundo.com>
29467 * modules/inet_ntop (Depends-on): Depend on sys_socket.
29469 2006-01-20 Simon Josefsson <jas@extundo.com>
29471 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
29473 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
29475 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
29476 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
29477 Suggested by Bruno Haible.
29479 2006-01-20 Karl Berry <karl@gnu.org>
29481 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
29482 until changes propagate, I guess.
29484 2006-01-19 Simon Josefsson <jas@extundo.com>
29486 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
29488 2006-01-19 Simon Josefsson <jas@extundo.com>
29490 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
29492 2006-01-19 Simon Josefsson <jas@extundo.com>
29494 * gnulib-tool: Set check_PROGRAMS.
29496 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
29497 modules/des-tests, modules/gc-arcfour-tests,
29498 modules/gc-arctwo-tests, modules/gc-des-tests,
29499 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
29500 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
29501 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
29502 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
29503 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
29504 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
29505 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
29508 2006-01-18 Simon Josefsson <jas@extundo.com>
29510 * modules/socklen (Depends-on): Depend on sys_socket.
29512 2006-01-18 Simon Josefsson <jas@extundo.com>
29514 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
29515 modules/des-tests, modules/gc-arcfour-tests,
29516 modules/gc-arctwo-tests, modules/gc-des-tests,
29517 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
29518 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
29519 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
29520 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
29521 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
29522 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
29523 $(EXEEXT) to automake TESTS variable, for mingw32.
29525 2006-01-17 Simon Josefsson <jas@extundo.com>
29527 * modules/socklen (Include): Need sys/socket.h.
29529 2006-01-17 Bruno Haible <bruno@clisp.org>
29531 * modules/ssize_t (Include): Add <sys/types.h>.
29533 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
29535 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
29536 it's not portable and it doesn't work with cross-compiles.
29537 Problem reported by Bruno Haible. Fix missing-$ typo in
29538 'test "gl_cv_ignore_unused_libraries" ...' that prevented
29539 -zignore from being used with Sun's C compiler.
29541 2006-01-12 Simon Josefsson <jas@extundo.com>
29543 * lib/base64.c: Fix warning, reported by Bruno Haible
29544 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
29546 2006-01-12 Bruno Haible <bruno@clisp.org>
29548 * modules/ldd: New file.
29549 * build-aux/ldd.sh.in: New file.
29550 * MODULES.html.sh (Support for building libraries and executables): Add
29553 2006-01-12 Bruno Haible <bruno@clisp.org>
29555 * m4/ldd.m4: New file.
29557 2006-01-12 Bruno Haible <bruno@clisp.org>
29559 * gnulib-tool (func_import, func_create_testdir): Don't go into an
29560 endless loop while replacing $auxdir with build-aux.
29562 2006-01-11 Simon Josefsson <jas@extundo.com>
29564 * lib/stdint_.h (SIZE_MAX): Add missing (.
29566 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
29568 Sync from coreutils.
29569 * lib/md5.c: Fix commentary typos.
29570 (alignof, UNALIGNED_P): No need for a GCC-specific version.
29571 * lib/md5.h (__attribute__): Remove; unused.
29572 * lib/sha1.c: Fix commentary to match md5 better.
29573 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
29574 so that we don't need to worry about alignment. All uses changed.
29575 This merges the 2005-10-28 md5 change into sha1.
29577 2006-01-11 Jim Meyering <jim@meyering.net>
29579 Sync from coreutils.
29580 * lib/md5.c (OP): Fix spacing.
29582 2006-01-11 Bruno Haible <bruno@clisp.org>
29584 Ensure automatic ordering between gl_LOCK and gl_ARGP.
29585 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
29586 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
29588 2006-01-11 Bruno Haible <bruno@clisp.org>
29590 Ensure automatic ordering between gl_LOCK and gl_ARGP.
29591 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
29592 the "early" section as well.
29594 2006-01-11 Bruno Haible <bruno@clisp.org>
29596 Avoid "ar: no archive members specified" error on MacOS X.
29597 * gnulib-tool (func_modules_add_dummy): New function.
29598 (func_import, func_create_testdir): Invoke it.
29600 2006-01-11 Bruno Haible <bruno@clisp.org>
29602 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
29603 with $auxdir in AC_CONFIG_FILES statements.
29605 2006-01-11 Bruno Haible <bruno@clisp.org>
29607 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29608 Initialize also noinst_HEADERS to empty.
29610 2006-01-11 Bruno Haible <bruno@clisp.org>
29612 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
29614 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
29617 2006-01-11 Bruno Haible <bruno@clisp.org>
29619 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
29620 overridable by the user.
29621 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29623 2006-01-10 Simon Josefsson <jas@extundo.com>
29625 * modules/sys_socket: New file.
29627 2006-01-10 Simon Josefsson <jas@extundo.com>
29629 * m4/sys_socket_h.m4: New file.
29631 2006-01-10 Simon Josefsson <jas@extundo.com>
29633 * lib/socket_.h: New file.
29635 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
29637 * modules/readutmp (Maintainer): Add myself.
29639 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
29641 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
29642 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
29643 People who are still concerned with buggy memcmp implementations
29644 can invoke gl_FUNC_MEMCMP themselves.
29646 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
29648 * lib/regex_internal.h (BITSET_WORD_BITS):
29649 Work around a bug in 64-bit PGC (before version 6.1-2), where the
29650 preprocessor mishandles large unsigned values as if they were signed.
29651 Problem reported by Claudio Fontana in
29652 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
29654 2006-01-10 Jim Meyering <jim@meyering.net>
29656 Avoid the double-free (first in fts_read, second in fts_close) that
29657 would occur when an `active' directory is made inaccessible (e.g.,
29658 via chmod a-x) during a traversal.
29659 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
29660 before returning. Reproduce this failure by
29661 mkdir -p a/b; cd a; chmod a-x . b
29662 Reported by Stavros Passas.
29664 Sync from coreutils.
29665 * lib/sha1.c: Tweak grammar in a comment.
29667 2006-01-10 Jim Meyering <jim@meyering.net>
29669 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
29670 Patch by Joerg Sonnenberger.
29672 2006-01-10 Bruno Haible <bruno@clisp.org>
29674 * modules/readutmp: Depend on module free.
29675 * modules/strtok_r: Depend on module restrict.
29677 2006-01-10 Bruno Haible <bruno@clisp.org>
29679 * modules/gettext (configure.ac): Add an invocation of
29680 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
29682 2006-01-10 Bruno Haible <bruno@clisp.org>
29684 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
29685 Reported by Werner Lemberg <wl@gnu.org>.
29687 2006-01-10 Bruno Haible <bruno@clisp.org>
29689 * lib/localcharset.c: Update from GNU gettext.
29691 2006-01-10 Bruno Haible <bruno@clisp.org>
29693 * lib/argp.h (__const): Remove macro. Use const instead.
29694 * lib/argp-fmtstream.h (__const): Likewise.
29695 * lib/glob_.h (__const): Remove macro.
29696 * lib/glob-libc.h: Use const instead of __const.
29698 2006-01-10 Bruno Haible <bruno@clisp.org>
29700 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
29702 Needed to avoid an automake error regarding the 'gettext' module.
29704 2006-01-09 Simon Josefsson <jas@extundo.com>
29706 * modules/inet_ntop (Depends-on): Add restrict.
29708 2006-01-09 Simon Josefsson <jas@extundo.com>
29710 * modules/gc-rijndael-tests (License): Put under LGPL.
29712 * modules/gc-des-tests (License): Likewise.
29714 * modules/gc-arcfour-tests (License): Likewise.
29716 * modules/gc-arctwo-tests (License): Likewise.
29718 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
29720 * modules/gc-hmac-sha1-tests (Files): Likewise.
29722 * modules/gc-hmac-md5-tests (License): Likewise.
29724 * modules/gc-sha1-tests (License): Likewise.
29726 * modules/gc-md5-tests (License): Likewise.
29728 * modules/gc-md4-tests (License): Likewise.
29730 * modules/gc-md2-tests (License): Likewise.
29732 * modules/gc-tests (License): Likewise.
29734 * modules/des-tests (License): Likewise.
29736 * modules/md4-tests (License): Likewise.
29738 * modules/md2-tests (License): Likewise.
29740 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
29742 Sync from coreutils:
29744 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
29745 * modules/lib-ignore: New file.
29746 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
29747 chdir-safer.m4, lchmod.m4.
29748 * modules/openat: Add mkdirat.c, openat-priv.h.
29750 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
29752 Sync from coreutils.
29753 * m4/lib-ignore.m4: New file.
29754 * m4/lchmod.m4: New file.
29756 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
29758 Sync from coreutils.
29759 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
29760 for write access: POSIX says that must fail.
29761 * lib/fts.c (diropen): Likewise.
29762 * lib/save-cwd.c (save_cwd): Likewise.
29763 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
29764 well, for minor improvements on hosts that lack O_DIRECTORY.
29765 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
29766 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
29767 Fall back on chown if open failed with EACCES.
29769 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
29770 Report an error at compile-time if only a 1-second nominal clock
29771 resolution is found.
29773 * lib/lchmod.h: New file.
29774 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
29775 (make_dir_parents): Use lchown rather than chown, and
29776 lchmod rather than chmod.
29778 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
29779 dummies too. Problem with "none" reported by Bob Proulx. Problem with
29780 "proc" reported by n0dalus.
29782 * lib/mountlist.c: Include <limits.h>.
29783 (dev_from_mount_options)
29784 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
29785 New function. It no longer assumes "dev=" has the System V meaning
29786 on Linux (since it doesn't). It also parses "dev=" more carefully.
29787 (read_file_system_list)
29788 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
29789 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
29792 * lib/posixtm.h (PDS_PRE_2000): New macro.
29793 * lib/posixtm.c (year): Arg is now syntax_bits rather than
29794 allow_century. All usages changed. Reject dates outside the range
29795 1969-1999 if PDS_PRE_2000 is used.
29797 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
29799 Sync from coreutils.
29800 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
29801 (Time of day items): Mention the possibility of leap seconds.
29802 Problem reported by Dr. David Alan Gilbert.
29804 2006-01-09 Jim Meyering <jim@meyering.net>
29806 Sync from coreutils.
29808 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
29810 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
29812 * lib/modechange.c (mode_compile): Reject an invalid mode string
29813 that starts with an octal digit. From Andreas Gruenbacher.
29815 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
29816 and dup to open_safer and dup_safer, respectively.
29817 (openat_permissive): Fix typo in comment.
29819 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
29820 "gettext.h"; either no longer needed or are guaranteed by openat.h.
29821 (_): Remove; no longer needed.
29822 (openat): Renamed from rpl_openat; no need for rpl_openat
29823 since openat.h renames openat for us.
29824 Replace most of the body with a call to openat_permissive,
29825 to avoid duplicate code.
29826 Port to (probably hypothetical) environments were mode_t is
29828 (openat_permissive): Require mode arg, so that we can check
29829 types better. Put it just after flags. Change cwd failure
29830 indicator from pointer-to-bool to pointer-to-errno-value.
29831 All callers changed.
29832 Invoke openat_save_fail and/or openat_restore_fail if
29833 cwd_errno is null, so that openat can call us.
29834 (openat_permissive, fdopendir, fstatat, unlinkat):
29835 Simplify errno handling to avoid some duplicate code,
29836 as it's OK to set errno on success.
29837 * lib/openat.h: Revamp code so that function macros depend on
29838 __OPENAT_PREFIX only, not also on AT_FDCWD.
29839 (openat_ro): Remove. Caller changed to use openat_permissive.
29840 (openat_permissive): Now a macro, if not a function.
29841 (openat_restore_fail, openat_save_fail): Now always functions,
29842 since mkdirat needs them even if __OPENAT_PREFIX is defined.
29844 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
29846 * lib/mkdirat.c: Include openat-priv.h.
29847 Remove definitions of macros defined therein.
29848 * lib/openat.c: Likewise.
29850 * lib/mkdirat.c (mkdirat): New file and function.
29851 * lib/openat.h (mkdirat): Declare.
29853 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
29855 * lib/openat.h (openat_permissive): Declare.
29856 (openat_ro): Define.
29858 * lib/openat.c (EXPECTED_ERRNO): New macro.
29859 (openat_permissive): New function -- used in remove.c rewrite.
29860 (all functions): Set errno just before returning, only if there
29861 was an actual failure.
29862 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
29864 Emulate openat-family functions using Linux's procfs, if possible.
29865 Idea and some code based on Ulrich Drepper's glibc changes.
29867 * lib/openat.c: (BUILD_PROC_NAME): New macro.
29868 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
29869 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
29870 before falling back on save_cwd and restore_cwd.
29871 (fdopendir, fstatat, unlinkat): Likewise.
29873 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
29874 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
29876 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
29877 as second argument to va_arg. Otherwise, some versions of gcc
29878 warn that `if this code is reached, the program will abort'.
29880 2006-01-09 Jim Meyering <jim@meyering.net>
29882 Sync from coreutils.
29883 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
29884 Require openat-priv.h.
29886 2006-01-09 Bruno Haible <bruno@clisp.org>
29888 * modules/strnlen (Include): Use strnlen.h.
29890 2006-01-09 Bruno Haible <bruno@clisp.org>
29892 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
29894 2006-01-09 Bruno Haible <bruno@clisp.org>
29896 * lib/sysexit_.h (EX_OK): New macro.
29897 Suggested by Martin Lambers <marlam@marlam.de>.
29899 2006-01-09 Bruno Haible <bruno@clisp.org>
29901 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
29902 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
29904 2006-01-09 Bruno Haible <bruno@clisp.org>
29906 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
29909 2006-01-09 Bruno Haible <bruno@clisp.org>
29911 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
29912 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
29913 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
29914 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
29916 2006-01-09 Bruno Haible <bruno@clisp.org>
29918 * build-aux/javacomp.sh.in: New file, moved from lib/.
29919 * modules/javacomp-script (Files): Update.
29920 (configure.ac): Add AC_CONFIG_FILES invocation.
29921 (EXTRA_DIST): Remove variable.
29923 * build-aux/javaexec.sh.in: New file, moved from lib/.
29924 * modules/javaexec (Files): Update.
29925 (configure.ac): Add AC_CONFIG_FILES invocation.
29926 (EXTRA_DIST): Remove javaexec.sh.in.
29928 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
29929 * modules/csharpcomp-script (Files): Update.
29930 (configure.ac): Add AC_CONFIG_FILES invocation.
29931 (EXTRA_DIST): Remove variable.
29933 * build-aux/csharpexec.sh.in: New file, moved from lib/.
29934 * modules/csharpexec (Files): Update.
29935 (configure.ac): Add AC_CONFIG_FILES invocation.
29936 (EXTRA_DIST): Remove csharpexec.sh.in.
29938 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
29940 Sync from coreutils.
29942 Add POSIX ACL support
29943 * lib/acl.h (copy_acl, set_acl): Add declarations.
29944 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
29945 systems other than Linux.
29946 (chmod_or_fchmod): New function: use fchmod when possible,
29947 and chmod otherwise.
29948 (file_has_acl): Add a POSIX ACL implementation, with a
29949 Linux-specific subcase.
29950 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
29951 S_ISVTX from one file to another. Fall back to fchmod/chmod when
29952 acls are unsupported.
29953 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
29954 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
29957 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
29959 Sync from coreutils.
29960 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
29962 2006-01-07 Bruno Haible <bruno@clisp.org>
29964 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
29967 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
29969 * lib/strftime.c (tzname): Don't declare if it is already #defined.
29970 Problem reported for Mingw by Mark Junker.
29972 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
29974 * README: Gnulib normally doesn't generate a tarball.
29976 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
29978 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
29979 long int, not int, for nanosecond counts, so that people who are
29980 used to POSIX struct timespec won't be surprised. Reported by Jim
29983 2005-12-28 Bruno Haible <bruno@clisp.org>
29985 * build-aux/config.rpath: Update from GNU gettext.
29987 2005-12-16 Jim Meyering <jim@meyering.net>
29989 * modules/fprintftime: New module.
29990 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
29992 2005-12-16 Jim Meyering <jim@meyering.net>
29994 * m4/fprintftime.m4: New file.
29996 2005-12-16 Jim Meyering <jim@meyering.net>
29998 * lib/fprintftime.c, lib/fprintftime.h: New files.
30000 2005-12-15 Simon Josefsson <jas@extundo.com>
30002 * modules/socklen (configure.ac): Fix M4 macro name, to align with
30005 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
30007 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
30008 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
30010 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
30012 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
30013 * lib/argp-help.c (fill_in_uparams): Check if the constructed
30014 struct uparams is valid. Fall back to the default values if it is
30017 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
30019 * modules/argp (Files): Add argp-pin.c
30020 (Depends-on): dirname
30021 (lib_SOURCES): Add argp-pin.c
30023 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
30025 * m4/argp.m4: Check if program_invocation_name and
30026 program_invocation_short_name are declared and define appropriate
30027 macros if they are not.
30029 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
30031 * lib/argp-help.c (__argp_base_name): New function
30032 (__argp_short_program_name): Rewrite using __argp_base_name
30033 * lib/argp-namefrob.h: Define program_invocation_name and
30034 program_invocation_short_name if requested
30035 (__argp_base_name): Add prototype
30036 * lib/argp-parse.c (argp_def): Use gettext wrappers
30037 (argp_default_parser): Use __argp_base_name
30038 * lib/argp-pin.c: New file. Defines program_invocation_name and
30039 program_invocation_short_name on systems that lack them.
30041 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
30043 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
30044 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
30045 porting problem reported by Georg Schwarz in
30046 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
30048 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
30050 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
30051 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
30052 porting problem reported by Georg Schwarz in
30053 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
30055 2005-12-05 Bruno Haible <bruno@clisp.org>
30057 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
30058 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
30059 Reported by Mark Junker <mjscod@gmx.de>.
30061 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
30063 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
30064 Use implementation from Albert Chin, with some
30065 comments/corrections by Stepan Kasal and myself.
30067 2005-12-02 Bruno Haible <bruno@clisp.org>
30069 * gnulib-tool (func_import): Accept GPLed build tool modules when
30071 * modules/csharpcomp-script: New file.
30072 * modules/csharpcomp: Depend on it.
30073 * modules/javacomp-script: New file.
30074 * modules/javacomp: Depend on it.
30075 Suggested by Simon Josefsson.
30077 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
30079 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
30080 statement, to work around an HP-UX 10.20 compiler bug reported by
30083 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
30085 * modules/savedir (Depends-on): Add openat.
30087 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
30089 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
30090 (uintmax_t) [defined uintmax_t]: Do not declare.
30091 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
30092 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
30093 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
30094 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
30095 sake of portability to weird hosts that C allows (though we don't
30096 know of any practical examples).
30098 * lib/savedir.h (fdsavedir): New decl.
30099 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
30100 contains most of the former guts of savedir.
30101 (savedir): Use savedirstream.
30102 Include "openat.h".
30104 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
30106 * modules/obstack (Files): Add m4/ulonglong.m4.
30107 Problem reported by Davide Angelocola.
30109 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
30111 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
30112 coreutils no longer futzes with rounding modes.
30114 2005-11-14 Jim Meyering <jim@meyering.net>
30116 * lib/mkstemp-safer.c: Include <config.h>, required for possible
30117 replacement of mkstemp.
30119 2005-11-10 Simon Josefsson <jas@extundo.com>
30121 * lib/readline.c: Remove EOL.
30123 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
30125 * modules/gethrxtime (Depends-on): Add gettime.
30127 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
30129 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
30130 or gettimeofday; no longer needed.
30132 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
30134 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
30136 (gethrxtime) [! (HAVE_NANOUPTIME
30137 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
30138 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
30139 our own approximation.
30141 2005-11-08 Eric Blake <ebb9@byu.net>
30143 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
30145 2005-11-08 Eric Blake <ebb9@byu.net>
30147 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
30149 2005-11-04 Bruno Haible <bruno@clisp.org>
30151 * gnulib-tool: Implement --update mode.
30153 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
30155 Fix porting problem reported by Theodoros V. Kalamatianos.
30156 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
30157 Don't assume that futimes failing means we must fail.
30159 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
30161 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
30162 variables to suggest the intended function of the PATH_MAX check.
30164 2005-10-30 Kean Johnston <jkj@sco.com>
30166 Trivial changes to support SCO systems.
30167 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
30169 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
30170 where __ptr is null when no I/O is pending.
30172 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
30174 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
30175 leave errno alone. Problem reported by Dmitry V. Levin.
30177 2005-10-28 Simon Josefsson <jas@extundo.com>
30179 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
30182 * tests/test-gc-md2.c, tests/test-md2.c: New files.
30184 * modules/md2, modules/md2-tests: New files.
30186 2005-10-28 Simon Josefsson <jas@extundo.com>
30188 * m4/inet_ntop.m4: More tests.
30190 * m4/gc-md2.m4, md2.m4: New file.
30192 2005-10-28 Simon Josefsson <jas@extundo.com>
30194 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
30195 "restrict" keywords, as per POSIX. Protect the function
30196 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
30197 Don't use K&R prototypes. Check the sprintf return values.
30198 Re-define EAFNOSUPPORT if not present. Indent.
30200 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
30201 suggested by Bruno Haible <bruno@clisp.org>.
30203 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
30205 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
30207 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
30210 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
30212 * lib/md2.h, lib/md2.c: New files.
30214 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
30216 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
30217 errno alone. Problem reported by Frederic Jolliton.
30219 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
30221 * modules/verify (License): Change from GPL to LGPL. This is a
30222 tiny module and there are apparently near-equivalents that are
30223 under the BSD license.
30225 2005-10-24 Simon Josefsson <jas@extundo.com>
30227 * modules/sha1: Relicense to LGPL.
30229 2005-10-24 Simon Josefsson <jas@extundo.com>
30231 * lib/md4.h: Shrink buffer size, now that we changed the type.
30233 2005-10-23 Simon Josefsson <jas@extundo.com>
30235 * gnulib-tool (func_import): Fix --tests-base.
30237 2005-10-22 Simon Josefsson <jas@extundo.com>
30239 * modules/arcfour (Depends-on): Need stdint.
30241 2005-10-22 Simon Josefsson <jas@extundo.com>
30243 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
30244 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
30246 2005-10-22 Simon Josefsson <jas@extundo.com>
30248 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
30249 suggested by Bruno Haible <bruno@clisp.org>.
30251 2005-10-22 Simon Josefsson <jas@extundo.com>
30253 * lib/crc.h: Include stddef.h, for size_t.
30255 2005-10-22 Simon Josefsson <jas@extundo.com>
30257 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
30258 arcfour_context struct (simplify test vector testing in GNU
30261 2005-10-21 Simon Josefsson <jas@extundo.com>
30263 * modules/des, modules/des-tests: New files.
30265 * modules/gc-des, modules/gc-des-tests: New files.
30267 * tests/test-des.c, tests/test-gc-des.c: New file.
30269 2005-10-21 Simon Josefsson <jas@extundo.com>
30271 * modules/arctwo, modules/arctwo-tests: New files.
30273 * tests/test-arctwo.c: New file.
30275 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
30277 * tests/test-gc-arctwo.c: New file.
30279 2005-10-21 Simon Josefsson <jas@extundo.com>
30281 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
30282 Bruno Haible <bruno@clisp.org>.
30284 * m4/gc-des.m4: New file.
30286 2005-10-21 Simon Josefsson <jas@extundo.com>
30288 * m4/arctwo.m4: New file.
30290 * m4/gc-arctwo.m4: New file.
30292 2005-10-21 Simon Josefsson <jas@extundo.com>
30294 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
30297 2005-10-21 Simon Josefsson <jas@extundo.com>
30299 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
30302 * lib/hmac-sha1.c (hmac_sha1): Likewise.
30304 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
30305 Bruno Haible <bruno@clisp.org>.
30307 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
30310 2005-10-21 Simon Josefsson <jas@extundo.com>
30312 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
30314 2005-10-21 Simon Josefsson <jas@extundo.com>
30316 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
30318 2005-10-21 Simon Josefsson <jas@extundo.com>
30320 * lib/des.h, lib/des.c: New files.
30322 * lib/gc-gnulib.c: Support DES.c
30324 2005-10-21 Simon Josefsson <jas@extundo.com>
30326 * lib/arctwo.h, lib/arctwo.c: New files.
30328 * lib/gc-gnulib.c: Support ARCTWO.
30330 2005-10-21 Simon Josefsson <jas@extundo.com>
30332 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
30333 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30335 2005-10-21 Simon Josefsson <jas@extundo.com>
30337 * gnulib-tool (func_import, func_create_testdir): Define automake
30338 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
30339 Makefile.am snippet),
30340 suggested by Bruno Haible <bruno@clisp.org>.
30342 * modules/gc (Makefile.am): Use it.
30344 2005-10-21 Bruno Haible <bruno@clisp.org>
30346 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
30349 2005-10-19 Simon Josefsson <jas@extundo.com>
30351 * tests/test-gc-rijndael.c: New file.
30353 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
30355 2005-10-19 Simon Josefsson <jas@extundo.com>
30357 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
30360 2005-10-19 Simon Josefsson <jas@extundo.com>
30362 * tests/test-gc-arcfour.c: New file.
30364 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
30366 2005-10-19 Simon Josefsson <jas@extundo.com>
30368 * modules/gc-md4, modules/gc-md4-tests: New file.
30370 * tests/test-gc-md4.c: New file.
30372 2005-10-19 Simon Josefsson <jas@extundo.com>
30374 * m4/gc-md4.m4: New file.
30376 2005-10-19 Simon Josefsson <jas@extundo.com>
30378 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
30379 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
30382 2005-10-19 Simon Josefsson <jas@extundo.com>
30384 * m4/gc-arcfour.m4: New file.
30386 * m4/gc-rijndael.m4: New file.
30388 2005-10-19 Simon Josefsson <jas@extundo.com>
30390 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
30392 2005-10-19 Simon Josefsson <jas@extundo.com>
30394 * lib/gc-gnulib.c: Support ARCFOUR.
30396 2005-10-19 Simon Josefsson <jas@extundo.com>
30398 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
30401 * lib/gc.h: Add ECB enum type.
30403 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
30405 2005-10-18 Simon Josefsson <jas@extundo.com>
30407 * tests/test-md5.c: New file.
30409 * modules/md5-tests: New file.
30411 2005-10-18 Simon Josefsson <jas@extundo.com>
30413 * tests/test-md4.c: New file.
30415 * modules/md4, modules/md4-tests: New files.
30417 2005-10-18 Simon Josefsson <jas@extundo.com>
30419 * m4/md4.m4: New file.
30421 2005-10-18 Simon Josefsson <jas@extundo.com>
30423 * lib/md4.h, lib/md4.c: New files, based on md5.?.
30425 2005-10-17 Stepan Kasal <kasal@ucw.cz>
30427 * gnulib-tool (func_create_testdir): Omit the second check whether
30428 BUILT_SOURCES in nonempty.
30430 2005-10-17 Simon Josefsson <jas@extundo.com>
30432 * tests/test-rijndael.c: New file.
30434 2005-10-17 Simon Josefsson <jas@extundo.com>
30436 * modules/sha1: Depend on stdint instead of md5.
30438 * modules/md5: Depend on stdint, remove uint32_t.
30440 2005-10-17 Simon Josefsson <jas@extundo.com>
30442 * modules/gc-sha1-tests: New file.
30444 * tests/test-gc-sha1.c: New file.
30446 2005-10-17 Simon Josefsson <jas@extundo.com>
30448 * m4/md5.m4: Remove call to uint32_t.m4.
30450 2005-10-17 Simon Josefsson <jas@extundo.com>
30452 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
30454 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
30457 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
30459 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
30461 2005-10-17 Simon Josefsson <jas@extundo.com>
30463 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
30465 2005-10-17 Simon Josefsson <jas@extundo.com>
30467 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
30469 2005-10-17 Simon Josefsson <jas@extundo.com>
30471 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
30473 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
30475 2005-10-17 Bruno Haible <bruno@clisp.org>
30477 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
30478 that it can also be used in a test.
30480 2005-10-16 Bruno Haible <bruno@clisp.org>
30482 * gnulib-tool (func_emit_tests_Makefile_am): Also define
30483 TESTS_ENVIRONMENT, so that individual tests can augment it.
30485 * gnulib-tool (func_create_testdir): Use an intermediate target for
30486 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
30487 macros, like $(ALLOCA_H), which cannot be passed through the command
30490 2005-10-15 Simon Josefsson <jas@extundo.com>
30492 * modules/rijndael-tests: New file.
30494 * modules/rijndael: New file.
30496 2005-10-15 Simon Josefsson <jas@extundo.com>
30498 * m4/rijndael.m4: New file.
30500 2005-10-15 Simon Josefsson <jas@extundo.com>
30502 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
30504 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
30506 2005-10-14 Simon Josefsson <jas@extundo.com>
30508 * tests/test-arcfour.c: New file.
30510 * modules/arcfour, modules/arcfour-tests: New files.
30512 2005-10-14 Simon Josefsson <jas@extundo.com>
30514 * m4/arcfour.m4: New file.
30516 2005-10-14 Simon Josefsson <jas@extundo.com>
30518 * lib/arcfour.h, lib/arcfour.c: New files.
30520 2005-10-14 Roland McGrath <roland@redhat.com>
30522 Import from libc. [BZ #1331]
30523 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
30525 Reported by Matej Vela <vela@debian.org>.
30527 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
30529 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
30530 include <wchar.h>; no longer needed.
30532 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
30534 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
30536 2005-10-14 Jakub Jelinek <jakub@redhat.com>
30537 and Ulrich Drepper <drepper@redhat.com>
30540 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
30541 instead of inline stream orientation test and two separate
30542 function calls. Pay no attention to USE_IN_LIBIO.
30544 2005-10-13 Simon Josefsson <jas@extundo.com>
30546 * modules/gc-hmac-md5-tests: New file.
30548 * tests/test-gc-hmac-sha1.c: New file.
30550 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
30552 * modules/gc-hmac-md5-tests: New file.
30554 * tests/test-gc-md5.c: New file.
30556 * modules/gc-md5-tests: New file.
30558 2005-10-13 Simon Josefsson <jas@extundo.com>
30560 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
30561 Move memory allocation outside of loop.
30563 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
30565 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
30566 intermediate directory is in a read-only file system. Problem
30567 reported by Eric Blake.
30569 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
30571 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
30573 2005-10-12 Simon Josefsson <jas@extundo.com>
30575 * tests/test-hmac-sha1.c: New file.
30577 * modules/hmac-sha1-tests: New file.
30579 * modules/hmac-sha1: New file.
30581 2005-10-12 Simon Josefsson <jas@extundo.com>
30583 * modules/gc-sha1: New file.
30585 2005-10-12 Simon Josefsson <jas@extundo.com>
30587 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
30589 * tests/test-gc-pbkdf2-sha1.c: New file.
30591 2005-10-12 Simon Josefsson <jas@extundo.com>
30593 * modules/gc-md5, modules/gc-hmac-md5: New files.
30595 * modules/gc (Files): Remove md5, memxor and hmac files.
30597 2005-10-12 Simon Josefsson <jas@extundo.com>
30599 * m4/gc-pbkdf2-sha1.m4: New file.
30601 * m4/gc-hmac-sha1.m4: New file.
30603 * m4/gc-sha1: New file.
30605 * m4/hmac-sha1.m4: New file.
30607 2005-10-12 Simon Josefsson <jas@extundo.com>
30609 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
30611 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
30613 2005-10-12 Simon Josefsson <jas@extundo.com>
30615 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
30616 suggested by Bruno Haible <bruno@clisp.org>.
30618 2005-10-12 Simon Josefsson <jas@extundo.com>
30620 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
30622 2005-10-12 Simon Josefsson <jas@extundo.com>
30624 * lib/gc-pbkdf2-sha1.c: New file.
30626 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
30628 2005-10-12 Simon Josefsson <jas@extundo.com>
30630 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
30632 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
30634 2005-10-12 Simon Josefsson <jas@extundo.com>
30636 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
30637 GC_USE_HMAC_MD5, respectively.
30639 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
30640 (gc_md5): Fix typo.
30642 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
30644 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
30646 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
30648 2005-10-12 Bruno Haible <bruno@clisp.org>
30650 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
30651 Reported by Stepan Kasal <kasal@ucw.cz>.
30653 2005-10-11 Simon Josefsson <jas@extundo.com>
30655 * tests/test-crc.c: New file.
30657 * modules/crc, modules/crc-tests: New files.
30659 2005-10-11 Simon Josefsson <jas@extundo.com>
30661 * m4/crc.m4: New file.
30663 2005-10-11 Simon Josefsson <jas@extundo.com>
30665 * lib/gc.h: Add gc_hash and gc_hash_buffer.
30667 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
30669 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
30671 2005-10-11 Simon Josefsson <jas@extundo.com>
30673 * lib/crc.h, lib/crc.c: New files.
30675 * lib/gc.h (gc_hash_buffer): Add doc.
30677 2005-10-11 Bruno Haible <bruno@clisp.org>
30679 * modules/c-strcasestr: New file.
30680 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
30682 2005-10-11 Bruno Haible <bruno@clisp.org>
30684 * modules/c-strcase: New file.
30685 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
30687 2005-10-11 Bruno Haible <bruno@clisp.org>
30689 * lib/strcasecmp.c: Include limits.h.
30690 (strcasecmp): Avoid integer overflow on exotic platforms.
30691 * lib/strncasecmp.c: Include limits.h.
30692 (strncasecmp): Avoid integer overflow on exotic platforms.
30693 Reported by Paul Eggert.
30695 2005-10-11 Bruno Haible <bruno@clisp.org>
30697 * lib/c-strcasestr.h: New file, from GNU gettext.
30698 * lib/c-strcasestr.c: New file, from GNU gettext.
30700 2005-10-11 Bruno Haible <bruno@clisp.org>
30702 * lib/c-strcase.h: New file, from GNU gettext.
30703 * lib/c-strcasecmp.c: New file, from GNU gettext.
30704 * lib/c-strncasecmp.c: New file, from GNU gettext.
30706 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
30708 * modules/mempcpy (License): GPL -> LGPL.
30709 * modules/strchrnul (License): Likewise.
30710 * modules/sysexits (License): Likewise.
30712 2005-10-08 Simon Josefsson <jas@extundo.com>
30714 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
30716 2005-10-07 Simon Josefsson <jas@extundo.com>
30718 * m4/memxor.m4: Remove gl_C_RESTRICT call.
30720 2005-10-06 Simon Josefsson <jas@extundo.com>
30722 * tests/test-hmac-md5.c: New file.
30724 * modules/hmac-md5-tests: New file.
30726 * modules/hmac-md5: New file.
30728 2005-10-06 Simon Josefsson <jas@extundo.com>
30730 * m4/hmac-md5.m4: New file.
30732 * m4/memxor.m4: Require gl_C_RESTRICT.
30734 2005-10-06 Simon Josefsson <jas@extundo.com>
30736 * lib/memxor.c (memxor): Avoid casts and warnings.
30738 2005-10-06 Simon Josefsson <jas@extundo.com>
30740 * lib/hmac-md5.c: New file.
30742 * lib/hmac.h: New file.
30744 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
30746 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
30747 promotes to int, not unsigned int, to catch the AIX 5.3
30750 2005-10-05 Simon Josefsson <jas@extundo.com>
30752 * modules/memxor: New file.
30754 * modules/iconv (Files): Move config.rpath to havelib, it is used
30757 * modules/havelib (Files): Add config.rpath.
30759 2005-10-05 Simon Josefsson <jas@extundo.com>
30761 * m4/memxor.m4: New file.
30763 2005-10-05 Simon Josefsson <jas@extundo.com>
30765 * lib/memxor.c (memxor): Fix compiler error.
30767 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
30768 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
30770 * lib/memxor.h, lib/memxor.c: New files.
30772 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
30773 we assume all systems have it, suggested by Jim Meyering
30774 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
30775 any systems lack sys/socket.h; mingw32 is known to lack it, but we
30776 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
30779 2005-10-05 Simon Josefsson <jas@extundo.com>
30781 * config/srclist.txt: Add glibc bug 1423 for md5.h.
30783 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
30785 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
30786 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
30787 needed, since the source code now assumes these .h files.
30789 2005-10-05 Derek Price <derek@ximbiot.com>
30791 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
30793 2005-10-05 Bruno Haible <bruno@clisp.org>
30795 * modules/stdint (License): Change to LGPL.
30797 2005-10-04 Simon Josefsson <jas@extundo.com>
30799 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
30800 D. Baushke" <mdb@gnu.org>.
30802 2005-10-04 Bruno Haible <bruno@clisp.org>
30804 * lib/verify.h (verify_true): Provide alternative definition for C++.
30806 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
30808 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
30809 (SSIZE_MAX): New macro, if not already defined.
30810 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
30813 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
30815 Sync from coreutils.
30816 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
30817 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
30818 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
30819 ULLONG_MAX doesn't work with 2.7.2.1.
30821 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
30823 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
30826 * modules/exclude (Depends-on): Depend on verify.
30827 * modules/strtoimax (Depends-on): Likewise.
30828 * modules/utimecmp (Depends-on): Likewise.
30830 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
30832 * lib/exclude.c: Include verify.h.
30833 (verify): Remove. All callers changed to use verify.h's version.
30834 * lib/strtoimax.c: Likewise.
30835 * lib/utimecmp.c: Likewis.e
30837 Sync from coreutils.
30838 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
30839 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
30840 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
30841 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
30842 bother returning ENOSYS if settimeofday or stime fails; just let
30843 them return whatever errno they want to return.
30844 * lib/utimens.c: Include unistd.h, for dup2.
30845 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
30846 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
30848 2005-10-02 Jim Meyering <jim@meyering.net>
30850 Sync from coreutils.
30851 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
30852 from glibc-2.2.5 that fails for read-only files.
30854 2005-10-02 Jim Meyering <jim@meyering.net>
30856 Sync from coreutils.
30857 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
30858 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
30859 `#if HAVE_CONFIG_H'.
30860 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
30861 Remove AT_FDCWD test.
30862 Do not consume the fd unless successful.
30863 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
30864 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
30865 block, so that we don't even try to compile it if settimeofday is
30866 available. This works around a compilation failure on OSF1 V5.1,
30867 due to stime requiring a `long int*' while tv_sec is `int'.
30869 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
30871 Sync from coreutils.
30872 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
30873 against `yes', rather than just testing for nonempty.
30875 2005-10-01 Simon Josefsson <jas@extundo.com>
30877 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
30880 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
30881 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
30882 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
30883 freeaddrinfo and gai_strerror are declared by the POSIX headers.
30884 Check if struct addrinfo is declared.
30886 2005-10-01 Simon Josefsson <jas@extundo.com>
30888 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
30889 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
30890 AI_* and EAI_* definitions. Protect function declarations.
30892 2005-10-01 Jim Meyering <jim@meyering.net>
30894 Sync from coreutils.
30896 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
30897 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
30898 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
30899 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
30900 in the inet and nsl libraries. Required on Solaris 5.7.
30902 2005-10-01 Jim Meyering <jim@meyering.net>
30904 Sync from coreutils.
30905 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
30906 in the inet and nsl libraries. Required on Solaris 5.7.
30908 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
30910 * lib/getdelim.c (getdelim): Remove unused variables.
30912 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
30914 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
30915 so that the code works even with ancient cpp. Portability problem
30916 with GCC 2.7.2.1 reported by Thomas M.Ott.
30918 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
30920 * modules/regex (Depends-on): Add strcase.
30922 * modules/gethostname (Licence): Change from GPL to LGPL, since
30923 gethostname.c is a trivial implementation of a standard library
30925 * modules/poll (License): Change from GPL to LGPL, since it's
30926 derived from LGPL code.
30928 2005-09-27 Jim Meyering <jim@meyering.net>
30930 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
30933 * lib/intprops.h (signed_type_or_expr__): Define.
30934 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
30935 for unsigned types.
30937 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
30939 * lib/verify.h (verify_expr): Remove, replacing with:
30940 (verify_true): New macro that returns true instead of void.
30941 (verify_type__): Remove.
30942 (verify): Use verify_true rather than verify_type__.
30944 2005-09-26 Bruno Haible <bruno@clisp.org>
30946 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
30948 (lib_SOURCES): Remove mbchar.c.
30949 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
30950 (Files): Add m4/mbrtowc.m4.
30951 * modules/mbiter: Likewise.
30952 * modules/mbuiter: Likewise.
30954 2005-09-26 Bruno Haible <bruno@clisp.org>
30956 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
30957 compile mbchar.c if they are not both present.
30958 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
30959 * m4/mbiter.m4 (gl_MBITER): Likewise.
30960 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
30961 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
30962 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
30964 2005-09-25 Jim Meyering <jim@meyering.net>
30966 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
30967 also uses socklen_t.
30969 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
30971 * lib/utimens.c (ENOSYS): Define if not already defined.
30972 (futimens): Support having a null PATH if the file descriptor
30975 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
30977 (__attribute): Define to empty unless GCC 3.1 or later.
30978 This works around a core dump on OpenBSD 3.4, which has GCC
30979 2.95.3, which dumps core when given __attribute__(()). It also
30980 simplifies other tests, since we really don't want to bother with
30981 worrying about which ancient version of GCC supported what.
30982 Original problem reported by Yoann Vandoorselaere, with part of
30983 the fix suggested by Derek Price.
30985 2005-09-24 Jim Meyering <jim@meyering.net>
30987 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
30988 so we can once again use a positive bitfield width of 1 -- now we
30989 don't have to explain why we were using a bitfield width of 2.
30991 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
30993 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
30994 and similarly for the other external symbols. Problem reported
30997 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
30998 bug reported by Jim Meyering.
31000 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
31001 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
31002 not needed, since socklen is a prerequisite module.
31004 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
31006 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
31007 Problem reported by Eric Blake.
31008 (getaddrinfo): Initialize se so that it's not garbage.
31009 Redo internal storage allocation so that it doesn't make unportable
31010 assumptions about alignment.
31013 * lib/utimens.c (futimens): Use futimesat if available.
31014 Prefer it to futimes since it doesn't have the futimes bug.
31016 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
31017 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
31018 Instead, declare a function that returns a pointer to an array,
31019 and use verify_type__ to declare the size of the array.
31020 Problem and germ of a solution reported by Bruno Haible.
31021 (verify_type__): Use 2, not 1, for bitfield size, to avoid
31022 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
31024 2005-09-23 Jim Meyering <jim@meyering.net>
31026 Sync from coreutils.
31027 Correct build failure (socklen_t not defined) on at least
31028 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
31029 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
31031 2005-09-23 Jim Meyering <jim@meyering.net>
31033 * modules/getaddrinfo (Depends-on): Add socklen.
31035 2005-09-23 Bruno Haible <bruno@clisp.org>
31037 * tests/test-verify.c: New file.
31039 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
31041 Sync from coreutils.
31043 * modules/argmatch (Depends-on): Add verify.
31044 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
31046 * modules/save-cwd (Depends-on): Likewise.
31048 * modules/openat (Files): Add lib/openat-die.c.
31049 (Depends-on): Remove error, exitfail.
31052 * modules/verify: New file.
31053 * MODULES.html.sh (Diagnostics <assert.h>): New section,
31054 with "verify" module.
31056 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
31058 Sync from coreutils.
31060 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
31061 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
31062 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
31063 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
31064 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
31065 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
31066 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
31067 Don't bother checking for string.h, stdlib.h, unistd.h.
31068 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
31069 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
31071 * m4/jm-macros.m4 (gl_MACROS): Likewise.
31072 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
31074 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
31075 (gl_GETDATE): Use it.
31077 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
31079 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
31081 Sync from coreutils.
31083 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
31085 * lib/argmatch.h: Include verify.h
31086 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
31087 (ARGMATCH_ASSERT): Remove; unused.
31088 * lib/canonicalize.c: Assume STDC_HEADERS.
31089 * lib/exclude.c: Include "strcase.h".
31090 * lib/regex_internal.h [!defined _LIBC]: Likewise.
31091 * lib/getusershell.c: Include stdio--.h rather than stdio.h
31093 (getusershell): Call fopen, not fopen_safer.
31094 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
31095 Do not include unistd-safer.h.
31096 (save_cwd): Don't call fd_safer; no longer needed
31097 now that we include fcntl--.h.
31099 * lib/getdate.y (relative_time): New type.
31100 (RELATIVE_TIME_0): New constant.
31101 (parser_control): Use relative_time instead of doing it ourselves.
31102 (%union): Add new relative_time rel member.
31103 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
31105 (relunit, relunit_snumber): Now of type rel.
31106 (zone, rel, relunit, get_date): Adjust to above changes.
31108 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
31109 Do not include unistd-safer.h.
31110 (getloadavg): Don't call fd_safer; no longer needed
31111 now that we include fcntl--.h.
31113 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
31114 (make_dir_parents): Treat ENOSYS like EEXIST.
31116 Improve quality of diagnostics on restore_cwd failure.
31117 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
31118 (make_dir_parents): Last arg is now int * (for errno), not bool *.
31119 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
31120 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
31121 each time through the loop. Do not diagnose restore_cwd failure;
31122 that is the caller's job (and perhaps the caller does not care).
31124 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
31125 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
31126 If the file already exists but is not a directory, don't bother
31127 to try to make its parents.
31128 Close potential file descriptor leak if we can't chdir("/") (!).
31129 Don't always return true if chdir($PWD) fails; return true only
31130 if the requested action was done successfully (except for the
31132 Don't log final directory unless we actually made it.
31133 Refactor to avoid duplicate code to fix up permissions.
31134 Don't attempt to fix up parent permissions if chdir($PWD) fails.
31136 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
31137 to make it a bit faster and (I hope) clearer.
31138 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
31139 Fix bug in formats like %2N.
31141 * lib/verify.h: New file.
31143 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
31145 Sync from coreutils.
31146 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
31148 2005-09-22 Jim Meyering <jim@meyering.net>
31150 Sync from coreutils.
31152 * m4/lstat.m4 (gl_FUNC_LSTAT):
31153 Use AC_LIBSOURCES to require lstat.c and lstat.h.
31154 Remove obsolete comment.
31155 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
31156 * m4/xstrtod.m4: Likewise.
31158 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
31160 2005-09-22 Jim Meyering <jim@meyering.net>
31162 Sync from coreutils.
31164 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
31166 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
31167 the .tm_year member, since otherwise gcc-4.0 would now warn about
31168 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
31170 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
31171 order to avoid an unsuppressible warning from gcc on 64-bit systems.
31173 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
31174 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
31175 when run in a time zone for which daylight savings time is in effect
31176 for the starting date.
31178 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
31179 stop us from restricting permissions of just-created absolute-named
31181 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
31182 to restore initial working directory.
31183 * lib/mkdir-p.c (make_dir_parents): New parameter:
31184 different_working_dir, to tell caller if/when we change the working
31185 directory and are unable to return to the initial one.
31186 * lib/mkdir-p.h (make_dir_parents): Update prototype.
31187 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
31188 `return false'. This fixes a bug introduced on 2004-07-30.
31190 * lib/openat.c (fdopendir): Be sure to close the supplied
31191 file descriptor before returning. This makes our replacement
31192 implementation a little closer to Solaris's, where fdopendir
31193 ties the file descriptor to the returned DIR* pointer.
31194 * lib/openat.c (unlinkat): New function.
31195 * lib/openat.h (unlinkat): Add prototype.
31196 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
31197 (openat_restore_fail): Rename from openat_restore_die.
31198 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
31200 Provide an alternative to exiting immediately upon save_cwd or
31201 restore_cwd failure. Now, an application can arrange e.g.,
31202 to perform a longjump in that case.
31203 * lib/openat.c: Include dirname.h.
31204 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
31205 (rpl_openat, fdopendir, fstatat): Call openat_save_die
31206 and openat_restore_die rather than calling error directly.
31207 Don't include "error.h" or "exitfail.h"; they're no longer needed.
31209 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
31210 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
31213 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
31214 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
31215 int utc, int nanoseconds);
31217 date should not have to allocate a megabyte of virtual memory to
31218 handle a format argument like +%1048575T. When implemented with
31219 strftime, it must allocate such a buffer, use strftime to fill it
31220 in, print it, then free it.
31221 With fprintftime, it simply prints everything and exits.
31222 With no need for memory allocation, that's one fewer way to fail.
31223 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
31224 optional field width, not before, so we accept %9:z, not %:9z.
31225 (my_strftime): Be sure to use L_('x') for literals.
31227 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
31228 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
31229 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
31230 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
31231 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
31232 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
31233 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
31234 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
31235 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
31236 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
31237 * lib/xgethostname.c, lib/xreadlink.c:
31238 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
31240 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
31241 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
31242 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
31243 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
31244 and don't include <sys/file.h>).
31246 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
31248 Sync from coreutils.
31250 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
31251 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
31252 [!LDAV_DONE]: Avoid unused variable warning.
31254 2005-09-21 Bruno Haible <bruno@clisp.org>
31256 * lib/unicodeio.h (unicode_to_mb): New declaration.
31258 2005-09-20 Derek Price <derek@ximbiot.com>
31260 * lib/getaddrinfo.c: Don't include <netdb.h> included from
31263 2005-09-20 Bruno Haible <bruno@clisp.org>
31265 * gnulib-tool: Remove trailing slashes from the values specified for
31266 --source-base, --m4-base, --tests-base, --aux-dir.
31267 Suggested by Simon Josefsson <jas@extundo.com>.
31269 2005-09-20 Bruno Haible <bruno@clisp.org>
31271 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
31272 func_modules_to_filelist, func_import, func_create_testdir): Make all
31273 sorting results locale-independent, so that gnulib-cache.m4 doesn't
31274 change when gnulib-tool is invoked in a different locale.
31276 2005-09-19 Simon Josefsson <jas@extundo.com>
31278 * m4/socklen.m4: Fix typo.
31280 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31282 Use a consistent style for including <config.h>.
31283 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
31284 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
31285 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
31286 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
31287 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
31288 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
31289 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
31290 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
31291 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
31292 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
31293 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
31294 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
31295 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
31296 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
31297 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
31298 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
31299 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
31300 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
31301 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
31302 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
31303 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
31304 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
31305 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
31306 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
31307 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
31308 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
31309 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
31310 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
31311 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
31312 lib/xstrtoumax.c, lib/yesno.c:
31313 Standardize inclusion of config.h.
31314 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
31315 lib/inttostr.h: Removed inclusion of config.h from header files.
31316 * lib/inttostr.c: Adjusted in-tree users.
31317 * lib/timespec.h: Remove superfluous warning to include config.h.
31318 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
31319 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
31320 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
31321 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
31322 config.h with HAVE_CONFIG_H.
31324 2005-09-19 Jim Meyering <jim@meyering.net>
31326 * modules/pathmax (License): Change to LGPL.
31328 2005-09-19 Derek Price <derek@ximbiot.com>
31330 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
31332 2005-09-19 Bruno Haible <bruno@clisp.org>
31334 * gnulib-tool (import): Provide default for --tests-base.
31336 2005-09-19 Bruno Haible <bruno@clisp.org>
31338 * doc/quote.texi: New file, extracted from gnulib.texi.
31339 * doc/ctime.texi: New file, extracted from gnulib.texi.
31340 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
31341 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
31342 * doc/gnulib.texi: Include them.
31344 2005-09-18 Bruno Haible <bruno@clisp.org>
31347 * gnulib-tool (func_readlink): New function.
31348 (func_ln_if_changed): Use it.
31350 2005-09-18 Bruno Haible <bruno@clisp.org>
31352 * gnulib-tool: Support --with-tests also with --import.
31353 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
31354 (func_import): Use variables $testsbase and $inctests. Emit a
31355 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
31356 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
31357 SUBDIRS += $testsdir.
31358 (func_create_testdir): Update.
31360 2005-09-18 Bruno Haible <bruno@clisp.org>
31362 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
31363 instead of $dry_run.
31364 (func_cp_if_changed, func_mv_if_changed): Remove functions.
31365 (func_ln_if_changed): Don't handle dry-run here.
31366 (func_import): In dry-run mode, detect more precisely which actions
31367 would be performed, and don't use "...ing" verbs.
31369 2005-09-18 Bruno Haible <bruno@clisp.org>
31371 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
31372 (func_import): Use join on two temporary files instead of three nested
31373 loops, in order to determine which files are new or old.
31375 2005-09-18 Bruno Haible <bruno@clisp.org>
31377 * gnulib-tool (func_import): Comment out code that spits out the
31378 new files with --dry-run.
31380 2005-09-18 Bruno Haible <bruno@clisp.org>
31382 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
31384 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
31386 * lib/stat-time.h: New file.
31387 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
31388 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
31389 in a different way.
31390 (timespec_cmp): New function.
31391 * lib/utimecmp.c: Include stat-time.h.
31392 (SYSCALL_RESOLUTION): Depend on whether various struct stat
31393 members exist, not on the obsolescent ST_MTIM_NSEC.
31394 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
31396 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
31398 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
31400 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
31402 * MODULES.html.sh (File system functions): Add stat-time.
31403 * modules/stat-time: New file.
31404 * modules/timespec (Files): Remove m4/st_mtim.m4; this
31405 is now done in a different way, by the stat-time module.
31406 * modules/utimecmp (Depends-on): Add stat-time.
31408 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
31410 * m4/st_mtim.m4: Remove. Superseded by...
31411 * m4/stat-time.m4: New file.
31412 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
31413 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
31415 2005-09-15 Derek Price <derek@ximbiot.com>
31417 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
31419 2005-09-15 Derek Price <derek@ximbiot.com>
31421 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
31422 * lib/regex_internal.c: Ditto, using this...
31423 (__GNUC_PREREQ): ...new macro.
31424 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
31426 (__GNUC_PREREQ): ...this new macro.
31428 * lib/strstr.h: Include string.h. Define strstr as a macro here.
31430 2005-09-15 Derek Price <derek@ximbiot.com>
31431 Paul Eggert <eggert@cs.ucla.edu>
31433 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
31434 changes, consolidating in...
31435 * lib/regex_internal.h: ...this file.
31437 2005-09-13 Jim Meyering <jim@meyering.net>
31439 * lib/canon-host.c: Filter through gnu indent and reword comments
31441 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
31443 2005-09-13 Derek Price <derek@ximbiot.com>
31445 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
31447 Reported by Jim Meyering <jim@meyering.net>.
31449 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
31451 * lib/base64.c: Typo.
31452 (base64_encode): Put b64str in initialized data section.
31454 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
31456 Merge glibc and coreutils changes into gnulib, plus a few
31458 * lib/md5.c: Use #error rather than a string.
31459 (CYCLIC): New macro, from glibc source. Use it instead of rol.
31460 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
31461 (__attribute__): Define to empty for non recent-GCC.
31462 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
31463 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
31464 Renamed from their non-__ counterparts, with new macros replacing
31465 them if not _LIBC. Add __THROW attribute.
31467 (struct md5_ctx): Align buffer if using GCC.
31468 * lib/sha1.h (struct sha1_ctx): Likewise.
31469 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
31470 The old name was backwards.
31471 (NOTSWAP): Remove; not used.
31472 (rol): New macro, moved here from md5.h.
31473 (sha1_process_block): Remove a FIXME that doesn't make sense.
31475 2005-09-12 Derek Price <derek@ximbiot.com>
31477 Return usable errors from canon-host.
31478 * lib/canon-host.h: New file.
31479 * lib/canon-host.c (canon_host): Wrap...
31480 (canon_host_r): ...this new function, which now relies exclusively on
31482 (ch_strerror): New function.
31483 (last_cherror): New global.
31484 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
31486 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
31488 (freeaddrinfo): Free ai->ai_canonname when set.
31490 2005-09-12 Derek Price <derek@ximbiot.com>
31492 Make canon-host require getaddrinfo.
31493 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
31494 AC_LIBSOURCE canon-host.h. Call...
31495 (gl_PREREQ_CANON_HOST): ...this new function, which requires
31497 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
31499 2005-09-12 Derek Price <derek@ximbiot.com>
31501 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
31503 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
31505 2005-09-12 Derek Price <derek@ximbiot.com>
31507 * lib/gai_strerror.c: Include config.h when available. Include
31508 getaddrinfo.h before other headers to test interface.
31509 Reported by Larry Jones <lawrence.jones@ugs.com>.
31511 2005-09-12 Derek Price <derek@ximbiot.com>
31512 Paul Eggert <eggert@cs.ucla.edu>
31514 * modules/glob (Files): Add glob-libc.h.
31516 2005-09-12 Derek Price <derek@ximbiot.com>
31517 Paul Eggert <eggert@cs.ucla.edu>
31519 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
31520 glob_.h, glob-libc.h.
31521 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
31523 2005-09-12 Derek Price <derek@ximbiot.com>
31524 Paul Eggert <eggert@cs.ucla.edu>
31526 * lib/glob-libc.h: Renamed from glob_.h. The new version is
31527 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
31528 protecting things that should be done only in gnulib contexts.
31529 * lib/glob_.h: New file, containing only the glob things needed for
31531 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
31532 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
31533 (glob, globfree, glob_pattern_p): Now defined simply in terms of
31534 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
31535 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
31536 and to respect the namespace rules better.
31538 2005-09-08 Simon Josefsson <jas@extundo.com>
31540 * modules/socklen: New file.
31542 2005-09-08 Simon Josefsson <jas@extundo.com>
31544 * m4/socklen.m4: New file.
31546 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
31548 * modules/utimens (Files): Add m4/utimbuf.m4, since
31549 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
31550 Reported by Sergey Poznyakoff.
31552 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
31554 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
31555 definitions, since that's the preferred style in glibc.
31556 Fix a minor spacing issue, and update copyright notice to match
31559 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
31561 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
31563 2005-09-06 Simon Josefsson <jas@extundo.com>
31565 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
31566 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
31568 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
31570 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
31573 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
31575 * config/srclist.txt: Add glibc bug 1302.
31577 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
31579 Change bitset word type from unsigned int to unsigned long int,
31580 as this has better performance on typical 64-bit hosts.
31581 Port bitset code to hosts with unusual word sizes.
31582 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
31583 (build_collating_symbol):
31584 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
31585 argument is a bitset. This is merely a style issue, but it makes
31586 it clearer that an entire array is expected.
31587 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
31588 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
31589 Port to the case where bitset_word is not the same as unsigned int.
31590 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
31591 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
31593 * lib/regexec.c (check_dst_limits_calc_pos_1,
31594 check_subexp_matching_top):
31595 (build_trtable, group_nodes_into_DFAstates):
31597 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
31598 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
31599 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
31600 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
31601 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
31602 * lib/regcomp.c (optimize_subexps, lower_subexp):
31603 Work even if bitset_word has holes in its bitwise representation.
31604 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
31605 * lib/regexec.c (check_dst_limits_calc_pos_1,
31606 check_subexp_matching_top):
31608 * lib/regex_internal.c (re_string_reconstruct):
31609 Don't assume UCHAR_MAX == 255.
31610 * lib/regex_internal.h (bitset_set_all): Likewise.
31611 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
31613 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
31614 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
31616 (BITSET_WORD_MAX): New macro.
31617 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
31618 (bitset_set_all, bitset_copy): Now inline functions, not macros.
31619 (bitset_empty, bitset_copy):
31620 Prefer sizeof (bitset) to multiplying it out ourselves.
31621 (bitset_not_merge): Remove; unused.
31622 (bitset_contain): Return bool, not unsigned int with one bit on.
31623 All callers changed.
31624 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
31625 alignment than re_node_set; do this by defining a new internal
31626 type struct dests_alloc and using it to allocate memory.
31628 2005-09-05 Bruno Haible <bruno@clisp.org>
31630 * gnulib-tool (func_import): Fix comparison in handling of symbolic
31633 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
31635 * modules/size_max (Makefile.am): Add size_max.h
31637 2005-09-04 Derek Price <derek@ximbiot.com>
31639 * gnulib-tool (func_import): Fix reversed $symbolic logic.
31641 2005-09-03 Simon Josefsson <jas@extundo.com>
31643 * gnulib-tool: Fix typo.
31645 2005-09-03 Simon Josefsson <jas@extundo.com>
31647 * config/srclist.txt: Add glibc bug 1293.
31649 2005-09-03 Derek Price <derek@ximbiot.com>
31651 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
31652 From Larry Jones <lawrence.jones@ugs.com>.
31654 2005-09-02 Simon Josefsson <jas@extundo.com>
31656 * modules/socklen: New file.
31658 2005-09-02 Simon Josefsson <jas@extundo.com>
31660 * modules/havelib: New module.
31662 * modules/gettext, modules/iconv, modules/lock, modules/readline:
31665 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
31667 Check for arithmetic overflow when calculating sizes, to prevent
31668 some buffer-overflow issues. These patches are conservative, in the
31669 sense that when I couldn't determine whether an overflow was possible,
31670 I inserted a run-time check.
31671 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
31673 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
31674 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
31675 (re_xnrealloc, re_x2nrealloc): New inline functions.
31676 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
31677 parse_bracket_exp):
31678 (build_equiv_class, build_charclass): Check for arithmetic overflow
31679 in size expression calculations.
31680 * lib/regex_internal.c (re_string_realloc_buffers):
31681 (build_wcs_upper_buffer, re_node_set_add_intersect):
31682 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
31683 (re_dfa_add_node, register_state): Likewise.
31684 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
31685 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
31686 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
31687 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
31689 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
31691 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
31692 m4/ulonglong.m4. Problem reported by Martin Lambers.
31694 2005-09-02 Bruno Haible <bruno@clisp.org>
31696 Support for lib vs. lib64 distinction on biarch platforms.
31697 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
31698 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
31699 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
31701 2005-09-02 Bruno Haible <bruno@clisp.org>
31703 * gnulib-tool (import): In the other first-use case, provide defaults
31706 2005-09-02 Bruno Haible <bruno@clisp.org>
31708 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
31709 patches not yet found in the latest gettext release.
31711 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
31713 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
31714 to avoid a collision with bits/local_lim.h in glibc.
31715 All uses changed. Problem reported by Dmitry V. Levin in
31716 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
31718 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
31719 bugs in int versus size_t comparisons.
31720 (re_string_context_at): Fix bug where the code assumed that
31723 Use bool where appropriate.
31724 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
31725 All callers changed.
31726 (calc_eclosure_iter): Likewise, for ROOT arg.
31727 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
31728 (build_charclass_op): Likewise, for NON_MATCH arg.
31729 * lib/regex_internal.c (re_string_allocate, re_string_construct):
31730 (re_string_construct_common): Likewise, for ICASE arg.
31731 * lib/regexec.c (re_search_2_stub, re_search_stub):
31732 Likewise, for RET_LEN arg.
31733 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
31734 (set_regs): Likewise, for FL_BACKTRACK arg.
31735 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
31736 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
31737 (calc_eclosure_iter, parse_bracket_exp):
31738 Use bool for internal variables that are booleans.
31739 * lib/regexec.c (re_search_internal, check_matching,
31740 proceed_next_node):
31741 (set_regs, build_sifted_states, sift_states_bkref):
31742 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
31743 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
31744 (find_collation_sequence_value):
31746 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
31747 (re_node_set_compare):
31748 Return bool, not int. All callers changed.
31749 * lib/regexec.c (check_halt_node_context, check_dst_limits):
31750 (build_trtable, check_node_accept): Likewise.
31751 * lib/regex_internal.h: Include stdbool.h.
31753 Fix bugs uncovered when converting to bool.
31754 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
31755 failure instead of charging ahead blindly.
31756 * lib/regex_internal.c (register_state): Likewise.
31757 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
31758 for freeing internal storage.
31759 (group_nodes_into_DFA_states): Use unsigned int, not int, for
31760 bitset pieces used as boolean, to avoid undefined behavior
31761 on hosts that do int overflow checking.
31763 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
31765 * config/srclist.txt: Add glibc bugs 1285-1287.
31767 2005-09-01 Jim Meyering <jim@meyering.net>
31769 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
31770 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
31771 Require gl_STAT_MACROS, too.
31773 2005-09-01 Bruno Haible <bruno@clisp.org>
31775 * gnulib-tool (import): In the first-use case, provide defaults.
31777 2005-09-01 Bruno Haible <bruno@clisp.org>
31779 * gnulib-tool (func_import): Remove the .tmp files.
31781 2005-09-01 Bruno Haible <bruno@clisp.org>
31783 * gnulib-tool (func_import): Fix handling of symbolic links.
31785 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
31787 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
31788 old glibc regex code mishandles strings longer than 2**31 bytes.
31789 This patch fixes this when the regex code is used in gnulib
31790 (i.e., outside glibc).
31792 This patch should not affect the use of the regex code inside
31793 glibc. No doubt this problem also needs to be handled for glibc
31794 as well, but the result will be an incompatible change to the
31795 glibc ABI, and the old ABI will have to be supported too. That
31796 can be the the subject for another patch.
31798 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
31799 governing whether the rest of this patch is active. By default,
31800 the macro is disabled and the patch has no effect.
31801 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
31802 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
31803 (struct re_pattern_buffer, re_search, re_search_2, re_match):
31804 (re_match_2, re_set_registers): Use the new types.
31805 * lib/regex_internal.h (Idx, re_hashval_t): New types.
31806 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
31808 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
31809 (re_string_context_at, bin_tree_t, re_dfastate_t):
31810 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
31811 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
31812 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
31813 (re_string_char_size_at, re_string_wchar_at):
31814 (re_string_elem_size_at):
31815 Use the new types and macros to port to 64-bit hosts.
31816 Use unsigned types for internal values, so that the code
31817 mostly works even for arrays larger than SSIZE_MAX.
31818 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
31819 (search_duplicated_node, calc_eclosure_iter, fetch_number):
31820 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
31821 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
31822 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
31823 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
31824 (calc_inveclosure, parse_dup_op, build_range_exp):
31825 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
31826 (fetch_number, create_token_tree, mark_opt_subexp):
31828 * lib/regex_internal.c (re_string_construct_common,
31829 create_ci_newstate):
31830 (create_cd_newstate, re_string_allocate, re_string_construct):
31831 (re_string_realloc_buffers, build_wcs_upper_buffer):
31832 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
31833 (re_string_reconstruct, re_string_peek_byte_case):
31834 (re_string_fetch_byte_case, re_string_context_at):
31835 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
31836 (re_node_set_init_copy, re_node_set_add_intersect):
31837 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
31838 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
31839 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
31840 (re_acquire_state, re_acquire_state_context, register_state):
31842 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
31843 search_cur_bkref_entry):
31844 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
31845 (re_search_internal, re_search_2_stub, re_search_stub)
31846 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
31847 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
31848 (update_cur_sifted_state, check_dst_limits):
31849 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
31850 (check_subexp_limits, sift_states_bkref, merge_state_array):
31851 (check_subexp_matching_top, get_subexp, get_subexp_sub):
31852 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
31853 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
31854 (expand_bkref_cache, check_node_accept_bytes):
31855 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
31856 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
31857 (acquire_init_state_context, check_halt_node_context):
31858 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
31859 (sift_states_backward, clean_state_log_if_needed):
31860 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
31861 (find_recover_state, transit_state_sb, transit_state_mb):
31862 (transit_state_bkref, build_trtable, match_ctx_clean):
31864 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
31865 to work around an assumption that REG_MISSING is negative.
31867 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
31868 (seek_collating_symbol_entry) [defined _LIBC]:
31869 (lookup_collation_sequence_value) [defined _LIBC]:
31870 (build_range_exp, build_collating_symbol) [defined _LIBC]:
31871 Use prototypes rather than old-style function definitions.
31872 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
31873 (transit_state_sb) [0]:
31874 (find_collation_sequence_value) [defined _LIBC]: Likewise.
31876 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
31879 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
31880 (optimize_subexps, lower_subexp):
31881 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
31882 since the signed shift might overflow. Use 1u<<31 instead.
31883 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
31885 * lib/regexec.c (check_dst_limits_calc_pos_1,
31886 check_subexp_matching_top): Likewise.
31888 * lib/regcomp.c (optimize_subexps, lower_subexp):
31889 Use CHAR_BIT rather than 8, for clarity.
31890 * lib/regexec.c (check_dst_limits_calc_pos_1):
31891 (check_subexp_matching_top): Likewise.
31892 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
31893 have to worry about portability issues when shifting it left.
31894 Remove no-longer-needed test for table_size > 0.
31895 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
31896 in a word, as the resulting behavior is undefined.
31897 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
31898 in one case, a <= should have been an <, and in another case the
31899 whole test was missing.
31900 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
31901 the standard name CHAR_BIT.
31902 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
31903 this is not true on one's complement and signed-magnitude hosts.
31905 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
31907 (struct re_dfa_t): Remove unused member states_alloc.
31908 * lib/regcomp.c (init_dfa): Don't initialize unused members.
31910 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
31912 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
31913 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
31914 and large-file glibc and in 32-bit large-file Solaris.
31916 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
31918 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
31919 lengths fit in regoff_t; this isn't true if regoff_t is the same
31921 * lib/regex.c (re_search_internal): 5th arg is LAST_START
31922 (= START + RANGE) instead of RANGE. This avoids overflow
31923 problems when regoff_t is the same width as size_t.
31924 All callers changed.
31925 (re_search_2_stub): Check for overflow when adding the
31926 sizes of the two strings.
31927 (re_search_stub): Check for overflow when adding START
31928 to RANGE; if it occurs, substitute the extreme value.
31930 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
31932 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
31934 2005-08-31 Jim Meyering <jim@meyering.net>
31936 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
31937 a pointer-to-const.
31938 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
31939 (register_state): Likewise.
31940 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
31941 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
31942 (group_nodes_into_DFAstates): Likewise.
31944 2005-08-31 Jim Meyering <jim@meyering.net>
31946 * check-module: Add a FIXME comment.
31948 2005-08-31 Eric Blake <ebb9@byu.net>
31950 * modules/unistd-safer (Files): Add unistd--.h.
31951 * modules/stdio-safer (Files): Add stdio--.h.
31953 2005-08-31 Derek Price <derek@ximbiot.com>
31955 * lib/getdelim.c (getdelim): Return EOF on EOF.
31956 Reported by Larry Jones <lawrence.jones@ugs.com>.
31958 2005-08-31 Bruno Haible <bruno@clisp.org>
31960 Avoid unnecessary diffs in the generated lib/Makefile.am.
31961 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
31962 the generated files.
31963 (func_import): Don't set cmd.
31965 2005-08-31 Bruno Haible <bruno@clisp.org>
31967 * lib/strstr.c: Include <stddef.h>, for NULL.
31968 * lib/strcasestr.c: Likewise.
31969 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31971 2005-08-31 Bruno Haible <bruno@clisp.org>
31973 * gnulib-tool: New option --macro-prefix.
31974 (func_import): Use macro_prefix.
31975 (import): Handle option --macro-prefix.
31977 2005-08-31 Bruno Haible <bruno@clisp.org>
31979 * gnulib-tool (import): Rename most ac_* variables to cached_*.
31980 Also use new variables cached_lgpl, cached_libtool.
31982 2005-08-31 Bruno Haible <bruno@clisp.org>
31984 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
31985 always instantiating them.
31987 2005-08-31 Bruno Haible <bruno@clisp.org>
31989 * gnulib-tool (func_import): Read the previous cached settings
31990 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
31991 earlier added by gnulib but are now dropped. Warn when a gnulib file
31992 overwrites a non-gnulib file.
31994 2005-08-31 Bruno Haible <bruno@clisp.org>
31996 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
31997 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
31998 projects that don't keep autogenerated files in CVS. Put into
31999 actioncmd only the specified modules, not the transitive closure.
32001 2005-08-31 Bruno Haible <bruno@clisp.org>
32003 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
32004 Create directories that shall be filled.
32005 (import): Don't look for gl_* macros in configure.ac. Recurse across
32006 all directories containing a gnulib-cache.m4 files, if meaningful.
32008 2005-08-31 Bruno Haible <bruno@clisp.org>
32010 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
32011 (import): Set seen_libtool when we see gl_LIBTOOL.
32013 2005-08-31 Bruno Haible <bruno@clisp.org>
32015 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
32016 declaration macro definitions from generated gnulib.m4.
32018 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
32020 * lib/iconvme.h: Add prototype for iconv_alloc.
32022 2005-08-29 Simon Josefsson <jas@extundo.com>
32024 * lib/iconvme.c: Fix errno.
32026 2005-08-29 Bruno Haible <bruno@clisp.org>
32028 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
32029 that it works when the directory contains spaces.
32031 2005-08-29 Bruno Haible <bruno@clisp.org>
32033 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
32035 2005-08-29 Bruno Haible <bruno@clisp.org>
32037 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
32040 2005-08-29 Bruno Haible <bruno@clisp.org>
32041 and Stepan Kasal <kasal@ucw.cz>
32043 * check-module: If more parameters are given, check each of them
32044 separately; add more exceptions, as noted by Jim Meyering.
32045 (check_module): New procedure.
32046 (%exempt_header): Now contains all exceptions.
32048 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
32050 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
32052 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
32054 * lib/iconvme.c: Split iconv_string into iconv_alloc.
32056 2005-08-28 Bruno Haible <bruno@clisp.org>
32058 * m4/gnulib-tool.m4: New file.
32060 2005-08-27 Jim Meyering <jim@meyering.net>
32062 * modules/unistd-safer (Files): Add pipe-safer.c.
32063 * modules/fcntl-safer (Files): Add creat-safer.c.
32065 2005-08-27 Jim Meyering <jim@meyering.net>
32067 * m4/stdlib-safer.m4: New file. From coreutils.
32068 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
32069 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
32070 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
32071 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
32072 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
32074 2005-08-27 Jim Meyering <jim@meyering.net>
32076 * lib/fopen-safer.c: Merge minor changes from coreutils.
32077 * lib/dup-safer.c: Likewise.
32078 * lib/fd-safer.c: Likewise.
32080 Merge from coreutils.
32081 * lib/stdio--.h: New file.
32082 * lib/stdlib--.h: New file.
32083 * lib/mkstemp-safer.c: New file.
32085 GNU tar needs these.
32086 * lib/pipe-safer.c: New file.
32087 * lib/creat-safer.c: New file.
32088 * lib/fcntl--.h (creat): Define to creat_safer.
32089 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
32090 * lib/unistd--.h (pipe): Define to pipe_safer.
32091 * lib/unistd-safer.h: Declare pipe_safer.
32093 2005-08-26 Simon Josefsson <jas@extundo.com>
32095 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
32096 Haible <bruno@clisp.org>.
32098 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
32100 * lib/regex_internal.h: Remove all references to
32101 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
32103 (bitset_not, bitset_merge, bitset_not_merge):
32104 (bitset_mask, re_string_allocate, re_string_construct):
32105 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
32106 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
32107 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
32108 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
32109 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
32110 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
32111 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
32112 (re_acquire_state_context):
32113 Remove unnecessary forward decls.
32114 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
32115 Put __attribute at function definition,
32116 now that the function decl has been removed.
32117 * lib/regex_internal.c (re_string_peek_byte_case):
32118 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
32121 2005-08-25 Stepan Kasal <kasal@ucw.cz>
32123 * m4/regex.m4: Add AC_PREREQ(2.50).
32124 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
32126 2005-08-25 Simon Josefsson <jas@extundo.com>
32128 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
32131 2005-08-25 Simon Josefsson <jas@extundo.com>
32133 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
32134 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
32135 GLIBC specific code.
32137 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
32139 Make regex safe for g++. This fixes one real bug (an "err"
32140 that should have been "*err"). g++ problem reported by
32142 * lib/regex_internal.h (re_calloc): New macro, consistent with
32143 re_malloc etc. All callers of calloc changed to use re_calloc.
32144 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
32145 not int. All callers changed.
32146 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
32147 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
32148 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
32149 (find_recover_state): Change "err" to "*err"; this fixes what
32150 appears to be a real bug.
32151 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
32154 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
32156 * modules/regex (Depends-on): Add malloc, since the code
32157 assumes that !malloc(0) means failure.
32159 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
32161 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
32163 alloca modernization/simplification for regex.
32164 * lib/regex.c: Remove portability cruft for alloca. This no longer
32165 needs to be at the start of the file, and can be moved into
32166 regex_internal.h and simplified.
32167 * lib/regex_internal.h: Include <alloca.h>.
32168 (__libc_use_alloca) [!defined _LIBC]: New macro.
32169 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
32170 now works outside glibc.
32172 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
32174 * config/srclist.txt: Add glibc bugs 1241, 1245.
32176 2005-08-25 Jim Meyering <jim@meyering.net>
32178 * lib/open-safer.c: Include <config.h>.
32179 Otherwise, we'd lose LARGEFILE support in any file using
32182 2005-08-25 Bruno Haible <bruno@clisp.org>
32184 * m4/minmax.m4: Require autoconf 2.52.
32185 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
32186 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
32187 alternatives of translit over the alphabet.
32188 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
32190 2005-08-24 Simon Josefsson <jas@extundo.com>
32192 * tests/test-getpass.c: New file.
32194 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
32196 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
32197 for GNU regex features.
32199 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
32201 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
32202 * lib/regex.h (regerror): Likewise.
32204 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
32205 requires this. (The code never needed it.)
32207 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
32208 All uses of recently-renamed identifiers changed to use the new,
32209 POSIX-compliant names. The code will build and run just fine
32210 without these changes, but it's better to eat our own dog food
32211 and use the standard-conforming names.
32213 * lib/regex.h: Fix a multitude of POSIX name space violations.
32214 These changes have an effect only for programs that define
32215 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
32216 do not change anything for programs compiled in the normal way.
32217 Also, there is no effect on the ABI.
32219 (_REGEX_SOURCE): New macro.
32220 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
32221 defined and _GNU_SOURCE is not; this fixes a name space violation.
32223 Rename the following macros to obey POSIX requirements.
32224 The old names are still visible as macros if _REGEX_SOURCE is defined.
32225 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
32226 RE_BACKSLASH_ESCAPE_IN_LISTS.
32227 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
32228 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
32229 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
32230 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
32231 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
32232 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
32233 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
32234 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
32235 (REG_INTERVALS): renamed from RE_INTERVALS.
32236 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
32237 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
32238 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
32239 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
32240 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
32241 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
32242 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
32243 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
32244 RE_UNMATCHED_RIGHT_PAREN_ORD.
32245 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
32246 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
32247 (REG_DEBUG): renamed from RE_DEBUG.
32248 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
32249 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
32250 unusual, since we can't clash with the POSIX REG_ICASE.
32251 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
32252 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
32253 (REG_NO_SUB): renamed from RE_NO_SUB.
32254 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
32255 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
32256 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
32257 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
32258 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
32259 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
32260 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
32261 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
32262 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
32263 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
32264 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
32265 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
32266 RE_SYNTAX_POSIX_MINIMAL_BASIC.
32267 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
32268 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
32269 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
32270 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
32271 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
32272 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
32273 (REG_FIXED): Renamed from REGS_FIXED.
32274 (REG_NREGS): Renamed from RE_NREGS.
32276 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
32277 of other REG_* macros, since POSIX says the user is allowed to
32278 #undef these macros selectively.
32280 (reg_errcode_t): Update comment stating what other tables need
32283 Rename the following enum values to obey POSIX requirements.
32284 The old names are still visible as macros.
32285 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
32286 is not defined, since GNU is supposed to be a superset of POSIX as
32287 much as possible, and since we want reg_errcode_t to be a signed
32288 type for implementation consistency.
32289 (_REG_NOERROR): Renamed from REG_NOERROR.
32290 (_REG_NOMATCH): Renamed from REG_NOMATCH.
32291 (_REG_BADPAT): Renamed from REG_BADPAT.
32292 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
32293 (_REG_ECTYPE): Renamed from REG_ECTYPE.
32294 (_REG_EESCAPE): Renamed from REG_EESCAPE.
32295 (_REG_ESUBREG): Renamed from REG_ESUBREG.
32296 (_REG_EBRACK): Renamed from REG_EBRACK.
32297 (_REG_EPAREN): Renamed from REG_EPAREN.
32298 (_REG_EBRACE): Renamed from REG_EBRACE.
32299 (_REG_BADBR): Renamed from REG_BADBR.
32300 (_REG_ERANGE): Renamed from REG_ERANGE.
32301 (_REG_ESPACE): Renamed from REG_ESPACE.
32302 (_REG_BADRPT): Renamed from REG_BADRPT.
32303 (_REG_EEND): Renamed from REG_EEND.
32304 (_REG_ESIZE): Renamed from REG_ESIZE.
32305 (_REG_ERPAREN): Renamed from REG_ERPAREN.
32306 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
32307 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
32308 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
32309 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
32311 (_REG_RE_NAME, _REG_RM_NAME): New macros.
32312 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
32313 changed. But support the old name if the new one is not defined
32314 and if _REGEX_SOURCE.
32316 Change the following member names in struct re_pattern_buffer.
32317 The old names are still supported if !_REGEX_SOURCE.
32318 The new names are always supported, regardless of _REGEX_SOURCE.
32319 (re_buffer): Renamed from buffer.
32320 (re_allocated): Renamed from allocated.
32321 (re_used): Renamed from used.
32322 (re_syntax): Renamed from syntax.
32323 (re_fastmap): Renamed from fastmap.
32324 (re_translate): Renamed from translate.
32325 (re_can_be_null): Renamed from can_be_null.
32326 (re_regs_allocated): Renamed from regs_allocated.
32327 (re_fastmap_accurate): Renamed from fastmap_accurate.
32328 (re_no_sub): Renamed from no_sub.
32329 (re_not_bol): Renamed from not_bol.
32330 (re_not_eol): Renamed from not_eol.
32331 (re_newline_anchor): Renamed from newline_anchor.
32333 Change the following member names in struct re_registers.
32334 The old names are still supported if !_REGEX_SOURCE.
32335 The new names are always supported, regardless of _REGEX_SOURCE.
32336 (rm_num_regs): Renamed from num_regs.
32337 (rm_start): Renamed from start.
32338 (rm_end): Renamed from end.
32340 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
32341 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
32342 Prepend __ to parameter names.
32344 Undo yesterday's changes.
32346 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
32348 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
32349 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
32352 2005-08-24 Jim Meyering <jim@meyering.net>
32354 Sync from coreutils.
32355 * m4/fcntl-safer.m4: New file.
32357 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
32358 and object files for this module.
32360 2005-08-24 Jim Meyering <jim@meyering.net>
32362 Sync from coreutils.
32363 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
32365 2005-08-24 Jim Meyering <jim@meyering.net>
32367 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
32368 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
32370 2005-08-24 Jim Meyering <jim@meyering.net>
32372 * modules/fcntl-safer: New module.
32373 * modules/fts (Depends-on): Add fcntl-safer.
32374 * MODULES.html.sh (File descriptor based Input/Output):
32377 2005-08-24 Bruno Haible <bruno@clisp.org>
32379 Support for unit test modules.
32380 * modules/README: Mention tests modules.
32381 * modules/TEMPLATE-TESTS: New file.
32382 * gnulib-tool: New options --extract-tests-module, --with-tests and
32383 --tests-base (unused for the moment).
32384 (testsbase, inctests): New variables.
32385 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
32386 (func_verify_module): Exclude TEMPLATE-TESTS.
32387 (func_verify_nontests_module, func_verify_tests_module): New functions.
32388 (func_get_dependencies): Add implicit dependency for tests modules.
32389 (func_get_tests_module): New function.
32390 (func_modules_transitive_closure): When --with-tests was specified,
32391 include the unit tests as well, unless explicitly avoided.
32392 (func_emit_lib_Makefile_am): Ignore the tests modules here.
32393 (func_emit_tests_Makefile_am): New function.
32394 (func_create_testdir): When --with-tests was specified, emit a
32396 * MODULES.html.sh (Future developments): Update.
32398 2005-08-24 Bruno Haible <bruno@clisp.org>
32400 * modules/tls-tests: New file.
32401 * tests/test-tls.c: New file, from GNU gettext.
32403 2005-08-24 Bruno Haible <bruno@clisp.org>
32405 * modules/lock-tests: New file.
32406 * tests/test-lock.c: New file, from GNU gettext.
32408 2005-08-24 Bruno Haible <bruno@clisp.org>
32410 * lib/lock.h: Add multiple inclusion guard.
32411 * lib/tls.h: Add multiple inclusion guard.
32413 2005-08-24 Bruno Haible <bruno@clisp.org>
32415 * gnulib-tool: Add support for the --aux-dir option to
32416 --create-testdir, --create-megatestdir, --test, --megatest.
32417 (func_create_testdir, func_create_megatestdir): Optionally emit a
32418 AC_CONFIG_AUX_DIR directive.
32419 (create-testdir, create-megatestdir, test, megatest): Provide a
32420 default value for $auxdir.
32422 2005-08-24 Bruno Haible <bruno@clisp.org>
32424 * gnulib-tool (import): Use compound statement instead of subshell
32427 2005-08-24 Bruno Haible <bruno@clisp.org>
32429 * gnulib-tool (import): Change --aux-dir default to "build-aux".
32431 2005-08-24 Bruno Haible <bruno@clisp.org>
32433 * gnulib-tool (func_version): Update.
32435 2005-08-24 Bruno Haible <bruno@clisp.org>
32437 * gnulib-tool (func_import, func_create_testdir,
32438 func_create_megatestdir): Quote all autoconf macro arguments.
32440 2005-08-24 Bruno Haible <bruno@clisp.org>
32442 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
32443 option --force, because --force causes the aclocal.m4 of each
32444 subdirectory to be newer than the corresponding config.h.in.
32446 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
32448 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
32449 All contents moved to gl_REGEX.
32450 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
32451 assume that it does.
32453 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
32455 * lib/regex.h (REG_NOSYS)
32456 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
32457 Define, since POSIX requires it as of 2001.
32459 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
32460 New private symbol, used to keep the enum signed in all cases.
32461 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
32463 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
32465 * lib/regex_internal.c (re_string_skip_chars, register_state):
32467 Remove forward decls; no longer needed now that we use prototypes.
32468 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
32469 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
32470 (clean_state_log_if_needed): Likewise.
32472 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
32474 * config/srclist.txt: Add glibc bugs 1231-1233.
32476 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
32478 Fix problems reported by Sam Steingold in
32479 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
32480 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
32481 assumed that reg_errcode_t is a signed type, which is not
32482 necessarily true if _XOPEN_SOURCE is not defined.
32483 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
32484 since some compilers warn about it otherwise.
32486 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
32488 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
32489 (init_word_char, create_initial_state, duplicate_node_closure):
32490 (fetch_token, peek_token_bracket, build_range_exp):
32491 (build_collating_symbol): Remove forward decls; no longer needed
32492 now that we use prototypes.
32495 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
32496 (re_compile_fastmap_iter, regcomp, regerror, regfree):
32497 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
32498 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
32499 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
32500 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
32501 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
32502 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
32503 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
32504 (build_range_exp, build_collating_symbol, parse_bracket_exp):
32505 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
32506 (build_charclass, build_charclass_op, fetch_number, create_tree):
32507 (create_token_tree, mark_opt_subexp, duplicate_tree):
32508 Use prototypes rather than old-style definitions.
32510 * lib/regex_internal.c:
32511 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
32512 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
32513 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
32514 (re_string_reconstruct, re_string_peek_byte_case):
32515 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
32516 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
32517 (re_node_set_init_copy, re_node_set_add_intersect):
32518 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
32519 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
32520 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
32521 (re_acquire_state, re_acquire_state_context, register_state):
32522 (create_ci_newstate, create_cd_newstate, free_state):
32524 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
32526 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
32527 (re_search_internal, prune_impossible_nodes):
32528 (acquire_init_state_context, check_matching, static):
32529 (check_halt_node_context, check_halt_state_context, proceed_next_node):
32530 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
32531 (update_regs, sift_states_backward, build_sifted_states):
32532 (clean_state_log_if_needed, merge_state_array):
32533 (update_cur_sifted_state, add_epsilon_src_nodes):
32534 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
32535 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
32536 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
32537 (find_recover_state, check_subexp_matching_top, transit_state_mb):
32538 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
32539 (check_arrival, check_arrival_add_next_nodes):
32540 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
32541 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
32542 (check_node_accept_bytes, check_node_accept, extend_buffers):
32543 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
32544 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
32548 * lib/regex_internal.h:
32549 (re_string_allocate, re_string_construct, re_string_reconstruct):
32550 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
32551 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
32552 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
32553 (re_string_context_at, re_string_peek_byte_case):
32554 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
32555 is defined, since we now use prototypes always.
32557 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
32558 C89 or better. All uses removed.
32560 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
32562 * config/srclist.txt: Add glibc bugs 1220-1227.
32564 2005-08-20 Jim Meyering <jim@meyering.net>
32566 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
32567 of unused local, dfa.
32569 2005-08-20 Bruno Haible <bruno@clisp.org>
32571 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
32573 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
32575 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
32576 (re_node_set_insert_last, re_dfa_add_node):
32577 Rename local variables to avoid GCC shadowing warnings.
32579 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
32581 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
32582 [defined lint]: Suppress bogus uninitialized-variable warnings.
32584 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
32585 and let the caller return REG_ESPACE if out of space. This
32586 removes an uninitialied-variable warning with GCC 4.0.1, and also
32587 avoids taking the address of a local variable. All callers
32590 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
32592 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
32593 $LIBCSRC/posix/regexec.c.
32594 Add glibc bug 1217 for regcomp.c.
32596 2005-08-19 Jim Meyering <jim@meyering.net>
32598 * lib/regexec.c (proceed_next_node): Redo local variables to
32599 avoid GCC shadowing warnings.
32601 2005-08-18 Bruno Haible <bruno@clisp.org>
32603 * lib/strstr.c (strstr): Fix return value in multibyte case.
32604 * lib/strcasestr.c (strcasestr): Likewise.
32606 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
32608 * lib/regex.h: Remove useless space-before-tab. From coreutils.
32610 2005-08-17 Jim Meyering <jim@meyering.net>
32612 Make the %s format (seconds since the epoch) work for a negative
32613 number and when used with a zero-padded field width, e.g. %015s.
32615 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
32616 label so that it precedes the code to set `digits'. Otherwise,
32617 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
32618 print `00-22'. Now, it prints `-0022', as it should.
32620 2005-08-17 Bruno Haible <bruno@clisp.org>
32622 * modules/strstr (Files): Add m4/mbrtowc.m4.
32623 (Depends-on): Add mbuiter.
32625 2005-08-17 Bruno Haible <bruno@clisp.org>
32627 * modules/strcasestr: New file.
32628 * MODULES.html.sh (String handling, based on ANSI C 89): Add
32631 2005-08-17 Bruno Haible <bruno@clisp.org>
32633 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
32635 2005-08-17 Bruno Haible <bruno@clisp.org>
32637 * modules/mbuiter: New file.
32638 * MODULES.html.sh (Extended multibyte and wide character utilities):
32641 2005-08-17 Bruno Haible <bruno@clisp.org>
32643 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
32644 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
32646 2005-08-17 Bruno Haible <bruno@clisp.org>
32648 * m4/strcasestr.m4: New file.
32650 2005-08-17 Bruno Haible <bruno@clisp.org>
32652 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
32653 * lib/strstr.c: Completely rewritten, with multibyte locale support.
32655 2005-08-17 Bruno Haible <bruno@clisp.org>
32657 * lib/strcasestr.h: New file.
32658 * lib/strcasestr.c: New file.
32660 2005-08-17 Bruno Haible <bruno@clisp.org>
32662 * lib/strcasecmp.c: Use mbuiter.h.
32664 2005-08-17 Bruno Haible <bruno@clisp.org>
32666 * lib/mbuiter.h: New file.
32668 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
32670 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
32671 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
32672 and gl_GETOPT are both invoked via different paths (as happens
32673 with GNU tar CVS because it uses both argp and getopt), the former
32676 2005-08-16 Bruno Haible <bruno@clisp.org>
32678 * modules/tls: New file.
32679 * MODULES.html.sh (Multithreading): Add tls.
32681 2005-08-16 Bruno Haible <bruno@clisp.org>
32683 * modules/strnlen1: New file.
32684 * MODULES.html.sh (String handling): Add strnlen1.
32686 2005-08-16 Bruno Haible <bruno@clisp.org>
32688 * modules/strcase (Files): Add m4/mbrtowc.m4.
32689 (Depends-on): Add strnlen1, mbchar.
32691 2005-08-16 Bruno Haible <bruno@clisp.org>
32693 * modules/mbiter: New file.
32694 * MODULES.html.sh (Extended multibyte and wide character utilities):
32697 2005-08-16 Bruno Haible <bruno@clisp.org>
32699 * modules/mbfile: New file.
32700 * MODULES.html.sh (Extended multibyte and wide character utilities):
32703 2005-08-16 Bruno Haible <bruno@clisp.org>
32705 * modules/mbchar: New file.
32706 * MODULES.html.sh (Extended multibyte and wide character utilities):
32709 2005-08-16 Bruno Haible <bruno@clisp.org>
32711 * m4/tls.m4: New file, from GNU gettext.
32713 2005-08-16 Bruno Haible <bruno@clisp.org>
32715 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
32717 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
32719 2005-08-16 Bruno Haible <bruno@clisp.org>
32721 * m4/mbiter.m4: New file.
32723 2005-08-16 Bruno Haible <bruno@clisp.org>
32725 * m4/mbfile.m4: New file.
32727 2005-08-16 Bruno Haible <bruno@clisp.org>
32729 * m4/mbchar.m4: New file.
32731 2005-08-16 Bruno Haible <bruno@clisp.org>
32733 * lib/tls.h: New file, from GNU gettext.
32734 * lib/tls.c: New file, from GNU gettext.
32736 2005-08-16 Bruno Haible <bruno@clisp.org>
32738 * lib/strnlen1.h: New file.
32739 * lib/strnlen1.c: New file.
32741 2005-08-16 Bruno Haible <bruno@clisp.org>
32743 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
32744 (mbi_init): Update.
32745 (mbi_avail, mbi_advance): Let the iteration end before the terminating
32746 NUL byte, not after it.
32748 2005-08-16 Bruno Haible <bruno@clisp.org>
32750 * lib/strcase.h (strcasecmp): Add note in comments.
32751 * lib/strncasecmp.c: Use code from strcasecmp.c.
32752 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
32753 (strcasecmp): Work correctly in multibyte locales.
32755 2005-08-16 Bruno Haible <bruno@clisp.org>
32757 * lib/mbiter.h: New file.
32759 2005-08-16 Bruno Haible <bruno@clisp.org>
32761 * lib/mbfile.h: New file.
32763 2005-08-16 Bruno Haible <bruno@clisp.org>
32765 * lib/mbchar.h: New file.
32766 * lib/mbchar.c: New file.
32768 2005-08-16 Bruno Haible <bruno@clisp.org>
32770 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
32771 the valid ones. Makes the comparison operations transitive:
32772 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
32773 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
32775 2005-08-15 Simon Josefsson <jas@extundo.com>
32777 * modules/ssize_t (License): Change to 'unlimited'.
32779 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
32781 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
32783 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
32784 Add comments for each pending glibc patch.
32786 2005-08-15 Bruno Haible <bruno@clisp.org>
32788 * lib/regex.h (__restrict_arr): Don't define to __restrict if
32789 __cplusplus is defined.
32791 2005-08-14 Jim Meyering <jim@meyering.net>
32793 Sync from coreutils.
32795 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
32796 Use the hash-table-based cycle-detection code not just when
32797 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
32798 Reported by James Youngman in
32799 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
32800 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
32801 FTS_TIGHT_CYCLE_CHECK.
32802 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
32803 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
32805 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
32806 * lib/fts.c (fd_safer): Remove decl.
32807 Include fcntl--.h rather than unistd-safer.h
32808 (fts_safe_changedir): Don't call fd_safer; no longer needed
32809 now that we include fcntl--.h.
32811 2005-08-12 Simon Josefsson <jas@extundo.com>
32813 * modules/getndelim2: Use ssize_t module.
32814 * modules/getnline: Likewise.
32815 * modules/safe-read: Likewise.
32816 * modules/xreadlink: Likewise.
32818 * modules/ssize_t: New file.
32820 2005-08-12 Simon Josefsson <jas@extundo.com>
32822 * m4/readline.m4: Look for termcap, curses or ncurses if required.
32824 2005-08-12 Simon Josefsson <jas@extundo.com>
32826 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32829 2005-08-12 Simon Josefsson <jas@extundo.com>
32831 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
32832 readline, getdelim and check_version.
32833 (Support for systems lacking ISO C 99: Sizes of integer types):
32836 2005-08-12 Bruno Haible <bruno@clisp.org>
32838 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
32840 2005-08-11 Simon Josefsson <jas@extundo.com>
32842 * modules/readline: New file.
32844 * modules/strnlen (Files): Add strnlen.h.
32846 2005-08-11 Simon Josefsson <jas@extundo.com>
32848 * m4/readline.m4: New file.
32850 2005-08-11 Simon Josefsson <jas@extundo.com>
32852 * lib/readline.h, readline.c: New file.
32854 2005-08-11 Simon Josefsson <jas@extundo.com>
32856 * doc/gnulib.texi (Initial import, Finishing touches): Mention
32859 2005-08-11 Bruno Haible <bruno@clisp.org>
32861 * lib/strnlen.h (strnlen): Change parameter name to match comment.
32863 2005-08-10 Stepan Kasal <kasal@ucw.cz>
32865 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
32867 2005-08-10 Simon Josefsson <jas@extundo.com>
32869 * tests/test-iconvme.c: New file.
32871 2005-08-10 Simon Josefsson <jas@extundo.com>
32873 * m4/strnlen.m4: New file.
32875 * m4/strndup.m4: Don't check for strnlen declaration, done in
32878 2005-08-10 Simon Josefsson <jas@extundo.com>
32880 * lib/strndup.c: Use strnlen.h.
32882 * lib/strnlen.h: New file.
32884 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
32888 2005-08-02 Simon Josefsson <jas@extundo.com>
32890 * modules/readline: New file.
32892 2005-08-02 Simon Josefsson <jas@extundo.com>
32894 * modules/getdelim: New file.
32896 * modules/getline: Rewrite, don't use getndelim2.
32898 2005-08-02 Simon Josefsson <jas@extundo.com>
32900 * m4/getline.m4: Separate out getdelim stuff into separate module.
32902 * m4/getdelim.m4: New file.
32904 2005-08-02 Simon Josefsson <jas@extundo.com>
32906 * lib/getline.h, getline.c: Rewrite.
32908 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
32910 2005-07-31 Bruno Haible <bruno@clisp.org>
32912 * lib/lock.h (gl_lock_initializer): New macro.
32913 (gl_lock_define_initialized): Use it.
32914 (gl_rwlock_initializer): New macro.
32915 (gl_rwlock_define_initialized): Use it.
32916 (gl_recursive_lock_initializer): New macro.
32917 (gl_recursive_lock_define_initialized): Use it.
32919 2005-07-30 Karl Berry <karl@gnu.org>
32921 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
32922 Report from Ben Pfaff, regarding getopt.
32924 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
32926 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
32928 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
32929 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
32930 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
32931 (gl_GETOPT): Use the new macros. Most of the implementation
32932 is moved to the new macros. This is for programs like Emacs
32933 that don't want all the functionality of gl_GETOPT.
32935 2005-07-26 Bruno Haible <bruno@clisp.org>
32937 * m4/lock.m4: Update from GNU gettext.
32939 2005-07-26 Bruno Haible <bruno@clisp.org>
32941 * lib/lock.h: Update from GNU gettext.
32942 * lib/lock.c: Update from GNU gettext.
32944 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
32946 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
32947 obsolescent AC_TRY_RUN. Include the default includes files, for
32950 2005-07-24 Bruno Haible <bruno@clisp.org>
32952 * modules/visibility: New file.
32953 * MODULES.html.sh (Misc): Add visibility.
32955 2005-07-24 Bruno Haible <bruno@clisp.org>
32957 * m4/visibility.m4: New file.
32959 2005-07-24 Bruno Haible <bruno@clisp.org>
32961 * doc/visibility.texi: New file.
32963 2005-07-22 Bruno Haible <bruno@clisp.org>
32965 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
32966 $(ALLOCA_H), redundant through BUILT_SOURCES.
32967 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
32968 redundant through BUILT_SOURCES.
32969 * modules/byteswap (Makefile.am): Remove explicit dependency on
32970 $(BYTESWAP_H), redundant through BUILT_SOURCES.
32971 * modules/fnmatch (Makefile.am): Remove explicit dependency on
32972 $(FNMATCH_H), redundant through BUILT_SOURCES.
32973 * modules/getopt (Makefile.am): Remove explicit dependency on
32974 $(GETOPT_H), redundant through BUILT_SOURCES.
32975 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
32976 redundant through BUILT_SOURCES.
32977 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
32978 redundant through BUILT_SOURCES.
32979 * modules/stdbool (Makefile.am): Remove explicit dependency on
32980 $(STDBOOL_H), redundant through BUILT_SOURCES.
32981 * modules/stdint (Makefile.am): Remove explicit dependency on
32982 $(STDINT_H), redundant through BUILT_SOURCES.
32983 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
32984 Remove explicit dependency on $(SYSEXITS_H).
32985 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
32987 2005-07-18 Simon Josefsson <jas@extundo.com>
32989 * lib/check-version.c (check_version): Accept identical versions too.
32991 2005-07-18 Bruno Haible <bruno@clisp.org>
32993 * modules/lock: New file.
32994 * MODULES.html.sh (Multithreading): New section.
32996 2005-07-18 Bruno Haible <bruno@clisp.org>
32998 * m4/lock.m4: New file, from GNU gettext.
33000 2005-07-18 Bruno Haible <bruno@clisp.org>
33002 * lib/lock.h: New file, from GNU gettext.
33003 * lib/lock.c: New file, from GNU gettext.
33005 2005-07-18 Bruno Haible <bruno@clisp.org>
33007 * lib/lock.h (gl_once_t): New type.
33008 (gl_once_define, gl_once): New macros.
33009 * lib/lock.c (fresh_once): New variable.
33010 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
33013 2005-07-16 Simon Josefsson <jas@extundo.com>
33015 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
33016 workaround, suggested by Bruno.
33018 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
33020 * modules/xalloc (Depends-on): Add xalloc-die.
33021 * modules/xvasprintf (Depends-on): Add xalloc-die.
33023 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
33025 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
33026 with a minor change.
33028 2005-07-15 Bruno Haible <bruno@clisp.org>
33030 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
33031 When using lib/poll.c, define poll as rpl_poll.
33033 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
33035 * modules/argp (Depends-on): Remove unlocked-io.
33037 2005-07-14 Derek Price <derek@ximbiot.com>
33039 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
33040 for glob symlink bug.
33042 2005-07-14 Bruno Haible <bruno@clisp.org>
33044 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
33045 Instead, test for *_unlocked function declarations directly.
33047 2005-07-11 Simon Josefsson <jas@extundo.com>
33049 * modules/size_max: New file.
33051 * modules/xsize: Depend on size_max module for size_max.m4.
33053 2005-07-11 Simon Josefsson <jas@extundo.com>
33055 * lib/size_max.h: New file.
33057 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
33059 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
33060 copyright symbol and the year.
33061 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
33062 (version_etc_va): Use parameterized copyright notice.
33063 Reword to conform to the current GNU coding standards.
33065 2005-07-11 Karl Berry <karl@gnu.org>
33067 * doc/gnulib.texi (Quoting): new node.
33068 (Initial import): more info, from Patrice.
33070 2005-07-11 Bruno Haible <bruno@clisp.org>
33072 * gnulib-tool (func_usage): Document option --avoid.
33073 (Command line options): Handle --avoid.
33074 (func_acceptable): New function.
33075 (func_modules_transitive_closure): Use it.
33077 2005-07-11 Bruno Haible <bruno@clisp.org>
33079 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
33080 Reported by Jim Meyering.
33082 2005-07-10 Bruno Haible <bruno@clisp.org>
33084 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
33085 Needed when size_t is smaller than 'unsigned int'.
33086 Reported by Paul Eggert.
33088 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
33090 * modules/argp (Depends-on): Add unlocked-io
33092 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
33094 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
33097 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
33099 * config/srclist.txt: Comment out regcomp.c, since we have a porting
33102 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
33103 and Paul Eggert <eggert@cs.ucla.edu>
33105 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
33106 in wint_t, not wchar_t. Remove now-unnecessary cast.
33108 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
33110 * modules/regex (Files): Add lib/regex_internal.c,
33111 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
33112 (Depends-on): Add extensions.
33113 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
33115 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
33117 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
33119 * m4/same.m4 (gl_SAME): Likewise.
33120 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
33122 * m4/regex.m4: Adjust to new libc regex implementation.
33123 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
33124 all the .c and .h parts of (the new) regex.
33125 Quote the m4 stuff better.
33126 Check for RE_ICASE bug of old gnulib.
33127 Check for REG_STARTEND of recent libc.
33128 Rename local variables from jm_* to gl_*.
33129 Quote operand of "test -f".
33130 Say "recent enough" version of libc, not "version 2".
33131 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
33132 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
33133 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
33134 Remove check for btowc, isascii.
33135 Require AM_LANGINFO_CODESET.
33137 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
33139 * lib/regex.c, regex.h: Sync from libc.
33140 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
33142 New files, synced from libc, except that regex_internal.h
33143 currently has a small porting fix.
33145 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
33147 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
33148 regex_internal.c, regexec.c.
33149 Add regex_internal.h too, but as a comment, since the libc version
33150 is currently broken in gnulib mode.
33152 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
33154 Support programs like Emacs that use gnulib but not gettext.
33155 * MODULES.html.sh (Internationalization functions): Add gettext-h.
33156 * modules/gettext-h: New file.
33157 * modules/gettext (Files): Remove lib/gettext.h.
33158 (Depends-on): Add gettext-h.
33159 (Makefile.am): Remove lib_SOURCES.
33160 * modules/argmatch, modules/c-stack, modules/closeout:
33161 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
33162 * modules/execute, modules/file-type, modules/getaddrinfo:
33163 * modules/getopt, modules/human, modules/javacomp:
33164 * modules/javaexec, modules/mkdir-p, modules/obstack:
33165 * modules/openat, modules/pagealign_alloc, modules/pipe:
33166 * modules/quotearg, modules/regex, modules/rpmatch:
33167 * modules/unicodeio, modules/userspec, modules/version-etc:
33168 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
33170 Depend on gettext-h, not gettext.
33172 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
33174 * gnulib-tool (func_import): Add support for 'public domain' license.
33175 * modules/alloca, modules/atexit, modules/memmove:
33176 Now public domain, not GPL.
33177 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
33178 * modules/realloc, modules/strerror, modules/strtod:
33181 2005-07-05 Bruno Haible <bruno@clisp.org>
33183 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
33184 autoconf CVS. Needed for mingw.
33186 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
33188 Remove the dependency of the strftime module on the tzset module.
33189 * modules/strftime (Depends-on): Remove dependency on tzset.
33191 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
33193 Remove the dependency of the strftime module on the tzset module.
33194 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
33195 gl_FUNC_TZSET_CLOBBER.
33197 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
33199 Remove the dependency of the strftime module on the tzset module.
33200 * lib/strftime.c (my_strftime)
33201 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
33202 Copy the input structure, to work around some of the bug with
33203 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
33204 Solaris releases, you should also use the tzset module, but we won't
33205 require it as a dependency any more since we don't want LGPLed code
33206 to depend on GPLed code.
33208 2005-07-02 Jim Meyering <jim@meyering.net>
33210 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
33211 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
33212 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
33213 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
33215 2005-07-02 Jim Meyering <jim@meyering.net>
33217 * lib/backupfile.c (backup_args): Change a `0' to NULL.
33219 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
33221 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
33222 declares only 'struct timespec;' (!).
33224 2005-07-01 Jim Meyering <jim@meyering.net>
33226 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
33227 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
33228 * lib/save-cwd.c, tempname.c:
33229 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
33230 and don't include <sys/file.h>).
33232 2005-06-29 Jim Meyering <jim@meyering.net>
33234 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
33235 type name. Use the variable name instead.
33236 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
33239 2005-06-28 Simon Josefsson <jas@extundo.com>
33241 * modules/check-version (Files): Add check-version.m4.
33243 2005-06-28 Simon Josefsson <jas@extundo.com>
33245 * m4/check-version.m4: New file, suggested by Jim Meyering
33246 <jim@meyering.net>.
33248 2005-06-28 Simon Josefsson <jas@extundo.com>
33250 * lib/check-version.h, lib/check-version.c: New files.
33252 2005-06-28 Simon Josefsson <jas@extundo.com>
33254 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
33255 collision with global variable. Better indentation. Don't
33256 increment buffer pointer beyond buffer end. Based on comments
33257 from Paul Eggert <eggert@cs.ucla.edu>.
33259 * lib/base64.h: Indent.
33261 2005-06-28 Simon Josefsson <jas@extundo.com>
33263 * doc/gnulib.texi (Library version handling): New section.
33265 2005-06-28 Jim Meyering <jim@meyering.net>
33267 * check-module (find_included_lib_files): Hard-code another
33268 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
33269 but modules/fts-lgpl (correctly) does not list those files.
33271 * modules/canonicalize (Files): Add lib/pathmax.h.
33273 2005-06-25 Simon Josefsson <jas@extundo.com>
33275 * modules/check-version: New file.
33277 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
33279 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
33280 initializer of struct addrinfo, as an indication that we don't
33281 care how many members the structure has.
33283 2005-06-24 Derek Price <derek@ximbiot.com>
33284 and Bruno Haible <bruno@clisp.org>
33286 Remove stat module & update lstat.
33287 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
33288 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
33289 * m4/stat.m4: Remove this file.
33291 2005-06-24 Derek Price <derek@ximbiot.com>
33292 and Bruno Haible <bruno@clisp.org>
33294 Remove stat module & update lstat.
33295 * lib/stat.c: Remove this file...
33296 (slash_aware_lstat): ...moving this content and its support...
33297 * lib/lstat.c (rpl_lstat): ...into here.
33298 * lib/lstat.h: New file.
33300 2005-06-24 Derek Price <derek@ximbiot.com>
33301 and Bruno Haible <bruno@clisp.org>
33303 Remove stat module & update lstat.
33304 * config/srclist.txt (libc sources): Remove stat.
33306 2005-06-24 Derek Price <derek@ximbiot.com>
33307 and Bruno Haible <bruno@clisp.org>
33309 Remove stat module & update lstat.
33310 * MODULES.html.sh (stat): Remove.
33311 * MODULES.html: Regenerated.
33312 * modules/lstat (Description): Correct function name.
33313 (Files): Add "lstat.h".
33314 (Depends-on): Remove stat, add xalloc, stat-macros.
33315 * modules/stat: Remove this file.
33316 (Include): Add "lstat.h", remove <sys/stat.h>.
33318 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
33320 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
33321 (ranged_convert): Don't save conversion in a temporary struct.
33322 This causes a warning with GCC 4.0.0, and anyway in the typical
33323 case it's not worth the extra 100 bytes or so of code.
33324 (ranged_convert, __mktime_internal): When calling a function via a
33325 pointer P, use P () rather than (*P) (), as we now assume C89 or
33328 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
33330 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
33331 "who -r" failed to give output. Problem reported by Tim Waugh.
33333 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
33334 (xcalloc): Use it to avoid needless tests.
33335 Problem reported by Jim Meyering.
33337 2005-06-20 Derek Price <derek@ximbiot.com>
33339 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
33340 unnecessary for Autoconfs > 2.59c.
33342 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33344 * lib/argp.h (__option_is_short): Check upper limit of
33345 __key. Isprint() requires its argument to have the value
33346 of an unsigned char or EOF.
33348 2005-06-16 Jim Meyering <jim@meyering.net>
33350 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
33351 when either N or S is zero.
33353 2005-06-16 Derek Price <derek@ximbiot.com>
33355 * m4/bison.m4: Declare YACC & YFLAGS precious.
33357 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
33359 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
33360 multibyte string or pattern, fall back on unibyte matching.
33361 Problem reported by James Youngman.
33363 2005-06-08 Bruno Haible <bruno@clisp.org>
33365 * modules/csharpcomp: New file.
33366 * MODULES.html.sh (C#): Add csharpcomp.
33368 2005-06-08 Bruno Haible <bruno@clisp.org>
33370 * m4/csharpcomp.m4: New file, from GNU gettext.
33372 2005-06-08 Bruno Haible <bruno@clisp.org>
33374 * lib/csharpcomp.h: New file, from GNU gettext.
33375 * lib/csharpcomp.c: New file, from GNU gettext.
33376 * lib/csharpcomp.sh.in: New file, from GNU gettext.
33378 2005-06-08 Bruno Haible <bruno@clisp.org>
33380 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
33383 2005-06-07 Derek Price <derek@ximbiot.com>
33386 * lib/glob_.h: Indent nested #ifdef.
33388 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
33390 Sync from coreutils.
33391 Use "file name" when talking about file names, instead of "filename"
33392 or "path", as per the GNU coding standards.
33393 * lib/mkdir-p.c: Renamed from makepath.c.
33394 (make_dir_parents): Renamed from make_path. All callers changed.
33395 * lib/mkdir-p.h: Likewise. All includers changed.
33396 * lib/filenamecat.c: Renamed from path-concat.c.
33397 (file_name_concat): Renamed from path_concat. All callers changed.
33398 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
33399 * lib/filenamecat.h: Likewise. All includers changed.
33400 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
33401 in comments or local variable names.
33402 * lib/basename.c: Likewise.
33403 * lib/canonicalize.c, canonicalize.h: Likewise.
33404 * lib/dirname.c, dirname.h: Likewise.
33405 * lib/euidaccess.c: Likewise.
33406 * lib/exclude.c: Likewise
33407 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
33408 * lib/fsusage.c, fsuage.h: Likewise.
33409 * lib/fts.c, fts_.h: Likewise.
33410 * lib/getcwd.c: Likewise.
33411 * lib/getloadavg.c: Likewise.
33412 * lib/mkstemp.c: Likewise.
33413 * lib/mountlist.c, mountlist.h: Likewise.
33414 * lib/openat.c, openat.h: Likewise.
33415 * lib/readlink-stub.c: Likewise.
33416 * lib/readutmp.c, readutmp.h: Likewise.
33417 * lib/rename.c: Likewise.
33418 * lib/rmdir.c: Likewise.
33419 * lib/same.c: Likewise.
33420 * lib/savedir.c: Likewise.
33421 * lib/stripslash.c: Likewise.
33422 * lib/tempname.c: Likewise.
33423 * lib/xreadlink.c: Likewise.
33424 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
33426 * lib/exclude.h: Likewise.
33428 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
33429 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
33430 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
33431 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
33432 * lib/pathmax.h: Include <limits.h> unconditionally, since other
33433 files have been getting away with it for years (MORE/BSD 4.3
33435 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
33436 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
33438 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
33439 Define to 256, not 255, as per modern POSIX.
33441 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
33443 Sync from coreutils.
33444 Use "file name" when talking about file names, instead of "filename"
33445 or "path", as per the GNU coding standards.
33446 * MODULES.html.sh: mkdir-p renamed from makepath.
33447 filenamecat renamed from path-concat.
33448 * modules/filenamecat: Renamed from modules/path-concat.
33449 (Files): filenamecat.h and filenamecat.c renamed from
33450 path-concat.h and path-concat.c.
33451 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
33452 (Include): filenamecat.h, not path-concat.h.
33453 * modules/mkdir-p: Renamed from modules/makepath.
33454 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
33456 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
33457 (Include): mkdir-p.h, not makepath.h.
33459 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
33461 Sync from coreutils.
33462 * m4/mkdir-p.m4: Renamed from makepath.m4.
33463 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
33464 Rename files from makepath.c to mkdir-p.c, and from
33465 makepath.h to mkdir-p.h.
33466 * m4/filenamecat.m4: Renamed from path-concat.m4.
33467 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
33468 Rename files from path-concat.c to filenamecat.c,
33469 and from path-concat.h to filenamecat.h.
33470 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
33471 "file name" in local variables or comments.
33472 * m4/rename.m4: Likewise.
33474 2005-06-01 Bruno Haible <bruno@clisp.org>
33476 * modules/csharpexec: New file.
33477 * MODULES.html.sh (C#): New section.
33479 2005-06-01 Bruno Haible <bruno@clisp.org>
33481 * m4/csharp.m4: New file, from GNU gettext.
33482 * m4/csharpexec.m4: New file, from GNU gettext.
33484 2005-06-01 Bruno Haible <bruno@clisp.org>
33486 * lib/csharpexec.h: New file, from GNU gettext.
33487 * lib/csharpexec.c: New file, from GNU gettext.
33488 * lib/csharpexec.sh.in: New file, from GNU gettext.
33490 2005-05-31 Derek Price <derek@ximbiot.com>
33491 Paul Eggert <eggert@cs.ucla.edu>
33494 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
33496 2005-05-31 Derek Price <derek@ximbiot.com>
33497 Paul Eggert <eggert@cs.ucla.edu>
33500 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
33502 2005-05-29 Derek Price <derek@ximbiot.com>
33504 * config/srclist.txt (glob_.h, glob.c): Add these files.
33506 2005-05-29 Derek Price <derek@ximbiot.com>
33508 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
33509 * modules/glob: New file.
33510 * modules/getlogin_r: Add link to POSIX spec in description.
33512 2005-05-29 Derek Price <derek@ximbiot.com>
33513 Paul Eggert <eggert@cs.ucla.edu>
33515 * m4/glob.m4: New file.
33517 2005-05-29 Derek Price <derek@ximbiot.com>
33518 Paul Eggert <eggert@cs.ucla.edu>
33520 * lib/glob_.h, lib/glob.c: New files.
33522 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
33524 * modules/fts (Files): Remove m4/inttypes-pri.m4.
33525 * modules/fts-lgpl (Depends-on): Remove gettext.
33527 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
33529 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
33530 and don't require gt_INTTYPES_PRI.
33532 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
33534 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
33536 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
33537 the configuration hassle isn't worth it.
33538 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
33539 (LONGEST_MODIFIER, PRIuMAX): Remove.
33541 2005-05-27 Bruno Haible <bruno@clisp.org>
33543 * lib/getlogin_r.h: Remove second include of <stddef.h>.
33545 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
33547 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
33548 _POSIX_PTHREAD_SEMANTICS for Solaris.
33550 2005-05-25 Derek Price <derek@ximbiot.com>
33552 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
33554 2005-05-25 Derek Price <derek@ximbiot.com>
33555 Paul Eggert <eggert@cs.ucla.edu>
33557 * modules/getlogin_r, m4/getlogin_r.m4: New files.
33558 * lib/getlogin_r.c, getlogin_r.h: New files.
33560 2005-05-25 Bruno Haible <bruno@clisp.org>
33561 Derek Price <derek@ximbiot.com>
33563 * lib/getlogin_r.h: Simplify API documentation.
33565 2005-05-23 Derek Price <derek@ximbiot.com>
33567 * modules/minmax (Files): Add m4/minmax.m4.
33568 (configure.ac): Add gl_MINMAX.
33570 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
33572 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
33573 so that unistd-safer.h (GPL'ed code) need not be included.
33575 2005-05-22 Bruno Haible <bruno@clisp.org>
33577 * m4/minmax.m4: New file.
33578 Based on a patch by Derek Price <derek@ximbiot.com>.
33580 2005-05-22 Bruno Haible <bruno@clisp.org>
33582 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
33583 (INT64_MIN): Fix definition.
33584 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
33586 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
33587 NEED_SIGNED_INT_TYPES.
33589 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
33590 HAVE_SYSTEM_INTTYPES.
33592 2005-05-22 Bruno Haible <bruno@clisp.org>
33594 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
33595 Also include <sys/param.h> if it defines MIN, MAX.
33596 Based on a patch by Derek Price <derek@ximbiot.com>.
33598 2005-05-21 Jim Meyering <jim@meyering.net>
33600 * modules/fts (Files): Add m4/inttypes-pri.m4.
33601 (Depends-on): Add lstat and remove gettext. Alphabetize.
33603 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
33606 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
33607 (setup_dir, free_dir): New functions.
33608 (enter_dir, leave_dir): Define trivial
33609 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
33610 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
33611 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
33612 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
33613 Move to fts-cycle.c.
33614 (fts_open): Use setup_dir.
33615 (fts_close): Use free_dir.
33616 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
33617 This adds a label and some gotos, but the alternatives were messier.
33618 Check for memory allocation failure when entering a dir.
33619 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
33620 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
33621 (FTS): New member fts_cycle, that is a union that contains the
33622 old active_dir_ht and cycle_state. All uses changed to mention
33623 fts_cycle.ht and fts_cycle.state.
33624 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
33625 fts.c, with the following changes:
33626 (setup_dir, free_dir): New functions.
33627 (enter_dir): Now returns bool. Return true if successful, false
33628 if memory exhausted. All callers changed.
33629 Do not bother partly cleaning up on
33630 memory allocation failure; that is free_dir's job.
33631 However, free ad if hash_insert fails, to avoid memory leak.
33632 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
33633 fts->fts_options to see which union member to use.
33635 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
33637 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
33638 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
33640 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
33642 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
33644 2005-05-20 Jim Meyering <jim@meyering.net>
33646 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
33647 Now a macro, to pacify GCC.
33649 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
33651 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
33654 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
33656 * lib/chown.c (rpl_chown): Return -1 on failure.
33658 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
33660 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
33661 Don't check for stddef.h.
33662 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
33663 don't use its results.
33664 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
33665 since we include them unconditionally. Don't require
33666 AM_STDBOOL_H, since stdbool is a prerequisite.
33667 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
33668 since we assume C89 or better.
33669 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
33670 as we don't use their results.
33671 Don't check for fchdir, memmove, memset, strrchr, as we use
33672 them unconditionally.
33673 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
33674 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
33676 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
33678 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
33679 Include <stddef.h> unconditionally, since we assume C89 now.
33680 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
33681 * lib/fts.c: Include fts_.h first, to check interface.
33682 Do not include intprops.h; no longer needed.
33683 Include cycle-check.h and hash.h, since fts_.h no longer does.
33684 Remove unnecessary casts of closedir to void.
33685 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
33686 decide whether to decrement nlinks.
33687 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
33688 (FTS): Use struct hash_table * instead of Hash_table, so that
33689 we no longer need to include hash.h here.
33691 2005-05-18 Jim Meyering <jim@meyering.net>
33693 * modules/dirfd (License): Change to LGPL. Most of the code
33694 is already in the public domain.
33696 2005-05-18 Jim Meyering <jim@meyering.net>
33698 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
33699 Reported by Yoann Vandoorselaere.
33701 2005-05-17 Jim Meyering <jim@meyering.net>
33703 * m4/fts.m4: New file, from coreutils.
33705 2005-05-17 Jim Meyering <jim@meyering.net>
33707 * lib/fts.c, lib/fts_.h: New files, from coreutils.
33709 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
33711 Sync from coreutils.
33712 * m4/unlinkdir.m4: New file.
33714 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
33716 Sync from coreutils.
33717 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
33718 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
33719 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
33720 White space changes only.
33721 * lib/makepath.c (make_path): Port to hosts where leading "//" is
33723 * lib/yesno.c: Include getline.h, not ctype.h.
33724 (yesno): Don't remove leading white space; POSIX doesn't allow it.
33725 Use getline to remove arbitrary restriction on response length.
33727 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
33729 * config/srclist-update: Spell out "Street" in FSF postal
33730 mail address; this is the style the FSF seems to prefer.
33732 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
33733 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
33734 this updates FSF postal mail address.
33736 Sync from coreutils.
33737 * modules/unlinkdir: New file.
33738 * modules/yesno (Depends-on): Add getline.
33739 * MODULES.html.sh (File system functions): Add unlinkdir.
33741 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
33743 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
33745 Change the initial comment to refer to GPL, not LGPL.
33746 gnulib-tool will change it to LGPL as needed.
33748 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
33749 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
33750 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
33751 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
33752 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
33753 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
33754 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
33755 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
33756 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
33757 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
33758 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
33759 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
33760 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
33761 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
33762 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
33763 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
33764 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
33765 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
33766 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
33767 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
33768 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
33769 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
33770 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
33771 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
33772 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
33773 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
33774 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
33775 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
33776 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
33777 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
33778 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
33779 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
33780 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
33781 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
33782 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
33783 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
33784 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
33785 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
33786 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
33787 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
33788 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
33789 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
33790 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
33791 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
33792 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
33793 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
33794 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
33795 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
33796 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
33797 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
33798 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
33799 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
33800 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
33801 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
33802 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
33803 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
33804 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
33805 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
33806 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
33807 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
33808 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
33809 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
33810 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
33811 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
33812 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
33813 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
33814 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
33815 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
33816 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
33817 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
33818 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
33819 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
33820 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
33821 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
33822 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
33823 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
33824 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
33825 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
33826 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
33827 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
33828 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
33829 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
33830 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
33831 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
33832 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
33833 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
33834 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
33835 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
33836 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
33837 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
33838 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
33839 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
33840 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
33841 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
33842 lib/yesno.c, lib/yesno.h:
33843 Update FSF postal mail address.
33845 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
33847 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
33848 tests/test-memmem.c, tests/test-stpncpy.c:
33849 Update FSF postal mail address.
33851 2005-05-13 Bruno Haible <bruno@clisp.org>
33853 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
33854 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
33855 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
33856 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
33857 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
33858 Add support for 64-bit integers in the MSVC compiler.
33860 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33862 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
33864 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
33866 * gnulib-tool (func_import): Sort and uniquify recommended includes.
33868 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
33870 * doc/getdate.texi (General date syntax): Don't say that date
33871 date --iso-8601=ns generates acceptable dates; it doesn't yet.
33872 Problem reported by Nic Ferrier.
33874 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
33876 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
33877 specified in ai_socktype. Fix invalid ai_protocol
33878 check. ai_protocol is usually set to 0 or depending on
33879 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
33880 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
33881 ai_socktype / ai_protocol in the returned addrinfo structure.
33883 2005-05-10 Simon Josefsson <jas@extundo.com>
33885 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
33886 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33888 2005-05-10 Karl Berry <karl@gnu.org>
33890 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
33891 (from http://www.gnu.org/licenses).
33892 * doc/COPYING.LIB: also rename to COPYING.LESSER.
33893 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
33896 2005-05-10 Karl Berry <karl@gnu.org>
33898 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
33899 (COPYING.DOC): remove.
33901 * config/srclist-update: new FSF address.
33903 2005-05-10 Derek Price <derek@ximbiot.com>
33905 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
33908 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
33909 Bruno Haible <bruno@clisp.org>
33911 * modules/inet_ntop: New file.
33912 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33915 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
33916 Bruno Haible <bruno@clisp.org>
33918 * m4/inet_ntop.m4: New file.
33920 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
33921 Bruno Haible <bruno@clisp.org>
33923 * lib/inet_ntop.h: New file.
33924 * lib/inet_ntop.c: New file, from glibc with modifications.
33926 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
33928 * modules/time_r (License): Change to LGPL.
33929 * modules/extensions (License): Change to LGPL. Actually,
33930 the license is more permissive than that, but currently gnulib-tool
33931 doesn't know how to handle more-permissive licenses.
33933 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
33934 Problem reported by Dave Love.
33936 2005-05-08 Jim Meyering <jim@meyering.net>
33938 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
33941 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
33943 * modules/argmatch (Depends-on): Add stdbool.
33944 * modules/backupfile (Depends-on): Likewise.
33945 * modules/chdir-long (Depends-on): Likewise.
33946 * modules/closeout (Depends-on): Likewise.
33947 * modules/cycle-check (Depends-on): Likewise.
33948 * modules/dirname (Depends-on): Likewise.
33949 * modules/fnmatch (Depends-on): Likewise.
33950 * modules/fsusage (Depends-on): Likewise.
33951 * modules/fwriteerror (Depends-on): Likewise.
33952 * modules/getcwd (Depends-on): Likewise.
33953 * modules/getloadavg (Depends-on): Likewise.
33954 * modules/hard-locale (Depends-on): Likewise.
33955 * modules/makepath (Depends-on): Likewise.
33956 * modules/mountlist (Depends-on): Likewise.
33957 * modules/nanosleep (Depends-on): Likewise.
33958 * modules/posixtm (Depends-on): Likewise.
33959 * modules/quotearg (Depends-on): Likewise.
33960 * modules/readtokens (Depends-on): Likewise.
33961 * modules/readtokens0 (Depends-on): Likewise.
33962 * modules/readutmp (Depends-on): Likewise.
33963 * modules/save-cwd (Depends-on): Likewise.
33964 * modules/strftime (Depends-on): Likewise.
33965 * modules/userspec (Depends-on): Likewise.
33966 * modules/utimecmp (Depends-on): Likewise.
33967 * modules/xgetcwd (Depends-on): Likewise.
33968 * modules/xnanosleep (Depends-on): Likewise.
33969 * modules/xstrtod (Depends-on): Likewise.
33970 * modules/yesno (Depends-on): Likewise.
33972 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
33974 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
33977 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
33979 Merge from coreutils. Among other things,
33980 add bulletproofing for cases where stdin, stdout, or stderr are closed.
33981 * lib/fd-safer.c: New file.
33982 * lib/fcntl-safer.h, open-safer.c: Remove.
33983 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
33984 * lib/dup-safer.c: Include unistd-safer.h first.
33985 Don't include errno.h.
33986 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
33987 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
33988 * lib/file-type.c: Rely on file-type.h change.
33989 * lib/getloadavg.c: Include unistd-safer.h.
33990 (getloadavg): Use safer open.
33991 * lib/getusershell.c: Include "stdio-safer.h".
33992 (getusershell): Use safer fopen.
33993 * lib/long-options.c (long_options): Use NULL rather than 0.
33994 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
33996 * lib/modechange.c: Likewise.
33997 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
33998 (MODE_DONE): New constant.
33999 (struct mode_change): Remove 'next' member.
34000 (make_node_op_equals): New function; like the old one of the
34001 same name, except it allocates an array.
34002 (mode_compile, mode_create_from_ref): Use it.
34003 (mode_compile): Allocate result as an array, not a linked list.
34004 Parse octal string ourself, so that we catch mistakes like "+0".
34005 (mode_adjust): Arg is an array, not a linked list.
34006 * lib/modechange.c: Include stat-macros.h, xalloc.h.
34007 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
34008 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
34009 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
34010 Remove. This is now stat-macros.h's job.
34011 (talloc): Remove. All callers replaced by xalloc, so that
34012 our invokers don't have to worry about reporting memory failures.
34013 (make_node_op_equals): Remove.
34014 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
34016 (struct mode_change): Moved here from modechange.h.
34017 (mode_append_entry): Remove.
34018 (mode_compile): Remove MASKED_OPS arg, since it encouraged
34019 apps to have incorrect behavior. Use simpler algorithm for head
34020 and tail. Don't futz with umask; that's now the job of mode_adjust.
34021 Detect more invalid usages rather than having somewhat-random behavior.
34022 Don't insert an "a=" action, as that leads to incorrect behavior.
34023 (mode_compile, mode_create_from_ref): Return NULL on error instead
34024 of an enum, since now there's only one way to have an error. All
34026 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
34027 at the correct time. Simplify calculation of "+u" and its ilk.
34028 Don't mishandle "+X".
34029 (mode_free): Remove "register" and localize decls.
34030 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
34031 (struct mode_change): Move to modechange.c; callers don't
34032 need to see this stuff.
34033 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
34034 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
34035 (mode_change, mode_adjust): Reflect the new signatures noted above.
34036 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
34037 that might redefine system include files.
34038 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
34039 (my_usleep): Use NULL rather than (void *) 0.
34040 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
34041 Use siginterrupt to specify that system calls should be interrupted.
34042 (rpl_nanosleep): Move initialization of suspended closer to call of
34044 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
34045 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
34046 (desirable_utmp_entry): New function.
34047 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
34048 using x2nrealloc, to simplify logic.
34049 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
34050 size calculation. Do not assume utmp file is a regular file.
34051 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
34052 (READ_UTMP_CHECK_PIDS): New constant.
34053 * lib/save-cwd.c: Include unistd-safer.h.
34054 (save_cwd): Use fd_safer.
34055 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
34056 [!_LIBC] Include "stat-macros.h" instead.
34057 * lib/unistd-safer.h (fd_safer): New decl.
34059 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
34061 * modules/getloadavg (Depends-on): Add unistd-safer.
34062 * modules/getusershell (Depends-on): Add stdio-safer.
34063 * modules/lstat (Depends-on): Remove xalloc.
34064 * modules/mkstemp (Depends-on): Add stat-macros.
34065 * modules/modechange (Depends-on): Remove xstrtol.
34066 Add stat-macros, xalloc.
34067 * modules/save-cwd (Depends-on): Add unistd-safer.
34068 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
34069 * modules/unistd-safer (Files): Add lib/fd-safer.c
34070 (Makefile.am): Remove lib_SOURCES.
34072 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
34073 Remove fcntl-safer; unistd-safer supersedes it.
34075 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
34077 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
34079 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
34080 (gl_PREREQ_CHOWN): Remove.
34081 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
34082 it. Don't require AC_HEADER_STAT.
34083 (gl_PREREQ_LSTAT): Remove.
34084 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
34085 Don't require AC_HEADER_STAT.
34086 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
34087 (gl_PREREQ_RMDIR): Remove.
34088 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
34089 mention stat-macros.h or AC_HEADER_STAT, since we'll make
34090 the stat-macros module a prerequisite.
34091 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
34092 * m4/filemode.m4 (gl_FILEMODE): Likewise.
34093 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
34094 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
34095 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
34097 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
34098 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
34100 * m4/fcntl-safer.m4: Remove.
34101 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
34102 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
34103 Invoke gl_PREREQ_FD_SAFER.
34104 (gl_PREREQ_FD_SAFER): New macro.
34105 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
34106 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
34107 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
34108 Remove duplicate call to AC_LIBOBJ(readutmp).
34109 (gl_PREREQ_READUTMP): Remove. All uses inlined.
34111 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
34112 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
34114 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
34116 * MODULES.html.sh (Misc): Add byteswap.
34118 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
34120 * modules/getcwd (Depends-on): Add extensions.
34121 * modules/openat (Depends-on): Likewise.
34123 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
34125 * modules/byteswap: New file.
34127 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
34129 * m4/byteswap.m4: New file.
34131 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
34133 * lib/byteswap_.h: New file.
34135 2005-04-25 Karl Berry <karl@gnu.org>
34137 * m4/gettext.m4: Update from GNU gettext 0.14.4.
34139 2005-04-25 Albert Chin <china@thewrittenword.com>
34141 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
34144 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
34146 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
34147 (func_ln_if_changed) Remove forcibly for no error message
34148 in case file does not exist.
34150 2005-04-19 Simon Josefsson <jas@extundo.com>
34152 * gnulib-tool (Options): Make --symlink mean --symbolic.
34154 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
34156 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
34158 2005-04-16 Simon Josefsson <jas@extundo.com>
34160 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
34162 2005-04-15 Simon Josefsson <jas@extundo.com>
34164 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
34166 2005-04-15 Simon Josefsson <jas@extundo.com>
34168 * gnulib-tool: Rename --symlink to --symbolic.
34170 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
34172 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
34173 symbolic links to files instead of copying/moving. Add --aux-dir,
34174 specifying directory relative --dir where auxiliary build tools
34177 2005-04-14 Bruno Haible <bruno@clisp.org>
34179 * modules/allocsa (License): Change to LGPL.
34180 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34182 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
34184 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
34185 that "UTC +1 second" continues to work. Problem reported
34186 by Dmitry V. Levin.
34187 (relunit_snumber): New rule.
34190 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
34192 * lib/getdate.y (universal_time_zone_table): New constant.
34193 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
34194 universal_time_zone_table.
34195 (lookup_zone): Prefer universal_time_zone_table to
34196 local_time_zone_table, so that "GMT" time stamps are allowed in
34197 London during the summer. Problem reported by Ian Abbott.
34199 2005-04-12 Jim Meyering <jim@meyering.net>
34201 * lib/human.c (humblock): Set *options even when returning due to
34202 xstrtoumax conversion failure. Thanks to a used-uninitialized
34203 warning from gcc-4.
34205 2005-04-09 Jim Meyering <jim@meyering.net>
34207 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
34208 -Wuninitialized: initialize tm0.tm_year.
34210 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
34212 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
34213 count, since there's no maximum. All uses changed.
34214 Add member dsts_seen.
34215 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
34217 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
34218 Use pc_rels_seen to decide whther a date is absolute.
34220 * lib/getdate.y (number): Don't overwrite year.
34221 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
34224 2005-04-02 Simon Josefsson <jas@extundo.com>
34226 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
34227 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
34229 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
34231 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
34232 where no absolute path name can be longer than PATH_MAX.
34234 2005-03-27 Jim Meyering <jim@meyering.net>
34236 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
34238 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
34240 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
34241 "one's complement" -> "ones' complement" in comment, as per Knuth.
34242 "value of type" -> "type or expression" in comment.
34243 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
34245 2005-03-26 Jim Meyering <jim@meyering.net>
34248 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
34249 Correct typos: s/or/of/.
34251 2005-03-26 Jim Meyering <jim@meyering.net>
34253 * modules/check-include-files: Move to ../ and rename to...
34254 * check-module: ...this.
34256 2005-03-25 Jim Meyering <jim@meyering.net>
34258 * modules/xvasprintf (Files): Add xalloc.h.
34260 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
34262 * modules/gettext (Files): config/config.rpath ->
34263 build-aux/config.rpath
34264 * modules/iconv (Files): Likewise.
34265 Problem reported by Oskar Liljeblad.
34267 2005-03-23 Jim Meyering <jim@meyering.net>
34269 * modules/check-include-files: New script to check for
34270 missing dependencies, multiple includes, etc.
34272 * modules/c-strtold (Depends-on): Add xalloc.
34273 * modules/c-strtod (Depends-on): Add xalloc.
34274 * modules/hash (Depends-on): Add xalloc.
34275 (Files): Remove lib/xalloc.h.
34277 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
34278 * modules/userspec (Files): Add lib/inttostr.h.
34280 2005-03-23 Jim Meyering <jim@meyering.net>
34282 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
34284 2005-03-22 Jim Meyering <jim@meyering.net>
34286 * modules/stat-macros: New module.
34287 * modules/canonicalize, modules/euidaccess, modules/file-type,
34288 * modules/filemode, modules/lchown, modules/makepath,
34289 * modules/rmdir, modules/stat: Depend on new stat-macros module
34290 rather than listing lib/stat-macros.h manually.
34291 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
34293 2005-03-22 Jim Meyering <jim@meyering.net>
34295 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
34297 2005-03-22 Bruno Haible <bruno@clisp.org>
34299 * config/srclist.txt: Replace target directory 'config' with
34301 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
34302 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
34305 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
34307 * modules/chdir-long (Depends-on): Add mempcpy.
34309 * modules/acl, modules/backupfile, modules/c-strtod,
34310 modules/c-strtold, modules/canon-host, modules/canonicalize,
34311 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
34312 modules/exclude, modules/exitfail, modules/file-type,
34313 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
34314 modules/getdate, modules/getline, modules/getpagesize,
34315 modules/getpass, modules/getugroups, modules/group-member,
34316 modules/hard-locale, modules/hash, modules/human, modules/idcache,
34317 modules/inttostr, modules/long-options, modules/makepath,
34318 modules/md5, modules/memcasecmp, modules/memcoll,
34319 modules/modechange, modules/mountlist, modules/path-concat,
34320 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
34321 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
34322 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
34323 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
34324 modules/strftime, modules/strndup, modules/strverscmp,
34325 modules/timespec, modules/unlocked-io, modules/userspec,
34326 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
34328 Remove lib_SOURCES line from Makefile.am section, as this is now
34329 done automatically by the corresponding Autoconf macro.
34331 2005-03-21 Jim Meyering <jim@meyering.net>
34333 Changes imported from coreutils.
34335 * lib/cycle-check.c: Don't include xalloc.h.
34337 * lib/path-concat.c: Don't include assert.h.
34338 (path_concat): Remove assertion that would have triggered
34339 for ABASE starting with more than one slash.
34340 Reported by Andreas Schwab.
34342 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
34343 properly when ABASE is an absolute file name.
34344 Correct the description of this function.
34345 Include <assert.h>.
34346 Add an assertion and a test driver.
34347 This fixes a bug introduced on 2004-07-02.
34348 Andreas Schwab reported the resulting failure of cp --parents:
34349 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
34351 2005-03-21 Jim Meyering <jim@meyering.net>
34353 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
34354 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
34356 2005-03-21 Jim Meyering <jim@meyering.net>
34357 and Paul Eggert <eggert@cs.ucla.edu>
34359 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
34360 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
34361 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
34362 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
34363 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
34364 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
34365 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
34366 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
34367 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
34368 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
34369 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
34370 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
34371 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
34372 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
34373 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
34374 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
34375 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
34378 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
34380 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
34381 (which shouldn't happen), generate nothing instead of returning 0
34382 immediately, so that nstrftime (NULL, ...) doesn't return 0.
34384 2005-03-16 Bruno Haible <bruno@clisp.org>
34386 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
34387 HAVE_LONGLONG_64BIT.
34389 2005-03-16 Bruno Haible <bruno@clisp.org>
34391 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
34392 HAVE_LONGLONG_64BIT.
34394 2005-03-16 Bruno Haible <bruno@clisp.org>
34396 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
34397 HAVE_LONGLONG_64BIT.
34399 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
34401 * lib/strftime.c (my_strftime): Prepend space to format so that we can
34402 reliably distinguish strftime failure from empty output on POSIX
34405 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
34407 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
34408 (iconv_string): Don't guess a size-zero buffer, as that might cause
34409 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
34410 result would be 'too large', where 'too large' is (heuristically)
34411 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
34412 overflow concerns. This will prevent some unwanted malloc failures
34413 when the inputs are very large.
34415 2005-03-15 Karl Berry <karl@gnu.org>
34417 * config/srclist.txt (config.rpath): from gettext.
34418 * config/config.rpath: update.
34420 2005-03-15 Bruno Haible <bruno@clisp.org>
34422 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
34425 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
34428 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
34431 2005-03-14 Simon Josefsson <jas@extundo.com>
34433 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
34436 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
34438 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
34439 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
34441 * lib/strtol.c: Likewise.
34443 2005-03-14 Jim Meyering <jim@meyering.net>
34445 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
34446 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
34447 to be nonzero so that we (and caller) can detect the difference
34448 between a valid zero-length expansion and an error return, even
34449 when the underlying strftime fails before writing anything into
34452 2005-03-14 Bruno Haible <bruno@clisp.org>
34454 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
34455 Update from GNU gettext 0.14.3.
34457 2005-03-10 Jim Meyering <jim@meyering.net>
34459 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
34461 2005-03-10 Jim Meyering <jim@meyering.net>
34463 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
34464 so that this module works on systems without fchdir.
34466 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
34468 Factor int-properties macros into a single file, except for
34469 glibc-related files.
34470 * lib/intprops.h: New file.
34471 * lib/getloadavg.c: Include it instead of limits.h.
34472 (INT_STRLEN_BOUND): Remove.
34473 * lib/human.c: Include intprops.h.
34474 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
34475 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
34477 * lib/inttostr.h: Include intprops.h instead of limits.h.
34478 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
34479 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
34480 for consistency with intprops.h.
34481 (time_t_is_integer, twos_complement_arithmetic): Use them.
34482 * lib/sig2str.h: Include <signal.h>, intprops.h.
34483 (INT_STRLEN_BOUND): Remove.
34484 * lib/strftime.c (TYPE_SIGNED): Remove.
34485 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
34486 * lib/strtol.c: Adjust comments to match intprops.h.
34487 * lib/userspec.c: Include intprops.h.
34488 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
34489 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
34490 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
34491 instead of rolling our own expressions.
34492 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
34494 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
34496 (my_strftime): Do not mishandle years close to INT_MAX, by doing
34497 the right thing even if adding 1900 would overflow. Similarly
34498 for tm_mon + 1 and tm_yday + 1.
34499 Make %Y always equivalent to %C%y, and similarly for %G and %g.
34500 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
34501 (DO_SIGNED_NUMBER): New macro.
34502 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
34504 2005-03-07 Bruno Haible <bruno@clisp.org>
34506 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
34508 2005-03-07 Bruno Haible <bruno@clisp.org>
34510 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
34512 2005-03-04 Derek R. Price <derek@ximbiot.com>
34514 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
34515 (func_import): Only replace files via --import when they have actually
34518 2005-03-03 Derek R. Price <derek@ximbiot.com>
34520 * m4/mmap-anon.m4: New file.
34521 * m4/pagealign_alloc.m4: New file.
34523 2005-03-03 Derek R. Price <derek@ximbiot.com>
34524 Bruno Haible <bruno@clisp.org>
34526 * modules/pagealign_alloc: New file.
34527 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
34529 2005-03-03 Derek R. Price <derek@ximbiot.com>
34530 Bruno Haible <bruno@clisp.org>
34532 * lib/pagealign_alloc.h: New file.
34533 * lib/pagealign_alloc.c: New file.
34535 2005-03-03 Bruno Haible <bruno@clisp.org>
34537 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
34538 Use an all-permissive copyright notice, recommended by RMS.
34540 2005-03-02 Bruno Haible <bruno@clisp.org>
34542 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
34543 of AIX, the replacement has to be done only after <string.h> is
34544 included, therefore not in config.h. stpncpy.h does the replacement,
34545 and stpncpy.c uses it.
34547 2005-03-02 Bruno Haible <bruno@clisp.org>
34549 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
34552 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
34554 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
34555 The workaround isn't strictly needed for POSIX conformance, and
34556 it's too much of a pain to configure and maintain. We'll ask
34557 people to fix their kernels instead.
34558 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
34559 (NANOSLEEP_BUG_WORKAROUND): Remove.
34560 (xnanosleep): Remove the workaround.
34562 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
34564 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
34565 Reported by Derek Price.
34566 (Include): Add "timespec.h".
34568 * modules/xnanosleep (Depends-on): Remove gethrxtime.
34570 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
34572 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
34573 to detect nanosleep bug.
34575 2005-03-01 Bruno Haible <bruno@clisp.org>
34577 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
34579 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
34581 * modules/gethrxtime: New file.
34582 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
34583 (Depends-on): Add gethrxtime.
34584 (configure.ac): Add gl_XNANOSLEEP.
34585 (Makefile.am): Remove lib_SOURCES line.
34587 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
34589 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
34590 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
34592 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
34594 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
34595 * lib/timespec.h (gettime): Return void, since it always
34596 succeeds now. All uses changed.
34597 * lib/gettime.c (gettime) Likewise.
34598 [HAVE_NANOTIME]: Prefer nanotime.
34599 Assume gettimeofday succeeds, as POSIX requires.
34600 Assime time () succeeds, since other code already does.
34601 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
34602 (timespec_subtract): Remove.
34603 (NANOSLEEP_BUG_WORKAROUND): New constant.
34604 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
34605 things considerably. Use it only on GNU/Linux hosts, since the
34606 workaround shouldn't be needed elsewhere.
34608 2005-02-24 Bruno Haible <bruno@clisp.org>
34610 * modules/gettext (Files): Add m4/glibc2.m4.
34612 2005-02-24 Bruno Haible <bruno@clisp.org>
34614 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
34615 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
34617 Update from GNU gettext 0.14.2.
34618 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
34620 2005-02-24 Bruno Haible <bruno@clisp.org>
34622 * lib/localcharset.c: Update from GNU gettext 0.14.2.
34623 * lib/config.charset: Update from GNU gettext 0.14.2.
34625 2005-02-24 Bruno Haible <bruno@clisp.org>
34627 * lib/gettext.h: Update from GNU gettext 0.14.2.
34629 2005-02-23 Simon Josefsson <jas@extundo.com>
34631 * m4/iconvme.m4: New file.
34633 2005-02-23 Jim Meyering <jim@meyering.net>
34635 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
34637 Thanks to Bruno Haible for catching it.
34639 2005-02-22 Simon Josefsson <jas@extundo.com>
34641 * modules/iconvme: New file.
34643 * MODULES.html.sh: Add iconvme.
34645 2005-02-22 Simon Josefsson <jas@extundo.com>
34647 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
34649 2005-02-22 Simon Josefsson <jas@extundo.com>
34651 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
34653 2005-02-22 Jim Meyering <jim@meyering.net>
34655 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
34658 2005-02-20 Neil Conway <neilc@samurai.com>
34660 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
34661 returned by OSX/Darwin if the specified buffer is not large
34662 enough for the hostname.
34664 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
34666 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
34667 pass it to _help, otherwise the latter coredumps trying to
34668 dereference state.root_argp.
34670 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
34672 * modules/chdir-long (Depends-on): Add memrchr.
34673 * modules/memrchr (Files): Add lib/memrchr.h.
34674 (Include): "memrchr.h".
34676 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
34678 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
34680 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
34682 * lib/memrchr.h: New file.
34683 * lib/chdir-long.c: Include it.
34684 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
34685 Don't bother including stddef.h.
34687 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
34689 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
34691 Include <sys/types.h>, for dev_t.
34692 (ME_DUMMY, ME_REMOTE): Move from here....
34693 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
34694 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
34696 Include mountlist.h first, to test the interface.
34698 2005-01-29 Bruno Haible <bruno@clisp.org>
34700 * lib/progname.c (program_name): Initialize.
34701 Needed when linking statically on MacOS X.
34703 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
34705 Sync from coreutils.
34706 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
34707 (Depends-on): Add c-strtod.
34708 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
34710 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
34712 Sync from coreutils.
34713 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
34715 Remove files that are specific to coreutils.
34716 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
34718 2005-01-28 Bruno Haible <bruno@clisp.org>
34720 * modules/javacomp: New file.
34721 * MODULES.html.sh (Java): Add javacomp.
34723 2005-01-28 Bruno Haible <bruno@clisp.org>
34725 * m4/javacomp.m4: New file, from GNU gettext.
34727 2005-01-28 Bruno Haible <bruno@clisp.org>
34729 * lib/javacomp.sh.in: New file, from GNU gettext.
34730 * lib/javacomp.h: New file, from GNU gettext.
34731 * lib/javacomp.c: New file, from GNU gettext.
34733 2005-01-26 Simon Josefsson <jas@extundo.com>
34735 * lib/gai_strerror.c: Use GPL in header.
34737 2005-01-26 Bruno Haible <bruno@clisp.org>
34739 * modules/javaexec: New file.
34740 * MODULES.html.sh (Java): Add javaexec.
34742 2005-01-26 Bruno Haible <bruno@clisp.org>
34744 * m4/javaexec.m4: New file, from GNU gettext.
34746 2005-01-26 Bruno Haible <bruno@clisp.org>
34748 * lib/javaexec.sh.in: New file, from GNU gettext.
34749 * lib/javaexec.h: New file, from GNU gettext.
34750 * lib/javaexec.c: New file, from GNU gettext.
34752 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
34754 * modules/lchown (Depends-on): Remove lchown.h
34756 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
34758 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
34759 must be defined if the header file was not found, in order
34760 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
34762 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
34764 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
34765 initializers for struct pentry_state.
34766 (__argp_error): Check return value of __asprintf
34767 (__argp_failure): Translate error message
34769 * lib/argp-parse.c: Removed braces around the expansion of N_()
34771 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
34773 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
34774 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
34775 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
34776 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
34777 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
34778 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
34779 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
34780 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
34781 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
34782 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
34783 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
34784 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
34785 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
34786 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
34787 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
34788 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
34789 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
34790 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
34791 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
34792 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
34793 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
34794 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
34795 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
34796 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
34797 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
34798 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
34799 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
34800 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
34801 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
34802 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
34803 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
34804 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
34805 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
34806 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
34807 xstrtol.m4, xstrtoumax.m4, yesno.m4:
34808 Use an all-permissive copyright notice, recommended by RMS.
34810 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
34812 * modules/chdir-long (Depends-on): Remove mempcpy.
34814 2005-01-21 Jim Meyering <jim@meyering.net>
34816 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
34817 same value as for Solaris 9.
34819 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
34820 component length. This included changing the parameter to be
34821 of type `char *' rather than `char const *'.
34822 * lib/chdir-long.h (chdir_long): Update prototype.
34824 * lib/openat.c (fdopendir, fstatat): New functions.
34825 * lib/openat.h: Include headers required for use of DIR and struct
34827 [AT_SYMLINK_NOFOLLOW]: Define.
34828 (fdopendir, fstatat): Add prototypes.
34830 2005-01-21 Bruno Haible <bruno@clisp.org>
34832 * modules/classpath: New file.
34833 * MODULES.html.sh (Java): Add classpath.
34835 2005-01-21 Bruno Haible <bruno@clisp.org>
34837 * lib/classpath.h: New file, from GNU gettext.
34838 * lib/classpath.c: New file, from GNU gettext.
34840 2005-01-20 Simon Josefsson <jas@extundo.com>
34842 * modules/version-etc-fsf: New file.
34844 2005-01-20 Simon Josefsson <jas@extundo.com>
34846 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
34847 * lib/version-etc.c: Remove version_etc_copyright.
34848 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
34849 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
34851 2005-01-20 Simon Josefsson <jas@extundo.com>
34853 * lib/base64.h (isbase64): Add.
34855 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
34856 using a unsigned prototype, don't inline.
34857 (base64_decode): Use it.
34859 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
34861 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
34864 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
34866 * lib/save-cwd.c (save_cwd): Remove code to support the case
34867 where fchdir is missing or flaky.
34869 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
34871 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
34873 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
34875 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
34876 AC_LIBSOURCES now does this.
34877 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
34878 with new ullong_max module.
34880 2005-01-19 Bruno Haible <bruno@clisp.org>
34882 * modules/sh-quote: New file.
34883 * MODULES.html.sh (Executing programs): Add sh-quote.
34885 2005-01-19 Bruno Haible <bruno@clisp.org>
34887 * lib/sh-quote.h: New file, from GNU gettext.
34888 * lib/sh-quote.c: New file, from GNU gettext.
34890 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
34892 Merge from coreutils.
34893 * m4/ullong_max.m4: New file.
34894 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
34895 (gl_MACROS): Assume localeconv exists.
34897 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
34899 Merge changes from coreutils, as described below in several
34900 changelogs dated today.
34902 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
34903 (O_DIRECTORY): Remove; not needed here, since "." must be
34904 a directory. All uses removed.
34905 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
34906 universal on Suns, and we also need to test for IRIX.
34907 Revamp code to use 'if' rather than '#if'.
34908 Avoid unnecessary comparison of cwd->desc to 0.
34910 * lib/utimens.c (futimens): Robustify the previous patch, by checking
34911 for known valid error numbers rather than observed invalid ones.
34913 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
34915 * modules/ullong_max: New file.
34917 * modules/chdir-long, modules/openat: New files.
34918 * modules/save-cwd (Depends-on): Depend on chdir-long.
34919 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
34921 2005-01-18 Jim Meyering <jim@meyering.net>
34923 Merge from coreutils.
34924 * m4/chdir-long.m4, m4/openat.m4: New files.
34925 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
34926 save-cwd.h. Add AC_LIBOBJ for save-cwd.
34927 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
34928 is sane and DOES follow symlinks. Besides, testing 20 different
34929 systems found no broken chown implementations.
34930 Prompted by a change in rsync's copy of this macro.
34931 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
34933 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
34935 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
34936 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
34937 NULL-means-set-to-current-time semantics.
34938 Remove temporary file immediately, rather than waiting
34939 for configure's at-exit trap code to do it.
34941 2005-01-18 Jim Meyering <jim@meyering.net>
34943 * lib/version-etc.c (version_etc_copyright): Update copyright date.
34945 * lib/utimens.c (futimens): Account for the fact that futimes
34946 can also fail with errno == ENOSYS or errno == ENOENT.
34947 Patch from Dmitry V. Levin.
34949 Change the name of the robust chdir function from chdir to chdir_long.
34950 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
34951 (restore_cwd): Use chdir_long, not chdir.
34952 * lib/chdir-long.c: Renamed from chdir.c.
34953 * lib/chdir-long.h: Renamed from chdir.h.
34954 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
34957 2005-01-18 Bruno Haible <bruno@clisp.org>
34959 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
34960 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
34961 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
34962 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
34963 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
34964 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
34965 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
34966 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
34967 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
34968 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
34969 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
34970 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
34971 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
34972 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
34973 Use an all-permissive copyright notice, recommended by RMS.
34975 2005-01-18 Bob Proulx <bob@proulx.com>
34977 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
34978 simplify offsetof() macro construct to avoid compile failure with
34979 native HP-UX 11.0 ANSI C compiler.
34981 2005-01-17 Bruno Haible <bruno@clisp.org>
34983 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
34984 redundant because stpncpy.m4 takes care of it.
34986 2005-01-17 Bruno Haible <bruno@clisp.org>
34988 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
34990 2005-01-17 Bruno Haible <bruno@clisp.org>
34992 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
34995 2005-01-17 Bruno Haible <bruno@clisp.org>
34997 * lib/fwriteerror.h (fwriteerror): Change specification to include
34999 * lib/fwriteerror.c: Include <stdbool.h>.
35000 (fwriteerror): At the end, close the file stream. Record whether
35001 stdout was already closed.
35003 2005-01-17 Bruno Haible <bruno@clisp.org>
35005 * lib/execute.c (environ): Declare if needed.
35006 * lib/pipe.c (environ): Likewise.
35007 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
35009 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
35011 * modules/argp: Depend on vsnprintf
35013 2005-01-10 Jim Meyering <jim@meyering.net>
35015 * modules/closeout (Depends-on): Add atexit.
35017 2005-01-06 Bruno Haible <bruno@clisp.org>
35019 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
35021 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
35023 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
35024 definitions to be after all include files, to avoid collisions.
35025 Problem reported by Bob Proulx.
35027 2005-01-04 Jim Meyering <jim@meyering.net>
35029 Changes imported from coreutils.
35030 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
35031 as the mkstemp template, use a temporary directory and an
35032 8.3-friendly template to avoid trouble on systems like DJGPP.
35033 Reported by Juan M. Guerrero via Stepan Kasal.
35034 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
35035 close. Remove the temporary directory right away, rather than waiting
35036 for configure's at-exit trap code to do it.
35037 Suggestion from Stepan Kasal.
35039 2005-01-01 Simon Josefsson <jas@extundo.com>
35041 * gnulib-tool: Print #include directives when --import'ing.
35043 2004-12-28 Simon Josefsson <jas@extundo.com>
35045 * tests/test-base64.c: Include required header files. Remove
35048 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
35050 * modules/error (Depends-on): Remove gettext.
35052 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
35054 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
35055 not needed. This removes a dependency on the gettext module.
35056 [defined _LIBC]: Do not include <libintl.h>; not needed.
35058 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
35060 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
35061 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
35063 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
35065 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
35068 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
35070 * modules/getdate (Depends-on): Remove alloca-opt.
35072 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
35074 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
35076 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
35078 * lib/argp-parse.c: Include <stddef.h>.
35079 (alignof, alignto): New macros.
35080 (parser_init): Don't assume that void * is aligned sufficiently
35083 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
35084 need to extend the stack.
35085 (YYINITDEPTH): New macro, so that the initial stack isn't overly
35088 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
35090 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
35092 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
35094 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
35095 (2004-10-24) change. Apparently this was a false alarm.
35097 * modules/getdate: Depend on alloca-opt, not alloca.
35099 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
35101 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
35102 Remove now-obsolete comment about AIX.
35103 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
35104 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
35105 (YYMAXDEPTH): New macro.
35107 2004-12-18 Simon Josefsson <jas@extundo.com>
35109 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
35111 2004-12-18 Bruno Haible <bruno@clisp.org>
35113 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
35115 2004-12-18 Bruno Haible <bruno@clisp.org>
35117 * lib/fatal-signal.c (fatal_signals): Make non-const.
35118 (init_fatal_signals): New function.
35119 (uninstall_handlers, install_handlers): Ignore signals that were set to
35121 (at_fatal_signal): Call init_fatal_signals.
35122 (init_fatal_signal_set): Likewise. Ignore signals that were set to
35124 Reported by Paul Eggert.
35126 2004-12-18 Bruno Haible <bruno@clisp.org>
35128 * doc/alloca.texi: New file.
35129 * doc/alloca-opt.texi: New file.
35131 2004-12-17 Jim Meyering <jim@meyering.net>
35133 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
35134 Otherwise, install-sh could exit with improper exit status when
35135 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
35137 2004-12-16 Simon Josefsson <jas@extundo.com>
35139 * tests/test-base64.c: Add license.
35141 2004-12-15 Stepan Kasal <address@hidden>
35143 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
35145 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
35147 * modules/getcwd (Files): Add m4/d-ino.m4.
35148 Suggested by Mark D. Baushke.
35150 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
35152 * lib/getdate.y (textint): New member "negative".
35153 (time_zone_hhmm): New function.
35154 Expect 14 shift-reduce conflicts, not 13.
35155 (o_colon_minutes): New rule.
35156 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
35157 (yylex): Set the "negative" member of signed numbers.
35159 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
35161 * doc/getdate.texi (Time of day items, Time zone items):
35162 Describe new formats +00:00, UTC+00:00.
35164 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
35166 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
35167 spurious "-l"s. Problem reported by Stepan Kasal.
35169 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
35171 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
35172 in Autoconf 2.59. Problem reported by Mark D. Baushke.
35174 2004-12-04 Simon Josefsson <jas@extundo.com>
35176 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
35177 Vandoorselaere <yoann@prelude-ids.org>.
35179 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
35181 Changes imported from coreutils.
35182 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
35184 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
35186 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
35188 Changes imported from coreutils.
35189 * lib/hard-locale.c: Assume <locale.h> exists.
35190 Include "strdup.h".
35191 (GLIBC_VERSION): New macro.
35192 (hard_locale): Assume setlocale exists.
35193 Rewrite to avoid #ifdef.
35194 Use strdup rather than malloc + strcpy.
35195 * lib/human.c: Assume <locale.h> exists.
35196 (human_readable): Assume localeconv exists.
35198 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
35200 * modules/hard-locale (Depends-on): Add strdup.
35202 2004-12-01 Jakub Jelinek <jakub@redhat.com>
35204 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
35205 convert T2, not T. (Imported from libc.)
35207 2004-11-30 Simon Josefsson <jas@extundo.com>
35209 * modules/restrict (License): Change to LGPL.
35211 2004-11-30 Simon Josefsson <jas@extundo.com>
35213 * m4/restrict.m4: Add copyright and copying conditions.
35215 2004-11-30 Simon Josefsson <jas@extundo.com>
35217 * m4/base64.m4: New file.
35219 2004-11-30 Simon Josefsson <jas@extundo.com>
35221 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
35224 * tests/test-base64.c: New file.
35226 * modules/base64: New file.
35228 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
35230 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
35231 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
35233 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
35235 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
35237 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
35238 (__getcwd.c): Don't restore errno; glibc doesn't.
35239 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
35240 first, falling back to our code only if its results look suspicious.
35241 Ensure that the resulting buffer is only as large as necessary.
35243 * lib/readutmp.c: Include readutmp.h first.
35244 Include <errno.h>, since readutmp.h no longer does that.
35245 * lib/readutmp.h: Don't include <errno.h>,
35246 <sys/param.h>, <time.h>; not needed to establish interface.
35247 (errno): Remove decl.
35248 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
35249 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
35250 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
35252 2004-11-28 Simon Josefsson <jas@extundo.com>
35254 * lib/base64.h, base64.c: New file.
35256 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
35258 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
35260 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
35262 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
35263 (Depends-on): Remove pathmax, same. Add mempcpy.
35264 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
35265 (Makefile.am): Append getcwd.h to lib_SOURCES.
35266 (Include): Add getcwd.h.
35267 (Maintainer): Change from Jim Meyering to "all, glibc",
35268 since getdate now uses intended-for-glibc code.
35269 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
35270 (Depends-on): Depend on getcwd. Do not depend on pathmax.
35272 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
35274 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
35275 HP's ANSI C compiler.
35276 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
35277 Declaring int functions causes warnings on some modern systems and
35278 shouldn't be needed to compile on ancient ones.
35279 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
35282 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
35283 with the following changes.
35284 (__set_errno): Parenthesize properly.
35285 Include <stdbool.h>.
35286 (MIN, MAX, MATCHING_INO): New macros.
35287 (__getcwd): Define with prototype, not K&R form.
35288 Use heuristics to allocate default buffer on stack if possible.
35289 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
35290 behavior, and to avoid the PATH_MAX limit when computing
35292 Use MATCHING_INO to compare inode number to file.
35293 Check for arithmetic overflow in size calculations.
35294 Fix bug in reallocation of dot array that caused getcwd to fail
35295 on directories nested deeper than 75.
35296 Be more careful about saving errno on error.
35297 Do not use realloc; use only free+malloc, as this is a bit
35298 more flexible and avoids a needless copy operation.
35299 Do not inspect st_dev and st_ino for symbolic links; POSIX
35300 doesn't specify the latter.
35301 Check for closedir errors.
35302 Avoid needless casts.
35303 Use "#ifdef weak_alias" around weak_alias, to be like other
35305 The following changes to getcwd.c have effect only when used in
35306 gnulib; they have no effect inside glibc proper.
35307 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
35308 as alloca isn't used.
35309 (alloca, __alloca): Likewise.
35310 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
35311 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
35312 unconditionally, as gnulib assumes C89 or better.
35313 Do not include <sys/param.h>.
35314 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
35315 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
35317 (NULL) [!defined NULL]: Remove; we assume C89 or better.
35318 Include <dirent.h> in a way that is compatible with modern Autoconf.
35319 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
35320 New macros, if not already defined.
35321 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
35322 Use "_LIBC", not "defined _LIBC", for consistency.
35323 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
35325 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
35326 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
35327 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
35328 credit only to Jim Meyering and adjust the copyright dates.
35329 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
35330 <stdlib.h>, <unistd.h>, "pathmax.h".
35331 Instead, include "xgetcwd.h" (first) and "getcwd.h".
35332 (INITIAL_BUFFER_SIZE): Remove.
35333 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
35335 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
35337 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
35338 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
35339 Use the _ONCE methods, for efficiency.
35340 Check for fcntl.h. In test program, include <errno.h>
35341 and <fcntl.h> if available. Remove old K&R cruft from
35342 test program. Check for common errors in GNU/Linux,
35343 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
35344 don't do AC_LIBOBJ, as that's getcwd.m4's job.
35345 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
35346 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
35348 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
35349 accommodate new getcwd.c.
35350 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
35351 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
35352 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
35353 that's all we need now.
35355 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
35357 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
35358 argp-parse.c depends on getopt internals, that means we should
35359 always use our getopt, to be on the safe side.
35360 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
35361 order not to spoil the result of an eventual previous invocation
35362 of gl_GETOPT_SUBSTITUTE.
35364 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
35366 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
35367 redefinition warnings. To avoid them, include the defines
35368 in `#if !defined __need_getopt ... #endif'. The only place
35369 where __getopt_argv_const is used is in definitions
35370 of getopt_long and getopt_long_only below, which are as well
35371 protected by `#ifndef __need_getopt'.
35372 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
35373 __need_getopt after including <stdio.h> and <unistd.h> These
35374 headers might have defined it.
35376 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
35378 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
35380 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
35382 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
35383 (futimens): New function, which uses futimes if available.
35384 (futimens, utimens): Support timespec==NULL, with same semantics
35385 as utime and utimens.
35386 * lib/utimens.h (futimens): New decl.
35388 2004-11-23 Jim Meyering <jim@meyering.net>
35390 * lib/getopt_.h: Remove trailing blanks.
35392 2004-11-23 Jim Meyering <jim@meyering.net>
35394 * lib/__fpending.c: Add comment.
35396 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
35398 * modules/canonicalize (Depends-on): Add xreadlink.
35399 Problem reported by James Youngman.
35401 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
35403 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
35405 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
35406 optopt): Use them instead of invoking ## directly; otherwise, the
35407 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
35409 2004-11-19 Bruno Haible <bruno@clisp.org>
35411 * lib/strtok_r.c: Move comments from here...
35412 * lib/strtok_r.h: ... to here.
35414 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
35416 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
35417 implementations that mishandle size_t overflow.
35419 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
35421 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
35422 might fail. Problem reported by Yoann Vandoorselaere.
35423 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
35424 implementations that mishandle size_t overflow.
35426 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
35428 * modules/canon-host (Depends-on): Add strdup.
35430 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
35432 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
35434 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
35436 * lib/canon-host.c: Include "strdup.h".
35437 (canon_host): Use getaddrinfo if available, so that IPv6 works.
35438 Use strdup instead of malloc/strcpy to duplicate strings.
35440 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
35441 (human_space_before_unit): New constant.
35442 * lib/human.c (human_readable): Support it.
35444 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
35445 (xgetcwd): Set errno correctly when failing.
35446 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
35447 the failure is actually due to a PATH_MAX problem.
35449 Further getopt changes to make it more likely that glibc will
35450 buy the changes back.
35451 * lib/getopt.c (POSIXLY_CORRECT): New constant.
35452 (getopt): Use it, so to preserve glibc semantic
35453 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
35454 when compiling for libc.
35455 * lib/getopt_.h (__getopt_argv_const): Bring it back.
35456 (getopt_long, getopt_long_only): Use it.
35458 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
35459 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
35460 (getopt): Argv is now char * const *, as per standard.
35461 (_getopt_internal_r, _getopt_internal): Argv is now char **,
35462 not char *__getopt_argv_const *.
35463 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
35464 _getopt_long_only_r): Likewise.
35465 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
35466 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
35467 _getopt_long_r, _getopt_long_only_r): Likewise.
35468 * lib/getopt_.h (__getopt_argv_const): Remove.
35469 (getopt): Argv is now char * const *, as per standard.
35471 * lib/getdate.y (tORDINAL): New token.
35472 (day, relunit): Allow it for relative times.
35473 (relative_time_table): Use tORDINAL for ordinals.
35475 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
35477 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
35478 Document that "second" isn't allowed as an ordinal number.
35480 2004-11-16 Jim Meyering <jim@meyering.net>
35482 * modules/closeout (Depends-on): Add fpending.
35484 2004-11-15 Jim Meyering <jim@meyering.net>
35486 * lib/closeout.c: Include "__fpending.h" once again.
35487 Include <stdbool.h>.
35488 (close_stdout): Don't fail just because stdout was closed initially,
35489 since some programs don't write to stdout in the normal course of
35490 operation (other than --version and --help), and we don't want this
35491 function to make e.g. `touch file >&-' fail.
35492 But do fail if it was closed and someone has tried to write to it.
35493 E.g., `printf foo >&-' must fail.
35495 2004-11-13 Jim Meyering <jim@meyering.net>
35497 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
35499 2004-11-12 Simon Josefsson <jas@extundo.com>
35501 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
35502 small doc fix is still pending.
35504 2004-11-11 Simon Josefsson <jas@extundo.com>
35506 * modules/strtok_r: New file.
35508 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35511 2004-11-11 Simon Josefsson <jas@extundo.com>
35513 * m4/strtok_r.m4: New file.
35515 * m4/getopt.m4: Replace opterr.
35517 2004-11-11 Simon Josefsson <jas@extundo.com>
35519 * lib/strtok_r.h, strtok_r.c: New file.
35521 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
35523 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
35524 of replacing opterr, getopt, etc. This should handle the
35525 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
35527 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
35529 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
35530 we can stop lying to compilers about the constness of argv when we
35531 are compiled outside glibc.
35532 (getopt, getopt_long, getopt_long_only): Use it.
35533 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
35534 _getopt_internal, getopt): Likewise.
35535 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
35536 _getopt_long_only_r): Likewise.
35537 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
35538 _getopt_long_r, _getopt_long_only_r): Likewise.
35540 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
35541 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
35542 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
35543 the other external symbols.
35544 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
35545 declaration, since the above renaming now works around collisions.
35547 2004-11-11 Jim Meyering <jim@meyering.net>
35549 * lib/linebreak.c: Remove trailing blanks.
35550 * lib/alloca_.h: Likewise.
35551 * lib/acosl.c: Likewise.
35552 * lib/euidaccess.c: Likewise.
35553 * lib/allocsa.h: Likewise.
35555 2004-11-10 Simon Josefsson <jas@extundo.com>
35557 * m4/getaddrinfo.m4: New file.
35559 2004-11-10 Simon Josefsson <jas@extundo.com>
35561 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
35563 2004-11-10 Simon Josefsson <jas@extundo.com>
35565 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35568 * modules/getaddrinfo: New file.
35570 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
35572 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
35574 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
35576 * lib/mktime.c (SHR): New macro, which is a portable
35577 substitute for >> that should work even on Crays.
35578 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
35579 Problem reported by Mark D. Baushke in
35580 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
35581 * lib/getdate.y (SHR): Likewise.
35583 * lib/strftime.c (SHR): Likewise.
35585 * lib/quotearg.c (struct quoting_options): Use unsigned int for
35586 quote_these_too, so that right shifts are well defined. All uses
35589 2004-11-10 Jim Meyering <jim@meyering.net>
35591 Ensure that no close failure goes unreported.
35592 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
35593 return early when it seems there's nothing to flush.
35594 Don't include __fpending.h.
35596 2004-11-10 Jim Meyering <jim@meyering.net>
35598 * modules/closeout (Depends-on): Remove fpending.
35600 2004-11-10 Jim Meyering <jim@meyering.net>
35602 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
35604 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
35606 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
35608 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
35609 and AC_REQUIRE when possible, to avoid duplicate checks.
35610 Check for <wchar.h>.
35612 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
35614 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
35616 2004-11-09 Bruno Haible <bruno@clisp.org>
35618 * m4/sockpfaf.m4: New file.
35620 2004-11-05 Bruno Haible <bruno@clisp.org>
35622 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
35623 Reported by Mark D. Baushke <mdb@cvshome.org>.
35625 2004-11-04 Bruno Haible <bruno@clisp.org>
35627 2004-09-11 Bruno Haible <bruno@clisp.org>
35628 * allocsa.valgrind: New file.
35629 2004-02-06 Bruno Haible <bruno@clisp.org>
35630 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
35631 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
35632 Reported by Christopher Seip <chris.seip@hp.com>.
35634 2004-11-04 Bruno Haible <bruno@clisp.org>
35636 * modules/allocsa (Files): Add lib/allocsa.valgrind.
35637 (Makefile.am): Distribute it.
35639 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
35641 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
35642 with errno == ERANGE if the buffer is too small.
35643 Problem reported by Mark D. Baushke.
35645 2004-11-03 Albert Chin <china@thewrittenword.com>
35646 Paul Eggert <eggert@cs.ucla.edu>
35648 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
35649 equivalent, substitute $ac_type for equivalent type rather than
35650 blindly using uint32_t *always* which won't work if uint32_t is not
35651 available. Define _UINT32_T to work around typedef of uint32_t if
35652 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
35655 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
35657 * m4/jm-macros.m4: Sync from coreutils.
35658 (gl_MACROS): Check for mbrlen, for pathchk.
35659 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
35661 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
35663 * lib/xreadlink.c (MAXSIZE): New macro.
35664 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
35665 size does not exceed MAXSIZE. Avoid cast.
35666 As suggested by Mark D. Baushke in
35667 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
35668 if readlink fails with buffer size just under MAXSIZE, try again
35671 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
35673 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
35675 2004-11-02 Derek R. Price <derek@ximbiot.com>
35676 and Paul Eggert <eggert@cs.ucla.edu>
35678 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
35679 (get_date): Overparenthesize to avoid GCC warning.
35681 2004-11-02 Bruno Haible <bruno@clisp.org>
35683 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
35686 2004-11-02 Bruno Haible <bruno@clisp.org>
35688 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
35689 function returns void.
35691 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
35693 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
35694 fflush_unlocked, flockfile, funlockfile, funlockfile,
35695 fputs_unlocked, putc_unlocked.
35697 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
35699 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
35700 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
35703 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
35705 * modules/getdate (Files): Add doc/getdate.texi.
35706 (Depends-on): Add setenv, xalloc.
35708 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
35710 * lib/getdate.y: Add support for TZ="foo" within a date string.
35711 Fix some bugs near time_t boundaries. Reject dates with
35712 out-of-range components, e.g., "Sept 31".
35713 Include <stdlib.h>, "setenv.h", "xalloc.h".
35714 (ISDIGIT_LOCALE): Remove; unused.
35715 Note that the TZ and time functions used here are not reentrant.
35716 (mktime_ok, get_tz): New functions.
35717 (TZBUFSIZE): New constant.
35718 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
35719 This requires that we sometimes generate our own TZ="XXX..." setting.
35721 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
35723 * doc/getdate.texi: New file, from coreutils with modifications for
35724 the new TZ parsing.
35726 2004-10-27 Derek R. Price <derek@ximbiot.com>
35728 * lib/mktime.c (not_equal_tm): Remove redundant check.
35730 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
35732 * modules/regex (lib_SOURCES): Add regex.c.
35733 Reported by James Youngman in
35734 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
35736 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
35738 * lib/getdate.y: Use Bison 1.875 features, and some minor
35739 code cleanups. This change does not affect semantics.
35740 Don't include <stdlib.h>; no longer needed.
35741 Don't include unlocked-io.h; only the "#if TEST" code uses
35742 stdio, and performance isn't crucial there.
35743 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
35744 Bison 1.875 features as described below.
35745 All uses of "PC." replaced by "pc->".
35746 (YYSTYPE): Add a forward declaration.
35747 (yylex, yyerror): Use full prototypes in forward decls.
35748 Use "%pure-parser" rather than obsolescent "%pure_parser".
35749 Use %parse-param and %lex-param instead of obsolescent
35750 YYPARSE_PARAM and YYLEX_PARAM.
35751 (meridian_table, month_and_day_table, time_units_table,
35752 relative_time_table, time_zone_table, military_table,
35753 lookup_zone, lookup_word, get_date):
35754 Use NULL instead of 0 where appropriate.
35755 (to_hour): Avoid abort (), to avoid a dependency on
35757 (yyerror, yylex): Now accepts parser_control * arg.
35758 (main) [TEST]: Use '\0' rather than 0 for char.
35760 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
35762 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
35764 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
35766 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
35767 It's now the caller's responsibility to handle the case where
35768 !HAVE_GETPAGESIZE && !defined getpagesize.
35770 * lib/mktime.c (leapyear): Arg is long int, not int.
35772 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
35774 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
35776 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
35778 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
35779 missing. Problem reported by James Youngman.
35781 2004-10-16 Simon Josefsson <jas@extundo.com>
35783 * gnulib-tool: Fix comments. Fix parse problem.
35784 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
35786 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
35788 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
35789 implementation of getopt_long. Problem reported by Alexander Taler in:
35790 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
35792 2004-10-15 Bruno Haible <bruno@clisp.org>
35794 * gnulib-tool: Untabify. Initialize supplied_libname.
35795 (func_usage): More homogenous output.
35796 (func_modules_transitive_closure, func_modules_to_filelist,
35797 func_emit_lib_Makefile_am): New functions.
35798 (func_import): New function, extracted from big case statement. Use
35799 func_get_license, func_modules_transitive_closure,
35800 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
35801 opt_lgpl. Don't use test -a, as it's not portable.
35802 (func_create_testdir): Use func_modules_transitive_closure,
35803 func_modules_to_filelist, func_emit_lib_Makefile_am.
35805 2004-10-15 Bruno Haible <bruno@clisp.org>
35807 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
35809 2004-10-15 Bruno Haible <bruno@clisp.org>
35811 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
35812 the portions belonging to each module.
35813 Suggested by Derek Robert Price <derek@ximbiot.com>.
35815 2004-10-12 Simon Josefsson <jas@extundo.com>
35817 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
35818 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
35821 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
35823 * modules/vsnprintf: New file.
35825 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
35827 * m4/vsnprintf.m4: New file.
35829 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
35831 * lib/vsnprintf.h: New file.
35832 * lib/vsnprintf.c: New file.
35834 2004-10-11 Bruno Haible <bruno@clisp.org>
35836 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
35839 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
35841 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
35843 2004-10-07 Bruno Haible <bruno@clisp.org>
35845 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
35846 fits into the provided buffer.
35848 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
35850 * lib/diacrit.c, diacrit.h: Add GPL notice.
35852 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
35854 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
35855 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
35856 This avoids a potential constant-folding bug.
35858 2004-10-05 Bruno Haible <bruno@clisp.org>
35860 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
35861 for the declaration of strsep.
35863 2004-10-05 Bruno Haible <bruno@clisp.org>
35865 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
35867 2004-10-04 Simon Josefsson <jas@extundo.com>
35869 * modules/memmem: New file.
35870 * tests/test-memmem.c: New file.
35871 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
35873 2004-10-04 Simon Josefsson <jas@extundo.com>
35875 * m4/memmem.m4: New file.
35877 2004-10-04 Simon Josefsson <jas@extundo.com>
35879 * lib/memmem.h: New file.
35880 * lib/memmem.c: New file, taken from glibc.
35882 2004-10-04 Simon Josefsson <jas@extundo.com>
35884 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
35885 '#ifdef USE_UNLOCKED_IO'.
35887 2004-10-04 Simon Josefsson <jas@extundo.com>
35889 * config/srclist.txt: Add memmem from glibc.
35891 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
35893 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
35895 * modules/argmatch, modules/argp, modules/closeout, modules/error,
35896 modules/exclude, modules/getdate, modules/getline,
35897 modules/getndelim2, modules/getpass, modules/getpass-gnu,
35898 modules/getusershell, modules/linebuffer, modules/md5,
35899 modules/mountlist, modules/posixtm, modules/readtokens,
35900 modules/readutmp, modules/regex, modules/sha1,
35901 modules/version-etc, modules/yesno:
35902 Remove dependency on unlocked-io.
35904 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
35906 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
35908 * m4/unlocked-io.m4: Add copyright notice.
35909 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
35911 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
35913 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
35914 * lib/xmalloc.c (xmemdup): Likewise.
35915 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
35916 XFREE): Remove these long-obsolescent macros.
35917 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
35918 * lib/xstrdup.c: Remove.
35920 * lib/regex.c (re_comp): Cast gettext return value to char *,
35921 Problem reported by Martin Neitzel via Mark D. Baushke.
35923 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
35925 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
35926 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
35927 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
35928 regex.c, sha1.c, version-etc.c, yesno.c:
35929 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
35930 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
35931 the includer's responsibility.
35933 Sync from coreutils.
35935 * lib/modechange.c (mode_compile): Don't decrement a pointer that
35936 points to the start of a string, as the C Standard says the
35937 resulting behavior is undefined.
35939 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
35940 simple -> simple_backups, numbered_existing ->
35941 numbered_existing_backups, numbered -> numbered_backups
35942 to avoid shadowing problems. All uses changed.
35943 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
35944 * lib/backupfile.c (check_extension, numbered_backup):
35945 Rename locals to avoid shadowing 'basename'.
35946 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
35949 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
35950 * lib/.cvsignore: Add getopt.h.
35952 2004-10-04 Bruno Haible <bruno@clisp.org>
35954 * modules/README: New file.
35955 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
35958 2004-10-02 Jim Meyering <jim@meyering.net>
35960 * lib/dirfd.h, getpagesize.h: Add copyright notice.
35962 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
35964 * modules/strsep: New file.
35966 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
35968 * m4/strsep.m4: New file.
35970 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
35972 * lib/strsep.h: New file.
35973 * lib/strsep.c: New file.
35975 2004-10-01 Simon Josefsson <jas@extundo.com>
35977 * lib/snprintf.c (snprintf): Handle size==0.
35979 2004-10-01 Simon Josefsson <jas@extundo.com>
35980 Bruno Haible <bruno@clisp.org>
35982 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
35983 (snprintf): Declare 'args'.
35985 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
35987 * lib/snprintf.c: Remove comments as to why each header is needed.
35989 2004-10-01 Bruno Haible <bruno@clisp.org>
35991 * MODULES.html.sh: Add strsep.
35993 2004-09-30 Simon Josefsson <jas@extundo.com>
35995 * modules/snprintf: New file.
35997 2004-09-30 Simon Josefsson <jas@extundo.com>
35999 * m4/snprintf.m4: New file.
36001 2004-09-30 Simon Josefsson <jas@extundo.com>
36003 * lib/snprintf.h, lib/snprintf.c: New files.
36005 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
36007 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
36008 (hol_entry_help): Never translate an empty string.
36009 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
36010 * lib/argp.h (OPTION_NO_TRANS): New option.
36012 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
36014 * modules/argp (Maintainer): Replace Simon Josefsson
36015 by Sergey Poznyakoff.
36017 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
36019 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
36020 changes merged back into glibc.
36022 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
36024 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
36026 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
36028 * lib/xvasprintf.c: Include xalloc.h.
36029 (xvasprintf): Use xalloc_die, not xmalloc_die.
36031 2004-09-29 Bruno Haible <bruno@clisp.org>
36033 * modules/alloca-opt: New file, derived from modules/alloca.
36034 * modules/allocsa: Depend on alloca-opt instead of alloca.
36035 * modules/setenv: Likewise.
36036 * modules/vasnprintf: Likewise.
36037 * MODULES.html.sh: Add alloca-opt.
36039 2004-09-28 Simon Josefsson <jas@extundo.com>
36041 * gnulib-tool: New parameter --lgpl, to asseert that modules are
36042 LGPL, and to replace license template from GPL to LGPL.
36044 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
36046 * modules/dummy: Change license to LGPL.
36048 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
36050 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
36052 2004-09-24 Simon Josefsson <jas@extundo.com>
36054 * modules/minmax (License): Change from GPL to LGPL.
36056 2004-09-23 Simon Josefsson <jas@extundo.com>
36058 * gnulib-tool (--import): Typo.
36060 2004-09-23 Simon Josefsson <jas@extundo.com>
36062 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
36064 2004-09-22 Bruno Haible <bruno@clisp.org>
36066 * modules/*: Add 'License' field.
36067 * gnulib-tool: Accept --extract-license option.
36068 (func_get_license): New function.
36070 2004-09-21 Bruno Haible <bruno@clisp.org>
36072 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
36073 Reported by Simon Josefsson.
36075 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
36077 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
36078 gl_AC_TYPE_LONG_LONG.
36080 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
36082 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
36084 2004-09-18 Simon Josefsson <jas@extundo.com>
36085 and Paul Eggert <eggert@cs.ucla.edu>
36087 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
36088 calls with autoreconf. Define GL_LIB.
36090 2004-09-14 Karl Berry <karl@gnu.org>
36092 * config/srclist.txt: unsync setenv.c, sigh.
36094 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
36096 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
36097 Problem reported by Bruno Haible in:
36098 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
36100 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
36102 * config/srclist.txt: Comment out argp-pvh.c.
36104 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
36106 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
36107 in case some system header has #define'd it. Problem reported by
36108 Soeren D. Schulze in
36109 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
36111 2004-09-09 Karl Berry <karl@gnu.org>
36113 * regex.[ch]: delete from the root. These were supposed to be
36114 synced with emacs cvs, but this has not happened for about
36115 a year, and anyway nothing else uses emacs regex.[ch].
36116 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
36117 lib/regex[.ch] is untouched.
36119 2004-09-09 Bruno Haible <bruno@clisp.org>
36121 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
36123 2004-09-09 Bruno Haible <bruno@clisp.org>
36125 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
36127 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
36129 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
36131 * modules/xvasprintf: New file.
36132 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
36134 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
36136 * lib/xvasprintf.h: New file.
36137 * lib/xvasprintf.c: New file.
36138 * lib/xasprintf.c: New file.
36140 2004-09-08 Bruno Haible <bruno@clisp.org>
36142 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
36144 2004-09-08 Bruno Haible <bruno@clisp.org>
36146 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
36147 length is > INT_MAX.
36148 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
36151 2004-09-08 Bruno Haible <bruno@clisp.org>
36153 * lib/stdint_.h: New file, taken from GNU clisp.
36155 2004-09-08 Bruno Haible <bruno@clisp.org>
36156 Oskar Liljeblad <oskar@osk.mine.nu>
36158 * modules/stdint: New file.
36159 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
36161 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
36163 Import from coreutils.
36164 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
36165 strings on unbounded length. alloca's performance benefits aren't
36166 that important here.
36167 (V_STRDUP): Remove.
36168 (parse_with_separator): New function, with most of the internals
36169 of the old parse_user_spec. Allow user to omit both user and group,
36170 for compatibility with FreeBSD.
36171 Clone only the user name, not the entire spec.
36172 Do not set *uid, *gid unless entirely successful.
36173 Avoid memory leak in some failing cases.
36174 Fix regression for USER.GROUP reported by Dmitry V. Levin in
36175 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
36176 (parse_user_spec): Rewrite to use parse_with_separator.
36178 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
36180 * modules/userspec: Don't depend on alloca.
36182 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
36184 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
36186 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
36188 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
36189 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
36190 utimecmp, utimens, xnanosleep. Rename sha to sha1.
36192 2004-08-16 Simon Josefsson <jas@extundo.com>
36194 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
36195 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
36196 Add --dry-run for --import.
36197 Let user provided command line parameters override configure.ac
36200 2004-08-12 Simon Josefsson <jas@extundo.com>
36202 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
36203 as discussed with Paul Eggert in threads rooted at
36204 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
36206 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
36207 Before, the test was empty, and relied on ELIDE_CODE in source
36209 (gl_PREREQ_GETOPT): New macro.
36210 (gl_GETOPT): Use them.
36212 2004-08-12 Simon Josefsson <jas@extundo.com>
36214 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
36215 * lib/getopt_.h: Renamed from getopt.h.
36217 2004-08-12 Simon Josefsson <jas@extundo.com>
36219 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
36220 Change default library name from libfoo to libgnu.
36221 Now, if you have a configure.ac that says:
36224 gl_MODULES(error getopt etcetera)
36226 you can import all you need by running:
36227 ../gnulib/gnulib-tool --import
36229 * modules/getopt (Files): Rename getopt.h to getopt_.h.
36230 (Makefile.am): Rewrite, use logic from argz.
36231 (Include): Use <getopt.h> instead of "getopt.h".
36233 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
36235 * modules/argp (Files): Add m4/unlocked-io.m4.
36236 (Depends-on): Add extensions.
36238 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
36240 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
36241 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
36242 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
36243 Check for program_invocation_name, program_invocation_short_name,
36244 flockfile, funlockfile, features.h, _getopt_long_only_r.
36246 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
36248 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
36249 its complicated substitute.
36250 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
36251 and program_invocation_name.
36252 (__argp_basename) [!_LIBC]: Remove; the only use was
36253 replaced by its body.
36254 (__argp_short_program_name): Change condition from
36255 !defined __argp_short_program_name to
36256 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
36257 to match argp-namefrob.h.
36258 (__argp_failure): Don't assume strerror_r returns char *.
36259 * lib/argp-parse.c (N_): Define unconditionally.
36260 (argp_default_options): Fill out initializers with 0 to avoid
36263 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
36265 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
36268 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
36270 Merge from coreutils.
36272 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
36274 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
36275 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
36277 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
36279 Merge from coreutils.
36281 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
36282 wmemchr or wmemcpy. Problem reported by Robert Dahlem
36283 for Reliant Unix 5.43.
36285 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
36286 (union fooround): Use uintmax_t, not long int.
36287 The rest is a merge from libc:
36288 [defined _LIBC]: Include <shlib-compat.h>.
36289 (_obstack) [defined _LIBC]: Remove after 2.3.4.
36291 * lib/settime.c (settime): Recode to avoid warning with
36294 * lib/strverscmp.c: Convert to UTF-8.
36296 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
36298 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
36301 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
36303 * modules/xalloc-die: New file.
36304 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
36306 * modules/md5 (Files): Add m4/uint32_t.m4.
36307 * modules/sha1: Renamed from modules/sha.
36309 Rename lib/sha.h to lib/sha1.h.
36310 Rename lib/sha.c to lib/sha1.c.
36311 Rename m4/sha.m4 to m4/sha1.m4.
36312 (lib_SOURCES): Likewise.
36313 (configure.ac): Rename gl_SHA to gl_SHA1.
36314 (Include): sha.h -> sha1.h.
36316 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
36318 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
36319 * m4/sha1.m4: Renamed from sha.m4.
36320 (gl_SHA1): Renamed from gl_SHA. All uses changed.
36322 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
36324 * lib/obstack.h (obstack_empty_p):
36325 Don't assume that chunk->contents is suitably aligned.
36326 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
36327 Likewise. Problem reported by Benno in
36328 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
36330 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
36331 readable. This could be improved further but it'd take some work.
36333 2004-08-08 Simon Josefsson <jas@extundo.com>
36335 * modules/xgethostname (Depends-on): Remove exit and error (not
36338 * modules/getpass-gnu: Add getpass.h.
36339 (Depends-on): Add stdbool.
36340 * modules/getpass: Add getpass.h.
36342 2004-08-08 Simon Josefsson <jas@extundo.com>
36344 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
36345 Check getpass declaration.
36347 2004-08-08 Simon Josefsson <jas@extundo.com>
36349 * lib/xgethostname.c: Don't include error.h (not used).
36351 * lib/getpass.h: Add.
36352 * lib/getpass.c: Include getpass.h first.
36354 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
36356 * lib/xalloc-die.c: New file.
36357 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
36359 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
36360 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
36362 (_, N_, xalloc_die): Move to xalloc-die.c.
36363 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
36364 so that we needn't mess with xalloc_msg_memory_exhausted.
36366 * lib/sha1.h: Renamed from sha.h.
36367 (SHA1_H): Renamed from _SHA_H.
36368 (sha1_ctx): Renamed from sha_ctx.
36369 (sha1_init_ctx): Renamed from sha_init_ctx.
36370 (sha1_process_block): Renamed from sha_process_block.
36371 (sha1_process_bytes): Renamed from sha_process_bytes.
36372 (sha1_finish_ctx): Renamed from sha_finish_ctx.
36373 (sha1_read_ctx): Renamed from sha_read_ctx.
36374 (sha1_stream): Renamed from sha_stream.
36375 (sha1_buffer): Renamed from sha_buffer.
36376 * lib/sha1.c: Likewise; renamed from sha.c.
36377 Do not include <sys/types.h>.
36378 Include <stddef.h> rather than <stdlib.h>.
36380 2004-08-08 Bruno Haible <bruno@clisp.org>
36382 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
36383 FILESYSTEM_PREFIX_LEN.
36384 * lib/progreloc.c: Likewise.
36385 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
36387 2004-08-06 Simon Josefsson <jas@extundo.com>
36389 * modules/progname (Depends-on): Don't depend on stdbool.
36391 2004-08-06 Simon Josefsson <jas@extundo.com>
36393 * modules/getsubopt: New file.
36394 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36397 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
36399 More merge from coreutils.
36401 * m4/utimens.m4, m4/utimecmp.m4: New files.
36402 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
36403 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
36404 prereq.m4, sha.m4: Import changes from coreutils.
36406 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
36408 More merge from coreutils.
36409 * modules/raise, modules/readtokens0, modules/utimens:
36410 * modules/utimecmp, module/xnanosleep: New files.
36411 * modules/strftime: Add lib/strftime.h.
36412 Change include from <time.h> to "strftime.h".
36413 * modules/yesno: Add lib/yesno.h.
36414 * modules/backupfile: Remove lib/addext.c.
36415 * modules/euidaccess: Add stat-macros.h.
36416 * modules/canonicalize, modules/euidaccess,
36417 modules/filemode, modules/lchown, modules/makepath,
36418 modules/rmdir, modules/stat: Likewise.
36420 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
36423 * lib/argp-help.c (make_hol, hol_append): Don't assume that
36424 SIZE_MAX is a valid preprocessor constant.
36425 (__argp_basename): Change from "#ifndef _LIBC"
36426 to "#ifndef __argp_short_program_name", so that
36427 we don't compile these functions for tar.
36429 More merges from coreutils.
36430 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
36431 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
36432 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
36433 * lib/addext.c: Remove; no longer needed.
36434 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
36435 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
36436 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
36437 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
36438 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
36439 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
36440 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
36441 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
36442 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
36443 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
36444 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
36445 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
36446 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
36447 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
36448 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
36449 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
36450 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
36451 Import changes from coreutils.
36453 2004-08-05 Simon Josefsson <jas@extundo.com>
36455 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
36457 2004-08-05 Simon Josefsson <jas@extundo.com>
36459 * m4/getsubopt.m4: New file.
36461 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
36463 Merge from coreutils.
36465 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
36466 * m4/getcwd-path-max.m4: New files.
36468 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
36469 FILESYSTEM_PREFIX_LEN ->
36470 FILE_SYSTEM_PREFIX_LEN.
36471 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
36472 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
36473 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
36474 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
36476 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
36477 prerequisite modules now handle the DOS stuff.
36478 Don't check for unistd.h.
36480 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
36482 Merge from coreutils.
36484 * lib/.gdb-history: Remove; this doesn't belong here.
36486 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
36487 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
36488 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
36489 * lib/getcwd.c: New files.
36491 * lib/dirname.h: Include <stdbool.h>.
36492 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
36493 for consistency with POSIX terminology. All uses changed.
36494 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
36495 (strip_trailing_slashes): Use bool for booleans.
36496 * lib/stripslash.c (strip_trailing_slashes): Likewise.
36498 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
36499 sometimes returns a positive errno value even when it succeeds.
36500 (print_errno_message) [!LIBC]: Fall back on strerror if
36501 __strerror_r fails.
36503 * lib/path-concat.c (mempcpy): Don't define if a system header defines
36504 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
36505 (longest_relative_suffix): New function.
36506 (path_concat): Use it. Assume first argument is not NULL.
36507 Port to DOS. Omit redundant separators.
36508 Report an error instead of returning NULL.
36509 Use mempcpy instead of memcpy.
36510 (xpath_concat): Remove: not declared or used.
36512 * lib/same.h: Include <stdbool.h>
36513 (same_name): Return bool, not int.
36514 * lib/same.c (same_name): Likewise.
36515 (errno): Don't declare; we assume C89 or better now.
36517 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
36518 if not already defined.
36520 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
36521 * lib/dup-safer.c (errno): Likewise.
36523 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
36525 Merge from coreutils.
36526 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
36527 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
36528 * modules/path-concat: Don't depend on strdup.
36530 2004-08-03 Simon Josefsson <jas@extundo.com>
36532 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
36533 * lib/progname.h: Don't include stdbool.h.
36535 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
36537 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
36538 * MODULES.html.sh (func_all_modules): Remove fatal.
36540 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
36542 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
36544 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
36546 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
36549 2004-08-02 Simon Josefsson <jas@extundo.com>
36551 * lib/getsubopt.h: New file, with comments from Bruno Haible.
36552 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
36553 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
36555 2004-08-01 Simon Josefsson <jas@extundo.com>
36557 * lib/xgetdomainname.c: Include stdlib.h, for free().
36559 2004-07-19 Bruno Haible <bruno@clisp.org>
36561 * MODULES.html.sh (func_all_modules): Add dummy.
36563 2004-07-16 Simon Josefsson <jas@extundo.com>
36565 * modules/dummy: New file.
36567 2004-07-16 Simon Josefsson <jas@extundo.com>
36569 * lib/dummy.c: New file.
36571 2004-07-16 Bruno Haible <bruno@clisp.org>
36573 * lib/backupfile.h: Add extern "C" for C++.
36574 * lib/closeout.h: Likewise.
36575 * lib/copy-file.h: Likewise.
36576 * lib/findprog.h: Likewise.
36577 * lib/full-write.h: Likewise.
36578 * lib/pathname.h: Likewise.
36579 * lib/progname.h: Likewise.
36580 * lib/stpcpy.h: Likewise.
36581 * lib/stpncpy.h: Likewise.
36582 * lib/strcase.h: Likewise.
36583 * lib/strstr.h: Likewise.
36584 * lib/xalloc.h: Likewise.
36586 * lib/mbswidth.h: Add extern "C" for C++.
36587 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
36589 2004-07-13 Robert Millan <robertmh@gnu.org>
36591 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
36593 2004-07-09 Simon Josefsson <jas@extundo.com>
36595 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
36596 failed without this.)
36598 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
36600 * modules/chown (Files): Add lib/fchown-stub.c, since
36601 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
36603 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
36605 * lib/fchown-stub.c: New file.
36607 2004-06-24 Jim Meyering <jim@meyering.net>
36609 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
36611 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
36613 * modules/argz: Omit "#include".
36615 * MODULES.html.sh (func_all_modules): Add calloc, to match
36616 2004-06-01 addition of calloc module.
36618 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
36620 * m4/argz.m4: New file, which is autoupdated from libtool.
36622 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
36624 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
36627 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
36629 * config/srclist-update: Don't insist on "USA." before the
36630 close-comment, as libtool omits the period and puts the */ on a
36632 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
36633 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
36635 2004-06-22 Gary V. Vaughan <gary@gnu.org>
36637 * modules/argz: New file.
36638 * MODULES.html.sh (func_all_modules): Add argz.
36640 2004-06-12 Jim Meyering <jim@meyering.net>
36641 and Paul Eggert <eggert@cs.ucla.edu>
36643 * modules/hash (Files): Add lib/xalloc.h.
36644 * modules/pipe (Depends-on): Add wait-process.
36645 * modules/stat (Depends-on): Add xalloc.
36646 * modules/userspec (Files): Add lib/userspec.h.
36649 Upgrade from gettext-0.13.
36650 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
36651 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
36652 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
36654 2004-06-10 Jim Meyering <jim@meyering.net>
36656 * lib/calloc.c: New file.
36658 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
36660 * lib/getdate.y (yylex): Allow space between sign and number.
36661 Problem reported by Dan Jacobson.
36663 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
36665 Merge from coreutils CVS.
36667 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
36668 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
36669 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
36670 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
36671 xstrtol.m4: Fix copyright date and/or serial number.
36673 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
36674 See if we need an fchown replacement.
36675 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
36676 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
36677 and use the replacement function if we detect either defect.
36679 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
36682 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
36683 and Jim Meyering <jim@meyering.net>
36685 Merge from coreutils CVS.
36687 * lib/stat-macros.h: New file, with contents from file-type.h
36688 and coreutils' system.h.
36689 * lib/file-type.c: Include "stat-macros.h".
36690 * lib/file-type.h (file_type): Move all macro definitions to new file,
36693 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
36694 Wrap old code with this conditional.
36695 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
36696 function that does not dereference symlinks.
36697 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
36699 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
36700 dependency problems.
36701 (xreadlink): Accept new arg SIZE, for efficiency.
36702 All decls and uses changed.
36703 * lib/xreadlink.h: Include <stddef.h>, for size_t.
36705 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
36706 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
36708 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
36711 2004-06-01 Jim Meyering <jim@meyering.net>
36713 * m4/calloc.m4: New file.
36715 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
36717 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
36718 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
36719 Also, fix a typo in a diagnostic.
36721 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
36723 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
36724 or AC_FUNC_REALLOC.
36726 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
36728 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
36729 macros to be defined.
36730 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
36731 the allocator returns NULL because the requested size is zero.
36733 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
36735 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
36736 var. Add comment explaining why libc still defines it. This
36737 merges the following patch from glibc:
36738 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
36740 2004-05-20 Andreas Schwab <schwab@suse.de>
36742 * m4/free.m4: Replace free if it not known to work, not the other
36745 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
36747 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
36748 present in glibc since revision 1.1 of this file.
36749 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
36750 obstack_alignment_mask, obstack_alloc, obstack_base,
36751 obstack_blank, obstack_blank_fast, obstack_chunk_size,
36752 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
36753 obstack_grow0, obstack_init, obstack_int_grow,
36754 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
36755 obstack_next_free, obstack_object_size, obstack_ptr_grow,
36756 obstack_ptr_grow_fast, obstack_room): Remove declarations of
36757 nonexistent functions.
36759 2004-05-18 Karl Berry <karl@gnu.org>
36761 * config/srclist.txt: break link for vasnprintf.c.
36763 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
36765 Port obstack to the AS/400, where pointers are 16 bytes wide and
36766 you cannot cast an integer to a valid pointer. This patch is
36767 currently waiting to be integrated into glibc; see
36768 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
36770 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
36771 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
36772 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
36773 (struct obstack): temp member is now a union of a pointer and
36774 an integer, instead of an integer. All integer uses changed.
36775 This does not affect the physical layout of struct obstack,
36776 except on hosts (like the AS/400) where the size or alignment of
36777 void * is greater than that of ptrdiff_t.
36778 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
36779 __STDC__)]: Store temporary in pointer member of union, not
36781 * lib/obstack.c: Include <stddef.h>, for offsetof.
36782 (struct fooalign): Remove; it doesn't need a name.
36783 (union fooround): Change double to long double, and add void *.
36784 (DEFAULT_ALIGNMENT): Use offsetof to compute.
36785 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
36786 not a macro. Hence the values are always int; so remove all
36787 casts-to-int in uses.
36789 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
36791 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
36792 we can get this patch merged into glibc.
36794 2004-05-17 Derek R. Price <derek@ximbiot.com>
36795 Paul Eggert <eggert@cs.ucla.edu>
36797 * m4/argp: Depend on alloca.
36799 2004-05-17 Derek R. Price <derek@ximbiot.com>
36800 Paul Eggert <eggert@cs.ucla.edu>
36802 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
36805 2004-05-17 Bruno Haible <bruno@clisp.org>
36807 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
36808 precision that consists of a '.' followed by an empty digit string.
36809 Patch by Tor Lillqvist <tml@iki.fi>.
36811 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
36813 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
36814 for backward compatibility with older code. We need our own
36815 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
36816 it under some other name, and our alloca.h will define it.
36818 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
36819 Derek Price <derek@ximbiot.com>
36821 * lib/alloca.c: Include <alloca.h>, to get our interface.
36822 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
36823 include <alloca.h> first. Use C89 prototype for alloca; this
36824 requires including <stddef.h> for size_t. Use extern "C" if C++.
36825 Use #elif for simplicity, since we can assume C89 now.
36826 Don't try to source the system alloca.h since it will not be found
36827 and to prevent recursively including its replacement.
36828 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
36829 * lib/regex.c: Likewise.
36831 2004-05-16 Derek Price <derek@ximbiot.com>
36832 Paul Eggert <eggert@cs.ucla.edu>
36834 getline cleanup. This changes the getndelim2 API: both order of
36835 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
36838 * lib/getline.c: Don't include stddef.h or stdio.h, since our
36839 interface does that.
36840 (getline): Always use getdelim, so that we don't have two
36841 copies of this code.
36842 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
36844 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
36845 (GETNDELIM2_MAXIMUM): New macro.
36846 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
36847 instead of the old practice of delim2==0. All callers changed.
36848 Return -1 on overflow, instead of returning junk.
36849 Do not set *linesize unless allocation succeeds.
36850 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
36851 that we include sys/types.h.
36852 * lib/getnline.h: Likewise.
36853 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
36854 (getndelim2): Reorder arguments.
36855 * lib/getnline.c (getnline, getndelim):
36856 Don't discard the NMAX argument.
36857 (getnline): Invoke getndelim, to avoid code duplication.
36858 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
36859 of (size_t) -1 by callers of the getnline family.
36861 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
36863 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
36864 Check for gettimeofday.
36865 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
36866 Check for settimeofday, stime.
36868 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
36870 * lib/nanosleep.c (suspended): Change its type from int to
36871 sig_atomic_t volatile.
36872 (first_call): Make it private to rpl_nanosleep, and have it
36873 be zero initially as that's a bit faster.
36874 (my_usleep): Round up fractional times instead of truncating them,
36875 as this is the usual meaning for 'sleep'.
36877 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
36879 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
36880 (ENOSYS): Define if not defined.
36881 (settime): Fall back on stime if it exists and settimeofday fails.
36882 But don't bother with fallbacks if a method fails with errno == EPERM.
36884 2004-05-11 Jim Meyering <jim@meyering.net>
36886 Prior to this change, the save_cwd caller required read access to the
36887 current directory on most systems (ones with the fchdir function).
36889 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
36890 fails, try write-only, and finally, resort to using xgetcwd.
36892 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
36894 * lib/obstack.c, obstack.h: Import changes from libc.
36896 2004-04-28 Bruno Haible <bruno@clisp.org>
36898 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
36899 also implicitly appends .exe to executables.
36900 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
36901 accepts Windows pathnames.
36902 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
36903 Treat Cygwin like Windows, since it now accepts Windows pathnames.
36904 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
36905 Treat Cygwin like Windows, since it now accepts Windows pathnames.
36906 Reported by Derek Robert Price <derek@ximbiot.com>.
36908 2004-04-21 Karl Berry <karl@gnu.org>
36910 * config/srclist.txt (localcharset.c): break sync.
36912 2004-04-20 Paul Eggert <eggert@twinsun.com>
36914 * m4/host-os.m4: Add a copyright notice.
36916 2004-04-20 Jim Meyering <jim@meyering.net>
36918 Change UTILS_ to gl_ in AC_DEFINE'd names.
36919 Change utils_- and jm_-prefixed variables, too.
36920 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
36921 UTILS_FUNC_MKDIR_TRAILING_SLASH.
36922 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
36924 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
36925 Don't emit trailing blanks.
36926 Also rename jm_-prefixed variables to have gl_ prefix.
36928 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
36929 Also rename jm_-prefixed variables to have gl_ prefix.
36931 * m4/jm-macros.m4: Reflect the renamings.
36932 * m4/prereq.m4: Likewise.
36934 2004-04-20 Jim Meyering <jim@meyering.net>
36936 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
36939 2004-04-20 Jim Meyering <jim@meyering.net>
36940 Bruno Haible <bruno@clisp.org>
36942 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
36943 memory when realloc fails.
36945 2004-04-19 Jim Meyering <jim@meyering.net>
36947 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
36948 now that readutmp.c may call `free (0)'.
36950 2004-04-19 Bruno Haible <bruno@clisp.org>
36952 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
36953 * m4/inttypes_h.m4: Likewise.
36954 * m4/stdint_h.m4: Likewise.
36955 * m4/intmax_t.m4: Likewise.
36956 * m4/uintmax_t.m4: Likewise.
36958 2004-04-18 Jim Meyering <jim@meyering.net>
36960 * m4/prereq.m4: Don't forbid jm_ prefix.
36962 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
36963 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
36964 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
36965 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
36966 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
36967 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
36968 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
36969 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
36970 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
36971 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
36972 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
36973 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
36974 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
36975 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
36976 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
36977 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
36978 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
36979 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
36980 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
36982 2004-04-18 Jim Meyering <jim@meyering.net>
36984 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
36985 failure, don't leak memory and do call END_UTMP_ENT.
36987 2004-04-16 Jim Meyering <jim@meyering.net>
36989 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
36990 coreutils' stat program.
36991 (gl_PREREQ): Don't require jm_PREREQ_STAT.
36993 2004-04-11 Paul Eggert <eggert@twinsun.com>
36995 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
36997 (CHAR_BIT): Remove, since we assume C89.
36998 Include <stdint.h> if available, as per current Autoconf CVS advice.
37000 2004-03-31 Jim Meyering <jim@meyering.net>
37002 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
37003 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
37004 * m4/xalloc.m4: Likewise.
37006 2004-03-30 Paul Eggert <eggert@twinsun.com>
37008 Merge from coreutils.
37010 * m4/inttostr.m4: New file.
37011 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
37012 Require AM_STDBOOL_H and gl_TIMESPEC instead.
37013 Require gl_CLOCK_TIME.
37014 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
37016 2004-03-30 Paul Eggert <eggert@twinsun.com>
37018 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
37019 not bool, to be more consistent with Unix conventions.
37020 Suggested by Bruno Haible.
37022 Merge from coreutils.
37024 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
37025 * lib/umaxtostr.c: New files.
37027 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
37028 the usual <time.h> dance.
37029 (get_date): Change signature to support fractional time stamps.
37030 All callers changed.
37031 * lib/getdate.y: Include "getdate.h" first, as we can now
37032 assume C89 and don't need to worry about 'const'.
37033 Similarly, include "unlocked-io.h" near start, not in middle.
37034 Include <limits.h>.
37035 (textint.value): Use long int rather than int.
37036 (textint.digits): Use size_t rather than int.
37037 (BILLION, LOG10_BILLION): New constants.
37038 (parser_control): New member rel_ns. Members day_ordinal,
37039 time_zone, month, day, hour, minutes, rel_year, rel_month,
37040 rel_day, rel_hour, rel_minutes, rel_seconds
37041 are now long int, not int. Member seconds is now struct timespec,
37042 not int. New member timespec_seen. Members dates_seen, days_seen,
37043 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
37045 (%union.intval): Now long int, not int.
37046 New member timespec.
37047 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
37048 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
37049 (spec): Now is a timespec or an item list.
37050 (timespec, items): New nonterminals.
37051 (time, rel, relunit, number, get_date):
37052 Add support for fractional seconds.
37053 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
37054 (gmtime, localtime, mktime): Remove decls; not needed with C89.
37055 (to_hour): First arg is now long int, not int.
37056 (to_year): Returns long int, not int.
37057 Don't treat year -70 like 70.
37058 (tm_diff): Returns long int, not int.
37059 (lookup_word): Use bool instead of int when appropriate.
37060 (yylex): Use size_t for count, not int.
37061 Detect overflow when parsing large integer constants.
37062 Add support for fractions.
37063 (get_date): Make pointers 'const' if possible.
37064 Use more-portable code to detect integer overflow.
37065 (main) [TEST]: Adjust to above changes. Test for localtime failure.
37066 Don't use ctime; it's not reliable if the year has >4 digits.
37068 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
37069 This is for compatibility with BSD.
37071 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
37072 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
37073 From coreutils' system.h.
37075 * lib/userspec.c: Don't include "posixver.h".
37076 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
37077 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
37078 compatible extension. Simplify code by removing a boolean int
37079 that was always nonzero if a string was nonnull.
37081 2004-03-30 Jim Meyering <jim@meyering.net>
37083 Merge from coreutils.
37085 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
37086 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
37087 on some systems one must include <grp.h> before it.
37088 Reported by Christian Krackowizer.
37090 2004-03-30 Jim Meyering <jim@meyering.net>
37092 Merge from coreutils.
37094 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
37096 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
37097 an empty input stream.
37099 * lib/readtokens.c: Include <stdbool.h>.
37100 (readtoken): Use `size_t' rather than int/long.
37101 All callers adjusted.
37102 Use `bool' rather than `int' where appropriate.
37103 Use memset rather than an explicit loop.
37104 Use x2nrealloc rather than xrealloc.
37105 Allow the use of `\0' as a delimiter.
37106 (readtokens): Likewise.
37107 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
37109 2004-03-30 Jim Meyering <jim@meyering.net>
37111 * m4/realloc.m4: Remove file, since now it does no more than
37112 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
37113 the `configure.ac' section of module/realloc.
37114 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
37116 2004-03-30 Bruno Haible <bruno@clisp.org>
37118 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
37121 2004-03-29 Paul Eggert <eggert@twinsun.com>
37123 Merge changes to getloadavg.c from coreutils and Emacs.
37125 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
37126 Define to an expression, not to the empty string.
37127 Include cloexec.h and xalloc.h.
37128 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
37129 Use set_cloexec_flag rather than rolling our own.
37130 * lib/cloexec.c, lib/cloexec.h: New files.
37132 2004-03-29 Paul Eggert <eggert@twinsun.com>
37134 * m4/cloexec.m4: New file.
37136 2004-03-18 Paul Eggert <eggert@twinsun.com>
37138 * lib/getopt.h: Sync with libc CVS.
37140 2004-03-18 Paul Eggert <eggert@twinsun.com>
37141 Bruno Haible <bruno@clisp.org>
37143 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
37146 2004-03-18 Paul Eggert <eggert@twinsun.com>
37147 Bruno Haible <bruno@clisp.org>
37149 * lib/mbswidth.h: Include <wchar.h> only if
37150 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
37152 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
37154 2004-03-09 Paul Eggert <eggert@twinsun.com>
37156 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
37157 Sync with libc CVS.
37158 * lib/getopt_int.h: New file, also synced from libc.
37160 2004-03-09 Paul Eggert <eggert@twinsun.com>
37162 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
37163 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
37164 Bring back getopt.c, getopt.h, getopt1.c.
37166 2004-03-07 Paul Eggert <eggert@twinsun.com>
37168 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
37169 All uses changed. Check for sa_sigaction member; this fixes
37170 a bug first reported by Jason Andrade in
37171 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
37173 2004-03-07 Paul Eggert <eggert@twinsun.com>
37175 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
37176 '#if' expressions. Unlike the code it replaces, it does not
37177 depend on (defined _SC_PAGESIZE). However, it does depend on
37178 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
37179 first reported by Jason Andrade in
37180 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
37182 2004-02-25 Simon Josefsson <jas@extundo.com>
37184 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
37186 2004-02-25 Simon Josefsson <jas@extundo.com>
37188 * lib/strdup.h: New file.
37189 * lib/strdup.c: Include it.
37190 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
37191 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
37193 2004-02-23 Karl Berry <karl@gnu.org>
37195 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
37196 (from fencepost.gnu.org:/gd/gnuorg).
37198 2004-02-23 Karl Berry <karl@gnu.org>
37200 * config/srclistvars.sh (GNUORG) [karl]: redefine.
37201 * config/srclist.txt: add maintain/standards documents.
37203 2004-02-18 Bruno Haible <bruno@clisp.org>
37205 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
37206 Reported by Derek Robert Price <derek@ximbiot.com>.
37208 2004-02-16 Karl Berry <karl@gnu.org>
37210 * config/mkinstalldirs, install-sh: update from automake.
37212 2004-02-06 Karl Berry <karl@gnu.org>
37214 * m4/po.m4: update from gettext 0.14.1.
37216 2004-02-06 Karl Berry <karl@gnu.org>
37218 * lib/config.charset: update from gettext 0.14.1.
37220 2004-02-05 Paul Eggert <eggert@twinsun.com>
37222 Add comments and code, prompted by suggestions from Bruno Haible
37224 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
37225 describing the enum quoting_style values.
37226 * lib/quotearg.c (quotearg_alloc): New function.
37227 (quotearg_buffer_restyled): Treat lone { and } as special.
37228 Treat = as special. Work around bug with older shells
37229 that "see" a '\' that is really the 2nd byte of a multibyte char.
37230 Quote empty string with shell_quoting_style.
37232 2004-02-03 Bruno Haible <bruno@clisp.org>
37234 * m4/pipe.m4: New file, from GNU gettext.
37236 2004-02-03 Bruno Haible <bruno@clisp.org>
37238 * lib/pipe.h: New file, from GNU gettext.
37239 * lib/pipe.c: New file, from GNU gettext.
37241 2004-01-27 Bruno Haible <bruno@clisp.org>
37243 * m4/execute.m4: New file, from GNU gettext.
37245 2004-01-27 Bruno Haible <bruno@clisp.org>
37247 * lib/execute.h: New file, from GNU gettext.
37248 * lib/execute.c: New file, from GNU gettext.
37249 * lib/w32spawn.h: New file, from GNU gettext.
37251 2004-01-24 Paul Eggert <eggert@twinsun.com>
37253 Merge from diffutils.
37255 * lib/file-type.c (file_type): Add typed memory objects.
37256 * lib/file-type.h (S_TYPEISTMO): New macro.
37258 * lib/c-stack.h (c_stack_action): Remove argv argument.
37259 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
37260 (die): Don't calculate message unless segv_action returns.
37261 (get_stack_location, min_address_from_argv, max_address_from_argv,
37262 volatile stack_base, volatile_stack_size): Remove.
37263 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
37264 that every segmentation violation is a stack overflow. (Ouch!)
37265 See Debian bug 136249 (still outstanding) for more info about why
37266 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
37268 2004-01-24 Paul Eggert <eggert@twinsun.com>
37270 Exit-status fix from coreutils.
37272 Use exit_failure consistently in place of EXIT_FAILURE,
37273 so that program exit statuses are consistent on failure.
37275 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
37276 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
37277 * lib/argmatch.h: Comment fix to match the above.
37278 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
37279 Now a macro referring to exit_failure, instead of a separate
37280 variable. Include "exitfail.h" to get it.
37281 * lib/xstrtol.h: Include "exitfail.h".
37282 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
37284 * lib/long-options.c (parse_long_options): Use prototype
37285 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
37288 2004-01-21 Jim Meyering <jim@meyering.net>
37290 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
37291 so as not to conflict with a different-sized __mktime_internal
37292 function in GNU libc.
37293 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
37294 Problem building statically-linked `ls' reported by Michael Brunnbauer.
37296 2004-01-20 Karl Berry <karl@gnu.org>
37298 * config/config.guess: update from config.
37300 * config/srclistvars.sh: GNUWWWLICENSES for karl.
37302 2004-01-20 Bruno Haible <bruno@clisp.org>
37304 Safer stack allocation.
37305 * lib/setenv.c: Include allocsa.h.
37306 (alloca): Remove fallback definition.
37307 (freea): Remove macro.
37308 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
37311 2004-01-20 Bruno Haible <bruno@clisp.org>
37313 * m4/eealloc.m4: New file, from GNU gettext.
37315 2004-01-20 Bruno Haible <bruno@clisp.org>
37317 * m4/allocsa.m4: New file, from GNU gettext.
37319 2004-01-20 Bruno Haible <bruno@clisp.org>
37321 * lib/xallocsa.h: New file, from GNU gettext.
37322 * lib/xallocsa.c: New file, from GNU gettext.
37324 2004-01-20 Bruno Haible <bruno@clisp.org>
37326 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
37328 2004-01-20 Bruno Haible <bruno@clisp.org>
37330 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
37331 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
37334 2004-01-20 Bruno Haible <bruno@clisp.org>
37336 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
37339 2004-01-20 Bruno Haible <bruno@clisp.org>
37341 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
37343 2004-01-20 Bruno Haible <bruno@clisp.org>
37345 * lib/eealloc.h: New file.
37347 2004-01-20 Bruno Haible <bruno@clisp.org>
37349 * lib/binary-io.h: Avoid warnings on Cygwin.
37351 2004-01-20 Bruno Haible <bruno@clisp.org>
37353 * lib/allocsa.h: New file, from GNU gettext.
37354 * lib/allocsa.c: New file, from GNU gettext.
37356 2004-01-18 Karl Berry <karl@gnu.org>
37358 * doc/gpl.texi, doc/lgpl.texi: new files.
37360 2004-01-18 Karl Berry <karl@gnu.org>
37362 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
37363 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
37365 2004-01-15 Paul Eggert <eggert@twinsun.com>
37367 Merge from coreutils.
37369 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
37370 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
37371 (gl_DEFAULT_POSIX2_VERSION): Move
37372 the documentation from 'configure' into 'config.hin',
37373 so that 'configure --help' isn't burdened by it and
37374 we don't have to worry about its formatting there.
37375 Reword the documentation so that it's more succinct
37376 and can be run together into a single paragraph.
37377 * m4/same.m4 (gl_SAME): Check for pathconf.
37379 2004-01-15 Paul Eggert <eggert@twinsun.com>
37381 Merge from coreutils.
37383 * lib/posixver.c: Include posixver.h.
37385 * lib/same.c: Include <stdbool.h>, <limits.h>.
37386 (_POSIX_NAME_MAX): Define if not defined.
37388 (same_name): If file names are silently truncated, report
37389 that the file names are the same if they are the same after
37390 the silent truncation.
37392 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
37393 conversion function.
37394 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
37395 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
37398 2004-01-15 Jim Meyering <jim@meyering.net>
37400 Merge from coreutils.
37402 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
37403 if no library is required.
37404 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
37405 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
37406 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
37407 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
37408 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
37409 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
37410 value, $ac_cv_search_crypt, if it's "none required".
37411 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
37412 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
37413 not gl_FUNC_GETLOADAVG.
37414 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
37415 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
37417 2004-01-15 Jim Meyering <jim@meyering.net>
37419 Merge from coreutils.
37421 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
37422 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
37423 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
37425 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
37426 optional configure-time default.
37428 * lib/version-etc.c (version_etc_copyright): Update copyright date.
37430 * lib/xreadlink.c (xreadlink): Correct outdated comment.
37432 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
37434 Merge from coreutils.
37436 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
37437 value, $ac_cv_search_nanosleep, if it's "none required".
37439 2004-01-14 Paul Eggert <eggert@twinsun.com>
37441 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
37442 with like-named macro in fnmatch.c.
37443 (EXT): Use an internal constant instead.
37445 Merge fnmatch patches from glibc.
37446 * lib/fnmatch.c (mbsinit): Remove define.
37447 Add libc_hidden_ver (__fnmatch, fnmatch).
37448 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
37449 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
37451 2004-01-14 Karl Berry <karl@gnu.org>
37453 * config/install-sh: update from automake.
37455 2004-01-13 Karl Berry <karl@gnu.org>
37457 * config/install-sh: update from automake.
37459 2004-01-09 Karl Berry <karl@gnu.org>
37461 * config/install-sh: update from automake.
37463 2004-01-05 Karl Berry <karl@gnu.org>
37465 * config/config.{sub,guess}: update from config.
37467 2003-12-31 Karl Berry <karl@gnu.org>
37469 * config/depcomp: update from automake.
37471 2003-12-14 Karl Berry <karl@gnu.org>
37473 * lib/config.charset: update from gettext-runtime.
37475 2003-12-03 Paul Eggert <eggert@twinsun.com>
37477 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
37478 Bug reported by Alfred M. Szmidt.
37480 2003-12-03 Bruno Haible <bruno@clisp.org>
37482 * m4/gettext.m4: Upgrade from gettext-0.13.
37483 * m4/po.m4: Upgrade from gettext-0.13.
37484 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
37485 * m4/intmax.m4: New file, from gettext-0.13.
37486 * m4/printf-posix.m4: New file, from gettext-0.13.
37488 2003-11-29 Karl Berry <karl@gnu.org>
37490 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
37492 2003-11-25 Paul Eggert <eggert@twinsun.com>
37493 Bruno Haible <bruno@clisp.org>
37495 * lib/printf-parse.h: Don't include sys/types.h.
37496 (ARG_NONE): New macro.
37497 (char_directive): Change type of *arg_index fields to size_t.
37498 * lib/printf-parse.c: Don't include sys/types.h.
37499 (SSIZE_MAX): Remove macro.
37500 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
37501 Remove unnecessary overflow check.
37502 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
37505 2003-11-25 Bruno Haible <bruno@clisp.org>
37507 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
37509 2003-11-25 Bruno Haible <bruno@clisp.org>
37511 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
37514 2003-11-24 Paul Eggert <eggert@twinsun.com>
37516 * modules/alloca: Remove dependency on xalloc.
37518 2003-11-24 Paul Eggert <eggert@twinsun.com>
37520 * lib/alloca.c: Remove dependency on xalloc module.
37521 (xalloc_die): Remove.
37522 (memory_full) [!defined emacs]: New macro.
37523 [!defined emacs]: Don't include xalloc.h.
37524 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
37525 address arithmetic overflows. Change datatypes a bit to avoid
37528 2003-11-22 Jim Meyering <jim@meyering.net>
37530 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
37533 2003-11-21 Karl Berry <karl@gnu.org>
37535 * config/config.{sub,guess}: update from config.
37537 2003-11-18 Karl Berry <karl@gnu.org>
37539 * config/config.{sub,guess}: update from config.
37541 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
37543 2003-11-17 Paul Eggert <eggert@twinsun.com>
37545 * README: Mention that S+T cannot overflow if S is the size of
37546 an existing object and T is sufficiently small.
37548 2003-11-17 Jim Meyering <jim@meyering.net>
37550 On systems without utime and without a utimes function capable of
37551 dealing with a NULL struct utimbuf* argument, this utime replacement
37552 could -- in unusual circumstances -- leak a file descriptor.
37553 * lib/utime.c: Include <unistd.h> and <errno.h>.
37554 (utime_null): Be sure to close `fd' and to preserve errno.
37555 Reported by Geoff Collyer via Arnold Robbins.
37557 2003-11-17 Bruno Haible <bruno@clisp.org>
37559 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
37560 (Depends-on): Add xsize.
37562 2003-11-17 Bruno Haible <bruno@clisp.org>
37564 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
37566 2003-11-17 Bruno Haible <bruno@clisp.org>
37568 * lib/vasnprintf.c (alloca): Remove fallback definition.
37569 (freea): Remove definition.
37570 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
37571 Reported by Paul Eggert.
37573 2003-11-16 Paul Eggert <eggert@twinsun.com>
37574 Bruno Haible <bruno@clisp.org>
37576 Protect against address arithmetic overflow.
37577 * lib/printf-args.h: Include stddef.h.
37578 (arguments): Change type of field 'count' to size_t.
37579 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
37580 'unsigned int' where appropriate.
37581 * lib/printf-parse.h: Include sys/types.h.
37582 (char_directive): Change type of *arg_index fields to ssize_t.
37583 (char_directives): Change type of fields 'count', max_*_length to
37585 * lib/printf-parse.c: Include sys/types.h and xsize.h.
37586 (SSIZE_MAX): Define fallback value.
37587 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
37588 instead of 'int' where appropriate. Check a_allocated, d_allocated
37589 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
37590 * lib/vasnprintf.c: Include xsize.h.
37591 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
37592 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
37593 overflow. Avoid wraparound when converting a width or precision from
37596 2003-11-16 Bruno Haible <bruno@clisp.org>
37598 Update from GNU gettext.
37599 * lib/printf-parse.c: Generalize to it can be compiled for wide
37601 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
37602 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
37603 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
37604 SNPRINTF): New macros.
37605 Don't include <alloca.h> if the file is used inside libintl.
37606 (local_wcslen): New function, for Solaris 2.5.1.
37607 (VASNPRINTF): Use it instead of wcslen.
37609 2003-11-16 Bruno Haible <bruno@clisp.org>
37611 * lib/xsize.h (xmax): New function.
37612 (xsum, xsum3, xsum4): Declare as "pure" functions.
37614 2003-11-12 Paul Eggert <eggert@twinsun.com>
37616 * modules/xalloc (Files): Undo latest change, since xalloc.h
37617 no longer needs SIZE_MAX or PTRDIFF_MAX.
37619 2003-11-12 Paul Eggert <eggert@twinsun.com>
37621 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
37624 2003-11-12 Paul Eggert <eggert@twinsun.com>
37626 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
37627 "return", to pacify some unknown compiler. Problem reported
37628 by Joerg Schilling.
37630 2003-11-12 Paul Eggert <eggert@twinsun.com>
37632 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
37633 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
37634 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
37635 heuristic is just as accurate as far as we know, and it removes a
37636 dependency on size_max.m4 and ptrdiff_max.m4.
37638 2003-11-11 Bruno Haible <bruno@clisp.org>
37640 * modules/xsize (Files): Add m4/size_max.m4.
37641 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
37643 2003-11-11 Bruno Haible <bruno@clisp.org>
37645 * m4/size_max.m4: New file.
37646 * m4/ptrdiff_max.m4: New file.
37647 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
37648 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
37649 (gl_XALLOC): Invoke it.
37651 2003-11-11 Bruno Haible <bruno@clisp.org>
37653 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
37654 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
37657 2003-11-10 Paul Eggert <eggert@twinsun.com>
37659 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
37660 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
37661 rejected some allocations of exactly SIZE_MAX - 2 bytes.
37663 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
37664 not (size_t) -1, since it's defined here.
37666 2003-11-09 Karl Berry <karl@gnu.org>
37668 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
37670 2003-11-06 Paul Eggert <eggert@twinsun.com>
37672 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
37673 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
37674 Reject sizes of exactly SIZE_MAX bytes.
37675 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
37676 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
37678 2003-11-05 Bruno Haible <bruno@clisp.org>
37680 * lib/xsize.h: Include limits.h, to avoid a possible collision with
37681 SIZE_MAX defined in <limits.h> on Solaris.
37683 2003-11-04 Jim Meyering <jim@meyering.net>
37685 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
37686 variable names, rather than @VAR@.
37687 * modules/poll: Likewise.
37689 2003-11-04 Bruno Haible <bruno@clisp.org>
37691 * modules/xsize: New file.
37692 * modules/linebreak: Depend on xsize.
37693 * MODULES.html.sh (func_all_modules): Add xsize.
37695 2003-11-04 Bruno Haible <bruno@clisp.org>
37697 * m4/xsize.m4: New file.
37699 2003-11-04 Bruno Haible <bruno@clisp.org>
37701 * lib/xsize.h: New file.
37702 * lib/linebreak.c: Include xsize.h.
37703 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
37704 argument for overflow.
37705 Suggested by Paul Eggert.
37707 2003-11-03 Karl Berry <karl@gnu.org>
37709 * config/config.{guess,sub}: update from config.
37711 2003-11-03 Jim Meyering <jim@meyering.net>
37713 * modules/userspec (lib_SOURCES): Add userspec.h.
37714 (Include): Add "userspec.h".
37715 Improve description.
37717 2003-11-03 Jim Meyering <jim@meyering.net>
37719 * lib/userspec.c: Include "userspec.h".
37720 * lib/userspec.h: New file.
37722 2003-11-03 Bruno Haible <bruno@clisp.org>
37724 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
37726 2003-11-03 Bruno Haible <bruno@clisp.org>
37728 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
37729 available, to avoid (extremely rare) race condition.
37730 Suggested by Paul Eggert.
37732 2003-11-02 Karl Berry <karl@gnu.org>
37734 * config/srclist.txt (vasprintf.c): sync broken, sigh.
37736 2003-10-31 Paul Eggert <eggert@twinsun.com>
37738 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
37739 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
37740 (read_filesystem_list): Set and use me_type_malloced.
37741 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
37742 whatever the type happens to be), for brevity and consistency.
37743 Check for size calculation overflow on Alphas running OSF/1.
37745 2003-10-31 Jim Meyering <jim@meyering.net>
37747 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
37749 * lib/linebuffer.c: Include <string.h> for declaration of memset.
37751 2003-10-30 Paul Eggert <eggert@twinsun.com>
37752 Bruno Haible <bruno@clisp.org>
37754 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
37755 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
37757 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
37759 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
37760 netbsd*-gnu*. Suggested by Robert Millan.
37762 2003-10-29 Paul Eggert <eggert@twinsun.com>
37764 * modules/group-member: Depend on stdbool.
37766 2003-10-29 Paul Eggert <eggert@twinsun.com>
37768 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
37770 2003-10-29 Paul Eggert <eggert@twinsun.com>
37772 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
37773 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
37774 after the 'gnu' in these cases. This fixes some bugs in the
37775 previous change, and is based on suggestions by Robert Millan.
37777 2003-10-29 Paul Eggert <eggert@twinsun.com>
37779 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
37780 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
37782 * lib/quotearg.c (quotearg_n_options): Use it.
37783 * lib/group-member.c: Include <stdbool.h>.
37784 (free_group_info): Arg is now const *; don't free arg.
37785 (get_group_info): Now returns bool and accepts struct group_info *,
37786 rather than returning a malloc'ed struct group_info *.
37787 All uses changed. Check for overflow in internal size calculation.
37789 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
37790 rather than xmalloc/xrealloc.
37791 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
37792 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
37793 conformance bug: the old code used a pointer after freeing the
37794 storage that it addressed.
37795 * lib/hash.c (hash_initialize): Simplify the code by using
37796 xalloc_oversized rather than doing it by hand.
37797 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
37798 the buffer preserved. Use free and xmalloc instead.
37799 * lib/quotearg.c (quotearg_n_options): Likewise.
37800 Use a simpler test for size overflow. Don't use xalloc_oversized
37801 because unsigned int might be wider than size_t (!); this suggests
37802 that we should switch from unsigned int to size_t for slot numbers.
37804 2003-10-28 Paul Eggert <eggert@twinsun.com>
37806 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
37807 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
37808 NetBSD kernels. Requested by Richard Stallman.
37810 2003-10-27 Paul Eggert <eggert@twinsun.com>
37812 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
37813 to allocate the returned structure. Do not allocate a subarray,
37814 as x2nrealloc will do that.
37815 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
37816 instead of xnrealloc.
37817 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
37819 2003-10-27 Bruno Haible <bruno@clisp.org>
37821 * lib/stdbool_.h: Better support for BeOS.
37823 2003-10-26 Paul Eggert <eggert@twinsun.com>
37825 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
37828 2003-10-26 Paul Eggert <eggert@twinsun.com>
37830 * lib/xalloc.h (xalloc_oversized): New static inline function, for
37831 callers that want to do their own size-overflow checking. Include
37832 <stdbool.h>, since xalloc_oversized returns bool.
37833 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
37834 to use xalloc_oversized.
37836 Add two functions x2realloc, x2nrealloc, for programs that grow
37837 arrays dynamically by doubling their sizes.
37838 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
37839 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
37842 Port to C99 semantics for 'inline' of external functions.
37843 Bug reported by Bruno Haible.
37844 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
37845 with the old contents of xnmalloc.
37846 (xnmalloc, xmalloc): Use it.
37847 (xnrealloc_inline): New static inline function,
37848 with the old contents of xnrealloc.
37849 (xnrealloc, xrealloc): Use it.
37851 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
37854 2003-10-26 Karl Berry <karl@gnu.org>
37856 * config/srclist.txt (COPYING.DOC): no longer available from
37857 /gd/gnuorg; don't know where the ultimate source is.
37859 2003-10-25 Paul Eggert <eggert@twinsun.com>
37861 Fix several address-calculation bugs in the hash modules,
37862 plus some minor code cleanup.
37864 * lib/hash.h: Include <stdbool.h>, for bool.
37865 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
37866 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
37867 hash_get_n_entries, hash_get_max_bucket_length,
37868 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
37869 hash_rehash): Use size_t rather than unsigned.
37870 * lib/hash.c (struct hash_table, hash_get_n_buckets,
37871 hash_get_n_buckets_used, hash_get_n_entries,
37872 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
37873 hash_get_entries, hash_do_for_each, hash_string, is_prime,
37874 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
37876 (SIZE_MAX): Define if not defined.
37877 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
37878 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
37880 Use const * when possible.
37881 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
37882 (check_tuning): Fix bug: if tuning parameters were very close to
37883 0 or 1, rounding errors could have caused subscript violations.
37884 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
37885 (hash_initialize): Add 'fail:' label
37886 to free table and return NULL, and use it to simplify code.
37887 Use calloc rather than clearing the storage ourself.
37888 (hash_initialize, hash_rehash): Check for arithmetic overflow in
37889 buffer size calculations.
37890 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
37891 Include <stddef.h>, for size_t.
37892 * lib/hash-pjw.c (hash_pjw): Likewise.
37893 Switch to method described by Bruno Haible.
37894 Include <limits.h>, for CHAR_BIT.
37895 (SIZE_BITS): New macro.
37897 2003-10-23 Paul Eggert <eggert@twinsun.com>
37899 * m4/getline.m4 (AM_FUNC_GETLINE):
37900 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
37901 hosts. Problem reported by Derek Robert Price in
37902 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
37903 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
37904 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
37906 2003-10-21 Paul Eggert <eggert@twinsun.com>
37908 * lib/getndelim2.c (getndelim2): When size calculation overflows,
37909 ceiling the allocation at NMAX bytes rather than silently
37910 discarding input bytes before NMAX is reached. This makes
37911 a difference only if NMAX exceeds SIZE_MAX / 2.
37913 * lib/obstack.c: Merge from glibc.
37914 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
37915 Add libc_hidden_def (_obstack_newchunk).
37916 (_obstack_free) [! defined _LIBC]: Remove.
37917 [defined _LIBC]: Make a strong alias from obstack_free, rather than
37918 a clone of the function body.
37919 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
37920 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
37922 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
37924 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
37927 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
37928 (obstack_ptr_grow_fast, obstack_int_grow_fast):
37929 Don't use lvalue casts, as GCC plans to remove support for them
37930 in GCC 3.5. Reported by Joseph S. Myers. This bug
37931 was also present in the non-GCC version, indicating that this
37932 code had always been buggy and had never been widely used.
37933 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
37934 Use the fast variant of each macro, rather than copying the
37935 definiens of the fast variant; that way, we'll be more likely to
37936 catch future bugs in the fast variants.
37938 2003-10-20 Bruno Haible <bruno@clisp.org>
37940 * modules/wait-process: New file.
37941 * MODULES.html.sh (func_all_modules): Add wait-process.
37943 2003-10-20 Bruno Haible <bruno@clisp.org>
37945 * m4/wait-process.m4: New file.
37947 2003-10-20 Bruno Haible <bruno@clisp.org>
37949 * lib/wait-process.h: New file, from GNU gettext.
37950 * lib/wait-process.c: New file, from GNU gettext.
37952 2003-10-19 Jim Meyering <jim@meyering.net>
37954 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
37957 2003-10-18 Karl Berry <karl@gnu.org>
37959 * config/config.guess: update from config.
37961 2003-10-16 Paul Eggert <eggert@twinsun.com>
37963 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
37964 (getgroups): First arg is int, not size_t.
37965 Don't let 'free' mangle errno.
37967 2003-10-16 Paul Eggert <eggert@twinsun.com>
37969 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
37971 2003-10-16 Karl Berry <karl@gnu.org>
37973 * config/config.{guess,sub}: update from config.
37975 2003-10-16 Jim Meyering <jim@meyering.net>
37977 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
37980 2003-10-15 Paul Eggert <eggert@twinsun.com>
37982 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
37983 (SIZE_MAX): Remove.
37984 (new_exclude, add_exclude_file): Initial size no longer needs to
37986 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
37987 our own address arithmetic overflow checking.
37989 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
37990 (fnmatch): Do not alloca more than 2000 wide characters;
37991 instead, use malloc for large buffers.
37992 Check for address arithmetic overflow, and return -1
37993 with errno set to ENOMEM in that case.
37994 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
37995 (NEW_PATTERN): Do not alloca more than 8000 bytes;
37996 instead, return -1. Check for address arithmetic overflow.
37998 2003-10-14 Paul Eggert <eggert@twinsun.com>
38000 Handle invalid suffixes and overflow independently, so that
38001 callers can treat them independently as needed. Fix some bugs in
38002 suffix handling, e.g., "100k@" was not diagnosed as an invalid
38003 suffix for a human-readable blocksize. The major caller-visible
38004 change is the addition of a new
38005 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
38006 that both overflow and suffix chars were found.
38008 * lib/human.c (humblock): Don't check separately for invalid suffix
38009 char; that is xstrtoumax's job (now that its bug is fixed).
38010 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
38011 INTMAX_MAX]: New macros.
38012 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
38013 TYPE_MAXIMUM): New macros.
38014 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
38015 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
38016 if overflow occurs, as it's what __strtol does and it's more useful
38018 (__xstrtol): If __strtol reports some error other than ERANGE,
38019 reflect it to the caller as LONGINT_INVALID. If it reports
38020 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
38021 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
38022 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
38024 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
38025 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
38026 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
38027 [defined UINTMAX_MAX]: New macros.
38029 2003-10-14 Bruno Haible <bruno@clisp.org>
38031 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
38033 2003-10-14 Bruno Haible <bruno@clisp.org>
38035 * m4/sig_atomic_t: New file, from GNU gettext.
38036 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
38038 2003-10-14 Bruno Haible <bruno@clisp.org>
38040 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
38041 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
38042 Also use volatile where needed.
38044 2003-10-12 Paul Eggert <eggert@twinsun.com>
38046 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
38047 Change maintainer from Bruno Haible to 'all'.
38049 2003-10-12 Paul Eggert <eggert@twinsun.com>
38051 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
38053 2003-10-12 Paul Eggert <eggert@twinsun.com>
38055 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
38056 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
38057 and define in terms of the other primitives.
38058 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
38059 (SIZE_MAX): Define if not already defined.
38060 (array_size_overflow): New function.
38061 (xalloc_die): Abort instead of exiting if 'error' returns.
38062 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
38063 (xmalloc, xrealloc): Use them.
38064 (xcalloc): Check for address arithmetic overflow.
38065 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
38066 a bit faster than strcpy.
38068 2003-10-10 Simon Josefsson <jas@extundo.com>
38070 * modules/argp (Depends-on): Add restrict and strcase.
38072 2003-10-10 Simon Josefsson <jas@extundo.com>
38074 * m4/argp.m4: Add AC_C_INLINE.
38076 2003-10-08 Paul Eggert <eggert@twinsun.com>
38078 Merge getpass from libc, plus a few fixes.
38080 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
38081 Include <stdbool.h>.
38082 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
38083 __fsetlocking to empty.
38084 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
38085 do include <bits/libc-lock.h>.
38086 Do not include <fcntl.h>; not needed.
38087 [_LIBC]: Include <wchar.h>.
38088 (NOTCANCEL_MODE): New macro.
38089 (flockfile, funlockfile) [_LIBC]: New macros.
38090 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
38091 [!_LIBC]: New macros.
38092 (call_fclose): New function.
38093 (getpass): Use it. Save tty stream separately; this simplifies the
38094 code and makes it more reliable if stdin happens to equal stdout.
38095 Invoke __fsetlocking on tty.
38096 Handle thread cancellation if needed.
38097 Namespace cleanup (use __tcgetattr, __getline).
38098 Use bool for Booleans.
38099 [USE_IN_LIBIO]: Handle wide streams.
38100 [!_LIBC]: Unconditionally do the fseek, since we don't know what
38101 stream might go where.
38103 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
38104 doesn't have to include <stdio.h> before us.
38105 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
38106 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
38107 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
38108 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
38109 if not declared, so that we can use getpass.c code from libc without
38111 (flockfile, ftrylockfile, funlockfile): New macros.
38113 2003-10-08 Paul Eggert <eggert@twinsun.com>
38115 * modules/getpass: Depend on stdbool.
38117 2003-10-08 Paul Eggert <eggert@twinsun.com>
38119 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
38121 2003-10-07 Karl Berry <karl@gnu.org>
38123 * config/config.{guess,sub}: update from config.
38125 2003-10-06 Jim Meyering <jim@meyering.net>
38126 Bruno Haible <bruno@clisp.org>
38128 This lets translators provide better translations for the
38129 "Written by ..." part of --version output.
38130 * lib/version-etc.h: Include stdarg.h.
38131 (version_etc_copyright): Declare as readonly.
38132 (version_etc): Make this function variadic with a NULL-terminated list
38133 of author name strings.
38134 (version_etc_va): New declaration.
38135 * lib/version-etc.c: Include stdarg.h, stdlib.h.
38136 (version_etc_copyright): Declare as readonly.
38137 (version_etc_va): New function. Provide a different translatable string
38138 for each possible number of authors < 10. Abbreviate when there are 10
38140 (version_etc): Make this function variadic. Call version_etc_va.
38141 Suggestion from Gary V. Vaughan.
38143 * lib/long-options.h (parse_long_options): Change prototype: the
38144 authors string is moved to the end and becomes variadic.
38145 * lib/long-options.c: Include stdarg.h.
38146 (parse_long_options): Make this function variadic, too.
38147 Call version_etc_va, not version_etc.
38149 2003-10-06 Bruno Haible <bruno@clisp.org>
38151 * modules/version-etc-2: Remove file.
38152 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
38154 2003-10-06 Bruno Haible <bruno@clisp.org>
38156 * modules/fatal-signal: New file.
38157 * MODULES.html.sh (func_all_modules): Add fatal-signal.
38159 2003-10-06 Bruno Haible <bruno@clisp.org>
38161 * m4/fatal-signal.m4: New file.
38162 * m4/signalblocking.m4: New file, from GNU gettext.
38164 2003-10-06 Bruno Haible <bruno@clisp.org>
38166 * lib/version-etc-2.h: Remove file.
38167 * lib/version-etc-2.c: Remove file.
38169 2003-10-06 Bruno Haible <bruno@clisp.org>
38171 * lib/fatal-signal.h: New file, from GNU gettext.
38172 * lib/fatal-signal.c: New file, from GNU gettext.
38174 2003-10-05 Paul Eggert <eggert@twinsun.com>
38176 * README: Rework advice for preventing empty .o files.
38177 Don't recommend ELIDE constructs. Recommend <stddef.h>,
38180 2003-10-04 Karl Berry <karl@gnu.org>
38182 * lib/argp*: update from libc.
38184 2003-10-04 Karl Berry <karl@gnu.org>
38186 * config/config.{guess,sub}: update from config.
38188 2003-10-02 Bruno Haible <bruno@clisp.org>
38190 * modules/lchown (Include): Add lchown.h.
38191 * modules/time_r (Include): Use "..." syntax.
38192 * modules/xgetdomainname (Include): Add xgetdomainname.h.
38194 2003-10-01 Simon Josefsson <jas@extundo.com>
38196 * MODULES.html.sh (func_all_modules): Move gethostname from section
38197 'based on' to section 'lacking' POSIX:2001.
38199 2003-10-01 Larry Jones <lawrence.jones@eds.com>
38201 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
38202 to output mode on the same stream.
38204 2003-09-29 Paul Eggert <eggert@twinsun.com>
38206 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
38207 Fix arg typo in previous patch.
38209 2003-09-28 Jim Meyering <jim@meyering.net>
38211 * lib/error.c: Correct cpp indentation.
38213 2003-09-27 Paul Eggert <eggert@twinsun.com>
38215 * modules/free: New file.
38217 2003-09-27 Paul Eggert <eggert@twinsun.com>
38219 * m4/free.m4: New file.
38221 2003-09-27 Paul Eggert <eggert@twinsun.com>
38223 * lib/minmax.h (MIN, MAX)
38224 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
38225 Omit the special code that used __typeof__, since we worry that
38226 it could be more trouble than it's worth. See:
38227 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
38228 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
38230 * lib/free.c: New file.
38232 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
38234 Trivial fixes to Makefile.am parts of module listings.
38235 * modules/strstr: Append strstr.h to lib_SOURCES.
38236 * modules/strcase: Likewise, for strcase.h.
38238 2003-09-27 Karl Berry <karl@gnu.org>
38240 * config/mkinstalldirs: update from automake.
38242 2003-09-26 Paul Eggert <eggert@twinsun.com>
38244 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
38245 (error_tail): Do not loop, reallocating temporary buffer, since
38246 the output cannot contain more wide characters than the input
38247 contains bytes, the size must be big enough already. This avoids
38248 one potential size overflow calculation. Check for size overflow
38249 when calculating temporary buffer size. Free temporary buffer
38250 when done, if it was allocated with malloc; this plugs a memory
38251 leak. Remove casts from void * to pointers, that are no longer
38252 needed now that we're assuming C89 or better.
38254 Merge error changes from glibc.
38256 * lib/error.c, error.h: Update copyright notice header to match glibc.
38257 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
38258 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
38259 Disable cancellation while printing error.
38260 * lib/error.h: Prepend __ to parameter names.
38262 2003-09-26 Jim Meyering <jim@meyering.net>
38264 * lib/error.c (error_tail): Move some declarations
38265 into inner scope where the local variables are used.
38267 2003-09-26 Bruno Haible <bruno@clisp.org>
38269 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
38271 Don't define stpncpy through config.h; it's now done through stpncpy.h.
38273 2003-09-26 Bruno Haible <bruno@clisp.org>
38275 * lib/stpncpy.h (gnu_stpncpy): New declaration.
38276 (stpncpy): Define as alias for gnu_stpncpy.
38277 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
38279 2003-09-25 Simon Josefsson <jas@extundo.com>
38281 * lib/xgetdomainname.h: New file.
38282 * lib/xgetdomainname.c: New file.
38284 2003-09-25 Simon Josefsson <jas@extundo.com>
38285 Bruno Haible <bruno@clisp.org>
38287 * modules/getdomainname: New file.
38288 * modules/xgetdomainname: New file.
38289 * MODULES.html.sh (func_all_modules): Add getdomainname,
38292 2003-09-25 Simon Josefsson <jas@extundo.com>
38293 Bruno Haible <bruno@clisp.org>
38295 * m4/getdomainname.m4: New file.
38297 2003-09-25 Simon Josefsson <jas@extundo.com>
38298 Bruno Haible <bruno@clisp.org>
38300 * lib/getdomainname.h: New file.
38301 * lib/getdomainname.c: New file.
38303 2003-09-25 Karl Berry <karl@gnu.org>
38305 * lib/argp-fmtstream.c, argp-help.c: update from libc.
38307 2003-09-25 Karl Berry <karl@gnu.org>
38309 * config/install-sh: update from automake.
38311 2003-09-25 Bruno Haible <bruno@clisp.org>
38313 * modules/version-etc-2: New file, from modules/version-etc with
38315 * MODULES.html.sh (func_all_modules): Add version-etc-2.
38317 2003-09-25 Bruno Haible <bruno@clisp.org>
38319 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
38320 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
38322 2003-09-24 Simon Josefsson <jas@extundo.com>
38324 * modules/xgethostname: Add xgethostname.h.
38326 2003-09-24 Paul Eggert <eggert@twinsun.com>
38328 * lib/linebuffer.c (freebuffer): Don't free the argument, just
38329 the buffer associated with the argument. Bug reported by
38332 2003-09-24 Paul Eggert <eggert@twinsun.com>
38334 * README: Document assumptions that 'int' is at least 32 bits
38335 wide, that integer arithmetic is 2's complement without overflow,
38336 that there are no holes in integer values, that adding sizes of
38337 two nonoverlapping objects can't overflow, and that all-bits-zero
38338 yields scalar zero. Fix spelling and capitalization typos.
38340 2003-09-19 Karl Berry <karl@gnu.org>
38342 * lib/argp.h: update from libc.
38344 2003-09-17 Paul Eggert <eggert@twinsun.com>
38346 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
38347 to avoid spurious warnings like "AC_RUN_IFELSE was called before
38348 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
38350 2003-09-17 Paul Eggert <eggert@twinsun.com>
38352 * gnulib-tool: Use "test -h", not "test -L", for portability
38353 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
38354 (tags_regexp): Remove, since \| doesn't conform to POSIX.
38355 (sed_extract_prog): Issue s commands one-by-one, rather than
38356 using \| in one s command.
38358 2003-09-16 Paul Eggert <eggert@twinsun.com>
38360 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
38361 input error, instead of returning NULL the next time we are called
38362 (and therefore losing track of errno).
38364 2003-09-16 Bruno Haible <bruno@clisp.org>
38366 * gnulib-tool (func_create_testdir): Warn about duplicated
38369 2003-09-15 Paul Eggert <eggert@twinsun.com>
38371 * modules/argmatch, modules/fatal, modules/obstack,
38372 modules/xalloc, modules/xgethostname: Sort dependencies by
38373 importance, not alphabetically.
38375 2003-09-15 Paul Eggert <eggert@twinsun.com>
38377 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
38378 fails, so that the caller gets the proper errno.
38380 * lib/readutmp.c (read_utmp): Likewise.
38381 Check for fstat error. Close stream and free storage
38384 2003-09-14 Karl Berry <karl@gnu.org>
38386 * config/srclist.txt (strdup.c): disable for c89 changes.
38388 2003-09-14 Jim Meyering <jim@meyering.net>
38390 * lib/getloadavg.c: Correct cpp indentation.
38391 * lib/strdup.c: Likewise.
38392 * lib/vasnprintf.c: Likewise.
38394 2003-09-14 Bruno Haible <bruno@clisp.org>
38396 * modules/fwriteerror: New file.
38397 * MODULES.html.sh (func_all_modules): Add fwriteerror.
38399 2003-09-14 Bruno Haible <bruno@clisp.org>
38401 * lib/fwriteerror.h: New file.
38402 * lib/fwriteerror.c: New file.
38404 2003-09-12 Paul Eggert <eggert@twinsun.com>
38406 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
38407 modules/xgethostname, modules/xalloc: Depend on exit.
38409 2003-09-12 Paul Eggert <eggert@twinsun.com>
38411 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
38413 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
38414 and AC_MINIX, too, so that their extensions are available.
38416 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
38417 This macro has been superseded by gl_BACKUPFILE.
38419 More patches to assume C89 or better.
38421 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
38423 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
38425 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
38426 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
38427 Include <string.h>, <stdlib.h> unconditionally.
38428 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
38429 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
38430 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
38431 headers or for string.h.
38432 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
38435 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
38437 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
38438 * m4/userspec.m4 (gl_USERSPEC): Likewise.
38439 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
38440 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
38441 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
38442 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
38444 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
38445 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
38446 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
38448 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
38449 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
38450 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
38453 2003-09-12 Paul Eggert <eggert@twinsun.com>
38455 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
38456 * lib/obstack.c [!defined _LIBC]: Likewise.
38457 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
38458 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
38459 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
38461 More changes to assume C89 or better.
38463 * lib/error.c (error_tail): Assume vprintf.
38465 * lib/argmatch.c (getenv): Remove decl.
38466 * lib/progreloc.c (get_full_program_name): Define via prototype.
38467 * lib/setenv.c (clearenv): Likewise.
38468 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
38470 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
38471 (malloc, memcpy): Remove decls.
38472 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
38473 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
38474 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
38475 (memcpy): Remove macro.
38476 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
38477 (__P): Remove. All uses removed.
38478 (PTR): Remove. All uses changed to void *.
38479 (CHAR_BIT, NULL): Remove.
38480 (spaces, zeros, memset_space, memset_zero)
38481 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
38483 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
38484 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
38485 Define with prototype.
38486 Remove now-unnecessary prototype decl.
38487 (extra_args_spec): Assume ANSI C. All uses changed.
38488 (extra_args_spec_iso): Remove.
38489 (my_strftime, emacs_strftimeu): Define via prototype.
38490 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
38492 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
38493 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
38494 (strtoul, strtol): Remove decls.
38495 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
38497 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
38498 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
38499 (LOCALE_PARAM_PROTO): New macro.
38500 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
38501 (INTERNAL (strtol), strtol): Define with a prototype.
38502 (PARAMS): Remove. All uses removed.
38503 * lib/tempname.c: Include <string.h> unconditionally.
38504 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
38505 * lib/xgethostname.c (main): Define with a prototype.
38506 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
38507 Include <stdlib.h> unconditionally.
38508 (calloc, malloc, realloc, free): Remove decls.
38509 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
38510 Include <stdlib.h> unconditionally. Sort include file names.
38512 (xstrtod): Define with a prototype.
38513 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
38514 (strtol, strtoul): Remove decls.
38516 2003-09-11 Paul Eggert <eggert@twinsun.com>
38518 More patches to assume C89 or better.
38519 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
38520 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
38521 string.h, memchr, STDC_HEADERS.
38523 2003-09-11 Paul Eggert <eggert@twinsun.com>
38525 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
38526 Include <stdlib.h>, <string.h> unconditionally.
38527 Remove now-unnecessary cast to char *.
38528 * lib/strnlen.c: Include <string.h> unconditionally.
38529 * lib/yesno.c (yesno): Define with a prototype.
38531 2003-09-11 Bruno Haible <bruno@clisp.org>
38533 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
38535 2003-09-10 Jim Meyering <jim@meyering.net>
38537 * lib/error.c: Correct indentation of cpp directives.
38539 2003-09-10 Bruno Haible <bruno@clisp.org>
38541 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
38542 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
38543 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
38544 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
38545 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
38546 <stdlib.h> and <string.h> checks.
38547 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
38548 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
38550 2003-09-10 Bruno Haible <bruno@clisp.org>
38552 * lib/strcspn.c: Include <string.h> unconditionally.
38553 * lib/strpbrk.c: Include <string.h> unconditionally.
38554 * lib/strstr.c: Include <string.h> unconditionally.
38555 * lib/unicodeio.c: Include <string.h> unconditionally.
38556 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
38557 * lib/unsetenv.c: Likewise.
38558 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
38559 * lib/yesno.c: Include <stdlib.h> unconditionally.
38560 (rpmatch): Add prototype.
38562 2003-09-09 Paul Eggert <eggert@twinsun.com>
38564 More patches to assume C89 or better.
38565 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
38566 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
38567 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
38569 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
38571 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
38573 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
38575 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
38576 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
38577 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
38579 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
38580 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
38582 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
38584 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
38585 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
38586 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
38587 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
38588 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
38589 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
38591 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
38592 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
38593 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
38594 C headers, or for string.h.
38595 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
38596 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
38597 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
38598 headers, memory.h, stdlib.h, string.h, strings.h.
38599 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
38600 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
38601 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
38603 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
38604 headers, memory.h, string.h.
38605 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
38606 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
38608 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
38610 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
38611 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
38612 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
38613 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
38614 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
38616 2003-09-09 Paul Eggert <eggert@twinsun.com>
38620 * lib/acosl.c (main): Use a prototype.
38621 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
38624 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
38626 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
38627 (getopt, etopt_long, getopt_long_only, _getopt_internal)
38628 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
38630 * lib/getopt.c (const): Remove macro.
38631 Include <string.h> unconditionally.
38632 (my_index): Remove; all uses changed to strchr.
38633 (strlen): Remove decl.
38634 (exchange): Remove forward decl; no longer needed.
38635 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
38636 Define with prototype.
38637 * lib/getopt1.c (const): Remove macro.
38638 (getopt_long, getopt_long_only, main): Define with prototype.
38640 * lib/getugroups.c: Include <string.h> unconditionally.
38642 * lib/getusershell.c: Include <stdlib.h> unconditionally.
38643 (getusershell, setusershell, endusershell, readname, main):
38644 Define with prototypes.
38646 * lib/group-member.c: Include group-member.h first.
38647 Include <stdlib.h> unconditionally.
38649 * lib/hard-locale.c: Include hard-locale.h first.
38650 Include <stdlib.h>, <string.h> unconditionally.
38652 * lib/hash.c (free, malloc): Remove decls.
38653 Include <stdlib.h> unconditionally.
38655 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
38656 (getenv): Do not declare.
38658 * lib/idcache.c: Include <string.h> unconditionally.
38660 * lib/long-options.c: Include long-options.h first, to test interface.
38661 Include <stdlib.h> unconditionally.
38663 * lib/makepath.c: Include makepath.h first, to test interface.
38664 Include <stdlib.h> and <string.h> unconditionally.
38666 * lib/linebuffer.c: Include <stdlib.h>.
38667 (free): Remove decl.
38669 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
38670 stddef.h. rpl_malloc returns void *, not char *.
38671 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
38674 * lib/md5.h: Include <limits.h> unconditionally.
38675 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
38676 (__P): Remove; all uses removed.
38677 * lib/md5.c: Include "md5.h" first.
38678 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
38679 md5_buffer, md5_process_bytes, md5_process_block):
38680 Define with prototypes.
38681 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
38682 * lib/sha.c: Include "sha.h" first.
38683 Include <stdlib.h>, <string.h> unconditionally.
38685 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
38686 * lib/memcmp.c (__ptr_t): Likewise.
38687 * lib/memrchr.c (__ptr_t): Likewise.
38688 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
38689 Include <string.h> unconditionally.
38690 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
38691 * lib/memchr.c: Include <stdlib.h> unconditionally.
38692 * lib/memchr.c (LONG_MAX): Remove.
38693 * lib/memrchr.c (LONG_MAX): Likewise.
38694 * lib/memchr.c (__memchr): Define via a prototype.
38695 * lib/memrchr.c (__memrchr): Likewise.
38696 * lib/memcmp.c (__P): Remove, and remove all uses.
38697 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
38698 Remove forward decls; no longer needed.
38699 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
38700 Use types required by C89 in prototype.
38702 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
38703 * lib/savedir.c: Likewise.
38704 * lib/mkdir.c (free): Remove decl.
38705 * lib/rmdir.c (rmdir): Define with a prototype.
38706 * lib/savedir.c: Include savedir.h first, to test interface.
38708 * lib/mktime.c (STDC_HEADERS): Remove.
38709 Include <stdlib.h>, <string.h> unconditionally.
38711 * lib/modechange.c: Include <stdlib.h> unconditionally.
38712 (malloc): Remove decl.
38714 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
38715 (free): Remove decl.
38717 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
38718 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
38719 (This type really should be intptr_t, but that's a C99ism.)
38720 (_obstack_memcpy): Remove: all uses changed to memcpy.
38721 Include <string.h> unconditionally.
38722 (struct obstack): Assume __STDC__ for types of members
38723 chunkfun, freefun, extra_arg.
38724 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
38725 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
38726 obstack_begin, obstack_specify_allocation,
38727 obstack_specify_allocation_with_arg, obstack_chunkfun,
38728 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
38729 Remove unprototyped decls and the macros that use them.
38730 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
38731 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
38732 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
38733 (defined __STDC__ && __STDC__)]:
38734 Remove nonprototyped code.
38735 Include <stdlib.h> unconditionally.
38736 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
38737 _obstack_allocated_p, _obstack_free, obstack_free,
38738 _obstack_memory_used, print_and_abort):
38739 Define using prototypes.
38740 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
38741 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
38742 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
38743 obstack_next_free, obstack_object_size, obstack_room) [0]:
38744 Remove unused, unprototyped code.
38746 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
38748 * lib/physmem.c (physmem_total, physmem_available, main): Define
38751 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
38752 (main): Define with a prototype.
38754 * lib/posixver.c (getenv): Remove decl.
38756 * lib/putenv.c (malloc): Returns void *, not char *.
38757 Include <string.h> unconditionally.
38758 (strchr, memcpy, NULL): Do not define.
38760 * lib/readtokens.c: Include readtokens.h first, to test interface.
38761 Include <stdlib.h>, <string.h> unconditionally.
38762 (init_tokenbuffer): Define with a prototype.
38764 * lib/regex.c (PARAMS): Remove. All uses removed.
38765 All uses of _RE_ARGS removed, too.
38766 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
38768 (bzero): Assume memset exists.
38769 (memcmp, memcpy, NULL): Remove.
38770 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
38771 char, or assignments to local vars of type signed char.
38772 (init_syntax_once, PREFIX(extract_number_and_incr),
38773 PREFIX(print_partial_compiled_pattern),
38774 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
38775 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
38776 PREFIX(regex_grow_registers), PREFIX(regex_compile),
38777 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
38778 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
38779 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
38780 wcs_compile_range, byte_compile_range, truncate_wchar,
38781 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
38782 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
38783 count_mbs_length, wcs_re_match_2_internal,
38784 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
38785 PREFIX(alt_match_null_string_p),
38786 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
38787 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
38788 regfree, PREFIX(extract_number)): Define with prototype. Remove
38789 now-unnecessary declaration, if any.
38790 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
38792 Remove now-unnecessary casts among pointer types.
38793 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
38795 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
38796 (free): Remove decl.
38798 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
38800 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
38801 (free): Remove decl.
38803 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
38804 * lib/xgetcwd.c: Likewise.
38806 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
38807 (free): Remove decl.
38809 * lib/strchrnul.c (strchrnul): Define with a prototype.
38810 Fix bug: c_in was not converted to char before searching.
38812 The following changes are not K&R related:
38814 * lib/group-member.h: Include <sys/types.h>, so that this file is
38816 * lib/makepath.h: Likewise.
38818 * lib/getusershell.c (readname, default_index, line_size, readname):
38819 Use size_t, not int, for sizes.
38820 (readname): If the size overflows, report an error instead of
38823 2003-09-09 Paul Eggert <eggert@twinsun.com>
38825 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
38828 2003-09-09 Paul Eggert <eggert@twinsun.com>
38830 * README: New section: portability guidelines.
38832 2003-09-09 Derek Robert Price <derek@ximbiot.com>
38834 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
38837 2003-09-09 Derek Robert Price <derek@ximbiot.com>
38839 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
38841 2003-09-08 Paul Eggert <eggert@twinsun.com>
38843 Assume C89 or better; remove K&R cruft.
38844 A few of these changes were first proposed by Derek Robert Price
38845 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
38847 * lib/addext.c: Include <string.h> unconditionally.
38848 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
38849 Don't declare getenv or malloc.
38851 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
38852 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
38854 (find_stack_direction, alloca): Use prototypes.
38856 * lib/atexit.c (atexit): Define using a prototype.
38858 * lib/basename.c, dirname.c, stripslash.c:
38859 Include <string.h> unconditionally.
38861 * lib/bcopy.c: Include <stddef.h>.
38862 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
38864 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
38866 * lib/error.h (error, error_at_line, error_print_progname)
38867 [! (defined (__STDC__) && __STDC__)]: Remove decls.
38868 * lib/error.c: Include error.h first, to check interface.
38869 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
38870 (VA_START): Remove; all uses changeed to va_start.
38871 (exit, strerror): Remove decls.
38872 (error_print_progname): Prototype uncondionally.
38873 Don't include <errno.h>; no longer needed.
38874 (private_strerror): Remove.
38875 (error_tail): Always define.
38876 (error, error_at_line): Assume C89 or better; always use prototypes.
38877 * lib/fatal.c: Include "fatal.h" first, to test interface.
38878 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
38879 (VA_START): Remove; all uses changed to va_start.
38880 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
38882 (exit): Remove decl.
38883 (fatal): Prototype unconditionally. Assume va_start works.
38884 Abort at end, to pacify gcc.
38886 * lib/euidaccess.c (main): Define with a prototype.
38888 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
38890 * lib/exitfail.c: Include <stdlib.h> unconditionally.
38892 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
38894 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
38895 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
38896 (getenv): Remove decl.
38897 (fnmatch): Define using a prototype.
38898 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
38899 (FCT): Define using a prototype.
38901 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
38903 * lib/gethostname.c: Include <stddef.h>.
38904 (gethostname): Define with prototype. Length is size_t, not int.
38906 2003-09-08 Paul Eggert <eggert@twinsun.com>
38908 Assume C89 or better; remove K&R cruft.
38909 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
38910 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
38911 string.h, getenv, malloc.
38912 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
38914 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
38915 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
38916 do not check for strerror.
38917 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
38918 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
38919 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
38920 do not check for doprnt or vprintf.
38921 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
38922 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
38924 2003-09-08 Paul Eggert <eggert@twinsun.com>
38926 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
38927 getversion.c should have been removed then, but was accidentally
38930 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
38931 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
38933 2003-09-08 Karl Berry <karl@gnu.org>
38935 * config/config.sub, config.guess, srclistvars.sh: update from savannah
38936 config, forget about prep.
38938 * config/depcomp, missing: update from automake.
38940 2003-09-07 Paul Eggert <eggert@twinsun.com>
38942 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
38943 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
38945 2003-09-07 Paul Eggert <eggert@twinsun.com>
38947 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
38948 copy_tm_result. Bug reported by Simon Josefsson in
38949 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
38951 2003-09-06 Paul Eggert <eggert@twinsun.com>
38953 * m4/time_r.m4: New file.
38954 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
38955 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
38956 is. Check for timegm declaration.
38957 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
38958 Do not check for gmtime_r.
38959 Replace mktime if __mktime_internal does not exist and if mktime
38960 hasn't been replaced already.
38962 2003-09-06 Paul Eggert <eggert@twinsun.com>
38964 * lib/time_r.c, lib/time_r.h: New files.
38966 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
38968 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
38969 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
38971 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
38973 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
38974 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
38975 Include <time_r.h>.
38977 * lib/timegm.c: Switch to glibc implementation, with the following
38979 [defined HAVE_CONFIG_H]: Include <config.h>.
38980 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
38981 (__mktime_internal) [!defined _LIBC]: New decl.
38982 (__gmtime_r) [!defined _LIBC]: New macro and function.
38983 (timegm): Use a prototype, since gnulib assumes C89.
38984 Do not bother declaring tmp to be const, as it's not really usefu.
38985 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
38986 (timegm): Declare only if HAVE_DECL_TIMEGM.
38988 2003-09-06 Paul Eggert <eggert@twinsun.com>
38990 * MODULES.html.sh (func_all_modules): Add time_r.
38991 * modules/time_r: New file.
38992 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
38993 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
38995 2003-09-03 Paul Eggert <eggert@twinsun.com>
38997 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
38998 Bug reported by Lute Kamstra in
38999 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
39001 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
39002 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
39003 course with correspondingly smaller numbers for tomorrow and
39004 yesterday. From Tadayoshi Funaba. Originally installed into
39005 sh-utils on 1999-08-07, but the patch got lost (I guess during the
39008 2003-08-31 Simon Josefsson <jas@extundo.com>
39010 * modules/timegm: New file.
39011 * MODULES.html.sh (func_all_modules): Add timegm.
39013 2003-08-31 Simon Josefsson <jas@extundo.com>
39015 * m4/timegm.m4: New file.
39017 2003-08-31 Simon Josefsson <jas@extundo.com>
39019 * lib/timegm.h: New file.
39020 * lib/timegm.c: New file. Based on
39021 wget-1.8.2/src/http.c:mktime_from_utc.
39023 2003-08-31 Karl Berry <karl@gnu.org>
39025 * lib/argp.h: update from libc.
39027 2003-08-28 Bruno Haible <bruno@clisp.org>
39029 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
39030 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
39031 followed by '#define fnmatch fnmatch_posix' gives an error.
39033 2003-08-28 Bruno Haible <bruno@clisp.org>
39035 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
39036 warning on QNX, which defines O_BINARY to 000000.
39038 2003-08-27 Jim Meyering <jim@meyering.net>
39040 * m4/mkstemp.m4: Require that the system mkstemp be able to create
39041 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
39042 would fail after 32. Reported by Danny Levinson. Details here:
39043 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
39045 2003-08-24 Bruno Haible <bruno@clisp.org>
39047 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
39048 MSVC7 <stdio.h> is included later.
39050 2003-08-22 Simon Josefsson <jas@extundo.com>
39052 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
39054 2003-08-20 Karl Berry <karl@gnu.org>
39056 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
39058 2003-08-20 Bruno Haible <bruno@clisp.org>
39060 * modules/progname: New file.
39061 * MODULES.html.sh (func_all_modules): Add progname.
39063 2003-08-20 Bruno Haible <bruno@clisp.org>
39065 * lib/progname.h: New file, from GNU gettext.
39066 * lib/progname.c: New file, from GNU gettext.
39067 * lib/progreloc.c: New file, from GNU gettext.
39069 2003-08-19 Jim Meyering <jim@meyering.net>
39071 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
39072 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
39074 2003-08-19 Bruno Haible <bruno@clisp.org>
39076 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
39079 2003-08-19 Bruno Haible <bruno@clisp.org>
39081 * lib/xstrdup.c: Assume <string.h> exists.
39083 2003-08-18 Paul Eggert <eggert@twinsun.com>
39085 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
39088 2003-08-18 Jim Meyering <jim@meyering.net>
39090 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
39091 * m4/lib-ld.m4: Likewise.
39093 2003-08-18 Jim Meyering <jim@meyering.net>
39095 * lib/setenv.h: Indent nested cpp directive.
39096 * lib/vasnprintf.c: Remove trailing blanks.
39098 2003-08-17 Simon Josefsson <jas@extundo.com>
39100 * modules/xstrndup: New file.
39101 * MODULES.html.sh (func_all_modules): Add xstrndup.
39103 2003-08-17 Simon Josefsson <jas@extundo.com>
39105 * modules/argp: Fix autoconf macro name. Add more dependencies.
39107 2003-08-17 Simon Josefsson <jas@extundo.com>
39109 * m4/xstrndup.m4: New file.
39111 2003-08-17 Simon Josefsson <jas@extundo.com>
39113 * m4/argp.m4: New file.
39115 2003-08-17 Simon Josefsson <jas@extundo.com>
39116 Bruno Haible <bruno@clisp.org>
39118 * lib/xstrndup.h: New file.
39119 * lib/xstrndup.c: New file.
39121 2003-08-17 Bruno Haible <bruno@clisp.org>
39123 * modules/strndup (Files, Include): Add lib/strndup.h.
39125 2003-08-17 Bruno Haible <bruno@clisp.org>
39127 * modules/euidaccess (Files): Add lib/euidaccess.h.
39129 2003-08-17 Bruno Haible <bruno@clisp.org>
39131 * lib/strndup.h: New file.
39133 2003-08-17 Bruno Haible <bruno@clisp.org>
39135 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
39136 like AC_GNU_SOURCE.
39137 * modules/extensions (configure.ac): Comment out the invocation of
39138 gl_USE_SYSTEM_EXTENSIONS.
39140 2003-08-16 Paul Eggert <eggert@twinsun.com>
39142 Merges from coreutils, etc.
39143 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
39144 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
39145 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
39147 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
39148 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
39150 2003-08-16 Paul Eggert <eggert@twinsun.com>
39152 Document merge from coreutils.
39153 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
39154 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
39155 * modules/utime: Add m4/utimes-null.m4.
39157 2003-08-16 Paul Eggert <eggert@twinsun.com>
39159 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
39160 space, undoing this 2003-08-12 change:
39161 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
39163 2003-08-16 Paul Eggert <eggert@twinsun.com>
39165 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
39166 strtoul.c from libc, undoing this 2003-08-12 change:
39167 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
39169 2003-08-16 Jim Meyering <jim@meyering.net>
39171 Merges from coreutils.
39172 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
39173 prefix. Adjust cache variables similarly. Create 500 rather than
39174 just 300 files, to exercise bug on Darwin6.5, too.
39175 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
39177 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
39178 AM_SYS_POSIX_TERMIOS.
39179 Reported by mkc@mathdogs.com.
39180 Also change use of $am_cv_sys_posix_termios
39181 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
39182 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
39183 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
39184 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
39185 in /proc/mounts until it finds one with matching device number. This
39186 is unnecessary when the FILE argument *is* a mount point. No stat call
39187 is necessary in that case. So, disable the statvfs-testing code on
39188 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
39189 as RedHat bug# 84846.
39190 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
39191 to 1MB, so as not to render systems with no stack size limit (e.g.,
39192 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
39193 Include <unistd.h>. On some systems,
39194 it is required for the definition of _SC_PAGESIZE.
39196 2003-08-16 Jim Meyering <jim@meyering.net>
39198 Merge from coreutils.
39199 * lib/xstrtoimax.c: #else #if -> #elif.
39200 * lib/xstrtoumax.c: Likewise.
39202 2003-08-16 Jim Meyering <jim@meyering.net>
39204 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
39205 * m4/utimes.m4: Removed.
39206 * m4/utimes-null.m4: Renamed from utimes.m4.
39208 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
39209 to 1MB, so as not to render systems with no stack size limit (e.g.,
39210 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
39211 Include <unistd.h>. On some systems,
39212 it is required for the definition of _SC_PAGESIZE.
39214 2003-08-16 Jim Meyering <jim@meyering.net>
39215 and Paul Eggert <eggert@cs.ucla.edu>
39217 Merges from coreutils, etc.
39219 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
39220 using the latest version from cvs. This avoids problems with #line
39221 directives using a vendor (Sun) compiler.
39222 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
39223 Don't set GETGROUPS_LIB here; now it's
39224 done via getgroups.m4's wrapper function.
39225 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
39226 rather than just in sh-util/configure.in, so that the
39227 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
39229 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
39230 AC_FUNC_GETLOADAVG where to find getloadavg.c.
39231 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
39232 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
39233 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
39234 Remove code that is now done by the newly-required macros.
39235 Append $(EXEEXT) to DF_PROG.
39236 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
39237 Do not invoke or require the following here,
39238 since prereq.m4 or some gnulib .m4 now does this for us:
39239 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
39240 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
39241 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
39242 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
39243 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
39244 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
39245 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
39247 Do not replace the following functions, as this is now the job
39248 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
39249 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
39250 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
39251 atexit getpass, strdup, getpagesize.
39253 Do not check for the following functions, as this is now the job
39254 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
39255 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
39257 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
39258 Check for sys/sysctl.h.
39259 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
39260 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
39261 of checking for ssize_t ourselves.
39263 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
39264 Require every macro that gnulib/modules/* suggests for us.
39265 (jm_PREREQ_ADDEXT): New macro.
39266 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
39267 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
39269 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
39270 (gl_PHYSMEM): Use it.
39271 Also check for `table' function.
39272 Check for new headers and functions.
39273 Add check for sys/sysmp.h.
39274 With suggestions from Kaveh Ghazi.
39275 Ignore headers that are present but cannot be compiled. This
39276 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
39279 2003-08-15 Paul Eggert <eggert@twinsun.com>
39281 Document merge from coreutils.
39282 * modules/userspec: Depend on posixver.
39283 * modules/strftime: Depend on tzset.
39285 2003-08-15 Paul Eggert <eggert@twinsun.com>
39287 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
39288 rather than tab, after '#' in shell-script copyright notices.
39289 Suggested by Bruno Haible.
39291 2003-08-15 Paul Eggert <eggert@twinsun.com>
39293 * config/srclist-update: Use three spaces, rather than tab, after '#'
39294 in shell-script copyright notices. Suggested by Bruno Haible.
39295 Remove unnecessary parenthesization in regular expression.
39297 2003-08-15 Jim Meyering <jim@meyering.net>
39299 Merge from coreutils.
39300 * lib/xgethostname.c: Include <stdlib.h>.
39301 (xghostname): Don't exit for anything other than memory-related
39302 failure; just return NULL.
39303 * lib/userspec.c: Include "posixver.h".
39304 (parse_user_spec): Accept `.' as a separator only
39305 in pre-POSIX-200112 mode.
39306 * lib/strtoimax.c: Use #elif rather than #else #if.
39307 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
39308 Remove function, now that we can rely on a working tzset function.
39309 [!_LIBC]: Ensure that the required autoconf test has been run.
39310 [!defined _NL_CURRENT && HAVE_STRFTIME]:
39311 Use underlying_strftime for %r.
39312 * lib/sha.c: Merge in some clean-up and optimization changes from
39314 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
39315 Ensure that it is a multiple of 64.
39316 Rearrange loop exit tests so as to avoid performing an
39317 additional fread after encountering an error or EOF.
39318 * lib/realloc.c: Update copyright date.
39320 2003-08-15 Jim Meyering <jim@meyering.net>
39321 and Paul Eggert <eggert@twinsun.com>
39323 Merge from coreutils.
39324 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
39325 member but strut utmpx does not. Needed for AIX 4.3.3.
39326 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
39328 2003-08-15 Jim Meyering <jim@meyering.net>
39329 and Paul Eggert <eggert@cs.ucla.edu>
39331 Merges from coreutils, etc.
39332 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
39333 Require gl_FUNC_TZSET_CLOBBER.
39334 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
39335 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
39338 2003-08-14 Paul Eggert <eggert@twinsun.com>
39340 Help the merge from coreutils.
39341 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
39342 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
39343 * m4/tzset.m4: Use it too.
39345 2003-08-14 Paul Eggert <eggert@twinsun.com>
39347 * modules/tzset: New file.
39349 2003-08-14 Jim Meyering <jim@meyering.net>
39351 Merges from coreutils.
39352 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
39353 variable names, rather than @FNMATCH_H@.
39354 * modules/alloca: Likewise for $(ALLOCA_H).
39356 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
39357 the three copies of the literal target, `fnmatch.h'.
39358 * modules/alloca (alloca.h): Likewise.
39360 2003-08-14 Jim Meyering <jim@meyering.net>
39362 Merge from coreutils.
39363 * m4/tzset.m4: New file.
39364 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
39365 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
39366 otherwise, AIX 5.1 systems would end up using the latter.
39367 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
39368 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
39369 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
39370 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
39372 2003-08-14 Jim Meyering <jim@meyering.net>
39374 Merge from coreutils.
39375 * lib/obstack.h: Whitespace changes.
39376 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
39377 and xcalloc return values.
39378 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
39379 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
39380 hang on OSF/1 5.1 for DIR on both local and remote file systems.
39381 Reported by (and fix confirmed by) Nelson H. F. Beebe.
39382 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
39384 Use mntctl's return value to drive the entry-processing loop, since
39385 we can't rely on the value of the vmt_length member in the last
39386 entry. On some systems doing so could result in exhausting
39387 virtual memory. Based in part on a patch from Mike Jetzer.
39389 2003-08-14 Jim Meyering <jim@meyering.net>
39390 and Paul Eggert <eggert@twinsun.com>
39392 Merges from coreutils, plus other fixes.
39393 * lib/physmem.c: Merge in portability changes from gcc/libiberty
39394 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
39395 for credits and details. Thanks to Kaveh Ghazi for helping
39396 to keep these files in sync.
39397 (ARRAY_SIZE): Define it.
39398 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
39399 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
39400 (memcasecmp): Don't assume size_t fits in unsigned int.
39401 Remove casts and duplicate code.
39402 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
39403 (memcpy): Remove definition.
39404 Merge in some clean-up and optimization changes from glibc.
39405 [BLOCKSIZE]: Move definition to top of file.
39406 Ensure that it is a multiple of 64.
39407 Rearrange loop exit tests so as to avoid performing an
39408 additional fread after encountering an error or EOF.
39409 * lib/md5.h (md5_uintptr): Define.
39410 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
39411 return to the initial working directory. Preserve errno
39413 * lib/idcache.c: Include "xalloc.h".
39414 (xmalloc, xrealloc): Remove decls.
39415 (getuser): Remove casts no longer required in C89.
39416 * lib/human.c: Include stdio.h, for sprintf.
39417 * lib/group-member.c: Include "xalloc.h".
39418 (xmalloc, xrealloc): Remove decls.
39419 (get_group_info): Remove casts no longer required in C89.
39420 * lib/getusershell.c (readname): Remove casts no longer required in
39422 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
39423 * lib/getline.c: Whitespace fix, from coreutils.
39425 2003-08-13 Paul Eggert <eggert@twinsun.com>
39427 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
39430 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
39431 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
39432 Undo previous (whitespace-only) change.
39434 2003-08-13 Paul Eggert <eggert@twinsun.com>
39436 * lib/exclude.c: Include <ctype.h>
39437 (IN_CTYPE_DOMAIN): New macro.
39438 (is_space): New fn.
39439 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
39442 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
39443 Undo previous (whitespace-only) change.
39445 2003-08-13 Paul Eggert <eggert@twinsun.com>
39447 * config/srclist-update: Change update back to the old behavior,
39448 leaving whitespace alone. Use one 'sed' command rather than a
39450 (fixlicense): Now a variable, not a function.
39451 (remove_trailing_blanks): Remove.
39452 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
39453 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
39454 Undo previous (whitespace-only) change.
39456 2003-08-12 Paul Eggert <eggert@twinsun.com>
39458 Merge from coreutils.
39459 * modules/euidaccess: Add lib_SOURCES, include for new
39462 2003-08-12 Paul Eggert <eggert@twinsun.com>
39464 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
39465 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
39466 Normalize leading white space and remove trailing white space.
39468 Merge from coreutils
39469 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
39471 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
39472 0.12.1. These files are now being upgraded automatically by
39473 ../config/srclist-update.
39475 2003-08-12 Paul Eggert <eggert@twinsun.com>
39477 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
39478 Normalize leading white space and remove trailing white space.
39479 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
39480 notice, as per ../config/srclist-update.
39482 Merge from coreutils.
39483 * lib/euidaccess.h: New file.
39484 * lib/euidaccess.c: Include it.
39485 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
39486 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
39487 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
39489 2003-08-12 Paul Eggert <eggert@twinsun.com>
39491 * config/srclist-update: Add copyright notice.
39492 (remove_id_lines, remove_trailing_blanks): New constants.
39493 (fixfile): Use them to normalize spacing a bit in copied files.
39494 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
39495 Normalize leading white space and remove trailing white space.
39497 * config/texinfo.tex: Sync with texinfo.
39499 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
39500 strtoul.c from libc, to merge coreutils whitespace changes.
39502 * config/srclist.txt: Get the following m4 files from gettext:
39503 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
39504 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
39505 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
39508 2003-08-12 Karl Berry <karl@gnu.org>
39510 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
39513 2003-08-11 Paul Eggert <eggert@twinsun.com>
39515 * modules/gnu-source, m4/gnu-source.m4:
39516 Remove; we're assuming Autoconf 2.54 or later now.
39517 Suggested by Bruno Haible.
39518 * MODULES.html.sh (func_all_modules): Remove gnu-source.
39520 2003-08-11 Bruno Haible <bruno@clisp.org>
39522 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
39524 2003-08-11 Bruno Haible <bruno@clisp.org>
39526 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
39527 (vasnprintf): Use it instead of wcslen.
39529 2003-08-11 Bruno Haible <bruno@clisp.org>
39531 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
39532 value to ensure that _Bool promotes to int. Use #define for _Bool when
39533 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
39535 2003-08-10 Karl Berry <karl@gnu.org>
39537 * lib/regex.h: update from libc (whitespace fix).
39539 2003-08-09 Paul Eggert <eggert@twinsun.com>
39541 Merge some files from coreutils. These changes were
39542 originally made by Jim Meyering.
39543 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
39544 many older Unixes require this.
39545 * lib/alloca.c (alloca): Remove cast to argument of free;
39546 no longer needed in C89.
39547 * lib/alloca_.h, regex.h: Fix white space to match
39548 what GNU indent does.
39550 2003-08-09 Paul Eggert <eggert@twinsun.com>
39552 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
39553 apparently Emacs's Unicode mode got confused before my 2003-08-05
39556 2003-08-08 Paul Eggert <eggert@twinsun.com>
39558 * m4/extensions.m4: New file.
39559 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
39560 Require gl_USE_SYSTEM_EXTENSIONS.
39561 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
39562 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
39564 2003-08-08 Paul Eggert <eggert@twinsun.com>
39566 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
39567 * modules/extensions, modules/gnu-source: New files.
39568 * modules/timespec, modules/unlocked-io: Depend on extensions.
39570 2003-08-07 Paul Eggert <eggert@twinsun.com>
39572 * modules/restrict: New file.
39573 * MODULES.html.sh (func_all_modules): Add restrict.
39574 * modules/regex: Depend on restrict.
39576 2003-08-07 Paul Eggert <eggert@twinsun.com>
39578 * m4/restrict.m4: New file.
39579 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
39581 2003-08-07 Bruno Haible <bruno@clisp.org>
39583 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
39584 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
39586 2003-08-07 Bruno Haible <bruno@clisp.org>
39588 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
39589 makes the module 'getndelim2' compatible with the module 'getline'.
39591 2003-08-05 Paul Eggert <eggert@twinsun.com>
39593 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
39594 byte with "\201" to avoid glitches when editing that source file
39595 with multi-gnome-terminal.
39597 2003-08-05 Paul Eggert <eggert@twinsun.com>
39599 * lib/bumpalloc.h: Remove.
39601 2003-08-05 Paul Eggert <eggert@twinsun.com>
39603 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
39604 * modules/bumpalloc: Remove.
39606 2003-08-04 Paul Eggert <eggert@twinsun.com>
39608 * lib/getloadavg.c: Change copyright notice and spacing to conform to
39611 Merge from coreutils.
39612 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
39614 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
39615 from Karl Berry, implemented by Jim Meyering.
39616 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
39617 from Dmitry V. Levin.
39618 Remove anachronistic cast of xrealloc.
39619 * lib/fnmatch_.h (__const): Remove. Use 'const'.
39620 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
39621 type. Otherwise, it wouldn't compile with at least /bin/cc on
39622 ymp-cray-unicos9.0.2.X.
39623 Combine two mostly-identical uses of alloca into one.
39624 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
39626 2003-08-04 Dave Love <d.love@dl.ac.uk>
39630 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
39631 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
39632 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
39633 obsolete NLIST_NAME_UNION.
39634 [__GNU__]: Undef BSD and FSCALE.
39635 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
39637 2003-08-03 Paul Eggert <eggert@twinsun.com>
39639 * lib/stdbool_.h (_Bool): Make it signed char, instead of
39640 an enum type, so that it's guaranteed to promote to int. See:
39641 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
39643 2003-08-03 Karl Berry <karl@gnu.org>
39645 * config/depcomp: update from automake.
39647 2003-07-31 Paul Eggert <eggert@twinsun.com>
39649 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
39650 (strerror): Don't assume that a printable int fits in 14 bytes.
39652 2003-07-31 Bruno Haible <bruno@clisp.org>
39654 * modules/getpass-gnu: New file.
39655 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
39657 2003-07-31 Bruno Haible <bruno@clisp.org>
39659 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
39661 2003-07-24 Karl Berry <karl@gnu.org>
39663 * config/missing: update from automake.
39665 2003-07-24 Derek Robert Price <derek@ximbiot.com>
39666 Bruno Haible <bruno@clisp.org>
39668 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
39669 * lib/getline.c (getline, getdelim): Likewise.
39670 Remove _GNU_SOURCE define; now it's defined in config.h through
39673 2003-07-23 Karl Berry <karl@gnu.org>
39675 * config/config.sub: update from prep.
39677 2003-07-22 Paul Eggert <eggert@twinsun.com>
39679 * modules/xalloc (Depends-on): Add exitfail.
39680 * modules/xmemcoll: Likewise.
39682 2003-07-22 Paul Eggert <eggert@twinsun.com>
39684 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
39685 over-parenthesization in macros.
39687 Sync with coreutils.
39689 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
39692 Use `exit_failure' for xalloc and xmemcoll instead of their own
39693 private exit-failure variables.
39694 * lib/xalloc.h (xalloc_exit_failure): Remove.
39695 * lib/xmalloc.c: Likewise. Include exitfail.h.
39696 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
39697 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
39698 * lib/xmemcoll.c: Likewise. Include exitfail.h.
39699 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
39701 2003-07-20 Jim Meyering <jim@meyering.net>
39703 * modules/closeout (Depends-on): Add exitfail.
39704 Suggestion from Bruno Haible.
39706 2003-07-19 Karl Berry <karl@gnu.org>
39708 * config/config.sub: update from prep.
39710 2003-07-18 Paul Eggert <eggert@twinsun.com>
39712 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
39714 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
39715 to test that it can stand by itself. Include "exitfail.h".
39716 Clients should set exit_failure instead.
39717 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
39719 2003-07-18 Bruno Haible <bruno@clisp.org>
39721 * modules/getndelim2: New file.
39722 * modules/getline: Share files with module getndelim2.
39723 * modules/getnline: Depend on getndelim2 instead of sharing files with
39724 it. Add getnline.c to lib_SOURCES.
39725 * MODULES.html.sh (func_all_modules): Add getndelim2.
39727 2003-07-18 Bruno Haible <bruno@clisp.org>
39729 * m4/getndelim2.m4: New file.
39730 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
39731 invoke gl_PREREQ_GETNDELIM2.
39732 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
39733 gl_PREREQ_GETNDELIM2.
39734 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
39737 2003-07-18 Bruno Haible <bruno@clisp.org>
39739 * lib/getndelim2.h: New file.
39740 * lib/getndelim2.c: Make into a module of its own. Include config.h,
39742 (getndelim2): Make non-static. Change return type to ssize_t.
39743 * lib/getline.h: Change argument names.
39744 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
39745 * lib/getnline.c: Include getndelim2.h.
39747 2003-07-18 Andreas Schwab <schwab@suse.de>
39749 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
39751 2003-07-17 Karl Berry <karl@gnu.org>
39753 * config/config.sub: update from prep.
39755 2003-07-17 Bruno Haible <bruno@clisp.org>
39757 * modules/getnline: New file.
39758 * modules/getline: Add lib/getndelim2.c to source file list.
39759 * MODULES.html.sh (func_all_modules): Add getnline.
39761 2003-07-17 Bruno Haible <bruno@clisp.org>
39763 * m4/getnline.m4: New file.
39765 2003-07-17 Bruno Haible <bruno@clisp.org>
39767 * m4/Makefile.am.in: Remove file.
39768 * m4/Makefile.am: Remove file.
39769 * m4/Makefile.in: Remove file.
39771 2003-07-17 Bruno Haible <bruno@clisp.org>
39773 * lib/getnline.h: New file.
39774 * lib/getnline.c: New file.
39775 * lib/getndelim2.c: New file, extracted from getline.c.
39776 (getndelim2): Renamed from getdelim2, with added nmax argument.
39777 * lib/getline.c: Include getndelim2.c.
39778 (getdelim2): Moved out to getndelim2.c.
39779 (getline, getdelim): Update.
39781 2003-07-17 Bruno Haible <bruno@clisp.org>
39783 * lib/Makefile.am: Remove file.
39784 * lib/Makefile.in: Remove file.
39786 2003-07-17 Bruno Haible <bruno@clisp.org>
39788 * configure.in: Remove file.
39789 * Makefile.in: Remove file.
39791 2003-07-17 Bruno Haible <bruno@clisp.org>
39793 * MODULES.html.sh: Put the </BODY> right before </HTML>.
39795 2003-07-16 Karl Berry <karl@gnu.org>
39797 * config/srclist-update: was running fixlicense twice, which caused
39798 texinfo.tex to be nullified for some reason. Simplify,
39799 $gplsrc is no longer needed as far as I can see?
39801 2003-07-16 Jim Meyering <jim@meyering.net>
39803 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
39805 2003-07-15 Paul Eggert <eggert@twinsun.com>
39807 * config/srclist.txt: Get the following files from gettext-runtime/intl
39808 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
39809 ref-del.sin. From Bruno Haible.
39810 * config/srclist-update (fixfile): Change grep pattern again, since the
39811 previous fix didn't work (there was another trailing $). Use
39812 '[$]' to escape the $s.
39814 2003-07-15 Karl Berry <karl@gnu.org>
39816 * lib/vasnprintf.c: update from gettext.
39818 2003-07-15 Karl Berry <karl@gnu.org>
39820 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
39821 gets expanded when surrounded by '$'.
39823 2003-07-15 Jim Meyering <jim@meyering.net>
39825 * modules/save-cwd: Don't depend on error. From Derek Price.
39827 2003-07-15 Jim Meyering <jim@meyering.net>
39829 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
39831 2003-07-14 Simon Josefsson <jas@extundo.com>
39833 * modules/mempcpy: New file.
39834 * MODULES.html.sh (func_all_modules): Add mempcpy.
39836 2003-07-14 Simon Josefsson <jas@extundo.com>
39838 * m4/mempcpy.m4: New file.
39840 2003-07-14 Simon Josefsson <jas@extundo.com>
39842 * lib/mempcpy.h: New file.
39843 * lib/mempcpy.c: New file.
39845 2003-07-14 Paul Eggert <eggert@twinsun.com>
39847 * modules/getdate, modules/posixtm: Depend on mktime.
39849 2003-07-14 Paul Eggert <eggert@twinsun.com>
39851 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
39852 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
39853 unicodeio.c, unicodeio.h, unlocked-io.h:
39854 Switch from LGPL to GPL.
39856 2003-07-14 Paul Eggert <eggert@twinsun.com>
39858 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
39859 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
39860 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
39861 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
39862 vasprintf.c, vasprintf.h: Regenerate. These files are now being
39863 updated automatically by ../config/srclist-update. This changes
39864 their license from LPGL to GPL.
39866 2003-07-14 Paul Eggert <eggert@twinsun.com>
39868 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
39869 assumed to refer to the root of the most recent stable gettext version.
39870 * config/srclistvars.sh: Add defaults for eggert.
39871 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
39872 Match "This program" as well as "The program". This is needed
39875 2003-07-14 Jim Meyering <jim@meyering.net>
39877 Don't emit diagnostics. Let callers do that.
39878 * lib/save-cwd.c: Don't include "error.h".
39879 (save_cwd): Don't call error. Ensure that errno is valid
39880 when returning nonzero.
39882 * lib/save-cwd.h (restore_cwd): Update prototype.
39883 * lib/save-cwd.c (restore_cwd): Remove two parameters.
39884 Simplify. Don't call error upon failure. Let callers do that.
39885 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
39886 when auditing is enabled. But don't bother updating the #if.
39888 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
39890 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
39891 it breaks C++ compilation.
39892 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
39894 2003-07-10 Simon Josefsson <jas@extundo.com>
39896 * modules/strchrnul (Makefile.am): Add strchrnul.h.
39898 2003-07-10 Jim Meyering <jim@meyering.net>
39900 * m4/clock_time.m4: Remove trailing blank.
39901 * m4/intmax_t.m4: Likewise.
39903 2003-07-10 Jim Meyering <jim@meyering.net>
39905 * lib/vasnprintf.c: Remove trailing blanks.
39906 Make cpp indentation consistent.
39908 2003-07-09 Paul Eggert <eggert@twinsun.com>
39910 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
39911 posixver.c, strftime.c, strnlen.c, strverscmp.c:
39912 Switch from LGPL to GPL.
39914 2003-07-09 Paul Eggert <eggert@twinsun.com>
39916 * config/srclist.txt: Sort sublists. Add
39917 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
39918 that differ from gnulib for one reason or another; we'd like this list
39919 to be smaller but for now let's document what we have.
39921 2003-07-08 Paul Eggert <eggert@twinsun.com>
39923 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
39924 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
39925 and sweeter "eval x=$x".
39926 * config/srclist.txt: Get lib/argp* from glibc.
39928 2003-07-07 Paul Eggert <eggert@twinsun.com>
39930 * lib/mktime.c: Fix some boundary cases and remove need for floating
39933 Issue a compile-time diagnostic if time_t is floating point, or if
39934 two's complement arithmetic is not in effect, or if arithmetic
39935 right shift does not propagate the sign. These assumptions were
39936 all in the original code but they weren't checked.
39938 (TIME_T_MIDPOINT, verify): New macros.
39939 (__isleap): Remove; it has integer overflow problems.
39940 (leapyear): New function, without those problems.
39941 (ydhms_tm_diff): Remove; splitting into two parts.
39942 (ydhms_diff): New function, containing the arithmetic part of
39943 the old ydhms_tm_diff function. Issue a compile-time
39944 diagnostic if we are not using C99 integer division.
39945 Avoid casts when possible.
39946 (guess_time_tm): New function, containing the checking part of
39947 the old ydhms_tm_diff function. Return the new value, rather than
39948 the difference between it and the old. Accept a new argument T
39949 so that *T specifies the old value. Check for overflow in the result.
39951 (__mktime_internal): Use a time_t offset, not a long int offset.
39952 This undoes the 2003-06-04 change, which is no longer needed now
39953 that we have better overflow checking.
39954 (localtime_offset): Likewise.
39956 (__mktime_internal): Avoid harmful overflow on hosts where time_t
39957 and long are 64-bit but int is only 32-bit.
39958 (ydhms_diff): Use long int to store year1 and yday1.
39959 Issue a compile-time diagnostic if long int is not wide enough.
39961 (__mktime_internal): Use long int to store adjusted year and yday.
39962 Use plain C rather than preprocessor commands, if that doesn't
39964 Check for overflow (and try to repair) after each probe
39965 rather than checking only at the very end. This avoids some bugs
39966 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
39967 does not equal GMT offset at maximum time).
39968 Use integer to check for overflow rather than floating point; this
39969 is more portable to non-IEEE hosts, and is a tad faster.
39970 When we detect that we are oscillating between two values,
39971 don't check whether tm_isdst has the requested value, since
39972 we already know the answer. When tm_isdst has the wrong value,
39973 use a different heuristic to find the right one, based on the
39974 extreme values actually observed in practice in tz2003a,
39975 rather than the (overly optimistic) "previous 3 calendar quarters".
39977 (not_equal_tm, print_tm, check_result): Use "const T" rather than
39978 "T const" to accommodate glibc style.
39979 (check_result): Use less-confusing report format. "long" -> "long int.
39981 Don't loop if the iteration overflows time_t.
39982 Allow a negative step in the iteration.
39984 2003-07-06 Karl Berry <karl@gnu.org>
39986 * config/depcomp: update from automake.
39987 * config/config.sub: update from prep.
39989 2003-07-03 Karl Berry <karl@gnu.org>
39991 * config/config.guess: update from prep.
39993 2003-07-01 Paul Eggert <eggert@twinsun.com>
39995 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
39996 xreadlink.c now includes it unconditionally.
39998 2003-07-01 Paul Eggert <eggert@twinsun.com>
40000 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
40001 having it depend on HAVE_SYS_TYPES_H.
40003 2003-07-01 Bruno Haible <bruno@clisp.org>
40005 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
40006 <sys/types.h> should be sufficient.
40007 Reported by Paul Eggert.
40009 2003-06-26 Karl Berry <karl@gnu.org>
40011 * config/depcomp: update from automake.
40013 2003-06-26 Bruno Haible <bruno@clisp.org>
40015 * modules/human: Depend on module stdbool.
40017 2003-06-25 Bruno Haible <bruno@clisp.org>
40019 * modules/readlink: New file.
40020 * modules/xreadlink: Depend on it.
40021 * MODULES.html.sh (func_all_modules): Add readlink.
40023 2003-06-25 Bruno Haible <bruno@clisp.org>
40025 * m4/readlink.m4: New file.
40027 2003-06-25 Bruno Haible <bruno@clisp.org>
40029 * lib/readlink.c: New file.
40031 2003-06-22 Karl Berry <karl@gnu.org>
40033 * config/srclist.txt: update mkinstalldirs from automake.
40034 * config/mkinstalldirs: update.
40036 2003-06-22 Bruno Haible <bruno@clisp.org>
40038 Portability to mingw32.
40039 * m4/ssize_t.m4: New file, from GNU gettext.
40040 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
40041 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
40043 2003-06-22 Bruno Haible <bruno@clisp.org>
40045 * modules/safe-read: Add m4/ssize_t.m4.
40046 * modules/xreadlink: Add m4/ssize_t.m4.
40048 2003-06-20 Bruno Haible <bruno@clisp.org>
40050 Assume C89, so PARAMS isn't needed.
40051 * lib/unicodeio.h (PARAMS): Remove.
40052 * lib/unicodeio.c: Don't use PARAMS.
40054 2003-06-18 Karl Berry <karl@gnu.org>
40056 * config/config.{guess,sub}: update from prep.
40058 2003-06-18 Jim Meyering <jim@meyering.net>
40060 Merge changes from coreutils.
40061 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
40062 Remove explicit declarations of xmalloc and realloc.
40064 (read_utmp): Remove anachronistic cast of xmalloc.
40066 2003-06-17 Paul Eggert <eggert@twinsun.com>
40068 Assume C89, so PARAMS isn't needed.
40069 * lib/backupfile.h (PARAMS): Remove. All uses removed.
40070 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
40071 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
40072 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
40073 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
40074 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
40075 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
40076 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
40077 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
40078 lib/xstrtod.h, lib/xstrtol.h: Likewise.
40079 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
40080 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
40081 no longer needed. Anyway, config.h should always be included before any
40084 2003-06-11 Simon Josefsson <jas@extundo.com>
40086 * modules/sysexits: New file.
40087 * MODULES.html.sh (func_all_modules): Add sysexits.
40089 2003-06-11 Simon Josefsson <jas@extundo.com>
40091 * lib/sysexit_.h: New file.
40093 2003-06-11 Derek Price <derek@ximbiot.com>
40095 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
40098 2003-06-11 Bruno Haible <bruno@clisp.org>
40100 * m4/sysexits.m4: New file.
40102 2003-06-10 Simon Josefsson <jas@extundo.com>
40104 * lib/argp.h: New file, from glibc.
40105 * lib/argp-ba.c: New file, from glibc.
40106 * lib/argp-eexst.c: New file, from glibc.
40107 * lib/argp-fmtstream.c: New file, from glibc.
40108 * lib/argp-fmtstream.h: New file, from glibc.
40109 * lib/argp-fs-xinl.c: New file, from glibc.
40110 * lib/argp-help.c: New file, from glibc.
40111 * lib/argp-namefrob.h: New file, from glibc.
40112 * lib/argp-parse.c: New file, from glibc.
40113 * lib/argp-pv.c: New file, from glibc.
40114 * lib/argp-pvh.c: New file, from glibc.
40115 * lib/argp-xinl.c: New file, from glibc.
40117 2003-06-10 Simon Josefsson <jas@extundo.com>
40119 * modules/strchrnul: New file.
40121 2003-06-10 Simon Josefsson <jas@extundo.com>
40123 * modules/argp: New file.
40125 2003-06-10 Simon Josefsson <jas@extundo.com>
40127 * m4/strchrnul.m4: New file.
40129 2003-06-10 Simon Josefsson <jas@extundo.com>
40131 * lib/strchrnul.h: New file.
40132 * lib/strchrnul.c: New file.
40134 2003-06-10 Bruno Haible <bruno@clisp.org>
40136 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
40138 2003-06-07 Karl Berry <karl@gnu.org>
40140 * config/config.{guess,sub}: update from prep.
40142 2003-06-07 Jim Meyering <jim@meyering.net>
40144 * modules/strtod: Use $(...) notation, not @...@ for
40145 AC_REPLACE'd variables.
40146 * modules/localcharset: Likewise.
40148 2003-06-07 Jim Meyering <jim@meyering.net>
40150 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
40151 in place of my name in the copyright comment.
40152 Remove definition and uses of __P.
40155 * lib/stat.c: Don't declare xmalloc explicitly.
40156 Instead, include "xalloc.h".
40157 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
40158 xrealloc, and xcalloc return values.
40159 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
40161 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
40163 2003-06-07 Bruno Haible <bruno@clisp.org>
40165 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
40166 avoid AC_CONFIG_LINKS.
40167 * modules/fnmatch (Makefile.am): Use explicit creation rule for
40168 fnmatch.h, to avoid AC_CONFIG_LINKS.
40169 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
40171 2003-06-07 Bruno Haible <bruno@clisp.org>
40173 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
40174 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
40175 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
40177 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
40178 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
40181 2003-06-06 Jim Meyering <jim@meyering.net>
40183 Merge from coreutils.
40184 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
40185 Consolidate declarations and initializations of *_base* locals.
40187 Merge from coreutils.
40188 This avoids a core dump on systems without GNU putenv,
40189 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
40190 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
40191 (unsetenv): New static function, from GNU libc.
40192 (rpl_putenv): Use it.
40194 * lib/modechange.c: Remove trailing blanks.
40196 Merge from coreutils.
40197 * lib/fsusage.c: Remove declaration of statfs.
40198 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
40200 * lib/posixtm.c: Include <stdbool.h> unconditionally.
40202 2003-06-06 Jim Meyering <jim@meyering.net>
40204 * lib/stdbool_.h: Renamed from stdbool.h.in.
40206 2003-06-06 Jim Meyering <jim@meyering.net>
40207 Bruno Haible <bruno@clisp.org>
40209 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
40210 Adjust Makefile.am snippet not to redirect directly to target.
40211 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
40213 2003-06-05 Paul Eggert <eggert@twinsun.com>
40215 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
40216 mismatch, look in future quarters as well as past. This fixes a
40217 bug when processing fall-backwards gaps immediately after a long
40218 period of daylight-saving time.
40220 * lib/mktime.c: Assume freestanding C89 or better.
40221 (HAVE_LIMITS_H): Remove. Assume it's 1.
40222 (__P): Remove; not used.
40223 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
40224 (mktime, not_equal_tm, print_tm, check_result,
40225 main): Use prototypes. Use const * where appropriate.
40226 (main): Fix typo in testing code that uncovered by above changes.
40227 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
40229 2003-06-04 Paul Eggert <eggert@twinsun.com>
40231 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
40232 locale.h, localeconv. This merges changes from coreutils.
40234 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
40235 It can be removed after the next Autoconf is released.
40236 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
40239 2003-06-04 Paul Eggert <eggert@twinsun.com>
40241 * lib/mktime.c: Fix Debian bug 177940
40242 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
40243 (localtime_offset): Now long int, not time_t, because we want it
40244 to be guaranteed to be signed. All uses changed.
40245 (__mktime_internal): If overflow would occur when adding offset,
40248 Merge 'human' changes from coreutils. Rewrite to support
40249 locale-specific notations like thousands separators.
40250 * lib/human.c: Simplify authorship notice.
40251 Include human.h immediately after config.h.
40252 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
40253 <limits.h>: Do not include, since human.h does.
40254 (SIZE_MAX, UINTMAX_MAX): New macros.
40255 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
40256 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
40257 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
40258 (power_letter): Renamed from suffixes.
40259 (generate_suffix_backwards): Remove.
40260 (adjust_value): Now takes int style (because of human.h changes)
40261 and long double value (for greater precision on some platforms).
40262 (group_number): New function.
40263 (human_readable): Use it. Use integer options, not enum.
40264 Put the options before the sizes in the arg list.
40265 Support all the new options.
40266 The old human_readable function has been removed;
40267 use inttostr.h instead.
40268 (human_readable, default_block_size, humblock):
40269 Use uintmax_t, not int, for block sizes.
40270 (human_readable_inexact, block_size_types): Remove.
40271 (block_size_opts): New constant.
40272 (human_options): Renamed from human_block_size, with new signature
40273 that allows block sizes up to UINTMAX_MAX. All callers changed.
40274 * lib/human.h: Add copyright and authorship notice.
40275 Include <limits.h> and <stdbool.h> unconditionally.
40276 (PARAMS): Remove. All uses removed.
40277 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
40278 (enum human_inexact_style): Remove tag; now a nameless enum.
40279 (human_floor, human_ceiling, human_round_to_even): Now have
40280 values 2, 0, 1 rather than -1, 1, 0.
40281 (human_group_digits, human_suppress_point_zero, human_autoscale,
40282 human_base_1024, human_SI, human_B): New constants.
40283 (human_readable_inexact, human_block_size): Remove.
40284 (human_readable): Size args are now uintmax_t, not int.
40285 (human_options): New decl.
40287 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
40288 unnecessary now that we assume C89 or better. This change
40289 imported from coreutils.
40291 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
40292 arbitrarily. This is the same patch as 2003-05-28, but it got lost
40293 in the 2003-05-30 sync from glibc.
40295 .h files should stand alone, but we shouldn't include <sys/types.h>
40296 if we can get away with just <stddef.h>.
40298 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
40299 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
40300 rather than <sys/types.h>, as we merely need size_t.
40301 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
40303 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
40304 Include <stdio.h>, to get FILE.
40305 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
40306 memcasecmp.h has included <stddef.h> and all we need is size_t.
40307 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
40308 our interface, instead of including <sys/types.h>
40310 2003-06-04 Paul Eggert <eggert@twinsun.com>
40312 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
40313 now, as glibc mktime is buggy on non-glibc systems.
40315 2003-06-03 Karl Berry <karl@gnu.org>
40317 * config/config.sub: update from prep.
40319 2003-06-02 Paul Eggert <eggert@twinsun.com>
40322 Fix some minor time-related bugs with POSIX time arguments.
40323 Some valid time stamps were being rejected (notably -1, and
40324 time stamps before 1900 on 64-bit hosts). And some invalid
40325 time stamps were being accepted, e.g. September 31.
40327 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
40328 that we can return (time_t) -1 successfully.
40329 * lib/posixtm.c: Likewise.
40330 [HAVE_STDBOOL_H]: Include <stdbool.h>.
40331 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
40332 (t): Remove static var.
40333 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
40334 of static var. All uses changed.
40335 (year): Do not reject years before 1900; they can occur with
40337 (posix_time_parse): Do not check for out-of-range components;
40338 that is now the caller's responsibility, since our checks were
40339 only approximations.
40340 (posixtime): Use mktime to check for out-of-range components,
40341 since it knows them exactly.
40342 If mktime returns (time_t) -1, check whether an error actually occurred
40343 by invoking localtime on -1.
40344 (main) [TEST_POSIXTIME]: Check for input data errors, and report
40345 posixtime failures better.
40346 Improve the test data (in comments only).
40348 2003-06-02 Karl Berry <karl@gnu.org>
40350 * config/mkinstalldirs (version): new variable.
40351 (--version): new option.
40352 (usage): improve message.
40354 2003-05-30 Karl Berry <karl@gnu.org>
40356 * lib/mktime.c: update from libc.
40358 2003-05-30 Bruno Haible <bruno@clisp.org>
40360 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
40361 * config/config.rpath: Upgrade to gettext-0.12.1.
40363 2003-05-30 Bruno Haible <bruno@clisp.org>
40365 * m4/gettext.m4: Upgrade to gettext-0.12.1.
40366 * m4/nls.m4: New file, from gettext-0.12.1.
40367 * m4/po.m4: New file, from gettext-0.12.1.
40368 * m4/progtest.m4: Upgrade to gettext-0.12.1.
40370 2003-05-30 Bruno Haible <bruno@clisp.org>
40372 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
40373 * lib/localcharset.h: Likewise.
40374 * lib/localcharset.c: Likewise.
40376 2003-05-29 Karl Berry <karl@gnu.org>
40378 * config/config.rpath: update from gettext.
40380 2003-05-28 Paul Eggert <eggert@twinsun.com>
40382 Assume the headers required for C89 freestanding compilers.
40383 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
40384 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
40385 * m4/human.m4 (gl_HUMAN): Likewise.
40386 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
40387 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
40388 * m4/userspec.m4 (gl_USERSPEC): Likewise.
40389 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
40390 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
40391 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
40393 2003-05-28 Paul Eggert <eggert@twinsun.com>
40395 Assume the headers required for C89 freestanding compilers.
40396 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
40397 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
40398 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
40399 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
40400 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
40401 define, since <limits.h> is guaranteed to do that.
40402 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
40403 * lib/exclude.c: Include <stdbool.h> unconditionally.
40404 * lib/tempname.c: Include <stddef.h> unconditionally.
40405 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
40406 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
40407 <stddef.h> does that.
40408 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
40409 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
40410 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
40412 * lib/xstrtol.c: Likewise.
40413 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
40414 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
40416 * lib/addext.c (addext): Use assignment rather than cast, to avoid
40417 warnings on some platforms.
40419 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
40422 2003-05-26 Jim Meyering <jim@meyering.net>
40424 Merge in a change from coreutils:
40425 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
40426 that is guaranteed to be `no'. Use `no_such_member' to indicate
40427 that condition, rather than `-1' which is slightly misleading.
40428 Change the name of the cache variable to have the gl_ prefix.
40429 Prompted by a patch from Richard Dawe for DJGPP.
40431 2003-05-24 Karl Berry <karl@gnu.org>
40433 * config/config.guess: update from prep.
40435 2003-05-22 Karl Berry <karl@gnu.org>
40437 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
40439 2003-05-20 Karl Berry <karl@gnu.org>
40441 * config/config.guess: update from prep.
40443 2003-05-18 Karl Berry <karl@gnu.org>
40445 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
40446 might actually be set by the user.
40448 * config/depcomp, install-sh, mdate-sh: update from automake.
40450 2003-05-17 Bruno Haible <bruno@clisp.org>
40452 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
40453 invalid expansion for AC_EGREP_CPP.
40454 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
40455 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
40456 Suggested by Akim Demaille <akim@epita.fr> in
40457 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
40459 2003-05-12 Jim Meyering <jim@meyering.net>
40461 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
40462 the space-padded-by-default conversion specifiers, %e, %k, %l.
40464 2003-05-12 Bruno Haible <bruno@clisp.org>
40466 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
40467 the string is longer than 4 KB.
40469 2003-05-11 Karl Berry <karl@gnu.org>
40471 * config/config.{guess,sub}: update from prep.
40473 2003-05-09 Bruno Haible <bruno@clisp.org>
40475 * modules/error: Add m4/strerror_r.m4 to file list.
40477 2003-05-03 Bruno Haible <bruno@clisp.org>
40479 Upgrade to Unicode-4.0.
40480 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
40481 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
40482 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
40483 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
40484 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
40485 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
40486 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
40487 Change width of U+E0100..U+E01EF from 1 to 0.
40489 2003-04-25 Jim Meyering <jim@meyering.net>
40491 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
40492 of type size_t, not int.
40494 2003-04-25 Bruno Haible <bruno@clisp.org>
40496 * lib/copy-file.c: Include <stddef.h>, for size_t.
40498 2003-04-21 Paul Eggert <eggert@twinsun.com>
40500 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
40501 code which expansion is under static control. Patch imported from
40502 Akim Demaille's patch to Bison; see
40503 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
40505 2003-04-14 Bruno Haible <bruno@clisp.org>
40507 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
40509 2003-04-11 Jim Meyering <jim@meyering.net>
40511 Merge changes from Coreutils.
40513 2003-03-22 Jim Meyering <jim@meyering.net>
40515 * lib/strftime.c (widen): Cast alloca return value to proper type.
40517 2003-01-19 Ulrich Drepper <drepper@redhat.com>
40520 * lib/strftime.c (my_strftime): Handle very large width
40521 specifications for numeric values correctly. Improve checks for
40524 2003-01-19 Jim Meyering <jim@meyering.net>
40526 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
40528 (nl_get_alt_digit) [! defined my_strftime]: Define.
40529 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
40530 _nl_get_alt_digit and _nl_get_walt_digit.
40532 * lib/strftime.c (my_strftime): Merge in locale-related changes from
40533 libc. These changes have no effect outside of _LIBC.
40535 2003-04-10 Bruno Haible <bruno@clisp.org>
40537 * modules/findprog: New file.
40538 * MODULES.html.sh (func_all_modules): Add it.
40540 2003-04-10 Bruno Haible <bruno@clisp.org>
40542 * m4/findprog.m4: New file.
40543 * m4/eaccess.m4: New file.
40545 2003-04-10 Bruno Haible <bruno@clisp.org>
40547 * lib/findprog.h: New file, from GNU gettext.
40548 * lib/findprog.c: New file, from GNU gettext.
40550 2003-04-05 Jim Meyering <jim@meyering.net>
40552 Merge changes from Coreutils.
40554 * lib/exclude.h (PARAMS): Remove definition and uses.
40555 * lib/exclude.c: Remove uses of `PARAMS'.
40557 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
40558 Add test-cases for DOS filenames. Declare program_name.
40559 (main): Set up program_name. Patch by Rich Dawe.
40561 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
40563 Use mntctl's return value to drive the entry-processing loop, since
40564 we can't rely on the value of the vmt_length member in the last
40565 entry. On some systems doing so could result in exhausting
40566 virtual memory. Based in part on a patch from Mike Jetzer.
40568 2003-04-04 Bruno Haible <bruno@clisp.org>
40570 * modules/linebreak: New file.
40571 * MODULES.html.sh (func_all_modules): Add it.
40573 2003-04-04 Bruno Haible <bruno@clisp.org>
40575 * m4/linebreak.m4: New file.
40577 2003-04-04 Bruno Haible <bruno@clisp.org>
40579 * lib/linebreak.h: New file, from GNU gettext.
40580 * lib/linebreak.c: New file, from GNU gettext with slight
40582 * lib/lbrkprop.h: New file, from GNU gettext.
40584 2003-04-03 Bruno Haible <bruno@clisp.org>
40586 * modules/utf8-ucs4: New file.
40587 * modules/utf16-ucs4: New file.
40588 * modules/ucs4-utf8: New file.
40589 * modules/ucs4-utf16: New file.
40590 * MODULES.html.sh (func_all_modules): Add them.
40592 2003-04-03 Bruno Haible <bruno@clisp.org>
40594 * m4/utf-ucs4.m4: New file.
40595 * m4/ucs4-utf.m4: New file.
40597 2003-04-03 Bruno Haible <bruno@clisp.org>
40599 * lib/utf8-ucs4.h: New file, from GNU gettext.
40600 * lib/utf16-ucs4.h: New file, from GNU gettext.
40601 * lib/ucs4-utf8.h: New file, from GNU gettext.
40602 * lib/ucs4-utf16.h: New file, from GNU gettext.
40604 2003-04-02 Bruno Haible <bruno@clisp.org>
40606 * modules/binary-io: New file.
40607 * MODULES.html.sh (func_all_modules): Add it.
40609 2003-04-02 Bruno Haible <bruno@clisp.org>
40611 * lib/binary-io.h: New file, from GNU gettext.
40613 2003-04-01 Bruno Haible <bruno@clisp.org>
40615 * modules/pathname: New file.
40616 * MODULES.html.sh (func_all_modules): Add it.
40618 2003-04-01 Bruno Haible <bruno@clisp.org>
40620 * lib/pathname.h: New file, from GNU gettext.
40621 * lib/concatpath.c: New file, from GNU gettext.
40623 2003-03-30 Bruno Haible <bruno@clisp.org>
40625 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
40627 2003-03-30 Bruno Haible <bruno@clisp.org>
40629 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
40630 function chown() doesn't exist.
40632 2003-03-28 Bruno Haible <bruno@clisp.org>
40634 * modules/copy-file: New file.
40635 * MODULES.html.sh (func_all_modules): Add it.
40637 2003-03-28 Bruno Haible <bruno@clisp.org>
40639 * m4/copy-file.m4: New file.
40641 2003-03-28 Bruno Haible <bruno@clisp.org>
40643 * lib/copy-file.h: New file, from GNU gettext.
40644 * lib/copy-file.c: New file, from GNU gettext.
40646 2003-03-18 Jim Meyering <jim@meyering.net>
40648 * lib/quote.c (quote_n): Fix typo in comment.
40650 2003-03-18 Bruno Haible <bruno@clisp.org>
40652 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
40654 * m4/onceonly_2_57.m4: Likewise.
40656 2003-03-17 Bruno Haible <bruno@clisp.org>
40658 * m4/onceonly.m4: Require autoconf 2.54 or newer.
40659 (m4_quote): Remove macro.
40660 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
40662 2003-03-14 Jim Meyering <jim@meyering.net>
40664 Merge changes from Coreutils.
40665 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
40666 to be const, in order to avoid warnings.
40667 (obstack_room): Likewise.
40668 (obstack_empty_p): Likewise.
40670 2003-03-14 Bruno Haible <bruno@clisp.org>
40672 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
40673 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
40675 2003-03-13 Paul Eggert <eggert@twinsun.com>
40677 Merge changes from Bison.
40678 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
40679 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
40680 when compiling Bison 1.875's `bitset bset = obstack_alloc
40681 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
40682 * lib/hash.c: Include <stdbool.h> unconditionally.
40684 2003-03-13 Paul Eggert <eggert@twinsun.com>
40686 * m4/onceonly.m4 (m4_quote): New macro.
40687 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
40688 Quote AC_FOREACH variable-expansions properly.
40690 2003-03-13 Paul Eggert <eggert@twinsun.com>
40692 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
40694 2003-03-09 Paul Eggert <eggert@twinsun.com>
40696 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
40697 Reported by Bruce Becker; see:
40698 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
40700 2003-03-03 Paul Eggert <eggert@twinsun.com>
40701 Bruno Haible <bruno@clisp.org>
40703 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
40704 Reported by John Hughes, see
40705 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
40707 2003-02-20 Bruno Haible <bruno@clisp.org>
40709 * MODULES.html.sh (func_all_modules): Add poll.
40711 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
40713 * modules/poll: New file.
40715 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
40717 * lib/poll_.h: New file.
40718 * lib/poll.c: New file.
40720 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
40722 * m4/poll.m4: New file.
40724 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
40726 * modules/mathl: New file.
40728 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
40730 * lib/mathl.h: New file.
40731 * lib/acosl.c: New file.
40732 * lib/asinl.c: New file.
40733 * lib/atanl.c: New file.
40734 * lib/ceill.c: New file.
40735 * lib/cosl.c: New file.
40736 * lib/expl.c: New file.
40737 * lib/floorl.c: New file.
40738 * lib/frexpl.c: New file.
40739 * lib/ldexpl.c: New file.
40740 * lib/logl.c: New file.
40741 * lib/sincosl.c: New file.
40742 * lib/sinl.c: New file.
40743 * lib/sqrtl.c: New file.
40744 * lib/tanl.c: New file.
40745 * lib/trigl.c: New file.
40746 * lib/trigl.h: New file.
40748 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
40750 * m4/mathl.m4: New file.
40752 2003-02-18 Bruno Haible <bruno@clisp.org>
40754 * MODULES.html.sh (func_all_modules): Add mathl.
40756 2003-02-17 Bruno Haible <bruno@clisp.org>
40758 * modules/mkdtemp: New module.
40759 * MODULES.html.sh (func_all_modules): Add it.
40761 2003-02-17 Bruno Haible <bruno@clisp.org>
40763 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
40765 2003-02-17 Bruno Haible <bruno@clisp.org>
40767 * lib/mkdtemp.h: New file, from GNU gettext.
40768 * lib/mkdtemp.c: New file, from GNU gettext.
40770 2003-02-02 Jim Meyering <jim@meyering.net>
40772 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
40775 2003-01-31 Bruno Haible <bruno@clisp.org>
40777 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
40779 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
40781 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
40783 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
40786 2003-01-31 Bruno Haible <bruno@clisp.org>
40788 * lib/rename.c: #undef rename before defining rpl_rename.
40789 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
40791 2003-01-30 Bruno Haible <bruno@clisp.org>
40793 * modules/vasnprintf, modules/vasprintf: New modules.
40794 * MODULES.html.sh (func_all_modules): Add them.
40796 2003-01-30 Bruno Haible <bruno@clisp.org>
40798 * m4/signed.m4: New file, from GNU gettext.
40799 * m4/longdouble.m4: New file, from GNU gettext.
40800 * m4/wchar_t.m4: New file, from GNU gettext.
40801 * m4/wint_t.m4: New file, from GNU gettext.
40802 * m4/vasnprintf.m4: New file.
40803 * m4/vasprintf.m4: New file.
40805 2003-01-30 Bruno Haible <bruno@clisp.org>
40807 * lib/printf-args.h: New file, from GNU gettext.
40808 * lib/printf-args.c: New file, from GNU gettext.
40809 * lib/printf-parse.h: New file, from GNU gettext.
40810 * lib/printf-parse.c: New file, from GNU gettext.
40811 * lib/vasnprintf.h: New file, from GNU gettext.
40812 * lib/vasnprintf.c: New file, from GNU gettext.
40813 * lib/asnprintf.c: New file, from GNU gettext.
40814 * lib/vasprintf.h: New file, from GNU gettext with modifications.
40815 * lib/vasprintf.c: New file, from GNU gettext.
40816 * lib/asprintf.c: New file, from GNU gettext.
40818 2003-01-29 Bruno Haible <bruno@clisp.org>
40820 * modules/stpncpy: New module.
40821 * MODULES.html.sh (func_all_modules): Add it.
40823 2003-01-29 Bruno Haible <bruno@clisp.org>
40825 * m4/stpncpy.m4: New file.
40827 2003-01-29 Bruno Haible <bruno@clisp.org>
40829 * lib/stpncpy.h: New file, from GNU gettext with modifications.
40830 * lib/stpncpy.c: New file, from GNU gettext with modifications.
40832 2003-01-28 Bruno Haible <bruno@clisp.org>
40834 * modules/c-ctype: New module.
40835 * MODULES.html.sh (func_all_modules): Add it.
40837 2003-01-28 Bruno Haible <bruno@clisp.org>
40839 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
40841 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
40844 2003-01-27 Bruno Haible <bruno@clisp.org>
40846 * modules/xsetenv: New module.
40847 * MODULES.html.sh (func_all_modules): Add it.
40849 2003-01-27 Bruno Haible <bruno@clisp.org>
40851 * lib/xsetenv.h: New file, from GNU gettext.
40852 * lib/xsetenv.c: New file, from GNU gettext.
40854 2003-01-23 Jim Meyering <jim@meyering.net>
40856 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
40857 from working on systems without dirfd (at least Irix and OSF1/Tru64).
40859 2003-01-23 Bruno Haible <bruno@clisp.org>
40861 * modules/minmax: New module.
40862 * MODULES.html.sh (func_all_modules): Add it.
40864 2003-01-23 Bruno Haible <bruno@clisp.org>
40866 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
40869 2003-01-22 Bruno Haible <bruno@clisp.org>
40871 * modules/exit: New module.
40872 * MODULES.html.sh (func_all_modules): Add it.
40874 2003-01-22 Bruno Haible <bruno@clisp.org>
40876 * lib/exit.h: New file, from GNU gettext.
40878 2003-01-19 Bruno Haible <bruno@clisp.org>
40880 * gnulib-tool: Recognize option --extract-maintainer.
40881 (func_get_maintainer): New function.
40882 * modules/*: Add Maintainer entry.
40884 2003-01-16 Jim Meyering <jim@meyering.net>
40886 * m4/regex.m4: The `regex' struct is both input and output.
40887 Initialize it before each use. Patch by Tim Waugh.
40889 2003-01-16 Bruno Haible <bruno@clisp.org>
40891 * MODULES.html.sh: Add a table of contents. Add the module name as
40892 leftmost column. Add hyperlinks.
40894 2003-01-15 Bruno Haible <bruno@clisp.org>
40896 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
40898 2003-01-15 Bruno Haible <bruno@clisp.org>
40900 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
40901 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
40904 2003-01-15 Bruno Haible <bruno@clisp.org>
40906 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
40908 2003-01-15 Bruno Haible <bruno@clisp.org>
40910 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
40911 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
40913 2003-01-14 Jim Meyering <jim@meyering.net>
40915 * lib/same.c (same_name): Tweak a comment.
40917 2003-01-14 Bruno Haible <bruno@clisp.org>
40919 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
40920 when a string comparison is sufficient.
40922 2003-01-14 Bruno Haible <bruno@clisp.org>
40924 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
40927 2003-01-14 Bruno Haible <bruno@clisp.org>
40929 * lib/hash-pjw.c: Add comment about low quality of this function.
40931 2003-01-13 Bruno Haible <bruno@clisp.org>
40933 * modules/stpcpy: Distribute lib/stpcpy.h.
40934 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
40936 2003-01-13 Bruno Haible <bruno@clisp.org>
40938 * modules/*: Add a description.
40939 * modules/strpbrk: Fix Makefile.am snippet.
40940 * modules/strtoimax: Fix dependencies.
40941 * modules/strtoumax: Likewise.
40943 2003-01-13 Bruno Haible <bruno@clisp.org>
40945 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
40946 * modules/alloca (Makefile.am): All object files depend on alloca.h.
40947 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
40949 2003-01-13 Bruno Haible <bruno@clisp.org>
40951 * gnulib-tool (func_create_testdir): Store config/* files in the main
40953 * config.rpath: Move to ...
40954 * config/config.rpath: ... here.
40955 * modules/gettext: Contains config/config.rpath, not config.rpath.
40956 * modules/iconv: Likewise.
40958 2003-01-12 Paul Eggert <eggert@twinsun.com>
40960 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
40961 to avoid collisions with libcurses and libreadline.
40963 * m4/getstr.m4: Remove.
40964 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
40966 2003-01-12 Paul Eggert <eggert@twinsun.com>
40968 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
40969 to avoid collisions with libcurses and libreadline.
40971 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
40972 * lib/getstr.h, getstr.c: Remove.
40973 * lib/getline.c: Include "getline.h", to check interface.
40974 Move body of old getstr.c here: this defines MIN_CHUNK and
40975 declares getdelim2, which is renamed from getstr.
40976 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
40978 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
40980 * lib/linebuffer.h: Likewise.
40981 (readline): Remove backward-compatibility macro.
40983 2003-01-12 Paul Eggert <eggert@twinsun.com>
40985 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
40986 to avoid collisions with libcurses and libreadline.
40988 * MODULES.html.sh: Remove getstr.
40989 * modules/getline: Depend on unlocked-io, not getstr.
40991 2003-01-12 Jim Meyering <jim@meyering.net>
40993 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
40995 2003-01-10 Bruno Haible <bruno@clisp.org>
40997 * modules/alloca: Change Makefile.am requirements. Simplify Include
40998 requirements. Add lib/alloca_.h to file list.
41000 2003-01-10 Bruno Haible <bruno@clisp.org>
41002 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
41004 2003-01-10 Bruno Haible <bruno@clisp.org>
41006 * lib/alloca_.h: New file.
41007 * lib/getdate.y: Unconditionally include alloca.h.
41008 * lib/makepath.c: Likewise.
41009 * lib/setenv.c: Likewise.
41010 * lib/userspec.c: Likewise.
41012 2003-01-09 Karl Berry <karl@gnu.org>
41014 * MODULES.html.sh: include `dirname $0` in PATH, to find
41017 2003-01-09 Bruno Haible <bruno@clisp.org>
41019 * modules/stdbool: Change configure.ac, Makefile.am requirements.
41020 Simplify Include requirements. Add lib/stdbool.h.in to file list.
41022 2003-01-09 Bruno Haible <bruno@clisp.org>
41024 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
41026 2003-01-09 Bruno Haible <bruno@clisp.org>
41028 * lib/stdbool.h.in: New file.
41030 2003-01-09 Bruno Haible <bruno@clisp.org>
41032 * gnulib-tool (func_all_modules): Ignore files ending in ~.
41033 * MODULES.html.sh: Likewise.
41035 2003-01-08 Jim Meyering <jim@meyering.net>
41037 * lib/full-write.c: Undefine and define-away `const' after inclusion
41038 of errno.h, not before. Suggestion from Bruno Haible.
41040 2003-01-08 Bruno Haible <bruno@clisp.org>
41042 * modules/full-read: Depend on full-write.
41044 2003-01-08 Bruno Haible <bruno@clisp.org>
41046 * lib/safe-read.c: Include specification header first, to ensure its
41048 * lib/full-write.c: Likewise.
41050 2003-01-07 Jim Meyering <jim@meyering.net>
41052 * lib/full-write.c: Rework so that it may serve to define full_read,
41054 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
41056 2003-01-07 Bruno Haible <bruno@clisp.org>
41058 * lib/strtoimax.c: Include <stdint.h> as an alternative to
41060 * lib/xstrtol.h: Likewise.
41061 * lib/xstrtoimax.c: Likewise.
41062 * lib/xstrtoumax.c: Likewise.
41063 * lib/human.h: Likewise.
41065 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
41066 on systems that have <inttypes.h> but not <stdint.h>.
41068 2003-01-07 Bruno Haible <bruno@clisp.org>
41070 * MODULES.html.sh: Add copyright notice.
41071 (missed_files): Omit CVS directory entries.
41072 (func_module): Make it work with sed-3.02.
41073 * MODULES.txt: Remove file.
41075 2003-01-06 Jim Meyering <jim@meyering.net>
41077 * lib/version-etc.c: Update year in translatable copyright string.
41079 2003-01-03 Karl Berry <karl@gnu.org>
41081 * config/config.{guess,sub}: update from prep.
41083 2003-01-02 Karl Berry <karl@gnu.org>
41085 * doc/COPYING.DOC: belatedly updated to 1.2.
41087 2003-01-01 Karl Berry <karl@gnu.org>
41089 * gnulib-tool (func_verify_module): report module name $module in
41090 error message, not $1.
41091 * gnulib-tool (create-testdir): don't complain if destdir couldn't
41092 be created, only if it doesn't exist.
41093 * gnulib-tool (last_checkin_date): don't expand the $Date here.
41095 2002-12-31 Paul Eggert <eggert@twinsun.com>
41097 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
41099 2002-12-31 Paul Eggert <eggert@twinsun.com>
41101 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
41102 memcmp if strcoll doesn't work.
41104 2002-12-31 Bruno Haible <bruno@clisp.org>
41106 * lib/utime.c (utime_null): No need to call ftruncate if the file was
41109 2002-12-31 Bruno Haible <bruno@clisp.org>
41111 * lib/memcoll.c (STRCOLL): New macro.
41114 2002-12-31 Bruno Haible <bruno@clisp.org>
41116 * lib/localcharset.h: New file.
41117 * lib/localcharset.c: Include it.
41118 * lib/unicodeio.c: Likewise.
41120 2002-12-31 Bruno Haible <bruno@clisp.org>
41122 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
41123 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
41125 2002-12-31 Bruno Haible <bruno@clisp.org>
41127 * lib/getline.h: Include <stddef.h>, for size_t.
41129 * lib/unicodeio.h: Include <stddef.h>, for size_t.
41130 * lib/unicodeio.c: Don't include <stddef.h>.
41132 2002-12-31 Bruno Haible <bruno@clisp.org>
41134 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
41137 2002-12-24 Karl Berry <karl@gnu.org>
41139 * config/config.guess: update from prep.
41141 2002-12-24 Bruno Haible <bruno@clisp.org>
41143 General infrasructure.
41144 * m4/README: Rewritten.
41145 * m4/onceonly.m4: New file.
41146 * m4/onceonly_2_57.m4: New file.
41149 * m4/atexit.m4: New file.
41152 * m4/strtod.m4: New file.
41155 * m4/strtol.m4: New file.
41158 * m4/strtoul.m4: New file.
41161 * m4/memchr.m4: New file.
41164 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
41165 (jm_FUNC_MEMCMP): Invoke it.
41168 * m4/memcpy.m4: New file.
41171 * m4/memmove.m4: New file.
41174 * m4/memset.m4: New file.
41177 * m4/strcspn.m4: New file.
41180 * m4/strpbrk.m4: New file.
41183 * m4/strstr.m4: New file.
41186 * m4/strerror.m4: New file.
41189 * m4/mktime.m4: Renamed from jm-mktime.m4.
41190 (gl_PREREQ_MKTIME): New macro.
41191 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
41194 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
41195 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
41196 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
41199 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
41200 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
41201 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
41204 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
41205 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
41206 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
41208 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
41211 * m4/xalloc.m4: New file.
41214 * m4/alloca.m4: New file.
41217 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
41218 (jm_FUNC_PUTENV): Invoke it.
41221 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
41222 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
41223 when invoked twice.
41224 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
41228 * m4/memrchr.m4: New file.
41231 * m4/stpcpy.m4: New file.
41234 * m4/strcase.m4: New file.
41237 * m4/strdup.m4: New file.
41240 * m4/strnlen.m4: New file.
41243 * m4/strndup.m4: New file.
41246 * m4/xstrtod.m4: New file.
41249 * m4/xstrtol.m4: New file.
41252 * m4/getdate.m4: New file.
41254 Module unlocked-io.
41255 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
41256 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
41257 * m4/jm-glibc-io.m4n: Remove file.
41259 Module long-options.
41260 * m4/long-options.m4: New file.
41263 * m4/md5.m4: New file.
41266 * m4/sha.m4: New file.
41269 * m4/getstr.m4: New file.
41272 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
41273 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
41274 <sys/types.h>, for size_t. Use the function name gnu_getline, not
41275 simply getline. Infoke gl_PREREQ_GETLINE.
41278 * m4/obstack.m4: New file.
41281 * m4/hash.m4: New file.
41284 * m4/readtokens.m4: New file.
41287 * m4/strverscmp.m4: New file.
41290 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
41294 * m4/strtoll.m4: New file.
41297 * m4/strtoull.m4: New file.
41300 * m4/strtoimax.m4: New file.
41303 * m4/strtoumax.m4: New file.
41306 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
41307 jm_AC_PREREQ_XSTRTOIMAX.
41308 Moved the strtol prerequisites to strtol.m4.
41309 Moved the strtoll prerequisites to strtoll.m4.
41310 Moved the strtoimax prerequisites to strtoimax.m4.
41313 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
41314 jm_AC_PREREQ_XSTRTOUMAX.
41315 Moved the strtoul prerequisites to strtoul.m4.
41316 Moved the strtoull prerequisites to strtoull.m4.
41317 Moved the strtoumax prerequisites to strtoumax.m4.
41320 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
41321 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
41324 * m4/dup2.m4: New file.
41327 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
41328 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
41331 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
41332 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
41334 Module gettimeofday.
41335 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
41336 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
41337 gl_PREREQ_GETTIMEOFDAY.
41340 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
41341 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
41344 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
41345 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
41346 jm_AC_TYPE_UINTMAX_T.
41347 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
41350 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
41351 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
41354 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
41355 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
41358 * m4/timespec.m4 (gl_TIMESPEC): New macro.
41359 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
41360 * m4/st_mtim.m4: Indentation.
41363 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
41364 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
41365 gl_PREREQ_NANOSLEEP.
41368 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
41369 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
41370 (gl_REGEX): New macro.
41373 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
41374 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
41377 * m4/rmdir.m4: New file.
41380 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
41381 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
41382 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
41385 * m4/dirname.m4: New file.
41388 * m4/getopt.m4: New file.
41390 Module unistd-safer.
41391 * m4/unistd-safer.m4: New file.
41394 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
41396 (gl_PREREQ_FNMATCH_EXTRA): New macro.
41397 (gl_FUNC_FNMATCH_POSIX): New macro.
41398 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
41399 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
41403 * m4/exclude.m4: New file.
41406 * m4/human.m4: New file.
41412 * m4/backupfile.m4: New file.
41413 * m4/d-ino.m4: Indentation.
41416 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
41417 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
41418 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
41421 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
41425 * m4/euidaccess.m4: New file.
41428 * m4/file-type.m4: New file.
41431 * m4/fileblocks.m4: New file.
41434 * m4/filemode.m4: New file.
41437 * m4/isdir.m4: New file.
41440 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
41441 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
41444 * m4/makepath.m4: New file.
41447 * m4/modechange.m4: New file.
41450 * m4/mountlist.m4: New file.
41451 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
41454 Module path-concat.
41455 * m4/path-concat.m4: New file.
41458 * m4/pathmax.m4: New file.
41461 * m4/same.m4: New file.
41464 * m4/save-cwd.m4: New file.
41467 * m4/savedir.m4: New file.
41470 * m4/xgetcwd.m4: New file.
41471 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
41474 * m4/xreadlink.m4: New file.
41477 * m4/safe-read.m4: New file.
41480 * m4/safe-write.m4: New file.
41483 * m4/closeout.m4: New file.
41485 Module stdio-safer.
41486 * m4/stdio-safer.m4: New file.
41489 * m4/getpass.m4: New file.
41492 * m4/getugroups.m4: New file.
41494 Module group-member.
41495 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
41496 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
41499 * m4/idcache.m4: New file.
41502 * m4/userspec.m4: New file.
41505 * m4/clock_time.m4: New file.
41506 * m4/gettime.m4: New file.
41509 * m4/settime.m4: New file.
41512 * m4/posixtm.m4: New file.
41514 Module gethostname.
41515 * m4/gethostname.m4: New file.
41518 * m4/canon-host.m4: New file.
41521 * m4/codeset.m4: New file, from gettext-0.11.5.
41522 * m4/gettext.m4: New file, from gettext-0.11.5.
41523 * m4/glibc21.m4: New file, from gettext-0.11.5.
41524 * m4/iconv.m4: New file, from gettext-0.11.5.
41525 * m4/intdiv0.m4: New file, from gettext-0.11.5.
41526 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
41527 * m4/inttypes.m4: New file, from gettext-0.11.5.
41528 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
41529 * m4/isc-posix.m4: New file, from gettext-0.11.5.
41530 * m4/lcmessage.m4: New file, from gettext-0.11.5.
41531 * m4/lib-ld.m4: New file, from gettext-0.11.5.
41532 * m4/lib-link.m4: New file, from gettext-0.11.5.
41533 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
41534 * m4/progtest.m4: New file, from gettext-0.11.5.
41535 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
41536 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
41537 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
41539 Module localcharset.
41540 * m4/localcharset.m4: New file.
41542 Module hard-locale.
41543 * m4/hard-locale.m4: New file.
41546 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
41548 * m4/mbrtowc.m4: Add comment.
41551 * m4/memcasecmp.m4: New file.
41554 * m4/memcoll.m4: New file.
41557 * m4/unicodeio.m4: New file.
41560 * m4/rpmatch.m4: New file.
41563 * m4/yesno.m4: New file.
41566 * m4/exitfail.m4: New file.
41569 * m4/c-stack.m4 (gl_C_STACK): New macro.
41570 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
41573 * m4/error.m4 (gl_ERROR): New macro.
41574 (jm_PREREQ_ERROR): Use onceonly macros.
41577 * m4/fatal.m4: New file.
41580 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
41581 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
41583 Module getpagesize.
41584 * m4/getpagesize.m4: New file.
41586 Module getusershell.
41587 * m4/getusershell.m4: New file.
41590 * m4/physmem.m4: New file.
41593 * m4/posixver.m4: New file.
41596 * m4/quotearg.m4: New file.
41599 * m4/quote.m4: New file.
41602 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
41605 * m4/sig2str.m4: New file.
41608 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
41610 * m4/intmax_t.m4: New file.
41611 * m4/d-type.m4: Indentation.
41612 * m4/jm-macros.m4: Update.
41613 * m4/prereq.m4 (jm_PREREQ): Update.
41614 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
41615 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
41616 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
41617 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
41618 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
41619 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
41620 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
41621 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
41622 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
41623 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
41624 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
41625 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
41626 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
41627 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
41628 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
41629 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
41630 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
41631 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
41632 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
41634 2002-12-24 Bruno Haible <bruno@clisp.org>
41636 * MODULES.txt: Update according to m4/ changes.
41639 * config.rpath: New file, from gettext-0.11.5.
41641 * modules/*: New module descriptions.
41642 * gnulib-tool: New file.
41643 * MODULES.html.sh: New file.
41645 2002-12-21 Karl Berry <karl@gnu.org>
41647 * doc/fdl.texi: update to version 1.2.
41649 2002-12-19 Karl Berry <karl@gnu.org>
41651 * config/config.guess: update from prep.
41653 2002-12-18 Bruno Haible <bruno@clisp.org>
41655 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
41656 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
41658 2002-12-17 Bruno Haible <bruno@clisp.org>
41660 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
41661 stdlib.h, string.h.
41663 2002-12-17 Bruno Haible <bruno@clisp.org>
41665 * lib/canon-host.c (strdup): Remove unused declaration.
41667 * lib/fsusage.c: Include full_read.h.
41668 (get_fs_usage): Use full_read instead of safe_read.
41670 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
41672 2002-12-12 Karl Berry <karl@gnu.org>
41674 * config/config.guess: update from prep.
41676 2002-12-11 Bruno Haible <bruno@clisp.org>
41678 * m4/setenv.m4: New file, from gettext-0.11.5.
41680 2002-12-11 Bruno Haible <bruno@clisp.org>
41682 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
41684 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
41687 2002-12-11 Bruno Haible <bruno@clisp.org>
41689 * setenv.c (alloca): Fall back to malloc.
41690 (freea): New macro.
41691 (setenv): Use freea() to free memory allocated with alloca().
41693 2002-11-13 Bruno Haible <bruno@clisp.org>
41695 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
41696 function declarations.
41697 * unsetenv.c (unsetenv): Likewise.
41699 2002-03-04 Bruno Haible <bruno@clisp.org>
41701 Portability to AIX 4.3.3.
41702 * unsetenv.c: New file, extracted from setenv.c.
41703 * setenv.c: Move the unsetenv() function to unsetenv.c.
41705 2001-12-20 Bruno Haible <bruno@clisp.org>
41707 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
41708 use malloc instead. For SunOS 4.
41710 2001-12-11 Bruno Haible <bruno@clisp.org>
41712 * setenv.c: Declare alloca.
41713 (compar_fn_t): New typedef.
41714 (KNOWN_VALUE, STORE_VALUE): Use it.
41716 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
41719 2002-12-10 Paul Eggert <eggert@twinsun.com>
41721 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
41722 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
41723 Choose values that are less likely to collide with system fnmatch
41725 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
41726 defined (e.g., a pure POSIX system).
41727 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
41728 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
41730 2002-12-06 Paul Eggert <eggert@twinsun.com>
41732 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
41733 a pain in practice to deal with generated m4 files. This change
41734 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
41736 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
41737 and jm-glibc-io.m4, as they are no longer a special case.
41738 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
41739 kludge and the auto-generation stuff. Check only whether the
41740 functions are declared, not whether they exist, since older hosts
41741 that don't declare the functions can't use the optimization anyway.
41743 2002-12-06 Jim Meyering <jim@meyering.net>
41745 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
41747 Merge in changes from libc's misc/error.c, in preparation
41748 for the merge of gnulib's changes back into libc.
41750 * lib/error.c (_): Define only if not already defined.
41751 Move definition to follow all #include directives.
41752 Include unlocked-io.h only if !_LIBC.
41753 [_LIBC]: Include <libio/libioP.h>.
41754 [USE_IN_LIBIO]: Include <libio/iolibio.h>
41755 (fflush): Tweak definition to use INTUSE.
41758 2002-12-05 Paul Eggert <eggert@twinsun.com>
41760 * lib/alloca.c [defined emacs]: Include "lisp.h".
41761 (xalloc_die) [defined emacs]: New macro.
41762 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
41763 [! defined emacs]: Include <xalloc.h>.
41764 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
41765 (pointer): Typedef to POINTER_TYPE *.
41766 (malloc): Remove decl; we now always use xmalloc.
41767 (alloca): Use old-style definition, since Emacs needs this.
41768 Check for arithmetic overflow when computing combined size.
41770 2002-12-04 Paul Eggert <eggert@twinsun.com>
41772 Do not generate unlocked-io.h automatically, since it's easier to
41773 maintain it by hand.
41775 * lib/unlocked-io.h: New file, from GNU diffutils,
41776 but with proper copyright notice and attribution.
41777 * lib/gen-uio: Remove.
41778 * lib/Makefile.am: Add copyright notice.
41779 (libfetish_a_SOURCES): Add unlocked-io.h.
41780 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
41781 (DISTCLEANFILES, io_functions): Remove macros.
41782 (EXTRA_DIST): Remove gen_uio.
41783 (unlocked-io.h): Remove rule.
41785 2002-12-04 Jim Meyering <jim@meyering.net>
41787 Reflect the fact that stat.c and lstat.c are no longer generated.
41788 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
41789 (DISTCLEANFILES): Likewise.
41790 (EXTRA_DIST): Likewise.
41791 (all_local): Don't depend on stat.c or lstat.c.
41792 (stat.c, lstat.c): Remove rules.
41793 (EXTRA_DIST): Remove xstat.in.
41795 * lib/xstat.in: Remove file. Contents moved into stat.c.
41796 * lib/stat.c: New file. Contents mostly from xstat.in.
41797 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
41798 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
41800 * lib/safe-read.c: Rework so that it may serve to define safe_write,
41802 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
41804 2002-12-03 Jim Meyering <jim@meyering.net>
41806 * lib/safe-read.c, safe-write.c: Change variable names and comments,
41807 but not semantics, to minimize the differences between these two files.
41808 (safe_read): Change comment to mention SAFE_READ_ERROR.
41810 * lib/safe-read.c (IS_EINTR): Define.
41811 (safe_read): Use IS_EINTR in place of in-function cpp directives.
41813 2002-12-02 Jim Meyering <jim@meyering.net>
41815 * lib/safe-read.c (EINTR): Define.
41816 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
41817 (INT_MAX): Provide fallback.
41818 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
41820 * lib/safe-read.h (SAFE_READ_ERROR): Define.
41822 2002-12-02 Bruno Haible <bruno@clisp.org>
41824 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
41825 Define, taken from safe-read.c.
41826 (INT_MAX): Provide fallback.
41827 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
41828 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
41830 * lib/safe-read.c (EINTR): Remove definition.
41831 (safe_read): Don't use EINTR if it is absent.
41833 2002-12-01 Jim Meyering <jim@meyering.net>
41835 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
41837 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
41839 2002-11-27 Paul Eggert <eggert@twinsun.com>
41841 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
41842 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
41843 with `if (! (value < limit)) abort ();', for readability.
41845 2002-11-26 Karl Berry <karl@gnu.org>
41847 * lib/strdup.c: copy from libc again, with jim's ok.
41848 * lib/.cppi-disable: re-add strdup.c
41850 2002-11-25 Karl Berry <karl@gnu.org>
41852 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
41853 instead of "strtol.c".
41855 2002-11-25 Karl Berry <karl@gnu.org>
41857 * config/install-sh: update from automake for variable quoting, $0 in
41860 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
41861 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
41864 2002-11-25 Jim Meyering <jim@meyering.net>
41866 * lib/mktime.c: Sync from libc, now that it has the latest fix.
41868 2002-11-24 Karl Berry <karl@gnu.org>
41870 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
41871 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
41873 2002-11-24 Jim Meyering <jim@meyering.net>
41875 Update from coreutils:
41877 * lib/mktime.c: Merge in changes from libc.
41879 Avoid a link-time failure on some Linux systems.
41880 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
41882 (__mon_yday): Declare with the STATIC attribute.
41883 (__mktime_internal): Likewise.
41884 Based on a report from Greg Schafer.
41886 2002-11-23 Jim Meyering <jim@meyering.net>
41888 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
41889 Use `unsigned', not `int', as type of index.
41891 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
41893 * lib/fsusage.c: Remove unneeded parentheses around operands of
41896 2002-11-22 Paul Eggert <eggert@twinsun.com>
41898 * lib/quotearg.h: Allow multiple inclusion by surrounding with
41899 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
41900 so that we can be included first.
41901 (PARAMS): Remove; we now assume C89 or later. All uses removed.
41902 * lib/quotearg.c: Include quotearg.h immediately after config.h.
41903 No need to include stddef.h or sys/types.h any more.
41904 Surround local include files with "", not "<>".
41905 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
41906 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
41907 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
41908 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
41909 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
41910 (ISPRINT): Remove; no longer needed now that we assume C89.
41912 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
41915 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
41916 quotearg_char): Use SIZE_MAX rather than
41917 (size_t) -1 when we are talking about "infinity".
41919 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
41921 2002-11-22 Paul Eggert <eggert@twinsun.com>
41923 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
41924 hint that one should use `if (! x) abort ();' rather than `assert
41925 (x);', and anyway it's one less thing to worry about configuring.
41926 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
41927 hash_rehash, hash_insert): Use abort rather than assert.
41929 2002-11-22 Bruno Haible <bruno@clisp.org>
41931 * lib/safe-read.h: Assume C89. Add comments.
41932 (safe_read): Change return type to size_t.
41933 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
41934 byte counts > SSIZE_MAX correctly.
41935 * lib/safe-write.h: New file.
41936 * lib/safe-write.c: New file.
41937 * lib/full-read.h: New file.
41938 * lib/full-read.c: New file.
41939 * lib/full-write.h: Assume C89. Add comments.
41940 * lib/full-write.c: Include safe-write.h.
41941 (full_write): Rewritten to use safe_write.
41942 Suggested by Jim Meyering and Paul Eggert.
41944 2002-11-21 Jim Meyering <jim@meyering.net>
41946 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
41948 Merge in changes from the coreutils.
41950 2002-09-25 Paul Eggert <eggert@twinsun.com>
41951 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
41953 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
41954 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
41955 int. Work more efficiently if X is the same width as uintmax_t.
41956 Do not compare X to -1, to avoid bogus compiler warning.
41957 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
41958 Don't assume that f_frsize and f_bsize are the same type.
41960 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
41961 warning on FreeBSD.
41963 * lib/makepath.c (make_path): Restore umask *before* creating the final
41965 (make_path): Minor reformatting.
41967 * lib/xmalloc.c: Adjust to work with new autoconf macros,
41968 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
41969 HAVE_MALLOC/HAVE_REALLOC.
41971 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
41972 dummy ones. At least on GNU/Linux systems, `auto' means something
41974 From Michael Stone.
41976 2002-11-21 Bruno Haible <bruno@clisp.org>
41978 Remove case insensitive option matching.
41979 * lib/argmatch.h (argcasematch): Remove declaration.
41980 (ARGCASEMATCH): Remove macro.
41981 (__xargmatch_internal): Remove case_sensitive argument.
41982 (XARGMATCH): Update.
41983 (XARGCASEMATCH): Remove macro.
41984 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
41985 case_sensitive argument.
41986 (argcasematch): Remove function.
41987 (__xargmatch_internal): Remove case_sensitive argument.
41988 (main): Use XARGMATCH instead of XARGCASEMATCH.
41990 * lib/xmalloc.c: Change compile-time error message. Add comment about
41991 required autoconf version.
41993 2002-11-20 Paul Eggert <eggert@twinsun.com>
41995 Merge argmatch cleanups from Bison. Assume C89.
41997 * lib/argmatch.c: Include config.h here, not in argmatch.h.
41998 Include stdlib.h, for EXIT_FAILURE.
41999 Always include <string.h>, since we assume C89.
42000 (EXIT_FAILURE): Remove pre-C89 bug workaround.
42001 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
42002 Include <stddef.h> instead, since it's all we need for size_t.
42003 (PARAMS): Remove. All uses removed.
42004 (ARRAY_CARDINALITY): Do not bother to #undef.
42005 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
42006 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
42007 Remove unnecessary parentheses.
42008 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
42009 Insert necessary parentheses.
42010 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
42011 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
42013 2002-11-19 Bruno Haible <bruno@clisp.org>
42015 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
42016 * lib/mbswidth.h: Include <stddef.h>, for size_t.
42018 * lib/mbswidth.h (PARAMS): Remove macro.
42019 (mbswidth, mbsnwidth): Use ANSI C function declarations.
42020 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
42022 * lib/gcd.h (PARAMS): Remove macro.
42023 (gcd): Use ANSI C function declarations.
42024 * lib/gcd.c (gcd): Likewise.
42026 2002-11-15 Bruno Haible <bruno@clisp.org>
42028 * lib/strcspn.c: Include <stddef.h>.
42029 (strcspn): Use ANSI C function declaration. Change return type to
42031 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
42032 (strpbrk): Use NULL.
42033 * lib/strpbrk.h (PARAMS): Remove macro.
42034 (strpbrk): Use ANSI C function declaration.
42035 * lib/strstr.c: Don't include <sys/types.h>.
42036 * lib/strstr.h (PARAMS): Remove macro.
42037 (strstr): Use ANSI C function declarations.
42039 2002-11-14 Karl Berry <karl@gnu.org>
42041 * config/mkinstalldirs: `do' on separate line, instead of
42044 2002-11-06 Bruno Haible <bruno@clisp.org>
42046 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
42047 * lib/gcd.c (gcd): Likewise.
42049 2002-11-05 Bruno Haible <bruno@clisp.org>
42051 * lib/gcd.h: New file, from gettext-0.11.5.
42052 * lib/gcd.c: New file, from gettext-0.11.5.
42054 2002-11-05 Bruno Haible <bruno@clisp.org>
42056 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
42057 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
42058 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
42059 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
42061 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
42063 * lib/makepath.c: Include gettext.h instead of <locale.h> and
42066 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
42067 * lib/human.c: Include gettext.h instead of <libintl.h>.
42068 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
42069 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
42070 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
42071 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
42072 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
42073 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
42074 (textdomain): Remove definition.
42075 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
42077 * lib/long-options.c: Remove include of <libintl.h> and definition of
42079 * lib/same.c: Remove include of <libintl.h> and definition of _.
42081 2002-11-04 Owen Taylor <otaylor@redhat.com>
42083 * lib/config.charset: A few additions for Solaris.
42085 2002-11-04 Bruno Haible <haible@clisp.cons.org>
42087 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
42088 * lib/localcharset.c (locale_charset): Declare as extern "C".
42090 2002-11-04 Bruno Haible <haible@clisp.cons.org>
42092 * lib/config.charset: msdos in uk_UA uses CP1125.
42094 2002-11-04 Bruno Haible <bruno@clisp.org>
42096 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
42097 * lib/strcase.h: New file, from GNU gettext-0.11.5.
42098 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
42099 * lib/strstr.h: New file, from GNU gettext-0.11.5.
42100 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
42102 2002-11-04 Bruno Haible <bruno@clisp.org>
42104 * lib/localcharset.c (locale_charset): Don't return an empty string.
42106 2002-11-04 Bruno Haible <bruno@clisp.org>
42108 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
42111 2002-11-04 Bruno Haible <bruno@clisp.org>
42113 * lib/config.charset: Update for newest glibc. Add canonical names
42114 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
42116 2002-11-04 Bruno Haible <bruno@clisp.org>
42118 * lib/config.charset: Add support for NetBSD.
42120 2002-11-04 Bruno Haible <bruno@clisp.org>
42122 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
42124 2002-11-01 Bruno Haible <bruno@clisp.org>
42126 * configure.in: Add AC_CONFIG_AUX_DIR call.
42127 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
42129 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
42131 2002-09-28 Karl Berry <karl@gnu.org>
42133 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
42134 installed automake until the next release, since changes have been
42137 2002-09-25 Karl Berry <karl@gnu.org>
42139 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
42140 * lib/getopt*: copy from libc/posix.
42141 * lib/gettext.h: copy from gettext.
42142 * lib/.cppi-disable: add strdup.c, gettext.h.
42144 2002-09-25 Karl Berry <karl@gnu.org>
42146 * config/srclist.txt: enable gettext.h check.
42147 * config/config.{guess,sub}: update from prep.
42148 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
42149 from automake 1.6.3.
42152 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
42154 * regex.c (PATFETCH): Remove the translating fetch.
42155 (PATFETCH_RAW): Rename to PATFETCH.
42156 (set_image_of_range): New fun.
42157 (SET_RANGE_TABLE_WORK_AREA): Use it.
42158 (regex_compile): Don't translate the pattern chars so eagerly.
42159 Only do it when inserting an `exactn' bytecode or when handling
42161 (mutually_exclusive_p): Avoid empty statement.
42163 2002-07-06 Jim Meyering <meyering@lucent.com>
42165 * m4/README: Don't mention Makefile.am.in.
42166 Outline how I've tested changes to .m4 files. Yep, it's a pain.
42168 2002-07-01 Jim Meyering <meyering@lucent.com>
42170 * lib/c-stack.c: Include sys/time.h.
42171 From Volker Borchert.
42173 2002-06-26 Paul Eggert <eggert@twinsun.com>
42175 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
42177 2002-06-26 Paul Eggert <eggert@twinsun.com>
42179 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
42180 New macro. Use it uniformly instead of
42181 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
42182 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
42183 reported by Vin Shelton.
42185 2002-06-22 Paul Eggert <eggert@twinsun.com>
42187 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
42188 Do not assume SA_SIGINFO behavior.
42189 Bug reported by Jim Meyering on NetBSD 1.5.2.
42191 2002-06-22 Jim Meyering <meyering@lucent.com>
42193 * m4/c-stack.m4: New file, from diffutils-2.8.2.
42194 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
42196 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
42197 now that configure.ac uses AC_GNU_SOURCE.
42198 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
42199 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
42201 Update to latest tools. Suggestions from Paul Eggert.
42202 * m4/stdbool.m4: New file, from diffutils-2.8.2.
42203 * m4/gnu-source.m4: Update from diffutils-2.8.2.
42204 * m4/fnmatch.m4: Likewise.
42205 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
42206 to AC_HEADER_STDBOOL
42208 2002-06-22 Jim Meyering <meyering@lucent.com>
42210 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
42211 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
42213 2002-06-22 Jim Meyering <meyering@lucent.com>
42215 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
42217 * lib/exitfail.c, exitfail.h: Likewise.
42218 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
42220 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
42222 (EXTRA_DIST): Add fnmatch_loop.c.
42223 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
42225 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
42226 * lib/fnmatch.c: Update from diffutils-2.8.2.
42227 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
42228 * lib/fnmatch.h: Remove file.
42230 2002-06-21 Jim Meyering <meyering@lucent.com>
42232 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
42233 * m4/mbrtowc.m4: Likewise.
42235 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
42236 * m4/mbswidth.m4: Reflect name change:
42237 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
42238 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
42240 * m4/lib-link.m4: Update from gettext-0.11.2.
42241 * m4/gettext.m4: Likewise.
42243 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
42244 From Alfred M. Szmidt.
42246 2002-06-18 Paul Eggert <eggert@twinsun.com>
42248 * lib/file-type.h: Report an error if neither S_ISREG nor
42249 S_IFREG is defined, instead of using a test specific to glibc
42250 2.2. This should be safe, since POSIX requires S_ISREG and
42251 Unix Version 7 had S_IFREG. We don't need to check for
42252 <sys/types.h> since we don't use any symbols that it defines.
42254 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
42256 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
42257 $@-t, so that each temporary file name is unique and valid in the first
42258 8 characters, for operation under DOS.
42260 2002-06-15 Paul Eggert <eggert@twinsun.com>
42262 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
42264 2002-06-15 Jim Meyering <meyering@lucent.com>
42266 Work even with DJGPP 2.03, which lacks support for symlinks.
42268 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
42270 * lib/lchown.c (S_ISLNK): Likewise.
42272 2002-06-15 Jim Meyering <meyering@lucent.com>
42274 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
42275 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
42276 have been included before this file.
42278 2002-06-14 Jim Meyering <meyering@lucent.com>
42280 * lib/file-type.h: Use the version from diffutils-2.8.2.
42281 * lib/file-type.c: Likewise.
42283 2002-06-07 Jim Meyering <meyering@lucent.com>
42285 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
42286 They're needed at least for NetBSD 1.5.2.
42287 ($statxfs_includes): Include those same headers.
42288 ($statxfs_includes): Include sys/vfs.h if available.
42289 ($statxfs_includes): Likewise for sys/statvfs.h.
42290 Check for the following members in both structs statfs and statvfs:
42291 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
42293 2002-06-01 Jim Meyering <meyering@lucent.com>
42295 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
42296 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
42298 2002-05-28 Jim Meyering <meyering@lucent.com>
42300 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
42301 Reported by Volker Borchert.
42303 2002-05-27 Jim Meyering <meyering@lucent.com>
42305 Fix a problem seen only on nonconforming systems whereby ls.c's
42306 use of localtime, and then of gettimeofday would cause trouble:
42307 the localtime call used to initialize rpl_gettimeofday's save
42308 mechanism would clobber ls's current local time information so
42309 that in any long listing the first file would always be listed
42310 with date 1970-01-01. Analysis by Volker Borchert.
42312 * lib/gettimeofday.c (localtime): Undefine.
42313 (rpl_localtime): New function.
42315 2002-05-27 Jim Meyering <meyering@lucent.com>
42317 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
42320 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
42321 use the replacement function; it wouldn't resolve at link time.
42322 Reported by Volker Borchert.
42324 2002-05-22 Jim Meyering <meyering@lucent.com>
42326 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
42328 * lib/file-type.h: New file.
42329 * lib/file-type.c (file_type): New file/function. Extracted from
42332 2002-04-30 Jim Meyering <meyering@lucent.com>
42334 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
42336 2002-04-29 Paul Eggert <eggert@twinsun.com>
42338 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
42340 2002-04-29 Paul Eggert <eggert@twinsun.com>
42342 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
42343 Do not check for alloca.h (no longer used) or stdbool.h (was never
42344 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
42346 2002-04-29 Paul Eggert <eggert@twinsun.com>
42348 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
42350 2002-04-29 Jim Meyering <meyering@lucent.com>
42352 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
42353 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
42354 Use AC_FUNC_STRNLEN here instead.
42356 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
42357 With autoconf-2.53a, it's part of AC_PROG_CC.
42359 2002-04-28 Paul Eggert <eggert@twinsun.com>
42361 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
42362 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
42364 2002-04-28 Paul Eggert <eggert@twinsun.com>
42366 * lib/sig2str.h, lib/sig2str.c: New files.
42367 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
42369 2002-04-28 Paul Eggert <eggert@twinsun.com>
42371 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
42372 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
42373 of 127, since 64 is the largest conceivable number for ancient
42375 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
42377 2002-04-28 Jim Meyering <meyering@lucent.com>
42379 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
42381 2002-04-24 Jim Meyering <meyering@lucent.com>
42383 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
42384 (jm_PREREQ): Use it.
42386 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
42387 mach/mach.h fcntl.h.
42388 Check for this function: setlocale.
42390 2002-04-24 Jim Meyering <meyering@lucent.com>
42392 * lib/gettext.h: New file, from Gettext.
42393 * lib/Makefile.am (INCLUDES): Remove -I../intl.
42394 (libfetish_a_SOURCES): Add gettext.h.
42396 2002-04-16 Jim Meyering <meyering@lucent.com>
42398 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
42399 ut_pid, ut_id, ut_exit.
42401 2002-04-16 Jim Meyering <meyering@lucent.com>
42403 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
42404 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
42405 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
42407 2002-04-12 Jim Meyering <meyering@lucent.com>
42409 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
42410 now-bogus check for f_type in sys/mount.h. Instead, just test for the
42411 existence of the getmntinfo function. Needed for Darwin 5.3.
42413 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
42414 This is necessary at least on Darwin 5.3.
42416 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
42417 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
42418 strnlen.o in the library, and that makes some versions of ranlib
42421 2002-04-12 Jim Meyering <meyering@lucent.com>
42423 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
42425 2002-04-09 Jim Meyering <meyering@lucent.com>
42427 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
42428 to be more precise. Rather than saying we're checking whether the
42429 function `works', say what we're testing.
42430 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
42431 Reported by Bruno Haible.
42433 2002-03-10 Jim Meyering <meyering@lucent.com>
42435 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
42436 Suggestion from Santiago Vila.
42438 2002-03-08 Jim Meyering <meyering@lucent.com>
42440 * lib/rename.c: Mention that this wrapper is needed also on
42441 mips-dec-ultrix4.4 systems.
42443 2002-03-02 Jim Meyering <meyering@lucent.com>
42445 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
42446 not HAVE_CLOCK_SETTIME.
42448 2002-02-27 Paul Eggert <eggert@twinsun.com>
42450 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
42451 Check for clock_settime.
42453 2002-02-27 Paul Eggert <eggert@twinsun.com>
42455 * lib/nanosleep.h: Rename to....
42456 * lib/timespec.h: New name for nanosleep.h. All uses changed.
42458 * lib/gettime.c: New file.
42459 * lib/settime.c: New file.
42460 * lib/stime.c: Remove.
42462 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
42463 timespec.h. Remove nanosleep.h.
42465 2002-02-25 Paul Eggert <eggert@twinsun.com>
42467 * m4/acl.m4: New file.
42468 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
42469 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
42471 2002-02-25 Paul Eggert <eggert@twinsun.com>
42473 * lib/acl.c, lib/acl.h: New files.
42474 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
42476 2002-02-24 Jim Meyering <meyering@lucent.com>
42478 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
42479 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
42480 cause trouble. Reported by Nelson Beebe.
42482 2002-02-23 Paul Eggert <eggert@twinsun.com>
42484 * lib/path-concat.c (xpath_concat): Reorder code to pacify
42485 compilers that don't know that xalloc_die never returns.
42487 2002-02-20 Jim Meyering <meyering@lucent.com>
42489 * lib/getdate.c: Regenerate using bison-1.33.
42491 2002-02-17 Jim Meyering <meyering@lucent.com>
42493 * config/config.guess (main): Don't use `head -1'; it's no longer
42494 portable. Use `sed 1q' instead.
42496 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
42498 * m4/codeset.m4: Upgrade to gettext-0.11.
42499 * m4/gettext.m4: Upgrade to gettext-0.11.
42500 * m4/glibc21.m4: Upgrade to gettext-0.11.
42501 * m4/iconv.m4: Upgrade to gettext-0.11.
42502 * m4/isc-posix.m4: Upgrade to gettext-0.11.
42503 * m4/lcmessage.m4: Upgrade to gettext-0.11.
42504 * m4/lib-ld.m4: New file, from gettext-0.11.
42505 * m4/lib-link.m4: New file, from gettext-0.11.
42506 * m4/lib-prefix.m4: New file, from gettext-0.11.
42507 * m4/progtest.m4: Upgrade to gettext-0.11.
42509 2002-02-15 Paul Eggert <eggert@twinsun.com>
42511 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
42512 (jm_PREREQ): Use it.
42514 2002-02-15 Paul Eggert <eggert@twinsun.com>
42516 * lib/posixver.c, lib/posixver.h: New files.
42517 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
42519 2002-02-02 Paul Eggert <eggert@twinsun.com>
42520 Bruno Haible <bruno@clisp.org>
42522 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
42523 (fwrite_success_callback): New declaration.
42524 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
42525 print_unicode_char. Call failure callback instead of error.
42526 (fwrite_success_callback): New function.
42527 (exit_failure_callback): New function.
42528 (fallback_failure_callback): New function.
42529 (print_unicode_char): Call unicode_to_mb.
42531 2002-01-26 Jim Meyering <meyering@lucent.com>
42533 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
42534 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
42536 2002-01-26 Jim Meyering <meyering@lucent.com>
42538 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
42540 2002-01-22 Paul Eggert <eggert@twinsun.com>
42542 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
42544 2002-01-22 Jim Meyering <meyering@lucent.com>
42546 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
42547 Otherwise, some versions of automake would omit the rule that makes
42548 Makefile from Makefile.in.
42550 2002-01-21 Paul Eggert <eggert@twinsun.com>
42552 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
42553 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
42554 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
42555 (memcoll): Set errno to zero if there is no error.
42557 * lib/quotearg.c (quotearg_buffer_restyled):
42558 Fix bug with quoting buffers containing NUL when backslashing escapes.
42559 This bug was exposed by the other changes in this patch.
42560 (quotearg_n_options): New arg ARGSIZE.
42561 All callers changed.
42562 (quoting_options_from_style): New function.
42563 (quotearg_n_style): Use it.
42564 (quotearg_n_style_mem): New function.
42566 * lib/quotearg.h (quotearg_n_style_mem): New function.
42568 2002-01-19 Jim Meyering <meyering@lucent.com>
42570 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
42571 Remove useless quotes: DF_PROG="df".
42572 * m4/strnlen.m4: New file.
42574 2002-01-16 Paul Eggert <eggert@twinsun.com>
42576 * lib/backupfile.c (ISDIGIT): Comment fix.
42577 * lib/getdate.y (ISDIGIT): Likewise.
42578 * lib/posixtm.c (ISDIGIT, year): Likewise.
42579 * lib/strverscmp.c (ISDIGIT): Likewise.
42580 * lib/userspec.c (ISDIGIT): Likewise.
42582 2002-01-16 Jim Meyering <meyering@lucent.com>
42584 * lib/getdate.y: Add three semicolons, each just before a closing
42585 brace. Bison (as of version 1.31) no longer papers over that mistake.
42587 2002-01-05 Jim Meyering <meyering@lucent.com>
42589 * lib/version-etc.c (version_etc_copyright): Update copyright year.
42591 2001-12-19 Paul Eggert <eggert@twinsun.com>
42593 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
42594 not silently exit merely because the output buffer happens to
42595 have nothing pending.
42597 2001-12-18 Paul Eggert <eggert@twinsun.com>
42599 See the big note in ../ChangeLog.
42600 * lib/human.c (suffixes): Prefer K to k for 1024.
42601 (generate_suffix_backwards): New function.
42602 (human_readable_inexact): Use it.
42603 * lib/xstrtol.c (__xstrtol): If there is no number but there
42604 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
42605 Accept 'K' as well as 'k'.
42607 2001-12-15 Jim Meyering <meyering@lucent.com>
42609 * lib/regex.h (__restrict_arr): Update from libc.
42611 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
42612 as `remote' if the name starts with `//'. Suggested by Michael Stone.
42615 2001-12-14 Jim Meyering <meyering@lucent.com>
42617 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
42618 Suggestion from Bruno Haible.
42620 2001-12-10 Jim Meyering <meyering@lucent.com>
42622 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
42623 xrealloc, Instead, include "xalloc.h".
42624 (initbuffer): Don't cast xmalloc return value to char*.
42625 (readline): Reword comment.
42626 Don't cast xrealloc return value to char*
42627 Return NULL, not 0.
42629 2001-12-09 Jim Meyering <meyering@lucent.com>
42631 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
42632 about `signed and unsigned type in conditional expression'.
42633 * lib/posixtm.c (posix_time_parse): Likewise.
42635 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
42637 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
42638 to avoid a pedantic warning.
42640 * lib/getstr.c: Don't include assert.h.
42641 (getstr): Remove warning-evoking assertions.
42642 Return -1 if offset parameter is out of bounds.
42643 Change the type of a local from int to size_t.
42645 * lib/strftime.c (my_strftime_localtime_r): Include this function
42646 definition in the `#if ! HAVE_TM_GMTOFF' block.
42648 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
42649 Include xalloc.h instead.
42651 2001-12-02 Jim Meyering <meyering@lucent.com>
42653 * lib/tempname.c: Don't declare getenv, thus reverting the change of
42654 2001-11-18. It's no longer necessary, now that stdlib.h is always
42657 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
42658 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
42660 2001-11-30 Akim Demaille <akim@epita.fr>
42662 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
42663 before being defined.
42665 2001-11-27 Paul Eggert <eggert@twinsun.com>
42667 * lib/quotearg.h (quotearg_n, quotearg_n_style):
42668 First arg is int, not unsigned.
42669 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
42670 (SIZE_MAX, UINT_MAX): New macros.
42671 (quotearg_n_options): Abort if N is negative.
42672 Avoid overflow check on hosts where size_t is 64 bits and int
42673 is 32 bits, as overflow is impossible there.
42674 Fix off-by-one typo that caused unnecessary reallocation.
42676 2001-11-27 Jim Meyering <meyering@lucent.com>
42678 * lib/tempname.c: Merge with version from libc.
42679 * lib/regex.c: Likewise.
42681 * lib/tempname.c: Include stdlib.h unconditionally. On some old
42682 systems for which STDC_HEADERS is 0, it was not included, resulting in
42683 a warning about an integer-to-pointer conversion problem with getenv.
42684 Reported by Volker Borchert.
42686 2001-11-26 Jim Meyering <meyering@lucent.com>
42688 * lib/gtod.h: Remove file.
42689 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
42690 * lib/gettimeofday.c: Don't include gtod.h.
42691 (GTOD_init): Remove function.
42692 (rpl_gettimeofday): Do its job here instead, rather than aborting.
42693 Suggestion from Volker Borchert.
42695 2001-11-23 Jim Meyering <meyering@lucent.com>
42697 * lib/hash.h (struct hash_table): Don't define here. Merely declare
42699 * lib/hash.c (struct hash_table): Define it here instead.
42701 2001-11-22 Jim Meyering <meyering@lucent.com>
42703 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
42705 2001-11-20 Jim Meyering <meyering@lucent.com>
42707 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
42708 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
42710 2001-11-19 Jim Meyering <meyering@lucent.com>
42712 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
42713 directory. Use "conftestXXXXXX" as the template.
42714 Suggestion from Paul Eggert.
42716 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
42717 immediately, so the test doesn't mistakenly hit the max-open-files
42720 2001-11-18 Paul Eggert <eggert@twinsun.com>
42722 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
42723 (TEMPORARIES): New macro.
42724 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
42725 removes an artificial limitation (e.g. HP-UX 10.20, where
42728 2001-11-18 Jim Meyering <meyering@lucent.com>
42730 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
42732 2001-11-18 Jim Meyering <meyering@lucent.com>
42734 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
42737 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
42738 files will be created before anything else.
42740 2001-11-17 Paul Eggert <eggert@twinsun.com>
42742 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
42743 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
42745 2001-11-17 Jim Meyering <meyering@lucent.com>
42747 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
42748 Prompted by a report from Bob Proulx.
42750 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
42751 Instead, require UTILS_FUNC_MKSTEMP.
42753 2001-11-17 Jim Meyering <meyering@lucent.com>
42755 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
42756 Now, that's done as part of AC_FUNC_STRTOD.
42758 2001-11-17 Jim Meyering <meyering@lucent.com>
42760 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
42761 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
42762 rather than group writable. Patch by Juan F. Codagnone.
42764 * lib/readtokens.c: Remove explicit declarations of xmalloc and
42765 xrealloc, Instead, include "xalloc.h".
42767 * lib/mountlist.c: Include unlocked-io.h after all system headers.
42768 Remove explicit declarations of xmalloc, xrealloc,
42769 and xstrdup. Instead, include "xalloc.h".
42771 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
42773 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
42775 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
42777 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
42778 Reported by Padraig Brady.
42780 * lib/mkstemp.c: #undef mkstemp.
42782 (rpl_mkstemp): Rename from mkstemp.
42785 2001-11-16 Jim Meyering <meyering@lucent.com>
42787 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
42788 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
42789 determine the amount of total physical memory, use pstat_getstatic.
42790 HPUX-11 doesn't define _SC_PHYS_PAGES.
42791 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
42792 If sysconf couldn't be used to determine the amount of available
42793 physical memory, use both pstat_getstatic and pstat_getdynamic.
42794 Based on a patch from Bob Proulx.
42796 2001-11-10 Jim Meyering <meyering@lucent.com>
42798 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
42799 (jm_PREREQ): Use it.
42801 2001-11-09 Jim Meyering <meyering@lucent.com>
42803 * m4/jm-macros.m4: Require autoconf-2.52f.
42804 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
42805 Use these AC_-prefixed names, not the AM_-prefixed ones.
42807 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
42809 2001-11-05 Jim Meyering <meyering@lucent.com>
42811 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
42813 2001-11-04 Jim Meyering <meyering@lucent.com>
42815 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
42818 2001-11-03 Jim Meyering <meyering@lucent.com>
42820 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
42823 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
42824 know the name of the variable in the macro definition.
42826 2001-11-03 Jim Meyering <meyering@lucent.com>
42828 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
42829 in argmatch_to_argument call.
42831 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
42834 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
42835 e.g., a fault due to an attempt to free a NULL pointer.
42837 2001-11-01 Jim Meyering <meyering@lucent.com>
42839 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
42840 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
42842 2001-11-01 Jim Meyering <meyering@lucent.com>
42844 * lib/dirfd.c, lib/dirfd.h: New files.
42845 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
42847 * lib/hash.c (hash_print) [TESTING]: Clean up.
42849 2001-10-22 Paul Eggert <eggert@twinsun.com>
42851 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
42852 to avoid a warning if -Wall.
42854 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
42857 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
42858 (per RMS's instructions, this is now the canonical source)
42859 * lgpl/, gpl/: New directories.
42861 2001-10-21 Paul Eggert <eggert@twinsun.com>
42863 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
42865 2001-10-21 Jim Meyering <meyering@lucent.com>
42867 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
42868 this code would end up calling gettext even in packages built
42869 with --disable-nls.
42870 * lib/getopt.c (_): Likewise.
42871 * lib/regex.c (_): Likewise.
42873 2001-10-20 Paul Eggert <eggert@twinsun.com>
42875 * m4/error.m4 (jm_PREREQ_ERROR):
42876 Do not invoke AC_CHECK_FUNCS with strerror_r, as
42877 AC_FUNC_STRERROR_R does that.
42878 Check for strerror declaration.
42880 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
42881 are supposed to have them these days.
42882 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
42883 Merge changes from latest Autoconf CVS.
42884 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
42885 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
42886 POSIX decided to standardize on the int flavor of strerror_r.
42888 2001-10-20 Paul Eggert <eggert@twinsun.com>
42890 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
42891 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
42892 Use strerror_r that is only a macro, even if it is not a function.
42893 (strerror): Check for HAVE_DECL_STRERROR before declaring.
42894 (private_strerror): Use prototypes, not old-style function definition.
42895 (print_errno_message): New function.
42896 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
42897 char*-flavored one.
42898 (error_tail, error, error_at_line): Use it.
42900 2001-10-11 Jim Meyering <meyering@lucent.com>
42902 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
42903 and quote_n (1, ... to avoid clobbering a buffer.
42905 2001-10-05 Jim Meyering <meyering@lucent.com>
42907 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
42909 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
42910 * lib/hash-pjw.h: New file.
42912 2001-09-30 Jim Meyering <meyering@lucent.com>
42914 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
42915 `struct fsstat' has the `f_fstypename' member.
42916 Use that to define FS_TYPE, which is now used to make
42917 the getfsstat link test tighter.
42919 2001-09-30 Jim Meyering <meyering@lucent.com>
42921 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
42922 Include <sys/ucred.h>, for Apple Darwin.
42923 Include sys/mount.h and sys/fs_types.h only if available.
42925 (read_filesystem_list): Use FS_TYPE.
42927 2001-09-29 Paul Eggert <eggert@twinsun.com>
42929 * lib/exclude.c (excluded_filename): 0 -> false, since it's
42932 2001-09-29 Jim Meyering <meyering@lucent.com>
42934 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
42935 [one-argument getmntent function]): Include stdio.h before mntent.h.
42936 SunOS 4.1.x needs it for the declaration of `FILE'.
42937 Patch by Volker Borchert.
42939 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
42940 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
42941 sys/fs_types.h, and make the link-test for getfsstat guard #include
42942 directives with appropriate #if HAVE_*_H tests so that we can
42943 detect getfsstat on Apple Darwin1.3.7 systems.
42944 Reported by Nelson Beebe.
42945 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
42947 2001-09-28 Paul Eggert <eggert@twinsun.com>
42949 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
42950 #defines strtoimax. Also treat the other strto* functions
42953 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
42954 Check for strtoul and strtoumax,
42955 as those declarations are made even in the signed case.
42956 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
42957 Likewise, for strtol and strtoimax.
42959 2001-09-28 Paul Eggert <eggert@twinsun.com>
42961 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
42962 #defines strtoimax. Also treat the other strto* functions
42965 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
42966 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
42967 (strtoimax, strtoumax): Do not declare if already defined as a macro.
42969 2001-09-26 Jim Meyering <meyering@lucent.com>
42971 Most macros in unlocked-io.h had the wrong number of arguments.
42972 * lib/gen-uio: New script.
42973 (USE_UNLOCKED_IO): Define to 1 if not already defined.
42974 * lib/unlocked-io.hin: Remove file.
42975 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
42976 rather than trying to embed it here.
42977 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
42978 Reported by Padraig Brady.
42980 2001-09-25 Volker Borchert <bt@teknon.de>
42982 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
42985 2001-09-24 Jim Meyering <meyering@lucent.com>
42987 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
42989 2001-09-23 Jim Meyering <meyering@lucent.com>
42991 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
42992 instead of the mere test for existence of mntent.h. The latter
42993 would get a false-positive on AIX 3.4 systems.
42994 In the outer getmntent if-block, don't die if neither of the getmntent
42995 tests succeeds. Instead, just fall through and continue with the
42998 2001-09-23 Jim Meyering <meyering@lucent.com>
43000 * lib/mountlist.c: Remove useless parentheses in #if directives.
43001 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
43002 the deprecated MOUNTED symbol is no longer defined in mntent.h.
43004 2001-09-22 Jim Meyering <meyering@lucent.com>
43006 * m4/gettext.m4: New file. From gettext.
43007 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
43008 * m4/progtest.m4: Likewise
43009 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
43010 * m4/glibc21.m4: Likewise.
43012 * m4/libintl.m4: Remove. No longer used.
43014 2001-09-22 Jim Meyering <meyering@lucent.com>
43016 * lib/localcharset.c: Update from latest gettext.
43017 * lib/config.charset: Likewise.
43019 2001-09-20 Jim Meyering <meyering@lucent.com>
43021 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
43023 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
43026 2001-09-20 Jim Meyering <meyering@lucent.com>
43028 * lib/xstrtol.c (strtoimax): Guard declaration with
43029 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
43030 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
43031 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
43032 (strtoumax): Likewise, for completeness (it wasn't necessary).
43034 2001-09-17 Paul Eggert <eggert@twinsun.com>
43036 * lib/strtoimax.c (HAVE_LONG_LONG):
43037 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
43038 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
43039 to work around bug in IBM C compiler.
43041 2001-09-17 Jim Meyering <meyering@lucent.com>
43043 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
43044 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
43045 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
43046 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
43047 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
43048 whenever the right hand side need not be expanded by the shell.
43050 2001-09-16 Paul Eggert <eggert@twinsun.com>
43052 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
43053 library. It's not correct, as some older glibcs are buggy.
43054 fnmatch wasn't fixed until glibc 2.2.
43056 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
43057 special shell magic here.
43059 2001-09-16 Jim Meyering <meyering@lucent.com>
43061 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
43062 * m4/jm-macros.m4: Require it.
43064 2001-09-16 Jim Meyering <meyering@lucent.com>
43066 * lib/mkdir.c: New file.
43068 2001-09-15 Jim Meyering <meyering@lucent.com>
43070 * m4/jm-macros.m4: Check for help2man.
43072 2001-09-11 Jim Meyering <meyering@lucent.com>
43074 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
43075 The body, by Paul Eggert, was moved here from configure.in.
43076 * m4/jm-macros.m4: Require UTILS_HOST_OS.
43078 2001-09-04 Paul Eggert <eggert@twinsun.com>
43080 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
43081 (jm_PREREQ): Use it.
43083 2001-09-04 Paul Eggert <eggert@twinsun.com>
43085 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
43086 Use ssize_t, not int, to store result of readlink.
43087 Check for ssize_t overflow as well as size_t overflow,
43088 as POSIX says the result of readlink is implementation-defined
43089 when ssize_t overflows.
43090 Remove unnecessary cast to char*.
43091 Use free+malloc instead of realloc, as the storage doesn't need
43092 to be preserved and it's clearer and can be more efficient that way.
43093 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
43094 * lib/xreadlink.h (xreadlink): Update prototype.
43096 2001-09-04 Paul Eggert <eggert@twinsun.com>
43098 * lib/xgetcwd.c: Revert some of the previous change; intead,
43099 fix the HAVE_GETCWD_NULL code to behave more like the
43100 !HAVE_GETCWD_NULL code used to.
43102 Include "xalloc.h".
43103 (xgetcwd): Do not return NULL when memory is exhausted; instead,
43106 2001-09-03 Paul Eggert <eggert@twinsun.com>
43108 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
43109 sys/param.h, as pathmax.h includes them.
43111 2001-09-03 Paul Eggert <eggert@twinsun.com>
43113 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
43114 (jm_PREREQ_XGETCWD): New macro.
43116 * m4/getcwd.m4: New file.
43118 2001-09-03 Paul Eggert <eggert@twinsun.com>
43120 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
43121 like the HAVE_GETCWD_NULL code.
43122 Include pathmax.h if not HAVE_GETCWD.
43123 Do not include xalloc.h.
43124 (INITIAL_BUFFER_SIZE): New symbol.
43125 Do not use xmalloc / xrealloc, since the caller is responsible for
43126 handling errors. Preserve errno around `free' during failure.
43127 Do not overrun buffer when using getwd.
43129 2001-09-03 Paul Eggert <eggert@twinsun.com>
43131 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
43132 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
43135 2001-09-03 Paul Eggert <eggert@twinsun.com>
43137 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
43138 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
43139 spotted by Jim Meyering.
43141 2001-09-03 Jim Meyering <meyering@lucent.com>
43143 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
43146 2001-09-02 Jim Meyering <meyering@lucent.com>
43148 * lib/error.c: Update from GNU libc.
43150 2001-09-01 Jim Meyering <meyering@lucent.com>
43152 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
43155 2001-09-01 Jim Meyering <meyering@lucent.com>
43157 * lib/xreadlink.c: New file.
43158 * lib/xreadlink.h: New file.
43159 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
43162 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
43163 doesn't conflict with sparc Solaris 7's definition in
43164 /usr/include/sys/int_types.h.
43166 * lib/exclude.c: Use `""', not `<>' to #include non-system header
43168 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
43169 and strncasecmp as r-values. Unixware didn't have declarations.
43171 2001-08-31 Paul Eggert <eggert@twinsun.com>
43173 * lib/xstrtol.h: Add copyright notice.
43174 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
43175 LONGINT_INVALID_SUFFIX_CHAR.
43177 2001-08-31 Paul Eggert <eggert@twinsun.com>
43179 * lib/xstrtol.c (strtoimax): New decl.
43181 2001-08-31 Paul Eggert <eggert@twinsun.com>
43183 * lib/xgetcwd.c: Don't include pathmax.h.
43184 Include stdlib.h and unistd.h if available.
43186 (xmalloc, xstrdup, free): Remove decls.
43187 (xgetcwd): Don't assume sizes fit in unsigned.
43188 Check for overflow when computing sizes.
43189 Simplify reallocation code.
43191 2001-08-31 Paul Eggert <eggert@twinsun.com>
43193 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
43194 a directory's st_size can have an arbitrary value, so the old
43195 usage could waste an arbitrary amount of memory. All uses
43197 * lib/savedir.h: Update prototype.
43199 2001-08-31 Paul Eggert <eggert@twinsun.com>
43201 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
43203 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
43206 Also, make the following further changes to make this file's
43207 configuration more similar to that of strtol.c:
43208 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
43209 (strtoumax, uintmax_t, strtoull, strtol): Remove.
43210 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
43211 (strtoimax): Renamed from strtoumax. All uses of unsigned values
43212 changed to signed values.
43214 And make the following changes as well:
43215 Fix copyright notice, as 1999 was missing.
43216 (verify): New macro.
43217 (strtoimax): Check sizes at compile-time, not run-time.
43218 Prefer strtol to strtoll if both work.
43219 (main): Remove; it was not that useful and was a pain to maintain.
43221 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
43223 2001-08-31 Jim Meyering <meyering@lucent.com>
43225 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
43226 Use an initial, malloc'd, buffer of length 128 rather than
43227 a statically allocated one of length 1024.
43229 2001-08-30 Paul Eggert <eggert@twinsun.com>
43231 Simplify code, partly by assuming autoconf 2.52 semantics.
43233 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
43235 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
43236 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
43238 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
43239 Move AC_REQUIRE to next-to-top level, to avoid confusion.
43240 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
43241 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
43242 jm_AC_HEADER_INTTYPES_H.
43243 * m4/jm-macros.m4 (jm_MACROS): Likewise.
43245 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
43247 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
43248 Quote first arg of AC_DEFUN.
43249 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
43250 since they are needed to parse the include file even if we need
43251 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
43252 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
43253 but with opposite signedness.
43255 2001-08-30 Paul Eggert <eggert@twinsun.com>
43257 Merge 'exclude' changes from tar 1.13.22.
43258 This fixes one or two unlikely storage allocation overflow bugs,
43259 but doesn't change user-visible behavior otherwise.
43261 2001-08-30 Paul Eggert <eggert@twinsun.com>
43263 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
43264 (jm_PREREQ_EXCLUDE): New macro.
43266 2001-08-30 Paul Eggert <eggert@twinsun.com>
43268 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
43271 2001-08-30 Paul Eggert <eggert@twinsun.com>
43273 * lib/hash.c: Remove '2001' from copyright notice.
43275 2001-08-30 Paul Eggert <eggert@twinsun.com>
43277 * lib/full-write.h: New file.
43278 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
43279 * lib/full-write.c: Correct credits, as cccp.c no longer
43280 exists and anyway it was so heavily changed from the old cccp
43281 code as to be unrecognizable. Include full-write.h.
43282 (full_write) Return size_t, with short writes meaning failure.
43283 All callers changed. This fixes a bug with large buffers
43285 * lib/utime.c: Include full-write.h.
43287 2001-08-30 Paul Eggert <eggert@twinsun.com>
43289 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
43290 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
43291 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
43292 Include if available.
43293 (<xalloc.h>): Include
43294 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
43295 (verify): New macro. Use it to verify that EXCLUDE macros do not
43296 collide with FNM macros.
43297 (struct patopts): New struct.
43298 (struct exclude): Use it, as exclude patterns now come with options.
43299 (new_exclude): Support above changes.
43300 (new_exclude, add_exclude_file):
43301 Initial size must now be a power of two to simplify overflow checking.
43302 (free_exclude, fnmatch_no_wildcards): New function.
43303 (excluded_filename): No longer requires options arg, as the options
43304 are determined by add_exclude. Now returns bool, not int.
43305 (excluded_filename, add_exclude):
43306 Add support for the fancy new exclusion options.
43307 (add_exclude, add_exclude_file): Now takes int options arg.
43308 Check for arithmetic overflow when computing sizes.
43309 (add_exclude_file): xrealloc might modify errno, so don't
43310 realloc until after errno might be used.
43312 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
43314 (free_exclude): New decl.
43315 (add_exclude, add_exclude_file): Now takes int options arg.
43316 (excluded_filename): No longer requires options arg, as the options
43317 are determined by add_exclude. Now returns bool, not int.
43319 2001-08-30 Paul Eggert <eggert@twinsun.com>
43321 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
43323 2001-08-27 Jim Meyering <meyering@lucent.com>
43325 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
43327 * lib/version-etc.c (N_): Remove definition.
43328 Revert most of last change.
43329 Instead, simply don't mark the `Copyright...' string for translation.
43330 Based on advice from Paul Eggert.
43332 * lib/strtoxmax.c: Tweak comment.
43334 2001-08-26 Jim Meyering <meyering@lucent.com>
43336 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
43338 * m4/xstrtoimax.m4: New file.
43339 * m4/xstrtoumax.m4: Add comments explaining why we
43340 AC_REPLACE_FUNCS(strtol).
43342 2001-08-26 Jim Meyering <meyering@lucent.com>
43344 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
43345 of copyright with `%s' so translators don't get an untranslated
43347 (COPYRIGHT_YEAR): Define.
43348 (version_etc): Use fprintf rather than fputs.
43349 Suggestion from Ulrich Drepper.
43351 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
43353 * lib/strtoll.c: New file, from GNU libc.
43354 * lib/xstrtoimax.c: New file.
43356 * lib/xstrtol.h: Add xstrtoimax.
43357 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
43358 * lib/strtoimax.c: New file. Likewise, but first define
43361 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
43363 * lib/strtoxmax.c: ... then renamed to this.
43365 2001-08-18 Paul Eggert <eggert@twinsun.com>
43367 * m4/inttypes.m4: Add AC_PREREQ(2.13).
43368 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
43369 (jm_AC_TYPE_INTMAX_T): New macro.
43370 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
43372 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
43374 * m4/longlong.m4: Renamed from ulonglong.m4.
43375 * m4/inttypes.m4: Renamed from inttypes_h.m4.
43376 * m4/uintmax_t.m4: Removed.
43378 2001-08-13 Paul Eggert <eggert@twinsun.com>
43380 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
43381 Port to Solaris 8, where 'sed' requires a space after the 'r'
43382 command, and where sh dislikes "$/". Clean up the spacing a bit.
43383 Redirect output to $tmp just once.
43385 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
43387 * lib/addext.c (<errno.h>): Include.
43388 (errno): Declare if not defined.
43389 (addext): Work correctly when pathconf returns -1 and leaves
43390 errno alone because there is no limit. Also, work even if
43391 pathconf returns a value greater than SIZE_MAX.
43393 2001-08-12 Jim Meyering <meyering@lucent.com>
43395 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
43396 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
43397 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
43398 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
43399 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
43400 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
43401 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
43402 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
43403 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
43404 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
43405 utime.m4, utimes.m4, xstrtoumax.m4:
43406 Quote the first argument in each use of AC_DEFUN.
43408 2001-08-12 Jim Meyering <meyering@lucent.com>
43410 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
43411 Simply `return getcwd (NULL, 0);'.
43412 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
43413 Use 1300 as initial value for length, not PATH_MAX.
43415 * lib/pathmax.h: Clean up cpp syntax.
43417 2001-08-12 Jim Meyering <meyering@lucent.com>
43419 * lib/gettimeofday.c: New file.
43420 * lib/gtod.h: New file.
43421 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
43423 2001-08-05 Jim Meyering <meyering@lucent.com>
43425 * m4/jm-macros.m4: Require autoconf-2.52.
43427 2001-08-04 Jim Meyering <meyering@lucent.com>
43429 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
43430 stmt, to get in sync with glibc.
43432 2001-08-03 Paul Eggert <eggert@twinsun.com>
43434 The following changes are from gettext 0.10.39 as maintained by
43437 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
43438 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
43439 with inverted sense. All uses changed.
43441 * lib/mbswidth.c: Don't include <limits.h>.
43442 Include <stdlib.h> and <string.h> unconditionally.
43443 (iswcntrl, mbsinit, ISCNTRL): New macros.
43444 (mbsnwidth): Use K&R style function declarations.
43445 Don't bother checking for MB_LEN_MAX == 1, since the compiler
43446 can optimize it when MB_CUR_MAX == 1.
43447 The width of control characters is zero, not 1.
43449 2001-08-03 Paul Eggert <eggert@twinsun.com>
43451 The following changes are from gettext 0.10.39 as maintained by
43452 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
43454 * m4/codeset.m4: Upgrade to serial AM1.
43455 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
43456 all uses changed. Quote first arg of AC_DEFUN.
43457 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
43459 * m4/iconv.m4: Upgrade to serial AM2.
43460 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
43461 Add --with-libconv-prefix.
43462 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
43463 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
43464 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
43465 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
43466 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
43468 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
43469 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
43470 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
43471 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
43472 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
43473 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
43474 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43475 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
43476 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
43478 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
43481 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
43482 not the default value.
43484 2001-06-25 Bruno Haible <haible@clisp.cons.org>
43485 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
43486 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
43487 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
43488 Also check for iswcntrl, used for wcwidth fallback.
43489 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
43492 2001-08-03 Jim Meyering <meyering@lucent.com>
43494 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
43495 as it was in the original. Reported by Paul Eggert.
43497 2001-07-16 Jim Meyering <meyering@lucent.com>
43499 * m4/gettimeofday.m4: New file.
43500 Prompted by a report from Bernhard Baehr.
43502 2001-07-15 Jim Meyering <meyering@lucent.com>
43504 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
43505 stuff. Now it's in ../Makefile.cfg.
43507 2001-07-15 Jim Meyering <meyering@lucent.com>
43509 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
43510 (BUILT_SOURCES): Add unlocked-io.h.
43511 (io_functions): Define.
43512 (unlocked-io.h): New rule.
43513 (DISTCLEANFILES): Add unlocked-io.h.
43514 (all-local): Depend on unlocked-io.h, to ensure it is created.
43516 * lib/unlocked-io.hin: New file
43518 * lib/regex.c: Update from glibc.
43520 2001-07-05 Jim Meyering <meyering@lucent.com>
43522 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
43524 (libfetish_a_SOURCES): Put all .h files here instead.
43525 Remove a thus-exposed (better checks in automake) duplicate and
43526 two unnecessary .h files.
43528 2001-07-04 Jim Meyering <meyering@lucent.com>
43530 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
43531 that generates jm-glibc-io.m4 so that it doesn't trigger any make
43534 2001-07-02 Jim Meyering <meyering@lucent.com>
43536 The following changes were prompted by suggestions from Bruno Haible.
43538 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
43540 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
43541 definition of EXTRA_DIST.
43542 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
43543 ensure that the generated file is created/updated whenever the list
43544 of $(unlocked_functions) is changed.
43545 (jm-glibc-io.m4): New rule.
43546 (unlocked-io.h): New rule -- currently unused.
43548 2001-06-24 Jim Meyering <meyering@lucent.com>
43550 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
43551 unmatched right bracket, rather than kludging it with an extra,
43552 falsely-matching quote in a comment. Patch by Akim Demaille.
43554 2001-06-11 Jim Meyering <meyering@lucent.com>
43556 * lib/regex.c: Update from GNU libc.
43558 2001-05-27 Jim Meyering <meyering@lucent.com>
43560 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
43561 Check for ut_type in struct utmp.
43563 2001-05-27 Jim Meyering <meyering@lucent.com>
43565 * lib/readutmp.h (UT_TYPE): Define.
43567 2001-05-24 Jim Meyering <meyering@lucent.com>
43569 * lib/argmatch.c: Include "quote.h".
43570 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
43571 quote function. Reported by Göran Uddeborg.
43573 2001-05-22 Jim Meyering <meyering@lucent.com>
43575 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
43576 now that we use the package-supplied version unconditionally.
43577 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
43579 2001-05-21 Jim Meyering <meyering@lucent.com>
43581 * m4/regex.m4: Change a couple backticks to single quotes to avoid
43582 shell syntax errors.
43584 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
43586 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
43588 2001-05-20 Paul Eggert <eggert@twinsun.com>
43590 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
43591 Don't bother to check library strftime, since
43592 we'll be using our own my_strftime function anyway.
43593 Define my_strftime instead of strftime.
43595 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
43597 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
43598 which is not yet declared.
43600 2001-05-15 Jim Meyering <meyering@lucent.com>
43602 * m4/regex.m4: Use proper quoting so brackets appear in the test
43604 Reported by, and with help from, Bruno Haible.
43606 2001-05-13 Jim Meyering <meyering@lucent.com>
43608 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
43611 2001-05-11 Paul Eggert <eggert@twinsun.com>
43613 dirname code cleanup. base_name now behaves more compatibly
43614 with POSIX basename when given file names that have trailing
43615 slashes, and similarly for dir_name. Add new primitives
43616 base_len and dir_len. Put the directory-name-related decls
43619 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
43620 * lib/backupfile.c (base_name): Likewise.
43621 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
43622 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
43623 * lib/makepath.c (strip_trailing_slashes): Likewise.
43624 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
43625 ISSLASH): Likewise.
43626 * lib/rename.c (strip_trailing_slashes): Likewise.
43627 * lib/same.c (base_name): Likewise.
43628 * lib/stripslash.c (ISSLASH): Likewise.
43630 * lib/addext.c: Include <dirname.h> after size_t is defined.
43631 * lib/backupfile.c: Likewise.
43633 * lib/addext.c (addext): Use base_len to trim redundant
43634 trailing slashes instead of doing it ourselves.
43635 But do not trim the last slash if it is not redundant.
43637 * lib/backupfile.c (find_backup_file_name,
43638 max_backup_version): Use base_len instead of rolling it ourselves.
43639 Handle the case of "" and (on DOS) "C:" correctly.
43641 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
43642 needed. Include <string.h>, <dirname.h>.
43643 (base_name): Allow file names ending in slashes, other than names
43644 that are all slashes. In this case, return the basename followed
43645 by the slashes. This is more general, and can be used in places
43646 where the original base_name purposely had an assertion failure.
43647 (base_len): New function.
43649 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
43650 Do not include <assert.h>; no longer needed.
43652 (memrchr): Remove decl.
43653 (dir_name_r): Remove.
43654 (dir_len): Renamed from dirlen. All callers changed.
43655 Rewrite in terms of base_name, for simplicity and consistency.
43656 (dir_name): Never return NULL. All callers changed.
43657 Do not include <stdlib.h> in test program; no longer needed.
43658 return 0; is fine for test program.
43660 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
43662 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
43664 * lib/path-concat.c (path_concat): Use base_len to compute
43665 base length, not strlen; this means we cannot rely on memcpy
43668 * lib/same.c (STREQ): Remove.
43669 (same_name): Handle the case where the basename ends in trailing '/'.
43671 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
43672 a slash was stripped. Do not strip the last slash after a
43673 file system prefix.
43675 2001-05-11 Paul Eggert <eggert@twinsun.com>
43677 * lib/Makefile.am (libfetish_a_SOURCES):
43678 Add strftime.c, since we now compile it on all hosts.
43680 * lib/strftime.c (my_strftime):
43681 Define to nstrftime if emacs, but only if my_strftime is not defined.
43682 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
43683 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
43684 Add one more extra argument: a nanoseconds value.
43687 (my_strftime function): Add %N format.
43688 (emacs_strftimeu): Renamed from emacs_strftime,
43689 with extra ut argument.
43691 2001-05-09 Paul Eggert <eggert@twinsun.com>
43693 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
43695 2001-04-21 Jim Meyering <meyering@lucent.com>
43697 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
43700 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
43702 * m4/ftruncate.m4: Check for chsize.
43703 Link with ftruncate.o unconditionally if ftruncate is missing.
43704 This was required when cross-compiling to i586-mingw32msvc.
43706 2001-04-08 Jim Meyering <meyering@lucent.com>
43708 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
43709 recomputed; that's necessary when the offset spans a DST transition.
43710 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
43712 2001-04-02 Jim Meyering <meyering@lucent.com>
43714 * lib/regex.h, regex.c: Update from GNU libc.
43716 2001-03-24 Jim Meyering <meyering@lucent.com>
43718 * m4/jm-macros.m4: Require autoconf-2.49d.
43720 2001-03-20 Bruno Haible <haible@clisp.cons.org>
43722 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
43724 2001-03-19 Paul Eggert <eggert@twinsun.com>
43726 * lib/version-etc.c (version_etc_copyright): Update to 2001.
43728 2001-03-17 Jim Meyering <meyering@lucent.com>
43730 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
43731 now that the version in autoconf is equivalent.
43732 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
43734 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
43735 Suggestion from Akim Demaille.
43737 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
43738 (jm_PREREQ_TEMPNAME): New function.
43740 2001-03-16 Paul Eggert <eggert@twinsun.com>
43742 * lib/tempname.c (uint64_t): Define to uintmax_t if
43743 not defined, and if UINT64_MAX is not defined.
43744 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
43745 Reported by John David Anglin.
43747 2001-03-15 Bruno Haible <haible@clisp.cons.org>
43749 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
43750 resolve alias if codeset is empty.
43751 * lib/config.charset (BeOS): Use wildcard syntax.
43753 2001-03-13 Jim Meyering <meyering@lucent.com>
43755 * lib/path-concat.c (path_concat)
43756 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
43757 concatenating e.g., `C:' and `foo'.
43760 2001-03-06 Bruno Haible <haible@clisp.cons.org>
43762 * lib/localcharset.c (locale_charset): Don't use
43763 setlocale(LC_CTYPE,NULL). Don't return NULL.
43764 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
43766 2001-03-06 Bruno Haible <haible@clisp.cons.org>
43768 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
43769 support for DOS/DJGPP.
43771 2001-03-01 Paul Eggert <eggert@twinsun.com>
43773 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
43774 lacks mkstemp. Compile our own tempname.c if we compile our own
43775 mkstemp.c, as mkstemp relies on tempname.
43777 2001-03-01 Jim Meyering <meyering@lucent.com>
43779 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
43780 AH_VERBATIM really does output its argument verbatim.
43782 2001-02-28 Paul Eggert <eggert@twinsun.com>
43784 * lib/Makefile.am (libfetish_a_SOURCES):
43785 Add dup-safer.c, fopen-safer.c.
43786 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
43788 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
43789 * lib/unistd-safer.h: New files.
43791 2001-02-25 Paul Eggert <eggert@twinsun.com>
43793 The mkstemp replacement is taken from glibc 2.2.2, with some
43794 portability fixes for use outside glibc, as follows:
43796 * lib/tempname.c (struct_stat64): New macro.
43797 (direxists, __gen_tempname): Use it.
43798 This avoids a portability problem with Solaris 8.
43800 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
43801 (<stddef.h>, <stdint.h>, <string.h>):
43802 Include only if STDC_HEADERS || _LIBC.
43803 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
43804 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
43805 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
43806 (__set_errno): Define this macro if <errno.h> doesn't.
43807 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
43808 Define these macros if <stdio.h> doesn't.
43809 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
43810 Define these macros if <sys/stat.h>
43811 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
43812 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
43813 __xstat64): Define if not _LIBC.
43814 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
43815 (__gen_tempname): Invoke gettimeofday only if
43816 HAVE_GETTIMEOFDAY || _LIBC;
43817 otherwise, fall back on plain "time".
43818 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
43820 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
43822 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
43824 2001-02-18 Paul Eggert <eggert@twinsun.com>
43826 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
43828 2001-02-17 Paul Eggert <eggert@twinsun.com>
43830 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
43831 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
43832 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
43833 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
43835 2001-02-17 Paul Eggert <eggert@twinsun.com>
43837 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
43838 Remove workaround macros for hosts that have mbrtowc but not
43839 mbstate_t, as we now insist on proper declarations for both
43840 before using mbrtowc.
43842 2001-02-17 Jim Meyering <meyering@lucent.com>
43844 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
43845 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
43846 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
43849 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
43850 rather than AC_CACHE_VAL.
43852 2001-02-17 Jim Meyering <meyering@lucent.com>
43854 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
43855 around included file name.
43857 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
43859 * lib/strftime.c: Update from GNU libc (the only changes were to
43862 2001-02-17 Jim Meyering <meyering@lucent.com>
43864 * lib/regex.c: Update from libc.
43866 2001-02-17 Bruno Haible <haible@clisp.cons.org>
43868 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
43871 2001-02-16 Paul Eggert <eggert@twinsun.com>
43873 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
43874 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
43875 Reported by Mark Hounschell via Paul Eggert.
43877 2001-02-07 Jim Meyering <meyering@lucent.com>
43879 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
43881 2001-02-05 Jim Meyering <meyering@lucent.com>
43883 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
43884 it includes the patch required for `large file' support with at least
43885 HP-UX's 10.20 /bin/cc.
43887 2001-02-03 Jim Meyering <meyering@lucent.com>
43889 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
43890 AS_IF, now that it works once again (mysteriously).
43891 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
43893 2001-01-30 Jim Meyering <meyering@lucent.com>
43895 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
43896 * m4/chown.m4: Rename conftestchown to conftest.chown.
43897 * m4/rename.m4: s/conftestdir/conftest.d1/ and
43898 s/conftestdir2/conftest.d2/.
43899 * m4/utimes.m4: s/conftestdata/conftest.data/
43900 Inspired by Pavel Roskin's change in autoconf.
43902 2001-01-30 Bruno Haible <haible@clisp.cons.org>
43904 * lib/config.charset: Update for FreeBSD 4.2.
43906 2001-01-27 Jim Meyering <meyering@lucent.com>
43908 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
43910 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
43912 2001-01-26 Jim Meyering <meyering@lucent.com>
43914 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
43915 quotearg.c includes it.
43917 2001-01-26 Jim Meyering <meyering@lucent.com>
43919 * lib/quotearg.c: Include stddef.h.
43920 * lib/quote.c: Include stddef.h.
43921 Reported by Axel Kittenberger.
43923 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
43924 line in double quotes so that it evokes a better diagnostic.
43925 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
43926 Reported by Axel Kittenberger.
43928 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
43930 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
43931 as if it was a `charset'.
43933 2001-01-21 Bruno Haible <haible@clisp.cons.org>
43935 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
43938 2001-01-21 Bruno Haible <haible@clisp.cons.org>
43940 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
43941 to avoid a warning. Add back 'const' to inptr.
43943 2001-01-20 Jim Meyering <meyering@lucent.com>
43945 Be sure that headers are checked before used in code compiled
43946 for the type checks.
43947 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
43948 In place of that, invoke jm_CHECK_ALL_TYPES.
43949 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
43950 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
43951 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
43952 The check for ssize_t was mistakenly run before the test for unistd.h.
43954 The configure-time check for stdbool.h was missing.
43955 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
43956 (jm_PREREQ_HASH): New function.
43958 2001-01-17 Jim Meyering <meyering@lucent.com>
43960 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
43961 for autoconf-2.49c.
43962 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
43964 2001-01-16 Jim Meyering <meyering@lucent.com>
43966 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
43969 2001-01-14 Jim Meyering <meyering@lucent.com>
43971 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
43972 foo and bar. Create conftestdir/ in the script, not in the C code.
43973 Remove directories in the script, not in the C code.
43974 Remove conftestdir{,2} before trying to create the directory.
43975 Make the entire configure script fail if the mkdir fails.
43977 2001-01-14 Jim Meyering <meyering@lucent.com>
43979 * lib/rename.c: New file. From Volker Borchert.
43980 Include stdlib.h, string.h or strings.h, and xalloc.h.
43981 Use strip_trailing_slashes rather than open-coding it.
43983 2001-01-03 Paul Eggert <eggert@twinsun.com>
43985 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
43987 2001-01-03 Jim Meyering <meyering@lucent.com>
43989 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
43990 of local `inptr' to avoid warning with some system declarations of
43993 2001-01-02 Volker Borchert <bt@teknon.de>
43995 * m4/rename.m4: New file.
43996 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
43998 2001-01-01 Jim Meyering <meyering@lucent.com>
44000 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
44001 even on systems with utmpx.h. It's necessary for the declaration of
44002 utmp's ut_user member. Reported by Andreas Jaeger.
44004 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
44005 available. They are required for the declarations of getgrgid and
44007 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
44008 Reported by Andreas Jaeger.
44010 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
44012 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
44013 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
44014 so `make install' also works in VPATH builds.
44016 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
44018 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
44019 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
44020 can be used in subdirectories.
44022 2000-12-29 Paul Eggert <eggert@twinsun.com>
44024 * lib/modechange.c: Do not assume that mode_t uses the
44025 traditional octal encoding. E.g. "chmod 1 FOO" should set
44026 the other-execute bit of FOO even if S_IXOTH != 1.
44028 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
44029 WOTH, XOTH, ALLM): New macros.
44030 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
44031 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
44033 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
44034 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
44036 No need to use uintmax_t; unsigned long is long enough.
44037 Don't bother to get suffix since we don't use it.
44039 2000-12-26 Jim Meyering <meyering@lucent.com>
44041 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
44042 better with autoheader.
44044 2000-12-24 Jim Meyering <meyering@lucent.com>
44046 * lib/hash.c (is_prime): Return explicit boolean values.
44047 (hash_get_first): Return NULL to appease Irix5.6's 89.
44048 Reported by Nelson Beebe.
44050 2000-12-19 Bruno Haible <haible@clisp.cons.org>
44052 * lib/localcharset.c (locale_charset): Add support for Win32.
44054 2000-12-18 Paul Eggert <eggert@twinsun.com>
44056 * lib/physmem.h, lib/physmem.c: New files.
44058 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
44059 (noinst_HEADERS): Add physmem.h.
44061 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
44062 't' for compatibility with Solaris 8 sort.
44064 2000-12-18 Bruno Haible <haible@clisp.cons.org>
44066 * lib/config.charset: Add support for BeOS.
44068 2000-12-17 Jim Meyering <meyering@lucent.com>
44070 * m4/dos.m4 (jm_AC_DOS): New file and macro.
44071 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
44073 2000-12-16 Jim Meyering <meyering@lucent.com>
44075 This bug had a serious impact on chown: `chown N:M FILE' (for integer
44076 N and M) would have treated it like `chown N:N FILE'.
44078 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
44080 2000-12-16 Jim Meyering <meyering@lucent.com>
44082 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
44083 SHELLS_FILE to a file name that's useful on djgpp systems.
44085 (ADDITIONAL_DEFAULT_SHELLS): Define.
44086 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
44087 Based mostly on a patch from Prashant TR.
44089 2000-12-16 Bruno Haible <haible@clisp.cons.org>
44091 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
44092 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
44093 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
44095 2000-12-08 Andreas Schwab <schwab@suse.de>
44097 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
44098 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
44100 2000-12-07 Jim Meyering <meyering@lucent.com>
44102 * lib/stripslash.c (ISSLASH): Define.
44103 (strip_trailing_slashes): Use ISSLASH rather than comparing against
44107 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
44108 (dir_name_r): Declare this function as static.
44109 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
44110 manifest itself on a name containing a mix of slashes and
44112 Make this function work with names starting with a DOS-style
44113 drive letter and colon prefix.
44114 (dir_name): Append `.' if necessary.
44115 Based mostly on patches from Prashant TR and Eli Zaretskii.
44117 * lib/dirname.h (dir_name_r): Remove prototype.
44119 2000-12-06 Paul Eggert <eggert@twinsun.com>
44121 * m4/off_t-format.m4: Remove this file.
44122 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
44124 2000-12-06 Jim Meyering <meyering@lucent.com>
44126 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
44127 replacement strtoull, we may well need the replacement strtoul, too.
44128 Check for declarations of strtoul and strtoull.
44129 Check for strtol. Mainly as a cue to cause automake to include
44130 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
44131 Check for limits.h -- strtol.c needs it.
44133 2000-12-05 Jim Meyering <meyering@lucent.com>
44135 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
44137 2000-12-04 Jim Meyering <meyering@lucent.com>
44139 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
44140 Also include memory.h, stdlib.h, unistd.h if appropriate.
44141 Reported by Andreas Jaeger (conflicting declaration of malloc).
44143 2000-12-02 Jim Meyering <meyering@lucent.com>
44145 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
44146 * m4/jm-macros.m4 (jm_MACROS): require it.
44148 2000-12-02 Jim Meyering <meyering@lucent.com>
44150 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
44152 2000-12-01 Paul Eggert <eggert@twinsun.com>
44154 * lib/memrchr.c: Include <config.h> before any system include file.
44156 2000-11-30 Jim Meyering <meyering@lucent.com>
44158 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
44160 2000-11-30 Jim Meyering <meyering@lucent.com>
44162 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
44164 2000-11-29 Paul Eggert <eggert@twinsun.com>
44166 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
44168 2000-11-26 Jim Meyering <meyering@lucent.com>
44170 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
44172 2000-11-22 Paul Eggert <eggert@twinsun.com>
44174 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
44175 size of (size_t) -1; it's not portable.
44177 2000-11-17 Jim Meyering <meyering@lucent.com>
44179 * lib/strstr.c: Update from GNU libc.
44181 2000-11-17 Akim Demaille <akim@epita.fr>
44183 * lib/obstack.h: Formatting changes.
44184 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
44185 prevent type checking.
44186 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
44187 cast the value to (void *): assigning a `foo *' to a `void *'
44189 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
44191 2000-11-16 Jim Meyering <meyering@lucent.com>
44193 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
44195 2000-11-11 Jim Meyering <meyering@lucent.com>
44197 * lib/error.c: Add a couple #includes, merging from GNU libc version.
44199 2000-11-10 Jim Meyering <meyering@lucent.com>
44201 * lib/obstack.h: Update from GNU libc.
44202 * lib/obstack.c: Likewise.
44204 2000-11-08 Bruno Haible <haible@clisp.cons.org>
44206 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
44208 2000-11-06 Paul Eggert <eggert@twinsun.com>
44210 * lib/getusershell.c (setusershell): Use rewind rather than
44211 fseek/fseeko, to avoid configuration hassles with fseeko.
44212 Don't bother opening SHELLS_FILE if shellstream is NULL;
44213 it's not necessary.
44215 2000-11-05 Jim Meyering <meyering@lucent.com>
44217 * lib/makepath.h (make_dir): Declare.
44218 * lib/makepath.c (make_dir): Remove `static' attribute.
44221 2000-11-04 Jim Meyering <meyering@lucent.com>
44223 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
44225 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
44227 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
44228 last one in a bucket, advance to the next bucket.
44230 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
44232 * lib/fnmatch.c: Do not comment out all the code if we are using
44233 the GNU C library, because in some cases we are replacing buggy
44234 code in the GNU C library itself.
44236 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
44238 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
44239 (regex_compile): Catch bogus \(\1\).
44241 2000-10-30 Paul Eggert <eggert@twinsun.com>
44243 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
44244 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
44245 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
44247 2000-10-30 Paul Eggert <eggert@twinsun.com>
44249 * lib/error.h, getline.h, modechange.h:
44250 Remove "2000" from Copyright line, as the file hasn't been
44251 changed this year other than in the copyright notice.
44253 * lib/xalloc.h: Add "2000" to Copyright line, as this file
44254 was changed this year.
44256 2000-10-29 Jim Meyering <meyering@lucent.com>
44258 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
44260 * m4/ls-mntd-fs.m4: Likewise
44262 2000-10-29 Jim Meyering <meyering@lucent.com>
44264 * lib/xstat.in: Fix grammar in comment.
44266 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
44268 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
44269 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
44270 doesn't define __restrict_arr.
44272 2000-10-28 Jim Meyering <meyering@lucent.com>
44274 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
44275 (jm_PREREQ_MEMCHR): New function.
44277 2000-10-28 Jim Meyering <meyering@lucent.com>
44279 * lib/memchr.c: Update from libc.
44280 Adjust for portability:
44281 [HAVE_STDLIB_H]: Include stdlib.h.
44282 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
44283 Undef __memchr, too.
44284 [!weak_alias]: Define __memchr to memchr.
44286 * lib/regex.c: Update from libc.
44287 * lib/regex.h: Likewise.
44288 * lib/getopt1.c: Likewise.
44289 * lib/memcmp.c: Likewise.
44291 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
44292 Avoid using fseek, when possible -- it's broken by design.
44293 Patch by Ulrich Drepper.
44295 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
44297 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
44298 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
44299 Giving in to popular pressure to shut up the compiler with casts.
44301 2000-10-26 Jim Meyering <meyering@lucent.com>
44303 * lib/strftime.c: Update from libc.
44305 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
44307 * regex.c: More `unsigned char' -> `re_char' changes.
44308 Also change several `int' into `re_wchar_t'.
44309 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
44310 (PUSH_FAILURE_POINTER): Don't cast any more.
44311 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
44312 We want GCC to complain, since this piece of code makes
44313 re_match non-reentrant, which *should* be fixed.
44314 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
44315 (EXTEND_BUFFER): Use RETALLOC.
44316 (SET_LIST_BIT): Don't cast.
44317 (re_wchar_t): New type.
44318 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
44319 that those two functions will always properly return.
44320 (IMMEDIATE_QUIT_CHECK): Cast to void.
44321 (analyse_first): Use recursion rather than an explicit stack.
44322 (re_compile_fastmap): Can't fail anymore.
44323 (re_search_2): Don't check re_compile_fastmap for failure.
44324 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
44325 Now also sets the new value (passed in a new argument).
44326 (re_match_2_internal): Use it.
44327 Also, use a new var `reg' of type size_t when looping through regs
44328 rather than reuse the inappropriate `mcnt'.
44330 2000-10-25 Jim Meyering <meyering@lucent.com>
44332 * lib/obstack.c: Update from libc.
44334 2000-10-24 Kenichi Handa <handa@etl.go.jp>
44336 * regex.c (regex_compile): Change the way of handling a range from
44337 a char less than 256 to a char not less than 256.
44339 2000-10-24 Andrew Innes <andrewi@gnu.org>
44341 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
44343 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
44344 so that re_search functions only quit when callers expect them to.
44346 2000-10-23 Jim Meyering <meyering@lucent.com>
44348 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
44349 wrong. That set_locale call must not have any side effects.
44352 2000-10-22 Jim Meyering <meyering@lucent.com>
44354 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
44355 [CYCLIC]: Remove now-unused definition.
44357 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
44358 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
44359 Suggestion from Ulrich Drepper.
44361 2000-10-21 Jim Meyering <meyering@lucent.com>
44363 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
44364 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
44365 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
44367 2000-10-21 Jim Meyering <meyering@lucent.com>
44369 * lib/dirname.c (memrchr): Declare if necessary.
44370 (dir_name): Remove the restriction that there be no
44371 trailing slashes. Now, this code skips past them, effectively
44373 [TEST_DIRNAME] (main): New unit tests.
44375 * lib/memrchr.c: New file from GNU libc.
44376 Undef __memrchr, too.
44377 [!weak_alias]: Define __memrchr to memrchr.
44378 Guard weak_alias use with `#ifdef weak_alias'.
44380 2000-10-21 Jim Meyering <meyering@lucent.com>
44382 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
44383 (dir_name): Use dir_name_r.
44384 * lib/dirname.h (dir_name_r): Declare it.
44386 2000-10-17 Jim Meyering <meyering@lucent.com>
44388 * lib/quote.h (PARAMS): Define and use.
44389 Reported by Akim Demaille.
44391 * lib/getopt.c: Update from libc.
44393 2000-10-16 Jim Meyering <meyering@lucent.com>
44395 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
44399 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
44401 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
44403 2000-09-25 Jim Meyering <meyering@lucent.com>
44405 * lib/md5.h (rol): Define (from GnuPG).
44407 * lib/sha.c: Give credit (GnuPG) where due.
44408 (M): Use rol rather than open-coding it.
44409 Add a FIXME comment.
44411 2000-09-21 Jim Meyering <meyering@lucent.com>
44413 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
44414 Reported by Michael Stone.
44416 2000-09-20 Jim Meyering <meyering@lucent.com>
44418 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
44419 (noinst_HEADERS): Add sha.h.
44420 Based on code from Scott G. Miller and from GnuPG.
44422 2000-09-18 Jim Meyering <meyering@lucent.com>
44424 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
44425 LIBS. Otherwise, everyone ends up linking with -lelf for some
44427 Reported by Mike Stone.
44429 2000-09-15 Jim Meyering <meyering@lucent.com>
44431 * lib/regex.c: Update from libc.
44433 2000-09-10 Jim Meyering <meyering@lucent.com>
44435 * lib/getopt.c (_getopt_internal): Update from glibc.
44437 2000-09-09 Jim Meyering <meyering@lucent.com>
44439 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
44440 think it should be used as a general replacement for isascii.
44441 * lib/fnmatch.c: Likewise.
44442 * lib/mbswidth.c: Likewise
44443 * lib/regex.c: Likewise.
44446 * lib/userspec.c: Include sys/param.h and limits.h.
44448 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
44449 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
44450 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
44451 UID, GID. Check range.
44453 2000-09-06 Jim Meyering <meyering@lucent.com>
44455 * lib/getopt.c (_getopt_internal): Update from glibc.
44457 2000-08-30 Jim Meyering <meyering@lucent.com>
44459 * lib/strftime.c: Merge in changes from GNU libc.
44461 2000-08-26 Jim Meyering <meyering@lucent.com>
44463 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
44464 * m4/fpending.m4: New file.
44466 2000-08-26 Jim Meyering <meyering@lucent.com>
44468 * lib/closeout.c: Include "__fpending.h".
44469 (close_stdout_status): Return right away if there's nothing to flush.
44471 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
44472 * lib/__fpending.c: New file.
44473 * lib/__fpending.h: New file.
44475 2000-08-20 Jim Meyering <meyering@lucent.com>
44477 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
44478 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
44479 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
44481 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
44483 Improve fileutils installation on systems where running
44484 programs (like install) can't be unlinked.
44485 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
44486 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
44488 2000-08-07 Paul Eggert <eggert@twinsun.com>
44490 Standardize on "memory exhausted" instead of "Memory exhausted"
44491 or "virtual memory exhausted".
44492 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
44493 "virtual memory exhausted".
44494 * lib/same.c (same_name): Invoke xalloc_die instead of printing
44496 * lib/userspec.c (parse_user_spec): Likewise.
44497 * lib/bumpalloc.h: comment fix
44498 * lib/same.c, userspec.c: Include xalloc.h.
44500 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
44501 not char *const and pointing to a constant array.
44502 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
44503 (xrealloc): Comment fix.
44505 * lib/userspec.c (parse_user_spec):
44506 Don't translate a message until just before returning,
44507 to avoid unnecessary translation.
44509 2000-08-07 Jim Meyering <meyering@lucent.com>
44511 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
44512 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
44513 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
44514 getgroups.c, gethostname.c, getopt.h, group-member.c,
44515 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
44516 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
44517 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
44518 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
44519 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
44520 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
44521 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
44522 yesno.c: Back out Copyright date changes for each file with no change
44523 this year. This eases coordination with other programs using the same
44524 source code modules. From Paul Eggert.
44526 2000-08-06 Paul Eggert <eggert@twinsun.com>
44528 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
44529 not char, for compatibility with glibc 2.1.3 strftime.c.
44531 2000-08-03 Greg McGary <greg@mcgary.org>
44533 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
44534 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
44535 (EXTEND_BUFFER): Use them.
44537 2000-08-01 Jim Meyering <meyering@lucent.com>
44539 * lib/dirname.c (ISSLASH): Define.
44540 (BACKSLASH_IS_PATH_SEPARATOR): Define.
44541 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
44542 both `\' and `/' may be use as path separators.
44543 Based on a patch from Prashant TR.
44545 2000-07-31 Paul Eggert <eggert@twinsun.com>
44547 * lib/quotearg.c (quotearg_n_options): Don't make the initial
44548 slot vector a constant, since it might get modified.
44550 2000-07-31 Jim Meyering <meyering@lucent.com>
44552 * lib/xmalloc.c: Use `virtual memory exhausted', not
44553 `Memory exhausted'.
44554 * lib/obstack.c (print_and_abort): Likewise.
44556 2000-07-30 Paul Eggert <eggert@twinsun.com>
44558 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
44559 buffer, so that the caller can always quote one small
44560 component of a "memory exhausted" message in slot 0.
44561 From a suggestion by Jim Meyering.
44563 2000-07-30 Jim Meyering <meyering@lucent.com>
44565 * lib/makepath.c (make_path): Quote the other instance, too.
44567 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
44568 (STATIC_BUF_SIZE): Define.
44569 (quotearg_n_options): Use only statically allocated storage when
44570 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
44571 than STATIC_BUF_SIZE.
44573 2000-07-29 Jim Meyering <meyering@lucent.com>
44575 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
44576 * lib/dirname.c (dir_name): Likewise.
44578 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
44581 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
44582 (dir_name): Assert that there are no trailing slashes.
44584 2000-07-29 Bruno Haible <haible@clisp.cons.org>
44586 * lib/mbswidth.h (mbswidth): Add a flags argument.
44587 (mbswidth): New declaration.
44588 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
44589 * lib/mbswidth.c (mbswidth): Add a flags argument.
44590 (mbsnwidth): New function.
44592 2000-07-24 Jim Meyering <meyering@lucent.com>
44594 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
44596 2000-07-23 Paul Eggert <eggert@twinsun.com>
44598 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
44600 2000-07-23 Paul Eggert <eggert@twinsun.com>
44602 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
44603 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
44604 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
44605 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
44606 invoke multibyte primitives.
44608 2000-07-23 Paul Eggert <eggert@twinsun.com>
44611 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
44612 so that mbstate_t is always defined.
44614 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
44615 be 1 in at least one GCC installation, and this configuration
44616 error is likely to be common. Ignoring MB_LEN_MAX hurts
44617 performance on hosts that have mbrtowc but have only unibyte
44618 locales, but I assume these hosts are rare.
44620 2000-07-23 Paul Eggert <eggert@twinsun.com>
44622 * lib/mbswidth.c (_XOPEN_SOURCE):
44623 Don't define; this causes problems on Solaris 7.
44624 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
44626 2000-07-23 Jim Meyering <meyering@lucent.com>
44628 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
44629 too: getgrgid, getpwuid, getuid.
44631 2000-07-23 Jim Meyering <meyering@lucent.com>
44633 * lib/basename.c (base_name): Add an assertion.
44635 2000-07-23 Bruno Haible <haible@clisp.cons.org>
44637 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
44638 shadow its mbsinit function.
44640 2000-07-17 Bruno Haible <haible@clisp.cons.org>
44642 * lib/mbswidth.h: New file.
44643 * lib/mbswidth.c: New file.
44644 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
44645 (noinst_HEADERS): Add mbswidth.h.
44647 2000-07-17 Bruno Haible <haible@clisp.cons.org>
44649 * lib/config.charset: Add support for FreeBSD. Improve support for
44652 2000-07-16 Bruno Haible <haible@clisp.cons.org>
44654 * m4/mbswidth.m4: New file.
44655 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
44657 2000-07-15 Jim Meyering <meyering@lucent.com>
44659 * lib/makepath.c: Include quote.h.
44660 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
44661 corresponding argument in a `quote (...)' call.
44662 Give better diagnostics.
44664 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
44665 (noinst_HEADERS): Add quote.h.
44667 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
44668 from tar's src/misc.c.
44669 * lib/quote.h: New file. Prototypes for same.
44671 2000-07-14 Paul Eggert <eggert@twinsun.com>
44673 From a suggestion by Bruno Haible.
44674 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
44675 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
44676 to decide whether to define the BeOS workaround macro;
44677 this adjusts to the change to AC_MBSTATE_T.
44679 2000-07-14 Jim Meyering <meyering@lucent.com>
44681 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
44682 jm_AC_TYPE_UINTMAX_T.
44684 2000-07-13 Paul Eggert <eggert@twinsun.com>
44686 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
44688 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
44689 quotearg_buffer_restyled): Add support for
44690 clocale_quoting_style. Undo previous change to
44691 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
44692 and "{RIGHT QUOTATION MARK}" msgids.
44694 2000-07-10 Paul Eggert <eggert@twinsun.com>
44696 From a suggestion by Bruno Haible.
44697 * m4/mbstate_t.m4 (AC_MBSTATE_T):
44698 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
44699 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
44700 and mbstate_t, to a single-part test that simply defines mbstate_t.
44701 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
44702 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
44704 2000-07-10 Jim Meyering <meyering@lucent.com>
44706 * m4/strerror_r.m4: Mirror the correction made in autoconf.
44708 * m4/gnu-source.m4: Output to confdefs.h directly.
44709 Suggestion from Akim Demaille.
44711 2000-07-09 Paul Eggert <eggert@twinsun.com>
44713 The old behavior of quoting `like this' doesn't look good with
44714 newer, ISO-style fonts. See:
44715 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
44717 Instead, quote "like this" by default. Let the translator
44718 tailor the locale-specific quoting behavior by providing
44719 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
44721 * lib/quotearg.c (N_): New macro.
44722 (gettext_default): New function.
44723 (quotearg_buffer_restyled): Use
44724 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
44725 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
44727 2000-07-09 Jim Meyering <meyering@lucent.com>
44729 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
44730 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
44732 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
44733 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
44735 2000-07-09 Jim Meyering <meyering@lucent.com>
44737 * lib/Most files: Update copyright dates to include 2000.
44739 2000-07-08 Jim Meyering <meyering@lucent.com>
44741 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
44743 (xgethostname): Remove now-unnecessary #ifdef.
44744 Move declaration of `err' into loop where it's used.
44746 2000-07-05 Paul Eggert <eggert@twinsun.com>
44747 and Bruno Haible <haible@clisp.cons.org>
44749 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
44750 only if the test for an object-type mbstate_t fails. This
44751 prevents us from mistakenly reporting that mbstate_t is a
44752 system object type after we "#define mbstate_t int" to work
44755 2000-07-05 Paul Eggert <eggert@twinsun.com>
44756 and Bruno Haible <haible@clisp.cons.org>
44758 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
44760 2000-07-05 Bruno Haible <haible@clisp.cons.org>
44762 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
44764 Include <ctype.h> for use of isalpha.
44766 2000-07-05 Bruno Haible <haible@clisp.cons.org>
44768 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
44769 by allocating a larger buffer. Test the gethostname return value for
44770 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
44771 returns an error and ENAMETOOLONG isn't defined.
44773 2000-07-05 Bruno Haible <haible@clisp.cons.org>
44775 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
44778 2000-07-04 Jim Meyering <meyering@lucent.com>
44780 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
44781 of the deprecated AC_CHECKING.
44783 2000-07-04 Jim Meyering <meyering@lucent.com>
44785 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
44786 Reported by Bruno Haible.
44788 2000-07-04 Jim Meyering <meyering@lucent.com>
44790 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
44791 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
44794 2000-07-03 Paul Eggert <eggert@twinsun.com>
44796 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
44797 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
44799 2000-07-03 Paul Eggert <eggert@twinsun.com>
44800 and Bruno Haible <haible@clisp.cons.org>
44802 * lib/quotearg.c (mbrtowc):
44803 Assign to *pwc, and return 1 only if result is nonzero.
44804 (iswprint): Use ISPRINT when substituting our own mbrtowc.
44806 2000-07-03 Jim Meyering <meyering@lucent.com>
44808 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
44810 2000-07-03 Jim Meyering <meyering@lucent.com>
44812 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
44813 This is necessary to get a definition of e.g., UTMP_FILE on
44817 2000-07-02 Jim Meyering <meyering@lucent.com>
44819 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
44821 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
44822 AC_LIBOBJ(function_name).
44823 * m4/chown.m4: Likewise.
44824 * m4/fnmatch.m4: Likewise.
44825 * m4/ftruncate.m4: Likewise.
44826 * m4/getgroups.m4: Likewise.
44827 * m4/getline.m4: Likewise.
44828 * m4/group-member.m4: Likewise.
44829 * m4/jm-macros.m4: Likewise.
44830 * m4/lstat.m4: Likewise.
44831 * m4/malloc.m4: Likewise.
44832 * m4/memcmp.m4: Likewise.
44833 * m4/nanosleep.m4: Likewise.
44834 * m4/putenv.m4: Likewise.
44835 * m4/realloc.m4: Likewise.
44836 * m4/regex.m4: Likewise.
44837 * m4/stat.m4: Likewise.
44838 * m4/strftime.m4: Likewise.
44840 2000-07-02 Jim Meyering <meyering@lucent.com>
44842 * lib/quotearg.c (mbstate_t): Don't define here.
44844 2000-07-02 Jim Meyering <meyering@lucent.com>
44846 * lib/nanosleep.c (SIGCONT): Define if not already defined.
44848 2000-07-01 Jim Meyering <meyering@lucent.com>
44850 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
44852 2000-07-01 Jim Meyering <meyering@lucent.com>
44854 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
44857 2000-07-01 Bruno Haible <haible@clisp.cons.org>
44859 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
44860 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
44862 2000-07-01 Bruno Haible <haible@clisp.cons.org>
44864 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
44865 per change in ../m4/ls-mntd-fs.m4.
44866 (read_filesystem_list): Ignore symbolic links.
44868 2000-06-29 Jim Meyering <meyering@lucent.com>
44870 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
44871 for declaration of strcmp.
44873 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
44875 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
44876 Avoid warning by casting result to `char *' to remove `const'.
44878 2000-06-28 Jim Meyering <meyering@lucent.com>
44880 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
44881 included by quotearg.c, for which we perform this test. From
44884 2000-06-27 Bruno Haible <haible@clisp.cons.org>
44886 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
44887 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
44888 <utmpx.h> exists, put readutmp.o into LIBOBJS.
44890 2000-06-27 Bruno Haible <haible@clisp.cons.org>
44892 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
44894 2000-06-26 Paul Eggert <eggert@twinsun.com>
44896 savedir now sets errno on failure and invokes xmalloc to get memory.
44897 Fix a couple of other minor bugs while we're at it.
44899 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
44900 (NAMLEN): Remove macro.
44901 (malloc, realloc): Remove decls.
44902 (stpcpy): Likewise.
44903 ("xalloc.h"): Include.
44904 (NAME_SIZE_DEFAULT): New macro.
44905 (savedir): Use xmalloc / xrealloc to allocate memory.
44906 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
44907 Skip "" directory entries.
44908 Use strlen to calculate directory entry length, since the old method
44909 is rarely used these days and isn't worth supporting.
44910 Don't use a pointer after freeing it.
44911 Check for integer overflow when calculating allocation size.
44912 Use memcpy to copy entries, instead of stpcpy.
44913 Set errno properly when returning NULL.
44914 Check for readdir error.
44916 2000-06-26 Jim Meyering <meyering@lucent.com>
44918 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
44920 2000-06-25 Jim Meyering <meyering@lucent.com>
44922 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
44923 Linux header bug when _XOPEN_SOURCE is defined to 500.
44925 2000-06-25 Bruno Haible <haible@clisp.cons.org>
44927 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
44930 2000-06-25 Bruno Haible <haible@clisp.cons.org>
44932 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
44934 Don't include <stdlib.h>. Don't declare malloc, realloc.
44936 2000-06-24 Jim Meyering <meyering@lucent.com>
44938 * m4/strerror_r.m4: Revive this file -- to try out an experimental
44939 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
44940 for which strerror does return char*, but which lacks a conveniently
44941 accessible declaration of the function. If the compile-test says
44942 strerror_r doesn't work, then resort to a `run'-test that works on
44943 BeOS and segfaults on DEC Unix.
44945 2000-06-24 Jim Meyering <meyering@lucent.com>
44947 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
44949 2000-06-23 Paul Eggert <eggert@twinsun.com>
44951 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
44952 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
44954 2000-06-23 Paul Eggert <eggert@twinsun.com>
44956 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
44957 (mbrtowc, mbstate_t): Define substitutes if
44958 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
44959 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
44960 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
44962 2000-06-23 Jim Meyering <meyering@lucent.com>
44964 * m4/afs.m4: Add missing AC_MSG_RESULT.
44965 Reported by Bruno Haible.
44967 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
44968 Suggestion from Bruno Haible.
44970 2000-06-23 Jim Meyering <meyering@lucent.com>
44972 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
44974 2000-06-21 Jim Meyering <meyering@lucent.com>
44976 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
44978 2000-06-21 Jim Meyering <meyering@lucent.com>
44980 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
44981 (noinst_HEADERS): Add getstr.h.
44983 * lib/getline.c (getstr): Move into a separate file.
44984 * lib/getstr.c (getstr): New file, extracted from getline.c, with
44985 the following changes: new parameter, delim2; both delim[12]
44986 parameters have type `int', not `char'. The latter would lose
44987 with 8-bit delimiters.
44988 * lib/getstr.h: New file.
44990 2000-06-21 Bruno Haible <haible@clisp.cons.org>
44992 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
44993 than 1024, return a memory chunk of least possible size, instead
44994 of size PATH_MAX + 2. In the loop, increment the size proportionally.
44995 Use free/xmalloc instead of xrealloc to avoid copying for very long
44998 2000-06-21 Bruno Haible <haible@clisp.cons.org>
45000 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
45003 2000-06-21 Bruno Haible <haible@clisp.cons.org>
45005 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
45006 address, not strdup. Include <stdlib.h> and don't declare free().
45008 2000-06-19 Jim Meyering <meyering@lucent.com>
45010 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
45012 2000-06-18 Jim Meyering <meyering@lucent.com>
45014 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
45016 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
45017 `checking whether...' message to be consistent with that of the
45020 2000-06-18 Jim Meyering <meyering@lucent.com>
45022 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
45023 Besides, these days every porting target provides a mkdir function.
45025 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
45026 needed. (this snippet comes from src/system.h).
45028 2000-06-16 Bruno Haible <haible@clisp.cons.org>
45030 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
45032 2000-06-15 Paul Eggert <eggert@twinsun.com>
45034 * lib/human.c (adjust_value): New function.
45035 (human_readable_inexact): Apply rounding style even when
45036 printing approximate values.
45038 2000-06-14 Paul Eggert <eggert@twinsun.com>
45040 * lib/human.c (human_readable_inexact): Allow an input block
45041 size that is not a multiple of the output block size, and vice versa.
45042 Reported by Piergiorgio Sartor.
45044 2000-06-14 Paul Eggert <eggert@twinsun.com>
45046 * lib/getdate.y (get_date): Apply relative times after time
45047 zone indicator, not before. Reported by Todd A. Jacobs.
45049 2000-06-13 Jim Meyering <meyering@lucent.com>
45051 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
45053 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
45055 2000-06-12 Paul Eggert <eggert@twinsun.com>
45057 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
45059 2000-06-12 Jim Meyering <meyering@lucent.com>
45061 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
45062 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
45064 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
45065 the optional argument, `lib'.
45067 2000-06-08 Jim Meyering <meyering@lucent.com>
45069 * m4/largefile.m4: Remove file (now that it's part of autoconf).
45071 2000-06-04 Paul Eggert <eggert@twinsun.com>
45073 Rewrite largefile configuration so that we don't need to run
45074 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
45075 AC_CANONICAL_HOST in configure.in -- jmm]
45077 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
45078 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
45079 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
45080 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
45081 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
45083 Instead of inspecting the output of getconf, try to compile the
45084 test program without and with the macro definition.
45085 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
45086 for getconf. Instead, check for the needed flags by compiling
45089 2000-06-04 Paul Eggert <eggert@twinsun.com>
45091 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
45093 2000-06-04 Jim Meyering <meyering@lucent.com>
45095 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
45096 SunOS 4.1.4 for which gid_t is an unsigned type.
45098 2000-06-03 Jim Meyering <meyering@lucent.com>
45100 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
45101 now that autoconf requires that.
45103 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
45104 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
45105 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
45107 2000-06-03 Jim Meyering <meyering@lucent.com>
45109 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
45111 2000-06-03 Bruno Haible <haible@clisp.cons.org>
45113 * m4/glibc21.m4: New file.
45114 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
45116 2000-06-03 Bruno Haible <haible@clisp.cons.org>
45118 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
45119 newer, don't install charset.alias.
45120 * lib/config.charset: Change the Linux/glibc rules so they become empty
45121 on glibc-2.1 or newer.
45123 2000-06-02 Jim Meyering <meyering@lucent.com>
45125 * lib/mountlist.c: Back out last change. Instead, do this...
45126 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
45127 me_dummy member using the same `ignore'-testing code.
45128 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
45132 2000-05-29 Jim Meyering <meyering@lucent.com>
45134 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
45135 mounts with the `ignore' attribute. Based on a patch from
45138 2000-05-28 Jim Meyering <meyering@lucent.com>
45140 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
45141 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
45142 * m4/stat.m4: Likewise.
45143 * m4/lstat.m4: Likewise.
45144 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
45146 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
45147 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
45149 2000-05-26 Jim Meyering <meyering@lucent.com>
45151 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
45153 2000-05-24 Jim Meyering <meyering@lucent.com>
45155 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
45156 autoconf requires that.
45157 * m4/lib-check.m4: Likewise.
45158 * m4/jm-macros.m4: Likewise.
45159 * m4/strftime.m4: Likewise.
45161 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
45162 AC_CHECK_DECLS, now that autoconf requires that.
45164 2000-05-22 Jim Meyering <meyering@lucent.com>
45166 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
45167 * m4/lstat.m4: Likewise.
45169 2000-05-22 Jim Meyering <meyering@lucent.com>
45171 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
45173 2000-05-20 Jim Meyering <meyering@lucent.com>
45175 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
45176 (jm_PREREQ): Use it.
45178 2000-05-18 Jim Meyering <meyering@lucent.com>
45180 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
45181 back, too, since it may have been modified by allocate_entry.
45182 (hash_delete): Rewrite to use neither the assignment operator
45183 nor the comma operator in an if-expression.
45185 2000-05-15 Paul Eggert <eggert@twinsun.com>
45188 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
45189 Remove; no longer needed.
45190 "quotearg.h": Add include.
45191 (file_name): Do not bother to explicitly initialize to NULL; it's less
45192 efficient on some hosts.
45193 (close_stdout_status): Remove test as to whether stdout was already
45194 closed; it breaks for the case "echo x | sort >&-".
45195 Quote file name colons.
45196 Do not assume that _("write error") lacks format strings.
45198 2000-05-15 Jim Meyering <meyering@lucent.com>
45200 * lib/version-etc.c (version_etc_copyright): Update the copyright
45201 string used in all --version output.
45203 2000-05-14 Jim Meyering <meyering@lucent.com>
45205 * lib/closeout.c (close_stdout_set_file_name): New function.
45206 (close_stdout_status): Use new file-scoped global.
45207 Return right away if fstat says the stdout file descriptor is invalid.
45208 * lib/closeout.h (close_stdout_set_file_name): Declare.
45210 2000-05-10 Jim Meyering <meyering@lucent.com>
45212 * lib/closeout.c [default_exit_status]: New file-scoped variable.
45213 (close_stdout_set_status): New function.
45214 * lib/closeout.h (close_stdout_set_status): Declare.
45216 2000-05-09 Jim Meyering <meyering@lucent.com>
45218 * m4/gettext.m4: Rename this...
45219 * m4/libintl.m4: ...to this.
45221 2000-05-08 Jim Meyering <meyering@lucent.com>
45223 * lib/long-options.c: Don't include closeout.h.
45224 (parse_long_options): Don't call close_stdout for --version.
45226 2000-05-06 Paul Eggert <eggert@twinsun.com>
45228 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
45229 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
45230 2.1.3 bug. This avoids a clash when files like regex.c define
45233 2000-05-06 Jim Meyering <meyering@lucent.com>
45235 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
45236 (AC_REPLACE_FUNCS): Add strnlen.
45238 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
45239 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
45241 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
45242 AC_SEARCH_LIBS call for nanosleep.
45243 (LIB_NANOSLEEP): Set and AC_SUBST.
45245 2000-05-06 Jim Meyering <meyering@lucent.com>
45247 * lib/strnlen.c: Undefine __strnlen and strnlen.
45248 [!weak_alias]: Define __strnlen to strnlen.
45250 * lib/atexit.c: New file, from libiberty.
45252 2000-05-06 Jim Meyering <meyering@lucent.com>
45254 * lib/closeout.c (close_stdout_status): Also check for errors on the
45257 2000-05-05 Jim Meyering <meyering@lucent.com>
45259 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
45260 AC_SEARCH_LIBS call for clock_gettime.
45261 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
45263 * m4/search-libs.m4: Update from autoconf.
45265 su doesn't work on Solaris 2.6.
45266 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
45267 <shadow.h>. Reported by Dragos Harabor.
45269 2000-05-05 Bruno Haible <haible@clisp.cons.org>
45271 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
45272 memcpy instead of xmalloc, xrealloc, path_concat.
45273 (locale_charset): Treat empty environment variables as absent.
45274 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
45276 2000-05-04 Jim Meyering <meyering@lucent.com>
45278 * lib/getopt.c: Update from glibc.
45279 * lib/obstack.c: Likewise.
45280 * lib/obstack.h: Likewise.
45281 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
45284 * lib/regex.h: Likewise.
45285 * lib/strndup.c: Likewise.
45286 * lib/strnlen.c: New file, from glibc.
45288 2000-05-03 Jim Meyering <meyering@lucent.com>
45290 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
45292 2000-05-02 Paul Eggert <eggert@twinsun.com>
45294 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
45295 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
45296 compile-time test, rather than inspecting host and OS, to
45297 decide whether to define _LARGEFILE_SOURCE.
45299 2000-05-01 Jim Meyering <meyering@lucent.com>
45301 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
45303 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
45304 Based on a patch from Bruno Haible.
45306 2000-05-01 Jim Meyering <meyering@lucent.com>
45308 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
45310 2000-04-29 Jim Meyering <meyering@lucent.com>
45312 * lib/path-concat.c: Declare strdup only if it's not defined.
45313 * lib/canon-host.c: Likewise.
45315 2000-04-28 Jim Meyering <meyering@lucent.com>
45317 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
45318 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
45319 is included first, then limits.h is included by locale.h by libintl.h.
45320 From John David Anglin.
45322 2000-04-25 Jim Meyering <meyering@lucent.com>
45324 * lib/makepath.c (S_IRWXUGO): Define.
45325 (make_path): Always perform explicit chmod if MODE specifies any
45326 of the `special' permission bits. Prompted by a bug report against
45327 install from Mate Wierdl and Joost van Baal.
45329 2000-04-18 Jim Meyering <meyering@lucent.com>
45331 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
45332 (jm_PREREQ): Use it.
45334 2000-04-18 Jim Meyering <meyering@lucent.com>
45336 * lib/README: New file.
45338 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
45339 getpagesize. For BeOS. Based on a patch from Bruno Haible.
45341 2000-04-17 Jim Meyering <meyering@lucent.com>
45344 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
45345 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
45346 Suggestion from Akim Demaille.
45348 2000-04-17 Jim Meyering <meyering@lucent.com>
45350 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
45351 the definition of it to rpl_strftime also defined-away the system's
45354 2000-04-15 Jim Meyering <meyering@lucent.com>
45356 Use `C' to denote so-called `contiguous' files, the same way
45358 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
45359 (ftypelet): Use S_ISCTG.
45360 From Michael Deutschmann.
45362 2000-04-14 Jim Meyering <meyering@lucent.com>
45364 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
45365 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
45368 2000-04-14 Jim Meyering <meyering@lucent.com>
45370 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
45372 2000-04-13 Jim Meyering <meyering@lucent.com>
45374 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
45375 AH_VERBATIM to insert required #ifndef into config.h.in.
45376 Suggestion from Akim Demaille.
45378 2000-04-12 Jim Meyering <meyering@lucent.com>
45380 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
45381 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
45382 Christian Krackowizer.
45384 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
45385 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
45386 (AC_SYS_LARGEFILE): Require.
45387 (AM_C_PROTOTYPES): Require.
45389 2000-04-08 Jim Meyering <meyering@lucent.com>
45391 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
45392 names don't conflict. Reported by Eli Zaretskii.
45394 2000-04-07 Jim Meyering <meyering@lucent.com>
45396 * lib/putenv.c: Move inclusion of errno.h so it follows that of
45397 sys/types.h, to work around system header problems on AIX 3.2.5.
45400 2000-04-07 Bruno Haible <haible@clisp.cons.org>
45402 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
45403 bug. Deal with the different error behavior of Irix iconv.
45405 2000-04-05 Paul Eggert <eggert@twinsun.com>
45407 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
45408 IRIX if the installer said otherwise.
45410 2000-04-05 Jim Meyering <meyering@lucent.com>
45412 Portability tweaks required for ultrix4.3.
45413 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
45414 (jm_CHECK_DECLS): Add getutent to the list of functions.
45415 (_jm_DECL_HEADERS): Add utmpx.h.
45416 From John David Anglin.
45418 * m4/strftime.m4: Back out the 2000-04-02 change.
45419 Instead of that change, simply undefine putenv in the test program.
45421 2000-04-05 Jim Meyering <meyering@lucent.com>
45423 Portability tweaks required for ultrix4.3.
45424 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
45426 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
45427 * lib/canon-host.c: Declare strdup.
45428 * lib/path-concat.c: Likewise.
45429 From John David Anglin.
45431 2000-04-04 Jim Meyering <meyering@lucent.com>
45433 Be more DOS 8.3-friendly.
45434 * lib/ref-add.sin: Renamed from ref-add.sed.in.
45435 * lib/ref-del.sin: Renamed from ref-del.sed.in.
45436 * lib/Makefile.am: Reflect renaming.
45437 Reported by Eli Zaretskii.
45439 Use a temporary file name that won't clash with `charset.alias'
45440 in the DOS 8.3 name space.
45441 * lib/Makefile.am (charset_tmp): Define.
45442 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
45443 (uninstall-local): Likewise.
45444 Reported by Eli Zaretskii.
45446 2000-04-03 Jim Meyering <meyering@lucent.com>
45448 * m4/gettext.m4: Fix typo in comment.
45450 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
45451 textutils/configure.in). Suggestion from Paul Eggert.
45452 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
45454 2000-04-02 Paul Eggert <eggert@twinsun.com>
45456 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
45457 variable in the shell rather than using putenv, which isn't
45458 portable. This avoids the configure-time inter-test dependency
45459 on the potentially-renamed putenv function.
45461 2000-03-30 Paul Eggert <eggert@twinsun.com>
45463 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
45464 before checking struct stat.st_blksize, so that
45465 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
45467 2000-03-29 Paul Eggert <eggert@twinsun.com>
45469 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
45470 since strftime.c uses HAVE_STRFTIME to decide whether to use
45471 the underlying strftime.
45473 2000-03-29 Paul Eggert <eggert@twinsun.com>
45475 * lib/time/strftime.c (my_strftime): Make sure we call the system
45476 strftime, not ourselves, when invoking the underlying strftime.
45478 2000-03-24 Jim Meyering <meyering@lucent.com>
45480 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
45481 (charset_alias): Define.
45482 (install-exec-local): Factor out common code.
45483 (uninstall-local): Split lines longer than 80.
45484 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
45485 (SUFFIXES): Define.
45486 (.sed.in.sed): New rule. Don't redirect directly to $@.
45487 (CLEANFILES): Add ref-add.sed and ref-del.sed.
45489 2000-03-19 Bruno Haible <haible@clisp.cons.org>
45491 * lib/config.charset: Output a line containing "Packages using this
45493 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
45494 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
45495 ref-del.sed): New rules.
45497 2000-03-17 Jim Meyering <meyering@lucent.com>
45499 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
45500 Otherwise, include <strings.h>
45502 2000-03-17 Bruno Haible <haible@clisp.cons.org>
45504 * lib/unicodeio.c (utf8_wctomb): New function.
45505 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
45506 format instead of in UCS-4 with platform dependent endianness.
45508 2000-03-10 Jim Meyering <meyering@lucent.com>
45510 * m4/lib-check.m4: Look for getspnam in -lgen, too.
45511 From Marco Franzen.
45513 2000-03-07 Paul Eggert <eggert@twinsun.com>
45515 * lib/savedir.c (savedir): Work even if directory size is
45516 negative; this can happen with some screwy NFS configurations.
45518 2000-03-06 Jim Meyering <meyering@lucent.com>
45520 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
45521 if it's NULL (because we ran out of memory). From Bruno Haible.
45523 2000-03-05 Jim Meyering <meyering@lucent.com>
45525 * lib/localcharset.c ("path-concat.h"): Include.
45526 (get_charset_aliases): Use path_concat instead of ANSI string
45529 * lib/unicodeio.h (PARAMS): Define.
45530 Use it to guard prototype.
45532 2000-03-04 Jim Meyering <meyering@lucent.com>
45534 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
45535 for lib/localcharset.c.
45537 2000-03-04 Jim Meyering <meyering@lucent.com>
45539 * lib/Makefile.am (install-exec-local): Create $(libdir) before
45540 installing into it.
45541 (uninstall-local): Uncomment this rule so `make distcheck' works
45544 * lib/unicodeio.c (<errno.h>): Include it.
45545 (errno): Declare if not defined.
45547 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
45549 * lib/config.charset: New version, incorporating remarks from a linux
45550 i18n mailing list. From Bruno Haible.
45552 2000-03-04 Bruno Haible <haible@clisp.cons.org>
45554 * m4/codeset.m4: New file.
45555 * m4/iconv.m4: New file.
45556 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
45558 2000-03-03 Jim Meyering <meyering@lucent.com>
45560 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
45562 2000-03-02 Jim Meyering <meyering@lucent.com>
45564 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
45565 the messages come out on separate lines.
45567 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
45568 rather than jm_CHECK_DECLARATIONS.
45569 * m4/decl.m4: Remove now-unused file.
45571 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
45574 2000-03-02 Jim Meyering <meyering@lucent.com>
45576 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
45578 2000-03-01 Jim Meyering <meyering@lucent.com>
45580 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
45581 * lib/unicodeio.c: Likewise.
45583 2000-03-01 Bruno Haible <haible@clisp.cons.org>
45585 * lib/config.charset: New file.
45586 * lib/localcharset.c: New file.
45587 * lib/unicodeio.h, lib/unicodeio.c: New files.
45588 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
45589 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
45590 (noinst_HEADERS): Add unicodeio.h.
45591 (all-local, install-exec-local, charset.alias): New targets.
45593 2000-02-28 Paul Eggert <eggert@twinsun.com>
45595 * lib/quotearg.c (ALERT_CHAR): New macro.
45596 (quotearg_buffer_restyled): Use it.
45598 2000-02-27 Jim Meyering <meyering@lucent.com>
45600 * m4/check-decl.m4: Add getenv to the list.
45602 2000-02-27 Jim Meyering <meyering@lucent.com>
45604 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
45605 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
45607 * lib/backupfile.c: Guard inclusion of stdlib.h with
45608 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
45609 Declare malloc if needed.
45611 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
45612 `#ifndef HAVE_DECL..'
45613 now that autoconf always defines the HAVE_DECL_ symbols.
45614 * lib/human.c: Likewise.
45615 * lib/same.c: Likewise.
45616 * lib/strtoumax.c: Likewise.
45618 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
45619 declaration check was not run.
45620 * lib/hash.c: Likewise.
45621 * lib/human.c: Likewise.
45622 * lib/same.c: Likewise.
45623 * lib/strtoumax.c: Likewise.
45625 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
45626 `.', then first look up the entire `.'-containing string as a login
45629 2000-02-23 Jim Meyering <meyering@lucent.com>
45631 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
45632 in place of my hack.
45634 2000-02-18 Paul Eggert <eggert@twinsun.com>
45636 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
45637 (textint): New typedef.
45638 (parser_control): Member year changed from int to textint.
45640 (YYSTYPE): Removed; replaced by %union with int and textint members.
45641 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
45642 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
45643 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
45644 (tSNUMBER, tUNUMBER): Now of type <textintval>.
45645 (date, number, to_year): Use width of number in digits, not its value,
45646 to determine whether it's a 2-digit year, or a 2-digit time.
45647 (yylex): Store number of digits of numeric tokens.
45648 Reported by John Kendall.
45650 (parser_control): Changed from struct parser_control to typedef (for
45651 consistency). All uses changed.
45653 (tID): Removed; not used.
45654 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
45656 2000-02-14 Paul Eggert <eggert@twinsun.com>
45658 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
45659 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
45661 2000-02-12 Jim Meyering <meyering@lucent.com>
45663 * lib/userspec.c (ISDIGIT): Define it.
45664 (isdigit): Remove definition.
45665 (is_number): Use ISDIGIT, not isdigit.
45666 <libintl.h>: Include.
45667 (_ and N_): Define.
45668 (parse_user_spec): Mark translatable strings.
45670 2000-02-10 Jim Meyering <meyering@lucent.com>
45672 With these changes, nanosleep.[ch] are finally enough like the other
45673 lib/* replacement files to compile on a few more losing systems.
45675 * lib/nanosleep.h: Don't include config.h.
45676 Remove prototype from declaration of nanosleep.
45677 (PARAMS): Remove now-unneeded definition.
45678 * lib/nanosleep.c: #undef nanosleep.
45679 (rpl_nanosleep): Rename from nanosleep.
45681 2000-02-10 Jim Meyering <meyering@lucent.com>
45683 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
45684 gnu_nanosleep to rpl_nanosleep.
45686 2000-02-09 Jim Meyering <meyering@lucent.com>
45688 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
45689 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
45691 2000-02-08 Akim Demaille <akim@epita.fr>
45693 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
45694 `[' and `]' and remove uses of `changequote'.
45695 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
45696 (AC_SYS_LARGEFILE): Likewise.
45697 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
45698 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
45700 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
45701 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
45702 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
45703 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
45705 2000-02-05 Jim Meyering <meyering@lucent.com>
45707 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
45708 Remove explicit use of AC_HEADER_TIME. It is required by
45709 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
45710 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
45711 in autoconf whereby the expansion of the latter ended up preceding
45712 the expansion of its prerequisite, AC_HEADER_TIME.
45713 Reported by Volker Borchert.
45715 2000-02-03 Jim Meyering <meyering@lucent.com>
45717 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
45719 2000-02-03 Jim Meyering <meyering@lucent.com>
45721 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
45722 rather than with `#if HAVE_UTMPNAME'.
45724 2000-02-02 Jim Meyering <meyering@lucent.com>
45726 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
45727 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
45728 Reported by Eli Zaretskii.
45730 2000-02-01 Jim Meyering <meyering@lucent.com>
45732 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
45734 2000-01-31 Jim Meyering <meyering@lucent.com>
45736 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
45737 functions. Add the time.h and sys/time.h headers along with the
45738 AC_REQUIRE'ment of AC_HEADER_TIME.
45740 2000-01-31 Jim Meyering <meyering@lucent.com>
45742 * lib/nanosleep.h (nanosleep): Guard declaration with
45743 `#if ! HAVE_DECL_NANOSLEEP'.
45744 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
45745 the declaration in that vendor's sys/timers.h.
45746 Reported by Christian Krackowizer.
45748 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
45749 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
45750 (ISPRINT): Likewise.
45751 Reported by Tom Tromey.
45753 2000-01-30 Jim Meyering <meyering@lucent.com>
45755 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
45757 * m4/prereq.m4 (utmp_includes): Define.
45758 Check for ut_user and ut_name members in both struct utmpx
45761 2000-01-30 Jim Meyering <meyering@lucent.com>
45763 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
45764 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
45765 header files where only utmpx.ut_user is declared.
45767 * lib/readutmp.h (UT_USER): Define.
45769 2000-01-29 Jim Meyering <meyering@lucent.com>
45771 * m4/lib-check.m4: New file containing library-related checks from
45772 fileutils and sh-utils (textutils had none).
45774 2000-01-28 Jim Meyering <meyering@lucent.com>
45776 * m4/perl.m4: Change format of warning message to look more like that
45777 from the missing script. Suggestion from François Pinard.
45779 2000-01-25 Jim Meyering <meyering@lucent.com>
45781 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
45782 well as time.h in the compile check.
45783 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
45784 Fix typo in cross-compiling case: s/yes/no/.
45786 2000-01-23 Jim Meyering <meyering@lucent.com>
45788 * m4/jm-macros.m4: Move df-related tests here from
45789 fileutils/configure.in
45791 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
45792 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
45794 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
45795 s/space/ac_fsusage_space/.
45796 (jm_FILE_SYSTEM_USAGE): Take two parameters.
45798 * m4/ftruncate.m4: New file (derived from part of
45799 fileutils/configure.in).
45800 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
45801 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
45803 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
45804 AC_SUBST these here, rather than just in sh-util/configure.in, so
45805 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
45807 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
45808 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
45809 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
45810 (AC_SUBST(POW_LIBM)): Likewise.
45811 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
45813 2000-01-23 Jim Meyering <meyering@lucent.com>
45815 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
45818 2000-01-22 Jim Meyering <meyering@lucent.com>
45820 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
45822 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
45824 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
45826 (AC_CHECK_HEADERS): Likewise for sh-utils.
45827 (AC_CHECK_HEADERS): Likewise for textutils.
45828 Merge the three lists of headers.
45830 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
45831 from fileutils' configure.in.
45833 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
45834 code. Moved tests into their own function (_jm_DECL_HEADERS) in
45837 * m4/check-decl.m4: Use #if rather than #ifdef.
45838 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
45839 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
45840 (_jm_DECL_HEADERS): Define new function.
45841 (jm_CHECK_DECLARATIONS): Require it.
45843 2000-01-22 Jim Meyering <meyering@lucent.com>
45845 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
45846 [! HAVE_DECL_STRTOULL]: Declare strtoull.
45847 Required for some AIX systems. Reported by Christian Krackowizer.
45848 [TESTING] (main): New function.
45850 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
45851 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
45854 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
45857 * lib/strverscmp.c (ISDIGIT): Define.
45858 (strverscmp): Use ISDIGIT, not isdigit.
45860 2000-01-19 Jim Meyering <meyering@lucent.com>
45862 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
45863 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
45864 defines `struct timespec' in <sys/time.h>
45866 * m4/c-bs-a.m4: Remove uses of changequote altogether.
45867 Thanks to Akim for explaining.
45869 2000-01-17 Paul Eggert <eggert@twinsun.com>
45871 * lib/nanosleep.c (nanosleep):
45872 Don't use SA_INTERRUPT to decide whether to call sigaction, as
45873 POSIX.1 doesn't require SA_INTERRUPT and some systems
45874 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
45875 it's been part of POSIX.1 since day 1 (in 1988).
45877 2000-01-17 Jim Meyering <meyering@lucent.com>
45879 * lib/interlock: Remove unused file. Reported by François Pinard.
45881 2000-01-16 Paul Eggert <eggert@twinsun.com>
45883 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
45884 alert, backslash, formfeed, and vertical tab unnecessarily in
45885 shell quoting style.
45887 2000-01-16 Jim Meyering <meyering@lucent.com>
45889 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
45890 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
45891 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
45892 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
45894 2000-01-16 Jim Meyering <meyering@lucent.com>
45896 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
45897 because the latter didn't work.
45899 2000-01-15 Jim Meyering <meyering@lucent.com>
45901 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
45902 (AC_REPLACE_FUNCS): Add memcpy and memset.
45903 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
45905 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
45907 2000-01-12 Jim Meyering <meyering@lucent.com>
45909 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
45910 (jm_PREREQ): Use it.
45911 (jm_PREREQ_READUTMP): New macro.
45912 (jm_PREREQ): Use it.
45914 2000-01-11 Paul Eggert <eggert@twinsun.com>
45916 Quote multibyte characters correctly.
45917 * m4/c-bs-a.m4: New file.
45918 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
45919 (jm_PREREQ): Use it.
45921 2000-01-11 Paul Eggert <eggert@twinsun.com>
45923 * m4/uintmax_t.m4: Port to autoconf 2.13.
45925 2000-01-08 Jim Meyering <meyering@ascend.com>
45927 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
45928 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
45930 2000-01-04 Jim Meyering <meyering@ascend.com>
45932 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
45933 jm_STRUCT_DIRENT_D_TYPE.
45934 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
45935 jm_STRUCT_DIRENT_D_INO.
45936 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
45938 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
45940 * m4/utime.m4: Likewise.
45942 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
45943 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
45945 2000-01-03 Paul Eggert <eggert@twinsun.com>
45947 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
45948 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
45950 2000-01-02 Jim Meyering <meyering@ascend.com>
45952 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
45953 remember if this is necessary.
45955 1999-12-26 Jim Meyering <meyering@ascend.com>
45957 * m4/jm-macros.m4: Use it here.
45958 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
45960 1999-12-23 Jim Meyering <meyering@ascend.com>
45962 * m4/jm-macros.m4: Check for clock_gettime (moved from
45963 fileutils/configure.in)
45964 Check for gettimeofday.
45966 1999-12-20 Jim Meyering <meyering@ascend.com>
45968 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
45969 autoconf-2.14a-1999-12-20.
45971 1999-12-19 Jim Meyering <meyering@ascend.com>
45973 * m4/lstat-slash.m4: New file.
45974 * m4/jm-macros.m4: Use the new macro:
45975 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
45977 1999-12-07 Jim Meyering <meyering@ascend.com>
45979 * m4/perl.m4: Require that File::Compare be available, too.
45980 Too many systems seem to lack it.
45982 * m4/strftime.m4: Add checks for most of the cpp macros tested in
45983 GNU's strftime.c. Prompted by a patch from Paul Eggert.
45985 1999-11-18 Paul Eggert <eggert@twinsun.com>
45987 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
45988 problem with the QNX 4.25 shell, which doesn't propagate exit
45989 status of failed commands inside shell assignments.
45991 1999-11-17 Jim Meyering <meyering@ascend.com>
45993 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
45995 1999-11-07 Jim Meyering <meyering@ascend.com>
45997 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
45999 1999-11-06 Jim Meyering <meyering@ascend.com>
46001 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
46002 * m4/jm-macros.m4 (jm_MACROS): Use it here.
46004 1999-11-05 Jim Meyering <meyering@ascend.com>
46006 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
46007 configure.in of textutils, fileutils, and sh-utils into this one
46008 (shared between those packages) file.
46009 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
46010 AC_STRUCT_ST_BLKSIZE.
46012 1999-11-03 Jim Meyering <meyering@ascend.com>
46014 * m4/ssize_t.m4: Remove file. No longer needed since the new version
46015 of AC_CHECK_TYPE checks includes unistd.h.
46016 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
46017 Suggestion from Akim Demaille.
46019 1999-10-30 Jim Meyering <meyering@ascend.com>
46021 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
46023 * m4/ls-mntd-fs.m4: Likewise.
46024 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
46025 * m4/jm-winsz1.m4: Likewise.
46027 * m4/const.m4: Remove file, since the fix made it into the experimental
46028 version of autoconf.
46029 * m4/mktime.m4: Likewise.
46031 * m4/check-type.m4: Remove file, now that the latest version of
46032 AC_CHECK_TYPE takes a third arg to specify additional #includes.
46034 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
46035 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
46038 1999-10-04 Jim Meyering <meyering@ascend.com>
46040 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
46042 1999-09-22 Paul Eggert <eggert@twinsun.com>
46044 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
46045 2.95.1 bug with HP-UX 10.20.
46047 1999-09-17 Jim Meyering <meyering@ascend.com>
46049 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
46050 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
46051 due to missing strdup (against sh-utils-2.0).
46053 1999-08-29 Jim Meyering <meyering@ascend.com>
46055 * m4/jm-macros.m4: Require jm_BISON.
46056 * m4/bison.m4: New file.
46058 1999-08-17 Paul Eggert <eggert@twinsun.com>
46060 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
46061 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
46063 1999-08-05 Jim Meyering <meyering@ascend.com>
46065 * m4/getline.m4: Rename test file from conftestdata to conftest.data
46066 to avoid conflicts with `conftest' on 8+3 filesystems.
46067 Suggestion from Eli Zaretskii.
46069 1999-08-04 Jim Meyering <meyering@ascend.com>
46071 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
46072 fileutils and sh-utils (textutils's getline test was inadequate).
46073 (AM_FUNC_GETLINE): Run this test.
46074 (AC_CHECK_FUNCS): Check for getdelim.
46075 Reported by Bob Proulx.
46077 1999-08-02 Jim Meyering <meyering@ascend.com>
46079 * m4/jm-macros.m4: Add a comment.
46081 1999-08-01 Paul Eggert <eggert@twinsun.com>
46083 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
46084 <inttypes.h> defines strtoumax as a macro (and not as a
46087 1999-08-01 Paul Eggert <eggert@twinsun.com>
46089 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
46090 that we can shift, multiply and divide unsigned long long
46091 values; Ultrix cc can't do it.
46093 1999-08-01 Paul Eggert <eggert@twinsun.com>
46095 * m4/mktime.m4: New file, which is a preview of what should appear
46096 in the next public autoconf release.
46098 1999-08-01 Paul Eggert <eggert@twinsun.com>
46100 * m4/lfs.m4: Remove this file.
46101 * m4/largefile.m4: New file. It contains the old contents of
46102 lfs.m4, except that all names with prefix AC_LFS have been
46103 changed to use the prefix AC_SYS_LARGEFILE instead, to be
46104 compatible with future autoconf versions. Also, some minor m4
46105 quoting problems have been fixed.
46107 1999-08-01 Paul Eggert <eggert@twinsun.com>
46109 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
46110 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
46111 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
46112 and simplify the shell code.
46114 1999-08-01 Jim Meyering <meyering@ascend.com>
46116 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
46119 1999-07-20 Jim Meyering <meyering@ascend.com>
46121 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
46123 1999-07-15 Jim Meyering <meyering@ascend.com>
46125 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
46127 1999-05-22 Jim Meyering <meyering@ascend.com>
46129 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
46131 1999-05-20 Jim Meyering <meyering@ascend.com>
46133 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
46134 Add a colon after each `then' in case $4 is empty.
46136 1999-05-16 Jim Meyering <meyering@ascend.com>
46138 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
46140 1999-05-10 Jim Meyering <meyering@ascend.com>
46142 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
46144 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
46147 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
46149 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
46151 1999-05-04 Paul Eggert <eggert@twinsun.com>
46153 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
46154 not CPPFLAGS, so that linking works correctly in IRIX.
46156 1999-04-30 Paul Eggert <eggert@twinsun.com>
46158 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
46160 1999-04-20 Paul Eggert <eggert@twinsun.com>
46162 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
46163 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
46164 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
46165 jm_AC_TYPE_UNSIGNED_LONG_LONG.
46166 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
46168 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
46170 1999-04-20 Jim Meyering <meyering@ascend.com>
46172 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
46173 AC_REPLACE xstroull if necessary. From Paul Eggert.
46174 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
46176 1999-04-18 Jim Meyering <meyering@ascend.com>
46178 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
46179 * m4/jm-macros.m4: Use it.
46181 1999-04-06 Jim Meyering <meyering@ascend.com>
46183 * m4/strftime.m4: Remove test for %f.
46185 1999-03-29 Jim Meyering <meyering@ascend.com>
46187 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
46188 superset of the AC_TYPE_* checks in the textutils, fileutils,
46189 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
46192 1999-03-28 Jim Meyering <meyering@ascend.com>
46194 * m4/jm-macros.m4: Define GNU_PACKAGE here.
46195 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
46196 replaced e.g., in the *.sh files of the sh-utils.
46198 1999-03-20 Jim Meyering <meyering@ascend.com>
46200 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
46201 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
46202 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
46204 1999-03-19 Jim Meyering <meyering@ascend.com>
46206 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
46208 1999-03-12 Jim Meyering <meyering@ascend.com>
46210 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
46212 1999-03-07 Jim Meyering <meyering@ascend.com>
46214 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
46217 1999-02-17 Jim Meyering <meyering@ascend.com>
46219 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
46220 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
46222 1999-02-07 Jim Meyering <meyering@ascend.com>
46224 * m4/group-member.m4: New file -- extracted from sh-utils'
46227 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
46228 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
46230 1999-02-06 Jim Meyering <meyering@ascend.com>
46232 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
46233 * m4/fnmatch.m4: Likewise.
46234 * m4/getgroups.m4: Likewise.
46235 * m4/lstat.m4: Likewise.
46236 * m4/malloc.m4: Likewise.
46237 * m4/putenv.m4: Likewise.
46238 * m4/realloc.m4: Likewise.
46239 * m4/regex.m4: Likewise.
46240 * m4/stat.m4: Likewise.
46241 * m4/strftime.m4: Likewise.
46242 Suggestion from Alain Magloire.
46244 * m4/chown.m4: Use `.$ac_objext', not `.o'.
46245 * m4/fnmatch.m4: Likewise.
46246 * m4/getgroups.m4: Likewise.
46247 * m4/getline.m4: Likewise.
46248 * m4/lstat.m4: Likewise.
46249 * m4/malloc.m4: Likewise.
46250 * m4/memcmp.m4: Likewise.
46251 * m4/putenv.m4: Likewise.
46252 * m4/realloc.m4: Likewise.
46253 * m4/regex.m4: Likewise.
46254 * m4/stat.m4: Likewise.
46255 * m4/strftime.m4: Likewise.
46256 Suggestion from Alain Magloire.
46258 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
46261 * m4/regex.m4: Add a run-time Test for proper operation of
46262 re_compile_pattern.
46264 1999-01-31 Jim Meyering <meyering@ascend.com>
46266 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
46268 1999-01-30 Jim Meyering <meyering@ascend.com>
46270 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
46272 * m4/jm-mktime.m4: Make this a wrapper around the official
46273 AM_FUNC_MKTIME rather than my private copy, now that the official one
46275 * m4/mktime.m4: Remove file.
46277 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
46278 * m4/uptime.m4: Likewise.
46279 * m4/uintmax_t.m4: Likewise.
46281 1999-01-28 Jim Meyering <meyering@ascend.com>
46283 * m4/jm-macros.m4: Use jm_AFS.
46284 * m4/afs.m4: New file (from fileutils' configure.in).
46286 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
46287 * m4/chown.m4: Likewise.
46288 * m4/d-ino.m4: Likewise.
46289 * m4/d-type.m4: Likewise.
46290 * m4/fnmatch.m4: Likewise.
46291 * m4/getgroups.m4: Likewise.
46292 * m4/gettext.m4: Likewise.
46293 * m4/jm-mktime.m4: Likewise.
46294 * m4/jm-winsz2.m4: Likewise.
46295 * m4/lcmessage.m4: Likewise.
46296 * m4/ls-mntd-fs.m4: Likewise.
46297 * m4/malloc.m4: Likewise.
46298 * m4/memcmp.m4: Likewise.
46299 * m4/putenv.m4: Likewise.
46300 * m4/realloc.m4: Likewise.
46301 * m4/st_mtim.m4: Likewise.
46302 * m4/strftime.m4: Likewise.
46304 1999-01-16 Jim Meyering <meyering@ascend.com>
46306 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
46307 (ARGMATCH_DIE_DECL): Define.
46309 1999-01-12 Jim Meyering <meyering@ascend.com>
46311 * m4/Makefile.am.in: Rewrite to avoid using fmt.
46312 Reported by Lars Hecking.
46314 1999-01-10 Jim Meyering <meyering@ascend.com>
46316 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
46318 * m4/inttypes_h.m4: Likewise.
46319 * m4/lstat.m4: Likewise.
46320 * m4/malloc.m4: Likewise.
46321 * m4/readdir.m4: Likewise.
46322 * m4/realloc.m4: Likewise.
46323 * m4/st_dm_mode.m4: Likewise.
46324 * m4/stat.m4: Likewise.
46325 * m4/utimbuf.m4: Likewise.
46326 * m4/utimes.m4: Likewise.
46328 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
46329 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
46330 comments in config.h.in are meaningful.
46332 * m4/jm-macros.m4: Require autoconf-2.13 here.
46334 * m4/regex.m4: By default, don't use the included regex.c on systems
46335 with glibc 2. Suggestion from Uli Drepper.
46337 1999-01-02 Jim Meyering <meyering@ascend.com>
46339 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
46341 1998-12-18 Jim Meyering <meyering@ascend.com>
46343 * m4/Makefile.am.in (Makefile.am): Simplify rule.
46344 Based on a suggestion from Lars Hecking.
46346 1998-11-16 Paul Eggert <eggert@twinsun.com>
46348 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
46350 1998-11-16 Jim Meyering <meyering@ascend.com>
46352 * m4/lfs.m4: Double-quote the `uname...` expression.
46354 1998-11-14 Jim Meyering <meyering@ascend.com>
46356 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
46357 * m4/stat.m4: Likewise.
46359 1998-11-03 Jim Meyering <meyering@ascend.com>
46361 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
46362 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
46364 1998-10-18 Jim Meyering <meyering@ascend.com>
46366 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
46368 1998-10-17 Jim Meyering <meyering@ascend.com>
46370 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
46371 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
46372 calls for those previously hard-coded headers. Instead, take a new
46374 (jm_CHECK_DECLARATIONS): Reflect interface change.
46375 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
46376 (jm_CHECK_DECL_LOCALTIME_R): New macro.
46378 * m4/mktime.m4: Test for spring-forward gap before long-running test.
46380 1998-10-14 Jim Meyering <meyering@ascend.com>
46382 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
46383 instead of "TZ=America/Vancouver". From Paul Eggert.
46385 1998-10-11 Jim Meyering <meyering@ascend.com>
46387 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
46388 This adds a test for a recently added compatibility fix for mktime.c.
46389 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
46391 1998-09-27 Jim Meyering <meyering@ascend.com>
46393 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
46395 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
46396 ../configure.in, including a change from Gordon Matzigkeit to allow
46397 cross-compiling for the Hurd.
46399 * m4/glibc.m4: New file/macro to test for the GNU C Library
46400 versions 1 and 2. From Gordon Matzigkeit.
46403 1998-09-21 Jim Meyering <meyering@ascend.com>
46405 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
46407 1998-08-18 Paul Eggert <eggert@twinsun.com>
46409 Port nanosecond-resolution times to UnixWare 2.1.2 and
46410 pedantic Solaris 2.6.
46412 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
46414 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
46415 Generate name of ns member, instead of just 1 or undef.
46416 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
46418 1998-08-15 Jim Meyering <meyering@ascend.com>
46420 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
46421 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
46422 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
46423 instead of jm_TYPE_SSIZE_T.
46425 1998-08-12 Jim Meyering <meyering@ascend.com>
46427 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
46429 1998-08-02 Jim Meyering <meyering@ascend.com>
46431 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
46432 in acconfig.h manually.
46434 1998-07-31 Paul Eggert <eggert@twinsun.com>
46436 * m4/st_mtim.m4: New file.
46438 1998-07-28 Jim Meyering <meyering@ascend.com>
46440 * m4/utimes.m4: Undef stat.
46442 1998-07-25 Jim Meyering <meyering@ascend.com>
46444 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
46445 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
46447 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
46449 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
46450 uid and gid actually remain unchanged.
46452 1998-07-07 Jim Meyering <meyering@ascend.com>
46454 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
46456 1998-07-04 Jim Meyering <meyering@ascend.com>
46458 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
46459 to prove that this macro can be used in packages without regex.c.
46461 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
46463 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
46466 1998-07-03 Jim Meyering <meyering@ascend.com>
46468 * m4/gettext.m4: Add -lintl if it's found to be necessary.
46470 * m4/gettext.m4: New file -- from gettext-0.10.35.
46471 * m4/lcmessage.m4: Likewise.
46472 * m4/progtest.m4: Likewise.
46474 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
46475 * m4/jm-macros.m4: Require the new macro.
46477 1998-06-29 Jim Meyering <meyering@ascend.com>
46479 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
46480 for the definition of NGROUPS (used in a system header included
46483 1998-06-28 Jim Meyering <meyering@ascend.com>
46485 * m4/ls-mntd-fs.m4: New file.
46486 * m4/fstypename.m4: New file.
46488 * m4/jm-macros.m4: Require the new macro.
46489 * m4/jm-glibc-io.m4: New file.
46491 1998-05-19 Jim Meyering <meyering@ascend.com>
46493 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
46494 * m4/lchown.m4: New file.
46496 * m4/Makefile.am.in: New file.
46497 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
46499 1998-05-14 Jim Meyering <meyering@ascend.com>
46501 * m4/Makefile.am (EXTRA_DIST): Add them.
46502 * m4/jm-macros.m4: New file.
46503 * m4/utimbuf.m4: New file.
46505 1998-05-12 Jim Meyering <meyering@ascend.com>
46507 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
46509 1998-05-11 Jim Meyering <meyering@ascend.com>
46511 * m4/isc-posix.m4: New file.
46513 1998-05-10 Jim Meyering <meyering@ascend.com>
46515 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
46517 1998-05-09 Jim Meyering <meyering@ascend.com>
46519 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
46520 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
46523 * m4/ssize_t.m4: New file.
46524 * m4/mktime.m4: Remove file -- the new automake has this now.
46526 1998-04-26 Jim Meyering <meyering@ascend.com>
46528 * m4/assert.m4: New file.
46529 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
46531 1998-04-05 Jim Meyering <meyering@ascend.com>
46533 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
46534 (jm_PREREQ): Use it here.
46536 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
46538 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
46541 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
46543 * m4/prereq.m4: New file.
46544 * m4/error.m4: New file.
46545 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
46547 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
46549 * m4/getline.m4: Don't set am_cv_func_working_getline before the
46550 cache-check for the same variable -- that defeated the purpose of
46551 the test; the test program was never run. This was a problem only
46552 on systems with losing getline functions -- HP-UX 10.20 is one.
46553 Reported by Bjorn Helgaas.
46555 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
46557 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
46559 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
46561 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
46563 * m4/const.m4: New file. Use an initializer in this declaration
46564 typedef int charset[2]; const charset x;
46565 Reported by Bob Glickstein.
46567 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
46569 * m4/chown.m4: Fix reversed types on -1 args to chown.
46572 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
46574 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
46575 Add lseek and memchr.
46577 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
46578 T.E.Dickey <dickey@clark.net> said that some older preprocessors
46579 have a 20-character limit on names.
46581 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
46583 * m4/inttypes_h.m4: New file.
46584 * m4/uintmax_t.m4: New file.
46585 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
46594 Copyright (C) 1997-2008 Free Software Foundation, Inc.
46596 Copying and distribution of this file, with or without
46597 modification, are permitted provided the copyright notice
46598 and this notice are preserved.