1 2009-03-27 Eric Blake <ebb9@byu.net>
3 test-strerror: make debugging EAI_SYSTEM easier
4 * modules/getaddrinfo-tests (Depends-on): Add strerror.
5 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
6 failure was EAI_SYSTEM.
8 2009-03-25 Bruno Haible <bruno@clisp.org>
10 Fix a problem with --enable-relocatable on Solaris 7.
11 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
14 2009-03-25 Eric Blake <ebb9@byu.net>
16 test-sockets: avoid gcc warning
17 * tests/test-sockets.c (main): Silence compiler warning.
19 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
21 New modules nproc, pthread, contributed by Glen Lenker.
23 * MODULES.html.sh: Add pthread, nproc.
24 * lib/nproc.c: New file.
25 * lib/nproc.h: New file.
26 * lib/pthread.in.h: New file.
27 * m4/pthread.m4: New file.
28 * modules/nproc: New file.
29 * modules/pthread: New file.
31 2009-03-24 Simon Josefsson <simon@josefsson.org>
33 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
36 2009-03-24 Kamil Dudka <kdudka@redhat.com>
38 filevercmp: handle simple~ and numbered.~3~ backup suffixes
39 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
40 * tests/test-filevercmp.c: Add tests for backup suffixes.
42 2009-03-24 Simon Josefsson <simon@josefsson.org>
44 * modules/stdlib (Depends-on): Add stdint, needed when defining
45 struct random_data on, for example, HP-UX 10.20. Reported by
46 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48 2009-03-24 Simon Josefsson <simon@josefsson.org>
50 * lib/readline.c (readline): Call fflush on stdout after printing
53 2009-03-20 Bruno Haible <bruno@clisp.org>
55 Remove dependency from 'close' module to -lws2_32 on native Windows.
56 * lib/close-hook.h: New file.
57 * lib/close-hook.c: New file.
58 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
60 (_gl_close_fd_maybe_socket): Remove function.
61 (rpl_close): Invoke execute_all_close_hooks instead of
62 _gl_close_fd_maybe_socket.
63 * lib/sockets.c: Include close-hook.h, w32sock.h.
64 (close_fd_maybe_socket): New function, essentially from lib/close.c.
65 (close_sockets_hook): New variable.
66 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
67 (gl_sockets_cleanup): Unregister it.
68 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
69 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
70 * modules/close-hook: New file.
71 * modules/close (Files): Remove lib/w32sock.h.
72 (Depends-on): Add close-hook.
73 (Link): Remove section.
74 * modules/sockets (Files): Add lib/w32sock.h.
75 (Depends-on): Add close-hook.
76 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
78 * NEWS: Mention that LIB_CLOSE is gone.
80 2009-03-23 Eric Blake <ebb9@byu.net>
82 signal-tests: test previous patch
83 * tests/test-signal.c: New file.
84 * modules/signal-tests: Likewise.
86 signal.h: always support 'volatile sig_atomic_t'
87 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
88 (gl_SIGNAL_H_DEFAULTS): Add a default.
89 * modules/signal (Makefile.am): Substitute if needed.
90 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
91 users can blindly add volatile.
92 * doc/posix-headers/signal.texi (signal.h): Document it.
93 Reported by Matthew Woehlke.
95 2009-03-23 Jim Meyering <meyering@redhat.com>
97 pathmax: PATH_MAX: use pathconf only when available
98 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
99 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
100 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
101 This avoids a link failure in a PSP cross-compilation environment
102 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
104 * lib/vasnprintf.c (divide): Fix typo in comment.
106 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
108 * gnulib-tool (func_filter_filelist): Fix comment.
110 2009-03-20 Bruno Haible <bruno@clisp.org>
112 Make sockets.h self-contained.
113 * lib/sockets.c: Include sockets.h first.
114 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
116 2009-03-19 Eric Blake <ebb9@byu.net>
118 doc: mention more functions added in cygwin 1.7.0
119 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
121 * doc/posix-functions/log2f.texi: Likewise.
123 2009-03-19 Jim Meyering <meyering@redhat.com>
125 fsusage: avoid syntax error due to statement-before-declaration
126 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
127 after all declarations. Reported by Matthew Woehlke in
128 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
130 2009-03-18 Eric Blake <ebb9@byu.net>
132 build-aux/compile: sync from automake
133 * build-aux/compile: New file, from automake.
134 * config/srclist.txt: Mention build-aux/compile.
136 2009-03-17 Bruno Haible <bruno@clisp.org>
138 * lib/git-merge-changelog.c: Fix typo in comment.
139 Reported by Reuben Thomas <rrt@sc3d.org>.
141 2009-03-17 Reuben Thomas <rrt@sc3d.org>
143 * m4/regex.m4: update and improve help for
144 --without-included-regex.
146 2009-03-17 Simon Josefsson <simon@josefsson.org>
148 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
149 failure on missing include files.
151 2009-03-17 Eric Blake <ebb9@byu.net>
153 doc: mention more functions added in cygwin 1.7.0
154 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
156 * doc/posix-functions/fwscanf.texi: Likewise.
157 * doc/posix-functions/swprintf.texi: Likewise.
158 * doc/posix-functions/swscanf.texi: Likewise.
159 * doc/posix-functions/vfwprintf.texi: Likewise.
160 * doc/posix-functions/vfwscanf.texi: Likewise.
161 * doc/posix-functions/vswprintf.texi: Likewise.
162 * doc/posix-functions/vswscanf.texi: Likewise.
163 * doc/posix-functions/vwprintf.texi: Likewise.
164 * doc/posix-functions/vwscanf.texi: Likewise.
165 * doc/posix-functions/wcscasecmp.texi: Likewise.
166 * doc/posix-functions/wcsdup.texi: Likewise.
167 * doc/posix-functions/wcsftime.texi: Likewise.
168 * doc/posix-functions/wcsncasecmp.texi: Likewise.
169 * doc/posix-functions/wprintf.texi: Likewise.
170 * doc/posix-functions/wscanf.texi: Likewise.
171 * doc/glibc-functions/gethostbyname2.texi: Likewise.
173 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
175 maint.mk: really add $(AM_MAKEFLAGS)
176 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
177 was inadvertently omitted in the last commit.
178 Spotted by Bruno Haible.
180 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
181 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
182 $(AM_MAKEFLAGS)' rather than plain `make'.
184 gnulib-tool: execute $MAKE not make
185 * gnulib-tool: Default $MAKE to 'make'.
186 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
187 than make. Initialize $MAKE in the do-autobuild script.
189 gnulib-tool: use $MAKE not make in generated files
190 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
191 make, in generated files. Initialize $MAKE in the do-autobuild
194 * top/GNUmakefile (_have-git-version-gen): Fix typo.
196 GNUmakefile: disable parallelism only for multiple, recursive targets
197 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
198 additions in the Makefile.
199 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
201 (.NOTPARALLEL): Only disable parallel builds if multiple targets
202 are listed on the command line and at least one of them is
203 listed in $(ALL_RECURSIVE_TARGETS).
205 2009-03-14 Bruno Haible <bruno@clisp.org>
207 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
208 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
209 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
210 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
211 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
212 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
213 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
215 * modules/unistr/u8-strchr (Depends-on): Likewise.
216 * modules/unistr/u8-strrchr (Depends-on): Likewise.
217 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
219 * modules/unistr/u16-strchr (Depends-on): Likewise.
220 * modules/unistr/u16-strrchr (Depends-on): Likewise.
222 2009-03-12 Bruno Haible <bruno@clisp.org>
224 Work around select() bug on Interix 3.5.
225 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
226 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
227 * m4/select.m4: New file.
228 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
229 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
230 * modules/select (Files): Add m4/select.m4.
231 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
232 * modules/nanosleep (Depends-on): Add select.
233 * modules/poll (Depends-on): Likewise.
234 * doc/posix-functions/select.texi: Mention the Interix bug.
235 Reported by Markus Duft <mduft@gentoo.org>.
237 * lib/select.c: Renamed from lib/winsock-select.c.
238 * modules/select (Files): Add lib/select.c, remove
239 lib/winsock-select.c.
240 (configure.ac): Update.
242 2009-03-12 Jim Meyering <meyering@redhat.com>
244 avoid gcc warnings about unused macro definitions
245 * lib/readtokens.c (STREQ): Remove unused definition.
246 * lib/xmalloc.c (SIZE_MAX): Likewise.
247 * lib/openat-die.c (N_): Likewise.
248 * lib/mountlist.c (SIZE_MAX): Remove definition.
249 Instead, include <stdint.h>.
250 * lib/readutmp.c: Likewise.
251 * modules/readutmp (Depends-on): Add stdint.
252 * modules/mountlist (Depends-on): Add stdint.
253 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
255 2009-03-10 Bruno Haible <bruno@clisp.org>
257 Tests for module 'mbmemcasecoll'.
258 * modules/mbmemcasecoll-tests: New file.
259 * tests/test-mbmemcasecoll1.sh: New file.
260 * tests/test-mbmemcasecoll2.sh: New file.
261 * tests/test-mbmemcasecoll3.sh: New file.
262 * tests/test-mbmemcasecoll.c: New file.
264 New module 'mbmemcasecoll'.
265 * lib/mbmemcasecoll.h: New file.
266 * lib/mbmemcasecoll.c: New file.
267 * modules/mbmemcasecoll: New file.
269 * tests/test-mbmemcasecmp.h: New file, extracted from
270 tests/test-mbmemcasecmp.c.
271 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
272 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
274 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
276 2009-03-09 Bruno Haible <bruno@clisp.org>
278 Tests for module 'mbmemcasecmp'.
279 * modules/mbmemcasecmp-tests: New file.
280 * tests/test-mbmemcasecmp1.sh: New file.
281 * tests/test-mbmemcasecmp2.sh: New file.
282 * tests/test-mbmemcasecmp3.sh: New file.
283 * tests/test-mbmemcasecmp.c: New file.
285 New module 'mbmemcasecmp'.
286 * lib/mbmemcasecmp.h: New file.
287 * lib/mbmemcasecmp.c: New file.
288 * modules/mbmemcasecmp: New file.
290 2009-03-09 Bruno Haible <bruno@clisp.org>
292 Tests for module 'unicase/ulc-casecoll'.
293 * modules/unicase/ulc-casecoll-tests: New file.
294 * tests/unicase/test-ulc-casecoll1.sh: New file.
295 * tests/unicase/test-ulc-casecoll2.sh: New file.
296 * tests/unicase/test-ulc-casecoll.c: New file.
298 New module 'unicase/ulc-casecoll'.
299 * lib/unicase.h (ulc_casecoll): New declaration.
300 * lib/unicase/ulc-casecoll.c: New file.
301 * modules/unicase/ulc-casecoll: New file.
303 New module 'unicase/ulc-casexfrm'.
304 * lib/unicase.h (ulc_casexfrm): New declaration.
305 * lib/unicase/ulc-casexfrm.c: New file.
306 * modules/unicase/ulc-casexfrm: New file.
308 2009-03-09 Bruno Haible <bruno@clisp.org>
310 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
313 * m4/mbscasecmp.m4: Remove file.
314 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
315 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
317 * m4/mbscasestr.m4: Remove file.
318 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
319 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
321 * m4/mbschr.m4: Remove file.
322 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
323 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
325 * m4/mbscspn.m4: Remove file.
326 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
327 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
329 * m4/mbslen.m4: Remove file.
330 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
331 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
333 * m4/mbsncasecmp.m4: Remove file.
334 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
335 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
337 * m4/mbsnlen.m4: Remove file.
338 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
339 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
341 * m4/mbspbrk.m4: Remove file.
342 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
343 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
345 * m4/mbspcasecmp.m4: Remove file.
346 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
347 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
349 * m4/mbsrchr.m4: Remove file.
350 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
351 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
353 * m4/mbssep.m4: Remove file.
354 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
355 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
357 * m4/mbsspn.m4: Remove file.
358 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
359 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
361 * m4/mbsstr.m4: Remove file.
362 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
363 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
365 * m4/mbstok_r.m4: Remove file.
366 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
367 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
369 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
371 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
372 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
374 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
376 2009-03-08 Bruno Haible <bruno@clisp.org>
378 Tests for module 'unicase/ulc-casecmp'.
379 * modules/unicase/ulc-casecmp-tests: New file.
380 * tests/unicase/test-ulc-casecmp1.sh: New file.
381 * tests/unicase/test-ulc-casecmp2.sh: New file.
382 * tests/unicase/test-ulc-casecmp.c: New file.
384 New module 'unicase/ulc-casecmp'.
385 * lib/unicase.h (ulc_casecmp): New declaration.
386 * lib/unicase/ulc-casecmp.c: New file.
387 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
389 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
390 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
391 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
392 * modules/unicase/ulc-casecmp: New file.
394 Tests for module 'unicase/u32-is-cased'.
395 * modules/unicase/u32-is-cased-tests: New file.
396 * tests/unicase/test-u32-is-cased.c: New file.
398 Tests for module 'unicase/u16-is-cased'.
399 * modules/unicase/u16-is-cased-tests: New file.
400 * tests/unicase/test-u16-is-cased.c: New file.
402 Tests for module 'unicase/u8-is-cased'.
403 * modules/unicase/u8-is-cased-tests: New file.
404 * tests/unicase/test-u8-is-cased.c: New file.
405 * tests/unicase/test-is-cased.h: New file.
407 New module 'unicase/u32-is-cased'.
408 * lib/unicase/u32-is-cased.c: New file.
409 * modules/unicase/u32-is-cased: New file.
411 New module 'unicase/u16-is-cased'.
412 * lib/unicase/u16-is-cased.c: New file.
413 * modules/unicase/u16-is-cased: New file.
415 New module 'unicase/u8-is-cased'.
416 * lib/unicase/u8-is-cased.c: New file.
417 * lib/unicase/u-is-cased.h: New file.
418 * modules/unicase/u8-is-cased: New file.
420 Tests for module 'unicase/u32-is-casefolded'.
421 * modules/unicase/u32-is-casefolded-tests: New file.
422 * tests/unicase/test-u32-is-casefolded.c: New file.
424 Tests for module 'unicase/u16-is-casefolded'.
425 * modules/unicase/u16-is-casefolded-tests: New file.
426 * tests/unicase/test-u16-is-casefolded.c: New file.
428 Tests for module 'unicase/u8-is-casefolded'.
429 * modules/unicase/u8-is-casefolded-tests: New file.
430 * tests/unicase/test-u8-is-casefolded.c: New file.
431 * tests/unicase/test-is-casefolded.h: New file.
433 New module 'unicase/u32-is-casefolded'.
434 * lib/unicase/u32-is-casefolded.c: New file.
435 * modules/unicase/u32-is-casefolded: New file.
437 New module 'unicase/u16-is-casefolded'.
438 * lib/unicase/u16-is-casefolded.c: New file.
439 * modules/unicase/u16-is-casefolded: New file.
441 New module 'unicase/u8-is-casefolded'.
442 * lib/unicase/u8-is-casefolded.c: New file.
443 * modules/unicase/u8-is-casefolded: New file.
445 Tests for module 'unicase/u32-is-titlecase'.
446 * modules/unicase/u32-is-titlecase-tests: New file.
447 * tests/unicase/test-u32-is-titlecase.c: New file.
449 Tests for module 'unicase/u16-is-titlecase'.
450 * modules/unicase/u16-is-titlecase-tests: New file.
451 * tests/unicase/test-u16-is-titlecase.c: New file.
453 Tests for module 'unicase/u8-is-titlecase'.
454 * modules/unicase/u8-is-titlecase-tests: New file.
455 * tests/unicase/test-u8-is-titlecase.c: New file.
456 * tests/unicase/test-is-titlecase.h: New file.
458 New module 'unicase/u32-is-titlecase'.
459 * lib/unicase/u32-is-titlecase.c: New file.
460 * modules/unicase/u32-is-titlecase: New file.
462 New module 'unicase/u16-is-titlecase'.
463 * lib/unicase/u16-is-titlecase.c: New file.
464 * modules/unicase/u16-is-titlecase: New file.
466 New module 'unicase/u8-is-titlecase'.
467 * lib/unicase/u8-is-titlecase.c: New file.
468 * modules/unicase/u8-is-titlecase: New file.
470 Tests for module 'unicase/u32-is-lowercase'.
471 * modules/unicase/u32-is-lowercase-tests: New file.
472 * tests/unicase/test-u32-is-lowercase.c: New file.
474 Tests for module 'unicase/u16-is-lowercase'.
475 * modules/unicase/u16-is-lowercase-tests: New file.
476 * tests/unicase/test-u16-is-lowercase.c: New file.
478 Tests for module 'unicase/u8-is-lowercase'.
479 * modules/unicase/u8-is-lowercase-tests: New file.
480 * tests/unicase/test-u8-is-lowercase.c: New file.
481 * tests/unicase/test-is-lowercase.h: New file.
483 New module 'unicase/u32-is-lowercase'.
484 * lib/unicase/u32-is-lowercase.c: New file.
485 * modules/unicase/u32-is-lowercase: New file.
487 New module 'unicase/u16-is-lowercase'.
488 * lib/unicase/u16-is-lowercase.c: New file.
489 * modules/unicase/u16-is-lowercase: New file.
491 New module 'unicase/u8-is-lowercase'.
492 * lib/unicase/u8-is-lowercase.c: New file.
493 * modules/unicase/u8-is-lowercase: New file.
495 Tests for module 'unicase/u32-is-uppercase'.
496 * modules/unicase/u32-is-uppercase-tests: New file.
497 * tests/unicase/test-u32-is-uppercase.c: New file.
499 Tests for module 'unicase/u16-is-uppercase'.
500 * modules/unicase/u16-is-uppercase-tests: New file.
501 * tests/unicase/test-u16-is-uppercase.c: New file.
503 Tests for module 'unicase/u8-is-uppercase'.
504 * modules/unicase/u8-is-uppercase-tests: New file.
505 * tests/unicase/test-u8-is-uppercase.c: New file.
506 * tests/unicase/test-is-uppercase.h: New file.
508 New module 'unicase/u32-is-uppercase'.
509 * lib/unicase/u32-is-uppercase.c: New file.
510 * modules/unicase/u32-is-uppercase: New file.
512 New module 'unicase/u16-is-uppercase'.
513 * lib/unicase/u16-is-uppercase.c: New file.
514 * modules/unicase/u16-is-uppercase: New file.
516 New module 'unicase/u8-is-uppercase'.
517 * lib/unicase/u8-is-uppercase.c: New file.
518 * modules/unicase/u8-is-uppercase: New file.
520 New module 'unicase/u32-is-invariant'.
521 * lib/unicase/u32-is-invariant.c: New file.
522 * modules/unicase/u32-is-invariant: New file.
524 New module 'unicase/u16-is-invariant'.
525 * lib/unicase/u16-is-invariant.c: New file.
526 * modules/unicase/u16-is-invariant: New file.
528 New module 'unicase/u8-is-invariant'.
529 * lib/unicase/u8-is-invariant.c: New file.
530 * lib/unicase/invariant.h: New file.
531 * lib/unicase/u-is-invariant.h: New file.
532 * modules/unicase/u8-is-invariant: New file.
534 Tests for module 'unicase/u32-casecoll'.
535 * modules/unicase/u32-casecoll-tests: New file.
536 * tests/unicase/test-u32-casecoll.c: New file.
538 Tests for module 'unicase/u16-casecoll'.
539 * modules/unicase/u16-casecoll-tests: New file.
540 * tests/unicase/test-u16-casecoll.c: New file.
542 Tests for module 'unicase/u8-casecoll'.
543 * modules/unicase/u8-casecoll-tests: New file.
544 * tests/unicase/test-u8-casecoll.c: New file.
546 New module 'unicase/u32-casecoll'.
547 * lib/unicase/u32-casecoll.c: New file.
548 * modules/unicase/u32-casecoll: New file.
550 New module 'unicase/u16-casecoll'.
551 * lib/unicase/u16-casecoll.c: New file.
552 * modules/unicase/u16-casecoll: New file.
554 New module 'unicase/u8-casecoll'.
555 * lib/unicase/u8-casecoll.c: New file.
556 * lib/unicase/u-casecoll.h: New file.
557 * modules/unicase/u8-casecoll: New file.
559 New module 'unicase/u32-casexfrm'.
560 * lib/unicase/u32-casexfrm.c: New file.
561 * modules/unicase/u32-casexfrm: New file.
563 New module 'unicase/u16-casexfrm'.
564 * lib/unicase/u16-casexfrm.c: New file.
565 * modules/unicase/u16-casexfrm: New file.
567 New module 'unicase/u8-casexfrm'.
568 * lib/unicase/u8-casexfrm.c: New file.
569 * lib/unicase/u-casexfrm.h: New file.
570 * modules/unicase/u8-casexfrm: New file.
572 Tests for module 'unicase/u32-casecmp'.
573 * modules/unicase/u32-casecmp-tests: New file.
574 * tests/unicase/test-u32-casecmp.c: New file.
576 Tests for module 'unicase/u16-casecmp'.
577 * modules/unicase/u16-casecmp-tests: New file.
578 * tests/unicase/test-u16-casecmp.c: New file.
580 Tests for module 'unicase/u8-casecmp'.
581 * modules/unicase/u8-casecmp-tests: New file.
582 * tests/unicase/test-u8-casecmp.c: New file.
583 * tests/unicase/test-casecmp.h: New file.
585 New module 'unicase/u32-casecmp'.
586 * lib/unicase/u32-casecmp.c: New file.
587 * modules/unicase/u32-casecmp: New file.
589 New module 'unicase/u16-casecmp'.
590 * lib/unicase/u16-casecmp.c: New file.
591 * modules/unicase/u16-casecmp: New file.
593 New module 'unicase/u8-casecmp'.
594 * lib/unicase/u8-casecmp.c: New file.
595 * lib/unicase/u-casecmp.h: New file.
596 * modules/unicase/u8-casecmp: New file.
598 Tests for module 'unicase/u32-casefold'.
599 * modules/unicase/u32-casefold-tests: New file.
600 * tests/unicase/test-u32-casefold.c: New file.
602 Tests for module 'unicase/u16-casefold'.
603 * modules/unicase/u16-casefold-tests: New file.
604 * tests/unicase/test-u16-casefold.c: New file.
606 Tests for module 'unicase/u8-casefold'.
607 * modules/unicase/u8-casefold-tests: New file.
608 * tests/unicase/test-u8-casefold.c: New file.
610 New module 'unicase/u32-casefold'.
611 * lib/unicase/u32-casefold.c: New file.
612 * modules/unicase/u32-casefold: New file.
614 New module 'unicase/u16-casefold'.
615 * lib/unicase/u16-casefold.c: New file.
616 * modules/unicase/u16-casefold: New file.
618 New module 'unicase/u8-casefold'.
619 * lib/unicase/u8-casefold.c: New file.
620 * lib/unicase/u-casefold.h: New file.
621 * modules/unicase/u8-casefold: New file.
623 New module 'unicase/tocasefold'.
624 * lib/unicase/casefold.h: New file.
625 * lib/unicase/tocasefold.c: New file.
626 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
627 * modules/unicase/tocasefold: New file.
629 Tests for module 'unicase/u32-totitle'.
630 * modules/unicase/u32-totitle-tests: New file.
631 * tests/unicase/test-u32-totitle.c: New file.
633 Tests for module 'unicase/u16-totitle'.
634 * modules/unicase/u16-totitle-tests: New file.
635 * tests/unicase/test-u16-totitle.c: New file.
637 Tests for module 'unicase/u8-totitle'.
638 * modules/unicase/u8-totitle-tests: New file.
639 * tests/unicase/test-u8-totitle.c: New file.
641 New module 'unicase/u32-totitle'.
642 * lib/unicase/u32-totitle.c: New file.
643 * modules/unicase/u32-totitle: New file.
645 New module 'unicase/u16-totitle'.
646 * lib/unicase/u16-totitle.c: New file.
647 * modules/unicase/u16-totitle: New file.
649 New module 'unicase/u8-totitle'.
650 * lib/unicase/u8-totitle.c: New file.
651 * lib/unicase/u-totitle.h: New file.
652 * modules/unicase/u8-totitle: New file.
654 Tests for module 'unicase/u32-tolower'.
655 * modules/unicase/u32-tolower-tests: New file.
656 * tests/unicase/test-u32-tolower.c: New file.
658 Tests for module 'unicase/u16-tolower'.
659 * modules/unicase/u16-tolower-tests: New file.
660 * tests/unicase/test-u16-tolower.c: New file.
662 Tests for module 'unicase/u8-tolower'.
663 * modules/unicase/u8-tolower-tests: New file.
664 * tests/unicase/test-u8-tolower.c: New file.
666 New module 'unicase/u32-tolower'.
667 * lib/unicase/u32-tolower.c: New file.
668 * modules/unicase/u32-tolower: New file.
670 New module 'unicase/u16-tolower'.
671 * lib/unicase/u16-tolower.c: New file.
672 * modules/unicase/u16-tolower: New file.
674 New module 'unicase/u8-tolower'.
675 * lib/unicase/u8-tolower.c: New file.
676 * modules/unicase/u8-tolower: New file.
678 Tests for module 'unicase/u32-toupper'.
679 * modules/unicase/u32-toupper-tests: New file.
680 * tests/unicase/test-u32-toupper.c: New file.
682 Tests for module 'unicase/u16-toupper'.
683 * modules/unicase/u16-toupper-tests: New file.
684 * tests/unicase/test-u16-toupper.c: New file.
686 Tests for module 'unicase/u8-toupper'.
687 * modules/unicase/u8-toupper-tests: New file.
688 * tests/unicase/test-u8-toupper.c: New file.
690 New module 'unicase/u32-toupper'.
691 * lib/unicase/u32-toupper.c: New file.
692 * modules/unicase/u32-toupper: New file.
694 New module 'unicase/u16-toupper'.
695 * lib/unicase/u16-toupper.c: New file.
696 * modules/unicase/u16-toupper: New file.
698 New module 'unicase/u8-toupper'.
699 * lib/unicase/u8-toupper.c: New file.
700 * modules/unicase/u8-toupper: New file.
702 New module 'unicase/u32-casemap'.
703 * lib/unicase/u32-casemap.c: New file.
704 * modules/unicase/u32-casemap: New file.
706 New module 'unicase/u16-casemap'.
707 * lib/unicase/u16-casemap.c: New file.
708 * modules/unicase/u16-casemap: New file.
710 New module 'unicase/u8-casemap'.
711 * lib/unicase/unicasemap.h: New file.
712 * lib/unicase/u8-casemap.c: New file.
713 * lib/unicase/u-casemap.h: New file.
714 * modules/unicase/u8-casemap: New file.
716 New module 'unicase/special-casing'.
717 * lib/unicase/special-casing.h: New file.
718 * lib/unicase/special-casing.c: New file.
719 * lib/unicase/special-casing-table.gperf: New file, generated by
721 * modules/unicase/special-casing: New file.
723 Tests for module 'unicase/locale-language'.
724 * modules/unicase/locale-language-tests: New file.
725 * tests/unicase/test-locale-language.sh: New file.
726 * tests/unicase/test-locale-language.c: New file.
728 New module 'unicase/locale-language'.
729 * lib/unicase/locale-language.c: New file.
730 * lib/unicase/locale-languages.gperf: New file.
731 * modules/unicase/locale-language: New file.
733 Generate more tables for case conversion and case folding.
734 * lib/gen-uni-tables.c (SCC_*): New enum items.
735 (struct special_casing_rule): New type.
736 (casing_rules, num_casing_rules, allocated_casing_rules): New
738 (add_casing_rule, fill_casing_rules): New functions.
739 (struct casefold_rule): New type.
740 (casefolding_rules, num_casefolding_rules,
741 allocated_casefolding_rules): New variables.
742 (fill_casefolding_rules): New function.
743 (unicode_casefold): New variable.
744 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
745 sort_casing_rules, output_casing_rules): New functions.
746 (main): Accept to more arguments: SpecialCasing.txt and
747 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
748 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
749 Output mapping for casefolding.
751 * lib/unicase.h: Include stdbool.h, uninorm.h.
752 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
753 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
754 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
756 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
758 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
759 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
761 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
762 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
763 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
764 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
766 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
768 2009-03-08 Bruno Haible <bruno@clisp.org>
770 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
771 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
772 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
773 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
775 2009-03-07 Bruno Haible <bruno@clisp.org>
777 Adjust u*_normcmp, u*_normcoll API.
778 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
779 u16_normcoll, u32_normcoll): Change failure conventions.
780 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
782 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
784 2009-03-07 Bruno Haible <bruno@clisp.org>
786 Tests for module 'uninorm/u32-normcoll'.
787 * modules/uninorm/u32-normcoll-tests: New file.
788 * tests/uninorm/test-u32-normcoll.c: New file.
790 Tests for module 'uninorm/u16-normcoll'.
791 * modules/uninorm/u16-normcoll-tests: New file.
792 * tests/uninorm/test-u16-normcoll.c: New file.
794 Tests for module 'uninorm/u8-normcoll'.
795 * modules/uninorm/u8-normcoll-tests: New file.
796 * tests/uninorm/test-u8-normcoll.c: New file.
798 2009-03-07 Bruno Haible <bruno@clisp.org>
800 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
801 tests/uninorm/test-u32-normcmp.c.
802 * tests/uninorm/test-u32-normcmp.c: Include it.
803 (test_nonascii): New function, extracted from main. Add some more
805 (main): Invoke test_ascii and test_nonascii.
806 * modules/uninorm/u32-normcmp-tests (Files): Add
807 tests/uninorm/test-u32-normcmp.h.
808 (Depends-on): Remove uninorm/u32-normcmp.
810 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
811 tests/uninorm/test-u16-normcmp.c.
812 * tests/uninorm/test-u16-normcmp.c: Include it.
813 (test_nonascii): New function, extracted from main. Add some more
815 (main): Invoke test_ascii and test_nonascii.
816 * modules/uninorm/u16-normcmp-tests (Files): Add
817 tests/uninorm/test-u16-normcmp.h.
818 (Depends-on): Remove uninorm/u16-normcmp.
820 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
821 tests/uninorm/test-u8-normcmp.c.
822 * tests/uninorm/test-u8-normcmp.c: Include it.
823 (test_nonascii): New function, extracted from main. Add some more
825 (main): Invoke test_ascii and test_nonascii.
826 * modules/uninorm/u8-normcmp-tests (Files): Add
827 tests/uninorm/test-u8-normcmp.h.
828 (Depends-on): Remove uninorm/u8-normcmp.
830 2009-03-07 Bruno Haible <bruno@clisp.org>
832 New module 'uninorm/u32-normcoll'.
833 * lib/uninorm/u32-normcoll.c: New file.
834 * modules/uninorm/u32-normcoll: New file.
836 New module 'uninorm/u16-normcoll'.
837 * lib/uninorm/u16-normcoll.c: New file.
838 * modules/uninorm/u16-normcoll: New file.
840 New module 'uninorm/u8-normcoll'.
841 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
843 * lib/uninorm/u8-normcoll.c: New file.
844 * lib/uninorm/u-normcoll.h: New file.
845 * modules/uninorm/u8-normcoll: New file.
847 New module 'uninorm/u32-normxfrm'.
848 * lib/uninorm/u32-normxfrm.c: New file.
849 * modules/uninorm/u32-normxfrm: New file.
851 New module 'uninorm/u16-normxfrm'.
852 * lib/uninorm/u16-normxfrm.c: New file.
853 * modules/uninorm/u16-normxfrm: New file.
855 New module 'uninorm/u8-normxfrm'.
856 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
858 * lib/uninorm/u8-normxfrm.c: New file.
859 * lib/uninorm/u-normxfrm.h: New file.
860 * modules/uninorm/u8-normxfrm: New file.
862 2009-03-07 Bruno Haible <bruno@clisp.org>
864 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
865 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
866 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
868 2009-03-07 Bruno Haible <bruno@clisp.org>
870 New module 'memxfrm'.
871 * lib/memxfrm.h: New file.
872 * lib/memxfrm.c: New file.
873 * modules/memxfrm: New file.
875 2009-03-07 Bruno Haible <bruno@clisp.org>
877 New module 'memcmp2'.
878 * lib/memcmp2.h: New file.
879 * lib/memcmp2.c: New file.
880 * modules/memcmp2: New file.
882 2009-03-07 Bruno Haible <bruno@clisp.org>
884 Tests for module 'uninorm/decomposing-form'.
885 * modules/uninorm/decomposing-form-tests: New file.
886 * tests/uninorm/test-decomposing-form.c: New file.
888 New module 'uninorm/decomposing-form'.
889 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
890 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
891 Add 'decomposing_variant' field.
892 * lib/uninorm/decomposing-form.c: New file.
893 * lib/uninorm/nfc.c (uninorm_nfc): Update.
894 * lib/uninorm/nfd.c (uninorm_nfd): Update.
895 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
896 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
897 * modules/uninorm/decomposing-form: New file.
898 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
899 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
901 2009-03-07 Bruno Haible <bruno@clisp.org>
903 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
906 2009-03-06 Bruno Haible <bruno@clisp.org>
908 Tests for module 'uninorm/u32-normcmp'.
909 * tests/uninorm/test-u32-normcmp.c: New file.
910 * modules/uninorm/u32-normcmp-tests: New file.
912 Tests for module 'uninorm/u16-normcmp'.
913 * tests/uninorm/test-u16-normcmp.c: New file.
914 * modules/uninorm/u16-normcmp-tests: New file.
916 Tests for module 'uninorm/u8-normcmp'.
917 * tests/uninorm/test-u8-normcmp.c: New file.
918 * modules/uninorm/u8-normcmp-tests: New file.
920 New module 'uninorm/u32-normcmp'.
921 * lib/uninorm/u32-normcmp.c: New file.
922 * modules/uninorm/u32-normcmp: New file.
924 New module 'uninorm/u16-normcmp'.
925 * lib/uninorm/u16-normcmp.c: New file.
926 * modules/uninorm/u16-normcmp: New file.
928 New module 'uninorm/u8-normcmp'.
929 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
931 * lib/uninorm/u8-normcmp.c: New file.
932 * lib/uninorm/u-normcmp.h: New file.
933 * modules/uninorm/u8-normcmp: New file.
935 2009-03-06 Bruno Haible <bruno@clisp.org>
937 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
938 Reported by Eric Blake.
940 2009-03-06 Eric Blake <ebb9@byu.net>
941 Bruno Haible <bruno@clisp.org>
943 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
944 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
946 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
947 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
949 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
951 2009-03-06 Eric Blake <ebb9@byu.net>
953 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
954 to avoid compiler warnings.
955 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
957 2009-03-05 Bruno Haible <bruno@clisp.org>
959 * tests/test-ftell.c (main): Disable test beyond end of file on
961 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
963 2009-03-05 Kamil Dudka <kdudka@redhat.com>
965 * lib/filevercmp.c: Move hidden files up in ordering.
966 * tests/test-filevercmp.c: Add tests for hidden files.
968 2009-03-04 Bruno Haible <bruno@clisp.org>
970 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
971 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
973 Reported by Simon Josefsson.
975 2009-03-03 Bruno Haible <bruno@clisp.org>
977 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
978 Reported by Simon Josefsson.
980 * doc/ld-version-script.texi: Update node reference.
982 2009-03-03 Bruno Haible <bruno@clisp.org>
984 * modules/visibility (License): Change to 'unlimited'.
985 Suggested by Simon Josefsson.
987 2009-03-03 Jim Meyering <meyering@redhat.com>
989 unlinkdir: cannot_unlink_dir may modify process state
990 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
991 it's neither thread-safe nor appropriate for use in a library.
993 2009-03-03 Eric Blake <ebb9@byu.net>
995 test-closein: silence test under Darwin
996 * tests/test-closein.sh: Ignore stderr from cat, since we don't
997 care if it dies from EPIPE or EBADF.
999 2009-03-03 Bruno Haible <bruno@clisp.org>
1001 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
1003 * doc/visibility.texi: Fix @node and @section.
1005 2009-03-03 Simon Josefsson <simon@josefsson.org>
1007 * doc/gnulib.texi: Link to sections for ld version script and
1009 * doc/visibility.texi: Add @node and @section.
1010 * modules/ld-version-script: New module.
1011 * m4/ld-version-script.m4: New file.
1012 * doc/ld-version-script.texi: New file.
1014 2009-03-02 David Lutterkort <lutter@redhat.com>
1016 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
1017 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1019 2009-03-02 Bruno Haible <bruno@clisp.org>
1021 * doc/visibility.texi: Mention libtool's -export-symbols option.
1023 2009-03-02 Jim Meyering <meyering@redhat.com>
1025 announce-gen: new option: --no-print-checksums
1026 * build-aux/announce-gen (usage): Describe it.
1027 (print_checksums): Print a newline here, not in the [*] footnote.
1030 2009-03-01 Bruno Haible <bruno@clisp.org>
1032 Use socklen_t in the native Windows replacements prototypes.
1033 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
1035 * lib/getsockopt.c (rpl_getsockopt): Likewise.
1036 * lib/setsockopt.c (rpl_setsockopt): Likewise.
1037 * modules/getsockopt (Depends-on): Add socklen.
1038 * modules/setsockopt (Depends-on): Add socklen.
1040 2009-03-01 Bruno Haible <bruno@clisp.org>
1042 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
1045 2009-03-01 Eric Blake <ebb9@byu.net>
1046 Bruno Haible <bruno@clisp.org>
1048 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
1050 * lib/wait-process.c (wait_subprocess): Omit error message about
1051 deadly signal sent to the child of termsigp != NULL.
1053 2009-03-01 Eric Blake <ebb9@byu.net>
1055 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
1057 2009-03-01 Bruno Haible <bruno@clisp.org>
1059 Avoid a gcc warning.
1060 * tests/test-sched.c (b): Make global.
1061 Reported by Eric Blake.
1063 2009-01-19 Martin Lambers <marlam@marlam.de>
1065 Provide POSIX semantics for socket timeout options on W32.
1066 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
1067 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
1068 * modules/setsockopt: Depend on sys_time module for struct timeval.
1069 * modules/getsockopt: Depend on sys_time module for struct timeval.
1071 2009-03-01 Simon Josefsson <simon@josefsson.org>
1073 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
1074 __USE_GNU, for consistency with netdb.in.h.
1075 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1077 2009-03-01 Bruno Haible <bruno@clisp.org>
1079 More support for FreeMiNT.
1080 * lib/fseeko.c (rpl_fseeko): Complete last commit.
1081 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1083 2009-03-01 Bruno Haible <bruno@clisp.org>
1085 More support for FreeMiNT.
1086 * lib/fpurge.c (fpurge): Correct last commit.
1087 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1089 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1091 Fix unportable awk script in vc-list-files.
1092 * build-aux/vc-list-files: In the replacement awk script, use
1093 substr with a second argument of 1, not zero.
1094 Report by Simon Josefsson.
1096 2009-02-28 Bruno Haible <bruno@clisp.org>
1098 More support for FreeMiNT.
1099 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
1101 * lib/fwriting.c (fwriting): Likewise.
1102 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
1104 2009-02-28 Bruno Haible <bruno@clisp.org>
1106 * tests/test-freadseek.c (main): Disable test beyond end of file on
1108 * tests/test-ftello.c (main): Likewise.
1109 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
1111 2009-02-28 Bruno Haible <bruno@clisp.org>
1113 Add tentative support for FreeMiNT.
1114 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
1115 * lib/fpurge.c (fpurge): Likewise.
1116 * lib/freadable.c (freadable): Likewise.
1117 * lib/freading.c (freading): Likewise.
1118 * lib/freadptr.c (freadptr): Likewise.
1119 * lib/freadseek.c (freadptrinc): Likewise.
1120 * lib/fseeko.c (rpl_fseeko): Likewise.
1121 * lib/fseterr.c (fseterr): Likewise.
1122 * lib/fwritable.c (fwritable): Likewise.
1123 * lib/fwriting.c (fwriting): Likewise.
1124 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
1126 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1128 2009-02-28 Bruno Haible <bruno@clisp.org>
1130 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
1132 Reported by Jim Meyering.
1134 2009-02-28 Bruno Haible <bruno@clisp.org>
1136 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
1137 Mention the results of these tests on various platforms.
1138 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
1140 * doc/posix-functions/printf.texi: Likewise.
1141 * doc/posix-functions/snprintf.texi: Likewise.
1142 * doc/posix-functions/sprintf.texi: Likewise.
1143 * doc/posix-functions/vfprintf.texi: Likewise.
1144 * doc/posix-functions/vprintf.texi: Likewise.
1145 * doc/posix-functions/vsnprintf.texi: Likewise.
1146 * doc/posix-functions/vsprintf.texi: Likewise.
1147 * doc/glibc-functions/obstack_printf.texi: Likewise.
1148 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1150 2009-02-28 Bruno Haible <bruno@clisp.org>
1152 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
1153 Reported by Loïc Minier <lool@dooz.org>.
1155 2009-02-27 Bruno Haible <bruno@clisp.org>
1157 * gnulib-tool (func_import): Make the sed expression used to create the
1158 sed script for updating the .gitignore file POSIX compliant.
1159 Reported by Eric Blake.
1161 2009-02-27 Bruno Haible <bruno@clisp.org>
1163 * gnulib-tool (sed): Don't alias as "sed --posix".
1164 Reported by Eric Blake.
1166 2009-02-27 Bruno Haible <bruno@clisp.org>
1168 Avoid test link errors.
1169 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
1170 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
1171 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
1172 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
1173 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1175 2009-02-27 Bruno Haible <bruno@clisp.org>
1177 Avoid spurious "(cached)" in configure output.
1178 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
1179 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
1180 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
1181 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
1182 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
1183 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
1184 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
1185 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
1186 Reported by Eric Blake.
1188 2009-02-27 Eric Blake <ebb9@byu.net>
1190 printf: fix regression in previous patch
1191 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
1193 2009-02-27 Bruno Haible <bruno@clisp.org>
1195 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
1197 * lib/stdint.in.h: Likewise.
1198 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
1200 2009-02-27 Eric Blake <ebb9@byu.net>
1202 doc: mention more functions added in cygwin 1.7.0
1203 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
1205 * doc/posix-functions/open_wmemstream.texi: Likewise.
1206 * doc/posix-functions/wcsnlen.texi: Likewise.
1207 * doc/posix-functions/wcsnrtombs.texi: Likewise.
1208 * doc/posix-functions/wcstod.texi: Likewise.
1209 * doc/posix-functions/wcstof.texi: Likewise.
1210 * doc/posix-functions/wcstoimax.texi: Likewise.
1211 * doc/posix-functions/wcstok.texi: Likewise.
1212 * doc/posix-functions/wcstoumax.texi: Likewise.
1214 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
1215 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
1216 * doc/posix-functions/fprintf.texi: Update.
1217 * doc/posix-functions/printf.texi: Update.
1218 * doc/posix-functions/snprintf.texi: Update.
1219 * doc/posix-functions/sprintf.texi: Update.
1220 * doc/posix-functions/vfprintf.texi: Update.
1221 * doc/posix-functions/vprintf.texi: Update.
1222 * doc/posix-functions/vsnprintf.texi: Update.
1223 * doc/posix-functions/vsprintf.texi: Update.
1224 * doc/glibc-functions/obstack_printf.texi: Update.
1225 * doc/glibc-functions/obstack_vprintf.texi: Update.
1227 2009-02-26 Eric Blake <ebb9@byu.net>
1229 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
1230 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
1231 compilation bug by using runtime conversion.
1232 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
1233 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
1234 * modules/ceill-tests (Files): Use nan.h.
1235 * modules/floorl-tests (Files): Likewise.
1236 * modules/frexpl-tests (Files): Likewise.
1237 * modules/isnanl-tests (Files): Likewise.
1238 * modules/ldexpl-tests (Files): Likewise.
1239 * modules/roundl-tests (Files): Likewise.
1240 * modules/truncl-tests (Files): Likewise.
1241 * tests/test-ceill.c (main): Use a working NaN.
1242 * tests/test-floorl.c (main): Likewise.
1243 * tests/test-frexpl.c (main): Likewise.
1244 * tests/test-isnan.c (test_long_double): Likewise.
1245 * tests/test-isnanl.h (main): Likewise.
1246 * tests/test-ldexpl.h (main): Likewise.
1247 * tests/test-roundl.h (main): Likewise.
1248 * tests/test-truncl.h (main): Likewise.
1249 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
1251 2009-02-26 Eric Blake <ebb9@byu.net>
1252 Bruno Haible <bruno@clisp.org>
1254 Work around a *printf bug with %ls on Solaris.
1255 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
1256 precision is specified, sprintf stops converting the wide string
1257 argument when the number of bytes that have been produced by this
1258 conversion equals or exceeds the precision.
1259 * doc/posix-functions/fprintf.texi: Update.
1260 * doc/posix-functions/printf.texi: Update.
1261 * doc/posix-functions/snprintf.texi: Update.
1262 * doc/posix-functions/sprintf.texi: Update.
1263 * doc/posix-functions/vfprintf.texi: Update.
1264 * doc/posix-functions/vprintf.texi: Update.
1265 * doc/posix-functions/vsnprintf.texi: Update.
1266 * doc/posix-functions/vsprintf.texi: Update.
1267 * doc/glibc-functions/obstack_printf.texi: Update.
1268 * doc/glibc-functions/obstack_vprintf.texi: Update.
1270 2009-02-26 Eric Blake <ebb9@byu.net>
1272 stdlib: favor compiler check of random.h
1273 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
1274 to avoid an ObjC random.h installed by Swarm.
1276 2009-02-26 Bruno Haible <bruno@clisp.org>
1278 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
1279 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
1280 Reported by Gary V. Vaughan <gary@gnu.org>.
1282 2009-02-26 Bruno Haible <bruno@clisp.org>
1284 Fix *printf behaviour regarding the %ls directive.
1285 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
1286 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
1287 NEED_PRINTF_DIRECTIVE_LS.
1288 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
1289 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
1290 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1291 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
1292 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
1293 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
1294 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
1295 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1296 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1297 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1298 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1299 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
1300 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1301 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1302 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1303 * doc/posix-functions/fprintf.texi: Update.
1304 * doc/posix-functions/printf.texi: Update.
1305 * doc/posix-functions/snprintf.texi: Update.
1306 * doc/posix-functions/sprintf.texi: Update.
1307 * doc/posix-functions/vfprintf.texi: Update.
1308 * doc/posix-functions/vprintf.texi: Update.
1309 * doc/posix-functions/vsnprintf.texi: Update.
1310 * doc/posix-functions/vsprintf.texi: Update.
1311 * doc/glibc-functions/obstack_printf.texi: Update.
1312 * doc/glibc-functions/obstack_vprintf.texi: Update.
1313 Reported by Eric Blake.
1315 2009-02-25 Bruno Haible <bruno@clisp.org>
1317 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
1319 Reported by Gary V. Vaughan <gary@gnu.org>.
1321 2009-02-25 Bruno Haible <bruno@clisp.org>
1323 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
1324 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
1325 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
1326 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
1327 Reported by Gary V. Vaughan <gary@gnu.org>.
1329 2009-02-25 Bruno Haible <bruno@clisp.org>
1331 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
1332 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
1333 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
1334 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
1335 Reported by Gary V. Vaughan <gary@gnu.org>.
1337 2009-02-25 Eric Blake <ebb9@byu.net>
1339 tests: skip fseek/ftell tests if ungetc is broken
1340 * m4/ungetc.m4: New file.
1341 * modules/fseek-tests: Split test, so ungetc dependency is
1342 separate from rest of test.
1343 * modules/fseeko-tests: Likewise.
1344 * modules/ftell-tests: Likewise.
1345 * modules/ftello-tests: Likewise.
1346 * tests/test-fseek.c (main): Isolate ungetc dependency.
1347 * tests/test-fseeko.c (main): Likewise.
1348 * tests/test-ftell.c (main): Likewise.
1349 * tests/test-ftello.c (main): Likewise.
1350 * tests/test-fseek2.sh: New file.
1351 * tests/test-fseeko2.sh: Likewise.
1352 * tests/test-ftell2.sh: Likewise.
1353 * tests/test-ftello2.sh: Likewise.
1355 2009-02-25 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
1357 test-getaddrinfo: fix usage of skip return code 77
1358 * tests/test-gettaddrinfo.c: Return skip code 77 only
1359 for first occurance of skip (4x77 is not 77)
1361 2009-02-25 Gary V. Vaughan <gary@gnu.org>
1363 strtod: avoid C99 decl-after-statement
1364 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
1366 2009-02-24 Eric Blake <ebb9@byu.net>
1368 strtod: detect HP-UX 11.31 bug
1369 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
1370 Reported by Gary V. Vaughan.
1372 2009-02-23 Bruno Haible <bruno@clisp.org>
1374 Fix invalid read past end of memory block.
1375 * lib/vasnprintf.c (DCHAR_SET): Define.
1376 (local_wcslen): Define only when needed.
1377 (local_strnlen, local_wcsnlen): New functions.
1378 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
1379 directives that involve a conversion ourselves.
1380 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
1381 wcsnlen, mbrtowc, wcrtomb.
1382 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
1383 * tests/test-vasprintf-posix.c (test_function): Likewise.
1384 * tests/test-snprintf-posix.h (test_function): Likewise.
1385 * tests/test-sprintf-posix.h (test_function): Likewise.
1386 Reported by Ben Pfaff <blp@cs.stanford.edu>.
1388 2009-02-22 Bruno Haible <bruno@clisp.org>
1390 Implement new clarified decomposition of Hangul syllables.
1391 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
1392 of type LTV, return only a pairwise decomposition.
1393 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
1395 * tests/uninorm/test-decomposition.c (main): Updated expected result.
1396 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
1397 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
1399 2009-02-22 Bruno Haible <bruno@clisp.org>
1401 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
1402 zero-length results and shrink excess allocated memory.
1403 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
1404 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
1405 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
1406 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
1407 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
1408 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
1409 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
1410 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
1411 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
1412 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
1413 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
1414 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
1416 2009-02-21 Bruno Haible <bruno@clisp.org>
1418 * doc/gnulib.texi: Include safe-alloc.texi earlier.
1419 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
1420 spaces after a period. Put a space between a macro name and its
1421 argument list. Trivial rewordings.
1422 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
1423 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
1424 (main): Return 0 explicitly.
1426 2009-02-21 Bruno Haible <bruno@clisp.org>
1428 Tests for module 'uninorm/filter'.
1429 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
1430 * modules/uninorm/filter-tests: New file.
1432 New module 'uninorm/filter'.
1433 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
1434 uninorm_filter_flush, uninorm_filter_free): New declarations.
1435 * lib/uninorm/uninorm-filter.c: New file.
1436 * modules/uninorm/filter: New file.
1438 2009-02-21 Bruno Haible <bruno@clisp.org>
1440 Tests for module 'uninorm/nfkc'.
1441 * tests/uninorm/test-nfkc.c: New file.
1442 * tests/uninorm/test-u8-nfkc.c: New file.
1443 * tests/uninorm/test-u16-nfkc.c: New file.
1444 * tests/uninorm/test-u32-nfkc.c: New file.
1445 * tests/uninorm/test-u32-nfkc-big.sh: New file.
1446 * tests/uninorm/test-u32-nfkc-big.c: New file.
1447 * modules/uninorm/nfkc-tests: New file.
1449 New module 'uninorm/nfkc'.
1450 * lib/uninorm/nfkc.c: New file.
1451 * modules/uninorm/nfkc: New file.
1453 Tests for module 'uninorm/nfkd'.
1454 * tests/uninorm/test-nfkd.c: New file.
1455 * tests/uninorm/test-u8-nfkd.c: New file.
1456 * tests/uninorm/test-u16-nfkd.c: New file.
1457 * tests/uninorm/test-u32-nfkd.c: New file.
1458 * tests/uninorm/test-u32-nfkd-big.sh: New file.
1459 * tests/uninorm/test-u32-nfkd-big.c: New file.
1460 * modules/uninorm/nfkd-tests: New file.
1462 New module 'uninorm/nfkd'.
1463 * lib/uninorm/nfkd.c: New file.
1464 * modules/uninorm/nfkd: New file.
1466 Tests for module 'uninorm/nfc'.
1467 * tests/uninorm/test-nfc.c: New file.
1468 * tests/uninorm/test-u8-nfc.c: New file.
1469 * tests/uninorm/test-u16-nfc.c: New file.
1470 * tests/uninorm/test-u32-nfc.c: New file.
1471 * tests/uninorm/test-u32-nfc-big.sh: New file.
1472 * tests/uninorm/test-u32-nfc-big.c: New file.
1473 * modules/uninorm/nfc-tests: New file.
1475 New module 'uninorm/nfc'.
1476 * lib/uninorm/nfc.c: New file.
1477 * modules/uninorm/nfc: New file.
1479 Tests for module 'uninorm/nfd'.
1480 * tests/uninorm/test-nfd.c: New file.
1481 * tests/uninorm/test-u8-nfd.c: New file.
1482 * tests/uninorm/test-u16-nfd.c: New file.
1483 * tests/uninorm/test-u32-nfd.c: New file.
1484 * tests/uninorm/test-u32-nfd-big.sh: New file.
1485 * tests/uninorm/test-u32-nfd-big.c: New file.
1486 * tests/uninorm/test-u32-normalize-big.h: New file.
1487 * tests/uninorm/test-u32-normalize-big.c: New file.
1488 * tests/uninorm/NormalizationTest.txt: New file, created from
1489 Unicode 5.1.0 NormalizationTest.txt.
1490 * modules/uninorm/nfd-tests: New file.
1492 New module 'uninorm/nfd'.
1493 * lib/uninorm/nfd.c: New file.
1494 * modules/uninorm/nfd: New file.
1496 New module 'uninorm/u32-normalize'.
1497 * lib/uninorm/u32-normalize.c: New file.
1498 * modules/uninorm/u32-normalize: New file.
1500 New module 'uninorm/u16-normalize'.
1501 * lib/uninorm/u16-normalize.c: New file.
1502 * modules/uninorm/u16-normalize: New file.
1504 New module 'uninorm/u8-normalize'.
1505 * lib/uninorm/u8-normalize.c: New file.
1506 * lib/uninorm/normalize-internal.h: New file.
1507 * lib/uninorm/u-normalize-internal.h: New file.
1508 * modules/uninorm/u8-normalize: New file.
1510 New module 'uninorm/decompose-internal'.
1511 * lib/uninorm/decompose-internal.c: New file.
1512 * modules/uninorm/decompose-internal: New file.
1514 Tests for module 'uninorm/composition'.
1515 * tests/uninorm/test-composition.c: New file.
1516 * modules/uninorm/composition-tests: New file.
1518 New module 'uninorm/composition'.
1519 * lib/uninorm/composition.c: New file.
1520 * lib/uninorm/composition-table.gperf: New file, generated by
1522 * modules/uninorm/composition: New file.
1524 Tests for module 'uninorm/compat-decomposition'.
1525 * tests/uninorm/test-compat-decomposition.c: New file.
1526 * modules/uninorm/compat-decomposition-tests: New file.
1528 New module 'uninorm/compat-decomposition'.
1529 * lib/uninorm/decompose-internal.h: New file.
1530 * lib/uninorm/compat-decomposition.c: New file.
1531 * modules/uninorm/compat-decomposition: New file.
1533 Tests for module 'uninorm/canonical-decomposition'.
1534 * tests/uninorm/test-canonical-decomposition.c: New file.
1535 * modules/uninorm/canonical-decomposition-tests: New file.
1537 New module 'uninorm/canonical-decomposition'.
1538 * lib/uninorm/canonical-decomposition.c: New file.
1539 * modules/uninorm/canonical-decomposition: New file.
1541 Tests for module 'uninorm/decomposition'.
1542 * tests/uninorm/test-decomposition.c: New file.
1543 * modules/uninorm/decomposition-tests: New file.
1545 New module 'uninorm/decomposition'.
1546 * lib/uninorm/decomposition.c: New file.
1547 * modules/uninorm/decomposition: New file.
1549 New module 'uninorm/decomposition-table'.
1550 * lib/uninorm/decomposition-table.h: New file.
1551 * lib/uninorm/decomposition-table.c: New file.
1552 * lib/uninorm/decomposition-table1.h: New file, generated by
1554 * lib/uninorm/decomposition-table2.h: New file, generated by
1556 * modules/uninorm/decomposition-table: New file.
1558 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
1559 (UC_DECOMP_*): New enumeration items.
1560 (get_decomposition): New function.
1561 (struct decomp_table): New type.
1562 (output_decomposition, output_decomposition_tables): New functions.
1563 (unicode_composition_exclusions): New variable.
1564 (fill_composition_exclusions, debug_output_composition_tables): New
1566 (main): Accept one more argument. Invoke fill_composition_exclusions.
1567 Output decomposition and composition tables.
1569 New module 'uninorm/base'.
1570 * lib/uninorm.h: New file.
1571 * lib/unictype.h: Update comment.
1572 * modules/uninorm/base: New file.
1574 2009-02-21 David Lutterkort <lutter@redhat.com>
1576 Tests for module 'safe-alloc'.
1577 * tests/test-safe-alloc.c: New file.
1578 * modules/safe-alloc-tests: New file.
1580 New module 'safe-alloc'.
1581 * lib/safe-alloc.h: New file.
1582 * lib/safe-alloc.c: New file.
1583 * m4/safe-alloc.m4: New file.
1584 * modules/safe-alloc: New file.
1585 * doc/safe-alloc.texi: New file.
1586 * doc/gnulib.texi: Include it.
1587 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
1590 2009-02-18 Bruno Haible <bruno@clisp.org>
1592 Fix link error on non-glibc systems.
1593 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
1595 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1597 2009-02-18 Jim Meyering <meyering@redhat.com>
1599 fts: avoid used-uninitialized error due to recent change
1600 * lib/fts.c (fts_read): Guard uses of the new member,
1601 parent->fts_n_dirs_remaining, since it's not relevant for
1602 the parent of a directory specified on the command-line.
1604 2009-02-17 James Youngman <jay@gnu.org>
1605 Bruno Haible <bruno@clisp.org>
1607 * m4/include_next.m4: Reformulate comment.
1609 2009-02-16 Jim Meyering <meyering@redhat.com>
1611 fts: add #if guards so that the fts_lgpl module still builds
1612 * lib/fts.c: Guard just-added hash-table-using parts with
1613 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
1614 Reported by Simon Josefsson.
1616 2009-02-15 Bruno Haible <bruno@clisp.org>
1618 * modules/array-mergesort-tests: New file.
1619 * tests/test-array-mergesort.c: New file.
1621 New module 'array-mergesort'.
1622 * modules/array-mergesort: New file.
1623 * lib/array-mergesort.h: New file.
1625 2009-02-15 Bruno Haible <bruno@clisp.org>
1627 Fix 2009-02-07 commit.
1628 * lib/gen-uni-tables.c (output_predicate, output_category,
1629 output_combclass, output_bidi_category, output_decimal_digit,
1630 output_digit, output_numeric, output_mirror, output_scripts,
1631 output_ident_category, output_simple_mapping): Fix format directives.
1632 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
1634 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
1636 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
1637 fixes are available from IBM.
1639 2009-02-13 Jim Meyering <meyering@redhat.com>
1641 fts: arrange not to stat non-directories in more cases
1642 This makes GNU find (when it doesn't need to stat each file)
1643 *much* more efficient at traversing reiserfs file systems.
1644 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
1645 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
1646 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
1647 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
1648 (leaf_optimization_applies): New function.
1649 (LCO_hash, LCO_compare): New helper functions.
1650 (link_count_optimize_ok): New function.
1651 (fts_stat): Initialize new member (if dir).
1652 (fts_read): Decrement parent's fts_n_dirs_remaining count if
1653 we've just stat'ed a directory. Skip the stat call when possible.
1655 Note this AFS-related exchange:
1656 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
1657 and note find's pioctl call in find/fstype.c.
1658 But that is necessary only if you want to enable the
1659 optimization for AFS, and for now, I don't.
1661 fts: move a function definition "up" (no semantic change)
1662 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
1663 "up" to precede upcoming use of a related function.
1665 2009-02-11 Jim Meyering <meyering@redhat.com>
1667 fts: correct internal computation of nlinks (optimization-related)
1668 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
1669 whether the current entry is a directory, so don't test it.
1671 2009-02-10 Bruno Haible <bruno@clisp.org>
1673 Tests for module 'uniwbrk/ulc-wordbreaks'.
1674 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
1675 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
1676 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
1678 Tests for module 'uniwbrk/u32-wordbreaks'.
1679 * modules/uniwbrk/u32-wordbreaks-tests: New file.
1680 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
1682 Tests for module 'uniwbrk/u16-wordbreaks'.
1683 * modules/uniwbrk/u16-wordbreaks-tests: New file.
1684 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
1686 Tests for module 'uniwbrk/u8-wordbreaks'.
1687 * modules/uniwbrk/u8-wordbreaks-tests: New file.
1688 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
1690 2009-02-10 Bruno Haible <bruno@clisp.org>
1692 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
1694 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
1695 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
1696 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
1698 2009-02-10 Simon Josefsson <simon@josefsson.org>
1700 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
1701 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
1703 2009-02-10 Bruno Haible <bruno@clisp.org>
1705 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
1706 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
1707 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
1708 * lib/unilbrk/u8-possible-linebreaks.c: Update.
1709 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
1710 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
1712 2009-02-09 Simon Josefsson <simon@josefsson.org>
1714 * lib/sockets.h (gl_fd_to_handle): New function.
1716 * tests/test-sockets.c: Call gl_fd_to_handle.
1718 2009-02-09 Bruno Haible <bruno@clisp.org>
1720 * doc/havelib.texi: Document the conventions on bi-arch systems.
1722 2009-02-08 Bruno Haible <bruno@clisp.org>
1724 Document the AC_LIB_LINKFLAGS macro.
1725 * doc/havelib.texi: New file, mostly written on 2005-05-24.
1726 * doc/gnulib.texi: Include it.
1728 2009-02-08 Bruno Haible <bruno@clisp.org>
1730 Fix wrong order of sections, compared to TOC.
1731 * doc/gnulib.texi: Include relocatable-maint.texi after the
1732 "Regular expressions" node, not before.
1734 2009-02-08 Bruno Haible <bruno@clisp.org>
1736 Tests for module 'unicase/totitle'.
1737 * modules/unicase/totitle-tests: New file.
1739 Tests for module 'unicase/tolower'.
1740 * modules/unicase/tolower-tests: New file.
1742 Tests for module 'unicase/toupper'.
1743 * modules/unicase/toupper-tests: New file.
1744 * tests/unicase/test-mapping-part1.h: New file.
1745 * tests/unicase/test-mapping-part2.h: New file.
1747 New module 'unicase/totitle'.
1748 * modules/unicase/totitle: New file.
1749 * lib/unicase/totitle.c: New file.
1751 New module 'unicase/tolower'.
1752 * modules/unicase/tolower: New file.
1753 * lib/unicase/tolower.c: New file.
1755 New module 'unicase/toupper'.
1756 * modules/unicase/toupper: New file.
1757 * lib/unicase/toupper.c: New file.
1758 * lib/unicase/simple-mapping.h: New file.
1760 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
1761 (mapping_table): New structure.
1762 (output_simple_mapping): New function.
1763 (main): Invoke output_simple_mapping_test and output_simple_mapping.
1764 * modules/gen-uni-tables (Description): Update.
1765 * lib/unicase/toupper.h: New file, automatically generated by
1767 * lib/unicase/tolower.h: New file, automatically generated by
1769 * lib/unicase/totitle.h: New file, automatically generated by
1771 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
1773 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
1775 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
1778 New module 'unicase/base'.
1779 * modules/unicase/base: New file.
1780 * lib/unicase.h: New file.
1782 2009-02-08 Bruno Haible <bruno@clisp.org>
1784 New module 'uniwbrk/ulc-wordbreaks'.
1785 * modules/uniwbrk/ulc-wordbreaks: New file.
1786 * lib/uniwbrk/ulc-wordbreaks.c: New file.
1788 New module 'uniwbrk/u32-wordbreaks'.
1789 * modules/uniwbrk/u32-wordbreaks: New file.
1790 * lib/uniwbrk/u32-wordbreaks.c: New file.
1792 New module 'uniwbrk/u16-wordbreaks'.
1793 * modules/uniwbrk/u16-wordbreaks: New file.
1794 * lib/uniwbrk/u16-wordbreaks.c: New file.
1796 New module 'uniwbrk/u8-wordbreaks'.
1797 * modules/uniwbrk/u8-wordbreaks: New file.
1798 * lib/uniwbrk/u8-wordbreaks.c: New file.
1799 * lib/uniwbrk/u-wordbreaks.h: New file.
1801 New module 'uniwbrk/table'.
1802 * modules/uniwbrk/table: New file.
1803 * lib/uniwbrk/wbrktable.h: New file.
1804 * lib/uniwbrk/wbrktable.c: New file.
1806 New module 'uniwbrk/wordbreak-property'.
1807 * modules/uniwbrk/wordbreak-property: New file.
1808 * lib/uniwbrk/wordbreak-property.c: New file.
1810 * lib/gen-uni-tables.c (WBP_*): New enum items.
1811 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
1812 (unicode_org_wbp): New variable.
1813 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
1815 (wbp_table): New structure.
1816 (output_wbp, output_wbrk_tables): New functions.
1817 (main): Accept additional argument. Invoke fill_org_wbp,
1818 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
1820 * modules/gen-uni-tables (Description): Update.
1821 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
1824 New module 'uniwbrk/base'.
1825 * modules/uniwbrk/base: New file.
1826 * lib/uniwbrk.h: New file.
1828 2009-02-08 Bruno Haible <bruno@clisp.org>
1830 Update to Unicode 5.1.0.
1831 * lib/gen-uni-tables.c (is_property_alphabetic): Include
1833 (is_property_default_ignorable_code_point): Don't include characters
1834 of category Cc or Cs and not-a-characters.
1835 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
1836 U+0D79, U+109E, U+109F, U+A60C.
1837 * lib/unictype/bidi_of.h: Regenerated.
1838 * lib/unictype/blocks.h: Regenerated.
1839 * lib/unictype/categ_C.h: Regenerated.
1840 * lib/unictype/categ_Cf.h: Regenerated.
1841 * lib/unictype/categ_Cn.h: Regenerated.
1842 * lib/unictype/categ_L.h: Regenerated.
1843 * lib/unictype/categ_Ll.h: Regenerated.
1844 * lib/unictype/categ_Lm.h: Regenerated.
1845 * lib/unictype/categ_Lo.h: Regenerated.
1846 * lib/unictype/categ_Lu.h: Regenerated.
1847 * lib/unictype/categ_M.h: Regenerated.
1848 * lib/unictype/categ_Mc.h: Regenerated.
1849 * lib/unictype/categ_Me.h: Regenerated.
1850 * lib/unictype/categ_Mn.h: Regenerated.
1851 * lib/unictype/categ_N.h: Regenerated.
1852 * lib/unictype/categ_Nd.h: Regenerated.
1853 * lib/unictype/categ_Nl.h: Regenerated.
1854 * lib/unictype/categ_No.h: Regenerated.
1855 * lib/unictype/categ_P.h: Regenerated.
1856 * lib/unictype/categ_Pd.h: Regenerated.
1857 * lib/unictype/categ_Pe.h: Regenerated.
1858 * lib/unictype/categ_Pf.h: Regenerated.
1859 * lib/unictype/categ_Pi.h: Regenerated.
1860 * lib/unictype/categ_Po.h: Regenerated.
1861 * lib/unictype/categ_Ps.h: Regenerated.
1862 * lib/unictype/categ_S.h: Regenerated.
1863 * lib/unictype/categ_Sk.h: Regenerated.
1864 * lib/unictype/categ_Sm.h: Regenerated.
1865 * lib/unictype/categ_So.h: Regenerated.
1866 * lib/unictype/categ_of.h: Regenerated.
1867 * lib/unictype/combining.h: Regenerated.
1868 * lib/unictype/ctype_alnum.h: Regenerated.
1869 * lib/unictype/ctype_alpha.h: Regenerated.
1870 * lib/unictype/ctype_graph.h: Regenerated.
1871 * lib/unictype/ctype_lower.h: Regenerated.
1872 * lib/unictype/ctype_print.h: Regenerated.
1873 * lib/unictype/ctype_punct.h: Regenerated.
1874 * lib/unictype/ctype_upper.h: Regenerated.
1875 * lib/unictype/decdigit.h: Regenerated.
1876 * lib/unictype/digit.h: Regenerated.
1877 * lib/unictype/mirror.h: Regenerated.
1878 * lib/unictype/numeric.h: Regenerated.
1879 * lib/unictype/pr_alphabetic.h: Regenerated.
1880 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
1881 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
1882 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
1883 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
1884 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
1885 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
1886 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
1887 * lib/unictype/pr_combining.h: Regenerated.
1888 * lib/unictype/pr_dash.h: Regenerated.
1889 * lib/unictype/pr_decimal_digit.h: Regenerated.
1890 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
1891 * lib/unictype/pr_deprecated.h: Regenerated.
1892 * lib/unictype/pr_diacritic.h: Regenerated.
1893 * lib/unictype/pr_extender.h: Regenerated.
1894 * lib/unictype/pr_format_control.h: Regenerated.
1895 * lib/unictype/pr_grapheme_base.h: Regenerated.
1896 * lib/unictype/pr_grapheme_extend.h: Regenerated.
1897 * lib/unictype/pr_grapheme_link.h: Regenerated.
1898 * lib/unictype/pr_id_continue.h: Regenerated.
1899 * lib/unictype/pr_id_start.h: Regenerated.
1900 * lib/unictype/pr_ideographic.h: Regenerated.
1901 * lib/unictype/pr_ignorable_control.h: Regenerated.
1902 * lib/unictype/pr_lowercase.h: Regenerated.
1903 * lib/unictype/pr_math.h: Regenerated.
1904 * lib/unictype/pr_numeric.h: Regenerated.
1905 * lib/unictype/pr_other_alphabetic.h: Regenerated.
1906 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
1907 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
1908 * lib/unictype/pr_other_id_continue.h: Regenerated.
1909 * lib/unictype/pr_other_lowercase.h: Regenerated.
1910 * lib/unictype/pr_other_math.h: Regenerated.
1911 * lib/unictype/pr_punctuation.h: Regenerated.
1912 * lib/unictype/pr_sentence_terminal.h: Regenerated.
1913 * lib/unictype/pr_soft_dotted.h: Regenerated.
1914 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
1915 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
1916 * lib/unictype/pr_unified_ideograph.h: Regenerated.
1917 * lib/unictype/pr_uppercase.h: Regenerated.
1918 * lib/unictype/pr_xid_continue.h: Regenerated.
1919 * lib/unictype/pr_xid_start.h: Regenerated.
1920 * lib/unictype/pr_zero_width.h: Regenerated.
1921 * lib/unictype/scripts.h: Regenerated.
1922 * lib/unictype/scripts_byname.gperf: Regenerated.
1923 * lib/unictype/sy_java_ident.h: Regenerated.
1924 * lib/unilbrk/lbrkprop1.h: Regenerated.
1925 * lib/unilbrk/lbrkprop2.h: Regenerated.
1926 * tests/unictype/test-categ_C.c: Regenerated.
1927 * tests/unictype/test-categ_Cf.c: Regenerated.
1928 * tests/unictype/test-categ_Cn.c: Regenerated.
1929 * tests/unictype/test-categ_L.c: Regenerated.
1930 * tests/unictype/test-categ_Ll.c: Regenerated.
1931 * tests/unictype/test-categ_Lm.c: Regenerated.
1932 * tests/unictype/test-categ_Lo.c: Regenerated.
1933 * tests/unictype/test-categ_Lu.c: Regenerated.
1934 * tests/unictype/test-categ_M.c: Regenerated.
1935 * tests/unictype/test-categ_Mc.c: Regenerated.
1936 * tests/unictype/test-categ_Me.c: Regenerated.
1937 * tests/unictype/test-categ_Mn.c: Regenerated.
1938 * tests/unictype/test-categ_N.c: Regenerated.
1939 * tests/unictype/test-categ_Nd.c: Regenerated.
1940 * tests/unictype/test-categ_Nl.c: Regenerated.
1941 * tests/unictype/test-categ_No.c: Regenerated.
1942 * tests/unictype/test-categ_P.c: Regenerated.
1943 * tests/unictype/test-categ_Pd.c: Regenerated.
1944 * tests/unictype/test-categ_Pe.c: Regenerated.
1945 * tests/unictype/test-categ_Pf.c: Regenerated.
1946 * tests/unictype/test-categ_Pi.c: Regenerated.
1947 * tests/unictype/test-categ_Po.c: Regenerated.
1948 * tests/unictype/test-categ_Ps.c: Regenerated.
1949 * tests/unictype/test-categ_S.c: Regenerated.
1950 * tests/unictype/test-categ_Sk.c: Regenerated.
1951 * tests/unictype/test-categ_Sm.c: Regenerated.
1952 * tests/unictype/test-categ_So.c: Regenerated.
1953 * tests/unictype/test-ctype_alnum.c: Regenerated.
1954 * tests/unictype/test-ctype_alpha.c: Regenerated.
1955 * tests/unictype/test-ctype_graph.c: Regenerated.
1956 * tests/unictype/test-ctype_lower.c: Regenerated.
1957 * tests/unictype/test-ctype_print.c: Regenerated.
1958 * tests/unictype/test-ctype_punct.c: Regenerated.
1959 * tests/unictype/test-ctype_upper.c: Regenerated.
1960 * tests/unictype/test-decdigit.h: Regenerated.
1961 * tests/unictype/test-digit.h: Regenerated.
1962 * tests/unictype/test-numeric.h: Regenerated.
1963 * tests/unictype/test-pr_alphabetic.c: Regenerated.
1964 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
1965 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
1966 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
1967 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
1968 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
1969 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
1970 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
1971 * tests/unictype/test-pr_combining.c: Regenerated.
1972 * tests/unictype/test-pr_dash.c: Regenerated.
1973 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
1974 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
1975 * tests/unictype/test-pr_deprecated.c: Regenerated.
1976 * tests/unictype/test-pr_diacritic.c: Regenerated.
1977 * tests/unictype/test-pr_extender.c: Regenerated.
1978 * tests/unictype/test-pr_format_control.c: Regenerated.
1979 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
1980 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
1981 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
1982 * tests/unictype/test-pr_id_continue.c: Regenerated.
1983 * tests/unictype/test-pr_id_start.c: Regenerated.
1984 * tests/unictype/test-pr_ideographic.c: Regenerated.
1985 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
1986 * tests/unictype/test-pr_lowercase.c: Regenerated.
1987 * tests/unictype/test-pr_math.c: Regenerated.
1988 * tests/unictype/test-pr_numeric.c: Regenerated.
1989 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
1990 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
1992 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
1993 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
1994 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
1995 * tests/unictype/test-pr_other_math.c: Regenerated.
1996 * tests/unictype/test-pr_punctuation.c: Regenerated.
1997 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
1998 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
1999 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
2000 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
2001 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
2002 * tests/unictype/test-pr_uppercase.c: Regenerated.
2003 * tests/unictype/test-pr_xid_continue.c: Regenerated.
2004 * tests/unictype/test-pr_xid_start.c: Regenerated.
2005 * tests/unictype/test-pr_zero_width.c: Regenerated.
2007 Update to Unicode 5.1.0.
2008 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
2009 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
2010 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
2011 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
2012 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
2013 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
2014 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
2015 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
2016 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
2017 (nonspacing_table_ind): Update.
2018 * tests/uniwidth/test-uc_width2.sh: Update expected result.
2020 Update to Unicode 5.1.0.
2021 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
2023 * lib/uniname/uniname.c (unicode_character_name,
2024 unicode_name_character): Add the range 0x1Fxxx to the code transform.
2025 * lib/uniname/uninames.h: Regenerated.
2026 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
2028 2009-02-07 Bruno Haible <bruno@clisp.org>
2030 Merge gen-ctype and gen-lbrk into a single program.
2031 * lib/gen-uni-tables.c: New file, incorporating
2032 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
2033 Add directory prefixes to the names of the generated files.
2034 * lib/unictype/gen-ctype.c: Remove file.
2035 * lib/unilbrk/gen-lbrk.c: Remove file.
2036 * modules/gen-uni-tables: New file.
2037 * modules/unictype/gen-ctype: Remove file.
2038 * modules/unilbrk/gen-lbrk: Remove file.
2040 2009-02-07 Bruno Haible <bruno@clisp.org>
2042 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
2044 New module 'unistr/u32-strcoll'.
2045 * modules/unistr/u32-strcoll: New file.
2046 * lib/unistr/u32-strcoll.c: New file.
2048 New module 'unistr/u16-strcoll'.
2049 * modules/unistr/u16-strcoll: New file.
2050 * lib/unistr/u16-strcoll.c: New file.
2052 New module 'unistr/u8-strcoll'.
2053 * modules/unistr/u8-strcoll: New file.
2054 * lib/unistr/u8-strcoll.c: New file.
2055 * lib/unistr/u-strcoll.h: New file.
2057 2009-02-07 Bruno Haible <bruno@clisp.org>
2059 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
2060 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
2061 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
2062 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
2063 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
2064 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
2066 2009-02-07 Bruno Haible <bruno@clisp.org>
2069 * lib/unictype/gen-ctype.c (output_predicate, output_category,
2070 output_combclass, output_bidi_category, output_decimal_digit,
2071 output_digit, output_numeric, output_mirror, output_scripts,
2072 output_ident_category): Use proper width specifier in format strings.
2074 2009-02-07 Bruno Haible <bruno@clisp.org>
2076 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
2079 2009-02-07 Jim Meyering <meyering@redhat.com>
2081 regex: avoid compilation failure with upcoming gcc-4.4
2082 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
2083 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
2084 "... error: integer overflow in preprocessor expression".
2086 2009-02-05 Ben Pfaff <blp@gnu.org>
2088 Fix link errors on Windows when close module is used.
2089 * modules/close: Add $(LIB_CLOSE) to Link section.
2090 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
2091 $(LIB_CLOSE) on Windows.
2093 2009-02-05 Jim Meyering <meyering@redhat.com>
2095 still avoid unused-parameter warnings, but do it cleanly
2096 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
2097 (get_fs_usage): Cast to void instead.
2098 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
2099 (dev_from_mount_options, read_file_system_list): Cast to void.
2100 Prompted by Bruno Haible.
2102 2009-02-04 Jim Meyering <meyering@redhat.com>
2104 fsusage.c: correct copyright year
2105 * lib/fsusage.c: Reflect year in which the change is pushed into
2107 avoid misc. warnings
2108 * lib/fsusage.c (UNUSED_PARAM): Define.
2109 (get_fs_usage): Mark parameter "disk" as unused.
2110 * lib/getugroups.c (getgrent): Use "void" in prototype.
2111 * lib/mountlist.c: Mark unused parameters.
2112 (read_file_system_list): Declare a local with "const".
2113 * lib/nanosleep.c (getnow): Declare static.
2114 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
2116 dirfd: set errno upon failure
2117 * lib/dirfd.c: Include <errno.h>.
2118 Set errno to ENOTSUP when returning -1.
2119 * modules/dirfd (Depends-on): Add errno.
2120 Suggested by John Kodis <kodis@comcast.net>.
2122 2009-02-01 Bruno Haible <bruno@clisp.org>
2124 Don't assume sizeof (long) >= sizeof (void *).
2125 * lib/memcmp.c: Include stdint.h.
2126 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
2127 srcp2 to 'const byte *'.
2128 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
2130 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
2131 * modules/memcmp (Depends-on): Add stdint.
2132 Reported by Ozkan Sezer <sezeroz@gmail.com>.
2134 2009-01-30 Eric Blake <ebb9@byu.net>
2136 fix more require-before-expand issues
2137 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
2138 expand, AC_PROG_AWK.
2139 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
2141 2009-01-28 Eric Blake <ebb9@byu.net>
2143 version-etc: use consistent URL formatting
2144 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
2145 Improve formatting. Use fputs for string without %.
2147 2009-01-28 Jim Meyering <meyering@redhat.com>
2149 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
2150 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
2151 "underquoted definition of NAME" from autoconf-2.59.
2153 2009-01-28 Bruno Haible <bruno@clisp.org>
2155 * doc/gnulib.texi: Add "Obsolete modules" to index.
2157 2009-01-28 Jim Meyering <meyering@redhat.com>
2159 useless-if-before-free: recognize more variants
2160 * build-aux/useless-if-before-free: Also recognize e.g.,
2161 if (NULL != p) free (p);
2163 2009-01-27 Mark McLoughlin <markmc@redhat.com>
2165 test-getaddrinfo: skip (don't fail) this test when there's no network
2166 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
2167 on the presumption that it means you lack network access.
2169 2009-01-26 Jim Meyering <meyering@redhat.com>
2171 fflush: avoid warnings on modern systems
2172 * lib/fflush.c (rpl_fflush): Move declarations of locals,
2173 pos and result, into scopes where they're used.
2175 2009-01-26 Eric Blake <ebb9@byu.net>
2177 Silence warning reintroduced by recent extensions patch.
2178 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
2179 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
2182 Backport improved autoconf semantics of AC_DEFUN_ONCE.
2183 * m4/00gnulib.m4: New file.
2184 * gnulib-tool (func_get_filelist): Always use it.
2185 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
2186 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
2188 2009-01-25 Bruno Haible <bruno@clisp.org>
2190 Make test-quotearg work on MacOS X and AIX.
2191 * tests/test-quotearg.sh: New file.
2192 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
2193 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
2194 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
2195 include <libintl.h>.
2196 (fake_locale): Remove variable.
2197 (gettext, dgettext, dcgettext): Remove functions.
2198 (main): Instead of setting a fake locale, set a real locale. Call
2199 textdomain and bindtextdomain.
2200 * modules/quotearg-tests (Files): Add the new files.
2201 (Depends-on): Add gettext, setenv, unsetenv.
2202 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
2203 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
2204 Augment TESTS_ENVIRONMENT.
2206 2009-01-25 Bruno Haible <bruno@clisp.org>
2208 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
2209 fr_FR.ISO8859-1 locale on MacOS X.
2210 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
2211 ja_JP.eucJP locale on MacOS X.
2212 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
2213 zh_CN.GB18030 locale on MacOS X.
2215 2009-01-25 Bruno Haible <bruno@clisp.org>
2217 Avoid link errors on MacOS X 10.3.
2218 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
2219 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
2221 2009-01-25 Bruno Haible <bruno@clisp.org>
2223 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
2224 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
2225 * modules/pipe (Files): Remove m4/posix_spawn.m4.
2226 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
2227 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
2228 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
2229 posix_spawnattr_init, posix_spawnattr_setsigmask,
2230 posix_spawnattr_setflags, posix_spawnattr_destroy.
2232 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
2233 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
2234 * modules/execute (Files): Remove m4/posix_spawn.m4.
2235 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
2236 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
2237 posix_spawnattr_init, posix_spawnattr_setsigmask,
2238 posix_spawnattr_setflags, posix_spawnattr_destroy.
2240 2009-01-25 Bruno Haible <bruno@clisp.org>
2242 * lib/glthread/threadlib.c: Include <stdlib.h>.
2244 2009-01-25 Bruno Haible <bruno@clisp.org>
2246 * lib/glthread/threadlib.c (dummy): New declaration.
2248 2009-01-25 Bruno Haible <bruno@clisp.org>
2250 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
2251 multibyte characters also for the GB18030 encoding. Don't crash when
2252 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
2254 2009-01-25 Bruno Haible <bruno@clisp.org>
2256 Avoid redefining 'struct random_data' on OSF/1 5.1.
2257 * lib/stdlib.in.h: Include <random.h> if it exists.
2258 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
2259 HAVE_RANDOM_H. Include <random.h> when testing whether
2260 'struct random_data' exists.
2261 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
2263 2009-01-25 Bruno Haible <bruno@clisp.org>
2265 Don't install charset.alias on MacOS X >= 10.3.
2266 * lib/localcharset.c (DARWIN7): New macro.
2267 (get_charset_aliases): Hardcode the result for Darwin7.
2268 * modules/localcharset (install-exec-local): Don't install
2269 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
2271 2009-01-25 Bruno Haible <bruno@clisp.org>
2273 Don't install charset.alias on mingw and Cygwin.
2274 * modules/localcharset (install-exec-local): Don't install
2275 charset.alias on mingw and Cygwin, if the file does not yet exist.
2276 The result for these platforms is hardcoded in localcharset.c.
2278 2009-01-25 Bruno Haible <bruno@clisp.org>
2280 Make it possible again to use AC_GNU_SOURCE together with gnulib.
2281 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
2282 before requiring AC_USE_SYSTEM_EXTENSIONS.
2284 2009-01-25 Jim Meyering <meyering@redhat.com>
2286 c-strtod: avoid warnings
2287 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
2288 "assignment discards qualifiers from pointer target type" warnings.
2290 2009-01-24 Bruno Haible <bruno@clisp.org>
2292 Add support for non-UTF-8 locales on MacOS X.
2293 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
2294 canonical encodings. For Darwin 7 and newer, don't map traditional
2296 Reported by Vincent Lefevre <vincent@vinc17.org>
2297 at <http://savannah.gnu.org/bugs/?25235>.
2299 2009-01-24 Bruno Haible <bruno@clisp.org>
2301 * doc/gnulib.texi (Obsolete modules): New section.
2302 Reported by Mike Frysinger <vapier@gentoo.org>.
2304 2009-01-24 Bruno Haible <bruno@clisp.org>
2306 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
2309 2009-01-24 Bruno Haible <bruno@clisp.org>
2311 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
2312 Reported by Eric Blake.
2314 2009-01-24 Bruno Haible <bruno@clisp.org>
2316 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
2317 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
2318 Reported by Gary V. Vaughan <gary@gnu.org>.
2320 2009-01-24 Bruno Haible <bruno@clisp.org>
2322 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
2324 2009-01-23 Bruno Haible <bruno@clisp.org>
2326 Make c-strtod, c-strtold usable in libraries.
2327 * lib/c-strtod.c: Include string.h instead of xalloc.h.
2328 (C_STRTOD): Call strdup instead of xstrdup.
2329 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
2330 * modules/c-strtold (Depends-on): Likewise.
2331 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
2332 * NEWS: Mention the change.
2333 Reported by Michael Gold <mgold@ncf.ca>.
2335 2009-01-23 Jim Meyering <meyering@redhat.com>
2337 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
2338 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
2339 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
2341 2009-01-23 Simon Josefsson <simon@josefsson.org>
2343 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
2345 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
2346 * modules/version-etc (Description): Update.
2348 2009-01-22 Bruno Haible <bruno@clisp.org>
2350 Cache the C locale object.
2351 * lib/c-strtod.c (c_locale_cache): New variable.
2352 (c_locale): New function.
2353 (C_STRTOD): Use it, and don't call freelocale.
2354 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
2355 Suggested by Paolo Bonzini.
2357 2009-01-21 Bruno Haible <bruno@clisp.org>
2359 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
2360 conditions other than overflow.
2362 2009-01-21 Bruno Haible <bruno@clisp.org>
2364 * lib/c-strtod.c: Include errno.h.
2365 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
2366 value from STRTOD_L and STRTOD.
2368 2009-01-21 Bruno Haible <bruno@clisp.org>
2369 and Jim Meyering <meyering@redhat.com>
2371 nanosleep: skip configure test (fail it) for apple universal builds
2372 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
2373 universal builds, assume that nanosleep does not work.
2374 * modules/nanosleep (Depends-on): Add multiarch.
2376 mktime: skip configure test (fail it) for apple universal builds
2377 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
2378 universal builds, assume that mktime does not work.
2379 * modules/mktime (Depends-on): Add multiarch.
2381 2009-01-21 Eric Blake <ebb9@byu.net>
2383 multiarch: avoid expand-before-require warning
2384 * modules/multiarch (configure.ac): Require, rather than expand,
2386 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
2387 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
2388 enforce that all clients require it. Partial reversion of
2391 error: avoid expand-before-require warning
2392 * modules/errno (configure.ac): Require, rather than expand,
2394 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
2395 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
2396 enforce that all clients require it.
2398 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
2399 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
2400 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
2401 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
2403 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
2406 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
2408 regex: do not depend on obsolete modules.
2409 * modules/regex: Remove memcmp and memmove.
2411 2009-01-20 Bruno Haible <bruno@clisp.org>
2413 Make the 'link' module link on Windows NT 4.
2414 * lib/link.c (_WIN32_WINNT): Don't define.
2415 (CreateHardLinkFuncType): New type.
2416 (CreateHardLinkFunc, initialized): New variables.
2417 (initialize): New function.
2418 (link): Invoke CreateHardLink indirectly through the function pointer.
2420 2009-01-20 Bruno Haible <bruno@clisp.org>
2422 Fix compilation failure on mingw.
2423 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
2425 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
2427 * doc/c-strtod.texi: Mention a couple of restrictions.
2429 2009-01-20 Jim Meyering <meyering@redhat.com>
2431 gettimeofday: move more declarations out of functions
2432 * lib/gettimeofday.c: Move extern declarations of tzset and
2433 gmtime out of containing functions. Prompted by Bruno Haible.
2435 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
2437 regex: do not depend on obsolete modules.
2438 * modules/regex: Remove memcmp and memmove.
2440 2009-01-19 Bruno Haible <bruno@clisp.org>
2442 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
2443 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
2444 gl_BIGENDIAN, not AC_C_BIGENDIAN.
2445 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
2446 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
2448 2009-01-19 Bruno Haible <bruno@clisp.org>
2450 * tests/test-link.c: Include <errno.h>.
2451 (main): Exit with code 77 when a hard link cannot be created due to
2453 * tests/test-link.sh: Skip test when a hard link cannot be created due
2455 Suggested by Eric Blake.
2457 2009-01-19 Martin Lambers <marlam@marlam.de>
2459 * modules/link-tests: New file.
2460 * tests/test-link.sh: New file.
2461 * tests/test-link.c: New file.
2463 2009-01-19 Eric Blake <ebb9@byu.net>
2465 doc: mention another function added in cygwin 1.7.0
2466 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
2467 Another new function in cygwin 1.7.
2469 2009-01-19 Bruno Haible <bruno@clisp.org>
2471 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
2472 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
2473 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
2474 gl_BIGENDIAN, not AC_C_BIGENDIAN.
2475 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
2476 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
2477 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2478 * m4/md4.m4 (gl_MD4): Likewise.
2479 * m4/md5.m4 (gl_MD5): Likewise.
2480 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
2481 * m4/sha1.m4 (gl_SHA1): Likewise.
2482 * m4/sha256.m4 (gl_SHA256): Likewise.
2483 * m4/sha512.m4 (gl_SHA512): Likewise.
2485 2009-01-19 Bruno Haible <bruno@clisp.org>
2487 * modules/uniname/uniname-tests (Depends-on): Add progname.
2488 * tests/uniname/test-uninames.c: Include progname.h.
2489 (main): Call set_program_name.
2491 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
2492 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
2493 (main): Call set_program_name.
2495 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
2496 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
2497 (main): Call set_program_name.
2499 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
2500 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
2501 (main): Call set_program_name.
2503 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
2504 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
2505 (main): Call set_program_name.
2507 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
2508 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
2509 (main): Call set_program_name.
2511 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
2512 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
2513 (main): Call set_program_name.
2515 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
2516 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
2517 (main): Call set_program_name.
2519 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
2520 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
2521 (main): Call set_program_name.
2523 2009-01-19 Eric Blake <ebb9@byu.net>
2525 test-unistd: test previous patch
2526 * tests/test-unistd.c: Test *_FILENO macros.
2528 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
2529 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
2530 Guarantee a definition.
2531 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
2532 * modules/unistd-safer (Depends-on): Add dependency on unistd.
2533 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
2534 * lib/dup-safer.c (STDERR_FILENO): Likewise.
2535 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
2537 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
2538 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
2539 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
2541 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
2542 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
2543 (STDERR_FILENO): Likewise.
2544 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
2545 (STDERR_FILENO): Likewise.
2546 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
2547 (STDERR_FILENO): Likewise.
2548 Reported by Elbert Pol.
2550 2009-01-19 Eric Blake <ebb9@byu.net>
2552 doc: mention more functions added in cygwin 1.7.0
2553 * doc/posix-functions/abort.texi (abort): Update wording related
2555 * doc/posix-functions/daylight.texi (daylight): Likewise.
2556 * doc/posix-functions/optarg.texi (optarg): Likewise.
2557 * doc/posix-functions/optarg.texi (opterr): Likewise.
2558 * doc/posix-functions/optarg.texi (optind): Likewise.
2559 * doc/posix-functions/optarg.texi (optopt): Likewise.
2560 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
2561 worked in 1.5.x, and was withdrawn in 1.7.
2562 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
2563 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
2565 * doc/posix-functions/perror.texi (perror): Likewise.
2566 * doc/posix-functions/printf.texi (printf): Likewise.
2567 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
2568 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
2569 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2570 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2571 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2572 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
2573 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
2575 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
2577 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
2579 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
2580 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
2582 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
2583 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
2584 * doc/posix-functions/confstr.texi (confstr): Likewise.
2585 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
2586 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
2587 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
2588 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
2589 * doc/posix-functions/fputws.texi (fputws): Likewise.
2590 * doc/posix-functions/fwide.texi (fwide): Likewise.
2591 * doc/posix-functions/getwc.texi (getwc): Likewise.
2592 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
2593 * doc/posix-functions/putwc.texi (putwc): Likewise.
2594 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
2595 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
2596 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
2597 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
2598 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
2599 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
2600 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
2601 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
2602 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
2603 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
2604 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
2606 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
2608 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
2609 * lib/ioctl.c: Include <sys/ioctl.h>.
2611 2009-01-19 Simon Josefsson <simon@josefsson.org>
2613 * modules/getdate-tests (Depends-on): Add progname.
2614 * tests/test-getdate.c: Use progname module, to avoid link errors
2615 on non-glibc systems.
2617 2009-01-18 Simon Josefsson <simon@josefsson.org>
2619 * modules/filenamecat-tests (Depends-on): Add progname.
2620 * modules/fstrcmp-tests (Depends-on): Likewise.
2622 * tests/test-filenamecat.c: Use progname module, to avoid link
2623 errors on non-glibc systems.
2624 * tests/test-fstrcmp.c: Likewise.
2626 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
2628 gettimeofday: avoid warning: nested extern declaration of 'localtime'
2629 * lib/gettimeofday.c: Move extern declaration out of function.
2631 2009-01-18 Bruno Haible <bruno@clisp.org>
2633 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
2634 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
2635 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
2637 2009-01-18 Bruno Haible <bruno@clisp.org>
2639 * lib/strftime.c (MEMPCPY): Remove unused macro.
2640 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
2642 2009-01-18 Martin Lambers <marlam@marlam.de>
2645 * lib/unistd.in.h (link): New declaration.
2646 * lib/link.c: New file.
2647 * m4/link.m4: New file.
2648 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
2650 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
2651 * modules/link: New file.
2652 * doc/posix-functions/link.texi: Mention the new module.
2654 2009-01-18 Bruno Haible <bruno@clisp.org>
2656 * tests/test-avltree_list.c (main): Call set_program_name.
2657 * tests/test-avltree_oset.c (main): Likewise.
2658 * tests/test-obstack-printf.c: Include progname.h.
2659 (main): Call set_program_name.
2660 * tests/test-quotearg.c: Include progname.h.
2661 (main): Call set_program_name.
2662 * tests/test-xmemdup0.c: Include progname.h.
2663 (main): Call set_program_name.
2665 2009-01-18 Bruno Haible <bruno@clisp.org>
2667 New module 'alphasort'.
2668 * lib/dirent.in.h (alphasort): New declaration.
2669 * lib/alphasort.c: New file, from glibc with modifications.
2670 * m4/alphasort.m4: New file.
2671 * modules/alphasort: New file.
2672 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
2674 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
2676 * doc/posix-functions/alphasort.texi: Mention the new module and the
2677 portability problems.
2679 2009-01-18 Bruno Haible <bruno@clisp.org>
2681 New module 'scandir'.
2682 * lib/dirent.in.h (scandir): New declaration.
2683 * lib/scandir.c: New file, from glibc with modifications.
2684 * m4/scandir.m4: New file.
2685 * modules/scandir: New file.
2686 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
2688 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
2690 * doc/posix-functions/scandir.texi: Mention the new module and the
2691 portability problems.
2693 2009-01-17 Bruno Haible <bruno@clisp.org>
2695 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
2696 Update documentation.
2697 (func_remove_suffix): Escape all dots in the suffix. Update
2699 (func_filter_filelist): Update documentation.
2700 Reported by Ralf Wildenhues.
2702 2009-01-17 Bruno Haible <bruno@clisp.org>
2704 * modules/dprintf-posix-tests: New file.
2705 * tests/test-dprintf-posix.sh: New file.
2706 * tests/test-dprintf-posix.c: New file.
2708 New modules 'dprintf', 'dprintf-posix'.
2709 * lib/stdio.in.h (dprintf): New declaration.
2710 * lib/dprintf.c: New file.
2711 * m4/dprintf.m4: New file.
2712 * m4/dprintf-posix.m4: New file.
2713 * modules/dprintf: New file.
2714 * modules/dprintf-posix: New file.
2715 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
2716 HAVE_DPRINTF, REPLACE_DPRINTF.
2717 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
2718 HAVE_DPRINTF, REPLACE_DPRINTF.
2719 * doc/posix-functions/dprintf.texi: Mention the new modules.
2721 2009-01-17 Bruno Haible <bruno@clisp.org>
2723 * modules/vdprintf-posix-tests: New file.
2724 * tests/test-vdprintf-posix.sh: New file.
2725 * tests/test-vdprintf-posix.c: New file.
2727 New modules 'vdprintf', 'vdprintf-posix'.
2728 * lib/stdio.in.h (vdprintf): New declaration.
2729 * lib/vdprintf.c: New file.
2730 * m4/vdprintf.m4: New file.
2731 * m4/vdprintf-posix.m4: New file.
2732 * modules/vdprintf: New file.
2733 * modules/vdprintf-posix: New file.
2734 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
2735 HAVE_VDPRINTF, REPLACE_VDPRINTF.
2736 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
2737 HAVE_VDPRINTF, REPLACE_VDPRINTF.
2738 * doc/posix-functions/vdprintf.texi: Mention the new modules.
2740 2009-01-17 Bruno Haible <bruno@clisp.org>
2742 Fix replacement of fopen on mingw.
2743 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
2746 2009-01-17 Bruno Haible <bruno@clisp.org>
2748 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
2749 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
2751 2009-01-17 Bruno Haible <bruno@clisp.org>
2753 Avoid test-fflush2.sh failure on mingw.
2754 * tests/test-fflush2.c: Include binary-io.h.
2755 (main): Put standard input into binary mode.
2756 * modules/fflush-tests (Depends-on): Add binary-io.
2758 2009-01-17 Bruno Haible <bruno@clisp.org>
2760 * lib/wchar.in.h: In another particular situation, include only the
2761 system's <wchar.h> file.
2762 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
2763 Reported by Albert Chin-A-Young <china@thewrittenword.com>
2764 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
2766 2009-01-17 Bruno Haible <bruno@clisp.org>
2768 Support for stripping executables in --enable-relocatable.
2769 * build-aux/install-reloc: Expect one more argument, or an environment
2770 variable RELOC_STRIP_PROG. If set, strip the destination program and
2772 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
2774 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
2775 to set RELOCATABLE_STRIP.
2776 * NEWS: Mention the new Makefile requirement.
2778 2009-01-17 Bruno Haible <bruno@clisp.org>
2780 * build-aux/install-reloc: Remove debugging information left over by
2781 C compiler on MacOS X.
2783 2009-01-17 Bruno Haible <bruno@clisp.org>
2785 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
2786 * lib/progreloc.c (find_executable): Fix type of pointer passed to
2787 _NSGetExecutablePath.
2789 2009-01-16 Jim Meyering <meyering@redhat.com>
2791 strerror: avoid warnings about discarding "const"
2792 * lib/strerror.c (rpl_strerror): Instead of returning a const
2793 string from each and every "case", use a variable, and add a single
2794 cast after the switch.
2796 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
2798 * lib/arpa_inet.in.h: Add extern "C" block for C++.
2800 2009-01-16 Bruno Haible <bruno@clisp.org>
2802 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
2803 array initializer syntax that also works in C++ mode.
2804 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2806 2009-01-16 Jim Meyering <meyering@redhat.com>
2808 poll: suppress a warning
2809 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
2810 to ignore "...unsigned expression < 0 is always false" warnings.
2812 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
2814 poll: remove declarations of unused variables
2815 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
2818 2009-01-15 Bruno Haible <bruno@clisp.org>
2820 Make fflush-after-ungetc POSIX compliant on BSD systems.
2821 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
2822 (clear_ungetc_buffer): Implement also for other systems.
2823 (rpl_fflush): On glibc systems, invoke
2824 clear_ungetc_buffer_preserving_position. Otherwise, invoke
2825 clear_ungetc_buffer after fetching the stream's position, not before.
2827 2009-01-15 Bruno Haible <bruno@clisp.org>
2829 Make fflush-after-ungetc POSIX compliant on glibc systems.
2830 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
2832 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
2833 (rpl_fflush): On glibc systems, simply call the system's fflush
2834 function after clearing the ungetc buffer.
2835 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
2836 Instead, lseek only to the end of file, then use the system's fseeko
2837 for the rest. On glibc systems, reset the EOF indicator bit.
2839 2009-01-15 Jim Meyering <meyering@redhat.com>
2841 openmp.m4: revert quote-adding change, for portability to older autoconf
2842 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
2843 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
2844 Simon Josefsson noticed the problem when using autoconf-2.61.
2846 2009-01-15 Bruno Haible <bruno@clisp.org>
2848 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
2849 * tests/test-fflush2.c (ASSERT): Always fail.
2850 (main): Add two tests for fflush() after ungetc(), taking into account
2851 the Austin Group's clarification.
2852 Suggested by Eric Blake.
2854 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
2856 mktime.m4: remove K&R-style function prototypes
2857 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
2858 for the Sun C++ compiler.
2860 2009-01-14 Bruno Haible <bruno@clisp.org>
2862 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
2863 while including <wchar.h>.
2864 * lib/wchar.in.h: In two particular situations on HP-UX, include only
2865 the system's <wchar.h> file.
2866 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2868 2009-01-14 Bruno Haible <bruno@clisp.org>
2870 * m4/csharp.m4: Don't mention gettext on the serial number line.
2871 * m4/csharpexec.m4: Likewise.
2872 * m4/eaccess.m4: Likewise.
2873 * m4/javaexec.m4: Likewise.
2874 * m4/sig_atomic_t.m4: Likewise.
2875 * m4/tmpdir.m4: Likewise.
2876 * m4/intldir.m4: Bump gettext version.
2877 * m4/lib-ld.m4: Likewise.
2879 2009-01-14 Bruno Haible <bruno@clisp.org>
2881 * lib/progname.c (set_program_name): Add more comments.
2882 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
2884 2009-01-14 Simon Josefsson <simon@josefsson.org>
2886 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
2887 were sys/stat.h does not define it.
2889 2009-01-14 Jim Meyering <meyering@redhat.com>
2891 many *.m4 files: improve m4 quoting
2892 99% of this change was performed by running the following commands:
2893 git ls-files | grep '\.m4$' | xargs perl -pi \
2894 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
2895 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
2896 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
2897 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
2898 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
2899 The remainder were to add Copyright dates, increment serial numbers,
2900 undo some changes in comments, exclude m4/intl.m4, and add quotes
2901 around the "1" in ",1" where the unusual spacing prohibited the
2902 above regexps from doing the job. For more details, see
2903 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
2904 * m4/acl.m4: Modified.
2905 * m4/afs.m4: Likewise.
2906 * m4/alloca.m4: Likewise.
2907 * m4/argp.m4: Likewise.
2908 * m4/argz.m4: Likewise.
2909 * m4/atexit.m4: Likewise.
2910 * m4/bison-i18n.m4: Likewise.
2911 * m4/bison.m4: Likewise.
2912 * m4/byteswap.m4: Likewise.
2913 * m4/c-stack.m4: Likewise.
2914 * m4/c-strtod.m4: Likewise.
2915 * m4/calloc.m4: Likewise.
2916 * m4/canonicalize-lgpl.m4: Likewise.
2917 * m4/chown.m4: Likewise.
2918 * m4/clock_time.m4: Likewise.
2919 * m4/codeset.m4: Likewise.
2920 * m4/copy-file.m4: Likewise.
2921 * m4/csharp.m4: Likewise.
2922 * m4/csharpcomp.m4: Likewise.
2923 * m4/csharpexec.m4: Likewise.
2924 * m4/d-ino.m4: Likewise.
2925 * m4/d-type.m4: Likewise.
2926 * m4/dirfd.m4: Likewise.
2927 * m4/double-slash-root.m4: Likewise.
2928 * m4/eaccess.m4: Likewise.
2929 * m4/eealloc.m4: Likewise.
2930 * m4/environ.m4: Likewise.
2931 * m4/errno_h.m4: Likewise.
2932 * m4/euidaccess.m4: Likewise.
2933 * m4/execute.m4: Likewise.
2934 * m4/fatal-signal.m4: Likewise.
2935 * m4/fchdir.m4: Likewise.
2936 * m4/fcntl_h.m4: Likewise.
2937 * m4/fileblocks.m4: Likewise.
2938 * m4/filenamecat.m4: Likewise.
2939 * m4/findprog.m4: Likewise.
2940 * m4/flexmember.m4: Likewise.
2941 * m4/fnmatch.m4: Likewise.
2942 * m4/fopen.m4: Likewise.
2943 * m4/fpending.m4: Likewise.
2944 * m4/fprintf-posix.m4: Likewise.
2945 * m4/free.m4: Likewise.
2946 * m4/frexp.m4: Likewise.
2947 * m4/frexpl.m4: Likewise.
2948 * m4/fsusage.m4: Likewise.
2949 * m4/ftruncate.m4: Likewise.
2950 * m4/gc-camellia.m4: Likewise.
2951 * m4/gc-random.m4: Likewise.
2952 * m4/gc.m4: Likewise.
2953 * m4/getaddrinfo.m4: Likewise.
2954 * m4/getcwd-abort-bug.m4: Likewise.
2955 * m4/getcwd-path-max.m4: Likewise.
2956 * m4/getdate.m4: Likewise.
2957 * m4/getdomainname.m4: Likewise.
2958 * m4/getgroups.m4: Likewise.
2959 * m4/gethostname.m4: Likewise.
2960 * m4/gethrxtime.m4: Likewise.
2961 * m4/getline.m4: Likewise.
2962 * m4/getloadavg.m4: Likewise.
2963 * m4/getndelim2.m4: Likewise.
2964 * m4/getpass.m4: Likewise.
2965 * m4/gettext.m4: Likewise.
2966 * m4/gettime.m4: Likewise.
2967 * m4/gettimeofday.m4: Likewise.
2968 * m4/gnulib-common.m4: Likewise.
2969 * m4/group-member.m4: Likewise.
2970 * m4/host-os.m4: Likewise.
2971 * m4/iconv.m4: Likewise.
2972 * m4/iconv_open.m4: Likewise.
2973 * m4/inet_ntop.m4: Likewise.
2974 * m4/inet_pton.m4: Likewise.
2975 * m4/inline.m4: Likewise.
2976 * m4/intldir.m4: Likewise.
2977 * m4/intlmacosx.m4: Likewise.
2978 * m4/intmax.m4: Likewise.
2979 * m4/intmax_t.m4: Likewise.
2980 * m4/inttypes.m4: Likewise.
2981 * m4/inttypes_h.m4: Likewise.
2982 * m4/inttypes-pri.m4: Likewise.
2983 * m4/isapipe.m4: Likewise.
2984 * m4/isnand.m4: Likewise.
2985 * m4/isnanf.m4: Likewise.
2986 * m4/isnanl.m4: Likewise.
2987 * m4/javacomp.m4: Likewise.
2988 * m4/javaexec.m4: Likewise.
2989 * m4/jm-winsz1.m4: Likewise.
2990 * m4/jm-winsz2.m4: Likewise.
2991 * m4/lchown.m4: Likewise.
2992 * m4/lcmessage.m4: Likewise.
2993 * m4/ldexpl.m4: Likewise.
2994 * m4/lib-ld.m4: Likewise.
2995 * m4/lib-link.m4: Likewise.
2996 * m4/libsigsegv.m4: Likewise.
2997 * m4/link-follow.m4: Likewise.
2998 * m4/localcharset.m4: Likewise.
2999 * m4/locale-fr.m4: Likewise.
3000 * m4/locale-ja.m4: Likewise.
3001 * m4/locale-tr.m4: Likewise.
3002 * m4/locale-zh.m4: Likewise.
3003 * m4/lock.m4: Likewise.
3004 * m4/longlong.m4: Likewise.
3005 * m4/ls-mntd-fs.m4: Likewise.
3006 * m4/lstat.m4: Likewise.
3007 * m4/malloc.m4: Likewise.
3008 * m4/mathl.m4: Likewise.
3009 * m4/mbrtowc.m4: Likewise.
3010 * m4/mbstate_t.m4: Likewise.
3011 * m4/mbswidth.m4: Likewise.
3012 * m4/memchr.m4: Likewise.
3013 * m4/memcmp.m4: Likewise.
3014 * m4/memcpy.m4: Likewise.
3015 * m4/memmem.m4: Likewise.
3016 * m4/memmove.m4: Likewise.
3017 * m4/mempcpy.m4: Likewise.
3018 * m4/memrchr.m4: Likewise.
3019 * m4/memset.m4: Likewise.
3020 * m4/minmax.m4: Likewise.
3021 * m4/mkdir-slash.m4: Likewise.
3022 * m4/mkdtemp.m4: Likewise.
3023 * m4/mktime.m4: Likewise.
3024 * m4/mmap-anon.m4: Likewise.
3025 * m4/mountlist.m4: Likewise.
3026 * m4/nanosleep.m4: Likewise.
3027 * m4/nls.m4: Likewise.
3028 * m4/nocrash.m4: Likewise.
3029 * m4/open.m4: Likewise.
3030 * m4/openat.m4: Likewise.
3031 * m4/openmp.m4: Likewise.
3032 * m4/pathmax.m4: Likewise.
3033 * m4/perl.m4: Likewise.
3034 * m4/physmem.m4: Likewise.
3035 * m4/pipe.m4: Likewise.
3036 * m4/po.m4: Likewise.
3037 * m4/poll.m4: Likewise.
3038 * m4/posixtm.m4: Likewise.
3039 * m4/posixver.m4: Likewise.
3040 * m4/printf-frexp.m4: Likewise.
3041 * m4/printf-frexpl.m4: Likewise.
3042 * m4/printf-posix.m4: Likewise.
3043 * m4/printf-posix-rpl.m4: Likewise.
3044 * m4/printf.m4: Likewise.
3045 * m4/progtest.m4: Likewise.
3046 * m4/putenv.m4: Likewise.
3047 * m4/readline.m4: Likewise.
3048 * m4/readlink.m4: Likewise.
3049 * m4/readutmp.m4: Likewise.
3050 * m4/realloc.m4: Likewise.
3051 * m4/regex.m4: Likewise.
3052 * m4/relocatable.m4: Likewise.
3053 * m4/relocatable-lib.m4: Likewise.
3054 * m4/rename-dest-slash.m4: Likewise.
3055 * m4/rename.m4: Likewise.
3056 * m4/rmdir-errno.m4: Likewise.
3057 * m4/rmdir.m4: Likewise.
3058 * m4/roundf.m4: Likewise.
3059 * m4/roundl.m4: Likewise.
3060 * m4/rpmatch.m4: Likewise.
3061 * m4/save-cwd.m4: Likewise.
3062 * m4/selinux-selinux-h.m4: Likewise.
3063 * m4/setenv.m4: Likewise.
3064 * m4/settime.m4: Likewise.
3065 * m4/sig2str.m4: Likewise.
3066 * m4/sig_atomic_t.m4: Likewise.
3067 * m4/signalblocking.m4: Likewise.
3068 * m4/signbit.m4: Likewise.
3069 * m4/sigpipe.m4: Likewise.
3070 * m4/sockets.m4: Likewise.
3071 * m4/sockpfaf.m4: Likewise.
3072 * m4/st_dm_mode.m4: Likewise.
3073 * m4/stat-time.m4: Likewise.
3074 * m4/stdbool.m4: Likewise.
3075 * m4/stdint.m4: Likewise.
3076 * m4/stdint_h.m4: Likewise.
3077 * m4/stpcpy.m4: Likewise.
3078 * m4/stpncpy.m4: Likewise.
3079 * m4/strcase.m4: Likewise.
3080 * m4/strchrnul.m4: Likewise.
3081 * m4/strcspn.m4: Likewise.
3082 * m4/strdup.m4: Likewise.
3083 * m4/strftime.m4: Likewise.
3084 * m4/strndup.m4: Likewise.
3085 * m4/strnlen.m4: Likewise.
3086 * m4/strpbrk.m4: Likewise.
3087 * m4/strptime.m4: Likewise.
3088 * m4/strsep.m4: Likewise.
3089 * m4/strtod.m4: Likewise.
3090 * m4/strtoimax.m4: Likewise.
3091 * m4/strtok_r.m4: Likewise.
3092 * m4/strtol.m4: Likewise.
3093 * m4/strtoll.m4: Likewise.
3094 * m4/strtoul.m4: Likewise.
3095 * m4/strtoull.m4: Likewise.
3096 * m4/strtoumax.m4: Likewise.
3097 * m4/strverscmp.m4: Likewise.
3098 * m4/threadlib.m4: Likewise.
3099 * m4/timegm.m4: Likewise.
3100 * m4/tm_gmtoff.m4: Likewise.
3101 * m4/tmpdir.m4: Likewise.
3102 * m4/tmpfile.m4: Likewise.
3103 * m4/tzset.m4: Likewise.
3104 * m4/uintmax_t.m4: Likewise.
3105 * m4/unlinkdir.m4: Likewise.
3106 * m4/unlocked-io.m4: Likewise.
3107 * m4/uptime.m4: Likewise.
3108 * m4/userspec.m4: Likewise.
3109 * m4/utimbuf.m4: Likewise.
3110 * m4/utime.m4: Likewise.
3111 * m4/utimes-null.m4: Likewise.
3112 * m4/utimes.m4: Likewise.
3113 * m4/vararrays.m4: Likewise.
3114 * m4/vasnprintf.m4: Likewise.
3115 * m4/vfprintf-posix.m4: Likewise.
3116 * m4/vprintf-posix.m4: Likewise.
3117 * m4/wait-process.m4: Likewise.
3118 * m4/wchar_t.m4: Likewise.
3119 * m4/wint_t.m4: Likewise.
3120 * m4/write-any-file.m4: Likewise.
3121 * m4/yield.m4: Likewise.
3123 2009-01-13 Bruno Haible <bruno@clisp.org>
3125 Avoid test-copy-file.sh failures when ACL support insufficient.
3126 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
3128 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
3129 Reported by Jim Meyering.
3131 2009-01-13 Bruno Haible <bruno@clisp.org>
3133 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
3134 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
3135 * modules/unistdio/u8-printf-parse (Files): Likewise.
3136 * modules/unistdio/u32-printf-parse (Files): Likewise.
3137 * modules/unistdio/ulc-printf-parse (Files): Likewise.
3139 2009-01-13 Simon Josefsson <simon@josefsson.org>
3141 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
3142 and m4/inttypes_h.m4 too.
3144 2009-01-12 Eric Blake <ebb9@byu.net>
3146 tests: IRIX 6.2 cc can't compile -0.0 into .data
3147 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
3148 rather than at compile-time.
3149 * tests/test-floorl.c (minus_zero): Likewise.
3150 * tests/test-frexpl.c (minus_zero): Likewise.
3151 * tests/test-isnan.c (minus_zerol): Likewise.
3152 * tests/test-isnanl.h (minus_zero): Likewise.
3153 * tests/test-ldexpl.c (minus_zero): Likewise.
3154 * tests/test-roundl.c (minus_zero): Likewise.
3155 * tests/test-signbit.c (minus_zerol): Likewise.
3156 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
3157 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
3158 * tests/test-truncl.c (minus_zero): Likewise.
3159 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
3160 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
3161 Reported by Tom G. Christensen and Nelson H. F. Beebe.
3163 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
3165 regex: fix glibc bug 9697
3166 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3169 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
3171 regex: fix glibc bug 697
3172 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3173 being NULL also if there are no backreferences.
3175 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
3177 regex: merge glibc changes
3178 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3179 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3180 re_string_skip_chars, re_string_reconstruct): Likewise.
3181 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3183 2009-01-07 Jim Meyering <meyering@redhat.com>
3185 poll: filter through cppi
3186 * lib/poll.c: Indent cpp directives to reflect nesting.
3188 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
3190 poll: don't return uninitialized
3191 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
3193 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
3195 avoid compile failure on AIX 6.1
3196 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
3197 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
3199 2009-01-04 Jim Meyering <meyering@redhat.com>
3201 remove duplicate inclusion of <stdio.h>
3202 * tests/test-fprintf-posix.c: Likewise.
3203 * tests/test-printf-posix.c: Likewise.
3204 * tests/test-snprintf-posix.c: Likewise.
3205 * tests/test-sprintf-posix.c: Likewise.
3206 * tests/test-vasprintf-posix.c: Likewise.
3207 * tests/test-vfprintf-posix.c: Likewise.
3208 * tests/test-vprintf-posix.c: Likewise.
3209 * tests/test-vsnprintf-posix.c: Likewise.
3210 * tests/test-vsprintf-posix.c: Likewise.
3212 2009-01-03 Jim Meyering <meyering@redhat.com>
3214 gnulib-tool: fix sed-based filtering
3215 * gnulib-tool (func_filter_filelist): Remove extra backslash
3216 in sed_fff_filter definition.
3218 2009-01-02 Jim Meyering <meyering@redhat.com>
3220 strftime: avoid compilation failure on Solaris 2.6
3221 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
3222 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
3223 Don't #define mbrlen or mbsinit, since now they're guaranteed to
3224 be available. Reported by Tom G. Christensen. Details in
3225 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
3227 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3228 Bruno Haible <bruno@clisp.org>
3230 Speed up gnulib-tool by doing more string processing through shell
3232 * gnulib-tool (fast_func_append): New variable.
3233 (func_remove_prefix, func_remove_suffix): New functions.
3234 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
3235 (func_filter_filelist): New function.
3236 (func_get_dependencies): Use func_remove_suffix instead of sed.
3237 (func_get_automake_snippet): Use func_filter_filelist instead of a
3238 subshell and sed invocation.
3240 2009-01-01 Bruno Haible <bruno@clisp.org>
3243 * gnulib-tool (func_import, import, update): Don't allow the characters
3244 '"', '$', '`', '\' in macro arguments that become part of commands that
3247 2009-01-01 Bruno Haible <bruno@clisp.org>
3249 * gnulib-tool (func_reset_sigpipe): Add more comments.
3251 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3253 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
3254 func_emit_tests_Makefile_am, func_import): Abort loops early if we
3255 already know the answer.
3257 2009-01-01 Jim Meyering <meyering@redhat.com>
3259 * lib/version-etc.c (version_etc_va): Update copyright year.
3261 2008-12-30 Bruno Haible <bruno@clisp.org>
3263 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
3264 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
3265 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
3267 2008-12-29 Eric Blake <ebb9@byu.net>
3269 multiarch: avoid autoconf AC_REQUIRE bug
3270 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
3271 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
3273 Reported by Bruno Haible, and analyzed in
3274 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
3276 2008-12-29 Bruno Haible <bruno@clisp.org>
3278 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
3279 files in subdirectories correctly.
3280 Reported by Ralf Wildenhues.
3282 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3284 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
3285 rather than 'join FILE -', for Solaris join.
3287 2008-12-29 Bruno Haible <bruno@clisp.org>
3289 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
3291 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
3292 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
3293 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
3294 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
3295 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3296 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
3297 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
3298 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
3299 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
3300 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
3301 * m4/nls.m4 (AM_NLS): Likewise.
3302 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
3303 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
3304 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
3305 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
3306 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
3307 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3308 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
3309 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
3310 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
3311 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
3312 * m4/xsize.m4 (gl_XSIZE): Likewise.
3313 Suggested by Jim Meyering.
3315 2008-11-17 Bruce Korb <bkorb@gnu.org>
3317 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
3318 * lib/parse-duration.c: use a switch instead of cascading if's.
3320 2008-12-29 Eric Blake <ebb9@byu.net>
3322 wchar.h: supply WEOF on Irix 5.3
3323 * lib/wchar.in.h (wint_t): Also supply WEOF.
3324 * lib/wctype.in.h (wint_t): Likewise.
3325 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
3326 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
3327 Reported by Tom G. Christensen.
3329 2008-12-26 Bruno Haible <bruno@clisp.org>
3331 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
3334 2008-12-26 Bruno Haible <bruno@clisp.org>
3336 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
3338 2008-12-26 Bruno Haible <bruno@clisp.org>
3340 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
3341 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
3342 not __STDC_CONSTANT_MACROS.
3343 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
3345 2008-12-25 Bruno Haible <bruno@clisp.org>
3347 Add support for universal builds to vasnprintf.
3348 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
3349 universal builds, guess no.
3350 * modules/vasnprintf-posix (Depends-on): Add multiarch.
3351 * modules/vasprintf-posix (Depends-on): Likewise.
3352 * modules/fprintf-posix (Depends-on): Likewise.
3353 * modules/vfprintf-posix (Depends-on): Likewise.
3354 * modules/snprintf-posix (Depends-on): Likewise.
3355 * modules/vsnprintf-posix (Depends-on): Likewise.
3356 * modules/sprintf-posix (Depends-on): Likewise.
3357 * modules/vsprintf-posix (Depends-on): Likewise.
3358 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3359 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3360 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3361 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3362 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3363 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3364 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3366 Add support for universal builds to <inttypes.h>.
3367 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
3368 _SCNu64_PREFIX): In Apple
3369 universal builds, define directly, using _LP64.
3370 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
3371 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
3372 * modules/inttypes (Depends-on): Add multiarch.
3373 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
3375 Add support for universal builds to <stdint.h>.
3376 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
3377 universal builds, define directly, using _LP64.
3378 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
3379 Apple universal builds, don't test for the size and suffix of ptrdiff_t
3381 * modules/stdint (Depends-on): Add multiarch.
3382 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
3384 New module 'multiarch'.
3385 * modules/multiarch: New file.
3386 * m4/multiarch.m4: New file.
3388 2008-12-25 Bruno Haible <bruno@clisp.org>
3390 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
3392 2008-12-25 Bruno Haible <bruno@clisp.org>
3394 * modules/btowc (License): Relicense under LGPLv2+.
3395 * modules/mbsinit (License): Likewise.
3396 * modules/mbrtowc (License): Likewise.
3397 * modules/wcrtomb (License): Likewise.
3398 * modules/streq (License): Likewise.
3399 Reported by David Lutterkort <lutter@redhat.com>.
3401 2008-12-23 Bruno Haible <bruno@clisp.org>
3403 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
3405 2008-12-23 Bruno Haible <bruno@clisp.org>
3407 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
3408 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
3409 GETADDRINFO_LIB, not in LIBS.
3410 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
3411 * modules/canon-host (Link): Likewise.
3412 * NEWS: Mention the change.
3413 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
3416 2008-12-22 Bruno Haible <bruno@clisp.org>
3418 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
3419 * doc/posix-functions/iswalpha_l.texi: Likewise.
3420 * doc/posix-functions/iswblank_l.texi: Likewise.
3421 * doc/posix-functions/iswcntrl_l.texi: Likewise.
3422 * doc/posix-functions/iswctype_l.texi: Likewise.
3423 * doc/posix-functions/iswdigit_l.texi: Likewise.
3424 * doc/posix-functions/iswgraph_l.texi: Likewise.
3425 * doc/posix-functions/iswlower_l.texi: Likewise.
3426 * doc/posix-functions/iswprint_l.texi: Likewise.
3427 * doc/posix-functions/iswpunct_l.texi: Likewise.
3428 * doc/posix-functions/iswspace_l.texi: Likewise.
3429 * doc/posix-functions/iswupper_l.texi: Likewise.
3430 * doc/posix-functions/iswxdigit_l.texi: Likewise.
3431 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
3432 * doc/posix-functions/open_wmemstream.texi: Likewise.
3433 * doc/posix-functions/swscanf.texi: Likewise.
3434 * doc/posix-functions/towctrans_l.texi: Likewise.
3435 * doc/posix-functions/towlower.texi: Likewise.
3436 * doc/posix-functions/towlower_l.texi: Likewise.
3437 * doc/posix-functions/towupper.texi: Likewise.
3438 * doc/posix-functions/towupper_l.texi: Likewise.
3439 * doc/posix-functions/vfwprintf.texi: Likewise.
3440 * doc/posix-functions/vfwscanf.texi: Likewise.
3441 * doc/posix-functions/vswscanf.texi: Likewise.
3442 * doc/posix-functions/vwprintf.texi: Likewise.
3443 * doc/posix-functions/vwscanf.texi: Likewise.
3444 * doc/posix-functions/wcpcpy.texi: Likewise.
3445 * doc/posix-functions/wcpncpy.texi: Likewise.
3446 * doc/posix-functions/wcscasecmp.texi: Likewise.
3447 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
3448 * doc/posix-functions/wcscoll_l.texi: Likewise.
3449 * doc/posix-functions/wcsdup.texi: Likewise.
3450 * doc/posix-functions/wcsncasecmp.texi: Likewise.
3451 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
3452 * doc/posix-functions/wcsnlen.texi: Likewise.
3453 * doc/posix-functions/wcsnrtombs.texi: Likewise.
3454 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
3455 * doc/posix-functions/wctrans_l.texi: Likewise.
3456 * doc/posix-functions/wctype_l.texi: Likewise.
3457 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
3458 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
3459 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
3460 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
3461 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
3462 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
3463 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
3464 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
3465 * doc/glibc-functions/wcschrnul.texi: Likewise.
3466 * doc/glibc-functions/wcsftime_l.texi: Likewise.
3467 * doc/glibc-functions/wcstod_l.texi: Likewise.
3468 * doc/glibc-functions/wcstof_l.texi: Likewise.
3469 * doc/glibc-functions/wcstol_l.texi: Likewise.
3470 * doc/glibc-functions/wcstold_l.texi: Likewise.
3471 * doc/glibc-functions/wcstoll_l.texi: Likewise.
3472 * doc/glibc-functions/wcstoq.texi: Likewise.
3473 * doc/glibc-functions/wcstoul_l.texi: Likewise.
3474 * doc/glibc-functions/wcstoull_l.texi: Likewise.
3475 * doc/glibc-functions/wcstouq.texi: Likewise.
3476 * doc/glibc-functions/wmempcpy.texi: Likewise.
3478 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
3479 Eric Blake <ebb9@byu.net>
3480 Paolo Bonzini <bonzini@gnu.org>
3481 Bruno Haible <bruno@clisp.org>
3483 Make c-stack work on Haiku.
3484 * lib/c-stack.c (SA_ONSTACK): Define fallback.
3485 (c_stack_action): Use SA_ONSTACK flag.
3487 2008-12-22 Bruno Haible <bruno@clisp.org>
3489 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
3491 2008-12-22 Bruno Haible <bruno@clisp.org>
3493 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
3494 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
3496 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
3498 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
3499 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
3500 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
3501 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
3503 2008-12-22 Bruno Haible <bruno@clisp.org>
3505 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
3508 2008-12-22 Eric Blake <ebb9@byu.net>
3510 Avoid gcc warnings on cygwin.
3511 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
3512 Avoid unused variable.
3513 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
3516 2008-12-22 Bruno Haible <bruno@clisp.org>
3518 Remove HAVE_MBRTOWC conditionals.
3519 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
3520 (mbscasecmp): Assume mbrtowc function.
3521 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
3522 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
3523 * lib/mbschr.c: Include mbuiter.h unconditionally.
3524 (mbschr): Assume mbrtowc function.
3525 * lib/mbscspn.c: Include mbuiter.h unconditionally.
3526 (mbscspn): Assume mbrtowc function.
3527 * lib/mbslen.c: Include mbuiter.h unconditionally.
3528 (mbslen): Assume mbrtowc function.
3529 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
3530 (mbsncasecmp): Assume mbrtowc function.
3531 * lib/mbsnlen.c: Include mbiter.h unconditionally.
3532 (mbsnlen): Assume mbrtowc function.
3533 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
3534 (mbspbrk): Assume mbrtowc function.
3535 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
3536 (mbspcasecmp): Assume mbrtowc function.
3537 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
3538 (mbsrchr): Assume mbrtowc function.
3539 * lib/mbssep.c: Include mbuiter.h unconditionally.
3540 (mbssep): Assume mbrtowc function.
3541 * lib/mbsspn.c: Include mbuiter.h unconditionally.
3542 (mbsspn): Assume mbrtowc function.
3543 * lib/mbsstr.c: Include mbuiter.h unconditionally.
3544 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
3545 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
3546 (mbstok_r): Assume mbrtowc function.
3547 * lib/propername.c: Include mbuiter.h unconditionally.
3548 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
3549 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
3550 (trim2): Assume mbrtowc function.
3551 * lib/mbswidth.c (mbsinit): Remove fallback definition.
3552 (mbsnwidth): Assume mbrtowc function.
3553 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
3554 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
3555 fallback definitions.
3556 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
3558 2008-12-22 Bruno Haible <bruno@clisp.org>
3560 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
3562 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
3564 * modules/regex: Request emulations for the mb*/wc* functions we need.
3565 * m4/regex.m4: Don't look for those functions here.
3566 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
3568 2008-12-22 Bruno Haible <bruno@clisp.org>
3570 * modules/fnmatch (Depends-on): Remove duplicated dependency.
3572 2008-12-21 Bruno Haible <bruno@clisp.org>
3574 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
3575 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
3576 (Include): Remove conditionalization.
3577 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
3578 (Include): Remove conditionalization.
3579 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
3580 (Include): Remove conditionalization.
3581 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
3582 * m4/mbfile.m4 (gl_MBFILE): Likewise.
3583 * NEWS: Mention the change.
3584 Reported by Alan Hourihane <alanh@fairlite.co.uk>
3585 via Sergey Poznyakoff <gray@gnu.org.ua>.
3587 2008-12-21 Bruno Haible <bruno@clisp.org>
3589 * MODULES.html.sh (Extended multibyte and wide character utilities
3590 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
3592 (Support for systems lacking POSIX:2008): Add accept, bind, close,
3593 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
3594 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
3595 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
3597 2008-12-21 Bruno Haible <bruno@clisp.org>
3599 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
3601 2008-12-21 Bruno Haible <bruno@clisp.org>
3603 * modules/wcsnrtombs-tests: New file.
3604 * tests/test-wcsnrtombs1.sh: New file.
3605 * tests/test-wcsnrtombs2.sh: New file.
3606 * tests/test-wcsnrtombs3.sh: New file.
3607 * tests/test-wcsnrtombs4.sh: New file.
3608 * tests/test-wcsnrtombs.c: New file.
3610 New module 'wcsnrtombs'.
3611 * lib/wchar.in.h (wcsnrtombs): New declaration.
3612 * lib/wcsnrtombs.c: New file.
3613 * lib/wcsrtombs-state.c: New file.
3614 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
3615 (internal_state): Remove variable.
3616 * m4/wcsnrtombs.m4: New file.
3617 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
3619 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
3621 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
3623 * modules/wcsnrtombs: New file.
3624 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
3625 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
3627 2008-12-21 Bruno Haible <bruno@clisp.org>
3629 * modules/wcsrtombs-tests: New file.
3630 * tests/test-wcsrtombs1.sh: New file.
3631 * tests/test-wcsrtombs2.sh: New file.
3632 * tests/test-wcsrtombs3.sh: New file.
3633 * tests/test-wcsrtombs4.sh: New file.
3634 * tests/test-wcsrtombs.c: New file.
3636 New module 'wcsrtombs'.
3637 * lib/wchar.in.h (wcsrtombs): New declaration.
3638 * lib/wcsrtombs.c: New file.
3639 * m4/wcsrtombs.m4: New file.
3640 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
3641 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
3642 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
3643 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
3644 * modules/wcsrtombs: New file.
3645 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
3648 2008-12-21 Bruno Haible <bruno@clisp.org>
3650 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
3651 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
3652 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
3653 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
3655 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
3656 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
3657 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
3658 m4/locale-zh.m4, m4/codeset.m4.
3659 * doc/posix-functions/wcrtomb.texi: Document the bug.
3661 2008-12-21 Bruno Haible <bruno@clisp.org>
3663 Work around a btowc() bug on IRIX 6.5.
3664 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
3665 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
3666 REPLACE_WTOBC if not.
3667 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
3668 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
3669 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
3671 2008-12-21 Bruno Haible <bruno@clisp.org>
3673 * modules/wcrtomb-tests: New file.
3674 * tests/test-wcrtomb.sh: New file.
3675 * tests/test-wcrtomb.c: New file.
3677 New module 'wcrtomb'.
3678 * lib/wchar.in.h (wcrtomb): New declaration.
3679 * lib/wcrtomb.c: New file.
3680 * m4/wcrtomb.m4: New file.
3681 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
3683 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
3685 * modules/wcrtomb: New file.
3686 * doc/posix-functions/wcrtomb.texi: Mention the new module.
3688 2008-12-21 Bruno Haible <bruno@clisp.org>
3690 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
3691 * modules/mbsrtowcs (Files): Likewise.
3692 * modules/wctob (Files): Likewise.
3693 * modules/c-strcase-tests (Files): Likewise.
3694 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
3695 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
3696 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
3697 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
3698 * modules/vasnprintf-posix-tests (Files): Likewise.
3700 2008-12-21 William Pursell <bill.pursell@gmail.com>
3702 gitlog-to-changelog: pass all command-line arguments to git-log
3703 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
3704 it is sometimes convenient to filter the commits in various ways.
3705 gitlog-to-changelog only allows --since to specify a start date,
3706 but git-log itself supports many other filtering mechanisms.
3707 At the moment, I want to filter by branch name. Rather than
3708 adding a --branch option to gitlog-to-changelog, it seems more
3709 flexible to simply pass all options directly to git-log and let
3710 git do the work. Notice that this effectively makes --since a
3711 redundant option for gitlog-to-changelog, but removing it would
3712 require current usage to change since calls would then require
3715 2008-12-21 Bruno Haible <bruno@clisp.org>
3717 * modules/mbsnrtowcs-tests: New file.
3718 * tests/test-mbsnrtowcs1.sh: New file.
3719 * tests/test-mbsnrtowcs2.sh: New file.
3720 * tests/test-mbsnrtowcs3.sh: New file.
3721 * tests/test-mbsnrtowcs4.sh: New file.
3722 * tests/test-mbsnrtowcs.c: New file.
3724 New module 'mbsnrtowcs'.
3725 * lib/wchar.in.h (mbsnrtowcs): New declaration.
3726 * lib/mbsnrtowcs.c: New file.
3727 * lib/mbsrtowcs-state.c: New file.
3728 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
3729 (internal_state): Remove variable.
3730 * m4/mbsnrtowcs.m4: New file.
3731 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
3733 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
3734 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
3735 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
3736 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
3737 * modules/mbsnrtowcs: New file.
3738 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
3739 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
3740 portability problem.
3742 2008-12-21 Bruno Haible <bruno@clisp.org>
3744 Work around mbsrtowcs bug.
3745 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
3746 (gl_FUNC_MBSRTOWCS): Invoke it.
3747 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
3749 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
3751 2008-12-21 Bruno Haible <bruno@clisp.org>
3753 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
3755 2008-12-21 Bruno Haible <bruno@clisp.org>
3758 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
3759 16-bit wchar_t type.
3760 * doc/posix-functions/btowc.texi: Likewise.
3761 * doc/posix-functions/fgetwc.texi: Likewise.
3762 * doc/posix-functions/fgetws.texi: Likewise.
3763 * doc/posix-functions/fputwc.texi: Likewise.
3764 * doc/posix-functions/fputws.texi: Likewise.
3765 * doc/posix-functions/fwide.texi: Likewise.
3766 * doc/posix-functions/fwprintf.texi: Likewise.
3767 * doc/posix-functions/fwscanf.texi: Likewise.
3768 * doc/posix-functions/getwchar.texi: Likewise.
3769 * doc/posix-functions/getwc.texi: Likewise.
3770 * doc/posix-functions/iswalnum.texi: Likewise.
3771 * doc/posix-functions/iswalpha.texi: Likewise.
3772 * doc/posix-functions/iswblank.texi: Likewise.
3773 * doc/posix-functions/iswcntrl.texi: Likewise.
3774 * doc/posix-functions/iswctype.texi: Likewise.
3775 * doc/posix-functions/iswdigit.texi: Likewise.
3776 * doc/posix-functions/iswgraph.texi: Likewise.
3777 * doc/posix-functions/iswlower.texi: Likewise.
3778 * doc/posix-functions/iswprint.texi: Likewise.
3779 * doc/posix-functions/iswpunct.texi: Likewise.
3780 * doc/posix-functions/iswspace.texi: Likewise.
3781 * doc/posix-functions/iswupper.texi: Likewise.
3782 * doc/posix-functions/iswxdigit.texi: Likewise.
3783 * doc/posix-functions/mbrtowc.texi: Likewise.
3784 * doc/posix-functions/mbsrtowcs.texi: Likewise.
3785 * doc/posix-functions/mbstowcs.texi: Likewise.
3786 * doc/posix-functions/mbtowc.texi: Likewise.
3787 * doc/posix-functions/putwchar.texi: Likewise.
3788 * doc/posix-functions/putwc.texi: Likewise.
3789 * doc/posix-functions/swprintf.texi: Likewise.
3790 * doc/posix-functions/tolower.texi: Likewise.
3791 * doc/posix-functions/toupper.texi: Likewise.
3792 * doc/posix-functions/towctrans.texi: Likewise.
3793 * doc/posix-functions/ungetwc.texi: Likewise.
3794 * doc/posix-functions/vswprintf.texi: Likewise.
3795 * doc/posix-functions/wcrtomb.texi: Likewise.
3796 * doc/posix-functions/wcscat.texi: Likewise.
3797 * doc/posix-functions/wcschr.texi: Likewise.
3798 * doc/posix-functions/wcscmp.texi: Likewise.
3799 * doc/posix-functions/wcscoll.texi: Likewise.
3800 * doc/posix-functions/wcscpy.texi: Likewise.
3801 * doc/posix-functions/wcscspn.texi: Likewise.
3802 * doc/posix-functions/wcsftime.texi: Likewise.
3803 * doc/posix-functions/wcslen.texi: Likewise.
3804 * doc/posix-functions/wcsncat.texi: Likewise.
3805 * doc/posix-functions/wcsncmp.texi: Likewise.
3806 * doc/posix-functions/wcsncpy.texi: Likewise.
3807 * doc/posix-functions/wcspbrk.texi: Likewise.
3808 * doc/posix-functions/wcsrchr.texi: Likewise.
3809 * doc/posix-functions/wcsrtombs.texi: Likewise.
3810 * doc/posix-functions/wcsspn.texi: Likewise.
3811 * doc/posix-functions/wcsstr.texi: Likewise.
3812 * doc/posix-functions/wcstod.texi: Likewise.
3813 * doc/posix-functions/wcstof.texi: Likewise.
3814 * doc/posix-functions/wcstoimax.texi: Likewise.
3815 * doc/posix-functions/wcstok.texi: Likewise.
3816 * doc/posix-functions/wcstold.texi: Likewise.
3817 * doc/posix-functions/wcstoll.texi: Likewise.
3818 * doc/posix-functions/wcstol.texi: Likewise.
3819 * doc/posix-functions/wcstombs.texi: Likewise.
3820 * doc/posix-functions/wcstoull.texi: Likewise.
3821 * doc/posix-functions/wcstoul.texi: Likewise.
3822 * doc/posix-functions/wcstoumax.texi: Likewise.
3823 * doc/posix-functions/wcswidth.texi: Likewise.
3824 * doc/posix-functions/wcsxfrm.texi: Likewise.
3825 * doc/posix-functions/wctob.texi: Likewise.
3826 * doc/posix-functions/wctomb.texi: Likewise.
3827 * doc/posix-functions/wctrans.texi: Likewise.
3828 * doc/posix-functions/wctype.texi: Likewise.
3829 * doc/posix-functions/wcwidth.texi: Likewise.
3830 * doc/posix-functions/wmemchr.texi: Likewise.
3831 * doc/posix-functions/wmemcmp.texi: Likewise.
3832 * doc/posix-functions/wmemcpy.texi: Likewise.
3833 * doc/posix-functions/wmemmove.texi: Likewise.
3834 * doc/posix-functions/wmemset.texi: Likewise.
3835 * doc/posix-functions/wprintf.texi: Likewise.
3836 * doc/posix-functions/wscanf.texi: Likewise.
3838 2008-12-21 Bruno Haible <bruno@clisp.org>
3840 Update doc for HP-UX 11.11.
3841 * doc/posix-functions/btowc.texi: Clarify that the function is missing
3842 in HP-UX version 11.00, not in all versions of HP-UX 11.
3843 * doc/posix-functions/fwide.texi: Likewise.
3844 * doc/posix-functions/fwprintf.texi: Likewise.
3845 * doc/posix-functions/fwscanf.texi: Likewise.
3846 * doc/posix-functions/inet_ntop.texi: Likewise.
3847 * doc/posix-functions/inet_pton.texi: Likewise.
3848 * doc/posix-functions/mbrlen.texi: Likewise.
3849 * doc/posix-functions/mbrtowc.texi: Likewise.
3850 * doc/posix-functions/mbsinit.texi: Likewise.
3851 * doc/posix-functions/mbsrtowcs.texi: Likewise.
3852 * doc/posix-functions/swprintf.texi: Likewise.
3853 * doc/posix-functions/swscanf.texi: Likewise.
3854 * doc/posix-functions/towctrans.texi: Likewise.
3855 * doc/posix-functions/vfwprintf.texi: Likewise.
3856 * doc/posix-functions/vswprintf.texi: Likewise.
3857 * doc/posix-functions/vwprintf.texi: Likewise.
3858 * doc/posix-functions/wcrtomb.texi: Likewise.
3859 * doc/posix-functions/wcsrtombs.texi: Likewise.
3860 * doc/posix-functions/wcsstr.texi: Likewise.
3861 * doc/posix-functions/wctob.texi: Likewise.
3862 * doc/posix-functions/wctrans.texi: Likewise.
3863 * doc/posix-functions/wmemchr.texi: Likewise.
3864 * doc/posix-functions/wmemcmp.texi: Likewise.
3865 * doc/posix-functions/wmemcpy.texi: Likewise.
3866 * doc/posix-functions/wmemmove.texi: Likewise.
3867 * doc/posix-functions/wmemset.texi: Likewise.
3868 * doc/posix-functions/wprintf.texi: Likewise.
3869 * doc/posix-functions/wscanf.texi: Likewise.
3871 2008-12-21 Bruno Haible <bruno@clisp.org>
3873 Work around a portability problem.
3874 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
3875 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
3877 2008-12-20 Bruno Haible <bruno@clisp.org>
3879 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
3880 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
3881 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
3882 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
3883 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
3885 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
3886 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
3888 (GNULIB_defined_mbstate_t): New macro.
3889 (mbsinit): Redefine if REPLACE_MBSINIT is set.
3890 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
3891 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
3892 reuses the system's mbrtowc function but works around the bugs.
3893 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
3894 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
3896 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
3897 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
3898 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
3899 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
3900 REPLACE_MBSINIT if mbsinit needs to be overridden.
3901 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
3902 REPLACE_MBSINIT, REPLACE_MBRTOWC.
3903 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
3904 REPLACE_MBSINIT, REPLACE_MBRTOWC.
3905 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
3907 (Depends): Add mbsinit.
3908 * modules/mbsinit (Depends): Add mbrtowc.
3909 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
3911 2008-12-20 Bruno Haible <bruno@clisp.org>
3913 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
3914 so that there are no conversion errors on AIX.
3915 * tests/test-mbsrtowcs.c (main): LIkewise.
3917 2008-12-20 Bruno Haible <bruno@clisp.org>
3919 Work around wctob bug on Solaris <= 9.
3920 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
3921 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
3922 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
3923 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
3924 * modules/wctob (Files): Add m4/locale-fr.m4.
3925 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
3927 2008-12-20 Bruno Haible <bruno@clisp.org>
3929 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
3931 * tests/test-select-in.sh: Likewise.
3932 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3934 2008-12-20 Bruno Haible <bruno@clisp.org>
3936 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
3937 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
3940 2008-12-20 Bruno Haible <bruno@clisp.org>
3942 Ensure mbstate_t is defined on HP-UX 11.11.
3943 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
3944 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
3945 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
3946 AC_USE_SYSTEM_EXTENSIONS.
3947 * modules/fnmatch (Depends-on): Add extensions.
3948 * modules/mbrlen (Depends-on): Likewise.
3949 * modules/mbrtowc (Depends-on): Likewise.
3950 * modules/mbsinit (Depends-on): Likewise.
3951 * modules/mbsrtowcs (Depends-on): Likewise.
3952 * modules/mbswidth (Depends-on): Likewise.
3953 * modules/quotearg (Depends-on): Likewise.
3954 * modules/strftime (Depends-on): Likewise.
3956 2008-12-20 Bruno Haible <bruno@clisp.org>
3958 Ensure wctob is declared on IRIX 6.5.
3959 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
3960 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
3961 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
3962 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
3964 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
3966 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
3968 2008-12-19 Bruno Haible <bruno@clisp.org>
3970 * modules/mbsrtowcs-tests: New file.
3971 * tests/test-mbsrtowcs1.sh: New file.
3972 * tests/test-mbsrtowcs2.sh: New file.
3973 * tests/test-mbsrtowcs3.sh: New file.
3974 * tests/test-mbsrtowcs4.sh: New file.
3975 * tests/test-mbsrtowcs.c: New file.
3977 New module 'mbsrtowcs'.
3978 * lib/wchar.in.h (mbsrtowcs): New declaration.
3979 * lib/mbsrtowcs.c: New file.
3980 * m4/mbsrtowcs.m4: New file.
3981 * modules/mbsrtowcs: New file.
3982 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
3984 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
3986 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
3988 2008-12-19 Bruno Haible <bruno@clisp.org>
3990 New module 'mbrlen'.
3991 * lib/wchar.in.h (mbrlen): New declaration.
3992 * lib/mbrlen.c: New file.
3993 * m4/mbrlen.m4: New file.
3994 * modules/mbrlen: New file.
3995 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
3997 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
3999 * doc/posix-functions/mbrlen.texi: Document the new module.
4001 2008-12-19 Bruno Haible <bruno@clisp.org>
4003 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
4004 * modules/mbrtowc (Depends-on): Add verify.
4005 Suggested by Paul Eggert.
4007 2008-12-18 Bruno Haible <bruno@clisp.org>
4009 * modules/mbsinit-tests: New file.
4010 * tests/test-mbsinit.sh: New file.
4011 * tests/test-mbsinit.c: New file.
4013 2008-12-18 Bruno Haible <bruno@clisp.org>
4015 * modules/mbrtowc-tests: New file.
4016 * tests/test-mbrtowc1.sh: New file.
4017 * tests/test-mbrtowc2.sh: New file.
4018 * tests/test-mbrtowc3.sh: New file.
4019 * tests/test-mbrtowc4.sh: New file.
4020 * tests/test-mbrtowc.c: New file.
4022 New module 'mbrtowc'.
4023 * lib/wchar.in.h (mbstate_t): Override when the system does not have
4024 mbsinit and mbrtowc.
4025 (mbrtowc): New declaration.
4026 * lib/mbrtowc.c: New file.
4027 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
4028 * modules/mbrtowc: New file.
4029 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
4031 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
4033 * doc/posix-functions/mbrtowc.texi: Document the new module.
4035 2008-12-18 Bruno Haible <bruno@clisp.org>
4038 * lib/wchar.in.h (wctob): New declaration.
4039 * lib/wctob.c: New file.
4040 * m4/wctob.m4: New file.
4041 * modules/wctob: New file.
4042 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
4044 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
4045 * doc/posix-functions/wctob.texi: Document the new module.
4047 2008-12-18 Bruno Haible <bruno@clisp.org>
4049 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
4050 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
4052 2008-12-18 Simon Josefsson <simon@josefsson.org>
4054 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
4055 G. Christensen" <tgc@jupiterrise.com>.
4057 * lib/flock.c: Need to include errno.h. Reported by "Tom
4058 G. Christensen" <tgc@jupiterrise.com>.
4060 * lib/flock.c: Need to include string.h. Reported by "Tom
4061 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
4064 2008-12-18 Bruno Haible <bruno@clisp.org>
4066 * m4/locale-ja.m4: New file, from GNU gettext.
4068 2008-12-17 Bruno Haible <bruno@clisp.org>
4070 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
4071 Suggested by Eric Blake.
4073 2008-12-17 Bruno Haible <bruno@clisp.org>
4075 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
4077 2008-12-17 Bruno Haible <bruno@clisp.org>
4079 * lib/mbsinit.c: Include verify.h. Verify an assumption.
4080 * modules/mbsinit (Depends-on): Add verify.
4081 Suggested by Paul Eggert.
4083 2008-12-17 Bruno Haible <bruno@clisp.org>
4085 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
4086 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
4088 * m4/mbiter.m4 (gl_MBITER): LIkewise.
4089 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
4090 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
4091 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
4092 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
4093 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
4094 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
4095 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
4096 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
4097 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
4098 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
4099 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
4100 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
4101 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
4102 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
4103 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
4104 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
4105 * modules/trim (configure.ac): Likewise.
4107 2008-12-17 Bruno Haible <bruno@clisp.org>
4109 * modules/btowc-tests: New file.
4110 * tests/test-btowc1.sh: New file.
4111 * tests/test-btowc2.sh: New file.
4112 * tests/test-btowc.c: New file.
4115 * lib/wchar.in.h (btowc): New declaration.
4116 * lib/btowc.c: New file.
4117 * m4/btowc.m4: New file.
4118 * modules/btowc: New file.
4119 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
4121 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
4122 * doc/posix-functions/btowc.texi: Document the new module.
4124 2008-12-17 Bruno Haible <bruno@clisp.org>
4126 New module 'mbsinit'.
4127 * lib/wchar.in.h (mbsinit): New declaration.
4128 * lib/mbsinit.c: New file.
4129 * m4/mbsinit.m4: New file.
4130 * modules/mbsinit: New file.
4131 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
4133 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
4135 * doc/posix-functions/mbsinit.texi: Document the new module.
4137 2008-12-16 Bruno Haible <bruno@clisp.org>
4139 * lib/unistd.in.h: Add comment.
4140 * tests/test-environ.c: Don't include <stdlib.h>.
4142 2008-12-16 Bruno Haible <bruno@clisp.org>
4144 * lib/parse-duration.h (parse_duration): Document return value
4146 * lib/parse-duration.c: Include specification header first. Add
4149 (parse_year_month_day, parse_hour_minute_second): Move side effects
4150 outside of strchr call.
4151 (parse_non_iso8601): Move side effects outside of isspace call.
4152 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
4155 2008-12-16 Bruno Haible <bruno@clisp.org>
4157 * tests/test-parse-duration.sh: Produce no output when the test
4160 2008-12-16 Bruno Haible <bruno@clisp.org>
4162 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
4165 2008-12-15 Bruno Haible <bruno@clisp.org>
4167 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
4168 * doc/glibc-functions/flistxattr.texi: Likewise.
4169 * doc/glibc-functions/fopencookie.texi: Likewise.
4170 * doc/glibc-functions/fremovexattr.texi: Likewise.
4171 * doc/glibc-functions/fsetxattr.texi: Likewise.
4172 * doc/glibc-functions/getxattr.texi: Likewise.
4173 * doc/glibc-functions/lgetxattr.texi: Likewise.
4174 * doc/glibc-functions/listxattr.texi: Likewise.
4175 * doc/glibc-functions/llistxattr.texi: Likewise.
4176 * doc/glibc-functions/lremovexattr.texi: Likewise.
4177 * doc/glibc-functions/lsetxattr.texi: Likewise.
4178 * doc/glibc-functions/removexattr.texi: Likewise.
4179 * doc/glibc-functions/setxattr.texi: Likewise.
4180 * doc/posix-functions/open_memstream.texi: Likewise.
4182 2008-12-15 Eric Blake <ebb9@byu.net>
4184 Update doc for cygwin 1.7.
4185 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
4187 * doc/posix-functions/fchmodat.texi: Likewise.
4188 * doc/posix-functions/fchownat.texi: Likewise.
4189 * doc/posix-functions/fdopendir.texi: Likewise.
4190 * doc/posix-functions/fmemopen.texi: Likewise.
4191 * doc/posix-functions/freeaddrinfo.texi: Likewise.
4192 * doc/posix-functions/fstatat.texi: Likewise.
4193 * doc/posix-functions/futimens.texi: Likewise.
4194 * doc/posix-functions/gai_strerror.texi: Likewise.
4195 * doc/posix-functions/getaddrinfo.texi: Likewise.
4196 * doc/posix-functions/getnameinfo.texi: Likewise.
4197 * doc/posix-functions/if_freenameindex.texi: Likewise.
4198 * doc/posix-functions/if_indextoname.texi: Likewise.
4199 * doc/posix-functions/if_nameindex.texi: Likewise.
4200 * doc/posix-functions/if_nametoindex.texi: Likewise.
4201 * doc/posix-functions/insque.texi: Likewise.
4202 * doc/posix-functions/linkat.texi: Likewise.
4203 * doc/posix-functions/llrint.texi: Likewise.
4204 * doc/posix-functions/llrintf.texi: Likewise.
4205 * doc/posix-functions/llrintl.texi: Likewise.
4206 * doc/posix-functions/lockf.texi: Likewise.
4207 * doc/posix-functions/lrintl.texi: Likewise.
4208 * doc/posix-functions/mkdirat.texi: Likewise.
4209 * doc/posix-functions/mkfifoat.texi: Likewise.
4210 * doc/posix-functions/mknodat.texi: Likewise.
4211 * doc/posix-functions/mq_close.texi: Likewise.
4212 * doc/posix-functions/mq_getattr.texi: Likewise.
4213 * doc/posix-functions/mq_notify.texi: Likewise.
4214 * doc/posix-functions/mq_open.texi: Likewise.
4215 * doc/posix-functions/mq_receive.texi: Likewise.
4216 * doc/posix-functions/mq_send.texi: Likewise.
4217 * doc/posix-functions/mq_setattr.texi: Likewise.
4218 * doc/posix-functions/mq_timedreceive.texi: Likewise.
4219 * doc/posix-functions/mq_timedsend.texi: Likewise.
4220 * doc/posix-functions/mq_unlink.texi: Likewise.
4221 * doc/posix-functions/open_memstream.texi: Likewise.
4222 * doc/posix-functions/openat.texi: Likewise.
4223 * doc/posix-functions/posix_fadvise.texi: Likewise.
4224 * doc/posix-functions/posix_fallocate.texi: Likewise.
4225 * doc/posix-functions/posix_madvise.texi: Likewise.
4226 * doc/posix-functions/posix_memalign.texi: Likewise.
4227 * doc/posix-functions/posix_openpt.texi: Likewise.
4228 * doc/posix-functions/readlinkat.texi: Likewise.
4229 * doc/posix-functions/remque.texi: Likewise.
4230 * doc/posix-functions/renameat.texi: Likewise.
4231 * doc/posix-functions/rintl.texi: Likewise.
4232 * doc/posix-functions/sem_unlink.texi: Likewise.
4233 * doc/posix-functions/shm_open.texi: Likewise.
4234 * doc/posix-functions/shm_unlink.texi: Likewise.
4235 * doc/posix-functions/signgam.texi: Likewise.
4236 * doc/posix-functions/sigset.texi: Likewise.
4237 * doc/posix-functions/stpcpy.texi: Likewise.
4238 * doc/posix-functions/stpncpy.texi: Likewise.
4239 * doc/posix-functions/strerror.texi: Likewise.
4240 * doc/posix-functions/strtod.texi: Likewise.
4241 * doc/posix-functions/symlinkat.texi: Likewise.
4242 * doc/posix-functions/unlinkat.texi: Likewise.
4243 * doc/posix-functions/utimensat.texi: Likewise.
4244 * doc/glibc-functions/bindresvport.texi: Likewise.
4245 * doc/glibc-functions/dn_expand.texi: Likewise.
4246 * doc/glibc-functions/exp10.texi: Likewise.
4247 * doc/glibc-functions/exp10f.texi: Likewise.
4248 * doc/glibc-functions/fgetxattr.texi: Likewise.
4249 * doc/glibc-functions/flistxattr.texi: Likewise.
4250 * doc/glibc-functions/fopencookie.texi: Likewise.
4251 * doc/glibc-functions/freeifaddrs.texi: Likewise.
4252 * doc/glibc-functions/fremovexattr.texi: Likewise.
4253 * doc/glibc-functions/fsetxattr.texi: Likewise.
4254 * doc/glibc-functions/getifaddrs.texi: Likewise.
4255 * doc/glibc-functions/getxattr.texi: Likewise.
4256 * doc/glibc-functions/lgetxattr.texi: Likewise.
4257 * doc/glibc-functions/listxattr.texi: Likewise.
4258 * doc/glibc-functions/llistxattr.texi: Likewise.
4259 * doc/glibc-functions/lremovexattr.texi: Likewise.
4260 * doc/glibc-functions/lsetxattr.texi: Likewise.
4261 * doc/glibc-functions/pow10.texi: Likewise.
4262 * doc/glibc-functions/pow10f.texi: Likewise.
4263 * doc/glibc-functions/rcmd_af.texi: Likewise.
4264 * doc/glibc-functions/removexattr.texi: Likewise.
4265 * doc/glibc-functions/res_init.texi: Likewise.
4266 * doc/glibc-functions/res_mkquery.texi: Likewise.
4267 * doc/glibc-functions/res_query.texi: Likewise.
4268 * doc/glibc-functions/res_querydomain.texi: Likewise.
4269 * doc/glibc-functions/res_send.texi: Likewise.
4270 * doc/glibc-functions/rresvport_af.texi: Likewise.
4271 * doc/glibc-functions/setxattr.texi: Likewise.
4272 * doc/glibc-functions/strcasestr.texi: Likewise.
4274 2008-12-15 Bruno Haible <bruno@clisp.org>
4276 Fix compilation error on OSF/1 4.0.
4277 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
4278 <sys/time.h>, simply delegate to the system header.
4279 Reported by Daniel Richard G. <oss@teragram.com>.
4281 2008-12-15 Bruno Haible <bruno@clisp.org>
4283 * doc/posix-functions/openat.texi: Mention the 'openat' module.
4284 * doc/posix-functions/fchmodat.texi: Likewise.
4285 * doc/posix-functions/fchownat.texi: Likewise.
4286 * doc/posix-functions/fdopendir.texi: Likewise.
4287 * doc/posix-functions/fstatat.texi: Likewise.
4288 * doc/posix-functions/mkdirat.texi: Likewise.
4289 * doc/posix-functions/unlinkat.texi: Likewise.
4291 2008-12-14 Bruno Haible <bruno@clisp.org>
4293 Update doc for POSIX:2008.
4294 * doc/posix-functions/faccessat.texi: New file.
4295 * doc/posix-functions/fchmodat.texi: New file.
4296 * doc/posix-functions/fchownat.texi: New file.
4297 * doc/posix-functions/fdopendir.texi: New file.
4298 * doc/posix-functions/fstatat.texi: New file.
4299 * doc/posix-functions/futimens.texi: New file.
4300 * doc/posix-functions/linkat.texi: New file.
4301 * doc/posix-functions/mkdirat.texi: New file.
4302 * doc/posix-functions/mkfifoat.texi: New file.
4303 * doc/posix-functions/mknodat.texi: New file.
4304 * doc/posix-functions/open_wmemstream.texi: New file.
4305 * doc/posix-functions/openat.texi: New file.
4306 * doc/posix-functions/psiginfo.texi: New file.
4307 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
4308 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
4309 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
4310 * doc/posix-functions/readlinkat.texi: New file.
4311 * doc/posix-functions/renameat.texi: New file.
4312 * doc/posix-functions/strerror_l.texi: New file.
4313 * doc/posix-functions/symlinkat.texi: New file.
4314 * doc/posix-functions/unlinkat.texi: New file.
4315 * doc/posix-functions/utimensat.texi: New file.
4316 * doc/gnulib.texi (Function Substitutes): Add these subsections.
4318 2008-12-14 Bruno Haible <bruno@clisp.org>
4320 Update doc for POSIX:2008.
4321 * doc/posix-functions/alphasort.texi: Renamed from
4322 doc/glibc-functions/alphasort.texi.
4323 * doc/posix-functions/dirfd.texi: Renamed from
4324 doc/glibc-functions/dirfd.texi.
4325 * doc/posix-functions/dprintf.texi: Renamed from
4326 doc/glibc-functions/dprintf.texi.
4327 * doc/posix-functions/duplocale.texi: Renamed from
4328 doc/glibc-functions/duplocale.texi.
4329 * doc/posix-functions/fexecve.texi: Renamed from
4330 doc/glibc-functions/fexecve.texi.
4331 * doc/posix-functions/fmemopen.texi: Renamed from
4332 doc/glibc-functions/fmemopen.texi.
4333 * doc/posix-functions/freelocale.texi: Renamed from
4334 doc/glibc-functions/freelocale.texi.
4335 * doc/posix-functions/getdate_err.texi: Renamed from
4336 doc/glibc-functions/getdate_err.texi.
4337 * doc/posix-functions/isalnum_l.texi: Renamed from
4338 doc/glibc-functions/isalnum_l.texi.
4339 * doc/posix-functions/isalpha_l.texi: Renamed from
4340 doc/glibc-functions/isalpha_l.texi.
4341 * doc/posix-functions/isblank_l.texi: Renamed from
4342 doc/glibc-functions/isblank_l.texi.
4343 * doc/posix-functions/iscntrl_l.texi: Renamed from
4344 doc/glibc-functions/iscntrl_l.texi.
4345 * doc/posix-functions/isdigit_l.texi: Renamed from
4346 doc/glibc-functions/isdigit_l.texi.
4347 * doc/posix-functions/isgraph_l.texi: Renamed from
4348 doc/glibc-functions/isgraph_l.texi.
4349 * doc/posix-functions/islower_l.texi: Renamed from
4350 doc/glibc-functions/islower_l.texi.
4351 * doc/posix-functions/isprint_l.texi: Renamed from
4352 doc/glibc-functions/isprint_l.texi.
4353 * doc/posix-functions/ispunct_l.texi: Renamed from
4354 doc/glibc-functions/ispunct_l.texi.
4355 * doc/posix-functions/isspace_l.texi: Renamed from
4356 doc/glibc-functions/isspace_l.texi.
4357 * doc/posix-functions/isupper_l.texi: Renamed from
4358 doc/glibc-functions/isupper_l.texi.
4359 * doc/posix-functions/iswalnum_l.texi: Renamed from
4360 doc/glibc-functions/iswalnum_l.texi.
4361 * doc/posix-functions/iswalpha_l.texi: Renamed from
4362 doc/glibc-functions/iswalpha_l.texi.
4363 * doc/posix-functions/iswblank_l.texi: Renamed from
4364 doc/glibc-functions/iswblank_l.texi.
4365 * doc/posix-functions/iswcntrl_l.texi: Renamed from
4366 doc/glibc-functions/iswcntrl_l.texi.
4367 * doc/posix-functions/iswctype_l.texi: Renamed from
4368 doc/glibc-functions/iswctype_l.texi.
4369 * doc/posix-functions/iswdigit_l.texi: Renamed from
4370 doc/glibc-functions/iswdigit_l.texi.
4371 * doc/posix-functions/iswgraph_l.texi: Renamed from
4372 doc/glibc-functions/iswgraph_l.texi.
4373 * doc/posix-functions/iswlower_l.texi: Renamed from
4374 doc/glibc-functions/iswlower_l.texi.
4375 * doc/posix-functions/iswprint_l.texi: Renamed from
4376 doc/glibc-functions/iswprint_l.texi.
4377 * doc/posix-functions/iswpunct_l.texi: Renamed from
4378 doc/glibc-functions/iswpunct_l.texi.
4379 * doc/posix-functions/iswspace_l.texi: Renamed from
4380 doc/glibc-functions/iswspace_l.texi.
4381 * doc/posix-functions/iswupper_l.texi: Renamed from
4382 doc/glibc-functions/iswupper_l.texi.
4383 * doc/posix-functions/iswxdigit_l.texi: Renamed from
4384 doc/glibc-functions/iswxdigit_l.texi.
4385 * doc/posix-functions/isxdigit_l.texi: Renamed from
4386 doc/glibc-functions/isxdigit_l.texi.
4387 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
4388 doc/glibc-functions/mbsnrtowcs.texi.
4389 * doc/posix-functions/mkdtemp.texi: Renamed from
4390 doc/glibc-functions/mkdtemp.texi.
4391 * doc/posix-functions/newlocale.texi: Renamed from
4392 doc/glibc-functions/newlocale.texi.
4393 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
4394 doc/glibc-functions/nl_langinfo_l.texi.
4395 * doc/posix-functions/open_memstream.texi: Renamed from
4396 doc/glibc-functions/open_memstream.texi.
4397 * doc/posix-functions/opterr.texi: Renamed from
4398 doc/glibc-functions/opterr.texi.
4399 * doc/posix-functions/optind.texi: Renamed from
4400 doc/glibc-functions/optind.texi.
4401 * doc/posix-functions/optopt.texi: Renamed from
4402 doc/glibc-functions/optopt.texi.
4403 * doc/posix-functions/psignal.texi: Renamed from
4404 doc/glibc-functions/psignal.texi.
4405 * doc/posix-functions/scandir.texi: Renamed from
4406 doc/glibc-functions/scandir.texi.
4407 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
4408 doc/glibc-functions/sched_get_priority_min.texi.
4409 * doc/posix-functions/signgam.texi: Renamed from
4410 doc/glibc-functions/signgam.texi.
4411 * doc/posix-functions/stpcpy.texi: Renamed from
4412 doc/glibc-functions/stpcpy.texi.
4413 * doc/posix-functions/stpncpy.texi: Renamed from
4414 doc/glibc-functions/stpncpy.texi.
4415 * doc/posix-functions/strcasecmp_l.texi: Renamed from
4416 doc/glibc-functions/strcasecmp_l.texi.
4417 * doc/posix-functions/strcoll_l.texi: Renamed from
4418 doc/glibc-functions/strcoll_l.texi.
4419 * doc/posix-functions/strfmon_l.texi: Renamed from
4420 doc/glibc-functions/strfmon_l.texi.
4421 * doc/posix-functions/strftime_l.texi: Renamed from
4422 doc/glibc-functions/strftime_l.texi.
4423 * doc/posix-functions/strncasecmp_l.texi: Renamed from
4424 doc/glibc-functions/strncasecmp_l.texi.
4425 * doc/posix-functions/strndup.texi: Renamed from
4426 doc/glibc-functions/strndup.texi.
4427 * doc/posix-functions/strnlen.texi: Renamed from
4428 doc/glibc-functions/strnlen.texi.
4429 * doc/posix-functions/strsignal.texi: Renamed from
4430 doc/glibc-functions/strsignal.texi.
4431 * doc/posix-functions/strxfrm_l.texi: Renamed from
4432 doc/glibc-functions/strxfrm_l.texi.
4433 * doc/posix-functions/timer_gettime.texi: Renamed from
4434 doc/glibc-functions/timer_gettime.texi.
4435 * doc/posix-functions/tolower_l.texi: Renamed from
4436 doc/glibc-functions/tolower_l.texi.
4437 * doc/posix-functions/toupper_l.texi: Renamed from
4438 doc/glibc-functions/toupper_l.texi.
4439 * doc/posix-functions/towctrans_l.texi: Renamed from
4440 doc/glibc-functions/towctrans_l.texi.
4441 * doc/posix-functions/towlower_l.texi: Renamed from
4442 doc/glibc-functions/towlower_l.texi.
4443 * doc/posix-functions/towupper_l.texi: Renamed from
4444 doc/glibc-functions/towupper_l.texi.
4445 * doc/posix-functions/uselocale.texi: Renamed from
4446 doc/glibc-functions/uselocale.texi.
4447 * doc/posix-functions/vdprintf.texi: Renamed from
4448 doc/glibc-functions/vdprintf.texi.
4449 * doc/posix-functions/wcpcpy.texi:
4450 Renamed from doc/glibc-functions/wcpcpy.texi.
4451 * doc/posix-functions/wcpncpy.texi: Renamed from
4452 doc/glibc-functions/wcpncpy.texi.
4453 * doc/posix-functions/wcscasecmp.texi: Renamed from
4454 doc/glibc-functions/wcscasecmp.texi.
4455 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
4456 doc/glibc-functions/wcscasecmp_l.texi.
4457 * doc/posix-functions/wcscoll_l.texi: Renamed from
4458 doc/glibc-functions/wcscoll_l.texi.
4459 * doc/posix-functions/wcsdup.texi: Renamed from
4460 doc/glibc-functions/wcsdup.texi.
4461 * doc/posix-functions/wcsncasecmp.texi: Renamed from
4462 doc/glibc-functions/wcsncasecmp.texi.
4463 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
4464 doc/glibc-functions/wcsncasecmp_l.texi.
4465 * doc/posix-functions/wcsnlen.texi: Renamed from
4466 doc/glibc-functions/wcsnlen.texi.
4467 * doc/posix-functions/wcsnrtombs.texi: Renamed from
4468 doc/glibc-functions/wcsnrtombs.texi.
4469 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
4470 doc/glibc-functions/wcsxfrm_l.texi.
4471 * doc/posix-functions/wctrans_l.texi: Renamed from
4472 doc/glibc-functions/wctrans_l.texi.
4473 * doc/posix-functions/wctype_l.texi: Renamed from
4474 doc/glibc-functions/wctype_l.texi.
4475 * doc/gnulib.texi (Function Substitutes): Add these subsections.
4476 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
4477 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
4478 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
4480 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
4483 2008-12-14 Bruno Haible <bruno@clisp.org>
4485 Update doc for POSIX:2008.
4486 * doc/posix-functions/*.texi: Update URL of POSIX specification.
4488 2008-12-14 Bruno Haible <bruno@clisp.org>
4490 Update doc for POSIX:2008.
4491 * doc/pastposix-functions/bcmp.texi: Renamed from
4492 doc/posix-functions/bcmp.texi.
4493 * doc/pastposix-functions/bcopy.texi: Renamed from
4494 doc/posix-functions/bcopy.texi.
4495 * doc/pastposix-functions/bsd_signal.texi: Renamed from
4496 doc/posix-functions/bsd_signal.texi.
4497 * doc/pastposix-functions/bzero.texi: Renamed from
4498 doc/posix-functions/bzero.texi.
4499 * doc/pastposix-functions/ecvt.texi: Renamed from
4500 doc/posix-functions/ecvt.texi.
4501 * doc/pastposix-functions/fcvt.texi: Renamed from
4502 doc/posix-functions/fcvt.texi.
4503 * doc/pastposix-functions/ftime.texi: Renamed from
4504 doc/posix-functions/ftime.texi.
4505 * doc/pastposix-functions/gcvt.texi: Renamed from
4506 doc/posix-functions/gcvt.texi.
4507 * doc/pastposix-functions/getcontext.texi: Renamed from
4508 doc/posix-functions/getcontext.texi.
4509 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
4510 doc/posix-functions/gethostbyaddr.texi.
4511 * doc/pastposix-functions/gethostbyname.texi: Renamed from
4512 doc/posix-functions/gethostbyname.texi.
4513 * doc/pastposix-functions/getwd.texi: Renamed from
4514 doc/posix-functions/getwd.texi.
4515 * doc/pastposix-functions/h_errno.texi: Renamed from
4516 doc/posix-functions/h_errno.texi.
4517 * doc/pastposix-functions/index.texi: Renamed from
4518 doc/posix-functions/index.texi.
4519 * doc/pastposix-functions/makecontext.texi: Renamed from
4520 doc/posix-functions/makecontext.texi.
4521 * doc/pastposix-functions/mktemp.texi: Renamed from
4522 doc/posix-functions/mktemp.texi.
4523 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
4524 doc/posix-functions/pthread_attr_getstackaddr.texi.
4525 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
4526 doc/posix-functions/pthread_attr_setstackaddr.texi.
4527 * doc/pastposix-functions/rindex.texi: Renamed from
4528 doc/posix-functions/rindex.texi.
4529 * doc/pastposix-functions/scalb.texi: Renamed from
4530 doc/posix-functions/scalb.texi.
4531 * doc/pastposix-functions/setcontext.texi: Renamed from
4532 doc/posix-functions/setcontext.texi.
4533 * doc/pastposix-functions/swapcontext.texi: Renamed from
4534 doc/posix-functions/swapcontext.texi.
4535 * doc/pastposix-functions/ualarm.texi: Renamed from
4536 doc/posix-functions/ualarm.texi.
4537 * doc/pastposix-functions/usleep.texi: Renamed from
4538 doc/posix-functions/usleep.texi.
4539 * doc/pastposix-functions/vfork.texi: Renamed from
4540 doc/posix-functions/vfork.texi.
4541 * doc/pastposix-functions/wcswcs.texi: Renamed from
4542 doc/posix-functions/wcswcs.texi.
4543 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
4544 (Function Substitutes): Update.
4546 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4548 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
4551 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4552 Bruno Haible <bruno@clisp.org>
4554 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
4556 2008-12-13 Bruno Haible <bruno@clisp.org>
4558 * modules/strtoull (Depends-on): Remove unistd.
4560 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4562 * modules/strtoull (Depends-on): Add stdlib.
4564 2008-12-11 Simon Josefsson <simon@josefsson.org>
4566 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
4568 2008-12-10 Jim Meyering <meyering@redhat.com>
4570 gl_ASSERT: don't say assertions are disabled when they're not
4571 * m4/assert.m4 (gl_ASSERT): Do not make configure report
4572 "checking whether to enable assertions... no", when they are in
4573 fact enabled. This is solely a bug in the output of configure.
4574 In spite of saying "no", NDEBUG was not defined in that case.
4575 Also, as noted by Eric Blake, leave assertions enabled upon
4576 --enable-assert=INVALID.
4578 2008-12-10 Bruno Haible <bruno@clisp.org>
4580 Change MODULES.html to refer to POSIX:2008 where possible.
4581 * MODULES.html.sh (POSIX2008_URL): New variable.
4582 (posix_headers): Remove sys/timeb, ucontext.
4583 (posix2001_headers): New variable.
4584 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
4585 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
4586 index, makecontext, mktemp, pthread_attr_getstackaddr,
4587 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
4588 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
4589 (posix2001_functions): New variable.
4590 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
4593 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4595 add missing include to parse-duration.c
4596 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
4597 * modules/parse-duration (Depends-on): Add xalloc.
4599 fix sed script reading maint.mk
4600 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
4601 (syntax-check-rules): Use it.
4603 2008-12-09 Bruno Haible <bruno@clisp.org>
4605 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
4606 MacOS X 10.4/PowerPC.
4607 Reported by Simon Josefsson.
4609 2008-12-08 Jim Meyering <meyering@redhat.com>
4611 work around mingw's lack of some S_IF definitions
4612 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
4613 Reported by Simon Josefsson.
4615 2008-12-08 Bruno Haible <bruno@clisp.org>
4617 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
4618 applied to variables. Needed on MacOS X 10.4/PowerPC.
4619 Reported by Simon Josefsson.
4621 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
4622 and Eric Blake <ebb9@byu.net>
4624 assert: honor --enable-assert
4625 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
4626 order to honor --enable-assert, rather than treating it as a
4627 synonym for --disable-assert.
4629 2008-12-08 Jim Meyering <meyering@redhat.com>
4631 * lib/posixtm.c: Remove now-useless declaration of mktime.
4633 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
4635 2008-12-07 Bruno Haible <bruno@clisp.org>
4637 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
4638 test_once): Mark functions as static.
4639 * tests/test-tls.c (test_tls): Likewise.
4641 2008-12-07 Bruno Haible <bruno@clisp.org>
4643 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
4644 iconv_register_autodetect.
4646 2008-12-07 Jim Meyering <meyering@redhat.com>
4648 posixtm.c: avoid a warning
4649 * lib/posixtm.c (posixtime): Don't initialize tm0.
4650 It's no longer needed to placate gcc4's -Wuninitialized,
4651 and the attempt to placate would elicit a new warning.
4653 unicodeio.c: mark unused parameters
4654 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
4655 (fallback_failure_callback): Likewise.
4657 2008-12-07 Bruno Haible <bruno@clisp.org>
4659 * gnulib-tool (func_create_testdir): When building the tests
4660 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
4661 Reported by Simon Josefsson.
4663 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4665 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
4667 2008-12-06 Bruno Haible <bruno@clisp.org>
4669 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
4670 Suggested by Eric Blake.
4672 2008-12-06 Bruno Haible <bruno@clisp.org>
4674 Fix a c-stack test failure on MacOS X.
4675 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
4676 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
4677 handler for SIGBUS as well.
4678 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
4679 install a signal handler for SIGBUS as well.
4680 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
4682 2008-12-06 Bruno Haible <bruno@clisp.org>
4684 Advocacy documentation.
4685 * doc/gnulib-intro.texi (Benefits): New section.
4686 * doc/gnulib.texi: Update.
4688 2008-12-06 Bruno Haible <bruno@clisp.org>
4690 Document the 'manywarnings' module.
4691 * doc/manywarnings.texi: New file.
4692 * doc/gnulib.texi: Include it.
4694 2008-12-05 Eric Blake <ebb9@byu.net>
4696 tests: silence some gcc warnings
4697 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
4698 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
4701 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4702 Bruno Haible <bruno@clisp.org>
4704 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
4706 2008-11-29 Jim Meyering <meyering@redhat.com>
4708 unicodeio.c: mark unused parameters
4709 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
4710 (fallback_failure_callback): Likewise.
4713 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
4714 (set_stat_type): Return S_IF*-valued "type" directly.
4715 Prompted by James Youngman's spotting a related bug.
4716 Confirmed by further testing through find.
4718 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
4719 * lib/fts.c (D_TYPE): Define.
4720 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
4721 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
4722 (s_ifmt_shift_bits): New function.
4723 (set_stat_type): New function.
4724 (fts_build): When not calling fts_stat, call set_stat_type
4725 to propagate dirent.d_type info to fts_read caller.
4726 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
4727 fts_statp->st_mode type information may be valid.
4729 2008-11-28 Simon Josefsson <simon@josefsson.org>
4731 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
4732 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
4735 2008-11-20 Bruno Haible <bruno@clisp.org>
4737 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
4738 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
4740 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
4741 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
4742 * modules/math (Makefile.am): Substitute
4743 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
4744 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4746 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
4747 Bruno Haible <bruno@clisp.org>
4749 * lib/stdint.in.h: Define all type macros so that their expansion is
4750 a single typedef'ed token. Fixes a compilation failure in Boost which
4751 does "using ::int8_t;".
4753 2008-11-18 Simon Josefsson <simon@josefsson.org>
4755 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
4756 gl_MANYWARN_ALL_GCC.
4757 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
4758 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
4759 * modules/manywarnings: New file.
4760 * MODULES.html.sh: Mention manywarnings module.
4762 2008-11-18 Bruno Haible <bruno@clisp.org>
4764 * doc/gnulib-tool.texi (Unit tests): New section.
4766 2008-11-18 Simon Josefsson <simon@josefsson.org>
4768 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
4769 paths like 'lib/po/foo.po'.
4771 2008-11-17 Simon Josefsson <simon@josefsson.org>
4773 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
4774 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
4776 2008-11-17 Simon Josefsson <simon@josefsson.org>
4778 * m4/warnings.m4: Use CPPFLAGS to really check whether the
4781 2008-11-17 Simon Josefsson <simon@josefsson.org>
4783 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
4785 2008-11-17 Bruce Korb <bkorb@gnu.org>
4787 * modules/parse-duration-tests: New file.
4788 * tests/test-parse-duration.sh: New file.
4789 * tests/test-parse-duration.c: New file.
4791 New module 'parse-duration'.
4792 * lib/parse-duration.h: New file.
4793 * lib/parse-duration.c: New file.
4794 * modules/parse-duration: New file.
4796 2008-11-17 Bruno Haible <bruno@clisp.org>
4798 * tests/test-select-out.sh: Comment out the first pipe test.
4799 Reported by Simon Josefsson.
4801 2008-11-17 Bruno Haible <bruno@clisp.org>
4803 * modules/getaddrinfo (Depends-on): Add servent, hostent.
4804 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
4807 2008-11-17 Bruno Haible <bruno@clisp.org>
4809 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
4810 -lnetwork and -lnet. Needed for Haiku and BeOS.
4812 2008-11-16 Bruno Haible <bruno@clisp.org>
4814 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
4816 2008-11-16 Bruno Haible <bruno@clisp.org>
4818 Avoid test failure on Haiku.
4819 * tests/test-fsync.c: Include <errno.h>.
4820 (main): Don't require that fsync (0) fails.
4822 2008-11-15 Bruno Haible <bruno@clisp.org>
4824 New module 'hostent'.
4825 * modules/hostent: New file.
4826 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
4828 2008-11-15 Bruno Haible <bruno@clisp.org>
4830 New module 'servent'.
4831 * modules/servent: New file.
4832 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
4834 2008-11-15 Bruno Haible <bruno@clisp.org>
4836 Avoid generating same test program with two different rules.
4837 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
4838 test-frexp to test-frexp-nolibm.
4839 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
4840 test-frexpl to test-frexpl-nolibm.
4842 2008-11-15 Bruno Haible <bruno@clisp.org>
4844 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
4847 2008-11-15 Bruno Haible <bruno@clisp.org>
4849 * lib/netdb.in.h: Activate the definitions also when the system's
4850 <netdb.h> has 'struct addrinfo'.
4851 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
4852 EAI_OVERFLOW or AI_NUMERICSERV.
4853 * doc/posix-headers/netdb.texi: Document the problem.
4855 2008-11-15 Bruno Haible <bruno@clisp.org>
4857 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
4859 Make the 'sched' module work on platforms where <sched.h> exists but
4860 is incomplete (such as Haiku).
4861 * lib/sched.in.h; Include the system's <sched.h> if it exists.
4862 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
4863 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
4864 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
4865 HAVE_STRUCT_SCHED_PARAM.
4866 * modules/sched (Depends-on): Add include_next.
4867 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
4868 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
4869 * doc/posix-headers/sched.texi: Document the issue.
4871 2008-11-13 Jim Meyering <meyering@redhat.com>
4873 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
4874 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
4875 test would fail due to the difference in the Report bugs to ...
4876 line. The expected address is empty, "<>", while the actual
4877 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
4879 2008-11-12 Bruno Haible <bruno@clisp.org>
4881 lstat: don't compile lstat.c on systems lacking lstat
4882 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
4883 which don't have lstat; this is handled by lib/sys_stat.in.h already.
4884 Reported by Daniel P. Berrange via Jim Meyering.
4886 2008-11-12 Jim Meyering <meyering@redhat.com>
4888 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
4890 2008-11-12 Simon Josefsson <simon@josefsson.org>
4892 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
4895 2008-11-12 Bruno Haible <bruno@clisp.org>
4897 * lib/unicodeio.c: Include unistr.h.
4898 (utf8_wctomb): Remove function.
4899 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
4901 2008-11-12 Simon Josefsson <simon@josefsson.org>
4903 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
4904 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
4906 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
4908 2008-11-12 Simon Josefsson <simon@josefsson.org>
4910 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
4911 * doc/gnulib.texi: Add section for warnings.
4913 2008-11-11 Bruno Haible <bruno@clisp.org>
4915 * lib/sockets.h: Add a comment.
4917 2008-11-11 Karl Berry <karl@gnu.org>
4919 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
4921 2008-11-11 Eric Blake <ebb9@byu.net>
4923 fdl.texi: avoid git symlinks
4924 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
4926 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
4928 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
4930 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
4932 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
4933 (gl_WARN_ADD): Substitute $2 if literal.
4935 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
4937 * m4/warning.m4: Remove.
4939 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
4941 * m4/warnings.m4: Almost complete rewrite. :-)
4943 2008-11-10 Simon Josefsson <simon@josefsson.org>
4945 * modules/warnings: New module.
4946 * m4/warnings.m4: New file.
4947 * MODULES.html.sh: Mention warnings module.
4948 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
4949 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4951 2008-11-10 Eric Blake <ebb9@byu.net>
4953 fdl.texi: make a symlink to the latest version
4954 * doc/standards.texi: Revert today's earlier change.
4955 * doc/fdl-1.2.texi: Rename from old fdl.texi...
4956 * doc/fdl.texi: ...and replace this with a symlink to the newer
4959 2008-11-10 Bruno Haible <bruno@clisp.org>
4961 * tests/test-select-fd.c (main): Accept the result file name as fourth
4963 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
4964 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
4966 2008-11-10 Bruno Haible <bruno@clisp.org>
4968 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
4969 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
4970 as autoconf-substituted macros.
4971 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
4972 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
4973 gl_NETDB_H_DEFAULTS. Set these variables.
4974 * modules/netdb (Makefile.am): Substitute these variables.
4976 2008-11-10 Eric Blake <ebb9@byu.net>
4978 standards.texi: include correct file for FDL 1.3
4979 * doc/standards.texi (GNU Free Documentation License): Change
4980 include file to pull in FDL 1.3, not 1.2.
4982 fdl.texi: revert accidental change to license
4983 * doc/fdl.texi: This is FDL 1.2, not 1.3.
4985 2008-11-10 Bruno Haible <bruno@clisp.org>
4987 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
4988 cross-compiling guesses also when the native compile gives no result.
4990 2008-11-10 Bruno Haible <bruno@clisp.org>
4992 * lib/spawni.c (__spawni): Force variable into the stack.
4994 2008-11-10 Bruno Haible <bruno@clisp.org>
4996 Add support for Haiku.
4997 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
4998 glibc and BeOS, but also on Haiku.
4999 * lib/fpurge.c (fpurge): Likewise.
5000 * lib/freadable.c (freadable): Likewise.
5001 * lib/freadahead.c (freadahead): Likewise.
5002 * lib/freading.c (freading): Likewise.
5003 * lib/freadptr.c (freadptr): Likewise.
5004 * lib/freadseek.c (freadptrinc): Likewise.
5005 * lib/fseeko.c (rpl_fseeko): Likewise.
5006 * lib/fseterr.c (fseterr): Likewise.
5007 * lib/fwritable.c (fwritable): Likewise.
5008 * lib/fwriting.c (fwriting): Likewise.
5009 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
5011 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
5013 * lib/config.charset: Treat Haiku like BeOS.
5015 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
5017 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
5018 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
5020 2008-11-08 Bruno Haible <bruno@clisp.org>
5022 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
5025 2008-11-08 Bruno Haible <bruno@clisp.org>
5027 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
5029 2008-11-08 Bruno Haible <bruno@clisp.org>
5031 * tests/test-select-fd.c: New file.
5032 * tests/test-select-in.sh: New file.
5033 * tests/test-select-out.sh: New file.
5034 * tests/test-select-stdin.c: New file.
5035 * modules/select-tests (Files): Add the new files.
5036 (Depends-on): Add gettimeofday.
5037 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
5038 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
5039 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
5041 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
5042 Bruno Haible <bruno@clisp.org>
5044 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
5046 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
5048 * build-aux/pmccabe2html: Added support for C++ source files.
5050 2008-11-05 Ben Pfaff <blp@gnu.org>
5052 Fix lib/close.c build on Windows.
5053 * modules/close (Files): Add lib/w32sock.h.
5055 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
5057 Accept Bison's NEWS format.
5058 * build-aux/announce-gen (print_news_deltas): Tweak
5061 2008-11-04 Bruno Haible <bruno@clisp.org>
5063 * modules/random_r (Maintainer): Add glibc.
5065 2008-11-04 Simon Josefsson <simon@josefsson.org>
5067 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
5068 by karl@freefriends.org (Karl Berry).
5069 * doc/alloca.texi: Likewise.
5070 * doc/c-ctype.texi: Likewise.
5071 * doc/c-strcase.texi: Likewise.
5072 * doc/c-strcaseeq.texi: Likewise.
5073 * doc/c-strcasestr.texi: Likewise.
5074 * doc/c-strstr.texi: Likewise.
5075 * doc/c-strtod.texi: Likewise.
5076 * doc/c-strtold.texi: Likewise.
5077 * doc/ctime.texi: Likewise.
5078 * doc/error.texi: Likewise.
5079 * doc/fdl.texi: Likewise.
5080 * doc/gcd.texi: Likewise.
5081 * doc/getdate.texi: Likewise.
5082 * doc/gnulib-intro.texi: Likewise.
5083 * doc/gnulib-tool.texi: Likewise.
5084 * doc/gnulib.texi: Likewise.
5085 * doc/inet_ntoa.texi: Likewise.
5086 * doc/maintain.texi: Likewise.
5087 * doc/make-stds.texi: Likewise.
5088 * doc/quote.texi: Likewise.
5089 * doc/regexprops-generic.texi: Likewise.
5090 * doc/standards.texi: Likewise.
5091 * doc/verify.texi: Likewise.
5092 * doc/visibility.texi: Likewise.
5093 * doc/gnulib.texi (GNU Free Documentation License): Include
5094 fdl-1.3.texi instead of fdl.texi.
5096 2008-11-04 Simon Josefsson <simon@josefsson.org>
5098 * doc/fdl-1.3.texi: New file, from
5099 <http://www.gnu.org/licenses/fdl-1.3.texi>.
5100 * modules/fdl-1.3: Add.
5101 * MODULES.html.sh: Add fdl-1.3.
5103 2008-11-03 Bruno Haible <bruno@clisp.org>
5105 Make determination of absolute name of header file work with AIX xlc.
5106 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
5107 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
5109 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5110 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
5112 2008-11-03 Simon Josefsson <simon@josefsson.org>
5114 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
5115 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
5118 2008-11-02 Bruno Haible <bruno@clisp.org>
5120 Mark 'strpbrk' obsolete.
5121 * modules/strpbrk (Status, Notice): New sections.
5122 * modules/strtok_r (Depends-on): Add strpbrk.
5124 2008-11-02 Bruno Haible <bruno@clisp.org>
5126 Mark 'strdup' obsolete.
5127 * modules/strdup (Status, Notice): New sections.
5128 * modules/findprog (Depends-on): Add strdup.
5129 * modules/getaddrinfo (Depends-on): Likewise.
5130 * modules/localename (Depends-on): Likewise.
5131 * modules/relocatable-lib (Depends-on): Likewise.
5132 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
5133 * modules/relocatable-prog (Depends-on): Likewise.
5134 * modules/trim (Depends-on): Likewise.
5135 * modules/unictype/gen-ctype (Depends-on): Likewise.
5136 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
5138 2008-11-02 Bruno Haible <bruno@clisp.org>
5140 Mark 'strcspn' obsolete.
5141 * modules/strcspn (Status, Notice): New sections.
5143 2008-11-02 Bruno Haible <bruno@clisp.org>
5145 Mark 'rmdir' obsolete.
5146 * modules/rmdir (Status, Notice): New sections.
5147 * modules/clean-temp (Depends-on): Add rmdir.
5148 * modules/openat (Depends-on): Likewise.
5150 2008-11-02 Bruno Haible <bruno@clisp.org>
5152 Mark 'raise' obsolete.
5153 * modules/raise (Status, Notice): New sections.
5154 (Include): Specify <signal.h>.
5155 * modules/stdio (Depends-on): Add raise.
5156 * modules/write (Depends-on): Likewise.
5158 2008-11-02 Bruno Haible <bruno@clisp.org>
5160 Mark 'memset' obsolete.
5161 * modules/memset (Status, Notice): New sections.
5163 2008-11-02 Bruno Haible <bruno@clisp.org>
5165 Mark 'memmove' obsolete.
5166 * modules/memmove (Status, Notice): New sections.
5167 * modules/argp (Depends-on): Add memmove.
5168 * modules/argz (Depends-on): Likewise.
5169 * modules/canonicalize (Depends-on): Likewise.
5170 * modules/canonicalize-lgpl (Depends-on): Likewise.
5171 * modules/fts (Depends-on): Likewise.
5172 * modules/getcwd (Depends-on): Likewise.
5173 * modules/human (Depends-on): Likewise.
5174 * modules/regex (Depends-on): Likewise.
5175 * modules/striconveh (Depends-on): Likewise.
5176 * modules/trim (Depends-on): Likewise.
5177 * modules/unistr/u8-move (Depends-on): Likewise.
5178 * modules/unistr/u16-move (Depends-on): Likewise.
5179 * modules/unistr/u32-move (Depends-on): Likewise.
5181 2008-11-02 Bruno Haible <bruno@clisp.org>
5183 Mark 'memcpy' obsolete.
5184 * modules/memcpy (Status, Notice): New sections.
5186 2008-11-02 Bruno Haible <bruno@clisp.org>
5188 Mark 'memcmp' obsolete.
5189 * modules/memcmp (Status, Notice): New sections.
5190 * modules/argmatch (Depends-on): Add memchr.
5191 * modules/backupfile (Depends-on): Likewise.
5192 * modules/c-strcasestr (Depends-on): Likewise.
5193 * modules/crypto/des (Depends-on): Likewise.
5194 * modules/csharpcomp (Depends-on): Likewise.
5195 * modules/fnmatch (Depends-on): Likewise.
5196 * modules/git-merge-changelog (Depends-on): Likewise.
5197 * modules/isnand (Depends-on): Likewise.
5198 * modules/isnand-nolibm (Depends-on): Likewise.
5199 * modules/isnanf (Depends-on): Likewise.
5200 * modules/isnanf-nolibm (Depends-on): Likewise.
5201 * modules/isnanl (Depends-on): Likewise.
5202 * modules/isnanl-nolibm (Depends-on): Likewise.
5203 * modules/mbchar (Depends-on): Likewise.
5204 * modules/memcoll (Depends-on): Likewise.
5205 * modules/quotearg (Depends-on): Likewise.
5206 * modules/regex (Depends-on): Likewise.
5207 * modules/relocatable-prog (Depends-on): Likewise.
5208 * modules/same (Depends-on): Likewise.
5209 * modules/signbit (Depends-on): Likewise.
5210 * modules/strcasestr-simple (Depends-on): Likewise.
5211 * modules/unictype/gen-ctype (Depends-on): Likewise.
5212 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
5213 * modules/uniname/uniname (Depends-on): Likewise.
5214 * modules/unistr/u8-cmp (Depends-on): Likewise.
5216 2008-11-02 Bruno Haible <bruno@clisp.org>
5218 Mark 'memchr' obsolete.
5219 * modules/memchr (Status, Notice): New sections.
5220 * modules/argp (Depends-on): Add memchr.
5221 * modules/base64 (Depends-on): Likewise.
5222 * modules/c-strcasestr (Depends-on): Likewise.
5223 * modules/chdir-long (Depends-on): Likewise.
5224 * modules/fnmatch (Depends-on): Likewise.
5225 * modules/getsubopt (Depends-on): Likewise.
5226 * modules/git-merge-changelog (Depends-on): Likewise.
5227 * modules/glob (Depends-on): Likewise.
5228 * modules/strcasestr-simple (Depends-on): Likewise.
5229 * modules/strnlen (Depends-on): Likewise.
5231 2008-11-02 Bruno Haible <bruno@clisp.org>
5233 Mark 'atexit' obsolete.
5234 * modules/atexit (Status, Notice): New sections.
5235 * modules/chdir-long (Depends-on): Add atexit.
5236 * modules/wait-process (Depends-on): Likewise.
5238 2008-11-02 Bruno Haible <bruno@clisp.org>
5240 * gnulib-tool: New option --with-obsolete.
5241 (func_usage): Document it.
5242 (func_modules_transitive_closure): Drop obsolete dependencies if
5243 incobsolete is not true.
5244 (func_import): Read and save the incobsolete variable to the cache.
5246 2008-11-02 Bruno Haible <bruno@clisp.org>
5248 * modules/TEMPLATE-EXTENDED: New field 'Status'.
5249 * gnulib-tool: New option --extract-status.
5250 (func_usage): Document it.
5251 (sed_extract_prog): Recognize it.
5252 (func_get_status): New function.
5254 2008-10-30 Simon Josefsson <simon@josefsson.org>
5256 * modules/sockets (License): Change from LGPL to LGPLv2+.
5258 2008-10-28 Simon Josefsson <simon@josefsson.org>
5260 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
5262 2008-10-28 Simon Josefsson <simon@josefsson.org>
5264 * MODULES.html.sh (Support for systems lacking POSIX:2001):
5265 Mention times and sys_times.
5266 * modules/sys_times, modules/sys_times-tests: New modules.
5267 * modules/times, modules/times-tests: Likewise
5268 * m4/sys_times_h.m4: New file.
5269 * lib/sys_times.in.h: Likewise
5270 * lib/times.c: Likewise.
5271 * tests/test-sys_times.c: Likewise.
5272 * tests/test-times.c: Likewise.
5273 * doc/posix-headers/sys_times.texi: Update.
5274 * doc/posix-functions/times.texi: Update.
5276 2008-10-28 Jim Meyering <meyering@redhat.com>
5278 * modules/tempname (Depends-on): Add lstat.
5280 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
5282 2008-10-28 Simon Josefsson <simon@josefsson.org>
5284 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
5285 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
5286 using idiom used elsewhere in gnulib.
5288 2008-10-27 Jim Meyering <meyering@redhat.com>
5290 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
5292 2008-10-27 Simon Josefsson <simon@josefsson.org>
5294 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
5295 TESTS_ENVIRONMENT, for shell scripts that needs to call built
5297 * tests/test-argp-2.sh: Use $EXEEXT when needed.
5299 2008-10-27 Simon Josefsson <simon@josefsson.org>
5301 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
5303 2008-10-27 Bruno Haible <bruno@clisp.org>
5305 * tests/test-lstat.c: Include <stdio.h>.
5307 2008-10-27 Simon Josefsson <simon@josefsson.org>
5309 * modules/lstat-tests: New module.
5310 * tests/test-lstat.c: New file.
5312 2008-10-26 Jim Meyering <meyering@redhat.com>
5314 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
5316 2008-10-26 Simon Josefsson <simon@josefsson.org>
5317 Bruno Haible <bruno@clisp.org>
5319 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
5320 * modules/configmake (Include): Add a note that the include must come
5321 after all system headers.
5322 * lib/javaversion.c: Include configmake.h after all other includes.
5324 2008-10-26 Bruno Haible <bruno@clisp.org>
5326 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
5327 HAVE_STRUCT_RANDOM_DATA to 1.
5328 (gl_STDLIB_H): Simplify.
5330 2008-10-26 Simon Josefsson <simon@josefsson.org>
5332 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
5333 substitute HAVE_STRUCT_RANDOM_DATA.
5334 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
5336 * modules/stdlib (Makefile.am): Substitute
5337 HAVE_STRUCT_RANDOM_DATA.
5339 2008-10-26 Simon Josefsson <simon@josefsson.org>
5341 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
5342 * doc/gnulib-intro.texi (Copyright): Likewise.
5344 2008-10-26 Simon Josefsson <simon@josefsson.org>
5346 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
5349 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
5350 Bruno Haible <bruno@clisp.org>
5352 * lib/unistd.in.h: Include <winsock2.h>.
5353 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
5354 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
5355 Provide dummy declarations.
5356 (gethostname): Override.
5357 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
5358 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
5359 gl_PREREQ_SYS_H_WINSOCK2.
5360 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
5361 * doc/posix-functions/gethostname.texi: More details.
5363 2008-10-25 Bruno Haible <bruno@clisp.org>
5365 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
5366 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
5367 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
5369 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
5371 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
5372 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
5373 gl_UNISTD_H_DEFAULTS.
5375 2008-10-25 Eric Blake <ebb9@byu.net>
5377 signbit: avoid spurious compiler failure
5378 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
5379 declarations inside function.
5381 2008-10-24 Simon Josefsson <simon@josefsson.org>
5382 Bruno Haible <bruno@clisp.org>
5384 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
5385 * modules/random_r (Depends-on): Add stdint.
5387 2008-10-24 Bruno Haible <bruno@clisp.org>
5389 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
5391 * modules/strerror (License): Likewise.
5393 2008-10-24 Jim Meyering <meyering@redhat.com>
5395 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
5396 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
5398 2008-10-24 Eric Blake <ebb9@byu.net>
5400 getgroups: fix compilation when getgroups is available
5401 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
5402 but with <config.h> override of getgroups disabled.
5404 2008-10-24 Simon Josefsson <simon@josefsson.org>
5406 * doc/gnulib.texi (Header files): Add note about C++ problems.
5407 Explained by Bruno Haible <bruno@clisp.org>.
5409 2008-10-23 Bruno Haible <bruno@clisp.org>
5411 Define a dummy SA_NODEFER macro on Interix.
5412 * lib/signal.in.h (SA_NODEFER): Define fallback.
5413 Reported by Aleksey Cheusov <cheusov@tut.by> via
5414 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
5416 2008-10-23 Bruno Haible <bruno@clisp.org>
5418 * modules/freadahead (License): Change to LGPLv2+.
5419 Suggested by Simon Josefsson.
5421 2008-10-23 Jim Meyering <meyering@redhat.com>
5423 random_r: new module
5424 * modules/random_r: New file.
5425 * m4/random_r.m4: New file.
5426 * lib/random_r.c: New file, from glibc.
5427 * modules/random_r-tests: New file.
5428 * tests/test-random_r.c: New file.
5429 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
5432 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
5433 * modules/stdlib: Substitute them, too.
5434 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
5435 * doc/glibc-functions/initstate_r.texi: Mention the new module.
5436 * doc/glibc-functions/random_r.texi: Likewise.
5437 * doc/glibc-functions/setstate_r.texi: Likewise.
5438 * doc/glibc-functions/srandom_r.texi: Likewise.
5439 * config/srclist.txt: Mention it.
5441 2008-10-23 David Lutterkort <lutter@redhat.com>
5443 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
5446 2008-10-23 Jim Meyering <meyering@redhat.com>
5448 selinux-h: mark parameters of stub functions as intentionally unused
5449 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
5450 * lib/se-context.in.h: Likewise.
5452 2008-10-22 Simon Josefsson <simon@josefsson.org>
5454 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
5456 2008-10-22 Simon Josefsson <simon@josefsson.org>
5458 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
5460 2008-10-22 Eric Blake <ebb9@byu.net>
5462 glthread/thread: avoid compiler warning
5463 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
5464 Add unreachable abort to silence compiler.
5466 2008-10-22 Eric Blake <ebb9@byu.net>
5468 netdb: also supply struct addrinfo for cygwin 1.5.x
5469 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
5471 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
5473 * doc/posix-headers/netdb.texi (netdb.h): Document this.
5475 2008-10-22 Bruno Haible <bruno@clisp.org>
5477 * users.txt: Update entry about pspp.
5479 2008-10-21 Bruno Haible <bruno@clisp.org>
5482 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
5483 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
5486 * lib/ioctl.c (ioctl): Don't undefine.
5487 * lib/socket.c (socket): Don't undefine.
5489 Remove unused module indicator macros.
5490 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
5491 GNULIB_$1 as a C macro.
5493 * doc/posix-functions/close.texi: Undo last change.
5494 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
5497 2008-10-21 Bruno Haible <bruno@clisp.org>
5499 Add gethostname() declaration to <unistd.h>.
5500 * lib/unistd.in.h (gethostname): New declaration.
5501 * lib/gethostname.c: Include <unistd.h>.
5502 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
5503 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
5504 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
5505 and HAVE_GETHOSTNAME.
5506 * modules/gethostname (Depends-on): Add unistd.
5507 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5508 (Include): Specify <unistd.h>.
5509 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
5511 * tests/test-gethostname.c: Include <unistd.h> first.
5513 2008-10-21 Bruno Haible <bruno@clisp.org>
5515 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
5516 * modules/select-tests (Depends-on): Likewise.
5517 Reported by Simon Josefsson.
5519 2008-10-21 Simon Josefsson <simon@josefsson.org>
5521 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
5522 * lib/accept.c: New file, based on winsock.c.
5523 * lib/bind.c: New file, based on winsock.c.
5524 * lib/connect.c: New file, based on winsock.c.
5525 * lib/getpeername.c: New file, based on winsock.c.
5526 * lib/getsockname.c: New file, based on winsock.c.
5527 * lib/getsockopt.c: New file, based on winsock.c.
5528 * lib/ioctl.c: New file, based on winsock.c.
5529 * lib/listen.c: New file, based on winsock.c.
5530 * lib/recv.c: New file, based on winsock.c.
5531 * lib/recvfrom.c: New file, based on winsock.c.
5532 * lib/send.c: New file, based on winsock.c.
5533 * lib/sendto.c: New file, based on winsock.c.
5534 * lib/setsockopt.c: New file, based on winsock.c.
5535 * lib/shutdown.c: New file, based on winsock.c.
5536 * lib/socket.c: New file, based on winsock.c.
5537 * lib/w32sock.h: New file, based on winsock.c.
5538 * lib/winsock.c: Remove file.
5539 * modules/accept: Likewise.
5540 * modules/bind: Likewise.
5541 * modules/connect: Likewise.
5542 * modules/getpeername: Likewise.
5543 * modules/getsockname: Likewise.
5544 * modules/getsockopt: Likewise.
5545 * modules/ioctl: Likewise.
5546 * modules/listen: Likewise.
5547 * modules/recv: Likewise.
5548 * modules/recvfrom: Likewise.
5549 * modules/send: Likewise.
5550 * modules/sendto: Likewise.
5551 * modules/setsockopt: Likewise.
5552 * modules/shutdown: Likewise.
5553 * modules/socket: Use socket.c instead of winsock.c.
5554 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
5555 * doc/posix-functions/accept.texi: Doc fix.
5556 * doc/posix-functions/bind.texi: Doc fix.
5557 * doc/posix-functions/close.texi: Doc fix.
5558 * doc/posix-functions/connect.texi: Doc fix.
5559 * doc/posix-functions/getpeername.texi: Doc fix.
5560 * doc/posix-functions/getsockname.texi: Doc fix.
5561 * doc/posix-functions/getsockopt.texi: Doc fix.
5562 * doc/posix-functions/ioctl.texi: Doc fix.
5563 * doc/posix-functions/listen.texi: Doc fix.
5564 * doc/posix-functions/recv.texi: Doc fix.
5565 * doc/posix-functions/recvfrom.texi: Doc fix.
5566 * doc/posix-functions/send.texi: Doc fix.
5567 * doc/posix-functions/sendto.texi: Doc fix.
5568 * doc/posix-functions/setsockopt.texi: Doc fix.
5569 * doc/posix-functions/shutdown.texi: Doc fix.
5570 * doc/posix-functions/socket.texi: Doc fix.
5572 2008-10-20 Bruno Haible <bruno@clisp.org>
5574 Take into account the role of SIGABRT_COMPAT on Windows 2008.
5575 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
5576 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
5577 as an alias for SIGABRT.
5578 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
5579 (sigaction): Map it to SIGABRT.
5580 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
5582 2008-10-20 Bruno Haible <bruno@clisp.org>
5584 * lib/fts.c: Don't include lstat.h.
5585 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
5587 Move the lstat() declaration to <sys/stat.h>.
5588 * lib/lstat.h: Remove file.
5589 * lib/sys_stat.in.h: Add special invocation convention.
5590 (lstat): New declaration.
5591 * lib/lstat.c (orig_lstat): New function.
5592 (rpl_lstat): Use orig_lstat instead of lstat.
5593 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
5594 AC_C_INLINE. Set REPLACE_LSTAT.
5595 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
5597 * modules/lstat (Files): Remove lib/lstat.h.
5598 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
5599 (Include): Specify <sys/stat.h> instead of lstat.h.
5600 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
5602 * NEWS: Mention the change.
5604 2008-10-20 Bruno Haible <bruno@clisp.org>
5606 * modules/posix_spawn-tests: New file.
5607 * tests/test-posix_spawn3.c: New file.
5609 2008-10-20 Bruno Haible <bruno@clisp.org>
5611 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
5612 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
5613 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
5614 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
5615 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
5617 2008-10-20 Bruno Haible <bruno@clisp.org>
5619 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
5620 of posix_spawn on AIX 5.3.
5622 2008-10-20 Bruno Haible <bruno@clisp.org>
5624 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
5626 2008-10-20 Bruno Haible <bruno@clisp.org>
5628 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
5631 2008-10-20 Simon Josefsson <simon@josefsson.org>
5633 * lib/netdb.in.h: Don't define GNU specific constants until they
5634 are supported or needed. Reported by Bruno Haible
5637 2008-10-20 Simon Josefsson <simon@josefsson.org>
5639 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
5641 2008-10-20 Simon Josefsson <simon@josefsson.org>
5643 * lib/getaddrinfo.h: Remove file.
5644 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
5645 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
5646 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
5647 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
5648 * modules/netdb: Substitute GNULIB_GETADDRINFO.
5649 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
5650 * tests/test-getaddrinfo.c: Likewise.
5651 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
5652 * NEWS: Mention change.
5654 2008-10-19 Bruno Haible <bruno@clisp.org>
5656 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
5658 2008-10-19 Bruno Haible <bruno@clisp.org>
5660 * lib/wait-process.c: Include simply <sys/wait.h>.
5661 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
5662 WIFSTOPPED): Remove fallback definitions.
5663 * modules/wait-process (Depends-on): Add sys_wait.
5665 New module 'sys_wait'.
5666 * modules/sys_wait: New file.
5667 * lib/sys_wait.in.h: New file, partially copied from
5669 * m4/sys_wait_h.m4: New file.
5670 * doc/posix-headers/sys_wait.texi: Mention the new module.
5672 2008-10-19 Bruno Haible <bruno@clisp.org>
5674 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
5676 2008-10-19 Bruno Haible <bruno@clisp.org>
5678 Assume that waitpid() fills an 'int' status, not a 'union wait'.
5679 * lib/wait-process.c (WAIT_T): Remove type.
5680 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
5681 (wait_subprocess): Update.
5683 2008-10-19 Bruno Haible <bruno@clisp.org>
5686 * modules/atoll: New file.
5687 * lib/stdlib.in.h (atoll): New declaration.
5688 * lib/atoll.c: New file, from glibc with modifications.
5689 * m4/atoll.m4: New file.
5690 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
5692 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
5693 * doc/posix-functions/atoll.texi: Mention the new module.
5695 2008-10-19 Bruno Haible <bruno@clisp.org>
5697 Add strtoull() declaration to <stdlib.h>.
5698 * lib/stdlib.in.h (strtoull): New declaration.
5699 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
5701 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
5703 * modules/strtoull (Depends-on): Add stdlib.
5704 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5705 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
5708 2008-10-19 Bruno Haible <bruno@clisp.org>
5710 Add strtoll() declaration to <stdlib.h>.
5711 * lib/stdlib.in.h (strtoll): New declaration.
5712 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
5714 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
5716 * modules/strtoll (Depends-on): Add stdlib.
5717 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5718 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
5720 2008-10-19 Bruno Haible <bruno@clisp.org>
5722 * modules/bcopy (Depends-on): Add strings.
5723 (Include): Specify <strings.h>.
5725 2008-10-19 Bruno Haible <bruno@clisp.org>
5727 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
5729 2008-10-19 Bruno Haible <bruno@clisp.org>
5731 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
5732 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
5735 2008-10-19 Bruno Haible <bruno@clisp.org>
5737 * lib/atanl.c: Don't include isnanl.h.
5738 * lib/cosl.c: Likewise.
5739 * lib/ldexpl.c: Likewise.
5740 * lib/logl.c: Likewise.
5741 * lib/sinl.c: Likewise.
5742 * lib/sqrtl.c: Likewise.
5743 * lib/tanl.c: Likewise.
5745 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
5746 * lib/isnanf.h: Remove file.
5747 * lib/isnand.h: Remove file.
5748 * lib/isnanl.h: Remove file.
5749 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
5750 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
5752 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
5753 HAVE_ISNANF, don't define it as a C macro.
5754 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
5755 HAVE_ISNAND, don't define it as a C macro.
5756 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
5757 HAVE_ISNANL, don't define it as a C macro.
5758 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
5760 * modules/isnanf (Files): Remove lib/isnanf.h.
5761 (Depends-on): Add math.
5762 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5763 (Include): Specify <math.h> instead of isnanf.h.
5764 * modules/isnand (Files): Remove lib/isnand.h.
5765 (Depends-on): Add math.
5766 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5767 (Include): Specify <math.h> instead of isnand.h.
5768 * modules/isnanl (Files): Remove lib/isnanl.h.
5769 (Depends-on): Add math.
5770 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5771 (Include): Specify <math.h> instead of isnanl.h.
5772 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
5774 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
5775 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
5776 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
5777 * NEWS: Mention the change.
5779 2008-10-18 Bruno Haible <bruno@clisp.org>
5781 Add getusershell(), setusershell(), endusershell() declarations to
5783 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
5785 * lib/getusershell.c: Include unistd.h.
5786 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
5787 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
5789 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
5790 and HAVE_GETUSERSHELL.
5791 * modules/getusershell (Depends-on): Add unistd, extensions.
5792 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5793 (Include): Specify <unistd.h>.
5794 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
5797 2008-10-18 Bruno Haible <bruno@clisp.org>
5799 Add a getloadavg() declaration to <stdlib.h>.
5800 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
5801 getloadavg declaration.
5802 (getloadavg): New declaration.
5803 * lib/getloadavg.c: Include <stdlib.h> first.
5804 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
5805 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
5806 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
5807 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
5808 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
5809 * modules/getloadavg (Depends-on): Add stdlib, extensions.
5810 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5811 (Include): Specify <stdlib.h>.
5812 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
5813 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
5815 2008-10-18 Bruno Haible <bruno@clisp.org>
5817 * lib/dirchownmod.c: Don't include lchmod.h.
5819 Move the lchmod() declaration to <sys/stat.h>.
5820 * lib/lchmod.h: Remove file.
5821 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
5822 (lchmod): New declaration, moved here from lib/lchown.h.
5823 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
5824 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
5825 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
5827 * modules/lchmod (Files): Remove lib/lchmod.h.
5828 (Depends-on): Add sys_stat, extensions.
5829 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
5830 (Include): Specify <sys/stat.h> instead of lchmod.h.
5831 * modules/sys_stat (Depends-on): Add link-warning.
5832 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
5833 definition of GL_LINK_WARNING.
5834 * NEWS: Mention the change.
5836 2008-10-18 Bruno Haible <bruno@clisp.org>
5838 * lib/fchdir.c: Don't include dirfd.h.
5839 * lib/fts.c: Likewise.
5840 * lib/getcwd.c: Likewise.
5841 * lib/glob.c: Likewise.
5843 Move the dirfd() declaration to <dirent.h>.
5844 * lib/dirfd.h: Remove file.
5845 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
5846 (dirfd): New declaration.
5847 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
5848 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
5849 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
5851 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
5853 * modules/dirfd (Files): Remove lib/dirfd.h.
5854 (Depends-on): Add dirent, extensions.
5855 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
5856 (Include): Specify <dirent.h> instead of dirfd.h.
5857 * modules/dirent (Depends-on): Add link-warning.
5858 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
5859 definition of GL_LINK_WARNING.
5860 * NEWS: Mention the change.
5862 2008-10-18 Bruno Haible <bruno@clisp.org>
5864 Move the euidaccess() declaration to <unistd.h>.
5865 * lib/euidaccess.h: Remove file.
5866 * lib/unistd.in.h (euidaccess): New declaration.
5867 * lib/euidaccess.c: Don't include euidaccess.h.
5868 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
5869 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
5870 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
5871 and HAVE_EUIDACCESS.
5872 * modules/euidaccess (Files): Remove lib/euidaccess.h.
5873 (Depends-on): Add unistd.
5874 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5875 (Include): Specify <unistd.h> instead of euidaccess.h.
5876 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
5878 * NEWS: Mention the change.
5880 2008-10-18 Bruno Haible <bruno@clisp.org>
5882 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
5884 Move the getdomainname() declaration to <unistd.h>.
5885 * lib/getdomainname.h: Remove file.
5886 * lib/unistd.in.h (getdomainname): New declaration.
5887 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
5888 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
5889 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
5891 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5892 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
5893 * modules/getdomainname (Files): Remove lib/getdomainname.h.
5894 (Depends-on): Add unistd, extensions.
5895 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5896 (Includes): Specify <unistd.h> instead of getdomainname.h.
5897 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
5899 * NEWS: Mention the change.
5901 2008-10-18 Bruno Haible <bruno@clisp.org>
5903 * modules/dirent: New file.
5904 * m4/dirent_h.m4: New file.
5905 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
5906 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
5907 * modules/fchdir (Files): Remove lib/dirent.in.h.
5908 (Depends-on): Add dirent.
5909 (Makefile.am): Move rules to modules/dirent.
5910 * doc/posix-headers/dirent.texi: Mention the new module.
5912 2008-10-18 Bruno Haible <bruno@clisp.org>
5914 Avoid -Wunused-parameter warnings in public gnulib header files.
5915 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
5917 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
5919 2008-10-18 Bruno Haible <bruno@clisp.org>
5921 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
5922 * doc/glibc-functions/error.texi: Mention the module 'error'.
5923 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
5924 * doc/glibc-functions/getdomainname.texi: Mention the module
5926 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
5927 * doc/glibc-functions/getpagesize.texi: Mention the module
5929 * doc/glibc-functions/getusershell.texi: Mention the module
5931 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
5932 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
5933 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
5934 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
5935 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
5936 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
5937 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
5938 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
5939 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
5940 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
5941 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
5942 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
5943 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
5944 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
5946 2008-10-17 Bruno Haible <bruno@clisp.org>
5948 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
5949 HP-UX and IRIX, use -0.0L.
5950 * tests/test-ceill.c (minus_zero): Likewise.
5951 * tests/test-floorl.c (minus_zero): Likewise.
5952 * tests/test-frexpl.c (minus_zero): Likewise.
5953 * tests/test-isnan.c (minus_zerol): Likewise.
5954 * tests/test-isnanl.h (minus_zero): Likewise.
5955 * tests/test-ldexpl.c (minus_zero): Likewise.
5956 * tests/test-roundl.c (minus_zero): Likewise.
5957 * tests/test-signbit.c (minus_zerol): Likewise.
5958 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
5959 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
5960 * tests/test-truncl.c (minus_zero): Likewise.
5961 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
5962 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
5963 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
5964 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
5966 2008-10-17 Bruno Haible <bruno@clisp.org>
5968 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
5969 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
5970 that it gets activated only for gcc >= 3.0.
5971 * lib/dirent.in.h: Likewise.
5972 * lib/errno.in.h: Likewise.
5973 * lib/fcntl.in.h: Likewise.
5974 * lib/float.in.h: Likewise.
5975 * lib/iconv.in.h: Likewise.
5976 * lib/inttypes.in.h: Likewise.
5977 * lib/locale.in.h: Likewise.
5978 * lib/math.in.h: Likewise.
5979 * lib/netdb.in.h: Likewise.
5980 * lib/netinet_in.in.h: Likewise.
5981 * lib/search.in.h: Likewise.
5982 * lib/signal.in.h: Likewise.
5983 * lib/spawn.in.h: Likewise.
5984 * lib/stdarg.in.h: Likewise.
5985 * lib/stdint.in.h: Likewise.
5986 * lib/stdio.in.h: Likewise.
5987 * lib/stdlib.in.h: Likewise.
5988 * lib/string.in.h: Likewise.
5989 * lib/strings.in.h: Likewise.
5990 * lib/sys_file.in.h: Likewise.
5991 * lib/sys_ioctl.in.h: Likewise.
5992 * lib/sys_select.in.h: Likewise.
5993 * lib/sys_socket.in.h: Likewise.
5994 * lib/sys_stat.in.h: Likewise.
5995 * lib/sys_time.in.h: Likewise.
5996 * lib/sysexits.in.h: Likewise.
5997 * lib/time.in.h: Likewise.
5998 * lib/unistd.in.h: Likewise.
5999 * lib/wchar.in.h: Likewise.
6000 * lib/wctype.in.h: Likewise.
6001 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6003 2008-10-17 Jim Meyering <meyering@redhat.com>
6005 ignore-value: don't depend on inline module
6006 * modules/ignore-value (Depends-on): Remove 'inline'.
6007 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
6008 Suggestion from Bruno Haible.
6010 2008-10-17 Bruno Haible <bruno@clisp.org>
6012 New implementation of condition variables for Win32.
6013 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
6014 (gl_linked_waitqueue_t): New type.
6015 (gl_cond_t): Use it.
6016 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
6017 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
6018 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
6019 (glthread_cond_init_func, glthread_cond_wait_func,
6020 glthread_cond_timedwait_func, glthread_cond_signal_func,
6021 glthread_cond_broadcast_func, glthread_cond_destroy_func):
6022 Reimplemented on the basis of gl_linked_waitqueue_t.
6023 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
6025 (gl_rwlock_t): Update.
6026 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
6028 2008-10-17 Simon Josefsson <simon@josefsson.org>
6030 * modules/recvfrom (Depends-on): Add dependency on getpeername.
6031 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
6033 2008-10-17 Jim Meyering <meyering@redhat.com>
6035 ignore-value: new module
6036 * modules/ignore-value: New file.
6037 * lib/ignore-value.h: New file.
6038 * MODULES.html.sh (Compiler warning management): New section,
6039 just for this module. More to come.
6041 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
6043 open-safer.c: avoid 'signed and unsigned in conditional...' warning
6044 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
6045 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
6047 2008-10-16 Jim Meyering <meyering@redhat.com>
6049 openat-die.c: avoid 'no previous prototype' warning
6050 * lib/openat-die.c: Include "openat.h".
6051 Reported by Reuben Thomas <rrt@sc3d.org>.
6053 2008-10-16 Simon Josefsson <simon@josefsson.org>
6055 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
6056 * lib/netdb.in.h: Fix typo.
6057 Reported by Bruno Haible <bruno@clisp.org>
6059 * lib/netdb.in.h: Include sys/socket.h for platforms without
6060 netdb.h, to get structures like hostent on MinGW.
6061 * modules/netdb (Depends-on): Add sys_socket.
6063 2008-10-15 Simon Josefsson <simon@josefsson.org>
6065 * modules/netdb, modules/netdb-tests: New file.
6066 * m4/netdb_h.m4: New file.
6067 * lib/netdb.in.h: Add, currently just an empty file pending
6069 * tests/test-netdb.c: New file.
6070 * doc/posix-headers/netdb.texi: Mention that we replace it if
6072 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
6075 2008-10-15 Simon Josefsson <simon@josefsson.org>
6077 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
6080 2008-10-13 Bruno Haible <bruno@clisp.org>
6082 * lib/glthread/cond.c (glthread_cond_wait_func,
6083 glthread_cond_timedwait_func): Add a comment.
6085 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
6087 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
6088 * tests/test-select.c: Likewise,
6090 2008-10-13 Bruno Haible <bruno@clisp.org>
6092 * lib/glthread/cond.c (glthread_cond_wait_func,
6093 glthread_cond_timedwait_func): Fix variable name.
6094 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
6096 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
6098 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
6099 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
6100 struct sockaddr.sa_len.
6101 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
6103 2008-10-13 Simon Josefsson <simon@josefsson.org>
6105 * build-aux/pmccabe2html: Add css and css_url parameters.
6107 2008-10-12 Bruno Haible <bruno@clisp.org>
6109 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
6111 Reported by Rainer Tammer <tammer@tammer.net>.
6113 2008-10-12 Bruno Haible <bruno@clisp.org>
6115 Use msvcrt aware primitives for creation/termination of Win32 threads.
6116 * lib/glthread/thread.c: Include <process.h>.
6117 (glthread_create_func): Use _beginthreadex instead of CreateThread.
6118 (wrapper_func): Update signature.
6119 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
6121 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
6122 Bruno Haible <bruno@clisp.org>
6124 Provide a Win32 implementation of the 'cond' module.
6125 * lib/glthread/cond.h [USE_WIN32]: New implementation.
6126 * lib/glthread/cond.c (glthread_cond_init_func,
6127 glthread_cond_wait_func, glthread_cond_timedwait_func,
6128 glthread_cond_signal_func, glthread_cond_broadcast_func,
6129 glthread_cond_destroy_func) [USE_WIN32]: New functions.
6130 * modules/cond (Dependencies): Add gettimeofday.
6132 2008-10-11 Bruno Haible <bruno@clisp.org>
6134 Make sleep work on older versions of mingw.
6135 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
6136 only whether it exists.
6137 * doc/posix-functions/sleep.texi: Mention the problem with older
6140 2008-10-11 Bruno Haible <bruno@clisp.org>
6142 New module 'shutdown'.
6143 * modules/shutdown: New file.
6144 * lib/sys_socket.in.h (shutdown): New declaration.
6145 * lib/winsock.c (shutdown): New function.
6146 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
6148 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
6149 * doc/posix-functions/shutdown.texi: Document the new module.
6151 2008-10-11 Jim Meyering <meyering@redhat.com>
6153 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
6155 2008-10-11 Bruno Haible <bruno@clisp.org>
6157 New module 'fclose'.
6158 * modules/fclose: New file.
6159 * lib/stdio.in.h (fclose): New declaration.
6160 * lib/fclose.c: New file.
6161 * m4/fclose.m4: New file.
6162 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
6164 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
6165 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
6167 * modules/close (Depends-on): fclose.
6168 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
6170 2008-10-11 Bruno Haible <bruno@clisp.org>
6172 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
6173 set errno and don't call _close.
6175 2008-10-10 Bruno Haible <bruno@clisp.org>
6177 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
6178 ACL, not afterwards. Fixes test failure on Cygwin.
6180 2008-10-09 Ben Pfaff <blp@gnu.org>
6182 * build-aux/announce-gen: Fix gnulib version related part of usage
6183 message. Die with a useful error message if no tarballs are
6186 2008-10-10 Jim Meyering <meyering@redhat.com>
6188 bootstrap: use git's --depth=N option only if it's supported
6189 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
6190 recognize the --depth option. Reported by Pádraig Brady.
6192 2008-10-09 Bruno Haible <bruno@clisp.org>
6195 * modules/ioctl: New file.
6196 * lib/sys_socket.in.h (ioctl): Remove declaration.
6197 * lib/winsock.c: Include <sys/ioctl.h>.
6198 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
6199 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
6200 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
6201 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
6202 * doc/posix-functions/ioctl.texi: Mention the new module.
6204 2008-10-09 Bruno Haible <bruno@clisp.org>
6206 New module 'sys_ioctl'.
6207 * lib/sys_ioctl.in.h: New file.
6208 * m4/sys_ioctl_h.m4: New file.
6209 * modules/sys_ioctl: New file.
6210 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
6212 2008-10-09 Bruno Haible <bruno@clisp.org>
6214 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
6215 * lib/winsock.c: Include <stdarg.h>.
6216 (rpl_ioctl): Change to second argument 'int' and then varargs.
6218 2008-10-09 Bruno Haible <bruno@clisp.org>
6220 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
6221 when the sys_socket module is present and the system has <winsock2.h>.
6223 2008-10-09 Bruno Haible <bruno@clisp.org>
6225 * doc/posix-functions/close.texi: Mention module 'close' instead of
6226 module 'sys_socket'.
6228 2008-10-09 Bruno Haible <bruno@clisp.org>
6230 * doc/glibc-headers/sys_ioctl.texi: New file.
6231 * doc/gnulib.texi: Include it.
6233 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
6234 Bruno Haible <bruno@clisp.org>
6236 Combine the two replacements of 'close'.
6237 * lib/sys_socket.in.h (close): Define to a reminder to include
6239 (_gl_close_fd_maybe_socket): New declaration.
6240 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
6241 * lib/winsock.c (close): Remove undefinition.
6242 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
6243 needed for the gnulib module 'close'.
6244 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
6245 define to an error symbol or to a warning, if suitable.
6246 * lib/close.c: Include <sys/socket.h>.
6247 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
6248 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
6249 UNISTD_H_HAVE_WINSOCK2_H.
6250 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
6251 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6252 UNISTD_H_HAVE_WINSOCK2_H.
6253 * modules/sys_socket (Files): Add m4/unistd_h.m4.
6254 (configure.ac): Set a module indicator.
6255 (Makefile.am): Substitute GNULIB_CLOSE.
6256 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
6257 * modules/poll-tests (Depends-on): Add close.
6258 * modules/select-tests (Depends-on): Likewise.
6260 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
6261 Bruno Haible <bruno@clisp.org>
6264 * modules/close: New file.
6265 * lib/unistd.in.h (close): Move declaration out of the
6266 FCHDIR_REPLACEMENT scope.
6267 (_gl_unregister_fd): New declaration.
6268 * lib/close.c: New file.
6269 * lib/fchdir.c (rpl_close): Remove function.
6270 * m4/close.m4: New file.
6271 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
6273 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
6275 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
6277 * modules/fchdir (Depends-on): Add close.
6279 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
6280 Bruno Haible <bruno@clisp.org>
6282 * lib/fcntl.in.h (open): Simplify conditionals.
6283 (_gl_register_fd): New declaration.
6284 * lib/fchdir.c (rpl_open): Remove function.
6285 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
6287 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
6288 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
6291 2008-10-09 Jim Meyering <meyering@redhat.com>
6293 GNUmakefile: use the more name-space-friendly "_version"
6294 * top/GNUmakefile (_dummy): Update.
6295 (_version): Rename from "version".
6297 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
6298 Bruno Haible <bruno@clisp.org>
6300 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
6302 (_gl_register_fd): New function, extracted from rpl_open.
6303 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
6304 (rpl_open, rpl_opendir): Use _gl_register_fd.
6306 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
6308 Fix organization of 'open' replacement.
6309 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
6310 (gl_FUNC_OPEN): Use it.
6311 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
6313 2008-10-08 Bruno Haible <bruno@clisp.org>
6315 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
6317 2008-10-08 Simon Josefsson <simon@josefsson.org>
6319 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
6320 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
6323 2008-10-08 Eric Blake <ebb9@byu.net>
6325 GNUmakefile: add 'make version' target
6326 * top/GNUmakefile (_curr-ver): Split version update rules...
6327 (version): ...into a target.
6329 2008-10-07 Bruno Haible <bruno@clisp.org>
6331 Use a more portable replacement expression for -0.0L.
6332 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
6333 instead of -0.0L. Fix m4 quotation.
6335 * tests/test-signbit.c: Include <float.h>.
6336 (minus_zero): New variable.
6337 (test_signbitl): Use minus_zero instead of -zero.
6338 * modules/signbit-tests (Depends-on): Add float.
6340 * tests/test-ceill.c: Include <float.h>.
6341 (zero): Remove variable.
6342 (minus_zero): New variable.
6343 (main): Use minus_zero instead of -zero.
6344 * modules/ceill-tests (Depends-on): Add float.
6346 * tests/test-floorl.c: Include <float.h>.
6347 (zero): Remove variable.
6348 (minus_zero): New variable.
6349 (main): Use minus_zero instead of -zero.
6350 * modules/floorl-tests (Depends-on): Add float.
6352 * tests/test-roundl.c: Include <float.h>.
6353 (zero): Remove variable.
6354 (minus_zero): New variable.
6355 (main): Use minus_zero instead of -zero.
6356 * modules/roundl-tests (Depends-on): Add float.
6358 * tests/test-truncl.c: Include <float.h>.
6359 (zero): Remove variable.
6360 (minus_zero): New variable.
6361 (main): Use minus_zero instead of -zero.
6362 * modules/truncl-tests (Depends-on): Add float.
6364 * tests/test-frexpl.c (zero): Remove variable.
6365 (minus_zero): New variable.
6366 (main): Use minus_zero instead of -zero.
6367 * modules/frexpl-tests (Depends-on): Add float.
6369 * tests/test-isnan.c (zerol): Remove variable.
6370 (minus_zerol): New variable.
6371 (test_long_double): Use minus_zerol instead of -zerol.
6372 * modules/isnan-tests (Depends-on): Add float.
6374 * tests/test-isnanl.h (zero): Remove variable.
6375 (minus_zero): New variable.
6376 (main): Use minus_zero instead of -zero.
6377 * modules/isnanl-nolibm-tests (Depends-on): Add float.
6378 * modules/isnanl-tests (Depends-on): Add float.
6380 * tests/test-ldexpl.c (zero): Remove variable.
6381 (minus_zero): New variable.
6382 (main): Use minus_zero instead of -zero.
6383 * modules/ldexpl-tests (Depends-on): Add float.
6385 * tests/test-snprintf-posix.h (zerol): Remove variable.
6386 (minus_zerol): New variable.
6387 (test_function): Use minus_zerol instead of -zerol.
6388 * modules/snprintf-posix-tests (Depends-on): Add float.
6389 * modules/vsnprintf-posix-tests (Depends-on): Add float.
6391 * tests/test-sprintf-posix.h (zerol): Remove variable.
6392 (minus_zerol): New variable.
6393 (test_function): Use minus_zerol instead of -zerol.
6394 * modules/sprintf-posix-tests (Depends-on): Add float.
6395 * modules/vsprintf-posix-tests (Depends-on): Add float.
6397 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
6398 (minus_zerol): New variable.
6399 (test_function): Use minus_zerol instead of -zerol.
6400 * modules/vasnprintf-posix-tests (Depends-on): Add float.
6402 * tests/test-vasprintf-posix.c (zerol): Remove variable.
6403 (minus_zerol): New variable.
6404 (test_function): Use minus_zerol instead of -zerol.
6405 * modules/vasprintf-posix-tests (Depends-on): Add float.
6407 2008-10-07 Simon Josefsson <simon@josefsson.org>
6409 * MODULES.html.sh (Support for building documentation): Mention
6410 pmccabe2html. Sort entries.
6412 Add pmccabe2html module, from gnupdf.
6413 * build-aux/pmccabe.css: New file.
6414 * build-aux/pmccabe2html: New file.
6415 * m4/pmccabe2html.m4: New file.
6416 * modules/pmccabe2html: New file.
6418 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
6421 * MODULES.html.sh: Add to list of modules.
6422 * lib/flock.c: flock implementation for Windows and Unix systems
6424 * doc/glibc-functions/flock.texi: Update documentation.
6425 * lib/sys_file.in.h: <sys/file.h> header file.
6426 * m4/flock.m4: M4 macros.
6427 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
6428 * modules/flock: flock module.
6429 * modules/flock-tests: flock tests module.
6430 * modules/sys_file: sys/file.h module.
6431 * tests/test-flock.c: test suite for flock.
6433 2008-10-06 Jim Meyering <meyering@redhat.com>
6435 bootstrap: check for LT_INIT more portably still ;-)
6436 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
6437 Spotted by Bruno Haible.
6439 2008-10-06 Eric Blake <ebb9@byu.net>
6441 test-signbit: avoid tripping Irix cc bug on -0.0L
6442 * tests/test-signbit.c (minus_zerol): Delete, and replace with
6443 '-zerol'. This may break on HP-UX/hppa, but at least makes the
6444 entire testsuite consistent and avoids an Irix 6.2 bug.
6446 2008-10-05 Bruno Haible <bruno@clisp.org>
6447 Jim Meyering <jim@meyering.net>
6449 Add an option for ignoring EPIPE during close_stdout.
6450 * lib/closeout.h: Include <stdbool.h>.
6451 (close_stdout_set_ignore_EPIPE): New declaration.
6452 * lib/closeout.c: Include <stdbool.h>.
6453 (ignore_EPIPE): New variable.
6454 (close_stdout_set_ignore_EPIPE): New function.
6455 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
6456 * lib/close-stream.c (close_stream): Mention the possible EPIPE
6458 * modules/closeout (Depends-on): Add stdbool.
6460 2008-10-05 Bruno Haible <bruno@clisp.org>
6462 * modules/accept: New file.
6463 * modules/bind: New file.
6464 * modules/connect: New file.
6465 * modules/getpeername: New file.
6466 * modules/getsockname: New file.
6467 * modules/getsockopt: New file.
6468 * modules/listen: New file.
6469 * modules/recv: New file.
6470 * modules/recvfrom: New file.
6471 * modules/send: New file.
6472 * modules/sendto: New file.
6473 * modules/setsockopt: New file.
6474 * modules/socket: New file.
6475 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
6476 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6477 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
6478 the particular module is requested. Add a link warning when the
6479 particular module is not requested.
6480 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
6481 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
6482 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
6483 the particular module is requested.
6484 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
6485 gl_SYS_SOCKET_H_DEFAULTS): New macros.
6486 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
6487 * modules/sys_socket (Depends-on): Add link-warning.
6488 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
6489 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
6490 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
6491 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
6493 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
6494 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
6495 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
6496 * doc/posix-functions/getpeername.texi: Mention the new module
6498 * doc/posix-functions/getsockname.texi: Mention the new module
6500 * doc/posix-functions/getsockopt.texi: Mention the new module
6502 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
6503 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
6504 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
6505 * doc/posix-functions/send.texi: Mention the new module 'send'.
6506 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
6507 * doc/posix-functions/setsockopt.texi: Mention the new module
6509 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
6510 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
6511 listen, connect, accept.
6512 * modules/select-tests (Depends-on): Likewise.
6514 2008-10-05 Bruno Haible <bruno@clisp.org>
6516 * lib/winsock.c (strerror): Remove unused #undef.
6517 (rpl_close): Remove unused local variable.
6519 * modules/sys_socket (Depends-on); Add errno.
6521 2008-10-05 Bruno Haible <bruno@clisp.org>
6523 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
6524 (select): Add a link warning when the 'select' module is not used.
6525 * modules/sys_select (Depends-on): Add link-warning.
6526 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
6527 Suggested by Paolo Bonzini.
6529 2008-10-05 Jim Meyering <meyering@redhat.com>
6531 bootstrap: check for LT_INIT more portably
6532 * build-aux/bootstrap: Avoid using grep -E, since it's not
6533 portable enough. Suggestion from Bruno Haible.
6535 2008-10-05 Bruno Haible <bruno@clisp.org>
6537 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
6538 as being fixed by gnulib.
6540 2008-10-05 Bruno Haible <bruno@clisp.org>
6542 * modules/select-tests: New file, mostly copied from
6543 modules/sys_select-tests.
6544 * tests/test-select.c: New file, mostly copied from
6545 tests/test-sys_select.c.
6546 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
6547 * modules/sys_select-tests (Depends-on): Remove all dependencies.
6548 (Makefile.am): Remove test_sys_select_LDADD.
6550 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
6551 to an undefined symbol, for an error message.
6552 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
6553 (gl_SYS_SELECT_H_DEFAULTS): New macro.
6554 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
6555 winsock-select.c here.
6556 * modules/sys_select (Files): Remove lib/winsock-select.c.
6557 (Depends-on): Remove alloca.
6558 (Makefile.am): Substitute GNULIB_SELECT.
6559 * modules/select: New file.
6560 * doc/posix-functions/select.texi: Update.
6562 2008-10-05 Bruno Haible <bruno@clisp.org>
6564 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
6565 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
6566 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
6567 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
6569 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
6570 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
6572 2008-10-05 Bruno Haible <bruno@clisp.org>
6574 * modules/getdtablesize-tests: New file.
6575 * tests/test-getdtablesize.c: New file.
6577 New module 'getdtablesize'.
6578 * lib/unistd.in.h (getdtablesize): New declaration.
6579 * lib/getdtablesize.c: New file.
6580 * m4/getdtablesize.m4: New file.
6581 * modules/getdtablesize: New file.
6582 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6583 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
6584 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
6586 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
6588 2008-10-05 Bruno Haible <bruno@clisp.org>
6590 * modules/sched (Makefile.am): Fix typo.
6591 Reported by Simon Josefsson.
6593 2008-10-05 Jim Meyering <meyering@redhat.com>
6595 bootstrap: check for LT_INIT, too
6596 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
6597 are deprecated. Suggestion from Ralf Wildenhues.
6599 2008-10-05 Bruno Haible <bruno@clisp.org>
6601 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
6602 overriding them by ours.
6603 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
6605 2008-10-05 Jim Meyering <meyering@redhat.com>
6607 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
6608 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
6609 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
6611 2008-10-04 Bruno Haible <bruno@clisp.org>
6613 * modules/dup2 (License): Change to LGPLv2+.
6614 * modules/sleep (License): Likewise.
6615 * modules/perror (License): Likewise.
6616 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
6618 * modules/signal (License): Likewise.
6619 * modules/sigprocmask (License): Likewise.
6620 * modules/raise (License): Change to LGPLv2+, with approval by Jim
6623 2008-10-04 Bruno Haible <bruno@clisp.org>
6625 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
6626 Reported by Rainer Tammer <tammer@tammer.net>.
6628 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
6629 Bruno Haible <bruno@clisp.org>
6631 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
6632 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
6633 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
6635 2008-10-03 Kamil Dudka <kdudka@redhat.com>
6637 filevercmp: new module
6638 * lib/filevercmp.h: New function filevercmp comparing version strings.
6639 * lib/filevercmp.c: Implementation of filevercmp function.
6640 * modules/filevercmp: Module metadata.
6641 * tests/test-filevercmp.c: Unit test for new module.
6642 * modules/filevercmp-tests: Unit test metadata.
6643 * MODULES.html.sh: Add filevercmp module.
6645 2008-10-03 Bruno Haible <bruno@clisp.org>
6647 * lib/c-ctype.h: Add comment.
6648 Reported by Jim Meyering.
6650 2008-10-02 Bruno Haible <bruno@clisp.org>
6652 * modules/posix_spawn-internal (Depends-on): Add 'open'.
6654 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
6656 * build-aux/bootstrap: Allow renaming bootstrap, and change the
6657 name of bootstrap.conf accordingly.
6659 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
6661 * build-aux/bootstrap: Install git-merge-changelog configuration
6662 items into .gitconfig if needed.
6664 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
6666 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
6667 git repository, and initialize/update it accordingly.
6669 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
6671 * modules/fsync-tests: New file.
6672 * tests/test-fsync.c: New file.
6675 * lib/fsync.c: New file.
6676 * m4/fsync.m4: New file.
6677 * modules/fsync: New file.
6678 * lib/unistd.in.h (fsync): New declaration.
6679 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
6680 GNULIB_FSYNC and HAVE_FSYNC.
6681 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
6682 * MODULES.html.sh (posix_functions): Add fsync.
6683 * doc/posix-functions/fsync.texi: Mention the new module.
6685 2008-10-02 Jim Meyering <meyering@redhat.com>
6687 fts.c: sync with similar code from coreutils' remove.c
6688 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
6689 Guard also with "#if defined __linux__", since for now at least,
6690 this code is Linux-kernel-specific.
6692 2008-10-02 Jim Meyering <meyering@redhat.com>
6695 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
6696 Include <sys/vfs.h>, not <sys/statfs.h>.
6698 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
6699 Include <sys/vfs.h>, not <sys/statfs.h>.
6701 2008-10-01 Bruno Haible <bruno@clisp.org>
6703 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
6704 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
6705 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
6706 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
6707 * doc/posix-functions/posix_spawnp.texi: Likewise.
6708 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
6709 whether posix_spawn actually works.
6710 * m4/pipe.m4 (gl_PIPE): Likewise.
6711 * modules/execute (Files): Add m4/posix_spawn.m4.
6712 * modules/pipe (Files): Add m4/posix_spawn.m4.
6713 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
6715 2008-10-01 Jim Meyering <meyering@redhat.com>
6717 remove trailing spaces
6719 * lib/poll.c (poll): Likewise.
6720 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
6721 * lib/winsock.c (rpl_close): Likewise.
6722 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
6723 * modules/yield: Likewise.
6724 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
6725 * tests/test-sys_select.c (connect_to_socket): Likewise.
6727 fts.c: adjust a new interface to be more generally useful
6728 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
6729 (fts_build): Adjust caller.
6731 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6733 * modules/cond-tests: New file.
6734 * tests/test-cond.c: New file.
6736 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6737 Bruno Haible <bruno@clisp.org>
6739 * modules/cond (Dependencies): Add errno, time.
6740 * lib/glthread/cond.h: Include <time.h>.
6741 (gl_cond_define, gl_cond_define_initialized): Use the same definition
6744 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6745 Bruno Haible <bruno@clisp.org>
6747 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
6749 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6750 Bruno Haible <bruno@clisp.org>
6752 * modules/tls-tests (Depends-on): Add thread, yield.
6753 (configure.ac): Remove all checks.
6754 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
6755 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
6756 gl_thread_self): Remove definitions. Include glthread/thread.h and
6757 glthread/yield.h instead.
6758 (test_tls): Pass an additional NULL argument to gl_thread_join.
6760 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6761 Bruno Haible <bruno@clisp.org>
6763 * modules/lock-tests (Depends-on): Add thread, yield.
6764 (configure.ac): Remove all checks.
6765 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
6766 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
6767 gl_thread_self): Remove definitions. Include glthread/thread.h and
6768 glthread/yield.h instead.
6769 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
6770 additional NULL argument to gl_thread_join.
6772 2008-09-30 Bruno Haible <bruno@clisp.org>
6774 Fix the Win32 implementation of the 'thread' module.
6775 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
6777 (gl_thread_self): Invoke gl_thread_self_func.
6778 (gl_thread_self_func): New declaration.
6779 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
6780 (do_init_self_key, init_self_key): New functions.
6781 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
6783 (running_threads, running_lock): Remove variables.
6784 (get_current_thread_handle): New function.
6785 (gl_thread_self_func, wrapper_func, glthread_create_func,
6786 glthread_join_func, gl_thread_exit_func): Largely rewritten and
6789 2008-09-30 Bruno Haible <bruno@clisp.org>
6791 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
6794 2008-09-30 Jim Meyering <meyering@redhat.com>
6796 fts.m4: correct the test for statfs.f_type
6797 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
6798 when checking for statfs.f_type.
6800 2008-09-15 Simon Josefsson <simon@josefsson.org>
6802 tests: avoid some compiler warnings
6803 * tests/test-memchr.c (main): Pass NULL indirectly.
6804 * tests/test-getdate.c (main): Remove unused variable 'ret'.
6806 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
6808 getdate.y: disallow countable dayshifts like "4 yesterday ago"
6809 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
6810 exactly specified dayshifts.
6811 (dayshift): New rule.
6812 (rel): Add dayshift.
6813 (relative_time_table) [tomorrow, yesterday, today, now]:
6814 Use tDAY_SHIFT in place of tDAY_UNIT.
6815 * tests/test-getdate.c: Add tests for now-disallowed countable
6816 dayshifts, e.g., "4 yesterday ago".
6818 2008-09-29 Bruno Haible <bruno@clisp.org>
6820 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
6821 * tests/test-posix_spawn1.in.sh: Renamed from
6822 tests/test-posix_spawn.in.sh.
6823 * tests/test-posix_spawn2.c: New file.
6824 * tests/test-posix_spawn2.in.sh: New file.
6825 * modules/posix_spawnp-tests (Files): Update.
6826 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
6828 2008-09-29 Bruno Haible <bruno@clisp.org>
6830 Propagate effects of putenv/setenv/unsetenv to child processes.
6831 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
6832 * lib/pipe.c (create_pipe): Likewise.
6834 2008-09-29 Bruno Haible <bruno@clisp.org>
6836 Enable use of shell scripts as executables in mingw.
6837 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
6838 run the program as a shell script.
6839 * lib/pipe.c (create_pipe): Likewise.
6840 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
6843 2008-09-29 Eric Blake <ebb9@byu.net>
6845 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
6847 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
6849 * doc/posix-functions/accept.texi: Update mingw problems.
6850 * doc/posix-functions/bind.texi: Update mingw problems.
6851 * doc/posix-functions/close.texi: Update mingw problems.
6852 * doc/posix-functions/connect.texi: Update mingw problems.
6853 * doc/posix-functions/getpeername.texi: Update mingw problems.
6854 * doc/posix-functions/getsockname.texi: Update mingw problems.
6855 * doc/posix-functions/getsockopt.texi: Update mingw problems.
6856 * doc/posix-functions/ioctl.texi: Update mingw problems.
6857 * doc/posix-functions/listen.texi: Update mingw problems.
6858 * doc/posix-functions/recv.texi: Update mingw problems.
6859 * doc/posix-functions/recvfrom.texi: Update mingw problems.
6860 * doc/posix-functions/select.texi: Update mingw problems.
6861 * doc/posix-functions/send.texi: Update mingw problems.
6862 * doc/posix-functions/sendto.texi: Update mingw problems.
6863 * doc/posix-functions/setsockopt.texi: Update mingw problems.
6864 * doc/posix-functions/socket.texi: Update mingw problems.
6866 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
6867 Bruno Haible <bruno@clisp.org>
6869 * lib/sys_select.in.h: Include sys/time.h.
6870 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
6871 * modules/sys_select: Depend on sys_time.
6872 * tests/test-sys_select.c: Test that sys/select.h defines struct
6875 2008-09-29 Bruno Haible <bruno@clisp.org>
6877 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
6878 * lib/sys_select.in.h: Likewise.
6880 2008-09-29 Bruno Haible <bruno@clisp.org>
6882 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
6884 2008-09-29 Bruno Haible <bruno@clisp.org>
6886 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
6887 Set LIBSOCKET instead of augmenting LIBS.
6888 * modules/sockets (Link): New section.
6889 * modules/sockets-tests (test_sockets_LDADD): New variable.
6890 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
6891 * modules/poll-tests (test_poll_LDADD): New variable.
6892 * NEWS: Document the change.
6894 2008-09-29 Bruno Haible <bruno@clisp.org>
6896 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
6897 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
6898 ARPA_INET_H directly.
6899 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6901 2008-09-28 Bruno Haible <bruno@clisp.org>
6903 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
6904 from gl_HEADER_SYS_SOCKET.
6905 (gl_HEADER_SYS_SOCKET): Invoke it.
6906 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6908 2008-09-28 Bruno Haible <bruno@clisp.org>
6910 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
6911 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
6912 Needed on OSF/1 4.0.
6914 2008-09-28 Bruno Haible <bruno@clisp.org>
6916 Override open more carefully.
6917 * lib/open.c (orig_open): New function.
6918 (rpl_open): Use orig_open instead of open.
6919 * lib/fcntl.in.h: Add special invocation convention.
6920 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
6921 (gl_FUNC_OPEN): Invoke it.
6923 Override freopen more carefully.
6924 * lib/freopen.c (orig_freopen): New function.
6925 (rpl_freopen): Use orig_freopen instead of freopen.
6926 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
6927 (gl_FUNC_FREOPEN): Invoke it.
6929 Override fopen more carefully.
6930 * lib/fopen.c (orig_fopen): New function.
6931 (rpl_fopen): Use orig_fopen instead of fopen.
6932 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
6933 (gl_FUNC_FOPEN): Invoke it.
6934 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
6936 2008-09-28 Bruno Haible <bruno@clisp.org>
6938 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
6941 2008-09-28 Bruno Haible <bruno@clisp.org>
6943 * tests/test-sigaction.c (handler, main): Disable the check whether
6944 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
6945 glibc systems with LinuxThreads.
6947 2008-09-28 Bruno Haible <bruno@clisp.org>
6949 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
6951 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
6953 * lib/fcntl.in.h (open): Likewise.
6954 Reported by Rainer Tammer <tammer@tammer.net>.
6956 2008-09-28 Bruno Haible <bruno@clisp.org>
6958 * modules/posix_spawnp-tests: New file.
6959 * tests/test-posix_spawn.c: New file.
6960 * tests/test-posix_spawn.in.sh: New file.
6962 New module 'posix_spawnp'.
6963 * modules/posix_spawnp: New file.
6964 * lib/spawnp.c: New file, from GNU libc with modifications.
6965 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
6967 New module 'posix_spawn'.
6968 * modules/posix_spawn: New file.
6969 * lib/spawn.c: New file, from GNU libc with modifications.
6970 * doc/posix-functions/posix_spawn.texi: Mention the new module.
6972 New module 'posix_spawnattr_destroy'.
6973 * modules/posix_spawnattr_destroy: New file.
6974 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
6975 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
6978 New module 'posix_spawnattr_setsigmask'.
6979 * modules/posix_spawnattr_setsigmask: New file.
6980 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
6982 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
6985 New module 'posix_spawnattr_getsigmask'.
6986 * modules/posix_spawnattr_getsigmask: New file.
6987 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
6989 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
6992 New module 'posix_spawnattr_setsigdefault'.
6993 * modules/posix_spawnattr_setsigdefault: New file.
6994 * lib/spawnattr_setdefault.c: New file, from GNU libc with
6996 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
6999 New module 'posix_spawnattr_getsigdefault'.
7000 * modules/posix_spawnattr_getsigdefault: New file.
7001 * lib/spawnattr_getdefault.c: New file, from GNU libc with
7003 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
7006 New module 'posix_spawnattr_setschedpolicy'.
7007 * modules/posix_spawnattr_setschedpolicy: New file.
7008 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
7010 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
7013 New module 'posix_spawnattr_getschedpolicy'.
7014 * modules/posix_spawnattr_getschedpolicy: New file.
7015 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
7017 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
7020 New module 'posix_spawnattr_setschedparam'.
7021 * modules/posix_spawnattr_setschedparam: New file.
7022 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
7024 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
7027 New module 'posix_spawnattr_getschedparam'.
7028 * modules/posix_spawnattr_getschedparam: New file.
7029 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
7031 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
7034 New module 'posix_spawnattr_setpgroup'.
7035 * modules/posix_spawnattr_setpgroup: New file.
7036 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
7038 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
7041 New module 'posix_spawnattr_getpgroup'.
7042 * modules/posix_spawnattr_getpgroup: New file.
7043 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
7045 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
7048 New module 'posix_spawnattr_setflags'.
7049 * modules/posix_spawnattr_setflags: New file.
7050 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
7051 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
7054 New module 'posix_spawnattr_getflags'.
7055 * modules/posix_spawnattr_getflags: New file.
7056 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
7057 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
7060 New module 'posix_spawnattr_init'.
7061 * modules/posix_spawnattr_init: New file.
7062 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
7063 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
7066 New module 'posix_spawn_file_actions_destroy'.
7067 * modules/posix_spawn_file_actions_destroy: New file.
7068 * lib/spawn_faction_destroy.c: New file, from GNU libc with
7070 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
7073 New module 'posix_spawn_file_actions_addopen'.
7074 * modules/posix_spawn_file_actions_addopen: New file.
7075 * lib/spawn_faction_addopen.c: New file, from GNU libc with
7077 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
7080 New module 'posix_spawn_file_actions_adddup2'.
7081 * modules/posix_spawn_file_actions_adddup2: New file.
7082 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
7084 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
7087 New module 'posix_spawn_file_actions_addclose'.
7088 * modules/posix_spawn_file_actions_addclose: New file.
7089 * lib/spawn_faction_addclose.c: New file, from GNU libc with
7091 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7094 New module 'posix_spawn_file_actions_init'.
7095 * modules/posix_spawn_file_actions_init: New file.
7096 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
7097 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
7100 New module 'posix_spawn-internal'.
7101 * modules/posix_spawn-internal: New file.
7102 * lib/spawn_int.h: New file, from GNU libc with modifications.
7103 * lib/spawni.c: New file, from GNU libc with modifications.
7104 * m4/posix_spawn.m4: New file.
7107 * modules/spawn: New file.
7108 * lib/spawn.in.h: New file, from GNU libc with modifications.
7109 * m4/spawn_h.m4: New file.
7110 * doc/posix-headers/spawn.texi: Mention the new module.
7112 2008-09-28 Bruno Haible <bruno@clisp.org>
7114 * modules/sched-tests: New file.
7115 * tests/test-sched.c: New file.
7118 * modules/sched: New file.
7119 * lib/sched.in.h: New file.
7120 * m4/sched_h.m4: New file.
7121 * doc/posix-headers/sched.texi: Mention the new module.
7123 2008-09-27 Eric Blake <ebb9@byu.net>
7125 Fix previous patch, and tweak references to $0.
7126 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
7127 (func_version, func_gnulib_dir): Don't call this program
7129 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
7130 with using $0 in function.
7131 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
7132 (func_fatal_error): Reuse the name the user invoked us with.
7134 2008-09-27 Bruno Haible <bruno@clisp.org>
7136 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
7137 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
7138 (gl_ICONV_H): Not here.
7139 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
7140 instead of assigning ICONV_H directly.
7142 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
7143 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
7146 2008-09-27 Bruno Haible <bruno@clisp.org>
7148 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
7149 * modules/arpa_inet (Depends-on): Add link-warning.
7150 (Makefile.am): Insert the definition of GL_LINK-WARNING.
7151 * modules/unistd (Makefile.am): Likewise.
7153 2008-09-26 Bruno Haible <bruno@clisp.org>
7155 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
7157 (func_version): Essentially copied from gnulib-tool.
7158 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
7159 func_readlink): Copied from gnulib-tool.
7161 2008-09-26 Bruno Haible <bruno@clisp.org>
7163 * gnulib-tool (func_version): Change directory to $gnulib_dir before
7164 invoking git-version-gen.
7166 2008-09-26 Bruno Haible <bruno@clisp.org>
7168 * posix-modules: Update to directory names changed on 2008-01-19.
7169 Remove commas in output before splitting into words. No more need to
7170 avoid 'ftruncate' since 2007-02-19.
7172 2008-09-26 Bruno Haible <bruno@clisp.org>
7174 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
7176 2008-09-26 Bruno Haible <bruno@clisp.org>
7178 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
7179 * modules/fwriteerror (Depends-on): Add errno.
7181 2008-09-26 Bruno Haible <bruno@clisp.org>
7183 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
7184 * tests/test-vc-list-files-cvs.sh: Likewise.
7186 2008-09-26 Bruno Haible <bruno@clisp.org>
7188 * doc/posix-headers/sys_resource.texi: Reorder items.
7190 2008-09-26 Jim Meyering <meyering@redhat.com>
7192 fts: tweak inode comparison function
7193 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
7194 inode numbers, as documented.
7196 fts: sort dirent entries on inode number before traversing
7197 This avoids a quadratic, seek-related performance penalty when
7198 operating on a directory containing many entries (measurable at 10k;
7199 3.5 hours at 2 million entries with a cold cache) on certain types
7200 of file systems, including ext3 and ext4, but not tmpfs.
7201 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
7202 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
7203 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
7204 (fs_handles_readdir_ordered_dirents_efficiently): New function.
7205 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
7206 (fts_build): Set the stat.st_ino member from D_INO.
7207 If it is likely to be useful, sort dirent entries on inode number.
7209 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
7210 and the struct statfs.f_type member.
7211 * modules/fts (Depends-on): Add d-ino.
7213 2008-09-26 Bruno Haible <bruno@clisp.org>
7215 * modules/sigpipe-die (Depends-on): Add sigpipe.
7217 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
7218 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
7219 and GNULIB_STDIO_H_SIGPIPE are set.
7220 * lib/stdio-write.c: New file.
7221 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
7222 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7223 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7224 REPLACE_STDIO_WRITE_FUNCS.
7225 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
7226 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7227 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7228 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
7229 * modules/stdio (Files): Add lib/stdio-write.c.
7230 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
7231 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7232 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7233 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
7234 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
7235 REPLACE_FPRINTF_POSIX.
7236 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
7237 REPLACE_PRINTF_POSIX.
7238 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
7239 REPLACE_VFPRINTF_POSIX.
7240 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
7241 REPLACE_VPRINTF_POSIX.
7242 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
7244 * doc/posix-functions/fputc.texi: Likewise.
7245 * doc/posix-functions/fputs.texi: Likewise.
7246 * doc/posix-functions/fwrite.texi: Likewise.
7247 * doc/posix-functions/printf.texi: Likewise.
7248 * doc/posix-functions/putc.texi: Likewise.
7249 * doc/posix-functions/putchar.texi: Likewise.
7250 * doc/posix-functions/puts.texi: Likewise.
7251 * doc/posix-functions/vfprintf.texi: Likewise.
7252 * doc/posix-functions/vprintf.texi: Likewise.
7254 * modules/safe-write (Depends-on): Add write.
7256 * modules/sigpipe-tests: New file.
7257 * tests/test-sigpipe.c: New file.
7258 * tests/test-sigpipe.sh: New file.
7260 * modules/write: New file.
7261 * lib/unistd.in.h: Include <sys/types.h>.
7262 (write): New declaration.
7263 * lib/write.c: New file.
7264 * m4/write.m4: New file.
7265 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7266 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
7267 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
7268 GNULIB_WRITE, REPLACE_WRITE.
7269 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
7270 and the SIGPIPE issue.
7272 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
7273 (raise): New declaration.
7274 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
7275 (ext_signal): New function.
7276 (rpl_raise): New function.
7277 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7278 GNULIB_SIGNAL_H_SIGPIPE.
7279 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
7280 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
7282 * modules/sigpipe: New file.
7283 * m4/sigpipe.m4: New file.
7285 2008-09-25 Derek Price <derek@ximbiot.com>
7286 Bruno Haible <bruno@clisp.org>
7288 * gnulib-tool (func_import): Report all license incompatibilities, not
7291 2008-09-25 Bruno Haible <bruno@clisp.org>
7293 * gnulib-tool (func_import): When computing the edits, consider not
7294 only the Makefile.ams that exist but also those that will be generated.
7296 2008-09-25 Simon Josefsson <simon@josefsson.org>
7298 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
7299 fixes gnulib-tool --test warning about duplicate dependency.
7301 2008-09-25 Bruno Haible <bruno@clisp.org>
7303 * gnulib-tool: Don't ask the user to perform edits in the generated
7305 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
7306 apply to the Makefile.am being generated.
7307 (func_emit_tests_Makefile_am): Execute edits that apply to the
7308 Makefile.am being generated.
7309 (func_import): Setup list of Makefile.am edits before emitting the
7310 Makefile.ams, not at the end.
7311 (func_create_testdir): Update.
7312 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7314 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7316 * gnulib-tool (func_import): Store the --tests-base option in the
7317 comment in gnulib-cache.m4.
7319 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
7321 * NEWS: Document increased portability that sys_select now provides.
7323 * lib/sys_select.in.h: Install select wrapper.
7324 * lib/sys_socket.in.h: Use more descriptive name when there is no
7326 * lib/winsock-select.c: New.
7327 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
7328 Require gl_HEADER_SYS_SOCKET.
7329 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
7330 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
7331 * tests/test-sys_select.c: Add functional tests.
7333 2008-09-24 Eric Blake <ebb9@byu.net>
7335 open, fopen: close fd leak in last patch
7336 * lib/open.c (rpl_open): Close fd before returning error.
7337 * lib/fopen.c (rpl_fopen): Close fd before returning error.
7338 * doc/posix-functions/open.texi (open): Document that Irix also
7340 * doc/posix-functions/fopen.texi (fopen): Likewise.
7341 Reported by Paolo Bonzini.
7343 2008-09-24 Bruno Haible <bruno@clisp.org>
7345 Ensure that a filename ending in a slash cannot be used to access a
7347 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
7348 to check whether it's really a directory.
7349 * lib/fopen.c: Include fcntl.h, unistd.h.
7350 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
7352 * modules/fopen (Depends-on): Add unistd.
7353 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
7354 * tests/test-fopen.c (main): Likewise.
7355 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
7356 * doc/posix-functions/fopen.texi: Likewise.
7357 Reported by Eric Blake.
7359 2008-09-23 Eric Blake <ebb9@byu.net>
7361 c-stack: avoid compiler optimizations when provoking overflow
7362 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
7363 recursion harder to optimize, to ensure a stack overflow occurs.
7364 * tests/test-c-stack.c (recurse): Likewise.
7365 Borrowed from libsigsegv.
7367 c-stack: work around Irix sigaltstack bug
7368 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
7369 whether sigaltstack uses wrong end of stack_t (copied in part from
7371 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
7372 Irix bug, without requiring an over-allocation.
7373 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
7376 fopen: document mingw bug on directories
7377 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
7378 not allowing a stream visiting a directory, even though reading
7379 from such a stream is not portable.
7381 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
7383 * lib/poll.c: Rewrite.
7384 * modules/poll: Depend on alloca.
7386 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
7388 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
7389 instead define prototypes for a full set of wrappers. Ensure
7390 that Cygwin does not use the compatibility code, which is only
7392 * lib/winsock.c: New.
7393 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
7394 * modules/sys_socket: Add lib/winsock.c.
7396 * modules/poll-tests: Add errno and perror.
7397 * tests/test-poll.c: Use ioctl, not ioctlsocket.
7399 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
7401 * tests/test-poll.c: Downgrade minimum needed Winsock version.
7403 2008-09-23 Bruno Haible <bruno@clisp.org>
7405 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
7406 * doc/glibc-functions/*: Likewise.
7408 2008-09-23 Simon Josefsson <simon@josefsson.org>
7410 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
7413 2008-09-22 Eric Blake <ebb9@byu.net>
7414 Bruno Haible <bruno@clisp.org>
7416 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
7417 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
7418 supply %A but mishandle pseudo-NaN.
7419 Reported by Simon Josefsson.
7421 2008-09-21 Bruno Haible <bruno@clisp.org>
7423 * tests/test-lock.c (main): Tweak skip message.
7424 * tests/test-tls.c (main): Likewise.
7426 2008-09-21 Bruno Haible <bruno@clisp.org>
7428 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
7429 whether 'struct sigaction' has sa_sigaction here...
7430 (gl_PREREQ_SIG_HANDLER_H): ... not here.
7431 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
7433 2008-09-21 Bruno Haible <bruno@clisp.org>
7435 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
7437 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
7438 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
7440 (Support for obsolete systems lacking POSIX:2001): New section.
7441 (String handling <string.h>): Move strdup to the new section.
7442 Suggested by Simon Josefsson and Paolo Bonzini.
7444 2008-09-21 Bruno Haible <bruno@clisp.org>
7446 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
7447 exponents in %e and %g results on 'long double'. Needed for mingw's
7448 improved *printf functions.
7449 * tests/test-vasprintf-posix.c (test_function): Likewise.
7450 * tests/test-snprintf-posix.h (test_function): Likewise.
7451 * tests/test-sprintf-posix.h (test_function): Likewise.
7452 Reported by Eric Blake.
7454 2008-09-21 Bruno Haible <bruno@clisp.org>
7456 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
7457 * tests/test-sprintf-posix.h (test_function): Likewise.
7459 2008-09-21 Bruno Haible <bruno@clisp.org>
7461 * modules/getpass (Depends-on): Add strdup-posix.
7463 New module 'strdup-posix'.
7464 * modules/strdup-posix: New file.
7465 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
7466 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
7467 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7469 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
7470 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
7471 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
7474 * modules/strdup (Depends-on): Remove malloc-posix.
7476 2008-09-20 Bruno Haible <bruno@clisp.org>
7478 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
7481 2008-09-20 Bruno Haible <bruno@clisp.org>
7483 Ensure that wint_t gets defined on IRIX 5.3.
7484 * lib/wchar.in.h (wint_t): Define if not defined by the system.
7485 * lib/wctype.in.h (wint_t): Likewise.
7486 (__wctype_wint_t): Remove type.
7487 (isw*): Use wint_t instead of __wctype_wint_t.
7488 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
7489 * modules/wchar (Files): Add m4/wint_t.m4.
7490 (Makefile.am): Substitute HAVE_WINT_T.
7491 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
7492 * tests/test-wctype.c: Check that wint_t is defined.
7493 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
7494 * doc/posix-headers/wctype.texi: Likewise.
7495 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7497 2008-09-18 Bruno Haible <bruno@clisp.org>
7499 * gnulib-tool (func_exit): Update comment.
7501 2008-09-18 Simon Josefsson <simon@josefsson.org>
7503 * modules/getaddrinfo (Depends-on): Remove strdup, this module
7504 assumes strdup exists and does not depend on strdup to return
7505 ENOMEM on out of memory conditions.
7507 2008-09-18 Bruno Haible <bruno@clisp.org>
7509 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
7510 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
7511 digits for the exponent.
7513 2008-09-18 Jim Meyering <meyering@redhat.com>
7514 Bruno Haible <bruno@clisp.org>
7516 * lib/vasnprintf.c (decimal_point_char): Define also if
7517 NEED_PRINTF_INFINITE_LONG_DOUBLE.
7519 2008-09-16 Bruno Haible <bruno@clisp.org>
7520 and Eric Blake <ebb9@byu.net>
7522 vasnprintf: support Irix 5.3
7523 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
7524 that mishandle long double infinity.
7525 Reported by Tom G. Christensen.
7527 2008-09-16 Bruno Haible <bruno@clisp.org>
7529 * doc/glibc-functions/scandir.texi: Mention the function is missing on
7531 * doc/glibc-functions/alphasort.texi: Likewise.
7532 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
7534 2008-09-16 Jim Meyering <meyering@redhat.com>
7536 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
7537 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
7538 a umask modification leak out of a subshell. Otherwise, the
7539 opensolaris /bin/sh would be accepted and thus cause unwarranted
7540 failures in the coreutils test suite.
7542 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
7544 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
7547 2008-09-16 Jim Meyering <meyering@redhat.com>
7549 avoid spurious test failure when library is built without ACL support
7550 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
7551 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
7552 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
7553 * tests/test-copy-acl.sh: Likewise.
7555 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7557 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
7558 based on character occurrence counts.
7560 2008-09-15 Eric Blake <ebb9@byu.net>
7562 tests: avoid some compiler warnings
7563 * tests/test-memchr.c (main): Pass NULL indirectly.
7564 * tests/test-closein.c (main): Avoid unused variable.
7566 2008-09-15 Bruno Haible <bruno@clisp.org>
7568 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
7569 are missing on OpenBSD 4.0 individually.
7570 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7572 2008-09-15 Bruno Haible <bruno@clisp.org>
7574 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
7575 * doc/posix-functions/strerror.texi: Mention also Cygwin.
7576 * doc/posix-functions/perror.texi: Likewise.
7577 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
7579 Reported by Eric Blake.
7581 * lib/errno.in.h: Use replacement values >= 2000.
7582 Reported by Eric Blake.
7584 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7586 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
7587 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
7589 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
7590 compareseq was aborted.
7592 2008-09-14 Bruno Haible <bruno@clisp.org>
7594 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
7596 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
7597 (fstrcmp_bounded): Simplify result computation accordingly.
7599 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7601 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
7602 (fstrcmp): Define in terms of fstrcmp_bounded.
7603 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
7604 lower_bound argument.
7605 Return quickly if the result is certainly < lower_bound.
7606 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
7608 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7610 * lib/diffseq.h (EARLY_ABORT): New macro.
7611 (compareseq): Change return type to bool. Return true when EARLY_ABORT
7614 2008-09-14 Bruno Haible <bruno@clisp.org>
7616 * modules/perror-tests: New file.
7617 * tests/test-perror.sh: New file.
7618 * tests/test-perror.c: New file.
7620 New module 'perror'.
7621 * lib/stdio.in.h (perror): New declaration.
7622 * lib/perror.c: New file.
7623 * m4/perror.m4: New file.
7624 * modules/perror: New file.
7625 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
7626 * doc/posix-functions/perror.texi: Mention the perror module.
7627 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
7629 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
7632 2008-09-14 Bruno Haible <bruno@clisp.org>
7634 * modules/stdio (Makefile.am): Reorder to match the order in
7636 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
7638 2008-09-13 Bruno Haible <bruno@clisp.org>
7640 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
7642 2008-09-13 Bruno Haible <bruno@clisp.org>
7644 Extend strerror to cover the added errno values.
7645 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
7646 (rpl_strerror): Provide error messages for the added errno values and
7647 for the WSA* values.
7648 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
7649 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
7651 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
7652 * modules/strerror (Depends-on): Add errno.
7653 * doc/posix-functions/strerror.texi: Document the change.
7654 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
7657 2008-09-13 Bruno Haible <bruno@clisp.org>
7659 * modules/EOVERFLOW: Remove file.
7660 * m4/eoverflow.m4: Remove file.
7661 * modules/EOVERFLOW-tests: Remove file.
7662 * tests/test-EOVERFLOW.c: Remove file.
7663 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
7664 * modules/ftell (Depends-on): Likewise.
7665 * modules/getdelim (Depends-on): Likewise.
7666 * modules/getugroups (Depends-on): Likewise.
7667 * modules/poll (Depends-on): Likewise.
7668 * modules/snprintf (Depends-on): Likewise.
7669 * modules/sprintf-posix (Depends-on): Likewise.
7670 * modules/vasnprintf (Depends-on): Likewise.
7671 * modules/vasprintf (Depends-on): Likewise.
7672 * modules/vfprintf-posix (Depends-on): Likewise.
7673 * modules/vsnprintf (Depends-on): Likewise.
7674 * modules/vsprintf-posix (Depends-on): Likewise.
7675 * modules/xvasprintf (Depends-on): Likewise.
7676 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7677 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
7678 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
7679 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
7680 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7681 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
7682 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
7683 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
7684 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7685 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
7686 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
7687 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
7688 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7689 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
7690 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
7691 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
7692 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7693 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
7694 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
7695 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
7696 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7697 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
7698 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
7699 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
7700 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
7701 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7702 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
7703 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
7704 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
7705 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
7706 * MODULES.html.sh: Remove EOVERFLOW.
7707 * NEWS: Mention the change.
7709 2008-09-13 Bruno Haible <bruno@clisp.org>
7711 * modules/errno-tests: New file.
7712 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
7714 * lib/errno.in.h: New file.
7715 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
7716 * modules/errno: New file.
7717 * doc/posix-headers/errno.texi: Update documentation.
7718 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
7720 2008-09-13 Bruno Haible <bruno@clisp.org>
7722 * tests/test-poll.c: Use #if for native Windows, rather than testing
7725 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7726 Bruno Haible <bruno@clisp.org>
7728 * lib/glob.c: Don't include <pwd.h> on native Windows.
7729 (WINDOWS32): New macro.
7730 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
7732 2008-09-13 Bruno Haible <bruno@clisp.org>
7734 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
7735 (ETIMEDOUT): Remove macro.
7736 (glthread_cond_timedwait_multithreaded): New declaration.
7737 (glthread_cond_timedwait): Use it.
7738 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
7739 (glthread_cond_timedwait_multithreaded): New function.
7741 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
7743 * modules/poll-tests: Do not check for io.h.
7744 * tests/test-poll.c: Check for __MSVCRT__ instead.
7746 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
7748 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
7749 * modules/poll-tests: Add inet_pton, stdbool, sockets.
7750 * tests/test-poll.c: Use them. Use _pipe on Windows.
7752 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
7754 * modules/poll-tests: New.
7755 * tests/test-poll.c: New.
7757 2008-09-12 Eric Blake <ebb9@byu.net>
7759 frexp: test for NetBSD failure on -0.0
7760 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
7761 not all, bugs from NetBSD 3.0 have been fixed.
7762 * doc/posix-functions/frexp.texi (frexp): Document bug.
7763 Reported by Thomas Klausner.
7765 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
7766 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
7768 Reported by Jonathan C. Patschke <jp@centtech.com>.
7770 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7772 * lib/glthread/cond.h: Use dummy implementation also if
7775 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7777 * modules/fnmatch-posix (License): Change to LGPLv2+.
7778 * modules/fnmatch-gnu (License): Likewise.
7780 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7782 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
7784 2008-09-11 Jim Meyering <meyering@redhat.com>
7786 * users.txt: Add gtk-vnc.
7788 2008-09-08 Simon Josefsson <simon@josefsson.org>
7790 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
7793 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
7794 required for 16-bit and 8-bit rotates.
7795 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
7796 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
7797 UINT8_MAX instead of hard-coded constants.
7798 Suggested by Paul Eggert.
7800 2008-09-07 Bruno Haible <bruno@clisp.org>
7802 * tests/test-striconveh.c (main): Check behaviour when converting from
7805 Make striconveh work better with stateful encodings.
7806 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
7807 that iconv does not increment the inptr when returning -1/EINVAL.
7809 2008-09-07 Bruno Haible <bruno@clisp.org>
7811 * build-aux/config.rpath: Update according to libtool-2.2.6.
7812 * build-aux/config.libpath: Likewise.
7814 2008-09-06 Bruno Haible <bruno@clisp.org>
7816 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
7817 * lib/freadptr.c (freadptr): Likewise.
7818 * lib/freadseek.c (freadptrinc): Likewise.
7819 Reported by Simon Josefsson.
7821 2008-09-06 Bruno Haible <bruno@clisp.org>
7823 * modules/freadptr (License): Change to LGPLv2+.
7824 * modules/freadseek (License): Likewise.
7825 Suggested by Eric Blake.
7827 * modules/memchr2 (License): Change to LGPLv2+.
7828 Approved by Eric Blake.
7830 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7831 Bruno Haible <bruno@clisp.org>
7833 Make gnulib-tool work with native 'sed' on AIX.
7834 * gnulib-tool (sed_noop): New variable.
7835 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
7836 func_add_or_update, func_create_testdir): Use it to initialize sed
7838 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7840 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
7841 Bruno Haible <bruno@clisp.org>
7843 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
7844 also works after #include directives.
7846 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
7848 getdate.y: reject an out-of-range timezone value
7849 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
7850 the range [-24...+24]. When specified with only one or two digits,
7851 * tests/test-getdate.c: Tests for the fix.
7852 * doc/getdate.texi: Document this change.
7854 2008-09-03 Bruno Haible <bruno@clisp.org>
7856 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
7858 2008-09-02 Simon Josefsson <simon@josefsson.org>
7860 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
7861 <bruce.korb@gmail.com> with ideas from Ben Pfaff
7862 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
7863 Blake <ebb9@byu.net>.
7865 * tests/test-bitrotate.c: Add more test vectors.
7867 2008-09-02 Eric Blake <ebb9@byu.net>
7869 vasnprintf-posix: handle large precision via %.*d
7870 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
7871 when handling it ourselves.
7872 * tests/test-vasnprintf-posix.c (test_function): Add test.
7873 * tests/test-snprintf-posix.h (test_function): Likewise.
7874 * tests/test-sprintf-posix.h (test_function): Likewise.
7875 * tests/test-vasprintf-posix.c (test_function): Likewise.
7876 Reported by Alain Guibert.
7878 2008-09-01 Eric Blake <ebb9@byu.net>
7880 c-stack: make configure-time check more robust
7881 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
7882 successful sigaction call.
7883 Reported by Tom G. Christensen.
7885 2008-09-01 Bruno Haible <bruno@clisp.org>
7887 New module 'findprog-lgpl'.
7888 * modules/findprog-lgpl: New file.
7889 * lib/findprog-lgpl.c: New file.
7890 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
7891 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
7892 to decide whether to use strdup or xstrdup, concatenated_filename or
7893 xconcatenated_filename.
7895 2008-09-01 Bruno Haible <bruno@clisp.org>
7897 Split module 'concat-filename' into 'concat-filename' (LGPL) and
7898 'xconcat-filename' (GPL).
7899 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
7900 (License): Change to LGPLv2+.
7901 * modules/xconcat-filename: New file.
7902 * lib/concat-filename.h (concatenated_filename): Change specification.
7903 (xconcatenated_filename): New declaration.
7904 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
7905 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
7907 * lib/xconcat-filename.c: New file.
7908 * NEWS: Mention the change.
7909 * lib/findprog.c: Include concat-filename.h, not filename.h.
7910 (find_in_path): Use xconcatenated_filename instead of
7911 concatenated_filename.
7912 * lib/javacomp.c: Include concat-filename.h, not filename.h.
7913 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
7914 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
7915 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
7916 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
7917 instead of concatenated_filename.
7918 * lib/javaexec.c: Include concat-filename.h, not filename.h.
7919 (execute_java_class): Use xconcatenated_filename instead of
7920 concatenated_filename.
7921 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
7922 * modules/javacomp (Depends-on): Likewise.
7923 * modules/javaexec (Depends-on): Likewise.
7925 2008-09-01 Bruno Haible <bruno@clisp.org>
7927 Split module 'filename' into 'filename' and 'concat-filename'.
7928 * modules/filename: Keep only lib/filename.h.
7929 (License): Change to LGPLv2+.
7930 * modules/concat-filename: New file, extracted from modules/filename.
7931 * lib/filename.h (concatenated_filename): Remove declaration.
7932 * lib/concat-filename.h: New file, extracted from lib/filename.h.
7933 * lib/concat-filename.c: Include concat-filename.h.
7934 * NEWS: Mention the change.
7936 2008-09-01 Simon Josefsson <simon@josefsson.org>
7938 * lib/bitrotate.h (rotl8, rotr8): Add.
7940 * modules/bitrotate (configure.ac): Need
7941 AC_REQUIRE([AC_C_INLINE]).
7942 (Description): Mention stdint.h. Reported by Bruno Haible
7945 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
7946 Paolo Bonzini <bonzini@gnu.org>.
7948 2008-08-31 Bruno Haible <bruno@clisp.org>
7950 Assume Solaris specific bi-arch conventions on Solaris systems.
7951 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
7952 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
7953 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
7954 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
7955 like acl_libdirstem.
7956 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
7958 * NEWS: Mention the change.
7959 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
7961 2008-08-31 Jim Meyering <meyering@redhat.com>
7963 * lib/strftime.h: Add comments describing the two added arguments.
7965 remove duplicate #include directives
7966 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
7967 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
7969 2008-08-31 Bruno Haible <bruno@clisp.org>
7971 New module 'sigpipe-die'.
7972 * modules/sigpipe-die: New file.
7973 * lib/sigpipe-die.h: New file.
7974 * lib/sigpipe-die.c: New file.
7975 * MODULES.html.sh (Signal handling): Add sigpipe-die.
7977 2008-08-31 Bruno Haible <bruno@clisp.org>
7979 Don't override previously installed signal handlers.
7980 * lib/fatal-signal.c (saved_sigactions): New variable.
7981 (uninstall_handlers): Reset the signal to the saved handler, not
7982 to SIG_DFL (except when ignored).
7983 (install_handlers): Save the previous handlers.
7985 2008-08-30 Bruno Haible <bruno@clisp.org>
7987 * gnulib-tool (func_reset_sigpipe): New function.
7988 (func_get_automake_snippet, func_modules_transitive_closure,
7989 func_import): Invoke it before a join command that reads from stdin,
7990 to avoid "echo: write error: Broken pipe" error messages on stderr.
7991 Reported by Sam Steingold <sds@gnu.org>.
7993 2008-08-30 Bruno Haible <bruno@clisp.org>
7995 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
7996 Code copied from m4/open.m4.
7997 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
7998 access and the filename ends in a slash. Code copied from lib/open.c.
7999 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
8000 * tests/test-fopen.c (main): Check against bug with trailing slash.
8002 2008-08-29 Bruno Haible <bruno@clisp.org>
8004 Avoid some "gcc -pedantic" warnings.
8005 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
8006 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
8007 * lib/dirent.in.h: Likewise.
8008 * lib/fcntl.in.h: Likewise.
8009 * lib/float.in.h: Likewise.
8010 * lib/iconv.in.h: Likewise.
8011 * lib/inttypes.in.h: Likewise.
8012 * lib/locale.in.h: Likewise.
8013 * lib/math.in.h: Likewise.
8014 * lib/netinet_in.in.h: Likewise.
8015 * lib/search.in.h: Likewise.
8016 * lib/signal.in.h: Likewise.
8017 * lib/stdarg.in.h: Likewise.
8018 * lib/stdint.in.h: Likewise.
8019 * lib/stdio.in.h: Likewise.
8020 * lib/stdlib.in.h: Likewise.
8021 * lib/string.in.h: Likewise.
8022 * lib/strings.in.h: Likewise.
8023 * lib/sys_select.in.h: Likewise.
8024 * lib/sys_socket.in.h: Likewise.
8025 * lib/sys_stat.in.h: Likewise.
8026 * lib/sys_time.in.h: Likewise.
8027 * lib/sysexits.in.h: Likewise.
8028 * lib/time.in.h: Likewise.
8029 * lib/unistd.in.h: Likewise.
8030 * lib/wchar.in.h: Likewise.
8031 * lib/wctype.in.h: Likewise.
8032 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
8033 * modules/fchdir (Makefile.am): Likewise.
8034 * modules/fcntl (Makefile.am): Likewise.
8035 * modules/float (Makefile.am): Likewise.
8036 * modules/iconv_open (Makefile.am): Likewise.
8037 * modules/inttypes (Makefile.am): Likewise.
8038 * modules/locale (Makefile.am): Likewise.
8039 * modules/math (Makefile.am): Likewise.
8040 * modules/netinet_in (Makefile.am): Likewise.
8041 * modules/search (Makefile.am): Likewise.
8042 * modules/signal (Makefile.am): Likewise.
8043 * modules/stdarg (Makefile.am): Likewise.
8044 * modules/stdint (Makefile.am): Likewise.
8045 * modules/stdio (Makefile.am): Likewise.
8046 * modules/stdlib (Makefile.am): Likewise.
8047 * modules/string (Makefile.am): Likewise.
8048 * modules/strings (Makefile.am): Likewise.
8049 * modules/sys_select (Makefile.am): Likewise.
8050 * modules/sys_socket (Makefile.am): Likewise.
8051 * modules/sys_stat (Makefile.am): Likewise.
8052 * modules/sys_time (Makefile.am): Likewise.
8053 * modules/sysexits (Makefile.am): Likewise.
8054 * modules/time (Makefile.am): Likewise.
8055 * modules/unistd (Makefile.am): Likewise.
8056 * modules/wchar (Makefile.am): Likewise.
8057 * modules/wctype (Makefile.am): Likewise.
8058 Reported by Reuben Thomas <rrt@sc3d.org>.
8060 2008-08-29 Bruno Haible <bruno@clisp.org>
8062 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
8065 2008-08-29 Simon Josefsson <simon@josefsson.org>
8067 * MODULES.html.sh (Misc): Add bitrotate.
8069 * modules/bitrotate: New file.
8071 * lib/bitrotate.h: New file.
8073 * modules/bitrotate-tests: New file.
8075 * tests/test-bitrotate.c: New file.
8077 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
8078 on the bitrotate module.
8080 * lib/arctwo.c: Use new bitrotate module.
8082 2008-08-29 Jim Meyering <meyering@redhat.com>
8084 bootstrap: merge changes from coreutils
8085 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
8086 of copied files. Remove a kludge, now that this is fixed.
8087 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
8088 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
8089 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
8091 2008-08-29 Bruno Haible <bruno@clisp.org>
8093 * MODULES.html.sh: Remove --cvs-urls option.
8095 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
8097 maint.mk: adjust to file name change
8098 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
8100 2008-08-28 Jim Meyering <meyering@redhat.com>
8102 * modules/getndelim2 (License): Relicense to LGPLv2+.
8103 Approved by Richard Stallman for the version of 1995, and by
8104 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
8106 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
8108 * lib/getdelim.c (flockfile, funlockfile): Make all of them
8109 dummy if one is not available. Do not touch them if
8110 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
8111 (getc_maybe_unlocked): New.
8112 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
8114 2008-08-26 Eric Blake <ebb9@byu.net>
8116 doc/INSTALL: resync from autoconf
8117 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
8118 (INSTALL_PRELUDE): Delete; this is done more efficiently by
8120 * install.texi [!autoconf]: ...here. Resync from autoconf.
8121 * INSTALL: Regenerate.
8122 * INSTALL.ISO: New file.
8123 * INSTALL.UTF-8: Likewise.
8125 2008-08-26 Jim Meyering <meyering@redhat.com>
8127 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
8128 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
8129 these definitions conditional, so that they may be overridden, too.
8131 2008-08-26 Bruno Haible <bruno@clisp.org>
8133 Generate INSTALL file variants with prettier quotes.
8134 * doc/Makefile (INSTALL_PRELUDE): New macro.
8136 (INSTALL.ISO, INSTALL.UTF-8): New rules.
8138 2008-08-26 Bruno Haible <bruno@clisp.org>
8140 Run makeinfo in an English locale.
8141 * doc/Makefile (MAKEINFO): New variable.
8143 2008-08-26 Bruno Haible <bruno@clisp.org>
8145 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
8146 Suggested by Eric Blake.
8148 2008-08-25 Bruno Haible <bruno@clisp.org>
8150 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
8152 2008-08-25 Eric Blake <ebb9@byu.net>
8154 c-stack: test that stack overflow can be caught
8155 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
8156 that platform allows handling stack overflow; at least OS/2 EMX
8157 has sigaltstack, but crashes before transferring control to
8158 handler on stack overflow.
8159 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
8160 check for HAVE_STACK_OVERFLOW_HANDLING.
8161 Reported by Elbert Pol.
8163 2008-08-25 Bruno Haible <bruno@clisp.org>
8165 * doc/posix-functions/strftime.texi: Fix description of strftime
8168 2008-08-24 Bruno Haible <bruno@clisp.org>
8170 * tests/uniwidth/test-uc_width2.c: New file.
8171 * tests/uniwidth/test-uc_width2.sh: New file.
8172 * modules/uniwidth/width-tests (Files): Add the new files.
8173 (TESTS): Add uniwidth/test-uc_width2.sh.
8174 (TESTS_ENVIRONMENT): New variable.
8175 (check_PROGRAMS): Add test-uc_width2.
8176 (test_uc_width2_SOURCES): New variable.
8178 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
8179 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
8181 Reported by Alexander V. Lukyanov <lav@netis.ru>.
8183 2008-08-22 Eric Blake <ebb9@byu.net>
8185 test-lock, test-tls: mention why a test is skipped
8186 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
8188 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
8190 count-one-bits: relax license
8191 * modules/count-one-bits (License): Relicense to LGPLv2+.
8192 Suggested by Ludovic Courtès, approved by Ben Pfaff.
8194 2008-08-22 Andreas Schwab <schwab@suse.de>
8196 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
8197 Remove spurious space in assignment.
8199 2008-08-21 Simon Josefsson <simon@josefsson.org>
8201 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
8202 Paul Eggert <eggert@CS.UCLA.EDU>.
8204 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
8206 * modules/gettext: Add m4/threadlib.m4.
8208 2008-08-19 Eric Blake <ebb9@byu.net>
8210 test-c-stack: fix compilation failure on FreeBSD 5.0
8211 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
8212 headers before <sys/resource.h>.
8213 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
8215 Reported by Nelson H. F. Beebe.
8217 strverscmp: migrate from "strverscmp.h" to <string.h>
8218 * modules/string (Makefile.am): Add new hooks.
8219 * modules/strverscmp (Files): Remove strverscmp.h.
8220 (Depends-on): Add string.
8221 (configure.ac): Add indicator.
8222 (Include): Mention new header.
8223 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
8225 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
8227 * lib/strverscmp.h: Delete.
8228 * lib/string.in.h (strverscmp): Provide declaration, when needed.
8229 * tests/test-strverscmp.c (includes): Adjust client.
8230 * lib/check-version.c (includes): Likewise.
8231 * NEWS: Document the change.
8233 strverscmp: add unit test
8234 * modules/strverscmp-tests: New file.
8235 * tests/test-strverscmp.c: Likewise.
8237 2008-08-19 Simon Josefsson <simon@josefsson.org>
8239 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
8240 regarding Windows crypto stuff, from Mono.
8242 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
8244 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
8245 if present, for intel RND. Return error on failures.
8247 2008-08-18 Ben Pfaff <blp@gnu.org>
8249 gitlog-to-changelog: give better diagnostic for failed pipe-open
8250 * build-aux/gitlog-to-changelog: Improve error message: suggest
8251 that the version of Git may be too old.
8253 2008-08-18 Simon Josefsson <simon@josefsson.org>
8255 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
8256 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
8258 2008-08-18 Bruno Haible <bruno@clisp.org>
8260 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
8263 2008-08-18 Bruno Haible <bruno@clisp.org>
8265 * lib/glthread/threadlib.c: Include <pthread.h>.
8267 2008-08-18 Bruno Haible <bruno@clisp.org>
8269 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
8270 glthread_recursive_lock_* macros.
8271 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
8274 2008-08-18 Bruno Haible <bruno@clisp.org>
8276 * lib/glthread/thread.c: Avoid forcing a context switch right after
8279 2008-08-17 Bruno Haible <bruno@clisp.org>
8281 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
8282 * lib/glthread/thread.h: Provide Win32 specific implementation.
8283 * modules/thread (Files): Add lib/glthread/thread.c.
8284 (Depends-on): Add lock.
8285 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
8287 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8290 * modules/yield: New file.
8291 * lib/glthread/yield.h: New file.
8292 * m4/yield.m4: New file.
8293 * MODULES.html.sh (Multithreading): Add yield.
8295 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8297 New module 'thread'.
8298 * modules/thread: New file.
8299 * lib/glthread/thread.h: New file.
8300 * m4/thread.m4: New file.
8301 * MODULES.html.sh (Multithreading): Add thread.
8303 2008-08-17 Bruno Haible <bruno@clisp.org>
8305 * lib/glthread/lock.h: Include <stdlib.h> always.
8306 * lib/glthread/tls.h: Likewise.
8307 * lib/glthread/cond.h: Likewise.
8309 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8312 * modules/cond: New file.
8313 * lib/glthread/cond.h: New file.
8314 * lib/glthread/cond.c: New file.
8315 * m4/cond.m4: New file.
8316 * MODULES.html.sh (Multithreading): Add cond.
8318 2008-08-16 Eric Blake <ebb9@byu.net>
8320 c-stack: fix regression on Irix 5.3 from 2008-06-21
8321 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
8323 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
8324 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
8325 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
8326 * modules/signal (Makefile.am): Use the value.
8327 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
8328 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
8329 * doc/posix-headers/signal.texi (signal.h): Document this
8331 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
8332 Reported by Tom G. Christensen.
8334 2008-08-17 Bruno Haible <bruno@clisp.org>
8336 New module 'threadlib'.
8337 * modules/threadlib: New file.
8338 * lib/glthread/threadlib.c: New file, extracted from
8339 lib/glthread/lock.c.
8340 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
8342 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
8343 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
8344 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
8346 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
8347 (gl_DISABLE_THREADS): Remove macro.
8348 * modules/lock (Files): Remove build-aux/config.rpath.
8349 (Depends-on): Remove havelib. Add threadlib.
8350 (configure.ac-early): Remove section.
8351 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
8352 * modules/tls (Depends-on): Remove lock. Add threadlib.
8353 (Link): New section, copied from threadlib.
8354 * MODULES.html.sh (Multithreading): Add threadlib.
8356 2008-08-14 Bruno Haible <bruno@clisp.org>
8358 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
8359 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
8360 glthread_rwlock_unlock, glthread_rwlock_destroy,
8361 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
8362 glthread_recursive_lock_destroy): Define as macros always.
8363 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
8365 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
8366 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
8367 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
8368 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
8369 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
8370 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
8371 (glthread_recursive_lock_lock_func): Renamed from
8372 glthread_recursive_lock_lock.
8373 (glthread_recursive_lock_unlock_func): Renamed from
8374 glthread_recursive_lock_unlock.
8375 (glthread_recursive_lock_destroy_func): Renamed from
8376 glthread_recursive_lock_destroy.
8378 2008-08-14 Bruno Haible <bruno@clisp.org>
8380 * lib/glthread/lock.h: Renamed from lib/lock.h.
8381 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
8382 * lib/glthread/tls.h: Renamed from lib/tls.h.
8383 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
8384 * lib/fstrcmp.c: Update includes.
8385 * lib/strsignal.c: Update includes.
8386 * modules/lock (Files, Makefile.am): Update.
8387 (Include): Change to "glthread/lock.h".
8388 * modules/tls (Files, Makefile.am): Update.
8389 (Include): Change to "glthread/tls.h".
8390 * tests/test-lock.c: Update includes.
8391 * tests/test-tls.c: Update includes.
8392 * NEWS: Mention the renamed header files.
8394 2008-08-11 Jim Meyering <meyering@redhat.com>
8396 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
8398 2008-08-11 Eric Blake <ebb9@byu.net>
8400 test-c-stack: avoid C99-ism
8401 * tests/test-c-stack.c (main): Fix whitespace, move declaration
8403 Reported by Alain Guibert.
8405 2008-08-10 Jim Meyering <meyering@redhat.com>
8407 ensure that return value of uinttostr et al are not ignored
8408 * lib/inttostr.h (__GNUC_PREREQ): Define.
8409 (__attribute_warn_unused_result__): Define.
8410 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
8412 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
8414 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
8415 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
8417 2008-08-07 Jim Meyering <meyering@redhat.com>
8419 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
8421 * modules/mkstemp (License): Relicense under LGPLv2+.
8422 * modules/tempname (License): Likewise.
8424 2008-08-06 Bruno Haible <bruno@clisp.org>
8426 * lib/poll.c (poll): Further micro-optimization.
8428 2008-08-06 Jim Meyering <meyering@redhat.com>
8430 inet_pton.c: use locale-independent tolower
8431 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
8432 (inet_pton6): Use c_tolower rather than tolower.
8433 * modules/inet_pton (Depends-on): Add c-ctype.
8435 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
8437 * lib/poll.c (poll): Avoid division when timeout is 0, cache
8438 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
8440 2008-08-06 Jim Meyering <meyering@redhat.com>
8442 * modules/inet_pton (License): Relicense under LGPLv2+.
8444 2008-08-03 Bruno Haible <bruno@clisp.org>
8446 Additional non-aborting API for lock and tls.
8447 * lib/lock.h: Include <errno.h>.
8448 (glthread_lock_init): New macro/function.
8449 (gl_lock_init): Define as wrapper around glthread_lock_init.
8450 (glthread_lock_lock): New macro/function.
8451 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
8452 (glthread_lock_unlock): New macro/function.
8453 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
8454 (glthread_lock_destroy): New macro/function.
8455 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
8456 (glthread_rwlock_init): New macro/function.
8457 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
8458 (glthread_rwlock_rdlock): New macro/function.
8459 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
8460 (glthread_rwlock_wrlock): New macro/function.
8461 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
8462 (glthread_rwlock_unlock): New macro/function.
8463 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
8464 (glthread_rwlock_destroy): New macro/function.
8465 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
8466 (glthread_recursive_lock_init): New macro/function.
8467 (gl_recursive_lock_init): Define as wrapper around
8468 glthread_recursive_lock_init.
8469 (glthread_recursive_lock_lock): New macro/function.
8470 (gl_recursive_lock_lock): Define as wrapper around
8471 glthread_recursive_lock_lock.
8472 (glthread_recursive_lock_unlock): New macro/function.
8473 (gl_recursive_lock_unlock): Define as wrapper around
8474 glthread_recursive_lock_unlock.
8475 (glthread_recursive_lock_destroy): New macro/function.
8476 (gl_recursive_lock_destroy): Define as wrapper around
8477 glthread_recursive_lock_destroy.
8478 (glthread_once): New macro/function.
8479 (gl_once): Define as wrapper around glthread_once.
8480 Update function declarations.
8481 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
8482 glthread_rwlock_init. Return error code.
8483 (glthread_rwlock_rdlock_multithreaded): Renamed from
8484 glthread_rwlock_rdlock. Return error code.
8485 (glthread_rwlock_wrlock_multithreaded): Renamed from
8486 glthread_rwlock_wrlock. Return error code.
8487 (glthread_rwlock_unlock_multithreaded): Renamed from
8488 glthread_rwlock_unlock. Return error code.
8489 (glthread_rwlock_destroy_multithreaded): Renamed from
8490 glthread_rwlock_destroy. Return error code.
8491 (glthread_recursive_lock_init_multithreaded): Renamed from
8492 glthread_recursive_lock_init. Return error code.
8493 (glthread_recursive_lock_lock_multithreaded): Renamed from
8494 glthread_recursive_lock_lock. Return error code.
8495 (glthread_recursive_lock_unlock_multithreaded): Renamed from
8496 glthread_recursive_lock_unlock. Return error code.
8497 (glthread_recursive_lock_destroy_multithreaded): Renamed from
8498 glthread_recursive_lock_destroy. Return error code.
8499 (glthread_once_call): Make static.
8500 (glthread_once_multithreaded): Renamed from glthread_once.
8501 * lib/tls.h: Include <errno.h>.
8502 (glthread_tls_key_init): New macro/function.
8503 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
8504 (glthread_tls_set): New macro/function.
8505 (gl_tls_set): Define as wrapper around glthread_tls_set.
8506 (glthread_tls_key_destroy): New macro/function.
8507 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
8508 Update function declarations.
8509 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
8511 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
8513 2008-08-04 Eric Blake <ebb9@byu.net>
8515 gnumakefile: use space, not TAB, outside of targets
8516 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
8518 2008-08-02 Jim Meyering <meyering@redhat.com>
8520 getdate.y: avoid locale-dependent date parsing failure
8521 In Turkish locales, getdate would fail to recognize keywords
8522 containing a lowercase "i". The solution is not to rely on
8523 locale-sensitive case-conversion.
8524 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
8525 (lookup_word): Use c_toupper in place of toupper.
8526 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
8527 Reported by Vefa Bicakci <bicave@superonline.com> in
8528 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
8529 * modules/getdate (Depends-on): Add c-ctype.
8531 2008-08-02 Bruno Haible <bruno@clisp.org>
8533 * gnulib-tool (func_import): When updating or creating a .gitignore
8534 file, prepend each added line with a slash, and ignore leading slashes
8535 from the existing lines.
8536 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
8538 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8540 Portability fix for GNU make 3.79.1.
8541 * top/GNUmakefile: Avoid 'else COND', which older GNU make
8542 versions do not understand.
8544 2008-08-01 Bruno Haible <bruno@clisp.org>
8546 Work around bug of HP-UX 10.20 cc with -0.0 literal.
8547 * tests/test-isnanf.h (zero): New variable.
8548 (main): Avoid literal -0.0f.
8549 * tests/test-isnand.h (zero): New variable.
8550 (main): Avoid literal -0.0.
8551 * tests/test-isnanl.h (zero): New variable.
8552 (main): Avoid literal -0.0L.
8553 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
8554 (test_float, test_double, test_long_double): Avoid literals -0.0f,
8556 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
8557 (test_signbitd): Avoid literal -0.0.
8558 (test_signbitl): Avoid literal -0.0L.
8559 * tests/test-ceilf1.c (zero): New variable.
8560 (main): Avoid literal -0.0f.
8561 * tests/test-ceill.c (zero): New variable.
8562 (main): Avoid literal -0.0L.
8563 * tests/test-floorf1.c (zero): New variable.
8564 (main): Avoid literal -0.0f.
8565 * tests/test-floorl.c (zero): New variable.
8566 (main): Avoid literal -0.0L.
8567 * tests/test-roundf1.c (zero): New variable.
8568 (main): Avoid literal -0.0f.
8569 * tests/test-round1.c (zero): New variable.
8570 (main): Avoid literal -0.0.
8571 * tests/test-roundl.c (zero): New variable.
8572 (main): Avoid literal -0.0L.
8573 * tests/test-truncf1.c (zero): New variable.
8574 (main): Avoid literal -0.0f.
8575 * tests/test-trunc1.c (zero): New variable.
8576 (main): Avoid literal -0.0.
8577 * tests/test-truncl.c (zero): New variable.
8578 (main): Avoid literal -0.0L.
8579 * tests/test-frexp.c (zero): New variable.
8580 (main): Avoid literal -0.0.
8581 * tests/test-frexpl.c (zero): New variable.
8582 (main): Avoid literal -0.0L.
8583 * tests/test-ldexpl.c (zero): New variable.
8584 (main): Avoid literal -0.0L.
8585 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
8586 (zerod, zerol): New variables.
8587 (test_function): Avoid literals -0.0, -0.0L.
8588 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
8589 (zerod, zerol): New variables.
8590 (test_function): Avoid literals -0.0, -0.0L.
8591 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
8592 (zerod, zerol): New variables.
8593 (test_function): Avoid literals -0.0, -0.0L.
8594 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
8595 (zerod, zerol): New variables.
8596 (test_function): Avoid literals -0.0, -0.0L.
8597 * tests/test-strtod.c (zero): New variable.
8598 (main): Avoid literal -0.0.
8599 Reported by Jonathan C. Patschke <jp@centtech.com>.
8601 2008-07-31 Jim Meyering <meyering@redhat.com>
8603 sha256.h: correct definition of SHA224_DIGEST_SIZE
8604 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
8605 Reported by Paulie Pena IV <paulie4@gmail.com>.
8606 Define as 224 / 8, rather than as a literal.
8607 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
8608 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
8609 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
8611 2008-07-31 Bruno Haible <bruno@clisp.org>
8613 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
8614 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
8615 Reported by Jonathan Patschke <jp@centtech.com>.
8617 2008-07-31 Bruno Haible <bruno@clisp.org>
8619 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
8620 Reported by Paolo Bonzini <bonzini@gnu.org>.
8622 2008-07-30 Eric Blake <ebb9@byu.net>
8624 test-strtod: allow compilation without -lm
8625 * tests/test-strtod.c (main): Avoid link dependence on fabs.
8626 Reported by Dennis Clarke <blastwave@gmail.com>.
8628 2008-07-28 Jim Meyering <meyering@redhat.com>
8630 bootstrap: work also when there are no .po files in po/
8631 * build-aux/bootstrap (update_po_files): Complete the change
8632 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
8634 2008-07-27 Jim Meyering <meyering@redhat.com>
8636 * users.txt: Add zile.
8638 2008-07-26 Ben Pfaff <blp@gnu.org>
8640 Add missing dependencies on new m4/exponent[fdl].m4 files.
8641 * modules/isnanf-nolibm: Add m4/exponentf.m4.
8642 * modules/isnand-nolibm: Add m4/exponentd.m4.
8643 * modules/isnanl-nolibm: Add m4/exponentl.m4.
8644 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
8645 m4/isnan[fdl].m4, because the macros actually used moved.
8646 Reported by Jim Meyering.
8648 2008-07-14 Ben Pfaff <blp@gnu.org>
8651 * lib/isinf.c: New file.
8652 * lib/math.in.h: Define isinf macro if we have decided to replace
8654 * m4/isinf.m4: New file.
8655 * m4/math_h.m4: Initialize and substitute variables for isinf
8657 * modules/isinf: New file.
8658 * modules/isinf-tests: New file.
8659 * modules/math: Add substitutions for new module.
8660 * tests/test-isinf.c: New file.
8661 * doc/posix-functions/isinf.texi: Mention new module.
8662 * MODULES.html.sh: Mention new module.
8664 2008-07-14 Ben Pfaff <blp@gnu.org>
8666 Factor out some macros for use by additional modules.
8667 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
8669 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
8671 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
8673 * m4/exponentf.m4: New file.
8674 * m4/exponentd.m4: New file.
8675 * m4/exponentl.m4: New file.
8676 * modules/isnanf: Use new file m4/exponentf.m4.
8677 * modules/isnand: Use new file m4/exponentd.m4.
8678 * modules/isnanl: Use new file m4/exponentl.m4.
8680 2008-07-23 Ulrich Drepper <drepper@redhat.com>
8682 mktime.c: normalize tp->tm_isdst value to -1/0/1.
8683 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
8684 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
8685 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
8687 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
8688 readlink on platforms without PATH_MAX.
8690 2008-07-21 Eric Blake <ebb9@byu.net>
8692 Warn, not fail, on stale version.
8693 * top/GNUmakefile (_curr-ver): Tone down previous patch.
8695 Don't allow installation with stale devel version number.
8696 * top/GNUmakefile (_is-install-target): New macro.
8697 (_curr-ver): Forbid installation with stale version number.
8699 2008-07-20 Bruno Haible <bruno@clisp.org>
8701 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
8703 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
8705 2008-07-20 Bruno Haible <bruno@clisp.org>
8707 * lib/c-stack.h (c_stack_action): Add documentation.
8708 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
8710 2008-07-20 Bruno Haible <bruno@clisp.org>
8712 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
8713 * modules/readlink (License): Likewise.
8715 2008-07-17 Eric Blake <ebb9@byu.net>
8717 * modules/c-stack (Link): Fix typo.
8719 Make c-stack use libsigsegv, when available.
8720 * modules/c-stack (Depends-on): Add libsigsegv.
8721 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
8723 * lib/c-stack.c (SIGSTKSZ): Define fallback.
8724 (segv_handler, overflow_handler, c_stack_action)
8725 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
8726 implementation when libsigsegv is available, but only when using
8727 the library is necessary.
8728 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
8729 comment, explaining why XSI check fails on Linux.
8730 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
8731 * tests/test-c-stack2.sh: Tweak skip message.
8732 * NEWS: Document new link-time requirements.
8734 2008-07-16 Eric Blake <ebb9@byu.net>
8736 c-stack: Expose false positives when not using libsigsegv.
8737 * modules/c-stack-tests (Files): Expand test.
8738 * tests/test-c-stack.c (main): Add means to conditionally trigger
8739 non-overflow SIGSEGV.
8740 * tests/test-c-stack2.sh: New file.
8742 2008-07-14 Bruno Haible <bruno@clisp.org>
8744 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
8745 Reported by Eric Blake.
8747 2008-07-14 Sam Steingold <sds@gnu.org>
8748 Bruno Haible <bruno@clisp.org>
8750 New module libsigsegv.
8751 * modules/libsigsegv: New file.
8752 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
8754 * MODULES.html.sh (Signal handling): New section.
8756 2008-07-14 Bruno Haible <bruno@clisp.org>
8758 * modules/unictype/ctype-* (Description): Add the word "function".
8759 Improves the resulting doc in MODULES.html.
8761 2008-07-12 Ben Pfaff <blp@gnu.org>
8763 Add longlong module.
8764 * modules/longlong: New file.
8766 2008-07-12 Bruno Haible <bruno@clisp.org>
8768 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
8771 2008-07-10 Ben Pfaff <blp@gnu.org>
8774 * doc/posix-functions/isnan.texi: Mention new module.
8775 * lib/math.in.h: Define isnan macro if we have decided to replace
8777 * m4/isnan.m4: New file.
8778 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
8779 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
8781 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
8783 * m4/math_h.m4: Initialize and substitute variables for isnan
8785 * modules/isnan: New file.
8786 * modules/isnan-tests: New file.
8787 * modules/math: Add substitutions for new module.
8788 * tests/test-isnan.c: New file.
8789 * MODULES.html.sh: Mention new module.
8791 2008-07-10 Ben Pfaff <blp@gnu.org>
8794 * lib/isnanf.m4: New file.
8795 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
8796 (gl_HAVE_ISNANF_IN_LIBM): New macro.
8797 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
8798 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
8799 * modules/isnanf: New file.
8800 * modules/isnanf-tests: New file.
8801 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
8803 * tests/test-isnanf-nolibm.c: factored most of its contents into
8804 new file tests/test-isnanf.h.
8805 * tests/test-isnanf.h: New file.
8806 * tests/test-isnanf.c: New file.
8807 * MODULES.html.sh: Mention new module.
8808 * doc/glibc-functions/isnanf.texi: Mention new module.
8810 2008-07-10 Ben Pfaff <blp@gnu.org>
8813 * lib/isnand.h: New file.
8814 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
8815 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
8816 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
8818 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
8819 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
8820 (gl_HAVE_ISNAND_IN_LIBM): New macro.
8821 * modules/isnand: New file.
8822 * modules/isnand-tests: New file.
8823 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
8825 * tests/test-isnand-nolibm.c: factored most of its contents into
8826 new file tests/test-isnand.h.
8827 * tests/test-isnand.h: New file.
8828 * tests/test-isnand.c: New file.
8829 * MODULES.html.sh: Mention new module.
8831 2008-07-10 Ben Pfaff <blp@gnu.org>
8833 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
8834 * lib/isnand.h: Rename lib/isnand-nolibm.h.
8835 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
8836 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
8837 * modules/isnanf-nolibm: Update references to renamed files.
8838 * modules/isnand-nolibm: Likewise.
8839 * modules/isnanf-nolibm-tests: Likewise.
8840 * modules/isnand-nolibm-tests: Likewise.
8841 * lib/frexp.c: Likewise.
8842 * lib/isfinite.c: Likewise.
8843 * lib/signbitd.c: Likewise.
8844 * lib/signbitf.c: Likewise.
8845 * lib/vasnprintf.c: Likewise.
8846 * tests/test-ceilf1.c: Likewise.
8847 * tests/test-ceilf2.c: Likewise.
8848 * tests/test-floorf1.c: Likewise.
8849 * tests/test-floorf2.c: Likewise.
8850 * tests/test-frexp.c: Likewise.
8851 * tests/test-round1.c: Likewise.
8852 * tests/test-round2.c: Likewise.
8853 * tests/test-roundf1.c: Likewise.
8854 * tests/test-strtod.c: Likewise.
8855 * tests/test-trunc1.c: Likewise.
8856 * tests/test-trunc2.c: Likewise.
8857 * tests/test-truncf1.c: Likewise.
8858 * tests/test-truncf2.c: Likewise.
8859 * NEWS: Mention the renamed header files.
8861 2008-07-11 Jim Meyering <meyering@redhat.com>
8863 vc-list-files: make the last-resort awk code more portable
8864 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
8865 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
8866 does not support it.
8868 2008-07-10 Eric Blake <ebb9@byu.net>
8870 Work with tar's bootstrap.
8871 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
8872 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
8875 2008-07-09 Jim Meyering <meyering@redhat.com>
8877 posix-shell.m4: fix typo that made this test malfunction
8878 * m4/posix-shell.m4: Remove capitalization in variable name.
8880 2008-07-08 Bruno Haible <bruno@clisp.org>
8882 * m4/onceonly.m4: Update comments.
8883 Reported by Ben Pfaff <blp@cs.stanford.edu>.
8885 2008-07-04 Jim Meyering <meyering@redhat.com>
8887 * users.txt: Add vc-dwim.
8888 (bison, coreutils): Use the gitweb URL.
8890 2008-07-03 Jim Meyering <meyering@redhat.com>
8892 * users.txt: Add libffcall. From Sam Steingold.
8894 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
8896 getdate.y: do not ignore TZ with relative day, month or year offset
8897 * lib/getdate.y (get_date): Move the tz-handling block to follow the
8898 relative-date-handling, since otherwise, the latter would clobber the
8899 sole output (an updated Start value) of the tz-handling block.
8900 * tests/test-getdate.c: Tests for the fix
8902 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8904 Recognize 'foo_LIBRARIES += libgnu.a'.
8905 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
8906 makefile snippet has already specified an installation location,
8909 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
8911 getdate.y: factor out common actions
8912 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
8913 Use them in place of open-coded actions.
8915 2008-07-01 Simon Josefsson <simon@josefsson.org>
8917 Add self-test for getdate module.
8918 * modules/getdate-tests: New file.
8919 * tests/test-getdate.c: New file.
8921 2008-06-29 Bruno Haible <bruno@clisp.org>
8923 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
8925 Reported by Sylvain Beucler <beuc@beuc.net>.
8927 2008-06-29 Bruno Haible <bruno@clisp.org>
8929 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
8930 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
8932 2008-06-29 Bruno Haible <bruno@clisp.org>
8934 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
8936 Reported by Sylvain Beucler <beuc@beuc.net>.
8938 2008-06-26 Jim Meyering <meyering@redhat.com>
8940 make several modules depend on the "open" module
8941 This provides slightly increased consistency when opening-for-write
8942 the name of a non-directory spelled with a trailing slash.
8943 * modules/chdir-safer: Likewise.
8944 * modules/chown: Likewise.
8945 * modules/clean-temp: Likewise.
8946 * modules/copy-file: Likewise.
8947 * modules/fchdir: Likewise.
8948 * modules/fcntl-safer: Likewise.
8949 * modules/pipe: Likewise.
8950 * modules/utime: Likewise.
8951 Prompted by Eric Blake and Bruno Haible.
8953 2008-06-24 Andreas Schwab <schwab@suse.de>
8955 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
8956 literals can be used as initializers for global variables.
8958 2008-06-23 Eric Blake <ebb9@byu.net>
8960 Make gnulib-cache.m4 easier to diff.
8961 * gnulib-tool (func_import): Allow newlines when reading cached
8962 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
8964 2008-06-23 Bruno Haible <bruno@clisp.org>
8966 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
8967 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
8968 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
8969 m4/signalblocking.m4.
8970 (gl_PREREQ_SIGACTION): Don't invoke it.
8971 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
8972 gl_PREREQ_SIG_HANDLER_H.
8973 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
8974 Don't check for sigaction here.
8976 2008-06-23 Bruno Haible <bruno@clisp.org>
8978 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
8979 (install_handlers): Don't set the SA_RESETHAND flag.
8981 2008-06-23 Bruno Haible <bruno@clisp.org>
8983 * m4/sigaction.m4: Comment fixes.
8984 * lib/signal.in.h: Likewise.
8986 2008-06-23 Eric Blake <ebb9@byu.net>
8989 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
8991 Avoid SA_ namespace.
8992 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
8993 Reported by Ralf Wildenhues.
8995 Avoid test failure due to SA_RESTORER.
8996 * tests/test-sigaction.c (SA_MASK): New macro.
8997 (main): Avoid failing due to extension flags being set.
8998 Reported by Jim Meyering.
9000 Revert use of sig-handler.h in sigprocmask.c.
9001 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
9002 it requires the existence of struct sigaction.
9003 * lib/sigprocmask.c (handler_t): Restore typedef.
9004 (rpl_signal, old_handlers): Use local type.
9006 2008-06-22 Bruno Haible <bruno@clisp.org>
9008 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
9010 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9012 2008-06-22 Bruno Haible <bruno@clisp.org>
9014 * doc/posix-functions/siginterrupt.texi: Move note.
9016 * lib/signal.in.h (SA_RESTART): New macro.
9017 * lib/sigaction.c: Update comment.
9019 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
9021 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
9022 (gl_PREREQ_SIGPROCMASK): Invoke it.
9023 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
9025 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
9027 * lib/sigprocmask.c: Update a comment.
9029 2008-06-21 Eric Blake <ebb9@byu.net>
9031 Use sigaction module rather than signal().
9032 * modules/c-stack (Depends-on): Add sigaction.
9033 * modules/fatal-signal (Depends-on): Likewise.
9034 * modules/nanosleep (Depends-on): Likewise.
9035 * modules/sigprocmask (Files): Add sig-handler.h.
9036 * modules/sigaction (Files): Likewise.
9037 * lib/sig-handler.h (get_handler): New file, suggested by Paul
9039 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
9040 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
9041 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
9042 (init_fatal_signals): Likewise.
9043 * lib/nanosleep.c (rpl_nanosleep): Likewise.
9044 (siginterrupt): Delete fallback.
9045 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
9047 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
9050 New module sigaction, for mingw.
9051 * modules/sigaction: New module...
9052 * modules/sigaction-tests: ...and its test.
9053 * m4/sigaction.m4: New file.
9054 * lib/sigaction.c: Likewise.
9055 * tests/test-sigaction.c: Likewise.
9056 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
9057 * modules/signal (Makefile.am): Likewise.
9058 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
9060 * doc/posix-headers/signal.texi (signal.h): Mention provided
9062 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
9063 that sigaction is preferable.
9064 * doc/posix-functions/sigaction.texi (sigaction): Mention new
9066 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9069 Improve robustness of sigprocmask by overriding signal.
9070 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
9072 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
9073 (SIGKILL, SIGSTOP): Provide fallbacks.
9074 (rpl_signal): Implement.
9075 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
9076 signal can be called inside handlers.
9078 Fix nanosleep module on mingw.
9079 * modules/nanosleep (Depends-on): Add sys_select.
9080 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
9082 Fix licensing of sigprocmask.
9083 * modules/raise (License): Relicense as LGPL.
9085 2008-06-21 Bruno Haible <bruno@clisp.org>
9087 * lib/propername.c (proper_name_utf8): Don't use the transliterated
9088 result if it contains question marks.
9089 Reported by Michael Geng <linux@michaelgeng.de>.
9091 2008-06-19 Bruno Haible <bruno@clisp.org>
9094 * doc/gnulib.texi: Include updated-stamp.texi.
9095 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
9096 (updated-stamp.texi): New rule.
9097 (gnulib.info): Depend on it.
9098 * doc/.gitignore: Add updated-stamp.texi.
9099 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
9101 2008-06-19 Bruno Haible <bruno@clisp.org>
9103 * doc/Makefile (gnulib.info): Update and simplify dependencies.
9104 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
9106 2008-06-19 Eric Blake <ebb9@byu.net>
9108 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
9109 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
9110 Reported by Stepan Kasal.
9112 2008-06-18 Bruno Haible <bruno@clisp.org>
9114 * lib/fatal-signal.c (init_fatal_signals): Add comment.
9115 Reported by Eric Blake.
9117 2008-06-18 Eric Blake <ebb9@byu.net>
9119 Work around cygwin 1.5.25 strsignal bug.
9120 * tests/test-strsignal.c: Allow for const char *.
9121 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
9123 2008-06-18 Simon Josefsson <simon@josefsson.org>
9125 * users.txt: Update URL to article and add author/date
9128 2008-06-17 Bruno Haible <bruno@clisp.org>
9130 New macro gl_DISABLE_THREADS.
9131 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
9132 if the user did not pass --enable-threads or --disable-threads option.
9133 (gl_DISABLE_THREADS): New macro.
9134 Reported by Eric Blake <ebb9@byu.net>.
9136 2008-06-17 Bruno Haible <bruno@clisp.org>
9138 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
9139 when the macro ignores it.
9140 Based on a patch by Eric Blake <ebb9@byu.net>.
9142 2008-06-17 Bruno Haible <bruno@clisp.org>
9144 * modules/tls (License): Change to LGPLv2+.
9145 Reported by Eric Blake.
9147 2008-06-17 Eric Blake <ebb9@byu.net>
9149 Simplify c-stack prerequisites.
9150 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
9151 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
9152 no longer requires <ucontext.h> to exist. Optimize setrlimit
9154 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
9157 Move c-stack test into testsuite.
9158 * modules/c-stack-tests: New file.
9159 * lib/c-stack.c [DEBUG]: Move test program...
9160 * tests/test-c-stack.c: ...into this new file. Skip rather than
9161 fail test if sigaltstack is lacking.
9162 * tests/test-c-stack.sh: New driver file.
9164 2008-06-16 Eric Blake <ebb9@byu.net>
9166 Use raise module consistently.
9167 * modules/fatal-signal (Depends-on): Add raise.
9168 * modules/sigprocmask (Depends-on): Likewise.
9169 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
9170 * lib/sigprocmask.c (sigprocmask): Likewise.
9171 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9172 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
9174 Fix compliance bug in sigpending.
9175 * lib/sigprocmask.c (sigpending): Return pending array via
9176 parameter, not return value.
9178 2008-06-14 Eric Blake <ebb9@byu.net>
9180 Improve obstack-printf test code.
9181 * tests/test-obstack-printf.c (test_function): Fix comment, and
9182 simplify usage of obstack_* in macros. Add a test for coverage.
9183 Reported by Bruno Haible.
9185 2008-06-14 Bruno Haible <bruno@clisp.org>
9187 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
9188 array size as a constant, not as a const variable.
9189 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
9190 AC_USE_SYSTEM_EXTENSIONS.
9191 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
9192 Test whether the obstack_printf function actually exists.
9193 * modules/obstack-printf (Depends-on): Add extensions.
9194 (Include): Remove obstack.h.
9195 * modules/obstack-printf-posix (Depends-on): Add extensions.
9196 (Include): Remove obstack.h.
9198 2008-06-13 Eric Blake <ebb9@byu.net>
9200 Add obstack-printf and obstack-printf-posix modules.
9201 * modules/obstack-printf: New file.
9202 * modules/obstack-printf-posix: Likewise.
9203 * MODULES.html.sh (Misc): Mention them.
9204 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
9206 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
9208 * modules/stdio (Makefile.am): Accomodate new modules.
9209 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9210 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
9212 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
9214 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
9215 (gl_REPLACE_OBSTACK_PRINTF): New macros
9216 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
9217 * tests/test-obstack-printf.c: New file.
9218 * modules/obstack-printf-tests: Likewise.
9219 * modules/obstack-printf-posix-tests: Likewise.
9221 2008-06-11 Bruno Haible <bruno@clisp.org>
9223 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
9224 * lib/open.c: Include errno.h.
9225 (open): Fail when attempting to write to a file that has a trailing
9227 * tests/test-open.c (main): Test against trailing slash bug.
9228 * doc/posix-functions/open.texi: Mention the trailing slash bug.
9230 2008-06-10 Bruno Haible <bruno@clisp.org>
9232 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
9233 for $? to work inside the trap command, with various /bin/sh-s.
9234 * tests/test-vc-list-files-cvs.sh: Likewise.
9236 2008-06-10 Bruno Haible <bruno@clisp.org>
9238 * lib/acl-internal.h: Don't include gettext.h here.
9239 * lib/set-mode-acl.c: Include gettext.h here.
9240 * lib/copy-acl.c: Likewise.
9242 2008-06-10 Bruno Haible <bruno@clisp.org>
9244 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
9245 * lib/wait-process.c (wait_subprocess): Likewise.
9246 * lib/execute.h (execute): Add termsigp argument.
9247 * lib/execute.c (execute): Likewise.
9248 * lib/csharpcomp.c (compile_csharp_using_pnet,
9249 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
9250 * lib/csharpexec.c (execute_csharp_using_pnet,
9251 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
9252 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
9253 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
9254 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
9255 is_jikes_present): Update.
9256 * lib/javaexec.c (execute_java_class): Update.
9257 * lib/javaversion.c (execute_and_read_line): Update.
9258 * NEWS: Document the changes.
9259 Reported by Eric Blake.
9261 2008-06-10 Eric Blake <ebb9@byu.net>
9263 Add missing include.
9264 * tests/test-strstr.c (includes): Add <signal.h>.
9265 * tests/test-strcasestr.c (includes): Likewise.
9266 * tests/test-memmem.c (includes): Likewise.
9268 2008-06-10 Bruno Haible <bruno@clisp.org>
9270 * lib/wait-process.c (wait_subprocess): Add an assertion.
9272 2008-06-10 Bruno Haible <bruno@clisp.org>
9274 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
9276 2008-06-10 Bruno Haible <bruno@clisp.org>
9278 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
9280 * tests/test-strcasestr.c (main): Likewise.
9281 * tests/test-strstr.c (main): Likewise.
9283 2008-06-09 Bruno Haible <bruno@clisp.org>
9285 Work around the Solaris 10 ACE ACLs ABI change.
9286 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
9287 declare if ACL_NO_TRIVIAL is present.
9288 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
9289 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
9290 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
9291 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
9292 define if ACL_NO_TRIVIAL is present.
9293 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
9294 and use the current ABI.
9295 (file_has_acl): Use same #if condition as elsewhere.
9296 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
9297 in use, and use the current ABI.
9298 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
9299 Reported by Jim Meyering.
9301 2008-06-09 Eric Blake <ebb9@byu.net>
9303 Work around environments that (stupidly) ignore SIGALRM.
9304 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
9305 before using alarm().
9306 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9307 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9308 Reported by Ian Beckwith <ianb@erislabs.net>.
9310 Produce autobuild blurb earlier in log.
9311 * modules/autobuild (configure.ac-early): Move AB_INIT here.
9313 2008-06-09 Jim Meyering <meyering@redhat.com>
9314 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
9316 utimens.c: correct kernel bug work-around
9317 OndÅ™ej VaÅ¡Ãk found that the invalid return value of 280 indicates
9318 failure, not success, and the kernel bug we're trying to work
9319 around affects not just the utimensat call, but also the fallback
9321 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
9323 [HAVE_FUTIMENS]: Use the same work-around, here.
9325 2008-06-09 Jim Meyering <meyering@redhat.com>
9327 add more guards around definition of ACE_-related code
9328 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
9329 ALLOW and ACE_OWNER are also defined.
9331 2008-06-08 Bruno Haible <bruno@clisp.org>
9333 * lib/acl-internal.h: Add me as co-author.
9334 * lib/file-has-acl.c: Likewise.
9335 * lib/set-mode-acl.c: Likewise.
9336 * lib/copy-acl.c: Likewise.
9338 2008-06-08 Bruno Haible <bruno@clisp.org>
9340 Add support for AIX ACLs.
9341 * lib/acl-internal.h (acl_nontrivial): New declaration.
9342 * lib/file-has-acl.c (acl_nontrivial): New function.
9343 (file_has_acl): Add implementation using AIX 4 ACL API.
9344 * lib/set-mode-acl.c (qset_acl): Likewise.
9345 * lib/copy-acl.c (qcopy_acl): Likewise.
9347 2008-06-08 Bruno Haible <bruno@clisp.org>
9349 Add support for HP-UX ACLs.
9350 * lib/acl-internal.h (acl_nontrivial): New declaration.
9351 * lib/file-has-acl.c (acl_nontrivial): New function.
9352 (file_has_acl): Add implementation using HP-UX 11 ACL API.
9353 * lib/set-mode-acl.c (qset_acl): Likewise.
9354 * lib/copy-acl.c (qcopy_acl): Likewise.
9356 2008-06-08 Bruno Haible <bruno@clisp.org>
9358 Add support for Cygwin ACLs.
9359 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
9360 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
9361 the chmod_or_fchmod call.
9362 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
9364 2008-06-08 Bruno Haible <bruno@clisp.org>
9366 Fix bug with setuid modes in Solaris 10+ code.
9367 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
9368 succeeded, when the mode contains some special bits.
9370 2008-06-08 Bruno Haible <bruno@clisp.org>
9372 Add support for Solaris 7..10 ACLs.
9373 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
9375 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
9377 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
9378 * lib/set-mode-acl.c (qset_acl): Likewise.
9379 * lib/copy-acl.c (qcopy_acl): Likewise.
9381 2008-06-08 Bruno Haible <bruno@clisp.org>
9383 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
9385 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
9386 (acl_access_nontrivial): Remove MacOS X case.
9387 (file_has_acl): Use acl_extended_nontrivial.
9388 * lib/copy-acl.c (qcopy_acl): Likewise.
9390 2008-06-08 Bruno Haible <bruno@clisp.org>
9392 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
9394 2008-06-08 Jim Meyering <meyering@redhat.com>
9396 * modules/acl (Maintainer): Add Bruno Haible.
9398 2008-06-07 Bruno Haible <bruno@clisp.org>
9400 Improve support for Tru64 ACLs.
9401 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
9404 2008-06-07 Bruno Haible <bruno@clisp.org>
9406 Add support for MacOS X ACLs.
9407 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
9408 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
9409 * lib/set-mode-acl.c (qset_acl): Likewise.
9410 * lib/copy-acl.c (qcopy_acl): Likewise.
9412 2008-06-07 Bruno Haible <bruno@clisp.org>
9414 Fix memory leak introduced on 2008-05-22.
9415 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
9418 2008-06-07 Bruno Haible <bruno@clisp.org>
9420 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
9421 to construct an empty ACL.
9423 2008-06-07 Bruno Haible <bruno@clisp.org>
9425 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
9427 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
9429 2008-06-07 Bruno Haible <bruno@clisp.org>
9431 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
9432 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
9434 2008-06-07 Bruno Haible <bruno@clisp.org>
9436 * doc/posix-functions/_setjmp.texi: Explain the use of this function
9437 regardless of POSIX.
9438 * doc/posix-functions/_longjmp.texi: Likewise.
9439 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
9440 SystemV platform in this case.
9442 2008-06-06 Eric Blake <ebb9@byu.net>
9444 Document abort() bugs.
9445 * doc/posix-functions/abort.texi (abort): Mention anomalies.
9447 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
9448 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
9450 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
9451 siglongjmp, but only as a macro.
9452 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
9454 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
9456 Tweak documentation to cover cygwin argz bugs.
9457 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
9458 argz bug fix; no code change needed since no cygwin releases
9459 occurred between the last fix and the bug being tested.
9460 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
9461 module and recently fixed cygwin bugs.
9462 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
9463 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
9464 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
9465 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
9466 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
9468 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
9469 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
9470 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
9471 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
9472 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
9473 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
9476 Avoid gcc warning on cygwin.
9477 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
9478 !ACL_NO_TRIVIAL]: Avoid unused variable.
9480 2008-06-05 Eric Blake <ebb9@byu.net>
9482 Be tolerant of UNKNOWN version in gnulib-tool test dir.
9483 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
9484 git-version-gen fails to come up with a version.
9485 Reported by Simon Josefsson.
9487 2008-06-05 Jim Meyering <meyering@redhat.com>
9488 Paul Eggert <eggert@cs.ucla.edu>
9490 utimens.c: work around a probable Linux kernel bug
9491 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
9492 appears to be a kernel bug that causes utimensat to return 280
9493 instead of 0, indicating success.
9495 2008-06-04 Bruno Haible <bruno@clisp.org>
9497 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
9500 2008-06-04 Bruno Haible <bruno@clisp.org>
9502 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
9503 * lib/file-has-acl.c (acl_access_nontrivial): New function.
9504 (file_has_acl): Use it. Save errno afterwards.
9505 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
9507 2008-06-03 Bruno Haible <bruno@clisp.org>
9509 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
9510 draft code. Simplify #ifs.
9511 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
9512 Put Solaris code after POSIX-draft code. Fix comments regarding
9513 Solaris 10, HP-UX. Mention Cygwin.
9514 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
9516 2008-06-03 Eric Blake <ebb9@byu.net>
9518 Provide fallback for older kernels.
9519 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
9520 Provide runtime fallback if kernel lacks support.
9521 Reported by Mike Frysinger.
9523 2008-06-02 Bruno Haible <bruno@clisp.org>
9525 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
9528 2008-06-02 Bruno Haible <bruno@clisp.org>
9530 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
9531 * lib/copy-acl.c (qcopy_acl): Update comment.
9533 2008-06-02 Bruno Haible <bruno@clisp.org>
9535 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
9538 2008-06-02 Bruno Haible <bruno@clisp.org>
9540 * tests/test-file-has-acl.sh: Use different code for Cygwin.
9541 * tests/test-set-mode-acl.sh: Likewise.
9542 * tests/test-copy-acl.sh: Likewise.
9543 * tests/test-copy-file.sh: Likewise.
9545 2008-06-02 Bruno Haible <bruno@clisp.org>
9547 * tests/test-file-has-acl.sh: Remove unused code.
9549 2008-06-01 Bruno Haible <bruno@clisp.org>
9551 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
9552 (copy_acl): Just a wrapper around qcopy_acl that emits the error
9554 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
9556 2008-06-01 Bruno Haible <bruno@clisp.org>
9558 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
9559 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
9560 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
9562 * modules/acl-tests (configure.ac): Remove tests now contained in
9565 2008-06-02 Jim Meyering <meyering@redhat.com>
9567 announce-gen: use a better key-server host name
9568 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
9569 it may be more consistently reliable. Suggested by Werner Koch
9570 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
9572 2008-06-01 Bruno Haible <bruno@clisp.org>
9574 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
9575 Reported by Voroskoi Andras <voroskoi@gmail.com>.
9577 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
9579 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
9581 2008-06-01 Bruno Haible <bruno@clisp.org>
9584 * tests/test-file-has-acl.sh: New file.
9585 * tests/test-file-has-acl.c: New file.
9586 * tests/test-set-mode-acl.sh: New file.
9587 * tests/test-set-mode-acl.c: New file.
9588 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
9589 * tests/test-copy-acl.c: New file.
9590 * modules/acl-tests: New file, based on modules/copy-file-tests.
9591 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
9592 (Depends-on): Add acl-tests.
9593 (configure.ac): Remove checks.
9594 (Makefile.am): Don't create test-sameacls program here any more.
9596 2008-06-01 Bruno Haible <bruno@clisp.org>
9598 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
9599 * tests/test-sameacls.c: Include progname.h.
9600 (main): Invoke set_program_name. Portability fixes for MacOS X,
9603 2008-06-01 Bruno Haible <bruno@clisp.org>
9605 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
9607 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
9609 2008-06-01 Bruno Haible <bruno@clisp.org>
9611 * modules/rpmatch (Depends-on): Add strdup.
9613 2008-06-01 Bruno Haible <bruno@clisp.org>
9615 * lib/pipe.c: Include unistd-safer.h.
9616 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
9617 * modules/pipe (Depends-on): Add unistd-safer.
9619 2008-05-30 Simon Josefsson <simon@josefsson.org>
9621 * modules/autobuild (configure.ac): Call AB_INIT.
9623 2008-05-30 Simon Josefsson <simon@josefsson.org>
9625 * tests/test-getaddrinfo.c: Don't print debug messages by default.
9626 Suggested by Bruno Haible <bruno@clisp.org>.
9628 2008-05-30 Simon Josefsson <simon@josefsson.org>
9630 * tests/test-base64.c: Cast size_t to unsigned long when invoking
9631 printf. Use %lu instead of %d. Reported by Bruno Haible
9634 2008-05-29 Eric Blake <ebb9@byu.net>
9636 Prefer new POSIX 200x interfaces over futimesat.
9637 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
9638 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
9640 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
9642 2008-05-28 Bruno Haible <bruno@clisp.org>
9644 * modules/stpcpy (License): Change to LGPLv2+.
9645 Requested by David Lutterkort <dlutter@redhat.com>.
9647 2008-05-27 Bruno Haible <bruno@clisp.org>
9649 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
9651 Reported by Jose E. Marchesi <jemarch@gnu.org>.
9653 2008-05-27 Bruno Haible <bruno@clisp.org>
9655 * modules/iconv_open (Link): New section, from module 'iconv'.
9656 * modules/striconv (Link): Likewise.
9657 * modules/striconveh (Link): Likewise.
9658 * modules/xstriconv (Link): Likewise.
9659 * modules/unicodeio (Link): Likewise.
9660 * modules/propername (Link): Likewise.
9661 Reported by Jim Meyering.
9663 2008-05-26 Jim Meyering <meyering@redhat.com>
9665 sha256: do not artificially restrict buffer length to be < 2^32
9666 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
9668 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
9671 avoid unaligned access errors, e.g., on sparc
9672 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
9673 direct access through a possibly-unaligned uint64* pointer.
9674 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
9675 direct access through a possibly-unaligned uint32* pointer.
9676 Prompted by this patch from Tom "spot" Callaway:
9677 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
9679 sha512.c: fix typo in comment
9680 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
9682 2008-05-25 Bruno Haible <bruno@clisp.org>
9684 * lib/set-mode-acl.c: Renamed from lib/acl.c.
9685 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
9686 (Makefile.am): Update lib_SOURCES.
9688 2008-05-25 Bruno Haible <bruno@clisp.org>
9690 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
9692 2008-05-25 Jim Meyering <meyering@redhat.com>
9694 useless-if-before-free: freed expr may have white-space differences
9695 * build-aux/useless-if-before-free: Recognize cases in which the
9696 freed expression differs from the tested one in embedded white
9697 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
9698 $1 was used, so we can't make any regexp shy. Improved tests now
9701 useless-if-before-free: accept white space in the expression.
9702 * build-aux/useless-if-before-free: For now, any white space
9703 in the expression must be identical in the free argument.
9705 useless-if-before-free: efficiency tweak
9706 * build-aux/useless-if-before-free: Make the expression-matching
9708 Make the *outer* regexp shy, not the expr-matching one.
9710 update code-in-comment to accept cast of free arg
9711 * build-aux/useless-if-before-free: Update regexp.
9713 2008-05-25 Bruno Haible <bruno@clisp.org>
9715 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
9716 * modules/copy-file-tests (Files, Makefile.am): Update.
9717 * tests/test-copy-file.c (func_test_copy): Update.
9719 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
9721 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
9723 2008-05-23 Bruno Haible <bruno@clisp.org>
9725 Improve support for ACLs on OSF/1.
9726 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
9727 Remove fallback for unknown flavors of ACLs.
9729 2008-05-22 Bruno Haible <bruno@clisp.org>
9731 Add support for ACLs on OSF/1.
9732 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
9734 (acl_free_text): New macro fallback.
9735 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
9737 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
9738 acl_free_text function. Require AC_C_INLINE.
9740 2008-05-22 Bruno Haible <bruno@clisp.org>
9742 Make copy_acl work on MacOS X 10.5.
9743 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
9744 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
9745 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
9746 If MODE_INSIDE_ACL, don't assume that every system has the same text
9747 representation for ACLs as FreeBSD.
9748 * lib/copy-acl.c (copy_acl): Add support for platforms with
9750 * lib/file-has-acl.c (file_has_acl): Likewise.
9751 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
9752 FreeBSD, MacOS X, or IRIX, respectively.
9754 2008-05-22 Bruno Haible <bruno@clisp.org>
9756 * lib/acl.h: Don't include <sys/acl.h>.
9757 (GETACLCNT): Move fallback to lib/acl-internal.h.
9758 * lib/acl-internal.h: Include <sys/acl.h> here.
9759 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
9761 2008-05-22 Bruno Haible <bruno@clisp.org>
9763 Split off copy_acl function to separate file.
9764 * lib/copy-acl.c: New file, extracted from lib/acl.c.
9765 * lib/acl.c (copy_acl): Moved function to separate file.
9766 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
9767 * modules/acl (Files): Add lib/copy-acl.c.
9768 (Makefiles.am): Augment lib_SOURCES.
9770 2008-05-22 Bruno Haible <bruno@clisp.org>
9772 * modules/copy-file-tests: New file.
9773 * tests/test-copy-file.sh: New file.
9774 * tests/test-copy-file.c: New file.
9775 * tests/test-copy-file-sameacls.c: New file.
9777 2008-05-22 Eric Blake <ebb9@byu.net>
9780 * tests/test-memcmp.c (main): Pass NULL indirectly.
9782 2008-05-21 Bruno Haible <bruno@clisp.org>
9784 Add reference doc about ACLs.
9785 * doc/acl-resources.txt: New file.
9786 * doc/acl-cygwin.txt: New file.
9788 2008-05-21 Bruno Haible <bruno@clisp.org>
9790 Avoid one more warning from gcc.
9791 * lib/vasnprintf.c (IF_LINT): Update comments.
9792 (VASNPRINTF): Use it also for the 'prefix' array initializer.
9794 2008-05-21 Jim Meyering <meyering@redhat.com>
9796 avoid a warning from gcc
9797 * lib/vasnprintf.c (IF_LINT): Define.
9798 (scale10_round_decimal_long_double):
9799 Use it to avoid a "may be used uninitialized" warning.
9800 (scale10_round_decimal_double): Likewise.
9802 2008-05-21 Simon Josefsson <simon@josefsson.org>
9804 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
9807 2008-05-20 Bruno Haible <bruno@clisp.org>
9809 * tests/test-memcmp.c (main): Test also the sign of the result. Test
9810 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
9812 2008-05-20 Simon Josefsson <simon@josefsson.org>
9814 * modules/memcmp-tests: New file.
9815 * tests/test-memcmp.c: New file.
9817 2008-05-19 Bruno Haible <bruno@clisp.org>
9819 * modules/propername (Notice, configure.ac): Put quoted "..." into
9821 * lib/propername.h: Update comments accordingly.
9822 Reported by Eric Blake.
9824 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
9826 * modules/getpass-gnu (Depends-on): Add fseeko.
9828 2008-05-19 Simon Josefsson <simon@josefsson.org>
9830 * modules/base64-tests: New file.
9832 2008-05-19 Bo Borgerson <gigabo@gmail.com>
9834 * lib/base64.c (base64_decode_ctx): If a decode context structure
9835 was passed in use it to ignore newlines. If a context structure
9836 was _not_ passed in, continue to treat newlines as garbage (this
9837 is the historical behavior). Formerly base64_decode.
9838 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
9839 takes a decode context structure.
9840 * lib/base64.h (base64_decode): Macro for four-argument calls.
9841 (base64_decode_alloc): Likewise.
9842 * lib/base64.c (base64_decode_ctx): If a decode context structure
9843 was passed in use it to ignore newlines. If a context structure
9844 was _not_ passed in, continue to treat newlines as garbage (this
9845 is the historical behavior). Formerly base64_decode.
9846 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
9847 takes a decode context structure.
9848 * lib/base64.h (base64_decode): Macro for four-argument calls.
9849 (base64_decode_alloc): Likewise.
9851 2008-05-19 Jim Meyering <meyering@redhat.com>
9853 avoid a warning from gcc
9854 * lib/trim.c (IF_LINT): Define.
9855 (trim2): Use it to avoid a "may be used uninitialized" warning.
9858 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
9860 2008-05-19 Bruno Haible <bruno@clisp.org>
9862 * doc/glibc-functions/getpass.texi: Document limits of other
9865 2008-05-19 Simon Josefsson <simon@josefsson.org>
9866 Bruno Haible <bruno@clisp.org>
9868 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
9870 2008-05-18 Bruno Haible <bruno@clisp.org>
9872 * modules/propername: New file, from GNU gettext.
9873 * lib/propername.h: New file, from GNU gettext.
9874 * lib/propername.c: New file, from GNU gettext.
9875 * MODULES.html.sh (Internationalization functions): Add propername.
9877 2008-05-16 Jim Meyering <meyering@redhat.com>
9878 Bruno Haible <bruno@clisp.org>
9880 Avoid some warnings from "gcc -Wshadow".
9881 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
9883 2008-05-15 Eric Blake <ebb9@byu.net>
9885 Extend previous patch to cygwin 1.7.0.
9886 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
9887 fast implementation in cygwin >= 1.7.0.
9888 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
9889 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9891 2008-05-15 Bruno Haible <bruno@clisp.org>
9893 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
9894 implementation in glibc >= 2.9.
9895 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
9896 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9898 2008-05-15 Bruno Haible <bruno@clisp.org>
9900 * MODULES.html.sh (Internationalization functions): Remove linebreak.
9901 (Unicode string functions): Add unilbrk/*.
9902 Reported by Karl Berry.
9904 2008-05-15 Eric Blake <ebb9@byu.net>
9906 Fix violation of <stdbool.h> replacement in regex.
9907 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
9908 * lib/regexec.c (re_search_internal): Likewise.
9909 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
9911 2008-05-15 Jim Meyering <meyering@redhat.com>
9913 avoid distracting test output when git or cvs is not found
9914 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
9915 * tests/test-vc-list-files-git.sh: Likewise.
9917 2008-05-15 Eric Blake <ebb9@byu.net>
9919 Glibc finally accepted the memmem speedup code, bugzilla #5514.
9920 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
9922 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9923 * doc/posix-functions/strstr.texi (strstr): Likewise.
9924 * lib/str-two-way.h (MAX): Sychronize with glibc.
9926 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
9928 * lib/regcomp.c (optimize_utf8): Add a note on why we test
9930 (calc_first): Initialize constraint field.
9931 (duplicate_node_closure): Use it instead of special casing ANCHORS.
9933 (duplicate_node): Merge constraint field for all node types.
9934 (calc_eclosure_iter): Look at constraint field for all node types.
9935 * lib/regex_internal.c (create_cd_newstate): Don't look at
9938 2008-05-14 Bruno Haible <bruno@clisp.org>
9940 Help GCC to do better code generation.
9941 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
9942 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
9943 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
9944 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
9945 Declare with attribute 'malloc' if supported.
9947 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
9949 use "echo STR|wc -c" rather than unportable "expr length STR"
9950 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
9951 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
9953 2008-05-14 Jim Meyering <meyering@redhat.com>
9955 use dd ibs=$n count=1 ... rather than less-portable head -c$n
9956 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
9957 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
9958 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
9961 2008-05-14 Eric Blake <ebb9@byu.net>
9963 Avoid quadratic growth in gl_LIBSOURCES.
9964 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
9965 Suggested by Bruno Haible.
9968 * modules/xmemdup0-tests: New file.
9969 * tests/test-xmemdup0.c: Likewise.
9971 2008-05-13 Eric Blake <ebb9@byu.net>
9973 Split xmemdup0 into its own module.
9974 * modules/xmemdup0: New file.
9975 * lib/xmemdup0.h: Likewise.
9976 * lib/xmemdup0.c: Likewise.
9977 * MODULES.html.sh (Memory management functions): Add xmemdup0.
9978 * lib/xalloc.h (xmemdup0): Remove.
9979 * lib/xmalloc.c (xmemdup0): Likewise.
9981 2008-05-13 Eric Blake <ebb9@byu.net>
9982 Bruno Haible <bruno@clisp.org>
9984 Reduce number of forks required during autoconf.
9985 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
9986 and gl_LIBSOURCES_DIR.
9987 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
9988 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
9990 <m4_foreach_w>: Move...
9991 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
9993 2008-05-13 Eric Blake <ebb9@byu.net>
9995 * gnulib-tool: Fix various comment typos.
9997 2008-05-12 Bruno Haible <bruno@clisp.org>
9999 Tailor the linebreaking algorithm.
10000 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
10002 2008-05-12 Bruno Haible <bruno@clisp.org>
10004 Update to Unicode 5.0.0.
10005 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
10006 LBP_JV, LBP_JT. Redistribute values.
10007 (unilbrk_table): Change size.
10008 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
10009 Unicode TR#14 rev. 22.
10010 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
10011 LBP_JV, LBP_JT. Redistribute values.
10012 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
10013 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
10015 * lib/unilbrk/lbrkprop1.h: Regenerated.
10016 * lib/unilbrk/lbrkprop2.h: Regenerated.
10017 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
10018 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
10019 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
10021 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
10023 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
10025 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10026 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10027 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10028 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
10029 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
10030 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
10032 2008-05-11 Bruno Haible <bruno@clisp.org>
10034 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
10036 2008-05-11 Bruno Haible <bruno@clisp.org>
10038 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
10039 * modules/unilbrk/gen-lbrk: New file.
10041 2008-05-11 Bruno Haible <bruno@clisp.org>
10043 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
10044 * m4/sha512.m4 (gl_SHA512): Likewise.
10046 2008-05-11 Jim Meyering <meyering@redhat.com>
10048 New modules: crypto/sha256, crypto/sha512 (from coreutils)
10049 * modules/crypto/sha256: New file.
10050 * modules/crypto/sha512: Likewise.
10051 * lib/sha256.c: Likewise.
10052 * lib/sha256.h: Likewise.
10053 * lib/sha512.c: Likewise.
10054 * lib/sha512.h: Likewise.
10055 * lib/u64.h: Likewise.
10056 * m4/sha256.m4: Likewise.
10057 * m4/sha512.m4: Likewise.
10058 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
10060 2008-05-10 Bruno Haible <bruno@clisp.org>
10062 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
10063 (Input/Output <stdio.h>): Add xprintf.
10064 (Signal handling <signal.h>): Add strsignal.
10065 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
10066 (Core language properties): Add func.
10067 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
10068 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
10070 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
10071 (Input/output): New section.
10072 (File system functions): Add openat-die, stat-macros.
10073 (Networking functions): Add sockets.
10074 (Unicode string functions): Add unictype/*.
10075 (Support for building libraries and executables): Add gperf.
10076 (Support for building documentation): Add agpl-3.0.
10077 (Misc): Add nocrash.
10079 2008-05-10 Bruno Haible <bruno@clisp.org>
10081 * modules/unictype/gen-ctype: New file.
10083 2008-05-10 Jim Meyering <meyering@redhat.com>
10085 Make chdir-safer.c more efficient on a system with no symlinks.
10086 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
10087 also if ELOOP is zero. Suggested by Bruno Haible.
10089 Make chdir-safer.c slightly safer.
10090 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
10091 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
10093 Avoid compile failure on systems without ELOOP (like mingw).
10094 * lib/chdir-safer.c (ELOOP): Define if not already defined.
10095 Reported by Bruno Haible.
10097 2008-05-10 Bruno Haible <bruno@clisp.org>
10099 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
10100 (is_utf8_encoding): Use a case-insensitive comparison.
10101 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
10104 2008-05-10 Bruno Haible <bruno@clisp.org>
10106 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
10107 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
10108 * lib/unilbrk/ulc-common.h (iconv_string_length,
10109 iconv_string_keeping_offsets): Remove declarations.
10110 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
10111 Don't include <iconv.h>, streq.h, xsize.h.
10112 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
10114 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
10115 <iconv.h>, streq.h, xsize.h.
10116 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
10118 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
10119 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
10120 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
10121 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
10123 2008-05-10 Bruno Haible <bruno@clisp.org>
10125 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
10126 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
10128 * modules/unilbrk/u32-width-linebreaks-tests: New file.
10129 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
10131 * modules/unilbrk/u16-width-linebreaks-tests: New file.
10132 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
10134 * modules/unilbrk/u8-width-linebreaks-tests: New file.
10135 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
10137 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
10138 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
10140 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
10141 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
10143 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
10144 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
10146 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
10147 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
10149 2008-05-10 Bruno Haible <bruno@clisp.org>
10151 Split up 'linebreak' module.
10152 * lib/unilbrk.h: New file, based on lib/linebreak.h.
10153 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
10154 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
10156 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
10157 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
10158 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
10160 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
10162 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
10164 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
10165 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
10166 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
10168 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
10170 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
10172 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
10174 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
10176 * modules/unilbrk/base: New file.
10177 * modules/unilbrk/tables: New file.
10178 * modules/unilbrk/u8-possible-linebreaks: New file.
10179 * modules/unilbrk/u16-possible-linebreaks: New file.
10180 * modules/unilbrk/u32-possible-linebreaks: New file.
10181 * modules/unilbrk/ulc-common: New file.
10182 * modules/unilbrk/ulc-possible-linebreaks: New file.
10183 * modules/unilbrk/u8-width-linebreaks: New file.
10184 * modules/unilbrk/u16-width-linebreaks: New file.
10185 * modules/unilbrk/u32-width-linebreaks: New file.
10186 * modules/unilbrk/ulc-width-linebreaks: New file.
10187 * lib/linebreak.h: Remove file.
10188 * lib/linebreak.c: Remove file.
10189 * m4/linebreak.m4: Remove file.
10190 * modules/linebreak: Remove file.
10191 * NEWS: Mention the changes.
10193 2008-05-09 Eric Blake <ebb9@byu.net>
10196 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
10198 * lib/xmalloc.c (xmemdup0): New C implementation.
10200 2008-05-08 Bruno Haible <bruno@clisp.org>
10202 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
10204 2008-05-07 Eric Blake <ebb9@byu.net>
10206 Support cross-compilation of <wctype.h>.
10207 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
10210 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
10212 * build-aux/vc-list-files: Add support for bzr.
10214 2008-05-03 Jim Meyering <meyering@redhat.com>
10216 avoid failed assertion with tight malloc
10217 * tests/test-getndelim2.c: Correct an off-by-one assertion.
10219 2008-05-03 Simon Josefsson <simon@josefsson.org>
10221 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
10222 are needed from arpa/inet.h.
10223 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
10224 Reported by Bruno Haible.
10226 2008-05-02 Jim Meyering <meyering@redhat.com>
10228 avoid compilation error on FreeBSD 6
10229 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
10231 2008-05-01 Jim Meyering <meyering@redhat.com>
10233 useless-if-before-free: correct --help's exit status description
10234 * build-aux/useless-if-before-free (usage): Like grep, exit 0
10235 for one or more matches, etc. Reported by Bruno Haible.
10237 vc-list-files: make the stand-alone gnulib test work
10238 * modules/vc-list-files-tests (configure.ac):
10239 Define and AC_SUBST abs_aux_dir.
10240 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
10241 $(abs_top_srcdir) to each script and having each of them
10242 duplicate the work of setting PATH, set PATH here, using
10243 the new variable, abs_aux_dir instead.
10244 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
10245 * tests/test-vc-list-files-git.sh: Likewise.
10246 Reported by Bruno Haible.
10248 2008-05-01 Bruno Haible <bruno@clisp.org>
10250 * lib/getndelim2.c (getndelim2): Fix newsize computation during
10251 reallocation. Rename 'done' to 'found_delimiter'.
10253 2008-05-01 Jim Meyering <meyering@redhat.com>
10255 vc-list-files: accommodate /bin/sh like the one from Solaris 10
10256 * build-aux/vc-list-files: Use `...`, not $(...).
10258 2008-04-30 Jim Meyering <meyering@redhat.com>
10260 add tests for vc-list-files
10261 * modules/vc-list-files-tests: New module.
10262 * tests/test-vc-list-files-cvs.sh: New file.
10263 * tests/test-vc-list-files-git.sh: New file.
10265 avoid a warning from gcc
10266 * lib/getndelim2.c (IF_LINT): Define.
10267 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
10269 vc-list-files: work properly with build-aux/cvsu, too
10270 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
10271 to all cvs-based clauses.
10273 vc-list-files: work properly in the CVS+awk case, too
10274 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
10276 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
10277 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
10278 take more than one file argument, so . Add quotes, just in case $dir
10279 ever contains a shell meta-character. Prompted by Soren Hansen in
10280 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
10282 2008-04-29 Eric Blake <ebb9@byu.net>
10284 Optimize getndelim2 to use block operations when possible.
10285 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
10286 freadseek, and memchr2.
10287 * lib/getndelim2.c (getndelim2): Use them for block reads.
10289 2008-04-29 Bruno Haible <bruno@clisp.org>
10291 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
10292 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
10293 * modules/inet_ntop (Depends-on): Add extensions.
10294 * modules/inet_pton (Depends-on): Likewise.
10295 Reported by Simon Josefsson.
10297 2008-04-29 Jim Meyering <meyering@redhat.com>
10299 When the is more than one match in a block, match all of them.
10300 * build-aux/useless-if-before-free: Iterate through each block
10301 until there are no more matches.
10303 Fix broken useless-if-before-free script.
10304 * build-aux/useless-if-before-free: Fix typo: missing "?" after
10305 the expression to match cast of argument to free-like function.
10307 2008-04-29 Eric Blake <ebb9@byu.net>
10310 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
10312 2008-04-29 Jim Meyering <meyering@redhat.com>
10314 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
10315 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
10316 by gnulib to exist and to declare e.g., inet_ntop.
10317 Don't include "inet_ntop.h", now removed.
10319 * m4/arpa_inet_h.m4: Remove trailing blanks.
10321 2008-04-29 Eric Blake <ebb9@byu.net>
10323 Silence valgrind on safe reads beyond potential array bounds.
10324 * lib/rawmemchr.valgrind: New file.
10325 * lib/strchrnul.valgrind: Likewise.
10326 * modules/rawmemchr (Files): Distribute new file.
10327 * modules/strchrnul (Files): Likewise.
10328 Suggested by Bruno Haible.
10330 2008-04-29 Bruno Haible <bruno@clisp.org>
10332 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
10333 (inet_ntop, inet_pton): Change portability warning's wording.
10334 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
10335 Invoke gl_CHECK_NEXT_HEADERS.
10336 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
10337 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
10339 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
10340 * modules/arpa_inet (Description): No longer only for systems that
10342 (Depends-on): Add include_next.
10343 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
10346 2008-04-29 Jim Meyering <meyering@redhat.com>
10348 * modules/mkdir (License): Re-license as LGPLv2+.
10350 2008-04-29 Bruno Haible <bruno@clisp.org>
10352 * modules/rawmemchr (Maintainer): Set to Eric.
10353 * modules/strchrnul (Maintainer): Likewise.
10355 2008-04-29 Simon Josefsson <simon@josefsson.org>
10357 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
10358 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
10360 * modules/arpa_inet (arpa/inet.h): Use them.
10362 2008-04-28 Eric Blake <ebb9@byu.net>
10365 * modules/getndelim2-tests: New file.
10366 * tests/test-getndelim2.c: Likewise.
10367 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
10369 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
10371 * MODULES.html.sh: Document new module.
10373 2008-04-20 Bruno Haible <bruno@clisp.org>
10375 * lib/c-stack.c (die): Use raise.
10376 * modules/c-stack (Depends-on): Add raise.
10378 2008-04-28 Bruno Haible <bruno@clisp.org>
10380 Expect rpmatch to be declared.
10381 * lib/yesno.c (rpmatch): Remove declaration.
10384 * lib/stdlib.in.h (rpmatch): New declaration.
10385 * lib/rpmatch.c: Include <stdlib.h> first.
10386 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
10387 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
10388 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
10390 * modules/rpmatch (Depends-on): Add stdlib, extensions.
10391 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10392 (Include): Set to <stdlib.h>.
10393 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
10395 * NEWS: Document the change.
10397 2008-04-28 Bruno Haible <bruno@clisp.org>
10399 Change rpmatch to use nl_langinfo when appropriate.
10400 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
10402 (localized_pattern): New function/macro.
10403 (try): Remove match, nomatch arguments. Copy the pattern into safe
10404 memory before caching it.
10405 (rpmatch): Use localized_pattern. Add translator comments.
10406 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
10407 Suggested by Eric Blake.
10408 * modules/rpmatch (Depends-on): Add stdbool.
10410 2008-04-28 Eric Blake <ebb9@byu.net>
10412 Add rawmemchr module, matching glibc.
10413 * modules/string (Makefile.am): New indicator.
10414 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
10415 * lib/string.in.h (rawmemchr): Declare when appropriate.
10416 * modules/rawmemchr: New file.
10417 * m4/rawmemchr.m4: Likewise.
10418 * lib/rawmemchr.c: Likewise.
10419 * modules/rawmemchr-tests: Likewise.
10420 * tests/test-rawmemchr.c: Likewise.
10421 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
10423 * modules/strchrnul (Depends-on): Add rawmemchr.
10424 * lib/strchrnul.c (strchrnul): Optimize a corner case.
10426 Whitespace cleanup.
10427 * tests/test-strchrnul.c: Reindent.
10428 * lib/strchrnul.c: Likewise.
10430 Optimize and test strchrnul.
10431 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
10432 * modules/strchrnul-tests: New file.
10433 * tests/test-strchrnul.c: Likewise.
10435 Remove intprops dependency.
10436 * modules/memchr (Depends-on): Remove intprops.
10437 * modules/memrchr (Depends-on): Likewise.
10438 * modules/memchr2 (Depends-on): Likewise.
10439 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
10440 * lib/memrchr.c (__memrchr): Likewise.
10441 * lib/memrchr2.c (memchr2): Likewise.
10442 Reported by Simon Josefsson.
10444 2008-04-28 Simon Josefsson <simon@josefsson.org>
10446 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
10447 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10449 2008-04-28 Simon Josefsson <simon@josefsson.org>
10451 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
10453 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
10455 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
10457 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
10459 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
10461 * m4/inet_pton.m4: Don't check for header files.
10463 * m4/inet_ntop.m4: Don't check for header files.
10465 2008-04-28 Simon Josefsson <simon@josefsson.org>
10467 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
10468 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
10469 trigger for cygwin).
10470 Reported by Bruno Haible <bruno@clisp.org>.
10472 2008-04-28 Bruno Haible <bruno@clisp.org>
10474 * doc/posix-functions/strdup.texi: Mention mingw problem.
10476 2008-04-27 Bruno Haible <bruno@clisp.org>
10478 * modules/stat-time-tests (Depends-on): Add sleep.
10479 * tests/test-stat-time.c (force_unlink): New function.
10481 (test_mtime): Remove the ctime related tests.
10482 (test_ctime): New function, containing the ctime related tests.
10483 (main): Call test_ctime, except on native Windows platforms.
10485 2008-04-27 Bruno Haible <bruno@clisp.org>
10487 * lib/rpmatch.c (rpmatch): Add some comments.
10488 Reported by James Youngman <jay@gnu.org>.
10490 2008-04-27 Bruno Haible <bruno@clisp.org>
10492 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
10495 2008-04-27 Bruno Haible <bruno@clisp.org>
10497 Make test-yesno.sh work on mingw.
10498 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
10499 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
10500 (main): Set stdin to binary mode.
10501 * modules/yesno-tests (Depends-on): Add binary-io.
10503 2008-04-27 Bruno Haible <bruno@clisp.org>
10505 Fix 'isfinite' on x86, x86_64, ia64 platforms.
10506 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
10507 argument that lie outside the IEEE 854 domain.
10508 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
10509 (gl_ISFINITE): Use it.
10510 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
10512 2008-04-27 Bruno Haible <bruno@clisp.org>
10514 Allow local renaming in config.h.
10515 * lib/memrchr.c (memrchr): Don't undefine outside libc.
10517 2008-04-27 Bruno Haible <bruno@clisp.org>
10519 * lib/memchr.c (__memchr): Change type of 'i'.
10520 * lib/memchr2.c (memchr2): Likewise.
10522 2008-04-26 Eric Blake <ebb9@byu.net>
10523 and Bruno Haible <bruno@clisp.org>
10525 Optimize and test memrchr.
10526 * modules/memrchr (Depends-on): Add intprops.
10527 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
10528 * modules/memrchr-tests: New file.
10529 * tests/test-memrchr.c: New file.
10531 2008-04-26 Bruno Haible <bruno@clisp.org>
10533 Add tentative support for DragonFly BSD.
10534 * lib/stdio-impl.h: Add macros for DragonFly BSD.
10535 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
10537 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
10538 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
10539 * lib/fpurge.c (fpurge): Likewise.
10540 * lib/freadable.c (freaadable): Likewise.
10541 * lib/freadahead.c (freadahead): Likewise.
10542 * lib/freading.c (freading): Likewise.
10543 * lib/freadptr.c (freadptr): Likewise.
10544 * lib/freadseek.c (freadptrinc): Likewise.
10545 * lib/fseeko.c (fseeko): Likewise.
10546 * lib/fseterr.c (fseterr): Likewise.
10547 * lib/fwritable.c (fwritable): Likewise.
10548 * lib/fwriting.c (fwriting): Likewise.
10550 2008-04-26 Bruno Haible <bruno@clisp.org>
10552 * lib/stdio-impl.h: New file.
10553 * lib/fbufmode.c: Include stdio-impl.h.
10554 (fbufmode): Use fp_, remove redundant #defines.
10555 * lib/fflush.c: Include stdio-impl.h.
10556 (clear_ungetc_buffer): Remove redundant #defines.
10557 * lib/fpurge.c: Include stdio-impl.h.
10558 (fpurge): Remove redundant #defines.
10559 * lib/freadable.c: Include stdio-impl.h.
10560 (freadable): Remove redundant #defines.
10561 * lib/freadahead.c: Include stdio-impl.h.
10562 (freadahead): Remove redundant #defines.
10563 * lib/freading.c: Include stdio-impl.h.
10564 (freading): Remove redundant #defines.
10565 * lib/freadptr.c: Include stdio-impl.h.
10566 (freadptr): Remove redundant #defines.
10567 * lib/freadseek.c: Include stdio-impl.h.
10568 (freadptrinc): Remove redundant #defines.
10569 * lib/fseeko.c: Include stdio-impl.h.
10570 (rpl_fseeko): Remove redundant #defines.
10571 * lib/fseterr.c: Include stdio-impl.h.
10572 (fseterr): Remove redundant #defines.
10573 * lib/fwritable.c: Include stdio-impl.h.
10574 (fwritable: Remove redundant #defines.
10575 * lib/fwriting.c: Include stdio-impl.h.
10576 (fwriting): Remove redundant #defines.
10577 * modules/fbufmode (Files): Add lib/stdio-impl.h.
10578 * modules/fflush (Files): Likewise.
10579 * modules/fpurge (Files): Likewise.
10580 * modules/freadable (Files): Likewise.
10581 * modules/freadahead (Files): Likewise.
10582 * modules/freading (Files): Likewise.
10583 * modules/freadptr (Files): Likewise.
10584 * modules/freadseek (Files): Likewise.
10585 * modules/fseeko (Files): Likewise.
10586 * modules/fseterr (Files): Likewise.
10587 * modules/fwritable (Files): Likewise.
10588 * modules/fwriting (Files): Likewise.
10590 2008-04-26 Bruno Haible <bruno@clisp.org>
10592 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
10593 restore_seek_optimization, update_fpos_cache): New functions, extracted
10595 (rpl_fflush): Use them.
10596 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
10597 (gl_REPLACE_FFLUSH): Use it.
10599 2008-04-26 Bruno Haible <bruno@clisp.org>
10601 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
10603 * tests/test-xstrtoimax.sh: Likewise.
10604 * tests/test-xstrtoumax.sh: Likewise.
10605 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10607 2008-04-26 Bruno Haible <bruno@clisp.org>
10609 * modules/memchr-tests: New file.
10610 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
10612 2008-04-26 Eric Blake <ebb9@byu.net>
10613 Bruno Haible <bruno@clisp.org>
10615 * lib/memchr.c: Include intprops.h.
10616 (__memchr): Optimize parallel detection of matching bytes. Rename local
10617 variables. Add explanatory comments.
10619 2008-04-26 Bruno Haible <bruno@clisp.org>
10621 Fix module 'memchr', broken since 2000-10-28.
10622 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
10624 2008-04-26 Bruno Haible <bruno@clisp.org>
10626 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
10629 2008-04-25 Eric Blake <ebb9@byu.net>
10631 Use native fstatat on cygwin 1.7.0.
10632 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
10635 2008-04-23 Eric Blake <ebb9@byu.net>
10637 Improve memchr2 performance.
10638 * lib/memchr2.c (memchr2): Further optimize parallel detection of
10640 * modules/memchr2 (Depends-on): Use intprops.h.
10642 2008-04-23 Simon Josefsson <simon@josefsson.org>
10644 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
10645 an inline function instead of a CPP macro. Patch by Ben Pfaff
10646 <blp@cs.stanford.edu>.
10648 2008-04-23 Simon Josefsson <simon@josefsson.org>
10650 * lib/arpa_inet.in.h: New file.
10652 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
10653 (Makefile.am): Sed in substitute header file.
10655 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
10656 gl_ARPA_INET_MODULE_INDICATOR. Use them.
10658 * modules/inet_ntop (configure.ac): Use
10659 gl_ARPA_INET_MODULE_INDICATOR.
10661 * modules/inet_pton (configure.ac): Use
10662 gl_ARPA_INET_MODULE_INDICATOR.
10664 2008-04-22 Jim Meyering <meyering@redhat.com>
10666 * modules/verify (License): Re-license as LGPLv2+.
10668 2008-04-22 Simon Josefsson <simon@josefsson.org>
10670 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
10671 parameter to void* as per POSIX standard (MinGW uses char*).
10673 2008-04-21 Bruno Haible <bruno@clisp.org>
10675 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
10676 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
10677 Define to replacements if REPLACE_ISWCNTRL is 1.
10678 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
10679 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
10680 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
10681 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
10683 * doc/posix-functions/iswalpha.texi: Likewise.
10684 * doc/posix-functions/iswblank.texi: Likewise.
10685 * doc/posix-functions/iswcntrl.texi: Likewise.
10686 * doc/posix-functions/iswdigit.texi: Likewise.
10687 * doc/posix-functions/iswgraph.texi: Likewise.
10688 * doc/posix-functions/iswlower.texi: Likewise.
10689 * doc/posix-functions/iswprint.texi: Likewise.
10690 * doc/posix-functions/iswpunct.texi: Likewise.
10691 * doc/posix-functions/iswspace.texi: Likewise.
10692 * doc/posix-functions/iswupper.texi: Likewise.
10693 * doc/posix-functions/iswxdigit.texi: Likewise.
10694 Reported by Alain Guibert.
10696 2008-04-21 Bruno Haible <bruno@clisp.org>
10698 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
10699 Patch by Alain Guibert.
10701 2008-04-21 Bruno Haible <bruno@clisp.org>
10703 Fix test failures on mingw.
10704 * tests/test-xstrtol.c (print_no_progname): New function.
10705 (main): Install it in error_print_progname hook.
10706 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
10707 * tests/test-xstrtoimax.sh: Likewise.
10708 * tests/test-xstrtoumax.sh: Likewise.
10710 2008-04-21 Bruno Haible <bruno@clisp.org>
10712 Fix test failure on mingw.
10713 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
10715 2008-04-21 Bruno Haible <bruno@clisp.org>
10717 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
10718 Actually assign a value.
10720 2008-04-20 Bruno Haible <bruno@clisp.org>
10722 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
10724 * lib/canonicalize.c (canonicalize_file_name): Elide if the
10725 'canonicalize-lgpl' module is also used.
10726 * lib/canonicalize-lgpl.c: Undo last change.
10727 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
10729 2008-04-20 Bruno Haible <bruno@clisp.org>
10731 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
10732 config.h. Provide _mkdir based fallback for mingw.
10733 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
10734 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
10735 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
10736 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
10737 rather than defining mkdir in config.h.
10738 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
10739 (gl_SYS_STAT_H_DEFAULTS): New macro.
10740 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
10741 HAVE_IO_H any more.
10742 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
10743 HAVE_DECL_MKDIR and HAVE_IO_H.
10745 2008-04-20 Bruno Haible <bruno@clisp.org>
10747 * lib/isapipe.c: Port to native Windows platforms.
10749 2008-04-20 Bruno Haible <bruno@clisp.org>
10751 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
10753 2008-04-21 Eric Blake <ebb9@byu.net>
10755 Work around preprocessors that don't handle UINTMAX_MAX.
10756 * lib/memchr2.c (memchr2): Avoid embedded #if.
10757 Reported by Alain Guibert, fix suggested by Bruno Haible.
10759 2008-04-21 Simon Josefsson <simon@josefsson.org>
10761 * doc/posix-functions/strftime.texi (strftime): Explain better
10762 Windows incompatibility. Suggested by Micah Cowan
10763 <micah@cowan.name>.
10765 2008-04-20 Bruno Haible <bruno@clisp.org>
10767 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
10770 2008-04-20 Bruno Haible <bruno@clisp.org>
10772 Fix test failure on platforms with non-GNU iconv.
10773 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
10774 (U_TO_U8): Use it, rather than u16_to_u8.
10775 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
10776 units at the end of the input string.
10777 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
10779 2008-04-20 Bruno Haible <bruno@clisp.org>
10781 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
10782 when the resulting length is 0.
10783 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
10785 2008-04-20 Bruno Haible <bruno@clisp.org>
10787 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
10789 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
10791 2008-04-20 Bruno Haible <bruno@clisp.org>
10793 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
10794 * modules/tsearch-tests (configure.ac): Test for initstate function.
10796 2008-04-20 Bruno Haible <bruno@clisp.org>
10798 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
10799 for nlink_t if missing.
10800 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
10802 2008-04-19 Bruno Haible <bruno@clisp.org>
10804 Work around snprintf bug on Linux libc5.
10805 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
10806 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10808 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10809 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
10811 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
10812 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
10813 * modules/snprintf (Files): Add m4/printf.m4.
10814 * modules/vsnprintf (Files): Likewise.
10815 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
10816 * doc/posix-functions/vsnprintf.texi: Likewise.
10818 2008-04-19 Bruno Haible <bruno@clisp.org>
10820 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
10821 from 0.0058 to less than 10^-7.
10823 2008-04-19 Bruno Haible <bruno@clisp.org>
10825 Fix rounding when a precision is given.
10826 * lib/vasnprintf.c (is_borderline): New function.
10827 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
10829 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
10831 * tests/test-vasprintf-posix.c (test_function): Likewise.
10832 * tests/test-snprintf-posix.h (test_function): Likewise.
10833 * tests/test-sprintf-posix.h (test_function): Likewise.
10834 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
10835 * tests/test-printf-posix.h (test_function): Likewise.
10836 * tests/test-printf-posix.output: Update.
10837 Reported by John Darrington <john@darrington.wattle.id.au> via
10838 Ben Pfaff <blp@cs.stanford.edu>.
10840 2008-04-18 Simon Josefsson <simon@josefsson.org>
10842 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
10843 Suggested by Bruno Haible <bruno@clisp.org>.
10845 2008-04-17 Bruno Haible <bruno@clisp.org>
10847 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
10848 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
10850 Patch by Bruce Merry <bmerry@gmail.com>.
10852 2008-04-17 Simon Josefsson <simon@josefsson.org>
10854 * doc/posix-functions/strftime.texi (strftime): Mention that %e
10855 doesn't work under Windows.
10857 2008-04-16 Bruno Haible <bruno@clisp.org>
10859 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
10861 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
10862 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
10863 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
10864 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
10865 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
10866 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
10867 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
10869 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
10870 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
10871 Northern Sotho, Uighur.
10873 2008-04-16 Bruno Haible <bruno@clisp.org>
10875 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
10876 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
10877 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
10878 Reported by Daniel Bergström <daniel@octocode.com>.
10880 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
10881 Bruno Haible <bruno@clisp.org>
10883 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
10885 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
10886 New functions, mostly extracted from gl_locale_name_default.
10887 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
10889 2008-04-16 Eric Blake <ebb9@byu.net>
10891 Adjust strtod detection to catch glibc 2.7 bug.
10892 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
10893 Reported by John Gatewood Ham.
10895 2008-04-16 Bruno Haible <bruno@clisp.org>
10897 Add tentative support for Linux libc5.
10898 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
10899 * lib/fpurge.c (fpurge): Likewise.
10900 * lib/freadable.c (freadable): Likewise.
10901 * lib/freadahead.c (freadahead): Likewise.
10902 * lib/freading.c (freading): Likewise.
10903 * lib/freadptr.c (freadptr): Likewise.
10904 * lib/freadseek.c (freadptrinc): Likewise.
10905 * lib/fseeko.c (rpl_fseeko): Likewise.
10906 * lib/fseterr.c (fseterr): Likewise.
10907 * lib/fwritable.c (fwritable): Likewise.
10908 * lib/fwriting.c (fwriting): Likewise.
10909 Reported by Alain Guibert <alguibert+bts@free.fr>.
10911 2008-04-15 Bruno Haible <bruno@clisp.org>
10913 * modules/mathl (configure.ac): Define module indicator.
10915 2008-04-15 Bruno Haible <bruno@clisp.org>
10917 * lib/logl.c (logl): Remove unused variables.
10919 2008-04-15 Bruno Haible <bruno@clisp.org>
10921 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
10924 2008-04-15 Bruno Haible <bruno@clisp.org>
10926 * lib/trim.c (trim2): Fix argument of isspace() macro.
10928 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
10930 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
10932 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
10934 2008-04-14 Bruno Haible <bruno@clisp.org>
10936 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
10937 AC_LANG_PROGRAM argument.
10938 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
10939 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
10940 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10941 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
10942 * m4/math_h.m4 (gl_MATH_H): Likewise.
10943 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
10944 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10945 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
10946 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
10947 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10948 * m4/regex.m4 (gl_REGEX): Likewise.
10949 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
10950 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
10951 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10952 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
10953 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
10954 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10955 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10956 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10958 2008-04-14 Jim Meyering <meyering@redhat.com>
10960 test-strtod: fix typos: s/abs/fabs/
10961 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
10963 2008-04-13 Bruno Haible <bruno@clisp.org>
10965 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
10966 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
10967 module is also used and while not building the reloc-wrapper.
10969 2008-04-13 Bruno Haible <bruno@clisp.org>
10971 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
10973 2008-04-13 Bruno Haible <bruno@clisp.org>
10975 Fix AIX compilation failure introduced on 2008-04-02.
10976 * tests/test-frexp.c (exp): Undefine before redefining.
10977 * tests/test-frexpl.c (exp): Likewise.
10979 2008-04-13 Bruno Haible <bruno@clisp.org>
10981 Work around a HP-UX stdio bug.
10982 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
10983 * tests/test-ftello.c (main): Likewise.
10984 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
10985 * doc/posix-functions/ftello.texi: Likewise.
10987 2008-04-13 Bruno Haible <bruno@clisp.org>
10989 Make test-signbit pass on HP-UX/hppa.
10990 * tests/test-signbit.c (minus_zerol): New variable.
10991 (test_signbitl): Use it.
10993 2008-04-13 Bruno Haible <bruno@clisp.org>
10995 Make truncl work on OSF/1 4.0.
10996 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
10997 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
10998 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
10999 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
11001 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
11003 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
11005 2008-04-13 Bruno Haible <bruno@clisp.org>
11007 * lib/unictype.h: Remove trailing comma from enumeration definitions.
11009 2008-04-13 Bruno Haible <bruno@clisp.org>
11011 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
11012 expression, so as to avoid HP-UX 11 cc compiler bug.
11014 2008-04-13 Bruno Haible <bruno@clisp.org>
11016 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
11018 2008-04-13 Bruno Haible <bruno@clisp.org>
11020 * lib/git-merge-changelog.c: Remove empty declaration outside of
11023 2008-04-13 Bruno Haible <bruno@clisp.org>
11025 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
11027 2008-04-13 Bruno Haible <bruno@clisp.org>
11029 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
11030 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
11031 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
11032 also if it exists but lacks definitions of the SHUT_* macros.
11033 * modules/sys_socket (Description): Update.
11034 Reported by Elbert Pol <e.pol@chello.nl>.
11036 2008-04-13 Bruno Haible <bruno@clisp.org>
11038 * lib/localcharset.c (OS2): Don't redefine if already defined.
11039 Reported by Elbert Pol <e.pol@chello.nl>.
11041 2008-04-13 Bruno Haible <bruno@clisp.org>
11043 * lib/binary-io.h [__EMX__]: Include <io.h>.
11044 Reported by Elbert Pol <e.pol@chello.nl>.
11046 2008-04-12 Bruno Haible <bruno@clisp.org>
11048 * lib/fpucw.h: Enable the definitions also for x86_64.
11049 Needed for NetBSD/x86_64.
11050 Reported by Thomas Klausner <tk@giga.or.at>.
11052 2008-04-12 Bruno Haible <bruno@clisp.org>
11054 * tests/test-strtod.c: Include isnand.h.
11055 (main): Use isnand instead of isnan.
11056 Reported by Jim Meyering.
11058 2008-04-12 Bruno Haible <bruno@clisp.org>
11060 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
11061 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
11063 2008-04-12 Jim Meyering <meyering@redhat.com>
11065 * m4/math_h.m4 (gl_MATH_H): Fix typos.
11067 2008-04-12 Bruno Haible <bruno@clisp.org>
11069 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
11070 Reported by Elbert Pol <e.pol@chello.nl>.
11072 2008-04-12 Eric Blake <ebb9@byu.net>
11074 Work around Solaris 10 math.h bug.
11075 * m4/math_h.m4 (gl_MATH_H): Check for bug.
11076 (gl_MATH_H_DEFAULTS): Set up default.
11077 * modules/math (Makefile.am): Replace new indicators.
11078 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
11079 * tests/test-math.c (main): Test this.
11080 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
11081 * doc/posix-headers/math.texi (math.h): Mention bug.
11082 Reported by Nelson H. F. Beebe and Jim Meyering.
11084 2008-04-11 Bruno Haible <bruno@clisp.org>
11086 Adapt to future versions of Apple GCC.
11087 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
11088 Reported by Peter O'Gorman <peter@pogma.com>.
11090 2008-04-11 Bruno Haible <bruno@clisp.org>
11092 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
11094 2008-04-11 Bruno Haible <bruno@clisp.org>
11096 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
11098 * modules/getaddrinfo-tests (Makefile.am): Define
11099 test_getaddrinfo_LDADD.
11101 2008-04-11 Bruno Haible <bruno@clisp.org>
11103 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
11104 (init): Fix syntax error.
11105 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
11108 2008-04-11 Bruno Haible <bruno@clisp.org>
11110 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
11111 * modules/glob (Depends-on): Add stdbool.
11113 2008-04-11 Bruno Haible <bruno@clisp.org>
11115 * lib/trim.c: Include <string.h>.
11117 2008-04-11 Eric Blake <ebb9@byu.net>
11119 Avoid compile failure on OS/2.
11120 * lib/regex_internal.h (internal_function): Disable optimization
11121 on OS/2 (__EMX__), where it caused compiler error.
11122 Reported by Elbert Pol.
11124 2008-04-11 Bruno Haible <bruno@clisp.org>
11126 Flush the standard error stream before aborting. Needed on mingw.
11127 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
11128 * tests/test-array_list.c (ASSERT): Likewise.
11129 * tests/test-array_oset.c (ASSERT): Likewise.
11130 * tests/test-avltree_list.c (ASSERT): Likewise.
11131 * tests/test-avltree_oset.c (ASSERT): Likewise.
11132 * tests/test-avltreehash_list.c (ASSERT): Likewise.
11133 * tests/test-binary-io.c (ASSERT): Likewise.
11134 * tests/test-byteswap.c (ASSERT): Likewise.
11135 * tests/test-c-ctype.c (ASSERT): Likewise.
11136 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
11137 * tests/test-c-strcasestr.c (ASSERT): Likewise.
11138 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
11139 * tests/test-c-strstr.c (ASSERT): Likewise.
11140 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
11141 * tests/test-canonicalize.c (ASSERT): Likewise.
11142 * tests/test-carray_list.c (ASSERT): Likewise.
11143 * tests/test-ceilf1.c (ASSERT): Likewise.
11144 * tests/test-ceilf2.c (ASSERT): Likewise.
11145 * tests/test-ceill.c (ASSERT): Likewise.
11146 * tests/test-count-one-bits.c (ASSERT): Likewise.
11147 * tests/test-fbufmode.c (ASSERT): Likewise.
11148 * tests/test-fflush2.c (ASSERT): Likewise.
11149 * tests/test-floorf1.c (ASSERT): Likewise.
11150 * tests/test-floorf2.c (ASSERT): Likewise.
11151 * tests/test-floorl.c (ASSERT): Likewise.
11152 * tests/test-fopen.c (ASSERT): Likewise.
11153 * tests/test-fpending.c (ASSERT): Likewise.
11154 * tests/test-fprintf-posix.c (ASSERT): Likewise.
11155 * tests/test-fpurge.c (ASSERT): Likewise.
11156 * tests/test-freadable.c (ASSERT): Likewise.
11157 * tests/test-freadahead.c (ASSERT): Likewise.
11158 * tests/test-freading.c (ASSERT): Likewise.
11159 * tests/test-freadptr.c (ASSERT): Likewise.
11160 * tests/test-freadptr2.c (ASSERT): Likewise.
11161 * tests/test-freadseek.c (ASSERT): Likewise.
11162 * tests/test-freopen.c (ASSERT): Likewise.
11163 * tests/test-frexp.c (ASSERT): Likewise.
11164 * tests/test-frexpl.c (ASSERT): Likewise.
11165 * tests/test-fseek.c (ASSERT): Likewise.
11166 * tests/test-fseeko.c (ASSERT): Likewise.
11167 * tests/test-fstrcmp.c (ASSERT): Likewise.
11168 * tests/test-ftell.c (ASSERT): Likewise.
11169 * tests/test-ftello.c (ASSERT): Likewise.
11170 * tests/test-func.c (ASSERT): Likewise.
11171 * tests/test-fwritable.c (ASSERT): Likewise.
11172 * tests/test-fwriting.c (ASSERT): Likewise.
11173 * tests/test-getdelim.c (ASSERT): Likewise.
11174 * tests/test-getline.c (ASSERT): Likewise.
11175 * tests/test-i-ring.c (ASSERT): Likewise.
11176 * tests/test-iconv-utf.c (ASSERT): Likewise.
11177 * tests/test-iconv.c (ASSERT): Likewise.
11178 * tests/test-isfinite.c (ASSERT): Likewise.
11179 * tests/test-isnand.c (ASSERT): Likewise.
11180 * tests/test-isnanf.c (ASSERT): Likewise.
11181 * tests/test-isnanl.h (ASSERT): Likewise.
11182 * tests/test-ldexpl.c (ASSERT): Likewise.
11183 * tests/test-linked_list.c (ASSERT): Likewise.
11184 * tests/test-linkedhash_list.c (ASSERT): Likewise.
11185 * tests/test-localename.c (ASSERT): Likewise.
11186 * tests/test-lseek.c (ASSERT): Likewise.
11187 * tests/test-mbscasecmp.c (ASSERT): Likewise.
11188 * tests/test-mbscasestr1.c (ASSERT): Likewise.
11189 * tests/test-mbscasestr2.c (ASSERT): Likewise.
11190 * tests/test-mbscasestr3.c (ASSERT): Likewise.
11191 * tests/test-mbscasestr4.c (ASSERT): Likewise.
11192 * tests/test-mbschr.c (ASSERT): Likewise.
11193 * tests/test-mbscspn.c (ASSERT): Likewise.
11194 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
11195 * tests/test-mbspbrk.c (ASSERT): Likewise.
11196 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
11197 * tests/test-mbsrchr.c (ASSERT): Likewise.
11198 * tests/test-mbsspn.c (ASSERT): Likewise.
11199 * tests/test-mbsstr1.c (ASSERT): Likewise.
11200 * tests/test-mbsstr2.c (ASSERT): Likewise.
11201 * tests/test-mbsstr3.c (ASSERT): Likewise.
11202 * tests/test-memchr2.c (ASSERT): Likewise.
11203 * tests/test-memmem.c (ASSERT): Likewise.
11204 * tests/test-open.c (ASSERT): Likewise.
11205 * tests/test-printf-frexp.c (ASSERT): Likewise.
11206 * tests/test-printf-frexpl.c (ASSERT): Likewise.
11207 * tests/test-printf-posix.c (ASSERT): Likewise.
11208 * tests/test-quotearg.c (ASSERT): Likewise.
11209 * tests/test-rbtree_list.c (ASSERT): Likewise.
11210 * tests/test-rbtree_oset.c (ASSERT): Likewise.
11211 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
11212 * tests/test-round1.c (ASSERT): Likewise.
11213 * tests/test-roundf1.c (ASSERT): Likewise.
11214 * tests/test-roundl.c (ASSERT): Likewise.
11215 * tests/test-signbit.c (ASSERT): Likewise.
11216 * tests/test-sleep.c (ASSERT): Likewise.
11217 * tests/test-snprintf-posix.c (ASSERT): Likewise.
11218 * tests/test-snprintf.c (ASSERT): Likewise.
11219 * tests/test-sprintf-posix.c (ASSERT): Likewise.
11220 * tests/test-stat-time.c (ASSERT): Likewise.
11221 * tests/test-strcasestr.c (ASSERT): Likewise.
11222 * tests/test-strerror.c (ASSERT): Likewise.
11223 * tests/test-striconv.c (ASSERT): Likewise.
11224 * tests/test-striconveh.c (ASSERT): Likewise.
11225 * tests/test-striconveha.c (ASSERT): Likewise.
11226 * tests/test-strsignal.c (ASSERT): Likewise.
11227 * tests/test-strstr.c (ASSERT): Likewise.
11228 * tests/test-strtod.c (ASSERT): Likewise.
11229 * tests/test-trunc1.c (ASSERT): Likewise.
11230 * tests/test-trunc2.c (ASSERT): Likewise.
11231 * tests/test-truncf1.c (ASSERT): Likewise.
11232 * tests/test-truncf2.c (ASSERT): Likewise.
11233 * tests/test-truncl.c (ASSERT): Likewise.
11234 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
11235 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
11236 * tests/test-vasnprintf.c (ASSERT): Likewise.
11237 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
11238 * tests/test-vasprintf.c (ASSERT): Likewise.
11239 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
11240 * tests/test-vprintf-posix.c (ASSERT): Likewise.
11241 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
11242 * tests/test-vsnprintf.c (ASSERT): Likewise.
11243 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
11244 * tests/test-wcwidth.c (ASSERT): Likewise.
11245 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
11246 * tests/test-xprintf-posix.c (ASSERT): Likewise.
11247 * tests/test-xvasprintf.c (ASSERT): Likewise.
11248 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
11249 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
11250 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
11251 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
11252 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
11253 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
11254 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
11255 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
11256 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
11257 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
11258 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
11259 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
11260 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
11261 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
11262 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
11263 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
11264 * tests/unictype/test-block_list.c (ASSERT): Likewise.
11265 * tests/unictype/test-block_of.c (ASSERT): Likewise.
11266 * tests/unictype/test-block_test.c (ASSERT): Likewise.
11267 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
11268 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
11269 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
11270 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
11271 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
11272 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
11273 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
11274 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
11275 * tests/unictype/test-combining.c (ASSERT): Likewise.
11276 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
11277 * tests/unictype/test-digit.c (ASSERT): Likewise.
11278 * tests/unictype/test-mirror.c (ASSERT): Likewise.
11279 * tests/unictype/test-numeric.c (ASSERT): Likewise.
11280 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
11281 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
11282 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
11283 * tests/unictype/test-scripts.c (ASSERT): Likewise.
11284 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
11285 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
11286 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
11287 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
11288 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
11289 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
11290 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
11291 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
11292 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
11293 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
11294 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
11295 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
11296 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
11297 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
11298 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
11299 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
11300 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
11301 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
11302 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
11303 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
11304 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
11305 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
11306 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
11307 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
11308 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
11309 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
11310 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
11311 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
11312 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
11313 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
11314 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
11315 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
11316 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
11317 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
11318 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
11319 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
11320 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
11321 Reported by Eric Blake.
11323 2008-04-11 Bruno Haible <bruno@clisp.org>
11325 * lib/wchar.in.h: Tweak comment.
11327 2008-04-11 Bruno Haible <bruno@clisp.org>
11329 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
11330 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
11332 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
11334 2008-04-11 Bruno Haible <bruno@clisp.org>
11336 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
11338 2008-04-11 Simon Josefsson <simon@josefsson.org>
11340 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
11341 of attempting to use non-existing /dev/*random. Based on patch
11342 from Adam Strzelecki <ono@java.pl> in
11343 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
11345 2008-04-08 Bruno Haible <bruno@clisp.org>
11347 Add tentative support for emx+gcc.
11348 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
11349 * lib/fpurge.c (fpurge): Likewise.
11350 * lib/freadable.c (freadable): Likewise.
11351 * lib/freadahead.c (freadahead): Likewise.
11352 * lib/freading.c (freading): Likewise.
11353 * lib/freadptr.c (freadptr): Likewise.
11354 * lib/freadseek.c (freadptrinc): Likewise.
11355 * lib/fseeko.c (rpl_fseeko): Likewise.
11356 * lib/fseterr.c (fseterr): Likewise.
11357 * lib/fwritable.c (fwritable): Likewise.
11358 * lib/fwriting.c (fwriting): Likewise.
11359 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
11361 2008-04-09 Eric Blake <ebb9@byu.net>
11363 Avoid some autoconf warnings.
11364 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
11365 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
11366 * m4/afs.m4 (gl_AFS): Likewise.
11367 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
11368 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
11369 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
11370 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
11371 (gl_INTEGER_TYPE_SUFFIX): Likewise.
11372 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
11373 (AC_CHECK_DECLS_ONCE): Likewise.
11375 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
11376 gnulib-tool requires autoconf 2.59 or better.
11377 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
11379 2008-04-08 Eric Blake <ebb9@byu.net>
11381 Use 'git describe --match' if present (added in git 1.5.5).
11382 * build-aux/git-version-gen: Limit result to tags that match 'v*'
11385 2008-04-08 Bruno Haible <bruno@clisp.org>
11387 Add tentative support for OpenServer.
11388 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
11390 * lib/fpurge.c (fpurge): Likewise.
11391 * lib/freadable.c (freadable): Likewise.
11392 * lib/freadahead.c (freadahead): Likewise.
11393 * lib/freading.c (freading): Likewise.
11394 * lib/freadptr.c (freadptr): Likewise.
11395 * lib/freadseek.c (freadptrinc): Likewise.
11396 * lib/fseeko.c (rpl_fseeko): Likewise.
11397 * lib/fseterr.c (fseterr): Likewise.
11398 * lib/fwritable.c (fwritable): Likewise.
11399 * lib/fwriting.c (fwriting): Likewise.
11400 Reported by Roger Cornelius <rac@tenzing.org> and
11401 Brian K. White <brian@aljex.com>.
11403 2008-04-06 Jim Meyering <meyering@redhat.com>
11405 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
11407 2008-04-06 Bruno Haible <bruno@clisp.org>
11409 Avoid possible error with non-ASCII bytes in UTF-8 locales.
11410 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
11411 * tests/test-printf-posix.sh: Likewise.
11412 * tests/test-vfprintf-posix.sh: Likewise.
11413 * tests/test-vprintf-posix.sh: Likewise.
11414 * tests/test-xprintf-posix.sh: Likewise.
11416 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11418 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
11419 hide error from 'ls', needed on OS/2.
11420 Report by Elbert Pol <elbert.pol@gmail.com>.
11422 2008-04-04 Eric Blake <ebb9@byu.net>
11424 Make test-fseeko.c failures meaningful.
11425 * tests/test-fseeko.c: Print line number on failure.
11426 * tests/test-fseek.c: Likewise.
11427 Reported by Nelson H. F. Beebe.
11429 Improve strtod bug detection check.
11430 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
11431 required for Solaris 10.
11432 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
11434 2008-04-04 Bruno Haible <bruno@clisp.org>
11436 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
11439 2008-04-03 Eric Blake <ebb9@byu.net>
11441 Ensure sane .version contents.
11442 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
11444 * build-aux/git-version-gen: Improve documentation.
11446 Make GNU make output nicer.
11447 * top/GNUmakefile [!_have-Makefile]: Add dependency on
11448 MAKECMDGOALS to enforce message for all command line targets. Set
11449 srcdir for use in maint.mk.
11451 Another maintainer tweak.
11452 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
11453 a target that regenerates version.
11455 2008-04-03 Jim Meyering <meyering@redhat.com>
11457 vc-list-files: don't cause coreutils "make po-check" failure
11458 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
11460 2008-04-03 Eric Blake <ebb9@byu.net>
11462 Allow VPATH usage of vc-list-files.
11463 * build-aux/vc-list-files (scriptversion): Add timestamp.
11464 (options): Add --help, --version, -C.
11465 (CVS): Support installed cvsu.
11467 2008-04-02 Bruno Haible <bruno@clisp.org>
11469 Avoid some "statement with no effect" warnings from gcc.
11470 * tests/test-wctype.c (main): Explicitly ignore unused values.
11471 Reported by Jim Meyering.
11473 2008-04-02 Jim Meyering <meyering@redhat.com>
11475 Avoid some warnings from "gcc -Wshadow".
11476 * tests/test-frexp.c (exp): Define to a different identifier.
11477 * tests/test-frexpl.c (exp): Likewise.
11479 2008-04-03 Jim Meyering <meyering@redhat.com>
11481 bootstrap: remove dangling *.[ch] symlinks from lib
11482 * build-aux/bootstrap [dangling symlink removal]: Move find's
11483 -depth option to precede all others, to avoid a warning.
11484 Remove *.[ch] files too, and from "$source_base" (usually lib/).
11486 2008-04-02 Bruno Haible <bruno@clisp.org>
11488 Avoid some warnings from "gcc -Wshadow".
11489 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
11490 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
11491 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
11492 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
11493 Reported by Jim Meyering.
11495 2008-04-01 Bruno Haible <bruno@clisp.org>
11497 Fix test to work on IRIX 6.5 with cc.
11498 * tests/test-math.c (numeric_equal): New function.
11501 2008-04-01 Bruno Haible <bruno@clisp.org>
11503 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
11505 2008-04-01 Bruno Haible <bruno@clisp.org>
11507 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
11508 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11509 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
11510 (Depends-on): Remove math.
11512 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
11513 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11514 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
11515 (Depends-on): Remove math.
11517 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
11518 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11519 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
11520 (Depends-on): Remove math.
11521 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
11522 (Depends-on): Remove math.
11524 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
11525 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11526 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
11527 (Depends-on): Remove math.
11528 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
11529 (Depends-on): Remove math.
11531 * tests/test-round1.c: Include nan.h.
11532 (main): Use NaNd instead of NAN.
11533 * modules/round-tests (Files): Add tests/nan.h.
11535 * tests/test-trunc1.c: Include nan.h.
11536 (main): Use NaNd instead of NAN.
11537 * modules/trunc-tests (Files): Add tests/nan.h.
11539 * tests/test-roundf1.c: Include nan.h.
11540 (main): Use NaNf instead of NAN.
11541 * modules/roundf-tests (Files): Add tests/nan.h.
11543 * tests/test-truncf1.c: Include nan.h.
11544 (main): Use NaNf instead of NAN.
11545 * modules/truncf-tests (Files): Add tests/nan.h.
11547 * tests/test-ceilf1.c: Include nan.h.
11548 (main): Use NaNf instead of NAN.
11549 * modules/ceilf-tests (Files): Add tests/nan.h.
11551 * tests/test-floorf1.c: Include nan.h.
11552 (main): Use NaNf instead of NAN.
11553 * modules/floorf-tests (Files): Add tests/nan.h.
11555 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
11556 (main): Use NaNf instead of NAN.
11557 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
11559 * tests/test-isnand.c: Include nan.h instead of <math.h>.
11560 (main): Use NaNd instead of NAN.
11561 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
11563 * tests/test-frexp.c: Include nan.h.
11564 (main): Use NaNd instead of NAN.
11565 * modules/frexp-tests (Files): Add tests/nan.h.
11567 * lib/isnan.c: Don't include <math.h>.
11568 (FUNC): Don't use NAN macro.
11569 * modules/isnand-nolibm (Depends-on): Remove math.
11570 * modules/isnanf-nolibm (Depends-on): Remove math.
11571 * modules/isnanl (Depends-on): Remove math.
11572 * modules/isnanl-nolibm (Depends-on): Remove math.
11574 * tests/nan.h: New file.
11576 2008-04-01 Eric Blake <ebb9@byu.net>
11579 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
11580 values to be the right type.
11582 For now, cater to gnulib strtod inaccuracies.
11583 * tests/test-strtod.c (main): Allow 1-ulp error on expected
11584 fractional results. While not as nice from a QoI perspective, it
11585 is a quicker patch than correctly implementing decimal to binary
11588 2008-03-31 Eric Blake <ebb9@byu.net>
11590 Guarantee a definition of NAN.
11591 * lib/math.in.h (NAN): Define if missing.
11592 * tests/test-math.c (main): Test it.
11593 * doc/posix-headers/math.texi (math.h): Document this.
11594 * lib/isnan.c (rpl_isnand): Use it.
11595 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
11596 * tests/test-floorf1.c (NaN): Likewise.
11597 * tests/test-frexp.c (NaN): Likewise.
11598 * tests/test-isnand.c (NaN): Likewise.
11599 * tests/test-isnanf.c (NaN): Likewise.
11600 * tests/test-round1.c (NaN): Likewise.
11601 * tests/test-roundf1.c (NaN): Likewise.
11602 * tests/test-snprintf-posix.h (NaN): Likewise.
11603 * tests/test-sprintf-posix.h (NaN): Likewise.
11604 * tests/test-trunc1.c (NaN): Likewise.
11605 * tests/test-truncf1.c (NaN): Likewise.
11606 * tests/test-vasnprintf-posix.c (NaN): Likewise.
11607 * tests/test-vasprintf-posix.c (NaN): Likewise.
11608 * modules/isnand-nolibm (Depends-on): Add math.
11609 * modules/isnanf-nolibm (Depends-on): Likewise.
11610 * modules/isnanl (Depends-on): Likewise.
11611 * modules/isnanl-nolibm (Depends-on): Likewise.
11612 * modules/snprintf-posix-tests (Depends-on): Likewise.
11613 * modules/sprintf-posix-tests (Depends-on): Likewise.
11614 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
11615 * modules/vsprintf-posix-tests (Depends-on): Likewise.
11616 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
11617 * modules/vasprintf-posix-tests (Depends-on): Likewise.
11619 2008-03-31 Bruno Haible <bruno@clisp.org>
11621 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
11622 * doc/posix-functions/strtod.texi: Likewise.
11624 2008-03-31 Bruno Haible <bruno@clisp.org>
11626 * tests/test-strtod.c (main): Don't use C99 syntax.
11628 2008-03-31 Bruno Haible <bruno@clisp.org>
11630 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
11631 Reported by Eric Blake.
11633 2008-03-31 Jim Meyering <meyering@redhat.com>
11635 Don't compare actual signbit return values.
11636 * tests/test-strtod.c (main): Rather, compare only their
11637 zero/non-zero nature.
11639 2008-03-31 Eric Blake <ebb9@byu.net>
11641 More strtod documentation.
11642 * doc/posix-functions/strtod.texi (strtod): Interpret more test
11643 failures as distinct bugs.
11645 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
11647 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
11648 Problem reported by Erik Benada in
11649 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
11651 2008-03-30 Bruno Haible <bruno@clisp.org>
11653 * tests/test-strtod.c: Add comments about which assertion fails on which
11655 * doc/posix-functions/strtod.texi: Add info about many more platforms.
11657 2008-03-30 Eric Blake <ebb9@byu.net>
11659 Test signbit behavior on zeros.
11660 * tests/test-signbit.c (test_signbitf): Add tests for zero.
11661 (test_signbitd, test_signbitl): Likewise.
11663 More strtod touchups.
11664 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
11665 sign of negative underflow, for now. Use .5, not .1.
11666 * doc/posix-functions/strtod.texi (strtod): Mention these
11668 Reported by Jim Meyering.
11670 2008-03-30 Bruno Haible <bruno@clisp.org>
11672 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
11673 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
11675 2008-03-30 Bruno Haible <bruno@clisp.org>
11677 Avoid failure when attempting to return empty iconv results on some
11679 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
11680 allocation, don't report ENOMEM when the resulting string is empty.
11682 2008-03-30 Bruno Haible <bruno@clisp.org>
11684 Fix buffer overrun.
11685 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
11686 Don't consider the width for tmp_length. Check count against tmp_length
11687 before doing the padding. Ensure enough allocation during padding.
11689 2008-03-30 Eric Blake <ebb9@byu.net>
11692 * lib/strtod.c (strtod): Avoid compiler warnings.
11693 Reported by Jim Meyering.
11695 2008-03-30 Bruno Haible <bruno@clisp.org>
11697 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
11698 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
11699 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
11700 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
11701 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
11702 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
11703 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
11704 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
11706 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
11707 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
11708 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
11709 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
11710 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
11711 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
11712 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
11713 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
11715 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
11716 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
11717 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
11718 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
11719 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
11720 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
11721 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
11722 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
11724 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
11725 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
11727 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
11728 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
11730 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
11731 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
11733 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
11734 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
11735 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
11737 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
11738 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
11739 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
11741 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
11742 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
11743 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
11745 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
11746 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
11747 * modules/vasprintf (Depends-on): Add EOVERFLOW.
11749 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
11750 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
11751 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
11752 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
11753 (Depends-on): Add EOVERFLOW.
11754 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
11755 (Depends-on): Add EOVERFLOW.
11756 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
11757 (Depends-on): Add EOVERFLOW.
11758 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
11759 (Depends-on): Add EOVERFLOW.
11760 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
11761 (Depends-on): Add EOVERFLOW.
11762 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
11763 (Depends-on): Add EOVERFLOW.
11764 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
11765 (Depends-on): Add EOVERFLOW.
11766 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
11767 (Depends-on): Add EOVERFLOW.
11769 * lib/sprintf.c (EOVERFLOW): Remove fallback.
11770 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
11771 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
11773 * lib/snprintf.c (EOVERFLOW): Remove fallback.
11774 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
11775 * modules/snprintf (Depends-on): Add EOVERFLOW.
11777 * lib/poll.c (EOVERFLOW): Remove fallback.
11778 * modules/poll (Depends-on): Add EOVERFLOW.
11780 * lib/getugroups.c (EOVERFLOW): Remove fallback.
11781 * modules/getugroups (Depends-on): Add EOVERFLOW.
11783 * lib/getdelim.c (EOVERFLOW): Remove fallback.
11784 * modules/getdelim (Depends-on): Add EOVERFLOW.
11786 * lib/ftell.c (EOVERFLOW): Remove fallback.
11787 * modules/ftell (Depends-on): Add EOVERFLOW.
11789 * lib/fprintf.c (EOVERFLOW): Remove fallback.
11790 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
11791 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
11793 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
11795 * modules/EOVERFLOW-tests: New file.
11796 * tests/test-EOVERFLOW.c: New file.
11798 * modules/EOVERFLOW: New file.
11799 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
11801 2008-03-30 Bruno Haible <bruno@clisp.org>
11803 Fix bug introduced on 2007-06-10.
11804 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
11805 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
11807 2008-03-30 Bruno Haible <bruno@clisp.org>
11809 Improve freadseek's efficiency after ungetc.
11810 * lib/freadseek.c: Include freadahead.h.
11811 (freadptrinc): New function, extracted from freadseek.
11812 (freadseek): Use it in a loop. Use freadahead to determine the number
11813 of loop iterations.
11814 * modules/freadseek (Depends-on): Add freadahead.
11815 (configure.ac): Require AC_C_INLINE.
11817 2008-03-30 Bruno Haible <bruno@clisp.org>
11819 * lib/freadseek.c (freadseek): Don't ignore the return value of
11822 2008-03-29 Eric Blake <ebb9@byu.net>
11824 Add hex float support.
11825 * modules/strtod (Depends-on): Add c-ctype.
11826 (Link): Mention POW_LIB.
11827 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
11828 whitespace between 'e' and exponent.
11829 * tests/test-strtod.c (main): Enable hex float tests.
11830 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
11833 Document various strtod bugs, with some fixes.
11834 * doc/posix-functions/strtod.texi (strtod): Document bugs with
11835 "-0x", "inf", "nan", and hex constants.
11836 * doc/posix-functions/atof.texi (atof): Likewise.
11837 * modules/stdlib (Makefile.am): Support strtod.
11838 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
11839 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
11840 detect additional strtod bugs.
11841 * lib/stdlib.in.h (rpl_strtod): Add declarations.
11842 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
11843 bool where appropriate. Parse 'inf' and 'nan'.
11844 * tests/test-strtod.c: New file.
11845 * modules/strtod (Depends-on): Add stdbool, stdlib.
11846 (configure.ac): Turn on module indicator.
11847 * modules/strtod-tests: New module.
11849 2008-03-29 Eric Blake <ebb9@byu.net>
11851 Fix ftell on mingw.
11852 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
11853 * modules/ftell-tests (Depends-on): Add binary-io.
11854 * modules/ftello-tests (Depends-on): Likewise.
11855 * tests/test-ftell.c (main): Enhance test to cover behavior after
11856 ungetc. Enforce binary mode.
11857 * tests/test-ftello.c (main): Likewise.
11859 Pass test-freadseek on cygwin.
11860 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
11861 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
11864 * tests/test-fflush2.c (main): Fix typo.
11866 2008-03-29 Bruno Haible <bruno@clisp.org>
11868 * tests/test-fflush2.c (main): Temporarily disable the contents of
11870 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
11871 Reported by Eric Blake.
11873 2008-03-28 Simon Josefsson <simon@josefsson.org>
11875 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
11876 (GC_SHA224_DIGEST_SIZE): Add.
11878 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
11879 (gc_hash_digest_length): Likewise.
11880 (gc_hash_buffer): Likewise.
11882 2008-03-25 Bruno Haible <bruno@clisp.org>
11884 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
11885 detail which gettext release to use.
11886 Reported by Simon Josefsson.
11888 2008-03-26 Jim Meyering <meyering@redhat.com>
11890 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
11891 * modules/gnumakefile (clean-GNUmakefile): Also, use
11892 test ... && ... || : syntax rather than if-then ... fi.
11894 gnumakefile: Don't double-quote-expand $(VPATH) value.
11895 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
11897 2008-03-24 Eric Blake <ebb9@byu.net>
11899 Alter GNUmakefile to install into top directory.
11900 * modules/maintainer-makefile: Split, and add dependency...
11901 * modules/gnumakefile: to this new module.
11902 * build-aux/GNUmakefile: Move...
11903 * top/GNUmakefile: ...here.
11904 * build-aux/maint.mk: Move...
11905 * top/maint.mk: ...here.
11906 * MODULES.html.sh (Support for maintaining...): Document new
11909 2008-03-23 Bruno Haible <bruno@clisp.org>
11911 * gnulib-tool: New options --vc-files, --no-vc-files.
11912 (func_usage): Document them.
11913 (vc_files): New variable.
11914 (func_import): Consider vc_files.
11915 (func_create_testdir): Set vc_files to empty.
11916 Suggested by Jim Meyering and Karl Berry.
11918 2008-03-23 Bruno Haible <bruno@clisp.org>
11920 Fix regex compilation error on HP-UX 11.
11921 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
11922 * modules/regex (Files): Add m4/mbstate_t.m4.
11923 Reported by Ton Voon <ton.voon@altinity.com>.
11925 2008-03-23 Bruno Haible <bruno@clisp.org>
11927 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
11929 2008-03-23 Eric Blake <ebb9@byu.net>
11930 Bruno Haible <bruno@clisp.org>
11932 Install files from top/ in the destination directory.
11933 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
11934 augmentation also for the files from top/.
11935 (func_import, func_create_testdir): Rewrite file names:
11936 top/filename -> filename.
11938 2008-03-23 Bruno Haible <bruno@clisp.org>
11940 Tweak "gnulib --version" output.
11941 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
11943 2008-03-23 Bruno Haible <bruno@clisp.org>
11945 Tweak "gnulib --version" output.
11946 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
11947 rather than contents of ChangeLog, when possible.
11949 2008-03-21 Eric Blake <ebb9@byu.net>
11951 More --version tweaks.
11952 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
11953 date of last ChangeLog entry.
11955 2008-03-21 Jim Meyering <meyering@redhat.com>
11957 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
11959 2008-03-20 Eric Blake <ebb9@byu.net>
11962 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
11964 2008-03-20 Simon Josefsson <simon@josefsson.org>
11966 * build-aux/GNUmakefile: Make git-version-gen optional. Add
11967 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
11969 2008-03-20 Eric Blake <ebb9@byu.net>
11971 Sync GNUmakefile with coreutils.
11972 * build-aux/GNUmakefile (have-Makefile): Rename...
11973 (_have-Makefile): ...to this, for namespace consideration.
11974 (GNUmakefile.cfg): Include, if present.
11975 (_autoreconf): Define a default.
11976 (_is-dist-target): New rule for rebuilds to pick up intra-release
11978 (maint-cfg.mk): Rename...
11979 (cfg.mk): ...to this.
11981 2008-03-18 Jim Meyering <meyering@redhat.com>
11983 New script and module: mktempd
11984 * MODULES.html.sh (maint+release support): Add mktempd.
11985 * build-aux/mktempd: New file.
11986 * modules/mktempd: New file.
11988 2008-03-15 Jim Meyering <meyering@redhat.com>
11991 * lib/sha1.c, lib/md5.c: 63 != ~63.
11992 Reported by Andreas Schwab.
11994 sha1.c, md5.c: Hoist a redundant expression.
11995 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
11996 "ctx->buflen" only once, before calling *_process_block.
11997 * lib/md5.c (md5_process_bytes): Likewise.
11999 2008-03-14 Eric Blake <ebb9@byu.net>
12001 Bump copyright year in files generated by gnulib-tool.
12002 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
12003 gnulib-tool, rather than hard-coding it.
12005 Fix 'gnulib-tool --version' output to work with git.
12006 * gnulib-tool (func_gnulib_dir): New function, extracted from...
12007 (startup): ...here.
12008 (func_version): Use it to invoke git-version-gen, rather than
12009 relying on CVS keyword expansion. Modernize wording.
12010 (cvsdatestamp, last_checkin_date, version): Kill unused
12013 2008-03-12 Jim Meyering <meyering@redhat.com>
12015 Recognize optional cast of the argument to free.
12016 * build-aux/useless-if-before-free: Update regexps.
12018 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
12020 2008-03-11 Bruno Haible <bruno@clisp.org>
12022 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
12023 by a single package.
12024 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
12025 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
12026 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
12027 Reported by Sam Steingold <sds@gnu.org>.
12029 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
12031 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
12034 2008-03-11 Bruno Haible <bruno@clisp.org>
12036 Avoid conflicts between local macro definitions.
12037 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
12038 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
12040 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
12041 Bruno Haible <bruno@clisp.org>
12043 Make va_copy work with some version of xlc on AIX 5.1.
12044 * lib/stdarg.in.h: New file.
12045 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
12046 On AIX, use a <stdarg.h> file substitute.
12047 * modules/stdarg (Files): Add lib/stdarg.in.h.
12048 (Depends-on): Add include_next.
12049 (Makefile.am): Build a stdarg.h substitute if requested.
12050 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
12052 2008-03-10 Bruno Haible <bruno@clisp.org>
12054 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
12055 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12056 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
12058 2008-03-10 Bruno Haible <bruno@clisp.org>
12060 * modules/stdlib (Depends-on): Add include_next, remove
12063 2008-03-09 Bruno Haible <bruno@clisp.org>
12065 * lib/freadahead.h (freadahead): Document more precisely.
12066 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
12067 the sum of both buffer sizes.
12068 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
12069 * NEWS: Document the change.
12071 2008-03-09 Bruno Haible <bruno@clisp.org>
12073 Extend freadptr to return also the buffer size.
12074 * lib/freadptr.h (freadptr): Add sizep argument.
12075 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
12076 (freadptr): Add sizep argument. Determine buffer size like freadahead
12078 * tests/test-freadptr.c: Don't include freadahead.h.
12079 (main): Adapt for new calling convention of freadptr.
12080 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
12081 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
12082 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
12083 tests/test-freadptr2.sh.
12084 (Depends): Remove freadahead.
12085 (TESTS): Add test-freadptr2.sh.
12086 (check_PROGRAMS): Add test-freadptr2.
12088 2008-03-09 Bruno Haible <bruno@clisp.org>
12090 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
12091 Report and solution by Simon Josefsson.
12093 2008-03-06 Bruno Haible <bruno@clisp.org>
12095 Make fflush after ungetc work on BSD platforms.
12096 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
12097 * tests/test-fflush2.c: New file.
12098 * tests/test-fflush2.sh: New file.
12099 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
12100 tests/test-fflush2.c.
12101 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
12102 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
12104 2008-03-06 Eric Blake <ebb9@byu.net>
12106 Likewise for ftello.
12107 * modules/ftello (Dependencies): Add extensions.
12108 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
12110 2008-03-06 Bruno Haible <bruno@clisp.org>
12112 * modules/fseeko (Dependencies): Add extensions.
12113 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
12114 Needed on glibc systems.
12116 2008-03-06 Bruno Haible <bruno@clisp.org>
12118 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
12120 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12122 2008-03-06 Bruno Haible <bruno@clisp.org>
12124 * users.txt: Add libgnupdf.
12126 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
12128 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
12129 (Header File Substitutes, Function Substitutes,
12130 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
12131 (Build robot for gnulib): Fix typo.
12133 2008-03-06 Bruno Haible <bruno@clisp.org>
12135 * doc/gnulib-tool.texi (VCS Issues): Small updates.
12136 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12138 2008-03-06 Bruno Haible <bruno@clisp.org>
12140 * doc/func.texi: New file, extracted from doc/gnulib.texi.
12141 * doc/gnulib.texi: Include it.
12143 2008-03-06 Simon Josefsson <simon@josefsson.org>
12145 * modules/func (License): Change license to unlimited; there was
12146 no LGPL parts in the module anyway.
12148 2008-03-06 Simon Josefsson <simon@josefsson.org>
12150 * modules/__func__: Renamed to modules/func.
12151 * modules/__func__-tests: Renamed to modules/func-tests.
12152 * tests/test-__func__.c: Renamed to tests/test-func.c.
12153 * m4/__func__.m4: Renamed to m4/func.m4.
12154 * doc/gnulib.texi (__func__): Section renamed to func.
12155 Suggested by Eric Blake <ebb9@byu.net>.
12157 2008-03-06 Simon Josefsson <simon@josefsson.org>
12159 * doc/gnulib.texi (__func__): Use C99 terminology when talking
12160 about __func__. Make example self-contained. Suggested by Eric
12161 Blake <ebb9@byu.net>.
12163 * tests/test-__func__.c (main): Avoid extraneous () around __func.
12164 Suggested by Eric Blake <ebb9@byu.net>.
12166 2008-03-06 Simon Josefsson <simon@josefsson.org>
12168 * modules/__func__: New file.
12169 * modules/__func__-tests: New file.
12170 * tests/test-__func__.c: New file.
12171 * m4/__func__.m4: New file.
12172 * doc/gnulib.texi (__func__): Document __func__ module.
12174 2008-03-05 Simon Josefsson <simon@josefsson.org>
12176 * modules/byteswap (License): Re-license as LGPLv2+.
12178 2008-03-05 Simon Josefsson <simon@josefsson.org>
12180 * doc/Makefile: Add pdf target.
12182 2008-03-05 Simon Josefsson <simon@josefsson.org>
12184 * modules/inline (License): Use 'unlimited', since there are only
12185 *.m4 files in this module.
12187 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
12188 Bruno Haible <bruno@clisp.org>
12190 Add support for HP C 7.1 on OpenVMS 8.3.
12191 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
12193 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
12195 Update VMS specifics.
12196 * lib/getopt.c [VMS]: Remove include of unixlib.h.
12198 2008-03-02 Jim Meyering <meyering@redhat.com>
12200 Remove the last dependency on the "free" module.
12201 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
12202 Reported by Bob Proulx.
12204 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
12206 Remove useless "if" tests before free. Deprecate "free" module.
12207 * doc/posix-functions/free.texi: Mention that this
12208 module is no longer useful.
12209 * modules/free (Notice): Say this module is obsolete.
12210 * modules/readutmp (Depends-on): Remove free.
12211 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
12212 * lib/putenv.c (putenv): Likewise.
12213 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
12214 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
12215 * tests/test-c-strcasestr.c (main): Likewise.
12216 * tests/test-c-strstr.c (main): Likewise.
12217 * tests/test-mbscasestr1.c (main): Likewise.
12218 * tests/test-mbscasestr2.c (main): Likewise.
12219 * tests/test-mbsstr1.c (main): Likewise.
12220 * tests/test-mbsstr2.c (main): Likewise.
12221 * tests/test-memmem.c (main): Likewise.
12222 * tests/test-strcasestr.c (main): Likewise.
12223 * tests/test-striconv.c (main): Likewise.
12224 * tests/test-striconveh.c (main): Likewise.
12225 * tests/test-striconveha.c (main): Likewise.
12226 * tests/test-strstr.c (main): Likewise.
12228 * build-aux/git-version-gen: Adjust a comment and the Usage string.
12230 bootstrap: sync from coreutils again
12231 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
12233 2008-03-01 Jim Meyering <meyering@redhat.com>
12235 bootstrap: sync from coreutils
12236 * build-aux/bootstrap (update_po_files): Copy a .po file into place
12237 also when the target doesn't exist.
12239 2008-03-01 Eric Blake <ebb9@byu.net>
12241 Fix bugs in last patch.
12242 * lib/memchr2.c (memchr2): Fix typo.
12243 * tests/test-memchr2.c: Test previous bug, and don't use GNU
12245 Reported by Bruce Korb.
12247 New module 'memchr2'.
12248 * modules/memchr2: New file.
12249 * modules/memchr2-tests: Likewise.
12250 * lib/memchr2.h: Likewise.
12251 * lib/memchr2.c: Likewise, based on memchr.c.
12252 * tests/test-memchr2.c: New test.
12253 * MODULES.html.sh (String handling): Add memchr2.
12255 2008-02-29 Bruno Haible <bruno@clisp.org>
12257 * modules/freadseek-tests: New file.
12258 * tests/test-freadseek.sh: New file.
12259 * tests/test-freadseek.c: New file.
12261 New module 'freadseek'.
12262 * modules/freadseek: New file.
12263 * lib/freadseek.h: New file.
12264 * lib/freadseek.c: New file.
12265 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
12267 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
12269 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
12272 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
12273 program_invocation_name and program_invocation_short_name are
12276 2008-02-28 Bruno Haible <bruno@clisp.org>
12278 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
12279 * tests/test-freadptr.sh: Also test non-seekable stdin.
12281 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
12283 * build-aux/bootstrap (source_base, m4_base)
12284 (doc_base, tests_base): New variables.
12285 (gnulib_tool_options): Do not hardcode base directories, use
12286 the above variables instead.
12288 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
12290 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
12292 2008-02-28 Bruno Haible <bruno@clisp.org>
12294 * modules/freadptr-tests: New file.
12295 * tests/test-freadptr.sh: New file.
12296 * tests/test-freadptr.c: New file.
12298 New module 'freadptr'.
12299 * modules/freadptr: New file.
12300 * lib/freadptr.h: New file.
12301 * lib/freadptr.c: New file.
12302 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
12304 2008-02-26 Karl Berry <karl@freefriends.org>
12307 * libltdl/argz.c (argz_add, argz_count): New functions.
12308 * libltdl/argz.in.h: Declare them.
12309 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
12311 2008-02-22 Bruno Haible <bruno@clisp.org>
12313 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
12314 is a pointer type. Needed for HP-UX 10.
12315 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
12316 * doc/posix-functions/gmtime_r.texi: Likewise.
12317 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
12319 2008-02-24 Bruno Haible <bruno@clisp.org>
12321 * modules/environ-tests: New file.
12322 * tests/test-environ.c: New file.
12324 New module 'environ'.
12325 * modules/environ: New file.
12326 * lib/unistd.in.h (environ): New declaration.
12327 * m4/environ.m4: New file.
12328 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
12330 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
12332 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
12334 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
12335 wrong claim that 'environ' is missing on some systems.
12336 * modules/execute (Depends-on): Add environ.
12337 * lib/execute.c (environ): Remove fallback declaration.
12338 * modules/pipe (Depends-on): Add environ.
12339 * lib/pipe.c (environ): Remove fallback declaration.
12340 * modules/setenv (Depends-on): Add environ.
12341 * lib/setenv.c (environ): Remove fallback declaration.
12342 * modules/unsetenv (Depends-on): Add environ.
12343 * lib/unsetenv.c (environ): Remove fallback declaration.
12344 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
12346 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
12347 (gl_PREREQ_UNSETENV): Likewise.
12349 2008-02-24 Bruno Haible <bruno@clisp.org>
12351 * doc/posix-functions/environ.texi: Document the MacOS X problem.
12353 2008-02-20 Bob Proulx <bob@proulx.com>
12355 Enable use of older two part flavor 'git describe'.
12356 * build-aux/git-version-gen: If using the older two part flavor of
12357 git version then recreate the third part now present in the
12358 newer three part flavor of git describe.
12360 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
12362 * lib/fts.c (fts_build): Typo correction to comment.
12364 2008-02-17 Bruno Haible <bruno@clisp.org>
12366 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
12367 generating no-op conflicts.
12369 2008-02-17 Bruno Haible <bruno@clisp.org>
12372 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
12373 result_entries, rather than an index-based loop.
12375 2008-02-17 Bruno Haible <bruno@clisp.org>
12378 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
12380 (entry_create): New function.
12381 (entry_hashcode): Use the cached hashcode if possible.
12382 (read_changelog_file, try_split_merged_entry): Use entry_create.
12384 2008-02-17 Bruno Haible <bruno@clisp.org>
12386 Speed up from O(n^2) to O(n) for long ChangeLog files.
12387 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
12388 (read_changelog_file): Change implementation of entries_reversed list
12390 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
12392 2008-02-17 Bruno Haible <bruno@clisp.org>
12394 New option --split-merged-entry.
12395 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
12396 (find_paragraph_end, try_split_merged_entry): New functions.
12397 (long_options): Add option --split-merged-entry.
12398 (usage): Document option --split-merged-entry.
12399 (main): Implement option --split-merged-entry.
12400 Reported by Eric Blake.
12402 2008-02-17 Bruno Haible <bruno@clisp.org>
12404 * lib/git-merge-changelog.c: Include c-strstr.h.
12405 (main): Support the "git pull --rebase" situation.
12406 * modules/git-merge-changelog (Depends-on): Add c-strstr.
12407 Reported by Eric Blake.
12409 2008-02-16 Eric Blake <ebb9@byu.net>
12411 Avoid doubling \ in common case of "c-maybe" quoting style.
12412 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
12413 eliding outer quotes.
12414 * lib/quotearg.h: Document this.
12415 * tests/test-quotearg.c (result_strings, inputs, results_g)
12416 (flag_results, locale_results): Test it by adding a new string to
12418 (compare_strings): Test new string.
12420 2008-02-13 Eric Blake <ebb9@byu.net>
12422 Avoid trigraph quoting in default output.
12423 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
12424 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
12425 unless explicitly requested.
12426 * tests/test-quotearg.c (flag_results, main): Add additional tests.
12428 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
12430 Don't rely on signed integer overflowing to negative value.
12431 * lib/getugroups.c (getugroups): Include <limits.h>.
12432 Instead, compare against INT_MAX, and increment only if the test passes.
12434 2008-02-13 Jim Meyering <meyering@redhat.com>
12435 and Eric Blake <ebb9@byu.net>
12437 Avoid shadowing warning and compile errors on Linux.
12438 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
12439 forwarding macros on Linux.
12440 (dcgettext): Define a stub, for Linux.
12441 (results_g, main): Avoid warnings.
12443 2008-02-12 Eric Blake <ebb9@byu.net>
12445 Silence warning in last patch.
12446 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
12448 Quotearg part 4: add tests, fix c-maybe colon quoting.
12449 * lib/quotearg.h: Improve documentation.
12450 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
12451 escapes when adding outer quotes. When quoting trigraphs, use
12452 valid C notation. When quoting NUL, omit extra characters if next
12453 character is not digit. Alter prototype.
12454 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
12456 * modules/quotearg-tests: New module.
12457 * tests/test-quotearg.c: New test.
12459 2008-02-07 Eric Blake <ebb9@byu.net>
12461 Quotearg part 3: add flag to control outer quote elision.
12462 * lib/quotearg.h (c_maybe_quoting_style): New style.
12463 (enum quoting_flags): Better documentation of flags.
12464 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
12466 (quotearg_buffer_restyled): Handle new flag to elide outer
12469 Quotearg part 2: add flag that can control NUL elision.
12470 * lib/quotearg.h (set_quoting_flags): New prototype.
12471 * lib/quotearg.c (struct quoting_options): Add flag field.
12472 (set_quoting_flags): New function.
12473 (quotearg_buffer_restyled): Add flags parameter.
12474 (quotearg_alloc_mem): Set the flag if length cannot be returned.
12475 (quotearg_n_options): Set the flag, since length cannot be
12477 (quoting_options_from_style): Default flags correctly.
12479 Quotearg part 1: more wrappers, restore quotearg_char state.
12480 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
12481 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
12482 (quotearg_colon_mem): New wrappers.
12483 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
12484 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
12486 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
12487 (quotearg_colon_mem): New functions.
12489 2008-02-11 Bruno Haible <bruno@clisp.org>
12491 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
12492 library in the current directory: it does not work with parallel make.
12493 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12495 2008-02-11 Bruno Haible <bruno@clisp.org>
12497 * .gitattributes: New file.
12499 2008-02-11 Jim Meyering <meyering@redhat.com>
12501 useless-if-before-free: Fix reversed exit values.
12502 * build-aux/useless-if-before-free: Use correct values
12503 for EXIT_MATCH and EXIT_NO_MATCH.
12505 * build-aux/useless-if-before-free: Close stdout carefully.
12507 2008-02-10 Bruno Haible <bruno@clisp.org>
12509 New module 'git-merge-changelog'.
12510 * modules/git-merge-changelog: New file.
12511 * lib/git-merge-changelog.c: New file.
12513 2008-02-10 Jim Meyering <meyering@redhat.com>
12515 useless-if-before-free: New option: --list (-l).
12517 useless-if-before-free: Don't exit immediately upon open failure.
12518 * build-aux/useless-if-before-free: Exit 2 for errors.
12519 Upon failure to open a file, don't exit immediately.
12520 Rather, just warn and continue with any remaining files.
12522 2008-02-10 Bruno Haible <bruno@clisp.org>
12524 New abstract list operation 'node_set_value'.
12525 * lib/gl_list.h (gl_list_node_set_value): New function.
12526 (struct gl_list_implementation): New field node_set_value.
12527 * lib/gl_list.c (gl_list_node_set_value): New function.
12528 * lib/gl_array_list.c (gl_array_node_set_value): New function.
12529 (gl_array_list_implementation): Update.
12530 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
12531 (gl_carray_list_implementation): Update.
12532 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
12533 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
12534 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
12535 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
12536 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
12537 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
12538 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
12540 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
12541 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
12542 (gl_sublist_list_implementation): Update.
12544 2008-02-10 Bruno Haible <bruno@clisp.org>
12546 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
12547 Needed when ELEMENT is #defined to 'some_type *'.
12549 2008-02-10 Jim Meyering <meyering@redhat.com>
12551 New script and module: useless-if-before-free
12552 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
12553 * build-aux/useless-if-before-free: New file.
12554 * modules/useless-if-before-free: New file.
12556 * build-aux/gitlog-to-changelog: Use committer date, not author date.
12558 xstrtol_error: Fix typo.
12559 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
12560 s/exit_failure/exit_status/.
12562 2008-02-09 Jim Meyering <meyering@redhat.com>
12564 New script and module: gitlog-to-changelog
12565 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
12566 * modules/gitlog-to-changelog: New file.
12567 * build-aux/gitlog-to-changelog: New file.
12569 2008-02-08 Jim Meyering <meyering@redhat.com>
12571 Avoid two "parameter unused" warnings.
12572 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
12575 Use "git COMMAND", not "git-COMMAND".
12576 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
12577 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
12578 * build-aux/git-version-gen: Use "git status", not "git-status".
12580 2008-02-07 Bruno Haible <bruno@clisp.org>
12582 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
12583 Avoids a crash on Windows Vista.
12584 Reported by Adam Strzelecki <ono@java.pl> via
12585 Simon Josefsson <simon@josefsson.org>.
12587 2008-02-06 Bruno Haible <bruno@clisp.org>
12589 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
12590 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
12591 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
12592 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
12593 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
12594 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12595 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
12596 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
12597 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12598 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12599 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12600 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12601 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12602 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12603 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12604 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
12606 * tests/test-snprintf-posix.h (test_function): Likewise.
12607 * tests/test-sprintf-posix.h (test_function): Likewise.
12608 * tests/test-vasprintf-posix.c (test_function): Likewise.
12609 * doc/posix-functions/fprintf.texi: Update.
12610 * doc/posix-functions/printf.texi: Update.
12611 * doc/posix-functions/snprintf.texi: Update.
12612 * doc/posix-functions/sprintf.texi: Update.
12613 * doc/posix-functions/vfprintf.texi: Update.
12614 * doc/posix-functions/vprintf.texi: Update.
12615 * doc/posix-functions/vsnprintf.texi: Update.
12616 * doc/posix-functions/vsprintf.texi: Update.
12617 Reported by Peter Fales <psfales@alcatel-lucent.com>.
12619 2008-02-06 Bruno Haible <bruno@clisp.org>
12621 Fix bug introduced on 2008-01-26.
12622 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
12624 2008-02-06 Bruno Haible <bruno@clisp.org>
12626 Fix bug introduced on 2007-06-10.
12627 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
12628 !NEED_PRINTF_FLAG_ZERO.
12630 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
12632 getloadavg: use libperfstat on AIX5
12633 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
12635 2008-02-03 Bruno Haible <bruno@clisp.org>
12637 * lib/diffseq.h: Add comments about required #includes.
12638 Reported by Michael Biggs <gnulib@doubleplum.net>.
12640 2008-02-01 Bruno Haible <bruno@clisp.org>
12642 * users.txt: Add gnuit.
12644 2008-01-31 Bruno Haible <bruno@clisp.org>
12646 * lib/md4.c (set_uint32): Mark as inline.
12647 * lib/md5.c (set_uint32): Likewise.
12648 * lib/sha1.c (set_uint32): Likewise.
12649 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
12650 * m4/md5.m4 (gl_MD5): Likewise.
12651 * m4/sha1.m4 (gl_SHA1): Likewise.
12653 2008-01-31 Jim Meyering <meyering@redhat.com>
12655 Use "sizeof VAR", rather than a literal "4".
12656 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
12657 * lib/md4.c (md4_read_ctx): Likewise.
12658 * lib/sha1.c (sha1_read_ctx): Likewise.
12660 2008-01-31 Simon Josefsson <simon@josefsson.org>
12662 * tests/test-sha1.c: New file, based on test-md5.c.
12664 * modules/crypto/sha1-tests: New file.
12666 2008-01-31 Simon Josefsson <simon@josefsson.org>
12668 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
12670 2008-01-31 Jim Meyering <meyering@redhat.com>
12672 Prefer "sizeof v" over the equivalent "4".
12673 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
12674 * lib/md5.c (set_uint32): Likewise.
12675 * lib/sha1.c (set_uint32): Likewise.
12677 2008-01-31 Simon Josefsson <simon@josefsson.org>
12679 * lib/sha1.c (set_uint32): Mark function as static.
12681 2008-01-31 Simon Josefsson <simon@josefsson.org>
12683 md2: clarify comments to say that alignment is not required.
12684 * lib/md2.h: Remove warning about alignment in comment.
12685 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
12686 never been required.
12688 2008-01-31 Simon Josefsson <simon@josefsson.org>
12690 md4: adapt alignment constraint fix from sha1.
12691 * lib/md4.c (set_uint32): New function, from sha1.c
12692 (md4_read_ctx): Use it.
12693 (md4_finish_ctx): Doc fix.
12694 * lib/md4.h: Doc fix.
12696 2008-01-31 Simon Josefsson <simon@josefsson.org>
12698 md5: adapt alignment constraint fix from sha1.
12699 * lib/md5.c (set_uint32): New function, from sha1.c
12700 (md5_read_ctx): Use it.
12701 (md5_finish_ctx): Doc fix.
12702 * lib/md5.h: Doc fix.
12704 2008-01-30 Peter Palfrader <weasel@debian.org>
12706 sha1: remove the result buffer alignment constraint
12707 * lib/sha1.c (set_uint32): New function.
12708 (sha1_read_ctx): Rewrite to remove the result buffer alignment
12710 (sha1_finish_ctx): Remove comment warning about alignment constraint.
12711 * lib/sha1.h: Likewise.
12713 2008-01-30 Andreas Schwab <schwab@suse.de>
12714 Bruno Haible <bruno@clisp.org>
12716 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
12717 correct definition of LDBL_MIN_EXP.
12719 2008-01-30 Karl Berry <karl@gnu.org>
12721 * config/srclist-update: try to preserve x bit on updates.
12722 * config/srclistvars.sh: update for karl.
12724 2008-01-29 Jim Meyering <meyering@redhat.com>
12726 vasnprintf.c: Avoid warning about unused label
12727 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
12728 "overflow" label definition and associated code with the
12729 same cpp condition that guards the sole use of that label.
12731 2008-01-26 Bruno Haible <bruno@clisp.org>
12733 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
12734 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
12735 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
12736 * lib/isnanl-nolibm.h (isnanl): Likewise.
12737 Reported by Paul Eggert <eggert@cs.ucla.edu>.
12739 2008-01-26 Bruno Haible <bruno@clisp.org>
12741 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
12742 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
12744 2008-01-26 Bruno Haible <bruno@clisp.org>
12746 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
12747 GCC >= 4.0 built-in.
12748 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
12750 2008-01-26 Bruno Haible <bruno@clisp.org>
12752 Rename isnan, applicable to 'double' only, to isnand.
12753 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
12754 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
12755 (configure.ac): Update.
12756 (Include): Replace "isnan.h" with "isnand.h".
12757 * m4/isnand.m4: Renamed from m4/isnan.m4.
12758 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
12759 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
12760 instead of isnan.c.
12761 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
12762 instead of HAVE_ISNAN_IN_LIBC.
12763 (isnand): Renamed from isnan.
12764 * lib/isnand.c: New file.
12765 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
12766 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
12767 (Makefile.am): Update.
12768 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
12769 Include isnand.h instead of isnan.h.
12770 (main): Test isnand instead of isnan.
12771 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
12773 * modules/frexp (Depends-on): Likewise.
12774 * modules/frexp-tests (Depends-on): Likewise.
12775 * modules/frexp-nolibm (Depends-on): Likewise.
12776 * modules/frexp-nolibm-tests (Depends-on): Likewise.
12777 * modules/isfinite (Depends-on): Likewise.
12778 * modules/round-tests (Depends-on): Likewise.
12779 * modules/signbit (Depends-on): Likewise.
12780 * modules/signbit-tests (Depends-on): Likewise.
12781 * modules/snprintf-posix (Depends-on): Likewise.
12782 * modules/sprintf-posix (Depends-on): Likewise.
12783 * modules/trunc-tests (Depends-on): Likewise.
12784 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
12785 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12786 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12787 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12788 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12789 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12790 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12791 * modules/vasnprintf-posix (Depends-on): Likewise.
12792 * modules/vasprintf-posix (Depends-on): Likewise.
12793 * modules/vfprintf-posix (Depends-on): Likewise.
12794 * modules/vsnprintf-posix (Depends-on): Likewise.
12795 * modules/vsprintf-posix (Depends-on): Likewise.
12796 * lib/frexp.c: Include isnand.h instead of isnan.h.
12797 (ISNAN): Set to isnand instead of isnan.
12798 * lib/isfinite.c: Include isnand.h instead of isnan.h.
12799 (gl_isfinited): Use isnand instead of isnan.
12800 * lib/signbitd.c: Include isnand.h instead of isnan.h.
12801 (gl_signbitd): Use isnand instead of isnan.
12802 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
12803 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
12804 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
12805 (main): Use isnand instead of isnan.
12806 * tests/test-round1.c: Include isnand.h.
12807 (main): Use isnand instead of isnan.
12808 * tests/test-round2.c: Include isnand.h instead of isnan.h.
12809 (ISNAN): Set to isnand instead of isnan.
12810 * tests/test-trunc1.c: Include isnand.h.
12811 (main): Use isnand instead of isnan.
12812 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
12813 (equal): Use isnand instead of isnan.
12814 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
12816 * NEWS: Mention the change.
12818 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
12819 Bruno Haible <bruno@clisp.org>
12821 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
12822 the GCC builtins for signbits are present and set
12823 REPLACE_SIGNBIT_USING_GCC if so.
12824 * lib/math.in.h (signbit): Define using GCC builtins if
12825 REPLACE_SIGNBIT_USING_GCC is set.
12826 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
12827 REPLACE_SIGNBIT_USING_GCC.
12828 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
12830 2008-01-25 Jim Meyering <meyering@redhat.com>
12832 Prefer <config.h> over "config.h". See autoconf doc for explanation.
12833 * lib/poll.c: Include <config.h>, not "config.h".
12834 * tests/test-getaddrinfo.c: Likewise.
12836 2008-01-25 Simon Josefsson <simon@josefsson.org>
12838 * modules/sockets-tests: New file.
12840 2008-01-24 Simon Josefsson <simon@josefsson.org>
12842 * modules/sockets: New module, can be used to call WSA_Startup and
12843 WSA_Cleanup when needed.
12845 * lib/sockets.h, lib/sockets.c: New files.
12847 * m4/sockets.m4: New file.
12849 * tests/test-sockets.c: New file.
12851 2008-01-19 Bruno Haible <bruno@clisp.org>
12853 * doc/posix-headers: Renamed from doc/headers.
12854 * doc/posix-functions: Renamed from doc/functions.
12855 * doc/gnulib.texi: Update.
12857 2008-01-19 Bruno Haible <bruno@clisp.org>
12859 * doc/glibc-functions/strcasestr.texi: Include contents of
12860 doc/functions/strcasestr.texi, fixing the list of platforms.
12861 * doc/functions/strcasestr.texi: Remove file.
12863 2008-01-19 Bruno Haible <bruno@clisp.org>
12865 * doc/glibc-functions/memmem.texi: Include contents of
12866 doc/functions/memmem.texi.
12867 * doc/functions/memmem.texi: Remove file.
12869 2008-01-18 Bruno Haible <bruno@clisp.org>
12871 * doc/glibc-functions/*.texi: New files.
12872 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
12873 to use the new files.
12875 2008-01-17 Bruno Haible <bruno@clisp.org>
12877 * tests/test-gethostname.c (main): Fix printf statement.
12879 2008-01-17 Simon Josefsson <simon@josefsson.org>
12881 * modules/gethostname-tests: New file.
12883 * tests/test-gethostname.c: New file.
12885 2008-01-17 Simon Josefsson <simon@josefsson.org>
12887 * lib/gethostname.c: Include string.h unconditionally, strncpy is
12888 used by the UNAME case. Reported by Bruno Haible
12891 2008-01-17 Eric Blake <ebb9@byu.net>
12893 Convert c-strcasestr to be more efficient.
12894 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
12895 (Depends-on): Add c-strcase, remove malloca, strnlen.
12896 * tests/test-c-strcasestr.c (main): Enhance test.
12897 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
12899 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
12901 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
12902 Use it in creating po/Makevars.
12904 2008-01-15 Simon Josefsson <simon@josefsson.org>
12906 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
12907 Applications that requires it should initialize libgcrypt
12910 2008-01-16 Simon Josefsson <simon@josefsson.org>
12912 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
12914 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
12916 Fix problem with getdate on mingw32 reported by Simon Josefsson
12917 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
12918 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
12919 tzname", when deciding whether to declare tzname.
12920 * lib/strftime.c (tzname): Likewise.
12922 2008-01-15 Bruno Haible <bruno@clisp.org>
12924 Work around a MacOS X 10.5 bug in frexpl().
12925 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
12926 * doc/functions/frexpl.texi: Document the bug.
12927 Reported by Elias Pipping <pipping@gentoo.org>.
12929 2008-01-14 Eric Blake <ebb9@byu.net>
12931 Touch up previous patch.
12932 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
12933 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
12935 Convert strcasestr module to use Two-Way algorithm.
12936 * modules/strcasestr-simple: New module, based on the old
12937 strcasestr, but with Two-Way rather than KMP.
12938 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
12939 * lib/string.in.h (rpl_strcasestr): Declare.
12940 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
12942 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
12943 * modules/string (Makefile.am): Support strcasestr.
12944 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12945 * modules/strcasestr-tests (Depends-on): Check for alarm.
12946 * tests/test-strcasestr.c: Augment test.
12947 * lib/str-two-way.h: Clean up stray macro.
12948 * NEWS: Document new module.
12949 * MODULES.html.sh (string handling): Likewise.
12950 * doc/functions/strcasestr.texi: New file.
12951 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
12952 here, since it is not a POSIX function.
12954 2008-01-14 Colin Watson <cjwatson@debian.org>
12955 Bruno Haible <bruno@clisp.org>
12957 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
12958 works fine; if not, set REPLACE_STRSIGNAL.
12959 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
12960 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12962 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
12963 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
12964 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
12966 2008-01-14 Bruno Haible <bruno@clisp.org>
12968 * modules/strsignal (Include): Change to <string.h>.
12970 2008-01-14 Colin Watson <cjwatson@debian.org>
12972 * modules/argp (Notice): Add a notice recommending to change
12974 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
12976 2008-01-13 Colin Watson <cjwatson@debian.org>
12978 * modules/strsignal-tests: New file.
12979 * tests/test-strsignal.c: New file.
12981 * lib/strsignal.c: New file, from glibc with modifications.
12982 * lib/siglist.h: New file, from glibc with modifications.
12983 * lib/string.in.h (strsignal): New declaration.
12984 * m4/strsignal.m4: New file.
12985 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12986 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
12987 * modules/strsignal: New file.
12988 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
12989 HAVE_DECL_STRSIGNAL.
12991 2008-01-13 Bruno Haible <bruno@clisp.org>
12993 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
12994 locale encoding is not ASCII. Needed for OpenBSD 4.0.
12995 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
12996 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12998 2008-01-13 Bruno Haible <bruno@clisp.org>
13000 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
13001 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
13002 * lib/argp.h (__attribute__): Likewise.
13003 * lib/c-stack.c (__attribute__): Likewise.
13004 * lib/error.h (__attribute__): Likewise.
13005 * lib/fts.c (__attribute__): Likewise.
13006 * lib/openat.h (__attribute__): Likewise.
13007 * lib/stdio.in.h (__attribute__): Likewise.
13008 * lib/string.in.h (__attribute__): Likewise.
13009 * lib/utimens.c (__attribute__): Likewise.
13010 * lib/vasnprintf.h (__attribute__): Likewise.
13011 * lib/xalloc.h (__attribute__): Likewise.
13012 * lib/xprintf.h (__attribute__): Likewise.
13013 * lib/xstrtol.h (__attribute__): Likewise.
13014 * lib/xvasprintf.h (__attribute__): Likewise.
13016 2008-01-12 Bruno Haible <bruno@clisp.org>
13018 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
13019 * doc/glibc-headers/a.out.texi: New file.
13020 * doc/glibc-headers/aliases.texi: New file.
13021 * doc/glibc-headers/alloca.texi: New file.
13022 * doc/glibc-headers/ar.texi: New file.
13023 * doc/glibc-headers/argp.texi: New file.
13024 * doc/glibc-headers/argz.texi: New file.
13025 * doc/glibc-headers/byteswap.texi: New file.
13026 * doc/glibc-headers/crypt.texi: New file.
13027 * doc/glibc-headers/endian.texi: New file.
13028 * doc/glibc-headers/envz.texi: New file.
13029 * doc/glibc-headers/err.texi: New file.
13030 * doc/glibc-headers/error.texi: New file.
13031 * doc/glibc-headers/execinfo.texi: New file.
13032 * doc/glibc-headers/fpu_control.texi: New file.
13033 * doc/glibc-headers/fstab.texi: New file.
13034 * doc/glibc-headers/fts.texi: New file.
13035 * doc/glibc-headers/getopt.texi: New file.
13036 * doc/glibc-headers/ieee754.texi: New file.
13037 * doc/glibc-headers/ifaddrs.texi: New file.
13038 * doc/glibc-headers/libintl.texi: New file.
13039 * doc/glibc-headers/mcheck.texi: New file.
13040 * doc/glibc-headers/mntent.texi: New file.
13041 * doc/glibc-headers/obstack.texi: New file.
13042 * doc/glibc-headers/paths.texi: New file.
13043 * doc/glibc-headers/printf.texi: New file.
13044 * doc/glibc-headers/pty.texi: New file.
13045 * doc/glibc-headers/resolv.texi: New file.
13046 * doc/glibc-headers/shadow.texi: New file.
13047 * doc/glibc-headers/sysexits.texi: New file.
13048 * doc/glibc-headers/ttyent.texi: New file.
13050 2008-01-12 Jim Meyering <meyering@redhat.com>
13052 announce-gen: emit Gnulib's git-based version string.
13053 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
13054 New option --gnulib-version=V, where V is expected to be
13055 the output of running git describe in the gnulib directory.
13056 (get_tool_versions): Request feedback on xdelta. I suspect it's
13057 not useful, and plan to stop publishing an xdelta file with each
13060 * build-aux/announce-gen: Also check for lzma-compressed files.
13062 2008-01-11 Bruno Haible <bruno@clisp.org>
13064 * tests/test-memmem.c (main): Increase maximum allowed time.
13065 * tests/test-strstr.c (main): Likewise.
13067 2008-01-11 Bruno Haible <bruno@clisp.org>
13069 * doc/functions/memmem.texi: Add more precisions about platforms.
13070 * doc/functions/strstr.texi: Likewise.
13072 2008-01-10 Eric Blake <ebb9@byu.net>
13074 * m4/strstr.m4: Delete cruft from copy-n-paste.
13075 Reported by Bruno Haible.
13077 2008-01-10 Bruno Haible <bruno@clisp.org>
13079 Make c-strstr rely on strstr.
13080 * lib/c-strstr.c: Don't include str-kmp.h.
13081 (c_strstr): Define in terms of strstr.
13082 * modules/c-strstr (Files): Remove lib/str-kmp.h.
13083 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
13085 2008-01-10 Bruno Haible <bruno@clisp.org>
13087 * doc/gnulib.texi (String Functions in C Locale): New section.
13088 * doc/c-ctype.texi: New file.
13089 * doc/c-strcase.texi: New file.
13090 * doc/c-strcaseeq.texi: New file.
13091 * doc/c-strcasestr.texi: New file.
13092 * doc/c-strstr.texi: New file.
13093 * doc/c-strtod.texi: New file.
13094 * doc/c-strtold.texi: New file.
13096 2008-01-10 Eric Blake <ebb9@byu.net>
13098 * lib/relocatable.h: Fix a comment.
13100 2008-01-10 Eric Blake <ebb9@byu.net>
13102 Share two-way algorithm.
13103 * lib/str-two-way.h: New file, merged from...
13104 * lib/memmem.c: ...here...
13105 * lib/strstr.c: ...and here.
13106 * modules/memmem (Files): Use it.
13107 * modules/strstr (Files): Likewise.
13109 Avoid quadratic strstr implementations.
13110 * lib/strstr.c: New file.
13111 * m4/strstr.m4: Likewise.
13112 * modules/strstr: Likewise.
13113 * modules/strstr-tests: Likewise.
13114 * tests/test-strstr.c: Likewise.
13115 * lib/string.in.h (rpl_strstr): Declare.
13116 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
13117 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
13118 * modules/string (Makefile.am): Likewise.
13119 * MODULES.html.sh (string handling): Mention new module.
13120 * doc/functions/strstr.texi (strstr): Document the bug.
13122 2008-01-10 Bruno Haible <bruno@clisp.org>
13124 * lib/relocatable.h (relocate): State whether result is freshly
13126 * lib/relocatable.c (relocate): Return a freshly allocated string
13127 instead of a pointer to a privately held string.
13128 Reported by Sylvain Beucler <beuc@gnu.org>.
13130 2008-01-10 Colin Watson <cjwatson@debian.org>
13132 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
13133 s/S_ISNLK/S_ISLNK/.
13135 2008-01-09 Bruno Haible <bruno@clisp.org>
13137 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
13139 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
13140 if it's only a guess.
13141 * modules/memmem: Simplify by depending on memmem-simple.
13143 2008-01-09 Bruno Haible <bruno@clisp.org>
13145 Work around OpenBSD 4.0 tdelete() bug.
13146 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
13147 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
13148 macros and don't redefine the enum values.
13149 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
13150 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
13151 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
13153 2008-01-09 Bruno Haible <bruno@clisp.org>
13155 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
13156 (main): Don't perform the tests if setlocale did not install a UTF-8
13157 locale. Needed on OpenBSD 4.0.
13158 * modules/wcwidth-tests (Depends-on): Add localcharset.
13160 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
13162 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
13163 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
13164 * NEWS: announce this.
13165 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
13167 2008-01-09 Simon Josefsson <simon@josefsson.org>
13168 and Eric Blake <ebb9@byu.net>
13170 Add memmem-simple module.
13171 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
13172 (gl_FUNC_MEMMEM): Separate performance from presence checks.
13173 * modules/memmem-simple: New file.
13174 * modules/memmem (Description): Tweak.
13175 * MODULES.html.sh (string handling): Mention new module.
13176 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
13177 addressed by memmem-simple.
13178 * NEWS: Document the difference.
13180 2008-01-09 Eric Blake <ebb9@byu.net>
13182 Give gcc some memmem optimization hints.
13183 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
13184 (strcasestr): Declare as pure.
13185 * modules/memmem (Maintainer): Claim my implementation.
13187 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13189 Support AIX 6.1 and higher.
13190 * build-aux/config.libpath: Likewise.
13191 * build-aux/config.rpath: Likewise.
13193 2008-01-08 Jim Meyering <meyering@redhat.com>
13194 Bruno Haible <bruno@clisp.org>
13196 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
13197 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
13198 Reported by Peter Fales in
13199 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
13201 2008-01-08 Bruno Haible <bruno@clisp.org>
13203 * modules/unictype/category-of (Depends-on): Add
13204 unictype/category-none.
13205 * modules/unictype/category-and-tests (Depends-on): Add
13206 unictype/category-{L,N,Lu,Nd}.
13207 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
13208 * modules/unictype/category-or-tests (Depends-on): Add
13209 unictype/category-{L,N}.
13210 * modules/unictype/category-name-tests (Depends-on): Add
13211 unictype/category-{Z,Nl}.
13212 Reported by Simon Josefsson.
13214 2008-01-08 Bruno Haible <bruno@clisp.org>
13216 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
13218 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
13219 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
13220 Reported by Peter Miller <millerp@canb.auug.org.au>.
13222 2008-01-08 Eric Blake <ebb9@byu.net>
13224 Rewrite memmem to guarantee linear complexity without malloc.
13225 * lib/memmem.c (memmem): Use Two-Way rather than
13226 Knuth-Morris-Pratt, to allow O(1) space usage.
13227 (critical_factorization, two_way_short_needle)
13228 (two_way_long_needle): New functions.
13229 (knuth_morris_pratt): Delete.
13230 * modules/memmem (Depends-on): No longer need malloca or stdbool.
13232 * tests/test-memmem.c (main): Add tests for periodic needle and
13233 sublinear performance.
13234 * doc/functions/memmem.texi (memmem): Document other deficiencies
13235 in cygwin and older glibc.
13237 2008-01-08 Bruno Haible <bruno@clisp.org>
13239 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
13242 2008-01-08 Mike Frysinger <vapier@gentoo.org>
13244 Add a configure time option: --disable-acl.
13245 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
13246 AC_ARG_ENABLE(acl).
13248 2008-01-06 Simon Josefsson <simon@josefsson.org>
13250 * tests/test-localename.c: Don't include obsolete "setenv.h".
13252 * modules/localename-tests (Depends-on): Need unsetenv.
13254 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13256 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
13258 2008-01-06 Colin Watson <cjwatson@debian.org>
13260 * users.txt: Add man-db.
13262 2008-01-07 Bruno Haible <bruno@clisp.org>
13264 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
13265 previous section name.
13267 2008-01-07 Bruno Haible <bruno@clisp.org>
13269 * lib/progname.c (set_program_name): Don't strip off a leading
13270 "lt-" prefix outside a .libs directory.
13271 Suggested by Paul Eggert.
13273 2008-01-01 Sylvain Beucler <beuc@gnu.org>
13274 Bruno Haible <bruno@clisp.org>
13276 Improve memory cleanup in 'relocatable' module.
13277 * lib/relocatable.h (compute_curr_prefix): Change return type to
13279 * lib/relocatable.c (compute_curr_prefix): Change return type to
13280 'char *'. Free curr_installdir after use.
13281 (relocate): Free curr_prefix_better after use.
13282 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
13284 2008-01-01 Bruno Haible <bruno@clisp.org>
13286 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
13287 failure on older glibc systems.
13288 Reported by Peter Fales <psfales@alcatel-lucent.com>.
13290 2008-01-05 Eric Blake <ebb9@byu.net>
13292 Avoid quadratic system memmem.
13293 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
13294 Reported by Ralf Wildenhues.
13296 Fix memmem test for mingw.
13297 * modules/memmem-tests (configure.ac): Check for alarm.
13298 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
13300 * doc/functions/memmem.texi: New file.
13301 * doc/gnulib.texi (Function Substitutes): Add memmem.
13302 Reported by Bruno Haible.
13304 2008-01-04 Bruno Haible <bruno@clisp.org>
13306 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
13307 Require gl_HEADER_STRINGS_H_DEFAULTS, not
13308 gl_HEADER_STRING_H_DEFAULTS.
13310 2008-01-04 Eric Blake <ebb9@byu.net>
13312 Shorten duration of memmem test.
13313 * tests/test-memmem.c (main): Use alarm to declare failure if test
13314 is taking too long.
13315 Reported by Ralf Wildenhues.
13317 2007-12-21 Simon Josefsson <simon@josefsson.org>
13319 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
13320 string, needed by strerror.
13322 2008-01-03 Colin Watson <cjwatson@debian.org>
13323 Bruno Haible <bruno@clisp.org>
13325 * doc/gnulib-tool.texi (Localization): New section.
13327 2008-01-02 Bruno Haible <bruno@clisp.org>
13329 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
13330 variables to 'unsigned char *' type.
13331 Reported by Paul Eggert.
13333 2008-01-02 Jim Meyering <jim@meyering.net>
13335 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
13337 2007-12-31 Jim Meyering <jim@meyering.net>
13339 Avoid use of private FTS type name.
13340 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
13342 2007-12-30 Karl Berry <karl@gnu.org>
13344 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
13345 work around defect in Texinfo and/or the standalone Info browser.
13347 2007-12-30 Bruno Haible <bruno@clisp.org>
13349 Unify 5 copies of the KMP code.
13350 * lib/str-kmp.h: New file.
13351 * lib/c-strcasestr.c: Include str-kmp.h.
13352 (knuth_morris_pratt): Remove function.
13353 (c_strcasestr): Update.
13354 * lib/c-strstr.c: Include str-kmp.h.
13355 (knuth_morris_pratt): Remove function.
13356 (c_strcasestr): Update.
13357 * lib/mbscasestr.c: Include str-kmp.h.
13358 (knuth_morris_pratt_unibyte): Remove function.
13359 * lib/mbsstr.c: Include str-kmp.h.
13360 (knuth_morris_pratt_unibyte): Remove function.
13361 * lib/strcasestr.c: Include str-kmp.h.
13362 (knuth_morris_pratt): Remove function.
13363 (strcasestr): Update.
13364 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
13365 * modules/c-strstr (Files): Likewise.
13366 * modules/mbscasestr (Files): Likewise.
13367 * modules/mbsstr (Files): Likewise.
13368 * modules/strcasestr (Files): Likewise.
13369 Suggested by Paul Eggert.
13371 2007-12-30 Bruno Haible <bruno@clisp.org>
13373 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
13376 2007-12-30 Bruno Haible <bruno@clisp.org>
13378 * lib/xmalloca.h: Include xalloc.h.
13379 (xnmalloca): New macro.
13381 2007-12-30 Bruno Haible <bruno@clisp.org>
13383 * lib/malloca.h (nmalloca): New macro.
13384 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
13385 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
13386 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
13387 knuth_morris_pratt_multibyte): Likewise.
13388 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
13389 knuth_morris_pratt_multibyte): Likewise.
13390 * lib/memmem.c (knuth_morris_pratt): Likewise.
13391 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
13393 2007-12-25 Bruno Haible <bruno@clisp.org>
13395 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
13396 * lib/glob.c: Don't include openat.h.
13397 (link_exists2_p): Add back the code that deals with the
13398 !GLOB_ALTDIRFUNC case.
13399 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
13400 let it do the filename concatenation.
13401 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
13402 * modules/glob (Depends-on): Remove openat.
13404 2007-12-31 Bruno Haible <bruno@clisp.org>
13406 * modules/dirfd (License): Change to LGPLv2+.
13407 Approved by Jim Meyering.
13409 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
13411 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
13412 when multiplying M by sizeof (size_t).
13414 2007-12-10 Martin Lambers <marlam@marlam.de>
13416 Override getpagesize on mingw.
13417 * lib/getpagesize.c: New file.
13418 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
13419 * modules/getpagesize (Files): Add lib/getpagesize.c.
13420 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
13421 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13422 REPLACE_GETPAGESIZE.
13423 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
13425 2007-12-25 Bruno Haible <bruno@clisp.org>
13427 * modules/localcharset (Notice): New field.
13428 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
13429 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13431 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
13432 Bruno Haible <bruno@clisp.org>
13434 Avoid using the syntax symbol() in formatted documentation.
13435 * MODULES.html.sh (func_module): When replacing symbol() with a
13436 hyperlink, remove the parentheses. Show an error if some remain.
13437 Recognize and render the '...' syntax.
13438 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
13439 Rework. Add paragraph about GCC's inlining.
13440 * doc/alloca.texi: Likewise.
13441 * doc/error.texi: Remove parentheses from symbol reference.
13442 * doc/gnulib-intro.texi: Likewise.
13443 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
13444 * modules/fnmatch (Description): Reword to say "the ... function".
13445 * modules/full-read (Description): Likewise.
13446 * modules/full-write (Description): Likewise.
13447 * modules/safe-read (Description): Likewise.
13448 * modules/safe-write (Description): Likewise.
13449 * modules/strchrnul (Description): Likewise.
13450 * modules/trim (Description): Likewise.
13451 * modules/error (Description): Remove parentheses from symbol
13453 * modules/verror (Description): Likewise.
13454 Reported by Karl Berry.
13456 2007-12-25 Bruno Haible <bruno@clisp.org>
13458 Fixup after 2007-10-16 commit.
13459 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
13461 2007-12-24 Bruno Haible <bruno@clisp.org>
13463 Make --enable-relocatable work with DESTDIR.
13464 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
13465 to compute installdir from destprog.
13466 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
13467 also set the RELOC_DESTDIR variable.
13468 Reported by Левашев Иван <octagram@bluebottle.com>.
13470 2007-12-24 Bruno Haible <bruno@clisp.org>
13472 Fix link error due to xalloc_die().
13473 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
13475 * lib/relocwrapper.c: Update comments.
13476 * build-aux/install-reloc: Remove xreadlink.c from file list.
13477 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
13479 Reported by Левашев Иван <octagram@bluebottle.com>.
13481 2007-12-24 Bruno Haible <bruno@clisp.org>
13483 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
13484 * lib/setenv.h: Remove file.
13485 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
13487 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
13488 (Depends-on): Add stdlib.
13489 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
13491 (Include): Replace setenv.h with <stdlib.h>.
13492 * modules/unsetenv: New file.
13493 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
13494 * lib/unsetenv.c: Include <stdlib.h> first.
13495 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
13496 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
13497 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
13498 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
13499 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
13500 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
13501 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
13502 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
13503 * doc/functions/unsetenv.texi: Update.
13504 * modules/xsetenv (Depends-on): Add unsetenv.
13505 * modules/getdate (Depends-on): Likewise.
13506 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
13507 * lib/xsetenv.c: Don't include setenv.h.
13508 * lib/getdate.y: Likewise.
13509 * lib/relocwrapper.c: Likewise.
13510 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
13511 (Depends-on): Add stdlib.
13512 * NEWS: Mention the changes.
13513 Reported by Левашев Иван <octagram@bluebottle.com>.
13515 2007-12-23 Bruno Haible <bruno@clisp.org>
13517 * lib/memmem.c (memmem): Use lowercase variable names. Tab
13520 2007-12-23 Bruno Haible <bruno@clisp.org>
13522 * lib/c-strcasestr.c: Add more comments.
13523 * lib/c-strstr.c: Likewise.
13524 * lib/mbscasestr.c: Likewise.
13525 * lib/mbsstr.c: Likewise.
13526 * lib/strcasestr.c: Likewise.
13527 * lib/memmem.c: Likewise.
13529 2007-12-23 Bruno Haible <bruno@clisp.org>
13531 * tests/test-memmem.c: Include <string.h> first.
13533 2007-12-22 Bruno Haible <bruno@clisp.org>
13535 * gnulib-tool (func_create_testdir): Change $auxdir while generating
13536 the contents of $testsbase.
13537 Reported by Ralf Wildenhues.
13539 2007-12-22 Bruno Haible <bruno@clisp.org>
13541 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
13542 two variables local_ldadd_before, local_ldadd_last.
13544 2007-12-20 Eric Blake <ebb9@byu.net>
13546 Work around circular library issue when cross-compiling.
13547 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
13548 that progname.o does not need to pull in rpl_memcmp.
13550 2007-12-19 Eric Blake <ebb9@byu.net>
13552 Fix memmem to avoid O(n^2) worst-case complexity.
13553 * lib/memmem.c (knuth_morris_pratt): New function.
13554 (memmem): Use it if first few naive iterations fail.
13555 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
13556 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
13557 * modules/memchr (License): Likewise.
13558 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
13560 * tests/test-memmem.c: Rewrite, borrowing ideas from
13561 test-mbsstr1.c; the old version wouldn't even compile!
13562 * modules/memmem-tests: New file.
13563 * lib/string.in.h (rpl_memmem): Add declaration.
13564 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
13565 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
13568 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
13570 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
13571 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
13572 before any system include files, and undef after them all. This
13573 should fix a problem on VMS reported by John E. Malmberg in
13574 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
13576 2007-12-17 Eric Blake <ebb9@byu.net>
13578 Revert addition of verify, for BSD/OS.
13579 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
13580 can't handle large files, for the sake of obsolete platforms.
13581 * modules/fseeko (Depends-on): Remove verify.
13582 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
13583 * doc/functions/ftello.texi (ftello): Likewise.
13584 * doc/functions/fgetpos.texi (fgetpos): Likewise.
13585 Reported by Larry Jones.
13587 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
13589 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
13590 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
13592 2007-12-17 Jim Meyering <meyering@redhat.com>
13594 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
13595 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
13596 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
13597 * modules/getcwd (Depends-on): Add openat.
13598 Reported by Petr Salinger.
13600 2007-12-17 Bruno Haible <bruno@clisp.org>
13602 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
13603 avoid a segmentation fault of the configure test on x86_64 systems.
13605 2007-12-15 Jim Meyering <meyering@redhat.com>
13607 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
13609 2007-12-13 Eric Blake <ebb9@byu.net>
13611 Another fseek test.
13612 * tests/test-fseek.c (main): Also test ungetc handling.
13613 * tests/test-fseeko.c (main): Likewise.
13614 * modules/fseeko (Depends-on): Add verify.
13615 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
13617 Reported by Larry Jones.
13619 Fix fseeko on mingw.
13620 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
13623 Beef up fseek tests.
13624 * tests/test-fseek.c (main): Also test eof handling.
13625 * tests/test-fseeko.c (main): Likewise.
13626 Reported by Larry Jones.
13628 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
13630 Fix fseeko on BSD-based platforms.
13631 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
13634 2007-12-12 Eric Blake <ebb9@byu.net>
13636 Allow circular dependency of separate libtests.a
13637 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
13640 2007-12-11 Eric Blake <ebb9@byu.net>
13642 Fix bug with -0.0L in previous patch.
13643 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
13644 * tests/test-isnan.c (main): Also test on zeroes.
13645 * tests/test-isnanf.c (main): Likewise.
13646 * tests/test-isnanl.h (main): Likewise.
13648 Detect pseudo-denormals on x86 even when cross-compiling.
13649 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
13650 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
13651 invalid bit patterns that happen to satisfy ==.
13653 Avoid link failures with separate libtests.a.
13654 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
13655 last, to satisfy circular dependencies.
13657 2007-12-11 Eric Blake <ebb9@byu.net>
13658 and Bruno Haible <bruno@clisp.org>
13660 Fix OpenBSD 4.0 <float.h> handling of long double.
13661 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
13662 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
13663 * doc/headers/float.texi (float.h): Document OpenBSD bug.
13665 2007-12-11 Jim Meyering <meyering@redhat.com>
13667 * users.txt: Add libvirt.
13669 Support versions of autoconf prior to 2.59c.
13670 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
13671 if it is not already defined.
13673 2007-12-09 Bruno Haible <bruno@clisp.org>
13675 Let 'gnulib-tool --import' collect sources needed for the tests in
13676 tests/ rather than in lib/.
13677 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
13678 argument. If true, add rules to generate libtests.a, and put libtests.a
13679 into $(LDADD). Consider source files in subdirectories and set
13681 (func_emit_initmacro_start, func_emit_initmacro_end,
13682 func_emit_initmacro_done): Pass all arguments explicitly.
13683 (func_import): Determine two module lists main_modules,
13684 testsrelated_modules. Determine use_libtests. Determine two variables
13685 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
13686 instead of just sed_transform_lib_file. Determine two variables
13687 main_files and testsrelated_files. Compute 'files' as the union of
13688 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
13689 func_add_or_update. In the generated gnulib-comp.m4, collect the
13690 object files for tests/ in different variables than those for lib/.
13691 Substitute LIBTESTS_LIBDEPS.
13692 (func_create_testdir): Combine the uses_subdirs results from
13693 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
13695 2007-12-09 Bruno Haible <bruno@clisp.org>
13697 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
13698 the build-aux directory.
13700 2007-12-09 Bruno Haible <bruno@clisp.org>
13702 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
13703 introduced on 2006-09-09.
13705 2007-12-07 Jim Meyering <meyering@redhat.com>
13707 Let these macros work also with autoconf-2.59.
13708 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
13709 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
13710 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13712 2007-12-06 Jim Meyering <meyering@redhat.com>
13714 Avoid a configure-time syntax error in gl_FUNC_ACL.
13715 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
13716 function in each branch, before testing the cache variable.
13718 2007-12-04 Eric Blake <ebb9@byu.net>
13720 Make scripts executable.
13721 * build-aux/config.guess: Add execute permissions.
13722 * build-aux/config.sub: Likewise.
13723 * build-aux/gendocs.sh: Likewise.
13725 Fix frexp on mingw.
13726 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
13728 * doc/functions/frexp.texi (frexp): Document the bug.
13730 Make cygwin fseeko check more reliable.
13731 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
13732 version numbers, rather than unrelated feature check.
13733 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
13734 * doc/functions/ftello.texi (ftello): Likewise.
13735 Reported by Bruno Haible.
13737 * m4/strerror.m4: Bump version number.
13739 2007-12-03 Bruno Haible <bruno@clisp.org>
13741 * doc/functions/mprotect.texi: Mention the mingw problem.
13743 2007-12-03 Eric Blake <ebb9@byu.net>
13745 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
13746 REPLACE_STRERROR is initialized before this macro.
13748 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
13750 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
13751 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
13752 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
13753 put -lsec in even for programs other than 'ls'. This fixes a problem
13754 for gettext reported by Bruno Haible in
13755 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
13756 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
13757 Add support for Solaris 10. This isn't efficient, but should get the
13760 2007-12-03 James Youngman <jay@gnu.org>
13762 * doc/regexprops-generic.texi: change "an close-group" to "a
13763 close-group" and "illegal" to "not allowed".
13765 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13767 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
13768 pr_byname.h. Needed for the rare case when the maintainer has done
13769 "make maintainer-clean" in the source directory and then attempts a
13770 build outside the source directory.
13771 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
13774 2007-12-02 Martin Lambers <marlam@marlam.de>
13775 Bruno Haible <bruno@clisp.org>
13777 * lib/getpagesize.h: Remove file.
13778 * lib/unistd.in.h: Include declaration of getpagesize here.
13779 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
13780 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
13782 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
13783 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
13784 * modules/getpagesize (Files): Remove lib/getpagesize.h.
13785 (Depends-on): Add unistd.
13786 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13787 (Include): Use <unistd.h> instead of getpagesize.h.
13788 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
13789 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
13790 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
13791 gl_GETPAGESIZE invocation, already handled by module dependency.
13792 * lib/pagealign_alloc.c: Don't include getpagesize.h.
13794 2007-12-02 Bruno Haible <bruno@clisp.org>
13796 * modules/strings-tests: New file.
13797 * tests/test-strings.c: New file.
13799 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
13800 * lib/strings.in.h: New file.
13801 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
13802 * m4/strings_h.m4: New file.
13803 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
13804 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
13805 * modules/strings: New file.
13806 * modules/string (Makefile.am): Update.
13807 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
13808 Reported by Karl Berry.
13810 2007-12-01 Eric Blake <ebb9@byu.net>
13812 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
13813 accomodate fix in cygwin 1.5.25.
13815 2007-12-01 Jim Meyering <meyering@redhat.com>
13817 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
13818 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
13819 that would inhibit utf8-optimization of a regexp containing line-
13820 or buffer-anchors, e.g., `^', `$'.
13822 2007-11-30 Bruno Haible <bruno@clisp.org>
13824 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
13825 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
13826 glthread_recursive_lock_init.
13827 * lib/lock.c (glthread_recursive_lock_init)
13828 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
13829 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13831 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
13833 New function qset_acl, like set_acl but with syscall semantics.
13834 * lib/acl.h (qset_acl): New decl.
13835 * lib/acl.c (qset_acl): New function.
13836 (set_acl): Use new function. Use more-consistent diagnostics.
13838 2007-11-28 Jim Meyering <meyering@redhat.com>
13840 * modules/physmem (License): Change from GPL to LGPLv2+.
13842 2007-11-26 Bruno Haible <bruno@clisp.org>
13844 * lib/vasnprintf.c (decode_long_double): Don't abort if the
13845 'long double' type has excess precision.
13846 Reported by Jim Meyering in
13847 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
13849 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13851 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
13852 Sync from <http://gnu.org/licenses>.
13853 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
13854 with license text from same location.
13855 * doc/maintain.texi, doc/standards.texi: Sync from
13856 <http://savannah.gnu.org/projects/gnustandards>.
13858 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
13859 and Jim Meyering <meyering@redhat.com>
13861 Adjust getdate' grammar to accept a slightly more regular language.
13862 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
13863 Before, the former was rejected.
13864 * lib/getdate.y (digits_to_date_time): New function, factored
13866 (number): ...here. Just call digits_to_date_time.
13867 (hybrid): New non-terminal to handle an <unsigned number,
13868 signed relative offset> sequence consistently.
13870 2007-11-18 Jim Meyering <meyering@redhat.com>
13872 Pull my changes from coreutils:
13873 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
13874 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
13875 use of $gnulib_tool_option_extras, so that it's separated from the
13876 preceding argument.
13878 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
13879 * build-aux/bootstrap (cp_mark_as_generated): Create any required
13880 parent destination directories before copying a file into place.
13882 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
13884 bootstrap: work also with 4-argument variant of AC_INIT
13885 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
13887 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
13889 Port test-getaddrinfo to Solaris.
13890 Problem reported by Bruno Haible in
13891 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
13892 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
13893 explanation of setting 'hints'.
13894 Don't reject an implementation merely because it returns EAI_SERVICE.
13895 (EAI_SERVICE): Define to 0 if not defined.
13897 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
13899 The license of gnu-make and posix-shell is now "GPLed build tool".
13900 * modules/gnu-make (License): Likewise.
13901 * modules/posix-shell (License): Likewise.
13903 New module posix-shell, for determining a POSIX shell
13904 or perhaps something that is close enough to a POSIX shell.
13905 * m4/posix-shell.m4: New file.
13906 * modules/posix-shell: New file.
13908 * MODULES.html.sh: Mention new module.
13910 New module gnu-make, for determining whether we're using GNU Make.
13911 * m4/gnu-make.m4: New file.
13912 * modules/gnu-make: New file.
13913 * MODULES.html.sh: Mention new module.
13915 2007-11-14 Jim Meyering <meyering@redhat.com>
13917 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
13918 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
13919 use this macro to create a function _definition_.
13920 Remove useless "#undef ARGMATCH_DIE".
13922 2007-11-14 Bruno Haible <bruno@clisp.org>
13924 * lib/config.charset: Update for OpenBSD 4.1.
13925 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
13927 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
13929 Document 64-bit #if problems in stdint.texi.
13930 * doc/headers/stdint.texi (stdint.h): Mention problems with
13931 64-bit-#if, and how to work around them.
13933 Don't insist on 'long long int' support in the preprocessor. It
13934 breaks too many things. For example, PRIdMAX still uses a 'long
13935 long int' format with the latest Sun compiler, even though
13936 HAVE_LONG_LONG_INT isn't defined due to that compiler's
13937 preprocessor problem. This causes the latest coreutils to dump
13938 core on Solaris 10 sparc with the Sun C compiler.
13939 Instead, fix the 2007-10-16 problem in a different way, by evaluating
13940 the troublesome expressions at configure-time, not at #if-time.
13941 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
13943 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
13944 compile-time C checks, done at 'configure'-time.
13945 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
13946 * modules/inttypes (Makefile): Substitute the new symbols that
13947 gl_INTTYPES_H now generates.
13948 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
13950 2007-11-12 Bruno Haible <bruno@clisp.org>
13952 Tests for Unicode character classification functions.
13954 * modules/unictype/bidicategory-byname-tests: New file.
13955 * modules/unictype/bidicategory-name-tests: New file.
13956 * modules/unictype/bidicategory-of-tests: New file.
13957 * modules/unictype/bidicategory-test-tests: New file.
13958 * modules/unictype/block-list-tests: New file.
13959 * modules/unictype/block-of-tests: New file.
13960 * modules/unictype/block-test-tests: New file.
13961 * modules/unictype/category-C-tests: New file.
13962 * modules/unictype/category-Cc-tests: New file.
13963 * modules/unictype/category-Cf-tests: New file.
13964 * modules/unictype/category-Cn-tests: New file.
13965 * modules/unictype/category-Co-tests: New file.
13966 * modules/unictype/category-Cs-tests: New file.
13967 * modules/unictype/category-L-tests: New file.
13968 * modules/unictype/category-Ll-tests: New file.
13969 * modules/unictype/category-Lm-tests: New file.
13970 * modules/unictype/category-Lo-tests: New file.
13971 * modules/unictype/category-Lt-tests: New file.
13972 * modules/unictype/category-Lu-tests: New file.
13973 * modules/unictype/category-M-tests: New file.
13974 * modules/unictype/category-Mc-tests: New file.
13975 * modules/unictype/category-Me-tests: New file.
13976 * modules/unictype/category-Mn-tests: New file.
13977 * modules/unictype/category-N-tests: New file.
13978 * modules/unictype/category-Nd-tests: New file.
13979 * modules/unictype/category-Nl-tests: New file.
13980 * modules/unictype/category-No-tests: New file.
13981 * modules/unictype/category-P-tests: New file.
13982 * modules/unictype/category-Pc-tests: New file.
13983 * modules/unictype/category-Pd-tests: New file.
13984 * modules/unictype/category-Pe-tests: New file.
13985 * modules/unictype/category-Pf-tests: New file.
13986 * modules/unictype/category-Pi-tests: New file.
13987 * modules/unictype/category-Po-tests: New file.
13988 * modules/unictype/category-Ps-tests: New file.
13989 * modules/unictype/category-S-tests: New file.
13990 * modules/unictype/category-Sc-tests: New file.
13991 * modules/unictype/category-Sk-tests: New file.
13992 * modules/unictype/category-Sm-tests: New file.
13993 * modules/unictype/category-So-tests: New file.
13994 * modules/unictype/category-Z-tests: New file.
13995 * modules/unictype/category-Zl-tests: New file.
13996 * modules/unictype/category-Zp-tests: New file.
13997 * modules/unictype/category-Zs-tests: New file.
13998 * modules/unictype/category-and-not-tests: New file.
13999 * modules/unictype/category-and-tests: New file.
14000 * modules/unictype/category-byname-tests: New file.
14001 * modules/unictype/category-name-tests: New file.
14002 * modules/unictype/category-none-tests: New file.
14003 * modules/unictype/category-of-tests: New file.
14004 * modules/unictype/category-or-tests: New file.
14005 * modules/unictype/category-test-withtable-tests: New file.
14006 * modules/unictype/combining-class-tests: New file.
14007 * modules/unictype/ctype-alnum-tests: New file.
14008 * modules/unictype/ctype-alpha-tests: New file.
14009 * modules/unictype/ctype-blank-tests: New file.
14010 * modules/unictype/ctype-cntrl-tests: New file.
14011 * modules/unictype/ctype-digit-tests: New file.
14012 * modules/unictype/ctype-graph-tests: New file.
14013 * modules/unictype/ctype-lower-tests: New file.
14014 * modules/unictype/ctype-print-tests: New file.
14015 * modules/unictype/ctype-punct-tests: New file.
14016 * modules/unictype/ctype-space-tests: New file.
14017 * modules/unictype/ctype-upper-tests: New file.
14018 * modules/unictype/ctype-xdigit-tests: New file.
14019 * modules/unictype/decimal-digit-tests: New file.
14020 * modules/unictype/digit-tests: New file.
14021 * modules/unictype/mirror-tests: New file.
14022 * modules/unictype/numeric-tests: New file.
14023 * modules/unictype/property-alphabetic-tests: New file.
14024 * modules/unictype/property-ascii-hex-digit-tests: New file.
14025 * modules/unictype/property-bidi-arabic-digit-tests: New file.
14026 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
14027 * modules/unictype/property-bidi-block-separator-tests: New file.
14028 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
14029 * modules/unictype/property-bidi-common-separator-tests: New file.
14030 * modules/unictype/property-bidi-control-tests: New file.
14031 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
14032 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
14033 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
14034 * modules/unictype/property-bidi-european-digit-tests: New file.
14035 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
14036 * modules/unictype/property-bidi-left-to-right-tests: New file.
14037 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
14038 * modules/unictype/property-bidi-other-neutral-tests: New file.
14039 * modules/unictype/property-bidi-pdf-tests: New file.
14040 * modules/unictype/property-bidi-segment-separator-tests: New file.
14041 * modules/unictype/property-bidi-whitespace-tests: New file.
14042 * modules/unictype/property-byname-tests: New file.
14043 * modules/unictype/property-combining-tests: New file.
14044 * modules/unictype/property-composite-tests: New file.
14045 * modules/unictype/property-currency-symbol-tests: New file.
14046 * modules/unictype/property-dash-tests: New file.
14047 * modules/unictype/property-decimal-digit-tests: New file.
14048 * modules/unictype/property-default-ignorable-code-point-tests: New file.
14049 * modules/unictype/property-deprecated-tests: New file.
14050 * modules/unictype/property-diacritic-tests: New file.
14051 * modules/unictype/property-extender-tests: New file.
14052 * modules/unictype/property-format-control-tests: New file.
14053 * modules/unictype/property-grapheme-base-tests: New file.
14054 * modules/unictype/property-grapheme-extend-tests: New file.
14055 * modules/unictype/property-grapheme-link-tests: New file.
14056 * modules/unictype/property-hex-digit-tests: New file.
14057 * modules/unictype/property-hyphen-tests: New file.
14058 * modules/unictype/property-id-continue-tests: New file.
14059 * modules/unictype/property-id-start-tests: New file.
14060 * modules/unictype/property-ideographic-tests: New file.
14061 * modules/unictype/property-ids-binary-operator-tests: New file.
14062 * modules/unictype/property-ids-trinary-operator-tests: New file.
14063 * modules/unictype/property-ignorable-control-tests: New file.
14064 * modules/unictype/property-iso-control-tests: New file.
14065 * modules/unictype/property-join-control-tests: New file.
14066 * modules/unictype/property-left-of-pair-tests: New file.
14067 * modules/unictype/property-line-separator-tests: New file.
14068 * modules/unictype/property-logical-order-exception-tests: New file.
14069 * modules/unictype/property-lowercase-tests: New file.
14070 * modules/unictype/property-math-tests: New file.
14071 * modules/unictype/property-non-break-tests: New file.
14072 * modules/unictype/property-not-a-character-tests: New file.
14073 * modules/unictype/property-numeric-tests: New file.
14074 * modules/unictype/property-other-alphabetic-tests: New file.
14075 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
14076 * modules/unictype/property-other-grapheme-extend-tests: New file.
14077 * modules/unictype/property-other-id-continue-tests: New file.
14078 * modules/unictype/property-other-id-start-tests: New file.
14079 * modules/unictype/property-other-lowercase-tests: New file.
14080 * modules/unictype/property-other-math-tests: New file.
14081 * modules/unictype/property-other-uppercase-tests: New file.
14082 * modules/unictype/property-paired-punctuation-tests: New file.
14083 * modules/unictype/property-paragraph-separator-tests: New file.
14084 * modules/unictype/property-pattern-syntax-tests: New file.
14085 * modules/unictype/property-pattern-white-space-tests: New file.
14086 * modules/unictype/property-private-use-tests: New file.
14087 * modules/unictype/property-punctuation-tests: New file.
14088 * modules/unictype/property-quotation-mark-tests: New file.
14089 * modules/unictype/property-radical-tests: New file.
14090 * modules/unictype/property-sentence-terminal-tests: New file.
14091 * modules/unictype/property-soft-dotted-tests: New file.
14092 * modules/unictype/property-space-tests: New file.
14093 * modules/unictype/property-terminal-punctuation-tests: New file.
14094 * modules/unictype/property-test-tests: New file.
14095 * modules/unictype/property-titlecase-tests: New file.
14096 * modules/unictype/property-unassigned-code-value-tests: New file.
14097 * modules/unictype/property-unified-ideograph-tests: New file.
14098 * modules/unictype/property-uppercase-tests: New file.
14099 * modules/unictype/property-variation-selector-tests: New file.
14100 * modules/unictype/property-white-space-tests: New file.
14101 * modules/unictype/property-xid-continue-tests: New file.
14102 * modules/unictype/property-xid-start-tests: New file.
14103 * modules/unictype/property-zero-width-tests: New file.
14104 * modules/unictype/scripts-tests: New file.
14105 * modules/unictype/syntax-c-ident-tests: New file.
14106 * modules/unictype/syntax-c-whitespace-tests: New file.
14107 * modules/unictype/syntax-java-ident-tests: New file.
14108 * modules/unictype/syntax-java-whitespace-tests: New file.
14109 * tests/unictype/test-bidi_byname.c: New file.
14110 * tests/unictype/test-bidi_name.c: New file.
14111 * tests/unictype/test-bidi_of.c: New file.
14112 * tests/unictype/test-bidi_test.c: New file.
14113 * tests/unictype/test-block_list.c: New file.
14114 * tests/unictype/test-block_of.c: New file.
14115 * tests/unictype/test-block_test.c: New file.
14116 * tests/unictype/test-categ_and.c: New file.
14117 * tests/unictype/test-categ_and_not.c: New file.
14118 * tests/unictype/test-categ_byname.c: New file.
14119 * tests/unictype/test-categ_name.c: New file.
14120 * tests/unictype/test-categ_none.c: New file.
14121 * tests/unictype/test-categ_of.c: New file.
14122 * tests/unictype/test-categ_or.c: New file.
14123 * tests/unictype/test-categ_test_withtable.c: New file.
14124 * tests/unictype/test-combining.c: New file.
14125 * tests/unictype/test-decdigit.c: New file.
14126 * tests/unictype/test-digit.c: New file.
14127 * tests/unictype/test-mirror.c: New file.
14128 * tests/unictype/test-numeric.c: New file.
14129 * tests/unictype/test-pr_byname.c: New file.
14130 * tests/unictype/test-pr_test.c: New file.
14131 * tests/unictype/test-predicate-part1.h: New file.
14132 * tests/unictype/test-predicate-part2.h: New file.
14133 * tests/unictype/test-scripts.c: New file.
14134 * tests/unictype/test-sy_c_ident.c: New file.
14135 * tests/unictype/test-sy_java_ident.c: New file.
14137 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
14139 * tests/unictype/test-categ_Cc.c: Likewise.
14140 * tests/unictype/test-categ_Cf.c: Likewise.
14141 * tests/unictype/test-categ_Cn.c: Likewise.
14142 * tests/unictype/test-categ_Co.c: Likewise.
14143 * tests/unictype/test-categ_Cs.c: Likewise.
14144 * tests/unictype/test-categ_L.c: Likewise.
14145 * tests/unictype/test-categ_Ll.c: Likewise.
14146 * tests/unictype/test-categ_Lm.c: Likewise.
14147 * tests/unictype/test-categ_Lo.c: Likewise.
14148 * tests/unictype/test-categ_Lt.c: Likewise.
14149 * tests/unictype/test-categ_Lu.c: Likewise.
14150 * tests/unictype/test-categ_M.c: Likewise.
14151 * tests/unictype/test-categ_Mc.c: Likewise.
14152 * tests/unictype/test-categ_Me.c: Likewise.
14153 * tests/unictype/test-categ_Mn.c: Likewise.
14154 * tests/unictype/test-categ_N.c: Likewise.
14155 * tests/unictype/test-categ_Nd.c: Likewise.
14156 * tests/unictype/test-categ_Nl.c: Likewise.
14157 * tests/unictype/test-categ_No.c: Likewise.
14158 * tests/unictype/test-categ_P.c: Likewise.
14159 * tests/unictype/test-categ_Pc.c: Likewise.
14160 * tests/unictype/test-categ_Pd.c: Likewise.
14161 * tests/unictype/test-categ_Pe.c: Likewise.
14162 * tests/unictype/test-categ_Pf.c: Likewise.
14163 * tests/unictype/test-categ_Pi.c: Likewise.
14164 * tests/unictype/test-categ_Po.c: Likewise.
14165 * tests/unictype/test-categ_Ps.c: Likewise.
14166 * tests/unictype/test-categ_S.c: Likewise.
14167 * tests/unictype/test-categ_Sc.c: Likewise.
14168 * tests/unictype/test-categ_Sk.c: Likewise.
14169 * tests/unictype/test-categ_Sm.c: Likewise.
14170 * tests/unictype/test-categ_So.c: Likewise.
14171 * tests/unictype/test-categ_Z.c: Likewise.
14172 * tests/unictype/test-categ_Zl.c: Likewise.
14173 * tests/unictype/test-categ_Zp.c: Likewise.
14174 * tests/unictype/test-categ_Zs.c: Likewise.
14175 * tests/unictype/test-ctype_alnum.c: Likewise.
14176 * tests/unictype/test-ctype_alpha.c: Likewise.
14177 * tests/unictype/test-ctype_blank.c: Likewise.
14178 * tests/unictype/test-ctype_cntrl.c: Likewise.
14179 * tests/unictype/test-ctype_digit.c: Likewise.
14180 * tests/unictype/test-ctype_graph.c: Likewise.
14181 * tests/unictype/test-ctype_lower.c: Likewise.
14182 * tests/unictype/test-ctype_print.c: Likewise.
14183 * tests/unictype/test-ctype_punct.c: Likewise.
14184 * tests/unictype/test-ctype_space.c: Likewise.
14185 * tests/unictype/test-ctype_upper.c: Likewise.
14186 * tests/unictype/test-ctype_xdigit.c: Likewise.
14187 * tests/unictype/test-decdigit.h: Likewise.
14188 * tests/unictype/test-digit.h: Likewise.
14189 * tests/unictype/test-numeric.h: Likewise.
14190 * tests/unictype/test-pr_alphabetic.c: Likewise.
14191 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
14192 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14193 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
14194 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
14195 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
14196 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
14197 * tests/unictype/test-pr_bidi_control.c: Likewise.
14198 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
14199 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
14200 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14201 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
14202 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14203 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14204 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14205 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14206 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
14207 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
14208 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
14209 * tests/unictype/test-pr_combining.c: Likewise.
14210 * tests/unictype/test-pr_composite.c: Likewise.
14211 * tests/unictype/test-pr_currency_symbol.c: Likewise.
14212 * tests/unictype/test-pr_dash.c: Likewise.
14213 * tests/unictype/test-pr_decimal_digit.c: Likewise.
14214 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
14215 * tests/unictype/test-pr_deprecated.c: Likewise.
14216 * tests/unictype/test-pr_diacritic.c: Likewise.
14217 * tests/unictype/test-pr_extender.c: Likewise.
14218 * tests/unictype/test-pr_format_control.c: Likewise.
14219 * tests/unictype/test-pr_grapheme_base.c: Likewise.
14220 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14221 * tests/unictype/test-pr_grapheme_link.c: Likewise.
14222 * tests/unictype/test-pr_hex_digit.c: Likewise.
14223 * tests/unictype/test-pr_hyphen.c: Likewise.
14224 * tests/unictype/test-pr_id_continue.c: Likewise.
14225 * tests/unictype/test-pr_id_start.c: Likewise.
14226 * tests/unictype/test-pr_ideographic.c: Likewise.
14227 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
14228 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
14229 * tests/unictype/test-pr_ignorable_control.c: Likewise.
14230 * tests/unictype/test-pr_iso_control.c: Likewise.
14231 * tests/unictype/test-pr_join_control.c: Likewise.
14232 * tests/unictype/test-pr_left_of_pair.c: Likewise.
14233 * tests/unictype/test-pr_line_separator.c: Likewise.
14234 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
14235 * tests/unictype/test-pr_lowercase.c: Likewise.
14236 * tests/unictype/test-pr_math.c: Likewise.
14237 * tests/unictype/test-pr_non_break.c: Likewise.
14238 * tests/unictype/test-pr_not_a_character.c: Likewise.
14239 * tests/unictype/test-pr_numeric.c: Likewise.
14240 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14241 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
14242 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
14243 * tests/unictype/test-pr_other_id_continue.c: Likewise.
14244 * tests/unictype/test-pr_other_id_start.c: Likewise.
14245 * tests/unictype/test-pr_other_lowercase.c: Likewise.
14246 * tests/unictype/test-pr_other_math.c: Likewise.
14247 * tests/unictype/test-pr_other_uppercase.c: Likewise.
14248 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
14249 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
14250 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
14251 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
14252 * tests/unictype/test-pr_private_use.c: Likewise.
14253 * tests/unictype/test-pr_punctuation.c: Likewise.
14254 * tests/unictype/test-pr_quotation_mark.c: Likewise.
14255 * tests/unictype/test-pr_radical.c: Likewise.
14256 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14257 * tests/unictype/test-pr_soft_dotted.c: Likewise.
14258 * tests/unictype/test-pr_space.c: Likewise.
14259 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14260 * tests/unictype/test-pr_titlecase.c: Likewise.
14261 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14262 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14263 * tests/unictype/test-pr_uppercase.c: Likewise.
14264 * tests/unictype/test-pr_variation_selector.c: Likewise.
14265 * tests/unictype/test-pr_white_space.c: Likewise.
14266 * tests/unictype/test-pr_xid_continue.c: Likewise.
14267 * tests/unictype/test-pr_xid_start.c: Likewise.
14268 * tests/unictype/test-pr_zero_width.c: Likewise.
14269 * tests/unictype/test-sy_c_whitespace.c: Likewise.
14270 * tests/unictype/test-sy_java_whitespace.c: Likewise.
14272 2007-11-12 Bruno Haible <bruno@clisp.org>
14274 Unicode character classification functions.
14275 * lib/unictype.h: New file.
14276 * modules/unictype/base: New file.
14277 * modules/unictype/category-L: New file.
14278 * modules/unictype/category-Lu: New file.
14279 * modules/unictype/category-Ll: New file.
14280 * modules/unictype/category-Lt: New file.
14281 * modules/unictype/category-Lm: New file.
14282 * modules/unictype/category-Lo: New file.
14283 * modules/unictype/category-M: New file.
14284 * modules/unictype/category-Mn: New file.
14285 * modules/unictype/category-Mc: New file.
14286 * modules/unictype/category-Me: New file.
14287 * modules/unictype/category-N: New file.
14288 * modules/unictype/category-Nd: New file.
14289 * modules/unictype/category-Nl: New file.
14290 * modules/unictype/category-No: New file.
14291 * modules/unictype/category-P: New file.
14292 * modules/unictype/category-Pc: New file.
14293 * modules/unictype/category-Pd: New file.
14294 * modules/unictype/category-Ps: New file.
14295 * modules/unictype/category-Pe: New file.
14296 * modules/unictype/category-Pi: New file.
14297 * modules/unictype/category-Pf: New file.
14298 * modules/unictype/category-Po: New file.
14299 * modules/unictype/category-S: New file.
14300 * modules/unictype/category-Sm: New file.
14301 * modules/unictype/category-Sc: New file.
14302 * modules/unictype/category-Sk: New file.
14303 * modules/unictype/category-So: New file.
14304 * modules/unictype/category-Z: New file.
14305 * modules/unictype/category-Zs: New file.
14306 * modules/unictype/category-Zl: New file.
14307 * modules/unictype/category-Zp: New file.
14308 * modules/unictype/category-C: New file.
14309 * modules/unictype/category-Cc: New file.
14310 * modules/unictype/category-Cf: New file.
14311 * modules/unictype/category-Cs: New file.
14312 * modules/unictype/category-Co: New file.
14313 * modules/unictype/category-Cn: New file.
14314 * modules/unictype/category-or: New file.
14315 * modules/unictype/category-of: New file.
14316 * modules/unictype/category-test: New file.
14317 * modules/unictype/category-test-withtable: New file.
14318 * modules/unictype/category-byname: New file.
14319 * modules/unictype/category-none: New file.
14320 * modules/unictype/category-and: New file.
14321 * modules/unictype/category-and-not: New file.
14322 * modules/unictype/category-name: New file.
14323 * modules/unictype/combining-class: New file.
14324 * modules/unictype/category-all: New file.
14325 * modules/unictype/bidicategory-all: New file.
14326 * modules/unictype/bidicategory-byname: New file.
14327 * modules/unictype/bidicategory-name: New file.
14328 * modules/unictype/bidicategory-of: New file.
14329 * modules/unictype/bidicategory-test: New file.
14330 * modules/unictype/decimal-digit: New file.
14331 * modules/unictype/digit: New file.
14332 * modules/unictype/numeric: New file.
14333 * modules/unictype/mirror: New file.
14334 * modules/unictype/property-white-space: New file.
14335 * modules/unictype/property-alphabetic: New file.
14336 * modules/unictype/property-other-alphabetic: New file.
14337 * modules/unictype/property-not-a-character: New file.
14338 * modules/unictype/property-default-ignorable-code-point: New file.
14339 * modules/unictype/property-other-default-ignorable-code-point: New
14341 * modules/unictype/property-deprecated: New file.
14342 * modules/unictype/property-logical-order-exception: New file.
14343 * modules/unictype/property-variation-selector: New file.
14344 * modules/unictype/property-private-use: New file.
14345 * modules/unictype/property-unassigned-code-value: New file.
14346 * modules/unictype/property-uppercase: New file.
14347 * modules/unictype/property-other-uppercase: New file.
14348 * modules/unictype/property-lowercase: New file.
14349 * modules/unictype/property-other-lowercase: New file.
14350 * modules/unictype/property-titlecase: New file.
14351 * modules/unictype/property-soft-dotted: New file.
14352 * modules/unictype/property-id-start: New file.
14353 * modules/unictype/property-other-id-start: New file.
14354 * modules/unictype/property-id-continue: New file.
14355 * modules/unictype/property-other-id-continue: New file.
14356 * modules/unictype/property-xid-start: New file.
14357 * modules/unictype/property-xid-continue: New file.
14358 * modules/unictype/property-pattern-white-space: New file.
14359 * modules/unictype/property-pattern-syntax: New file.
14360 * modules/unictype/property-join-control: New file.
14361 * modules/unictype/property-grapheme-base: New file.
14362 * modules/unictype/property-grapheme-extend: New file.
14363 * modules/unictype/property-other-grapheme-extend: New file.
14364 * modules/unictype/property-grapheme-link: New file.
14365 * modules/unictype/property-bidi-control: New file.
14366 * modules/unictype/property-bidi-left-to-right: New file.
14367 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
14368 * modules/unictype/property-bidi-arabic-right-to-left: New file.
14369 * modules/unictype/property-bidi-european-digit: New file.
14370 * modules/unictype/property-bidi-eur-num-separator: New file.
14371 * modules/unictype/property-bidi-eur-num-terminator: New file.
14372 * modules/unictype/property-bidi-arabic-digit: New file.
14373 * modules/unictype/property-bidi-common-separator: New file.
14374 * modules/unictype/property-bidi-block-separator: New file.
14375 * modules/unictype/property-bidi-segment-separator: New file.
14376 * modules/unictype/property-bidi-whitespace: New file.
14377 * modules/unictype/property-bidi-non-spacing-mark: New file.
14378 * modules/unictype/property-bidi-boundary-neutral: New file.
14379 * modules/unictype/property-bidi-pdf: New file.
14380 * modules/unictype/property-bidi-embedding-or-override: New file.
14381 * modules/unictype/property-bidi-other-neutral: New file.
14382 * modules/unictype/property-hex-digit: New file.
14383 * modules/unictype/property-ascii-hex-digit: New file.
14384 * modules/unictype/property-ideographic: New file.
14385 * modules/unictype/property-unified-ideograph: New file.
14386 * modules/unictype/property-radical: New file.
14387 * modules/unictype/property-ids-binary-operator: New file.
14388 * modules/unictype/property-ids-trinary-operator: New file.
14389 * modules/unictype/property-zero-width: New file.
14390 * modules/unictype/property-space: New file.
14391 * modules/unictype/property-non-break: New file.
14392 * modules/unictype/property-iso-control: New file.
14393 * modules/unictype/property-format-control: New file.
14394 * modules/unictype/property-dash: New file.
14395 * modules/unictype/property-hyphen: New file.
14396 * modules/unictype/property-punctuation: New file.
14397 * modules/unictype/property-line-separator: New file.
14398 * modules/unictype/property-paragraph-separator: New file.
14399 * modules/unictype/property-quotation-mark: New file.
14400 * modules/unictype/property-sentence-terminal: New file.
14401 * modules/unictype/property-terminal-punctuation: New file.
14402 * modules/unictype/property-currency-symbol: New file.
14403 * modules/unictype/property-math: New file.
14404 * modules/unictype/property-other-math: New file.
14405 * modules/unictype/property-paired-punctuation: New file.
14406 * modules/unictype/property-left-of-pair: New file.
14407 * modules/unictype/property-combining: New file.
14408 * modules/unictype/property-composite: New file.
14409 * modules/unictype/property-decimal-digit: New file.
14410 * modules/unictype/property-numeric: New file.
14411 * modules/unictype/property-diacritic: New file.
14412 * modules/unictype/property-extender: New file.
14413 * modules/unictype/property-ignorable-control: New file.
14414 * modules/unictype/property-test: New file.
14415 * modules/unictype/property-byname: New file.
14416 * modules/unictype/property-all: New file.
14417 * modules/unictype/scripts: New file.
14418 * modules/unictype/scripts-all: New file.
14419 * modules/unictype/block-of: New file.
14420 * modules/unictype/block-test: New file.
14421 * modules/unictype/block-list: New file.
14422 * modules/unictype/block-all: New file.
14423 * modules/unictype/syntax-c-whitespace: New file.
14424 * modules/unictype/syntax-java-whitespace: New file.
14425 * modules/unictype/syntax-c-ident: New file.
14426 * modules/unictype/syntax-java-ident: New file.
14427 * modules/unictype/ctype-alnum: New file.
14428 * modules/unictype/ctype-alpha: New file.
14429 * modules/unictype/ctype-cntrl: New file.
14430 * modules/unictype/ctype-digit: New file.
14431 * modules/unictype/ctype-graph: New file.
14432 * modules/unictype/ctype-lower: New file.
14433 * modules/unictype/ctype-print: New file.
14434 * modules/unictype/ctype-punct: New file.
14435 * modules/unictype/ctype-space: New file.
14436 * modules/unictype/ctype-upper: New file.
14437 * modules/unictype/ctype-xdigit: New file.
14438 * modules/unictype/ctype-blank: New file.
14439 * lib/unictype/bidi_byname.c: New file.
14440 * lib/unictype/bidi_name.c: New file.
14441 * lib/unictype/bidi_of.c: New file.
14442 * lib/unictype/bidi_test.c: New file.
14443 * lib/unictype/bitmap.h: New file.
14444 * lib/unictype/block_test.c: New file.
14445 * lib/unictype/blocks.c: New file.
14446 * lib/unictype/categ_C.c: New file.
14447 * lib/unictype/categ_Cc.c: New file.
14448 * lib/unictype/categ_Cf.c: New file.
14449 * lib/unictype/categ_Cn.c: New file.
14450 * lib/unictype/categ_Co.c: New file.
14451 * lib/unictype/categ_Cs.c: New file.
14452 * lib/unictype/categ_L.c: New file.
14453 * lib/unictype/categ_Ll.c: New file.
14454 * lib/unictype/categ_Lm.c: New file.
14455 * lib/unictype/categ_Lo.c: New file.
14456 * lib/unictype/categ_Lt.c: New file.
14457 * lib/unictype/categ_Lu.c: New file.
14458 * lib/unictype/categ_M.c: New file.
14459 * lib/unictype/categ_Mc.c: New file.
14460 * lib/unictype/categ_Me.c: New file.
14461 * lib/unictype/categ_Mn.c: New file.
14462 * lib/unictype/categ_N.c: New file.
14463 * lib/unictype/categ_Nd.c: New file.
14464 * lib/unictype/categ_Nl.c: New file.
14465 * lib/unictype/categ_No.c: New file.
14466 * lib/unictype/categ_P.c: New file.
14467 * lib/unictype/categ_Pc.c: New file.
14468 * lib/unictype/categ_Pd.c: New file.
14469 * lib/unictype/categ_Pe.c: New file.
14470 * lib/unictype/categ_Pf.c: New file.
14471 * lib/unictype/categ_Pi.c: New file.
14472 * lib/unictype/categ_Po.c: New file.
14473 * lib/unictype/categ_Ps.c: New file.
14474 * lib/unictype/categ_S.c: New file.
14475 * lib/unictype/categ_Sc.c: New file.
14476 * lib/unictype/categ_Sk.c: New file.
14477 * lib/unictype/categ_Sm.c: New file.
14478 * lib/unictype/categ_So.c: New file.
14479 * lib/unictype/categ_Z.c: New file.
14480 * lib/unictype/categ_Zl.c: New file.
14481 * lib/unictype/categ_Zp.c: New file.
14482 * lib/unictype/categ_Zs.c: New file.
14483 * lib/unictype/categ_and.c: New file.
14484 * lib/unictype/categ_and_not.c: New file.
14485 * lib/unictype/categ_byname.c: New file.
14486 * lib/unictype/categ_name.c: New file.
14487 * lib/unictype/categ_none.c: New file.
14488 * lib/unictype/categ_of.c: New file.
14489 * lib/unictype/categ_or.c: New file.
14490 * lib/unictype/categ_test.c: New file.
14491 * lib/unictype/combining.c: New file.
14492 * lib/unictype/ctype_alnum.c: New file.
14493 * lib/unictype/ctype_alpha.c: New file.
14494 * lib/unictype/ctype_blank.c: New file.
14495 * lib/unictype/ctype_cntrl.c: New file.
14496 * lib/unictype/ctype_digit.c: New file.
14497 * lib/unictype/ctype_graph.c: New file.
14498 * lib/unictype/ctype_lower.c: New file.
14499 * lib/unictype/ctype_print.c: New file.
14500 * lib/unictype/ctype_punct.c: New file.
14501 * lib/unictype/ctype_space.c: New file.
14502 * lib/unictype/ctype_upper.c: New file.
14503 * lib/unictype/ctype_xdigit.c: New file.
14504 * lib/unictype/decdigit.c: New file.
14505 * lib/unictype/digit.c: New file.
14506 * lib/unictype/identsyntaxmap.h: New file.
14507 * lib/unictype/mirror.c: New file.
14508 * lib/unictype/numeric.c: New file.
14509 * lib/unictype/pr_alphabetic.c: New file.
14510 * lib/unictype/pr_ascii_hex_digit.c: New file.
14511 * lib/unictype/pr_bidi_arabic_digit.c: New file.
14512 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
14513 * lib/unictype/pr_bidi_block_separator.c: New file.
14514 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
14515 * lib/unictype/pr_bidi_common_separator.c: New file.
14516 * lib/unictype/pr_bidi_control.c: New file.
14517 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
14518 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
14519 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
14520 * lib/unictype/pr_bidi_european_digit.c: New file.
14521 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
14522 * lib/unictype/pr_bidi_left_to_right.c: New file.
14523 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
14524 * lib/unictype/pr_bidi_other_neutral.c: New file.
14525 * lib/unictype/pr_bidi_pdf.c: New file.
14526 * lib/unictype/pr_bidi_segment_separator.c: New file.
14527 * lib/unictype/pr_bidi_whitespace.c: New file.
14528 * lib/unictype/pr_byname.c: New file.
14529 * lib/unictype/pr_byname.gperf: New file.
14530 * lib/unictype/pr_combining.c: New file.
14531 * lib/unictype/pr_composite.c: New file.
14532 * lib/unictype/pr_currency_symbol.c: New file.
14533 * lib/unictype/pr_dash.c: New file.
14534 * lib/unictype/pr_decimal_digit.c: New file.
14535 * lib/unictype/pr_default_ignorable_code_point.c: New file.
14536 * lib/unictype/pr_deprecated.c: New file.
14537 * lib/unictype/pr_diacritic.c: New file.
14538 * lib/unictype/pr_extender.c: New file.
14539 * lib/unictype/pr_format_control.c: New file.
14540 * lib/unictype/pr_grapheme_base.c: New file.
14541 * lib/unictype/pr_grapheme_extend.c: New file.
14542 * lib/unictype/pr_grapheme_link.c: New file.
14543 * lib/unictype/pr_hex_digit.c: New file.
14544 * lib/unictype/pr_hyphen.c: New file.
14545 * lib/unictype/pr_id_continue.c: New file.
14546 * lib/unictype/pr_id_start.c: New file.
14547 * lib/unictype/pr_ideographic.c: New file.
14548 * lib/unictype/pr_ids_binary_operator.c: New file.
14549 * lib/unictype/pr_ids_trinary_operator.c: New file.
14550 * lib/unictype/pr_ignorable_control.c: New file.
14551 * lib/unictype/pr_iso_control.c: New file.
14552 * lib/unictype/pr_join_control.c: New file.
14553 * lib/unictype/pr_left_of_pair.c: New file.
14554 * lib/unictype/pr_line_separator.c: New file.
14555 * lib/unictype/pr_logical_order_exception.c: New file.
14556 * lib/unictype/pr_lowercase.c: New file.
14557 * lib/unictype/pr_math.c: New file.
14558 * lib/unictype/pr_non_break.c: New file.
14559 * lib/unictype/pr_not_a_character.c: New file.
14560 * lib/unictype/pr_numeric.c: New file.
14561 * lib/unictype/pr_other_alphabetic.c: New file.
14562 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
14563 * lib/unictype/pr_other_grapheme_extend.c: New file.
14564 * lib/unictype/pr_other_id_continue.c: New file.
14565 * lib/unictype/pr_other_id_start.c: New file.
14566 * lib/unictype/pr_other_lowercase.c: New file.
14567 * lib/unictype/pr_other_math.c: New file.
14568 * lib/unictype/pr_other_uppercase.c: New file.
14569 * lib/unictype/pr_paired_punctuation.c: New file.
14570 * lib/unictype/pr_paragraph_separator.c: New file.
14571 * lib/unictype/pr_pattern_syntax.c: New file.
14572 * lib/unictype/pr_pattern_white_space.c: New file.
14573 * lib/unictype/pr_private_use.c: New file.
14574 * lib/unictype/pr_punctuation.c: New file.
14575 * lib/unictype/pr_quotation_mark.c: New file.
14576 * lib/unictype/pr_radical.c: New file.
14577 * lib/unictype/pr_sentence_terminal.c: New file.
14578 * lib/unictype/pr_soft_dotted.c: New file.
14579 * lib/unictype/pr_space.c: New file.
14580 * lib/unictype/pr_terminal_punctuation.c: New file.
14581 * lib/unictype/pr_test.c: New file.
14582 * lib/unictype/pr_titlecase.c: New file.
14583 * lib/unictype/pr_unassigned_code_value.c: New file.
14584 * lib/unictype/pr_unified_ideograph.c: New file.
14585 * lib/unictype/pr_uppercase.c: New file.
14586 * lib/unictype/pr_variation_selector.c: New file.
14587 * lib/unictype/pr_white_space.c: New file.
14588 * lib/unictype/pr_xid_continue.c: New file.
14589 * lib/unictype/pr_xid_start.c: New file.
14590 * lib/unictype/pr_zero_width.c: New file.
14591 * lib/unictype/scripts.c: New file.
14592 * lib/unictype/sy_c_ident.c: New file.
14593 * lib/unictype/sy_c_whitespace.c: New file.
14594 * lib/unictype/sy_java_ident.c: New file.
14595 * lib/unictype/sy_java_whitespace.c: New file.
14597 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
14599 * lib/unictype/blocks.h: Likewise.
14600 * lib/unictype/categ_C.h: Likewise.
14601 * lib/unictype/categ_Cc.h: Likewise.
14602 * lib/unictype/categ_Cf.h: Likewise.
14603 * lib/unictype/categ_Cn.h: Likewise.
14604 * lib/unictype/categ_Co.h: Likewise.
14605 * lib/unictype/categ_Cs.h: Likewise.
14606 * lib/unictype/categ_L.h: Likewise.
14607 * lib/unictype/categ_Ll.h: Likewise.
14608 * lib/unictype/categ_Lm.h: Likewise.
14609 * lib/unictype/categ_Lo.h: Likewise.
14610 * lib/unictype/categ_Lt.h: Likewise.
14611 * lib/unictype/categ_Lu.h: Likewise.
14612 * lib/unictype/categ_M.h: Likewise.
14613 * lib/unictype/categ_Mc.h: Likewise.
14614 * lib/unictype/categ_Me.h: Likewise.
14615 * lib/unictype/categ_Mn.h: Likewise.
14616 * lib/unictype/categ_N.h: Likewise.
14617 * lib/unictype/categ_Nd.h: Likewise.
14618 * lib/unictype/categ_Nl.h: Likewise.
14619 * lib/unictype/categ_No.h: Likewise.
14620 * lib/unictype/categ_P.h: Likewise.
14621 * lib/unictype/categ_Pc.h: Likewise.
14622 * lib/unictype/categ_Pd.h: Likewise.
14623 * lib/unictype/categ_Pe.h: Likewise.
14624 * lib/unictype/categ_Pf.h: Likewise.
14625 * lib/unictype/categ_Pi.h: Likewise.
14626 * lib/unictype/categ_Po.h: Likewise.
14627 * lib/unictype/categ_Ps.h: Likewise.
14628 * lib/unictype/categ_S.h: Likewise.
14629 * lib/unictype/categ_Sc.h: Likewise.
14630 * lib/unictype/categ_Sk.h: Likewise.
14631 * lib/unictype/categ_Sm.h: Likewise.
14632 * lib/unictype/categ_So.h: Likewise.
14633 * lib/unictype/categ_Z.h: Likewise.
14634 * lib/unictype/categ_Zl.h: Likewise.
14635 * lib/unictype/categ_Zp.h: Likewise.
14636 * lib/unictype/categ_Zs.h: Likewise.
14637 * lib/unictype/categ_of.h: Likewise.
14638 * lib/unictype/combining.h: Likewise.
14639 * lib/unictype/ctype_alnum.h: Likewise.
14640 * lib/unictype/ctype_alpha.h: Likewise.
14641 * lib/unictype/ctype_blank.h: Likewise.
14642 * lib/unictype/ctype_cntrl.h: Likewise.
14643 * lib/unictype/ctype_digit.h: Likewise.
14644 * lib/unictype/ctype_graph.h: Likewise.
14645 * lib/unictype/ctype_lower.h: Likewise.
14646 * lib/unictype/ctype_print.h: Likewise.
14647 * lib/unictype/ctype_punct.h: Likewise.
14648 * lib/unictype/ctype_space.h: Likewise.
14649 * lib/unictype/ctype_upper.h: Likewise.
14650 * lib/unictype/ctype_xdigit.h: Likewise.
14651 * lib/unictype/decdigit.h: Likewise.
14652 * lib/unictype/digit.h: Likewise.
14653 * lib/unictype/mirror.h: Likewise.
14654 * lib/unictype/numeric.h: Likewise.
14655 * lib/unictype/pr_alphabetic.h: Likewise.
14656 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14657 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14658 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14659 * lib/unictype/pr_bidi_block_separator.h: Likewise.
14660 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14661 * lib/unictype/pr_bidi_common_separator.h: Likewise.
14662 * lib/unictype/pr_bidi_control.h: Likewise.
14663 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14664 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14665 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14666 * lib/unictype/pr_bidi_european_digit.h: Likewise.
14667 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14668 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14669 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14670 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14671 * lib/unictype/pr_bidi_pdf.h: Likewise.
14672 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14673 * lib/unictype/pr_bidi_whitespace.h: Likewise.
14674 * lib/unictype/pr_combining.h: Likewise.
14675 * lib/unictype/pr_composite.h: Likewise.
14676 * lib/unictype/pr_currency_symbol.h: Likewise.
14677 * lib/unictype/pr_dash.h: Likewise.
14678 * lib/unictype/pr_decimal_digit.h: Likewise.
14679 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14680 * lib/unictype/pr_deprecated.h: Likewise.
14681 * lib/unictype/pr_diacritic.h: Likewise.
14682 * lib/unictype/pr_extender.h: Likewise.
14683 * lib/unictype/pr_format_control.h: Likewise.
14684 * lib/unictype/pr_grapheme_base.h: Likewise.
14685 * lib/unictype/pr_grapheme_extend.h: Likewise.
14686 * lib/unictype/pr_grapheme_link.h: Likewise.
14687 * lib/unictype/pr_hex_digit.h: Likewise.
14688 * lib/unictype/pr_hyphen.h: Likewise.
14689 * lib/unictype/pr_id_continue.h: Likewise.
14690 * lib/unictype/pr_id_start.h: Likewise.
14691 * lib/unictype/pr_ideographic.h: Likewise.
14692 * lib/unictype/pr_ids_binary_operator.h: Likewise.
14693 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14694 * lib/unictype/pr_ignorable_control.h: Likewise.
14695 * lib/unictype/pr_iso_control.h: Likewise.
14696 * lib/unictype/pr_join_control.h: Likewise.
14697 * lib/unictype/pr_left_of_pair.h: Likewise.
14698 * lib/unictype/pr_line_separator.h: Likewise.
14699 * lib/unictype/pr_logical_order_exception.h: Likewise.
14700 * lib/unictype/pr_lowercase.h: Likewise.
14701 * lib/unictype/pr_math.h: Likewise.
14702 * lib/unictype/pr_non_break.h: Likewise.
14703 * lib/unictype/pr_not_a_character.h: Likewise.
14704 * lib/unictype/pr_numeric.h: Likewise.
14705 * lib/unictype/pr_other_alphabetic.h: Likewise.
14706 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14707 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14708 * lib/unictype/pr_other_id_continue.h: Likewise.
14709 * lib/unictype/pr_other_id_start.h: Likewise.
14710 * lib/unictype/pr_other_lowercase.h: Likewise.
14711 * lib/unictype/pr_other_math.h: Likewise.
14712 * lib/unictype/pr_other_uppercase.h: Likewise.
14713 * lib/unictype/pr_paired_punctuation.h: Likewise.
14714 * lib/unictype/pr_paragraph_separator.h: Likewise.
14715 * lib/unictype/pr_pattern_syntax.h: Likewise.
14716 * lib/unictype/pr_pattern_white_space.h: Likewise.
14717 * lib/unictype/pr_private_use.h: Likewise.
14718 * lib/unictype/pr_punctuation.h: Likewise.
14719 * lib/unictype/pr_quotation_mark.h: Likewise.
14720 * lib/unictype/pr_radical.h: Likewise.
14721 * lib/unictype/pr_sentence_terminal.h: Likewise.
14722 * lib/unictype/pr_soft_dotted.h: Likewise.
14723 * lib/unictype/pr_space.h: Likewise.
14724 * lib/unictype/pr_terminal_punctuation.h: Likewise.
14725 * lib/unictype/pr_titlecase.h: Likewise.
14726 * lib/unictype/pr_unassigned_code_value.h: Likewise.
14727 * lib/unictype/pr_unified_ideograph.h: Likewise.
14728 * lib/unictype/pr_uppercase.h: Likewise.
14729 * lib/unictype/pr_variation_selector.h: Likewise.
14730 * lib/unictype/pr_white_space.h: Likewise.
14731 * lib/unictype/pr_xid_continue.h: Likewise.
14732 * lib/unictype/pr_xid_start.h: Likewise.
14733 * lib/unictype/pr_zero_width.h: Likewise.
14734 * lib/unictype/scripts.h: Likewise.
14735 * lib/unictype/scripts_byname.gperf: Likewise.
14736 * lib/unictype/sy_c_ident.h: Likewise.
14737 * lib/unictype/sy_c_whitespace.h: Likewise.
14738 * lib/unictype/sy_java_ident.h: Likewise.
14739 * lib/unictype/sy_java_whitespace.h: Likewise.
14741 * lib/unictype/Makefile: New file.
14742 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
14744 * lib/unictype/3level.h: New file, copied from glibc.
14745 * lib/unictype/3levelbit.h: New file.
14747 2007-11-11 Bruno Haible <bruno@clisp.org>
14749 * modules/gperf: New file.
14750 * modules/iconv_open (Depends-on): Add it.
14751 (Makefile.am): Remove the GPERF definition.
14753 2007-11-11 Bruno Haible <bruno@clisp.org>
14755 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
14756 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
14758 2007-11-11 Bruno Haible <bruno@clisp.org>
14760 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
14761 (usage): Remove function.
14763 2007-11-11 Bruno Haible <bruno@clisp.org>
14765 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
14766 gl_FUNC_CEILF_LIBS.
14767 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
14769 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
14770 gl_FUNC_CEILL_LIBS.
14771 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
14772 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
14773 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
14775 2007-11-11 Bruno Haible <bruno@clisp.org>
14777 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
14778 roundf were declared but do not exist on functions.
14779 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
14780 roundl were declared but do not exist on functions.
14781 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
14782 HAVE_FLOORL_AND_CEILL, respectively.
14783 Needed for Sun C on Solaris 10.
14785 2007-11-11 Bruno Haible <bruno@clisp.org>
14787 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
14788 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
14789 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
14790 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
14791 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
14792 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
14793 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
14795 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
14796 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
14797 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
14798 of HAVE_DECL_ROUND*.
14799 * modules/math (Makefile.am): Update.
14801 2007-11-10 Bruno Haible <bruno@clisp.org>
14803 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
14804 ptrdiff_t as m4/intl.m4.
14806 2007-11-10 Jim Meyering <meyering@redhat.com>
14808 Avoid link failure for the argmatch test.
14809 * tests/test-argmatch.c (usage): Define function to avoid a link
14810 failure: argmatch_die requires a usage function.
14812 2007-11-09 Bruno Haible <bruno@clisp.org>
14814 * doc/functions/snprintf.texi: Mention BeOS deficiency.
14815 * doc/functions/vsnprintf.texi: Likewise.
14816 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
14817 with a size argument < 2.
14819 2007-11-09 Bruno Haible <bruno@clisp.org>
14821 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
14822 buffer. Fixes an inefficiency introduced on 2007-11-03.
14824 2007-11-09 Bruno Haible <bruno@clisp.org>
14826 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
14827 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
14829 2007-11-08 Jim Meyering <meyering@redhat.com>
14831 Change cache variable name prefix "jm_" to "gl_" everywhere.
14832 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
14833 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
14834 * m4/uptime.m4: s/gl_/jm_/
14836 2007-11-07 Bruno Haible <bruno@clisp.org>
14838 Update to GNU gettext 0.17.
14839 * m4/intl.m4: Update to GNU gettext 0.17.
14840 * m4/po.m4: Likewise.
14841 * modules/gettext (Files): Remove m4/ulonglong.m4.
14842 (configure.ac): Require gettext infrastructure from version 0.17.
14844 2007-11-06 Bruno Haible <bruno@clisp.org>
14846 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
14847 symbolic values are not defined in a public header.
14848 * lib/freadable.c (freadable) [QNX]: Likewise.
14849 * lib/freadahead.c (freadahead) [QNX]: Likewise.
14850 * lib/freading.c (freading) [QNX]: Likewise.
14851 * lib/fseterr.c (fseterr) [QNX]: Likewise.
14852 * lib/fwritable.c (fwritable) [QNX]: Likewise.
14853 * lib/fwriting.c (fwriting) [QNX]: Likewise.
14854 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
14855 Reported by Alain Magloire.
14857 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
14859 2007-11-05 Bruno Haible <bruno@clisp.org>
14861 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
14862 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
14863 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
14864 Reported by Eric Blake.
14866 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14867 Bruno Haible <bruno@clisp.org>
14869 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
14870 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
14871 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
14872 (malloc): Undefine also before including <stdlib.h>.
14873 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
14874 Needed on OSF/1 4.0.
14876 2007-11-05 Jim Meyering <meyering@redhat.com>
14878 git-version-gen: sync from coreutils.
14879 * build-aux/git-version-gen: Add comments.
14880 Change the first '-' to '.' in the snapshot version string,
14881 e.g., 6.9-377-08144 -> 6.9.377-08144
14882 Remove first parameter.
14883 Don't declare a version "-dirty" merely because a time
14886 2007-11-04 Bruno Haible <bruno@clisp.org>
14888 * lib/lock.h: Protect all macro definitions containing an 'if'
14889 statement through a "do { ... } while (0)".
14890 * lib/tls.h: Likewise.
14892 2007-11-04 Bruno Haible <bruno@clisp.org>
14894 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
14896 2007-11-04 Bruno Haible <bruno@clisp.org>
14898 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
14899 * modules/fprintf-posix (Depends-on): Add nocrash.
14900 * modules/snprintf-posix (Depends-on): Likewise.
14901 * modules/sprintf-posix (Depends-on): Likewise.
14902 * modules/vasnprintf-posix (Depends-on): Likewise.
14903 * modules/vasprintf-posix (Depends-on): Likewise.
14904 * modules/vfprintf-posix (Depends-on): Likewise.
14905 * modules/vsnprintf-posix (Depends-on): Likewise.
14906 * modules/vsprintf-posix (Depends-on): Likewise.
14907 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14908 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14909 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14910 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14911 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14912 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14913 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14915 2007-11-04 Bruno Haible <bruno@clisp.org>
14917 * modules/nocrash: New file.
14918 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
14919 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
14921 2007-11-04 Bruno Haible <bruno@clisp.org>
14923 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
14924 precision handling.
14925 * tests/test-vasprintf-posix.c (test_function): Likewise.
14926 * tests/test-snprintf-posix.h (test_function): Likewise.
14927 * tests/test-sprintf-posix.h (test_function): Likewise.
14929 Fix *printf behaviour for large precisions on mingw and BeOS.
14930 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
14931 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
14932 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
14933 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14934 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14935 gl_PRINTF_PRECISION and test its result. Invoke
14936 gl_PREREQ_VASNPRINTF_PRECISION.
14937 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14938 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14939 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14940 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14941 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14942 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14943 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14944 * doc/functions/fprintf.texi: Update.
14945 * doc/functions/printf.texi: Update.
14946 * doc/functions/snprintf.texi: Update.
14947 * doc/functions/sprintf.texi: Update.
14948 * doc/functions/vfprintf.texi: Update.
14949 * doc/functions/vprintf.texi: Update.
14950 * doc/functions/vsnprintf.texi: Update.
14951 * doc/functions/vsprintf.texi: Update.
14953 2007-11-04 Bruno Haible <bruno@clisp.org>
14955 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
14957 2007-11-04 Bruno Haible <bruno@clisp.org>
14959 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
14960 Reported by Sylvain Beucler <beuc@gnu.org>.
14962 2007-11-03 Bruno Haible <bruno@clisp.org>
14964 * tests/test-fprintf-posix2.sh: New file.
14965 * tests/test-fprintf-posix2.c: New file.
14966 * modules/fprintf-posix-tests (Files): Add them.
14967 (TESTS): Add test-fprintf-posix2.sh.
14968 (configure.ac): Check for getrlimit and setrlimit.
14969 (check_PROGRAMS): Add test-fprintf-posix2.
14971 * tests/test-printf-posix2.sh: New file.
14972 * tests/test-printf-posix2.c: New file.
14973 * modules/printf-posix-tests (Files): Add them.
14974 (TESTS): Add test-printf-posix2.sh.
14975 (configure.ac): Check for getrlimit and setrlimit.
14976 (check_PROGRAMS): Add test-printf-posix2.
14978 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
14979 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
14980 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
14981 (decode_double): New function, copied from decode_long_double.
14982 (scale10_round_decimal_decoded): New function, extracted from
14983 scale10_round_decimal_long_double.
14984 (scale10_round_decimal_long_double): Use it.
14985 (scale10_round_decimal_double): New function.
14986 (floorlog10): New function.
14987 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
14988 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
14989 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14990 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14991 gl_PRINTF_ENOMEM and test its result. Invoke
14992 gl_PREREQ_VASNPRINTF_ENOMEM.
14993 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14994 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14995 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14996 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14997 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14998 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14999 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15000 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
15001 * modules/snprintf-posix (Depends-on): Likewise.
15002 * modules/sprintf-posix (Depends-on): Likewise.
15003 * modules/vasnprintf-posix (Depends-on): Likewise.
15004 * modules/vasprintf-posix (Depends-on): Likewise.
15005 * modules/vfprintf-posix (Depends-on): Likewise.
15006 * modules/vsnprintf-posix (Depends-on): Likewise.
15007 * modules/vsprintf-posix (Depends-on): Likewise.
15008 * doc/functions/fprintf.texi: Update.
15009 * doc/functions/printf.texi: Update.
15010 * doc/functions/snprintf.texi: Update.
15011 * doc/functions/sprintf.texi: Update.
15012 * doc/functions/vfprintf.texi: Update.
15013 * doc/functions/vprintf.texi: Update.
15014 * doc/functions/vsnprintf.texi: Update.
15015 * doc/functions/vsprintf.texi: Update.
15017 2007-11-03 Bruno Haible <bruno@clisp.org>
15019 * modules/frexp-nolibm-tests: New file.
15021 * modules/frexp-nolibm: New file.
15022 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
15024 2007-11-03 Bruno Haible <bruno@clisp.org>
15026 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
15027 value is C99 compliant.
15028 Needed for OSF/1 5.1.
15030 2007-11-03 Bruno Haible <bruno@clisp.org>
15032 Fix out-of-memory handling of vasnprintf.
15033 * lib/printf-parse.c: Include <errno.h>.
15034 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
15035 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
15038 2007-11-02 Eric Blake <ebb9@byu.net>
15040 Fix tests on cygwin.
15041 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
15043 2007-11-01 Bruno Haible <bruno@clisp.org>
15045 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
15047 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
15048 needed for POSIX compatibility.
15050 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
15052 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
15053 for compatibility with GNU.
15055 2007-11-01 Bruno Haible <bruno@clisp.org>
15057 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
15058 (putenv): Renamed from rpl_putenv. Change argument type from
15059 'const char *' to 'char *'.
15060 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
15061 of defining putenv in config.h, just set REPLACE_PUTENV.
15062 * modules/putenv (Depends-on): Add stdlib.
15063 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15064 (Include): Use <stdlib.h>.
15065 * lib/stdlib.in.h (putenv): New declaration.
15066 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
15068 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
15070 Needed for MacOS X 10.5.0.
15071 Reported by Peter O'Gorman <peter@pogma.com>.
15073 2007-11-01 Jim Meyering <meyering@redhat.com>
15075 Treat an empty date string exactly like "0".
15076 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
15077 if the remaining date string (to be parsed) is empty, use "0".
15078 Reported by Mischa Molhoek and discussed in this thread:
15079 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
15081 2007-10-31 Bruno Haible <bruno@clisp.org>
15083 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
15084 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
15085 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
15086 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
15087 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
15088 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
15090 2007-10-31 Bruno Haible <bruno@clisp.org>
15092 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
15093 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
15094 (AC_TYPE_LONG_LONG_INT): Use it.
15095 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
15097 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
15099 * modules/stdint (Files): Remove m4/ulonglong.m4.
15100 * modules/strtoull (Files): Use m4/longlong.m4 instead of
15102 * modules/strtoumax (Files): Likewise.
15104 2007-10-30 Bruno Haible <bruno@clisp.org>
15106 * modules/xvasprintf-posix: New file.
15107 Suggested by Eric Blake.
15109 2007-10-30 Bruno Haible <bruno@clisp.org>
15111 * modules/xprintf-posix-tests: New file.
15112 * tests/test-xprintf-posix.sh: New file.
15113 * tests/test-xprintf-posix.c: New file.
15114 * tests/test-xfprintf-posix.c: New file.
15116 * modules/xprintf-posix: New file.
15118 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15120 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
15121 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
15122 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
15124 2007-10-29 Bruno Haible <bruno@clisp.org>
15126 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
15127 contain the special marker '_cv_'.
15128 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15129 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15130 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15131 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
15132 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15133 Reported by Ralf Wildenhues.
15135 2007-10-29 Bruno Haible <bruno@clisp.org>
15137 * gnulib-tool (func_import): When --lgpl is not specified, set
15138 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
15140 Reported by Simon Josefsson.
15142 2007-10-28 Bruno Haible <bruno@clisp.org>
15144 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
15145 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
15146 HAVE_DECL_ISFINITE.
15147 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
15148 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
15149 HAVE_DECL_ISFINITE.
15151 2007-10-28 Bruno Haible <bruno@clisp.org>
15153 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
15154 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
15156 2007-10-28 Bruno Haible <bruno@clisp.org>
15158 Fix link errors with Sun C 5.0 on Solaris 10.
15159 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
15160 function is declared but not present in the compiler's libm.
15161 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15162 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15163 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
15164 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
15165 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
15166 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
15167 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
15168 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
15169 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
15170 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
15171 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
15174 2007-10-28 Bruno Haible <bruno@clisp.org>
15176 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
15177 gl_FUNC_FLOORL. Cache the result.
15178 (gl_FUNC_FLOORL): Use it.
15179 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
15180 gl_FUNC_CEILL. Cache the result.
15181 (gl_FUNC_CEILL): Use it.
15183 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
15184 gl_FUNC_FLOOR. Cache the result.
15185 (gl_FUNC_FLOOR): Use it.
15186 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
15187 gl_FUNC_CEIL. Cache the result.
15188 (gl_FUNC_CEIL): Use it.
15190 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
15191 gl_FUNC_FLOORF. Cache the result.
15192 (gl_FUNC_FLOORF): Use it.
15193 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
15194 gl_FUNC_CEILF. Cache the result.
15195 (gl_FUNC_CEILF): Use it.
15197 2007-10-28 Bruno Haible <bruno@clisp.org>
15199 * gnulib-tool: Allow specifying the LGPL version number through
15200 --lgpl=2 or --lgpl=3.
15201 (func_usage): Document --lgpl with argument.
15202 Handle --lgpl=... arguments.
15203 (func_import): Recognize also gl_LGPL calls with an argument. When
15204 --lgpl=2 is used and the module's license is just LGPL, report an
15205 error. Set sed_transform_lib_file according to the lgpl variable. In
15206 the generated files, use --lgpl or gl_LGPL invocations with argument,
15208 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
15210 * doc/gnulib-tool.texi (Modified imports): Update explanation of
15213 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15214 Bruno Haible <bruno@clisp.org>
15216 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
15217 (u16_uctomb_aux): Likewise.
15218 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
15220 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
15222 2007-10-28 Bruno Haible <bruno@clisp.org>
15224 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
15225 Invoke AM_GETTEXT_OPTION if it exists.
15226 * modules/vasprintf: Likewise.
15227 * modules/verror: Likewise.
15228 * modules/xprintf: Likewise.
15229 * modules/xvasprintf: Likewise.
15231 2007-10-27 Ben Pfaff <blp@gnu.org>
15233 * lib/math.in.h: Define isfinite macro and prototypes for
15234 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
15236 * m4/math_h.m4: New substitutions for isfinite module.
15237 * lib/isfinite.c: New file.
15238 * m4/isfinite.m4: New file.
15239 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
15240 * modules/isfinite: New file.
15241 * modules/isfinite-tests: New file.
15242 * tests/tests-isfinite.c: New file.
15243 * doc/functions/isfinite.texi: Mention isfinite module.
15244 * MODULES.html.sh: Mention new module.
15246 2007-10-27 Ben Pfaff <blp@gnu.org>
15248 Ralf Wildenhues reported that Tru64 4.0D declares the round
15249 functions but does not have definitions.
15250 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
15251 cannot be found in any library, set the output variable to
15252 "missing" instead of "".
15253 * m4/round.m4: Also use our substitute if we cannot find round in
15254 any library, even if it is declared.
15255 * m4/roundf.m4: Likewise for roundf.
15256 * m4/roundl.m4: Likewise for roundl.
15257 * lib/math.in.h: Undefine roundf, round, roundl before defining
15258 their replacements, to allow for hypothetical systems where these
15259 may be defined as macros but not available in libraries.
15261 2007-10-27 Bruno Haible <bruno@clisp.org>
15263 * doc/gnulib.texi: Invoke @firstparagraphindent.
15264 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
15266 (Source changes): New section.
15268 2007-10-26 Bruno Haible <bruno@clisp.org>
15270 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
15271 borrowed from autoconf.
15273 2007-10-26 Bruno Haible <bruno@clisp.org>
15275 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
15276 strerror returned the empty string. Needed on HP-UX 11.00.
15278 2007-10-24 Micah Cowan <micah@cowan.name>
15280 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
15281 * build-aux/bootstrap: Remove support for now-unnecessary option,
15282 --cvs-user, and envvars CVS_USER, CVS_RSH.
15284 2007-10-24 Jim Meyering <meyering@redhat.com>
15286 Avoid diagnostics from sha1sum when there is no cached checksum.
15287 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
15288 if the po.s1 file hasn't been created yet.
15290 * build-aux/bootstrap: Sync from coreutils:
15291 2007-10-24 Jim Meyering <meyering@redhat.com>
15292 Get gnulib from the git repository, not from an obsolete cvs one.
15293 * build-aux/bootstrap: Suggestion from Micah Cowan.
15294 2007-10-04 Jim Meyering <jim@meyering.net>
15295 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
15296 (update_po_files): Work also when there are no .po files in po/.
15298 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
15300 * README: Append ".git" to git and cg examples.
15301 Problem reported by Benoit Sigoure.
15303 2007-10-23 Micah Cowan <micah@cowan.name>
15305 * users.txt: Add wget.
15307 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15309 Fix linking of some unistdio tests on FreeBSD.
15310 * modules/unistdio/u16-vsnprintf-tests
15311 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
15312 * modules/unistdio/u16-vsprintf-tests
15313 (test_u16_vsnprintf1_LDADD): Likewise.
15314 * modules/unistdio/u32-vsnprintf-tests
15315 (test_u32_vsnprintf1_LDADD): Likewise.
15316 * modules/unistdio/u32-vsprintf-tests
15317 (test_u32_vsprintf1_LDADD): Likewise.
15318 * modules/unistdio/u8-vsnprintf-tests
15319 (test_u8_vsnprintf1_LDADD): Likewise.
15320 * modules/unistdio/u8-vsprintf-tests
15321 (test_u8_vsprintf1_LDADD): Likewise.
15322 * modules/unistdio/ulc-vsnprintf-tests
15323 (test_ulc_vsnprintf1_LDADD): Likewise.
15324 * modules/unistdio/ulc-vsprintf-tests
15325 (test_ulc_vsprintf1_LDADD): Likewise.
15327 Fix linking of some uniconv tests on FreeBSD.
15328 * modules/uniconv/u16-conv-from-enc-tests
15329 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
15330 * modules/uniconv/u16-conv-to-enc-tests
15331 (test_u16_conv_to_enc_LDADD): Likewise.
15332 * modules/uniconv/u16-strconv-from-enc-tests
15333 (test_u16_strconv_from_enc_LDADD): Likewise.
15334 * modules/uniconv/u16-strconv-to-enc-tests
15335 (test_u16_strconv_to_enc_LDADD): Likewise.
15336 * modules/uniconv/u32-conv-from-enc-tests
15337 (test_u32_conv_from_enc_LDADD): Likewise.
15338 * modules/uniconv/u32-conv-to-enc-tests
15339 (test_u32_conv_to_enc_LDADD): Likewise.
15340 * modules/uniconv/u32-strconv-from-enc-tests
15341 (test_u32_strconv_from_enc_LDADD): Likewise.
15342 * modules/uniconv/u32-strconv-to-enc-tests
15343 (test_u32_strconv_to_enc_LDADD): Likewise.
15344 * modules/uniconv/u8-conv-from-enc-tests
15345 (test_u8_conv_from_enc_LDADD): Likewise.
15346 * modules/uniconv/u8-conv-to-enc-tests
15347 (test_u8_conv_to_enc_LDADD): Likewise.
15348 * modules/uniconv/u8-strconv-from-enc-tests
15349 (test_u8_strconv_from_enc_LDADD): Likewise.
15350 * modules/uniconv/u8-strconv-to-enc-tests
15351 (test_u8_strconv_to_enc_LDADD): Likewise.
15353 2007-10-22 Bruno Haible <bruno@clisp.org>
15355 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
15358 2007-10-22 Eric Blake <ebb9@byu.net>
15360 Tweak x*printf documentation.
15361 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
15362 variable name and comments.
15363 Suggested by Bruno Haible.
15365 2007-10-22 Bruno Haible <bruno@clisp.org>
15367 * lib/acl.c (copy_acl): Fix file name in comment.
15369 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
15371 Fix Tru64 problem with stdbool.h.
15372 * lib/stdbool.in.h (false, true):
15373 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
15374 Don't declare as an enum in this situation; it runs afoul of Tru64.
15375 Problem reported by Steven M. Schweda in
15376 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
15378 2007-10-22 Eric Blake <ebb9@byu.net>
15380 Also wrap vf?printf.
15381 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
15382 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
15383 (xvprintf, xvfprintf): New functions.
15385 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15387 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
15388 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
15390 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
15391 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
15393 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
15395 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
15398 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15401 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
15402 Undef `sys' after including sys/table.h, for Tru64 4.0D.
15404 * tests/test-i-ring.c: Work for C89.
15406 2007-10-22 Bruno Haible <bruno@clisp.org>
15408 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
15409 -1u, in preprocessor expression, so that we don't test for the bug
15410 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
15411 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
15413 2007-10-22 Eric Blake <ebb9@byu.net>
15415 * tests/test-yesno.sh: Silence stderr during test.
15417 2007-10-22 Simon Josefsson <simon@josefsson.org>
15419 * modules/crypto/gc-camellia: New file.
15421 * m4/gc-camellia.m4: New file.
15423 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
15425 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
15427 2007-10-22 Simon Josefsson <simon@josefsson.org>
15429 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
15430 --help to stdout. Reported by sms@antinode.org (Steven
15433 2007-10-22 Simon Josefsson <simon@josefsson.org>
15435 * users.txt: Fix link to libksba.
15437 2007-10-21 Ben Pfaff <blp@gnu.org>
15439 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
15440 round.c roundf implementation that depends on floorf and ceilf to
15441 be tested unconditionally.
15443 2007-10-21 Ben Pfaff <blp@gnu.org>
15445 * m4/check-libm-func.m4: Removed.
15446 * m4/check-math-lib.m4: New file.
15447 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
15448 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
15449 definition and lack of AC_LIBOBJ([roundf]).
15450 * m4/roundl.m4: Ditto, and similarly for roundl.
15451 * modules/round: Reference new m4 file.
15452 * modules/roundf: Ditto.
15453 * modules/roundl: Ditto.
15454 * tests/test-round2.c (main): Use ROUND instead of round.
15455 Bug report from Bruno Haible.
15457 2007-10-21 Bruno Haible <bruno@clisp.org>
15459 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
15462 2007-10-21 Bruno Haible <bruno@clisp.org>
15464 * tests/test-wcwidth.c (main): Allow negative result for some control
15467 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
15468 Needed on OSF/1 5.1.
15470 2007-10-21 Bruno Haible <bruno@clisp.org>
15472 * tests/test-floorf1.c: Include isnanf.h.
15473 (main): Use isnanf() instead of isnan().
15474 * tests/test-ceilf1.c: Include isnanf.h.
15475 (main): Use isnanf() instead of isnan().
15476 * tests/test-truncf1.c: Include isnanf.h.
15477 (main): Use isnanf() instead of isnan().
15478 * tests/test-roundf1.c: Include isnanf.h.
15479 (main): Use isnanf() instead of isnan().
15481 2007-10-21 Eric Blake <ebb9@byu.net>
15483 * users.txt: Update URL for m4.
15485 2007-10-21 Bruno Haible <bruno@clisp.org>
15487 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
15489 2007-10-21 Bruno Haible <bruno@clisp.org>
15491 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
15492 Git's management files if the CVS files are not present.
15494 2007-10-20 Bruno Haible <bruno@clisp.org>
15496 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
15499 2007-10-20 Ben Pfaff <blp@gnu.org>
15501 * lib/math.in.h: Declare round, roundf, roundl if we are providing
15503 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
15504 * lib/round.c: New file.
15505 * lib/roundf.c: New file.
15506 * lib/roundl.c: New file.
15507 * m4/round.m4: New file.
15508 * m4/roundf.m4: New file.
15509 * m4/roundl.m4: New file.
15510 * m4/check-libm-func-m4: New file.
15511 * modules/math: Replace round, roundf, roundl related @VARS@ in
15513 * modules/round: New file.
15514 * modules/round-tests: New file.
15515 * modules/roundf: New file.
15516 * modules/roundf-tests: New file.
15517 * modules/roundl: New file.
15518 * modules/roundl-tests: New file.
15519 * tests/test-round1.c: New file.
15520 * tests/test-round2.c: New file.
15521 * tests/test-roundf1.c: New file.
15522 * tests/test-roundf2.c: New file.
15523 * tests/test-roundl.c: New file.
15524 * doc/functions/round.texi: Mention round module.
15525 * doc/functions/roundf.texi: Mention roundf module.
15526 * doc/functions/roundl.texi: Mention roundl module.
15527 * MODULES.html.sh: Mention new modules.
15528 Thanks to Bruno Haible for suggestions.
15530 2007-10-20 Jim Meyering <meyering@redhat.com>
15532 * lib/xprintf.c: Include <config.h> unconditionally.
15534 Change xprintf's license to GPL.
15535 * modules/xprintf (License): s/LGPL/GPL/, since this module
15536 depends on modules (exit and exitfail) which are GPL.
15537 Suggestion from Bruno Haible.
15540 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
15541 Use a clearer diagnostic.
15542 Patch from Bruno Haible.
15544 2007-10-20 Bruno Haible <bruno@clisp.org>
15546 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
15547 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
15548 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15550 2007-10-20 Bruno Haible <bruno@clisp.org>
15552 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
15553 precision in the comparison result > x - 1 or similar.
15554 * tests/test-ceilf2.c (correct_result_p): Likewise.
15555 * tests/test-truncf2.c (correct_result_p): Likewise.
15556 * tests/test-trunc2.c (correct_result_p): Likewise.
15557 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15559 2007-10-20 Bruno Haible <bruno@clisp.org>
15561 * modules/ceil: New file.
15562 * m4/ceil.m4: New file.
15563 * doc/functions/ceil.texi: Mention the 'ceil' module.
15565 2007-10-20 Bruno Haible <bruno@clisp.org>
15567 * modules/floor: New file.
15568 * m4/floor.m4: New file.
15569 * doc/functions/floor.texi: Mention the 'floor' module.
15571 2007-10-20 Bruno Haible <bruno@clisp.org>
15573 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
15575 * modules/floorf-tests (Depends-on): Likewise.
15576 * modules/truncf-tests (Depends-on): Likewise.
15577 * modules/trunc-tests (Depends-on): Likewise.
15578 Reported by Ben Pfaff.
15580 2007-10-19 Jim Meyering <meyering@redhat.com>
15582 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
15583 Don't bother testing specific errno values. Just test ferror.
15585 New module: xprintf
15586 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
15588 2007-10-19 Bruno Haible <bruno@clisp.org>
15590 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
15592 * modules/javaexec (Makefile.am): Likewise.
15593 * modules/relocatable-prog (Makefile.am): Likewise.
15594 Suggested by Jim Meyering.
15596 2007-10-18 Bruno Haible <bruno@clisp.org>
15598 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
15599 Reported by Jim Meyering.
15601 2007-10-18 Eric Blake <ebb9@byu.net>
15603 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
15605 2007-10-18 Bruno Haible <bruno@clisp.org>
15607 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
15608 the format string into writable memory. Needed in Fortify conditions.
15610 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
15611 Bruno Haible <bruno@clisp.org>
15613 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
15614 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
15615 * modules/trim (Depends-on): Add mbchar.
15616 (configure.ac): Add gl_FUNC_MBRTOWC.
15617 (Makefile.am): Augment lib_SOURCES.
15619 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
15621 Modify glob.c to use fstatat and dirfd, to simplify it.
15622 Suggested by Eric Blake.
15623 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
15624 Don't include <stdbool.h>; not used.
15625 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
15626 (link_exists_p): Simplify implementation, since we can now assume
15628 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
15630 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15632 * gnulib-tool (func_get_dependencies): Fix sed script to
15635 2007-10-17 Bruno Haible <bruno@clisp.org>
15637 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
15638 allow locale names without encoding suffix.
15639 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15640 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15642 2007-10-16 Bruno Haible <bruno@clisp.org>
15644 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
15645 * lib/getgroups.c (getgroups): Likewise.
15646 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
15648 2007-10-16 Bruno Haible <bruno@clisp.org>
15650 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
15651 * modules/malloc-posix (License): Likewise.
15652 * modules/realloc-posix (License): Likewise.
15653 * modules/calloc-posix (License): Likewise.
15654 * modules/intprops (License): Change from GPL to LGPL, with
15655 Paul Eggert's approval.
15657 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
15659 Merge glibc changes into lib/glob.c.
15661 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
15662 2007-10-15 04:59:03 UTC. Here are the changes:
15664 2007-10-14 Ulrich Drepper <drepper@redhat.com>
15666 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
15668 * lib/glob.c: Add some branch prediction throughout.
15670 2007-10-07 Ulrich Drepper <drepper@redhat.com>
15673 * lib/glob.c (glob): Recognize patterns starting \/.
15675 2007-02-14 Jakub Jelinek <jakub@redhat.com>
15678 * lib/glob.c (attribute_hidden): Define if not defined.
15679 (glob): Unescape dirname, filename or username when needed and not
15680 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
15681 is NULL. Handle unescaped [ in pattern without closing ].
15682 Don't pass GLOB_CHECK down to recursive glob for directories.
15683 (__glob_pattern_type): New function.
15684 (__glob_pattern_p): Implement using __glob_pattern_type.
15685 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
15686 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
15687 Remove unreachable code.
15689 2006-09-30 Ulrich Drepper <drepper@redhat.com>
15691 * lib/glob.c (glob_in_dir): Add some comments and asserts to
15692 explain why there are no leaks.
15694 2006-09-25 Jakub Jelinek <jakub@redhat.com>
15697 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
15698 time, rather allocate increasingly bigger arrays of pointers, if
15699 possible with alloca, if too large with malloc.
15701 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
15703 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
15704 Problem reported by H.Merijn Brand in
15705 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
15706 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
15707 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
15709 2007-10-15 Bruno Haible <bruno@clisp.org>
15711 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
15712 with explicit rpl_ prefix.
15713 * lib/fopen.c (fopen): Likewise.
15714 * lib/freopen.c (freopen): Likewise.
15715 * lib/iconv.c (iconv): Likewise.
15716 * lib/iconv_close.c (iconv_close): Likewise.
15718 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15720 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
15722 2007-10-15 Bruno Haible <bruno@clisp.org>
15724 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
15725 <stddef.h> instead of <stdlib.h> since we only need NULL.
15726 Reported by Ben Pfaff <blp@cs.stanford.edu>.
15728 2007-10-15 Bruno Haible <bruno@clisp.org>
15730 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
15731 Replace paragraph talking about LIBOBJS.
15732 Reported by Colin Watson <cjwatson@debian.org>.
15734 2007-10-15 Bruno Haible <bruno@clisp.org>
15736 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
15737 <stdlib.h> before using NULL.
15739 2007-10-15 Simon Josefsson <simon@josefsson.org>
15741 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
15742 Reported by Albert Chin <china@thewrittenword.com>.
15744 2007-10-14 Bruno Haible <bruno@clisp.org>
15746 * modules/iconv_open-utf-tests: New file.
15747 * tests/test-iconv-utf.c: New file.
15749 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
15750 * modules/iconv_open-utf: New file.
15751 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
15752 (iconv, iconv_close): New declarations.
15753 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
15755 (iconv_open): Add special handling of conversion between UTF-8 and
15756 UTF-{16,32}{BE,LE}.
15757 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
15758 * lib/iconv_close.c: New file.
15759 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
15760 gl_FUNC_ICONV_OPEN.
15761 (gl_FUNC_ICONV_OPEN): Use it.
15762 (gl_FUNC_ICONV_OPEN_UTF): New macro.
15763 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
15764 and REPLACE_ICONV_UTF.
15765 * modules/iconv_open (Depends-on): Add c-strcase.
15766 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
15768 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
15770 2007-10-13 Albert Chin <china@thewrittenword.com>
15771 Bruno Haible <bruno@clisp.org>
15773 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
15774 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
15776 2007-10-13 Bruno Haible <bruno@clisp.org>
15778 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
15779 defined, use the ISO C99 inline semantics.
15780 * lib/argp.h (ARGP_EI): Likewise.
15782 2007-10-13 Bruno Haible <bruno@clisp.org>
15784 Handle 'inline' change in gcc 4.3.0.
15785 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
15786 argp_fmtstream_write, argp_fmtstream_set_lmargin,
15787 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
15788 argp_fmtstream_point): Disable 'extern' declaration if the function
15789 definition is going to be provided inline.
15790 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
15791 semantics, not the ISO C99 inline semantics.
15792 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
15793 'extern' declaration if the function definition is going to be provided
15795 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
15796 the GNU C inline semantics, not the ISO C99 inline semantics. With
15797 GCC 4.2, avoid a warning.
15799 2007-10-13 Bruno Haible <bruno@clisp.org>
15801 * lib/freading.h (freading): Enable the use of __freading for
15803 * lib/freading.c (freading): Likewise.
15805 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
15807 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
15808 "warning: C99 inline functions are not supported; using GNU89".
15810 2007-10-12 Bruno Haible <bruno@clisp.org>
15812 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
15814 * tests/test-ceilf2.c: New file.
15815 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
15817 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
15818 * modules/ceilf-tests: Update.
15820 2007-10-12 Bruno Haible <bruno@clisp.org>
15822 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
15824 * tests/test-floorf2.c: New file.
15825 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
15827 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
15828 * modules/floorf-tests: Update.
15830 2007-10-12 Bruno Haible <bruno@clisp.org>
15832 * tests/test-trunc2.c: New file.
15833 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
15835 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
15836 * modules/trunc-tests: Update.
15838 2007-10-12 Bruno Haible <bruno@clisp.org>
15840 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
15842 * tests/test-truncf2.c: New file.
15843 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
15845 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
15846 * modules/truncf-tests: Update.
15848 2007-10-11 Eric Blake <ebb9@byu.net>
15850 Don't claim strerror is broken on Interix.
15851 * doc/functions/strerror.texi (strerror): Known broken systems are
15852 now Solaris 8, and not Interix.
15853 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
15854 Interix on cross-compile.
15855 Reported by Martin Koeppe in
15856 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
15858 2007-10-11 Bruno Haible <bruno@clisp.org>
15860 * modules/i-ring-tests: New file.
15861 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
15864 2007-10-11 Bruno Haible <bruno@clisp.org>
15866 * modules/filenamecat-tests: New file.
15867 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
15868 * lib/filenamecat.c: Remove test code.
15870 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
15872 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
15874 * lib/strerror.c: Include <string.h> always, to test interface,
15875 and to remove the need for the dummy.
15876 Include intprops.h to compute width instead of doing it ourselves
15877 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
15878 (strerror): Define it to return NULL if there's no system strerror.
15879 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
15880 Omit !HAVE_STRERROR code. We don't need to worry about supporting
15881 ancient pre-strerror Unix systems well any more. Saying "unknown
15882 system error" is enough.
15883 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
15884 simpler strerror.c implementation.
15885 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
15886 Simplify the tests to reflect the simpler strerror implementation.
15887 * modules/strerror (Depends-on): Add intprops.
15889 2007-10-09 Eric Blake <ebb9@byu.net>
15891 Silence test-fpending.
15892 * modules/fpending-tests (Files): Add wrapper script.
15893 * tests/test-fpending.sh: New file.
15895 2007-10-09 Bruno Haible <bruno@clisp.org>
15897 * MODULES.html.sh (func_module): Don't create a hyperlink for
15898 function names like 'printf_frexp'.
15899 (Misc): Add crc, memxor.
15900 (Characteristics of floating types): New section.
15901 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
15902 isnanf-nolibm, signbit, trunc, truncf, truncl.
15903 (Enhancements for ISO C 99 functions): New subsection Input/output.
15904 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
15905 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
15906 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
15907 (Compatibility checks for POSIX:2001 functions): Add clock-time.
15908 (Enhancements for POSIX:2001 functions): Add chdir-long.
15909 (File system functions): Add areadlink, chdir-safer, read-file.
15910 Remove cycle-check.
15911 (File system as inode set): New section.
15912 (Date and time): Add gethrxtime.
15913 (Multithreading): Add openmp.
15914 (Internationalization functions): Add localename.
15915 (Unicode string functions): Add unistr/u*-mbsnlen.
15916 (Support for maintaining and releasing projects): Add git-version-gen.
15917 (Lone files): Remove directories.
15919 2007-10-08 Ben Pfaff <blp@gnu.org>
15921 * lib/xmalloca.h: Fix typo in comment.
15923 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
15925 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
15926 when avoiding problems with integer overflow. Use a portable test
15929 2007-10-08 Simon Josefsson <simon@josefsson.org>
15931 * modules/dummy (License): Change to LGPLv2+.
15932 * modules/float (License): Likewise
15933 * modules/realloc (License): Likewise
15934 * modules/stdlib (License): Likewise
15936 2007-10-07 Bruno Haible <bruno@clisp.org>
15938 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
15939 * floor.c (TWO_MANT_DIG): Likewise.
15940 * ceil.c (TWO_MANT_DIG): Likewise.
15941 Reported by Ben Pfaff.
15943 2007-10-07 Bruno Haible <bruno@clisp.org>
15945 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
15946 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
15947 * lib/frexp.c (FUNC): Likewise.
15948 * lib/printf-frexp.h (printf_frexp): Likewise.
15949 * lib/printf-frexpl.h (printf_frexpl): Likewise.
15950 * lib/printf-frexp.c (FUNC): Likewise.
15951 Suggested by Jim Meyering.
15953 2007-10-07 Jim Meyering <meyering@redhat.com>
15955 Make xnanosleep's integer overflow test more robust.
15956 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
15957 so that gcc-4.3.0 doesn't optimize away this test for overflow.
15959 2007-10-07 Bruno Haible <bruno@clisp.org>
15961 * NEWS: Mention the license change.
15963 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
15964 abbreviations in the modules files.
15966 Change copyright notice from GPLv2+ to GPLv3+.
15967 * README: Change copyright notice.
15968 * MODULES.html.sh: Likewise.
15969 * build-aux/bootstrap.conf: Likewise.
15970 * build-aux/config.libpath: Likewise.
15971 * build-aux/csharpcomp.sh.in: Likewise.
15972 * build-aux/csharpexec.sh.in: Likewise.
15973 * build-aux/install-reloc: Likewise.
15974 * build-aux/javacomp.sh.in: Likewise.
15975 * build-aux/javaexec.sh.in: Likewise.
15976 * build-aux/ldd.sh.in: Likewise.
15977 * build-aux/reloc-ldflags: Likewise.
15978 * build-aux/relocatable.sh.in: Likewise.
15979 * build-aux/x-to-1.in: Likewise.
15980 * check-module: Likewise.
15981 * config/srclistvars.sh: Likewise.
15982 * gnulib-tool: Likewise.
15983 * lib/acl-internal.h: Likewise.
15984 * lib/acl.c: Likewise.
15985 * lib/acl.h: Likewise.
15986 * lib/acl_entries.c: Likewise.
15987 * lib/areadlink-with-size.c: Likewise.
15988 * lib/areadlink.c: Likewise.
15989 * lib/areadlink.h: Likewise.
15990 * lib/argmatch.c: Likewise.
15991 * lib/argmatch.h: Likewise.
15992 * lib/argp-ba.c: Likewise.
15993 * lib/argp-eexst.c: Likewise.
15994 * lib/argp-fmtstream.c: Likewise.
15995 * lib/argp-fmtstream.h: Likewise.
15996 * lib/argp-fs-xinl.c: Likewise.
15997 * lib/argp-help.c: Likewise.
15998 * lib/argp-namefrob.h: Likewise.
15999 * lib/argp-parse.c: Likewise.
16000 * lib/argp-pin.c: Likewise.
16001 * lib/argp-pv.c: Likewise.
16002 * lib/argp-pvh.c: Likewise.
16003 * lib/argp-xinl.c: Likewise.
16004 * lib/argp.h: Likewise.
16005 * lib/at-func.c: Likewise.
16006 * lib/atanl.c: Likewise.
16007 * lib/backupfile.c: Likewise.
16008 * lib/backupfile.h: Likewise.
16009 * lib/basename.c: Likewise.
16010 * lib/binary-io.h: Likewise.
16011 * lib/byteswap.in.h: Likewise.
16012 * lib/c-stack.c: Likewise.
16013 * lib/c-stack.h: Likewise.
16014 * lib/c-strcasestr.c: Likewise.
16015 * lib/c-strcasestr.h: Likewise.
16016 * lib/c-strstr.c: Likewise.
16017 * lib/c-strstr.h: Likewise.
16018 * lib/c-strtod.c: Likewise.
16019 * lib/calloc.c: Likewise.
16020 * lib/canon-host.c: Likewise.
16021 * lib/canon-host.h: Likewise.
16022 * lib/canonicalize-lgpl.c: Likewise.
16023 * lib/canonicalize.c: Likewise.
16024 * lib/canonicalize.h: Likewise.
16025 * lib/ceil.c: Likewise.
16026 * lib/ceilf.c: Likewise.
16027 * lib/ceill.c: Likewise.
16028 * lib/chdir-long.c: Likewise.
16029 * lib/chdir-long.h: Likewise.
16030 * lib/chdir-safer.c: Likewise.
16031 * lib/chdir-safer.h: Likewise.
16032 * lib/chown.c: Likewise.
16033 * lib/classpath.c: Likewise.
16034 * lib/classpath.h: Likewise.
16035 * lib/clean-temp.c: Likewise.
16036 * lib/clean-temp.h: Likewise.
16037 * lib/cloexec.c: Likewise.
16038 * lib/close-stream.c: Likewise.
16039 * lib/closein.c: Likewise.
16040 * lib/closein.h: Likewise.
16041 * lib/closeout.c: Likewise.
16042 * lib/closeout.h: Likewise.
16043 * lib/concat-filename.c: Likewise.
16044 * lib/copy-file.c: Likewise.
16045 * lib/copy-file.h: Likewise.
16046 * lib/count-one-bits.h: Likewise.
16047 * lib/crc.c: Likewise.
16048 * lib/crc.h: Likewise.
16049 * lib/creat-safer.c: Likewise.
16050 * lib/csharpcomp.c: Likewise.
16051 * lib/csharpcomp.h: Likewise.
16052 * lib/csharpexec.c: Likewise.
16053 * lib/csharpexec.h: Likewise.
16054 * lib/cycle-check.c: Likewise.
16055 * lib/cycle-check.h: Likewise.
16056 * lib/diacrit.c: Likewise.
16057 * lib/diacrit.h: Likewise.
16058 * lib/diffseq.h: Likewise.
16059 * lib/dirchownmod.c: Likewise.
16060 * lib/dirent.in.h: Likewise.
16061 * lib/dirfd.c: Likewise.
16062 * lib/dirfd.h: Likewise.
16063 * lib/dirname.c: Likewise.
16064 * lib/dirname.h: Likewise.
16065 * lib/dummy.c: Likewise.
16066 * lib/dup-safer.c: Likewise.
16067 * lib/dup2.c: Likewise.
16068 * lib/eealloc.h: Likewise.
16069 * lib/error.c: Likewise.
16070 * lib/error.h: Likewise.
16071 * lib/euidaccess.c: Likewise.
16072 * lib/exclude.c: Likewise.
16073 * lib/exclude.h: Likewise.
16074 * lib/execute.c: Likewise.
16075 * lib/execute.h: Likewise.
16076 * lib/exitfail.c: Likewise.
16077 * lib/exitfail.h: Likewise.
16078 * lib/expl.c: Likewise.
16079 * lib/fatal-signal.c: Likewise.
16080 * lib/fatal-signal.h: Likewise.
16081 * lib/fbufmode.c: Likewise.
16082 * lib/fbufmode.h: Likewise.
16083 * lib/fchdir.c: Likewise.
16084 * lib/fchmodat.c: Likewise.
16085 * lib/fchownat.c: Likewise.
16086 * lib/fcntl--.h: Likewise.
16087 * lib/fcntl-safer.h: Likewise.
16088 * lib/fcntl.in.h: Likewise.
16089 * lib/fd-safer.c: Likewise.
16090 * lib/fflush.c: Likewise.
16091 * lib/file-has-acl.c: Likewise.
16092 * lib/file-set.c: Likewise.
16093 * lib/file-type.c: Likewise.
16094 * lib/file-type.h: Likewise.
16095 * lib/fileblocks.c: Likewise.
16096 * lib/filemode.c: Likewise.
16097 * lib/filemode.h: Likewise.
16098 * lib/filename.h: Likewise.
16099 * lib/filenamecat.c: Likewise.
16100 * lib/filenamecat.h: Likewise.
16101 * lib/findprog.c: Likewise.
16102 * lib/findprog.h: Likewise.
16103 * lib/float.in.h: Likewise.
16104 * lib/floor.c: Likewise.
16105 * lib/floorf.c: Likewise.
16106 * lib/floorl.c: Likewise.
16107 * lib/fopen-safer.c: Likewise.
16108 * lib/fopen.c: Likewise.
16109 * lib/fpending.c: Likewise.
16110 * lib/fpending.h: Likewise.
16111 * lib/fprintf.c: Likewise.
16112 * lib/fprintftime.h: Likewise.
16113 * lib/fpucw.h: Likewise.
16114 * lib/fpurge.c: Likewise.
16115 * lib/fpurge.h: Likewise.
16116 * lib/freadable.c: Likewise.
16117 * lib/freadable.h: Likewise.
16118 * lib/freadahead.c: Likewise.
16119 * lib/freadahead.h: Likewise.
16120 * lib/freading.c: Likewise.
16121 * lib/freading.h: Likewise.
16122 * lib/free.c: Likewise.
16123 * lib/freopen.c: Likewise.
16124 * lib/frexp.c: Likewise.
16125 * lib/frexpl.c: Likewise.
16126 * lib/fseek.c: Likewise.
16127 * lib/fseterr.c: Likewise.
16128 * lib/fseterr.h: Likewise.
16129 * lib/fstatat.c: Likewise.
16130 * lib/fstrcmp.c: Likewise.
16131 * lib/fstrcmp.h: Likewise.
16132 * lib/fsusage.c: Likewise.
16133 * lib/fsusage.h: Likewise.
16134 * lib/ftell.c: Likewise.
16135 * lib/ftello.c: Likewise.
16136 * lib/fts-cycle.c: Likewise.
16137 * lib/fts.c: Likewise.
16138 * lib/fts_.h: Likewise.
16139 * lib/full-read.c: Likewise.
16140 * lib/full-read.h: Likewise.
16141 * lib/full-write.c: Likewise.
16142 * lib/full-write.h: Likewise.
16143 * lib/fwritable.c: Likewise.
16144 * lib/fwritable.h: Likewise.
16145 * lib/fwriteerror.c: Likewise.
16146 * lib/fwriteerror.h: Likewise.
16147 * lib/fwriting.c: Likewise.
16148 * lib/fwriting.h: Likewise.
16149 * lib/gcd.c: Likewise.
16150 * lib/gcd.h: Likewise.
16151 * lib/getcwd.c: Likewise.
16152 * lib/getdate.h: Likewise.
16153 * lib/getdate.y: Likewise.
16154 * lib/getdomainname.c: Likewise.
16155 * lib/getdomainname.h: Likewise.
16156 * lib/getgroups.c: Likewise.
16157 * lib/gethostname.c: Likewise.
16158 * lib/gethrxtime.c: Likewise.
16159 * lib/gethrxtime.h: Likewise.
16160 * lib/getloadavg.c: Likewise.
16161 * lib/getndelim2.c: Likewise.
16162 * lib/getndelim2.h: Likewise.
16163 * lib/getnline.c: Likewise.
16164 * lib/getnline.h: Likewise.
16165 * lib/getopt.c: Likewise.
16166 * lib/getopt.in.h: Likewise.
16167 * lib/getopt1.c: Likewise.
16168 * lib/getopt_int.h: Likewise.
16169 * lib/getpagesize.h: Likewise.
16170 * lib/getsubopt.c: Likewise.
16171 * lib/gettime.c: Likewise.
16172 * lib/getugroups.c: Likewise.
16173 * lib/getugroups.h: Likewise.
16174 * lib/getusershell.c: Likewise.
16175 * lib/gl_anyavltree_list1.h: Likewise.
16176 * lib/gl_anyavltree_list2.h: Likewise.
16177 * lib/gl_anyhash_list1.h: Likewise.
16178 * lib/gl_anyhash_list2.h: Likewise.
16179 * lib/gl_anylinked_list1.h: Likewise.
16180 * lib/gl_anylinked_list2.h: Likewise.
16181 * lib/gl_anyrbtree_list1.h: Likewise.
16182 * lib/gl_anyrbtree_list2.h: Likewise.
16183 * lib/gl_anytree_list1.h: Likewise.
16184 * lib/gl_anytree_list2.h: Likewise.
16185 * lib/gl_anytree_oset.h: Likewise.
16186 * lib/gl_anytreehash_list1.h: Likewise.
16187 * lib/gl_anytreehash_list2.h: Likewise.
16188 * lib/gl_array_list.c: Likewise.
16189 * lib/gl_array_list.h: Likewise.
16190 * lib/gl_array_oset.c: Likewise.
16191 * lib/gl_array_oset.h: Likewise.
16192 * lib/gl_avltree_list.c: Likewise.
16193 * lib/gl_avltree_list.h: Likewise.
16194 * lib/gl_avltree_oset.c: Likewise.
16195 * lib/gl_avltree_oset.h: Likewise.
16196 * lib/gl_avltreehash_list.c: Likewise.
16197 * lib/gl_avltreehash_list.h: Likewise.
16198 * lib/gl_carray_list.c: Likewise.
16199 * lib/gl_carray_list.h: Likewise.
16200 * lib/gl_linked_list.c: Likewise.
16201 * lib/gl_linked_list.h: Likewise.
16202 * lib/gl_linkedhash_list.c: Likewise.
16203 * lib/gl_linkedhash_list.h: Likewise.
16204 * lib/gl_list.c: Likewise.
16205 * lib/gl_list.h: Likewise.
16206 * lib/gl_oset.c: Likewise.
16207 * lib/gl_oset.h: Likewise.
16208 * lib/gl_rbtree_list.c: Likewise.
16209 * lib/gl_rbtree_list.h: Likewise.
16210 * lib/gl_rbtree_oset.c: Likewise.
16211 * lib/gl_rbtree_oset.h: Likewise.
16212 * lib/gl_rbtreehash_list.c: Likewise.
16213 * lib/gl_rbtreehash_list.h: Likewise.
16214 * lib/gl_sublist.c: Likewise.
16215 * lib/gl_sublist.h: Likewise.
16216 * lib/group-member.c: Likewise.
16217 * lib/group-member.h: Likewise.
16218 * lib/hard-locale.c: Likewise.
16219 * lib/hard-locale.h: Likewise.
16220 * lib/hash-pjw.c: Likewise.
16221 * lib/hash-pjw.h: Likewise.
16222 * lib/hash-triple.c: Likewise.
16223 * lib/hash.c: Likewise.
16224 * lib/hash.h: Likewise.
16225 * lib/human.c: Likewise.
16226 * lib/human.h: Likewise.
16227 * lib/i-ring.c: Likewise.
16228 * lib/i-ring.h: Likewise.
16229 * lib/idcache.c: Likewise.
16230 * lib/imaxabs.c: Likewise.
16231 * lib/imaxdiv.c: Likewise.
16232 * lib/inet_pton.c: Likewise.
16233 * lib/inet_pton.h: Likewise.
16234 * lib/intprops.h: Likewise.
16235 * lib/inttostr.c: Likewise.
16236 * lib/inttostr.h: Likewise.
16237 * lib/inttypes.in.h: Likewise.
16238 * lib/isapipe.c: Likewise.
16239 * lib/isdir.c: Likewise.
16240 * lib/isnan.c: Likewise.
16241 * lib/isnan.h: Likewise.
16242 * lib/isnanf.c: Likewise.
16243 * lib/isnanf.h: Likewise.
16244 * lib/isnanl-nolibm.h: Likewise.
16245 * lib/isnanl.c: Likewise.
16246 * lib/isnanl.h: Likewise.
16247 * lib/javacomp.c: Likewise.
16248 * lib/javacomp.h: Likewise.
16249 * lib/javaexec.c: Likewise.
16250 * lib/javaexec.h: Likewise.
16251 * lib/javaversion.c: Likewise.
16252 * lib/javaversion.h: Likewise.
16253 * lib/javaversion.java: Likewise.
16254 * lib/lbrkprop.h: Likewise.
16255 * lib/lchmod.h: Likewise.
16256 * lib/lchown.c: Likewise.
16257 * lib/ldexpl.c: Likewise.
16258 * lib/linebreak.c: Likewise.
16259 * lib/linebreak.h: Likewise.
16260 * lib/linebuffer.c: Likewise.
16261 * lib/linebuffer.h: Likewise.
16262 * lib/locale.in.h: Likewise.
16263 * lib/logl.c: Likewise.
16264 * lib/long-options.c: Likewise.
16265 * lib/long-options.h: Likewise.
16266 * lib/lstat.c: Likewise.
16267 * lib/lstat.h: Likewise.
16268 * lib/math.in.h: Likewise.
16269 * lib/mbchar.c: Likewise.
16270 * lib/mbchar.h: Likewise.
16271 * lib/mbfile.h: Likewise.
16272 * lib/mbiter.h: Likewise.
16273 * lib/mbscasecmp.c: Likewise.
16274 * lib/mbscasestr.c: Likewise.
16275 * lib/mbschr.c: Likewise.
16276 * lib/mbscspn.c: Likewise.
16277 * lib/mbslen.c: Likewise.
16278 * lib/mbsncasecmp.c: Likewise.
16279 * lib/mbsnlen.c: Likewise.
16280 * lib/mbspbrk.c: Likewise.
16281 * lib/mbspcasecmp.c: Likewise.
16282 * lib/mbsrchr.c: Likewise.
16283 * lib/mbssep.c: Likewise.
16284 * lib/mbsspn.c: Likewise.
16285 * lib/mbsstr.c: Likewise.
16286 * lib/mbstok_r.c: Likewise.
16287 * lib/mbswidth.c: Likewise.
16288 * lib/mbswidth.h: Likewise.
16289 * lib/mbuiter.h: Likewise.
16290 * lib/memcasecmp.c: Likewise.
16291 * lib/memcasecmp.h: Likewise.
16292 * lib/memchr.c: Likewise.
16293 * lib/memcmp.c: Likewise.
16294 * lib/memcoll.c: Likewise.
16295 * lib/memcoll.h: Likewise.
16296 * lib/memcpy.c: Likewise.
16297 * lib/memrchr.c: Likewise.
16298 * lib/mkancesdirs.c: Likewise.
16299 * lib/mkdir-p.c: Likewise.
16300 * lib/mkdir-p.h: Likewise.
16301 * lib/mkdir.c: Likewise.
16302 * lib/mkdirat.c: Likewise.
16303 * lib/mkdtemp.c: Likewise.
16304 * lib/mkstemp-safer.c: Likewise.
16305 * lib/mkstemp.c: Likewise.
16306 * lib/modechange.c: Likewise.
16307 * lib/modechange.h: Likewise.
16308 * lib/mountlist.c: Likewise.
16309 * lib/mountlist.h: Likewise.
16310 * lib/mpsort.c: Likewise.
16311 * lib/nanosleep.c: Likewise.
16312 * lib/obstack.c: Likewise.
16313 * lib/obstack.h: Likewise.
16314 * lib/open-safer.c: Likewise.
16315 * lib/open.c: Likewise.
16316 * lib/openat-die.c: Likewise.
16317 * lib/openat-priv.h: Likewise.
16318 * lib/openat-proc.c: Likewise.
16319 * lib/openat.c: Likewise.
16320 * lib/openat.h: Likewise.
16321 * lib/pagealign_alloc.c: Likewise.
16322 * lib/pagealign_alloc.h: Likewise.
16323 * lib/physmem.c: Likewise.
16324 * lib/physmem.h: Likewise.
16325 * lib/pipe-safer.c: Likewise.
16326 * lib/pipe.c: Likewise.
16327 * lib/pipe.h: Likewise.
16328 * lib/posixtm.c: Likewise.
16329 * lib/posixtm.h: Likewise.
16330 * lib/posixver.c: Likewise.
16331 * lib/printf-frexp.c: Likewise.
16332 * lib/printf-frexp.h: Likewise.
16333 * lib/printf-frexpl.c: Likewise.
16334 * lib/printf-frexpl.h: Likewise.
16335 * lib/printf.c: Likewise.
16336 * lib/progname.c: Likewise.
16337 * lib/progname.h: Likewise.
16338 * lib/progreloc.c: Likewise.
16339 * lib/putenv.c: Likewise.
16340 * lib/quote.c: Likewise.
16341 * lib/quote.h: Likewise.
16342 * lib/quotearg.c: Likewise.
16343 * lib/quotearg.h: Likewise.
16344 * lib/raise.c: Likewise.
16345 * lib/readline.c: Likewise.
16346 * lib/readline.h: Likewise.
16347 * lib/readlink.c: Likewise.
16348 * lib/readtokens.c: Likewise.
16349 * lib/readtokens.h: Likewise.
16350 * lib/readtokens0.c: Likewise.
16351 * lib/readtokens0.h: Likewise.
16352 * lib/readutmp.c: Likewise.
16353 * lib/readutmp.h: Likewise.
16354 * lib/realloc.c: Likewise.
16355 * lib/relocwrapper.c: Likewise.
16356 * lib/rename-dest-slash.c: Likewise.
16357 * lib/rename.c: Likewise.
16358 * lib/rmdir.c: Likewise.
16359 * lib/rpmatch.c: Likewise.
16360 * lib/safe-read.c: Likewise.
16361 * lib/safe-read.h: Likewise.
16362 * lib/safe-write.c: Likewise.
16363 * lib/safe-write.h: Likewise.
16364 * lib/same-inode.h: Likewise.
16365 * lib/same.c: Likewise.
16366 * lib/same.h: Likewise.
16367 * lib/save-cwd.c: Likewise.
16368 * lib/save-cwd.h: Likewise.
16369 * lib/savedir.c: Likewise.
16370 * lib/savedir.h: Likewise.
16371 * lib/savewd.c: Likewise.
16372 * lib/savewd.h: Likewise.
16373 * lib/search.in.h: Likewise.
16374 * lib/setenv.c: Likewise.
16375 * lib/setenv.h: Likewise.
16376 * lib/settime.c: Likewise.
16377 * lib/sh-quote.c: Likewise.
16378 * lib/sh-quote.h: Likewise.
16379 * lib/sig2str.c: Likewise.
16380 * lib/sig2str.h: Likewise.
16381 * lib/signal.in.h: Likewise.
16382 * lib/signbitd.c: Likewise.
16383 * lib/signbitf.c: Likewise.
16384 * lib/signbitl.c: Likewise.
16385 * lib/sigprocmask.c: Likewise.
16386 * lib/sincosl.c: Likewise.
16387 * lib/sleep.c: Likewise.
16388 * lib/sprintf.c: Likewise.
16389 * lib/sqrtl.c: Likewise.
16390 * lib/stat-time.h: Likewise.
16391 * lib/stdio--.h: Likewise.
16392 * lib/stdio-safer.h: Likewise.
16393 * lib/stdlib--.h: Likewise.
16394 * lib/stdlib-safer.h: Likewise.
16395 * lib/stdlib.in.h: Likewise.
16396 * lib/stpcpy.c: Likewise.
16397 * lib/stpncpy.c: Likewise.
16398 * lib/strchrnul.c: Likewise.
16399 * lib/strcspn.c: Likewise.
16400 * lib/strerror.c: Likewise.
16401 * lib/strftime.c: Likewise.
16402 * lib/strftime.h: Likewise.
16403 * lib/striconveh.c: Likewise.
16404 * lib/striconveh.h: Likewise.
16405 * lib/striconveha.c: Likewise.
16406 * lib/striconveha.h: Likewise.
16407 * lib/stripslash.c: Likewise.
16408 * lib/strnlen1.c: Likewise.
16409 * lib/strnlen1.h: Likewise.
16410 * lib/strtod.c: Likewise.
16411 * lib/strtoimax.c: Likewise.
16412 * lib/strtok_r.c: Likewise.
16413 * lib/strtol.c: Likewise.
16414 * lib/strtoll.c: Likewise.
16415 * lib/strtoul.c: Likewise.
16416 * lib/strtoull.c: Likewise.
16417 * lib/sysexits.in.h: Likewise.
16418 * lib/tempname.c: Likewise.
16419 * lib/tempname.h: Likewise.
16420 * lib/timespec.h: Likewise.
16421 * lib/tls.c: Likewise.
16422 * lib/tls.h: Likewise.
16423 * lib/tmpdir.c: Likewise.
16424 * lib/tmpdir.h: Likewise.
16425 * lib/tmpfile-safer.c: Likewise.
16426 * lib/tmpfile.c: Likewise.
16427 * lib/trigl.c: Likewise.
16428 * lib/trigl.h: Likewise.
16429 * lib/trim.c: Likewise.
16430 * lib/trim.h: Likewise.
16431 * lib/trunc.c: Likewise.
16432 * lib/truncf.c: Likewise.
16433 * lib/truncl.c: Likewise.
16434 * lib/tsearch.c: Likewise.
16435 * lib/unicodeio.c: Likewise.
16436 * lib/unicodeio.h: Likewise.
16437 * lib/unistd--.h: Likewise.
16438 * lib/unistd-safer.h: Likewise.
16439 * lib/unistdio/ulc-fprintf.c: Likewise.
16440 * lib/unistdio/ulc-vfprintf.c: Likewise.
16441 * lib/unlinkdir.c: Likewise.
16442 * lib/unlinkdir.h: Likewise.
16443 * lib/unlocked-io.h: Likewise.
16444 * lib/unsetenv.c: Likewise.
16445 * lib/userspec.c: Likewise.
16446 * lib/utime.c: Likewise.
16447 * lib/utimecmp.c: Likewise.
16448 * lib/utimecmp.h: Likewise.
16449 * lib/utimens.c: Likewise.
16450 * lib/verify.h: Likewise.
16451 * lib/verror.c: Likewise.
16452 * lib/verror.h: Likewise.
16453 * lib/version-etc-fsf.c: Likewise.
16454 * lib/version-etc.c: Likewise.
16455 * lib/version-etc.h: Likewise.
16456 * lib/vfprintf.c: Likewise.
16457 * lib/vprintf.c: Likewise.
16458 * lib/vsprintf.c: Likewise.
16459 * lib/w32spawn.h: Likewise.
16460 * lib/wait-process.c: Likewise.
16461 * lib/wait-process.h: Likewise.
16462 * lib/wcwidth.c: Likewise.
16463 * lib/write-any-file.c: Likewise.
16464 * lib/xalloc-die.c: Likewise.
16465 * lib/xalloc.h: Likewise.
16466 * lib/xasprintf.c: Likewise.
16467 * lib/xgetcwd.c: Likewise.
16468 * lib/xgetcwd.h: Likewise.
16469 * lib/xgetdomainname.c: Likewise.
16470 * lib/xgetdomainname.h: Likewise.
16471 * lib/xgethostname.c: Likewise.
16472 * lib/xmalloc.c: Likewise.
16473 * lib/xmalloca.c: Likewise.
16474 * lib/xmalloca.h: Likewise.
16475 * lib/xmemcoll.c: Likewise.
16476 * lib/xnanosleep.c: Likewise.
16477 * lib/xreadlink.c: Likewise.
16478 * lib/xreadlink.h: Likewise.
16479 * lib/xsetenv.c: Likewise.
16480 * lib/xsetenv.h: Likewise.
16481 * lib/xstriconv.c: Likewise.
16482 * lib/xstriconv.h: Likewise.
16483 * lib/xstrndup.c: Likewise.
16484 * lib/xstrndup.h: Likewise.
16485 * lib/xstrtod.c: Likewise.
16486 * lib/xstrtod.h: Likewise.
16487 * lib/xstrtol-error.c: Likewise.
16488 * lib/xstrtol.c: Likewise.
16489 * lib/xstrtol.h: Likewise.
16490 * lib/xtime.h: Likewise.
16491 * lib/xvasprintf.c: Likewise.
16492 * lib/xvasprintf.h: Likewise.
16493 * lib/yesno.c: Likewise.
16494 * lib/yesno.h: Likewise.
16495 * posix-modules: Likewise.
16496 * tests/test-alloca-opt.c: Likewise.
16497 * tests/test-arcfour.c: Likewise.
16498 * tests/test-arctwo.c: Likewise.
16499 * tests/test-argmatch.c: Likewise.
16500 * tests/test-argp-2.sh: Likewise.
16501 * tests/test-argp.c: Likewise.
16502 * tests/test-arpa_inet.c: Likewise.
16503 * tests/test-array_list.c: Likewise.
16504 * tests/test-array_oset.c: Likewise.
16505 * tests/test-atexit.c: Likewise.
16506 * tests/test-avltree_list.c: Likewise.
16507 * tests/test-avltree_oset.c: Likewise.
16508 * tests/test-avltreehash_list.c: Likewise.
16509 * tests/test-base64.c: Likewise.
16510 * tests/test-binary-io.c: Likewise.
16511 * tests/test-byteswap.c: Likewise.
16512 * tests/test-c-ctype.c: Likewise.
16513 * tests/test-c-strcasecmp.c: Likewise.
16514 * tests/test-c-strcasestr.c: Likewise.
16515 * tests/test-c-strncasecmp.c: Likewise.
16516 * tests/test-c-strstr.c: Likewise.
16517 * tests/test-canonicalize-lgpl.c: Likewise.
16518 * tests/test-canonicalize.c: Likewise.
16519 * tests/test-carray_list.c: Likewise.
16520 * tests/test-ceilf.c: Likewise.
16521 * tests/test-ceill.c: Likewise.
16522 * tests/test-count-one-bits.c: Likewise.
16523 * tests/test-crc.c: Likewise.
16524 * tests/test-dirname.c: Likewise.
16525 * tests/test-fbufmode.c: Likewise.
16526 * tests/test-fcntl.c: Likewise.
16527 * tests/test-fflush.c: Likewise.
16528 * tests/test-floorf.c: Likewise.
16529 * tests/test-floorl.c: Likewise.
16530 * tests/test-fopen.c: Likewise.
16531 * tests/test-fprintf-posix.c: Likewise.
16532 * tests/test-fprintf-posix.h: Likewise.
16533 * tests/test-fpurge.c: Likewise.
16534 * tests/test-freadable.c: Likewise.
16535 * tests/test-freadahead.c: Likewise.
16536 * tests/test-freading.c: Likewise.
16537 * tests/test-freopen.c: Likewise.
16538 * tests/test-frexp.c: Likewise.
16539 * tests/test-frexpl.c: Likewise.
16540 * tests/test-fseek.c: Likewise.
16541 * tests/test-fseeko.c: Likewise.
16542 * tests/test-fseterr.c: Likewise.
16543 * tests/test-fstrcmp.c: Likewise.
16544 * tests/test-ftell.c: Likewise.
16545 * tests/test-ftello.c: Likewise.
16546 * tests/test-fwritable.c: Likewise.
16547 * tests/test-fwriting.c: Likewise.
16548 * tests/test-getaddrinfo.c: Likewise.
16549 * tests/test-getpass.c: Likewise.
16550 * tests/test-gettimeofday.c: Likewise.
16551 * tests/test-hmac-md5.c: Likewise.
16552 * tests/test-hmac-sha1.c: Likewise.
16553 * tests/test-iconv.c: Likewise.
16554 * tests/test-iconvme.c: Likewise.
16555 * tests/test-inttypes.c: Likewise.
16556 * tests/test-isnan.c: Likewise.
16557 * tests/test-isnanf.c: Likewise.
16558 * tests/test-isnanl-nolibm.c: Likewise.
16559 * tests/test-isnanl.c: Likewise.
16560 * tests/test-isnanl.h: Likewise.
16561 * tests/test-ldexpl.c: Likewise.
16562 * tests/test-linked_list.c: Likewise.
16563 * tests/test-linkedhash_list.c: Likewise.
16564 * tests/test-locale.c: Likewise.
16565 * tests/test-localename.c: Likewise.
16566 * tests/test-lock.c: Likewise.
16567 * tests/test-lseek.c: Likewise.
16568 * tests/test-malloca.c: Likewise.
16569 * tests/test-math.c: Likewise.
16570 * tests/test-mbscasecmp.c: Likewise.
16571 * tests/test-mbscasestr1.c: Likewise.
16572 * tests/test-mbscasestr2.c: Likewise.
16573 * tests/test-mbscasestr3.c: Likewise.
16574 * tests/test-mbscasestr4.c: Likewise.
16575 * tests/test-mbschr.c: Likewise.
16576 * tests/test-mbscspn.c: Likewise.
16577 * tests/test-mbsncasecmp.c: Likewise.
16578 * tests/test-mbspbrk.c: Likewise.
16579 * tests/test-mbspcasecmp.c: Likewise.
16580 * tests/test-mbsrchr.c: Likewise.
16581 * tests/test-mbsspn.c: Likewise.
16582 * tests/test-mbsstr1.c: Likewise.
16583 * tests/test-mbsstr2.c: Likewise.
16584 * tests/test-mbsstr3.c: Likewise.
16585 * tests/test-md5.c: Likewise.
16586 * tests/test-memmem.c: Likewise.
16587 * tests/test-netinet_in.c: Likewise.
16588 * tests/test-open.c: Likewise.
16589 * tests/test-printf-frexp.c: Likewise.
16590 * tests/test-printf-frexpl.c: Likewise.
16591 * tests/test-printf-posix.c: Likewise.
16592 * tests/test-printf-posix.h: Likewise.
16593 * tests/test-rbtree_list.c: Likewise.
16594 * tests/test-rbtree_oset.c: Likewise.
16595 * tests/test-rbtreehash_list.c: Likewise.
16596 * tests/test-read-file.c: Likewise.
16597 * tests/test-rijndael.c: Likewise.
16598 * tests/test-search.c: Likewise.
16599 * tests/test-signbit.c: Likewise.
16600 * tests/test-sleep.c: Likewise.
16601 * tests/test-snprintf-posix.c: Likewise.
16602 * tests/test-snprintf-posix.h: Likewise.
16603 * tests/test-snprintf.c: Likewise.
16604 * tests/test-sprintf-posix.c: Likewise.
16605 * tests/test-sprintf-posix.h: Likewise.
16606 * tests/test-stat-time.c: Likewise.
16607 * tests/test-stdbool.c: Likewise.
16608 * tests/test-stdint.c: Likewise.
16609 * tests/test-stdio.c: Likewise.
16610 * tests/test-stdlib.c: Likewise.
16611 * tests/test-stpncpy.c: Likewise.
16612 * tests/test-strcasestr.c: Likewise.
16613 * tests/test-striconv.c: Likewise.
16614 * tests/test-striconveh.c: Likewise.
16615 * tests/test-striconveha.c: Likewise.
16616 * tests/test-string.c: Likewise.
16617 * tests/test-sys_select.c: Likewise.
16618 * tests/test-sys_socket.c: Likewise.
16619 * tests/test-sys_stat.c: Likewise.
16620 * tests/test-sys_time.c: Likewise.
16621 * tests/test-sysexits.c: Likewise.
16622 * tests/test-time.c: Likewise.
16623 * tests/test-tls.c: Likewise.
16624 * tests/test-trunc.c: Likewise.
16625 * tests/test-truncf.c: Likewise.
16626 * tests/test-truncl.c: Likewise.
16627 * tests/test-unistd.c: Likewise.
16628 * tests/test-vasnprintf-posix.c: Likewise.
16629 * tests/test-vasnprintf-posix2.c: Likewise.
16630 * tests/test-vasnprintf.c: Likewise.
16631 * tests/test-vasprintf-posix.c: Likewise.
16632 * tests/test-vasprintf.c: Likewise.
16633 * tests/test-verify.c: Likewise.
16634 * tests/test-vfprintf-posix.c: Likewise.
16635 * tests/test-vprintf-posix.c: Likewise.
16636 * tests/test-vsnprintf-posix.c: Likewise.
16637 * tests/test-vsnprintf.c: Likewise.
16638 * tests/test-vsprintf-posix.c: Likewise.
16639 * tests/test-wchar.c: Likewise.
16640 * tests/test-wctype.c: Likewise.
16641 * tests/test-wcwidth.c: Likewise.
16642 * tests/test-xstrtol.c: Likewise.
16643 * tests/test-xvasprintf.c: Likewise.
16644 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
16645 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
16646 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
16647 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
16648 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
16649 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
16650 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
16651 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
16652 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
16653 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
16654 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
16655 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
16656 * tests/uniname/test-uninames.c: Likewise.
16657 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
16658 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
16659 * tests/unistdio/test-u16-printf1.h: Likewise.
16660 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
16661 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
16662 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
16663 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
16664 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
16665 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
16666 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
16667 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
16668 * tests/unistdio/test-u32-printf1.h: Likewise.
16669 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
16670 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
16671 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
16672 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
16673 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
16674 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
16675 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
16676 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
16677 * tests/unistdio/test-u8-printf1.h: Likewise.
16678 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
16679 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
16680 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
16681 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
16682 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
16683 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
16684 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
16685 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
16686 * tests/unistdio/test-ulc-printf1.h: Likewise.
16687 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
16688 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
16689 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
16690 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
16691 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
16692 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
16693 * tests/uniwidth/test-u16-strwidth.c: Likewise.
16694 * tests/uniwidth/test-u16-width.c: Likewise.
16695 * tests/uniwidth/test-u32-strwidth.c: Likewise.
16696 * tests/uniwidth/test-u32-width.c: Likewise.
16697 * tests/uniwidth/test-u8-strwidth.c: Likewise.
16698 * tests/uniwidth/test-u8-width.c: Likewise.
16699 * tests/uniwidth/test-uc_width.c: Likewise.
16700 * config/srclist-update: Likewise.
16701 (fixlicense): Update to GPLv3+.
16703 Change copyright notice from LGPLv2.1+ to LGPLv3+.
16704 * tests/test-tsearch.c: Change copyright notice.
16706 Change copyright notice from LGPLv2.0+ to LGPLv3+.
16707 * lib/c-strcaseeq.h: Change copyright notice.
16708 * lib/streq.h: Likewise.
16709 * lib/uniconv.h: Likewise.
16710 * lib/uniconv/u-conv-from-enc.h: Likewise.
16711 * lib/uniconv/u-conv-to-enc.h: Likewise.
16712 * lib/uniconv/u-strconv-from-enc.h: Likewise.
16713 * lib/uniconv/u-strconv-to-enc.h: Likewise.
16714 * lib/uniconv/u16-conv-from-enc.c: Likewise.
16715 * lib/uniconv/u16-conv-to-enc.c: Likewise.
16716 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
16717 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
16718 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
16719 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
16720 * lib/uniconv/u32-conv-from-enc.c: Likewise.
16721 * lib/uniconv/u32-conv-to-enc.c: Likewise.
16722 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
16723 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
16724 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
16725 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
16726 * lib/uniconv/u8-conv-from-enc.c: Likewise.
16727 * lib/uniconv/u8-conv-to-enc.c: Likewise.
16728 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
16729 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
16730 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
16731 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
16732 * lib/uniname.h: Likewise.
16733 * lib/uniname/uniname.c: Likewise.
16734 * lib/unistdio.h: Likewise.
16735 * lib/unistdio/u-asnprintf.h: Likewise.
16736 * lib/unistdio/u-asprintf.h: Likewise.
16737 * lib/unistdio/u-printf-args.c: Likewise.
16738 * lib/unistdio/u-printf-args.h: Likewise.
16739 * lib/unistdio/u-printf-parse.h: Likewise.
16740 * lib/unistdio/u-snprintf.h: Likewise.
16741 * lib/unistdio/u-sprintf.h: Likewise.
16742 * lib/unistdio/u-vasprintf.h: Likewise.
16743 * lib/unistdio/u-vsnprintf.h: Likewise.
16744 * lib/unistdio/u-vsprintf.h: Likewise.
16745 * lib/unistdio/u16-asnprintf.c: Likewise.
16746 * lib/unistdio/u16-asprintf.c: Likewise.
16747 * lib/unistdio/u16-printf-parse.c: Likewise.
16748 * lib/unistdio/u16-snprintf.c: Likewise.
16749 * lib/unistdio/u16-sprintf.c: Likewise.
16750 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
16751 * lib/unistdio/u16-u16-asprintf.c: Likewise.
16752 * lib/unistdio/u16-u16-snprintf.c: Likewise.
16753 * lib/unistdio/u16-u16-sprintf.c: Likewise.
16754 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
16755 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
16756 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
16757 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
16758 * lib/unistdio/u16-vasnprintf.c: Likewise.
16759 * lib/unistdio/u16-vasprintf.c: Likewise.
16760 * lib/unistdio/u16-vsnprintf.c: Likewise.
16761 * lib/unistdio/u16-vsprintf.c: Likewise.
16762 * lib/unistdio/u32-asnprintf.c: Likewise.
16763 * lib/unistdio/u32-asprintf.c: Likewise.
16764 * lib/unistdio/u32-printf-parse.c: Likewise.
16765 * lib/unistdio/u32-snprintf.c: Likewise.
16766 * lib/unistdio/u32-sprintf.c: Likewise.
16767 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
16768 * lib/unistdio/u32-u32-asprintf.c: Likewise.
16769 * lib/unistdio/u32-u32-snprintf.c: Likewise.
16770 * lib/unistdio/u32-u32-sprintf.c: Likewise.
16771 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
16772 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
16773 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
16774 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
16775 * lib/unistdio/u32-vasnprintf.c: Likewise.
16776 * lib/unistdio/u32-vasprintf.c: Likewise.
16777 * lib/unistdio/u32-vsnprintf.c: Likewise.
16778 * lib/unistdio/u32-vsprintf.c: Likewise.
16779 * lib/unistdio/u8-asnprintf.c: Likewise.
16780 * lib/unistdio/u8-asprintf.c: Likewise.
16781 * lib/unistdio/u8-printf-parse.c: Likewise.
16782 * lib/unistdio/u8-snprintf.c: Likewise.
16783 * lib/unistdio/u8-sprintf.c: Likewise.
16784 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
16785 * lib/unistdio/u8-u8-asprintf.c: Likewise.
16786 * lib/unistdio/u8-u8-snprintf.c: Likewise.
16787 * lib/unistdio/u8-u8-sprintf.c: Likewise.
16788 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
16789 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
16790 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
16791 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
16792 * lib/unistdio/u8-vasnprintf.c: Likewise.
16793 * lib/unistdio/u8-vasprintf.c: Likewise.
16794 * lib/unistdio/u8-vsnprintf.c: Likewise.
16795 * lib/unistdio/u8-vsprintf.c: Likewise.
16796 * lib/unistdio/ulc-asnprintf.c: Likewise.
16797 * lib/unistdio/ulc-asprintf.c: Likewise.
16798 * lib/unistdio/ulc-printf-parse.c: Likewise.
16799 * lib/unistdio/ulc-snprintf.c: Likewise.
16800 * lib/unistdio/ulc-sprintf.c: Likewise.
16801 * lib/unistdio/ulc-vasnprintf.c: Likewise.
16802 * lib/unistdio/ulc-vasprintf.c: Likewise.
16803 * lib/unistdio/ulc-vsnprintf.c: Likewise.
16804 * lib/unistdio/ulc-vsprintf.c: Likewise.
16805 * lib/unistr.h: Likewise.
16806 * lib/unistr/u-cpy-alloc.h: Likewise.
16807 * lib/unistr/u-cpy.h: Likewise.
16808 * lib/unistr/u-endswith.h: Likewise.
16809 * lib/unistr/u-move.h: Likewise.
16810 * lib/unistr/u-set.h: Likewise.
16811 * lib/unistr/u-startswith.h: Likewise.
16812 * lib/unistr/u-stpcpy.h: Likewise.
16813 * lib/unistr/u-stpncpy.h: Likewise.
16814 * lib/unistr/u-strcat.h: Likewise.
16815 * lib/unistr/u-strcpy.h: Likewise.
16816 * lib/unistr/u-strcspn.h: Likewise.
16817 * lib/unistr/u-strdup.h: Likewise.
16818 * lib/unistr/u-strlen.h: Likewise.
16819 * lib/unistr/u-strncat.h: Likewise.
16820 * lib/unistr/u-strncpy.h: Likewise.
16821 * lib/unistr/u-strnlen.h: Likewise.
16822 * lib/unistr/u-strpbrk.h: Likewise.
16823 * lib/unistr/u-strspn.h: Likewise.
16824 * lib/unistr/u-strstr.h: Likewise.
16825 * lib/unistr/u-strtok.h: Likewise.
16826 * lib/unistr/u16-check.c: Likewise.
16827 * lib/unistr/u16-chr.c: Likewise.
16828 * lib/unistr/u16-cmp.c: Likewise.
16829 * lib/unistr/u16-cpy-alloc.c: Likewise.
16830 * lib/unistr/u16-cpy.c: Likewise.
16831 * lib/unistr/u16-endswith.c: Likewise.
16832 * lib/unistr/u16-mblen.c: Likewise.
16833 * lib/unistr/u16-mbsnlen.c: Likewise.
16834 * lib/unistr/u16-mbtouc-aux.c: Likewise.
16835 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
16836 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
16837 * lib/unistr/u16-mbtouc.c: Likewise.
16838 * lib/unistr/u16-mbtoucr.c: Likewise.
16839 * lib/unistr/u16-move.c: Likewise.
16840 * lib/unistr/u16-next.c: Likewise.
16841 * lib/unistr/u16-prev.c: Likewise.
16842 * lib/unistr/u16-set.c: Likewise.
16843 * lib/unistr/u16-startswith.c: Likewise.
16844 * lib/unistr/u16-stpcpy.c: Likewise.
16845 * lib/unistr/u16-stpncpy.c: Likewise.
16846 * lib/unistr/u16-strcat.c: Likewise.
16847 * lib/unistr/u16-strchr.c: Likewise.
16848 * lib/unistr/u16-strcmp.c: Likewise.
16849 * lib/unistr/u16-strcpy.c: Likewise.
16850 * lib/unistr/u16-strcspn.c: Likewise.
16851 * lib/unistr/u16-strdup.c: Likewise.
16852 * lib/unistr/u16-strlen.c: Likewise.
16853 * lib/unistr/u16-strmblen.c: Likewise.
16854 * lib/unistr/u16-strmbtouc.c: Likewise.
16855 * lib/unistr/u16-strncat.c: Likewise.
16856 * lib/unistr/u16-strncmp.c: Likewise.
16857 * lib/unistr/u16-strncpy.c: Likewise.
16858 * lib/unistr/u16-strnlen.c: Likewise.
16859 * lib/unistr/u16-strpbrk.c: Likewise.
16860 * lib/unistr/u16-strrchr.c: Likewise.
16861 * lib/unistr/u16-strspn.c: Likewise.
16862 * lib/unistr/u16-strstr.c: Likewise.
16863 * lib/unistr/u16-strtok.c: Likewise.
16864 * lib/unistr/u16-to-u32.c: Likewise.
16865 * lib/unistr/u16-to-u8.c: Likewise.
16866 * lib/unistr/u16-uctomb-aux.c: Likewise.
16867 * lib/unistr/u16-uctomb.c: Likewise.
16868 * lib/unistr/u32-check.c: Likewise.
16869 * lib/unistr/u32-chr.c: Likewise.
16870 * lib/unistr/u32-cmp.c: Likewise.
16871 * lib/unistr/u32-cpy-alloc.c: Likewise.
16872 * lib/unistr/u32-cpy.c: Likewise.
16873 * lib/unistr/u32-endswith.c: Likewise.
16874 * lib/unistr/u32-mblen.c: Likewise.
16875 * lib/unistr/u32-mbsnlen.c: Likewise.
16876 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
16877 * lib/unistr/u32-mbtouc.c: Likewise.
16878 * lib/unistr/u32-mbtoucr.c: Likewise.
16879 * lib/unistr/u32-move.c: Likewise.
16880 * lib/unistr/u32-next.c: Likewise.
16881 * lib/unistr/u32-prev.c: Likewise.
16882 * lib/unistr/u32-set.c: Likewise.
16883 * lib/unistr/u32-startswith.c: Likewise.
16884 * lib/unistr/u32-stpcpy.c: Likewise.
16885 * lib/unistr/u32-stpncpy.c: Likewise.
16886 * lib/unistr/u32-strcat.c: Likewise.
16887 * lib/unistr/u32-strchr.c: Likewise.
16888 * lib/unistr/u32-strcmp.c: Likewise.
16889 * lib/unistr/u32-strcpy.c: Likewise.
16890 * lib/unistr/u32-strcspn.c: Likewise.
16891 * lib/unistr/u32-strdup.c: Likewise.
16892 * lib/unistr/u32-strlen.c: Likewise.
16893 * lib/unistr/u32-strmblen.c: Likewise.
16894 * lib/unistr/u32-strmbtouc.c: Likewise.
16895 * lib/unistr/u32-strncat.c: Likewise.
16896 * lib/unistr/u32-strncmp.c: Likewise.
16897 * lib/unistr/u32-strncpy.c: Likewise.
16898 * lib/unistr/u32-strnlen.c: Likewise.
16899 * lib/unistr/u32-strpbrk.c: Likewise.
16900 * lib/unistr/u32-strrchr.c: Likewise.
16901 * lib/unistr/u32-strspn.c: Likewise.
16902 * lib/unistr/u32-strstr.c: Likewise.
16903 * lib/unistr/u32-strtok.c: Likewise.
16904 * lib/unistr/u32-to-u16.c: Likewise.
16905 * lib/unistr/u32-to-u8.c: Likewise.
16906 * lib/unistr/u32-uctomb.c: Likewise.
16907 * lib/unistr/u8-check.c: Likewise.
16908 * lib/unistr/u8-chr.c: Likewise.
16909 * lib/unistr/u8-cmp.c: Likewise.
16910 * lib/unistr/u8-cpy-alloc.c: Likewise.
16911 * lib/unistr/u8-cpy.c: Likewise.
16912 * lib/unistr/u8-endswith.c: Likewise.
16913 * lib/unistr/u8-mblen.c: Likewise.
16914 * lib/unistr/u8-mbsnlen.c: Likewise.
16915 * lib/unistr/u8-mbtouc-aux.c: Likewise.
16916 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
16917 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
16918 * lib/unistr/u8-mbtouc.c: Likewise.
16919 * lib/unistr/u8-mbtoucr.c: Likewise.
16920 * lib/unistr/u8-move.c: Likewise.
16921 * lib/unistr/u8-next.c: Likewise.
16922 * lib/unistr/u8-prev.c: Likewise.
16923 * lib/unistr/u8-set.c: Likewise.
16924 * lib/unistr/u8-startswith.c: Likewise.
16925 * lib/unistr/u8-stpcpy.c: Likewise.
16926 * lib/unistr/u8-stpncpy.c: Likewise.
16927 * lib/unistr/u8-strcat.c: Likewise.
16928 * lib/unistr/u8-strchr.c: Likewise.
16929 * lib/unistr/u8-strcmp.c: Likewise.
16930 * lib/unistr/u8-strcpy.c: Likewise.
16931 * lib/unistr/u8-strcspn.c: Likewise.
16932 * lib/unistr/u8-strdup.c: Likewise.
16933 * lib/unistr/u8-strlen.c: Likewise.
16934 * lib/unistr/u8-strmblen.c: Likewise.
16935 * lib/unistr/u8-strmbtouc.c: Likewise.
16936 * lib/unistr/u8-strncat.c: Likewise.
16937 * lib/unistr/u8-strncmp.c: Likewise.
16938 * lib/unistr/u8-strncpy.c: Likewise.
16939 * lib/unistr/u8-strnlen.c: Likewise.
16940 * lib/unistr/u8-strpbrk.c: Likewise.
16941 * lib/unistr/u8-strrchr.c: Likewise.
16942 * lib/unistr/u8-strspn.c: Likewise.
16943 * lib/unistr/u8-strstr.c: Likewise.
16944 * lib/unistr/u8-strtok.c: Likewise.
16945 * lib/unistr/u8-to-u16.c: Likewise.
16946 * lib/unistr/u8-to-u32.c: Likewise.
16947 * lib/unistr/u8-uctomb-aux.c: Likewise.
16948 * lib/unistr/u8-uctomb.c: Likewise.
16949 * lib/unitypes.h: Likewise.
16950 * lib/uniwidth.h: Likewise.
16951 * lib/uniwidth/cjk.h: Likewise.
16952 * lib/uniwidth/u16-strwidth.c: Likewise.
16953 * lib/uniwidth/u16-width.c: Likewise.
16954 * lib/uniwidth/u32-strwidth.c: Likewise.
16955 * lib/uniwidth/u32-width.c: Likewise.
16956 * lib/uniwidth/u8-strwidth.c: Likewise.
16957 * lib/uniwidth/u8-width.c: Likewise.
16958 * lib/uniwidth/width.c: Likewise.
16960 2007-10-07 Bruno Haible <bruno@clisp.org>
16962 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
16963 The file is still under LGPL (see modules/inttypes).
16965 2007-10-06 Bruno Haible <bruno@clisp.org>
16967 * modules/trunc (Dependencies): Add 'extensions'.
16968 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
16969 Reported by Ben Pfaff <blp@gnu.org>.
16971 2007-10-06 Bruno Haible <bruno@clisp.org>
16973 * modules/freopen-tests: New file.
16974 * tests/test-freopen.c: New file.
16976 * modules/fopen-tests: New file.
16977 * tests/test-fopen.c: New file.
16979 * modules/fopen: New file.
16980 * lib/fopen.c: New file.
16981 * m4/fopen.m4: New file.
16982 * modules/freopen: New file.
16983 * lib/freopen.c: New file.
16984 * m4/freopen.m4: New file.
16985 * lib/stdio.in.h (fopen, freopen): New declarations.
16986 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
16987 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
16988 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
16989 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
16990 * doc/functions/fopen.texi: Mention the 'fopen' module.
16991 * doc/functions/freopen.texi: Mention the 'freopen' module.
16993 2007-10-06 Bruno Haible <bruno@clisp.org>
16995 * modules/open-tests: New file.
16996 * tests/test-open.c: New file.
16998 * modules/open: New file.
16999 * lib/open.c: New file.
17000 * m4/open.m4: New file.
17001 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
17003 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
17004 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
17006 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
17007 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
17009 * doc/functions/open.texi: Mention the 'open' module.
17011 2007-10-04 Bruno Haible <bruno@clisp.org>
17013 * modules/ceill-tests: New file.
17014 * tests/test-ceill.c: New file.
17016 * modules/ceill: New file.
17017 * lib/ceill.c: Replace entire file.
17018 * m4/ceill.m4: New file.
17019 * lib/math.in.h (ceill): Replace declaration.
17020 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
17021 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
17022 * doc/functions/ceill.texi: Mention the 'ceill' module.
17023 * modules/mathl (Files): Remove lib/ceill.c.
17024 (Depends-on): Add ceill.
17026 2007-10-04 Bruno Haible <bruno@clisp.org>
17028 * modules/ceilf-tests: New file.
17029 * tests/test-ceilf.c: New file.
17031 * modules/ceilf: New file.
17032 * lib/ceil.c: New file.
17033 * lib/ceilf.c: New file.
17034 * m4/ceilf.m4: New file.
17035 * lib/math.in.h (ceilf): New declaration.
17036 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
17038 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
17040 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
17042 2007-10-04 Bruno Haible <bruno@clisp.org>
17044 * modules/floorl-tests: New file.
17045 * tests/test-floorl.c: New file.
17047 * modules/floorl: New file.
17048 * lib/floorl.c: Replace entire file.
17049 * m4/floorl.m4: New file.
17050 * lib/math.in.h (floorl): Replace declaration.
17051 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
17052 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
17053 * doc/functions/floorl.texi: Mention the 'floorl' module.
17054 * modules/mathl (Files): Remove lib/floorl.c.
17055 (Depends-on): Add floorl.
17057 2007-10-04 Bruno Haible <bruno@clisp.org>
17059 * modules/floorf-tests: New file.
17060 * tests/test-floorf.c: New file.
17062 * modules/floorf: New file.
17063 * lib/floor.c: New file.
17064 * lib/floorf.c: New file.
17065 * m4/floorf.m4: New file.
17066 * lib/math.in.h (floorf): New declaration.
17067 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
17069 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
17071 * doc/functions/floorf.texi: Mention the 'floorf' module.
17073 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
17074 Bruno Haible <bruno@clisp.org>
17076 Advertise for the Git server instead of the CVS server.
17077 * doc/gnulib-intro.texi (Steady Development): Mention the Git
17078 repository instead of the CVS one.
17079 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
17080 about all VCS systems generically.
17081 * doc/gnulib.texi (Introduction): Capitalize `Git'.
17083 2007-10-04 Bruno Haible <bruno@clisp.org>
17085 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
17087 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
17089 2007-10-04 Bruno Haible <bruno@clisp.org>
17091 * modules/truncl-tests: New file.
17092 * tests/test-truncl.c: New file.
17094 * modules/truncl: New file.
17095 * lib/truncl.c: New file.
17096 * m4/truncl.m4: New file.
17097 * lib/math.in.h (truncl): New declaration.
17098 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
17100 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
17102 * doc/functions/truncl.texi: Mention the 'truncl' module.
17104 2007-10-04 Bruno Haible <bruno@clisp.org>
17106 * modules/truncf-tests: New file.
17107 * tests/test-truncf.c: New file.
17109 * modules/truncf: New file.
17110 * lib/trunc.c: Make paramerizable through USE_* macros.
17111 * lib/truncf.c: New file.
17112 * m4/truncf.m4: New file.
17113 * lib/math.in.h (truncf): New declaration.
17114 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
17116 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
17118 * doc/functions/truncf.texi: Mention the 'truncf' module.
17120 2007-10-03 Bruno Haible <bruno@clisp.org>
17122 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
17123 augmentation also for tests modules.
17124 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
17125 * modules/atexit-tests (Makefile.am): Likewise.
17126 * modules/binary-io-tests (Makefile.am): Likewise.
17127 * modules/c-strcase-tests (Makefile.am): Likewise.
17128 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
17129 * modules/canonicalize-tests (Makefile.am): Likewise.
17130 * modules/closein-tests (Makefile.am): Likewise.
17131 * modules/fprintf-posix-tests (Makefile.am): Likewise.
17132 * modules/freadahead-tests (Makefile.am): Likewise.
17133 * modules/fseek-tests (Makefile.am): Likewise.
17134 * modules/fseeko-tests (Makefile.am): Likewise.
17135 * modules/ftell-tests (Makefile.am): Likewise.
17136 * modules/ftello-tests (Makefile.am): Likewise.
17137 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
17138 * modules/isnanl-tests (Makefile.am): Likewise.
17139 * modules/lseek-tests (Makefile.am): Likewise.
17140 * modules/mbscasecmp-tests (Makefile.am): Likewise.
17141 * modules/mbscasestr-tests (Makefile.am): Likewise.
17142 * modules/mbschr-tests (Makefile.am): Likewise.
17143 * modules/mbscspn-tests (Makefile.am): Likewise.
17144 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
17145 * modules/mbspbrk-tests (Makefile.am): Likewise.
17146 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
17147 * modules/mbsrchr-tests (Makefile.am): Likewise.
17148 * modules/mbsspn-tests (Makefile.am): Likewise.
17149 * modules/mbsstr-tests (Makefile.am): Likewise.
17150 * modules/printf-posix-tests (Makefile.am): Likewise.
17151 * modules/snprintf-posix-tests (Makefile.am): Likewise.
17152 * modules/sprintf-posix-tests (Makefile.am): Likewise.
17153 * modules/tsearch-tests (Makefile.am): Likewise.
17154 * modules/uniname/uniname-tests (Makefile.am): Likewise.
17155 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
17156 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
17157 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
17158 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
17159 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
17160 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
17161 * modules/vprintf-posix-tests (Makefile.am): Likewise.
17162 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
17163 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
17164 * modules/xstrtoimax-tests (Makefile.am): Likewise.
17165 * modules/xstrtol-tests (Makefile.am): Likewise.
17166 * modules/xstrtoumax-tests (Makefile.am): Likewise.
17167 * modules/yesno-tests (Makefile.am): Likewise.
17169 2007-10-03 Bruno Haible <bruno@clisp.org>
17171 * modules/trunc-tests: New file.
17172 * tests/test-trunc.c: New file.
17174 * modules/trunc: New file.
17175 * lib/trunc.c: New file.
17176 * m4/trunc.m4: New file.
17177 * lib/math.in.h (trunc): New declaration.
17178 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
17180 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
17182 * doc/functions/trunc.texi: Mention the 'trunc' module.
17184 2007-10-03 Bruno Haible <bruno@clisp.org>
17186 * tests/test-fpending.c: New file, mostly copied
17187 from coreutils/lib/t-fpending.c.
17188 * modules/fpending-tests: New file.
17190 2007-10-03 Bruno Haible <bruno@clisp.org>
17192 Port the stdio extensions to QNX (untested).
17193 * lib/fseterr.c (fseterr): Add support for QNX.
17194 * lib/fbufmode.c (fbufmode): Likewise.
17195 * lib/freadable.c (freadable): Likewise.
17196 * lib/fwritable.c (fwritable): Likewise.
17197 * lib/freading.c (freading): Likewise.
17198 * lib/fwriting.c (fwriting): Likewise.
17199 * lib/freadahead.c (freadahed): Likewise.
17200 * lib/fpurge.c (fpurge): Likewise.
17201 * lib/fseeko.c (rpl_fseeko): Likewise.
17203 2007-10-03 Bruno Haible <bruno@clisp.org>
17204 Jim Meyering <jim@meyering.net>
17205 Eric Blake <ebb9@byu.net>
17207 * doc/relocatable.texi: Use @command instead of @program.
17209 2007-10-02 Jim Meyering <jim@meyering.net>
17211 Perform one more "_.h" -> ".in.h" substitution.
17212 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
17213 instead of unistd_.h here, too.
17215 2007-10-01 Bruno Haible <bruno@clisp.org>
17217 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
17218 Needed for the alloca-opt module.
17220 2007-09-30 Bruno Haible <bruno@clisp.org>
17222 * lib/alloca.in.h: Renamed from lib/alloca_.h.
17223 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
17225 * lib/argz.in.h: Renamed from lib/argz_.h.
17226 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
17227 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
17228 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
17230 * lib/dirent.in.h: Renamed from lib/dirent_.h.
17231 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
17233 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
17234 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
17236 * lib/float.in.h: Renamed from lib/float_.h.
17237 * modules/float (Files, Makefile.am): Use float.in.h instead of
17239 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
17240 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
17242 * lib/getopt.in.h: Renamed from lib/getopt_.h.
17243 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
17245 * lib/glob.in.h: Renamed from lib/glob_.h.
17246 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
17247 * lib/iconv.in.h: Renamed from lib/iconv_.h.
17248 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
17250 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
17251 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
17253 * lib/locale.in.h: Renamed from lib/locale_.h.
17254 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
17256 * lib/math.in.h: Renamed from lib/math_.h.
17257 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
17258 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
17259 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
17260 of netinet_in_.h. Add dependency.
17261 * lib/poll.in.h: Renamed from lib/poll_.h.
17262 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
17263 * lib/search.in.h: Renamed from lib/search_.h.
17264 * modules/search (Files, Makefile.am): Use search.in.h instead of
17266 * lib/signal.in.h: Renamed from lib/signal_.h.
17267 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
17269 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
17270 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
17272 * lib/stdint.in.h: Renamed from lib/stdint_.h.
17273 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
17275 * lib/stdio.in.h: Renamed from lib/stdio_.h.
17276 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
17278 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
17279 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
17281 * lib/string.in.h: Renamed from lib/string_.h.
17282 * modules/string (Files, Makefile.am): Use string.in.h instead of
17284 * doc/gnulib-tool.texi (Initial import): Update.
17285 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
17286 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
17287 of sys_select_.h. Add dependency.
17288 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
17289 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
17291 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
17292 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
17294 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
17295 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
17297 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
17298 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
17300 * lib/time.in.h: Renamed from lib/time_.h.
17301 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
17302 * lib/unistd.in.h: Renamed from lib/unistd_.h.
17303 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
17305 * lib/wchar.in.h: Renamed from lib/wchar_.h.
17306 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
17308 * lib/wctype.in.h: Renamed from lib/wctype_.h.
17309 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
17311 * build-aux/bootstrap (slurp): Update.
17312 * lib/.cppi-disable: Update.
17314 2007-09-30 Bruno Haible <bruno@clisp.org>
17316 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
17319 2007-09-30 Bruno Haible <bruno@clisp.org>
17321 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
17323 2007-09-29 Bruno Haible <bruno@clisp.org>
17325 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
17327 2007-09-29 Bruno Haible <bruno@clisp.org>
17329 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
17330 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
17331 * build-aux/install-reloc: Compile also areadlink.c.
17332 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
17334 2007-09-29 Bruno Haible <bruno@clisp.org>
17336 * gnulib-tool (func_emit_initmacro_done): Indentation.
17338 2007-09-29 Bruno Haible <bruno@clisp.org>
17340 * README: Add CVS checkout update instructions.
17341 Info from Bob Proulx <bob@proulx.com>.
17343 2007-09-28 Eric Blake <ebb9@byu.net>
17345 Provide move-if-change.
17346 * build-aux/move-if-change: New file, based on best practice
17347 rather than any canonical upstream location.
17349 2007-09-28 Jim Meyering <jim@meyering.net>
17351 Fix canonicalize loop-detection corner case.
17352 Do not attempt to stat the symlink values stored via seen_triple.
17353 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
17354 on linux-2.6.18, (but not 2.6.22).
17355 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
17356 triple_compare. The former compares dev,ino,filename, while the latter
17357 would actually stat dirname(filename) when dev and ino were equal.
17358 * lib/hash-triple.c: Install <string.h>.
17360 (triple_compare_ino_str): New function.
17361 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
17363 2007-09-28 Eric Blake <ebb9@byu.net>
17365 Enforce that AC_REPLACE_FUNCS files exist.
17366 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
17367 override check for typos.
17369 Fix test-closein on Solaris 10.
17370 * tests/test-closein.c (main): Don't assume stdin can be inherited
17371 closed on all systems.
17372 * tests/test-closein.sh: Likewise.
17373 Reported by Piotr Tarnowski.
17375 2007-09-28 Jim Meyering <jim@meyering.net>
17377 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
17379 2007-09-27 Jim Meyering <jim@meyering.net>
17381 canonicalize: Avoid a false-positive cycle failure.
17382 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
17383 Sort. Remove cycle-check.
17384 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
17386 (seen_triple): New function.
17387 (canonicalize_filename_mode): Use it instead of cycle-check.
17388 * tests/test-canonicalize.c: Add a test for this bug.
17389 * tests/test-canonicalize.sh: Set up and run the test.
17391 New module, file-set, from coreutils.
17392 * modules/file-set: Define it.
17393 * lib/file-set.c, lib/file-set.h: Implement.
17395 New module, hash-triple, from coreutils.
17396 * modules/hash-triple: Define it.
17397 * lib/hash-triple.c, lib/hash-triple.h: Implement.
17399 2007-09-25 Eric Blake <ebb9@byu.net>
17401 Fix strerror on Interix.
17402 * lib/string_.h (strerror): Declare replacement.
17403 * doc/functions/strerror.texi (strerror): Document the Interix
17405 * modules/string (Makefile.am): Support new hooks.
17406 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
17407 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
17408 gl_FUNC_STRERROR_SEPARATE.
17409 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
17410 * lib/strerror.c (rpl_strerror): Provide replacement.
17411 * modules/strerror (Depends-on): Add string.
17412 (configure.ac): Detect use of module.
17413 * tests/test-strerror.c: New file.
17414 * modules/strerror-tests: New test module.
17415 * modules/argp (Depends-on): Add strerror.
17416 * modules/error (Depends-on): Likewise.
17417 Reported by Martin Koeppe.
17419 2007-09-24 Bruno Haible <bruno@clisp.org>
17421 * README: Update git instructions.
17423 2007-09-24 Eric Blake <ebb9@byu.net>
17425 Revert fpending breakage from 2007-09-08.
17426 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
17429 2007-09-24 Jim Meyering <jim@meyering.net>
17431 filenamecat.c: Add a test.
17432 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
17433 showing how the function works when DIR is the empty string.
17435 2007-09-21 Simon Josefsson <simon@josefsson.org>
17437 * tests/test-canonicalize.sh: Turn on executable bit.
17439 2007-09-19 Eric Blake <ebb9@byu.net>
17441 * README: Update CVS instructions.
17443 2007-09-18 Bruno Haible <bruno@clisp.org>
17445 * modules/areadlink: New file.
17446 * lib/areadlink.h (areadlink): New declaration.
17447 * lib/areadlink.c: New file, based on lib/xreadlink.c.
17449 2007-09-17 Jim Meyering <jim@meyering.net>
17451 * lib/savewd.c (ESTALE) [!defined]: Define.
17452 Reported to be required on Interix by Martin Koeppe.
17454 2007-09-17 Bruno Haible <bruno@clisp.org>
17456 * gnulib-tool (func_version): Use $version.
17458 2007-09-16 Bruno Haible <bruno@clisp.org>
17460 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
17461 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
17462 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
17463 Reported by Greg Schafer <gschafer@zip.com.au>.
17465 2007-09-15 Bruno Haible <bruno@clisp.org>
17467 * gnulib-tool (sed): Try a little harder to make bash understand the
17469 Reported by Bruce Korb <bruce.korb@gmail.com>.
17471 2007-09-13 Eric Blake <ebb9@byu.net>
17473 * ChangeLog: Remove conflict markers.
17475 2007-09-13 Simon Josefsson <simon@josefsson.org>
17477 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
17478 Reported by Bruno Haible <bruno@clisp.org>.
17480 2007-09-12 Bruno Haible <bruno@clisp.org>
17482 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
17483 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
17486 2007-09-12 Eric Blake <ebb9@byu.net>
17488 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
17489 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
17490 Autoconf definition.
17491 * modules/euidaccess (Depends-on): Add extensions, for
17492 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
17493 * modules/fnmatch (Depends-on): Likewise.
17494 * modules/getaddrinfo (Depends-on): Likewise.
17495 * modules/getdelim (Depends-on): Likewise.
17496 * modules/getline (Depends-on): Likewise.
17497 * modules/getsubopt (Depends-on): Likewise.
17498 * modules/gettext (Depends-on): Likewise.
17499 * modules/group-member (Depends-on): Likewise.
17500 * modules/mbchar (Depends-on): Likewise.
17501 * modules/memmem (Depends-on): Likewise.
17502 * modules/mempcpy (Depends-on): Likewise.
17503 * modules/memrchr (Depends-on): Likewise.
17504 * modules/pagealign_alloc (Depends-on): Likewise.
17505 * modules/readutmp (Depends-on): Likewise.
17506 * modules/stpcpy (Depends-on): Likewise.
17507 * modules/stpncpy (Depends-on): Likewise.
17508 * modules/strchrnul (Depends-on): Likewise.
17509 * modules/strndup (Depends-on): Likewise.
17510 * modules/strsep (Depends-on): Likewise.
17511 * modules/strverscmp (Depends-on): Likewise.
17512 * modules/vasprintf (Depends-on): Likewise.
17513 * modules/wcwidth (Depends-on): Likewise.
17514 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
17515 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
17516 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
17517 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
17518 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17519 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17520 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
17521 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
17522 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
17523 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
17524 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17525 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
17526 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
17527 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17528 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
17529 * m4/readutmp.m4 (gl_READUTMP): Likewise.
17530 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
17531 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
17532 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17533 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
17534 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
17535 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
17536 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
17537 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
17538 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
17539 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17540 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
17541 so that lock.m4 can be used in gettext without extensions module.
17543 2007-09-11 Bruno Haible <bruno@clisp.org>
17545 * m4/isc-posix.m4: Remove file.
17546 Suggested by Eric Blake.
17548 2007-09-11 Eric Blake <ebb9@byu.net>
17550 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
17552 2007-09-10 Bruno Haible <bruno@clisp.org>
17554 * posix-modules: Fix typo in error message.
17555 Reported by Matt <mkraai@beckman.com>.
17557 2007-09-09 Bruno Haible <bruno@clisp.org>
17559 * doc/functions/getdelim.texi: Update list of platforms lacking the
17561 * doc/functions/getline.texi: Likewise.
17563 2007-09-09 Jim Meyering <jim@meyering.net>
17565 * lib/hash.c (hash_initialize): Detect calloc failure.
17566 Reported by Bruno Haible.
17568 2007-09-09 Bruno Haible <bruno@clisp.org>
17570 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
17571 malloc or realloc fails.
17573 2007-09-09 Bruno Haible <bruno@clisp.org>
17575 * modules/getcwd (Depends-on): Add malloc-posix.
17576 * modules/glob (Depends-on): Likewise.
17577 * modules/putenv (Depends-on): Likewise.
17578 * modules/strdup (Depends-on): Likewise.
17579 * modules/getdelim (Depends-on): Add realloc-posix.
17580 * modules/read-file (Depends-on): Likewise.
17582 2007-09-09 Bruno Haible <bruno@clisp.org>
17584 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
17585 (gl_FUNC_MALLOC_POSIX): Require it.
17586 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
17587 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
17588 * modules/realloc (Files): Add m4/malloc.m4.
17589 * modules/calloc (Files): Likewise.
17591 2007-09-09 Bruno Haible <bruno@clisp.org>
17593 * modules/malloc-posix: New file.
17594 * modules/malloc (Depends-on): Add malloc-posix.
17595 * lib/malloc.c: Include errno.h.
17596 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
17597 and a POSIX-compatible malloc into a single function. Set ENOMEM
17598 when returning NULL.
17599 * m4/malloc.m4: New file.
17600 * doc/functions/malloc.texi: Mention the malloc-posix module.
17601 * lib/stdlib_.h (malloc): New declaration.
17602 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17603 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
17604 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
17605 and HAVE_MALLOC_POSIX.
17607 2007-09-09 Bruno Haible <bruno@clisp.org>
17609 * modules/realloc-posix: New file.
17610 * modules/realloc (Depends-on): Add realloc-posix.
17611 * lib/realloc.c: Include errno.h.
17612 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
17613 and a POSIX-compatible realloc into a single function. Set ENOMEM
17614 when returning NULL.
17615 * m4/realloc.m4: New file.
17616 * doc/functions/realloc.texi: Mention the realloc-posix module.
17617 * lib/stdlib_.h (realloc): New declaration.
17618 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17619 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
17620 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
17621 and HAVE_REALLOC_POSIX.
17623 2007-09-09 Bruno Haible <bruno@clisp.org>
17625 * modules/calloc-posix: New file.
17626 * modules/calloc (Depends-on): Add calloc-posix.
17627 * lib/calloc.c: Include errno.h.
17628 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
17629 and a POSIX-compatible calloc into a single function. Set ENOMEM
17630 when returning NULL.
17631 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
17632 * doc/functions/calloc.texi: Mention the calloc-posix module.
17633 * lib/stdlib_.h (calloc): New declaration.
17634 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17635 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
17636 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
17637 and HAVE_CALLOC_POSIX.
17639 2007-09-09 Bruno Haible <bruno@clisp.org>
17641 Allow for modules to show an arbitrary notice.
17642 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
17643 * gnulib-tool: New option --extract-notice.
17644 (func_usage): Document it.
17645 (sed_extract_prog): Update.
17646 (func_get_notice): New function.
17647 (func_modules_notice): New function.
17648 (func_import, func_create_testdir): Invoke it.
17649 Suggested by Jim Meyering.
17651 2007-09-09 Bruno Haible <bruno@clisp.org>
17653 * gnulib-tool: New options --verbose, --quiet.
17654 (func_usage): Document them.
17655 (verbose): New variable.
17656 (func_execute_command): New function.
17657 (func_import): Don't show the module list and the file list if
17659 (func_create_testdir): Likewise. Use func_execute_command.
17660 (func_create_megatestdir): Use func_execute_command.
17662 2007-09-08 Bruno Haible <bruno@clisp.org>
17664 * gnulib-tool (func_import): Prefer rsync over wget when available,
17665 for fetching the PO files.
17667 2007-09-08 Bruno Haible <bruno@clisp.org>
17669 * posix-modules: New file. Portions copied from gnulib-tool.
17670 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
17672 2007-09-08 Jim Meyering <jim@meyering.net>
17674 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
17675 * lib/fpending.h: Rename from __fpending.h.
17676 * lib/fpending.c: Rename from __fpending.c.
17677 Include "fpending.h", not "__fpending.h".
17678 * lib/__fpending.h, lib/__fpending.c: Remove files.
17679 * modules/fpending (Files): Reflect new file names.
17680 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
17682 2007-09-08 Bruno Haible <bruno@clisp.org>
17684 * m4/inttypes-h.m4: Remove stub file.
17686 2007-09-07 Simon Josefsson <simon@josefsson.org>
17688 * doc/headers/stdint.texi: Discuss #include_next issue.
17690 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
17692 * build-aux/bootstrap: Remove obsolete comment about wget --help.
17694 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17696 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
17699 2007-09-03 Jim Meyering <jim@meyering.net>
17701 New module: git-version-gen.
17702 * modules/git-version-gen: New file.
17704 Import changes from coreutils for bootstrap script.
17706 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
17708 bootstrap: uses rsync to download the .po files
17709 * build-aux/bootstrap (po_download_command_format): New global.
17710 (download_po_files): Use rsync.
17711 (update_po_files): Don't remove .po files after download,
17712 so future rsync runs can take advantage of the copies.
17714 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
17716 Solve the unnecessary-.po-file-regeneration problem once and for all.
17717 * build-aux/bootstrap (download_po_files): New function, renamed from
17718 get_translations. Now, downloads, but doesn't update LINGUAS.
17719 (update_po_files): New function.
17721 bootstrap: Ignore more.
17722 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
17723 uniwidth to e.g., lib/.gitignore.
17724 (slurp): Handle the sys_stat_.h -> sys mapping, too.
17726 * build-aux/bootstrap: New setting: vc_ignore.
17727 (insert_sorted_if_absent): Create $file if absent.
17728 Adapt to new, possibly empty, list: $vc_ignore.
17730 bootstrap: generate more ignorable names
17731 * build-aux/bootstrap (slurp): When generating ignorable names,
17732 also map .sin to .sed, .gperf to .c, and .y to .c.
17734 2007-09-03 Jim Meyering <jim@meyering.net>
17736 * build-aux/git-version-gen: New file, from coreutils. For details, see
17737 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
17739 2007-09-02 Bruno Haible <bruno@clisp.org>
17741 Fix mis-recognition of 'mcs' on QNX 6.
17742 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
17743 output contains the string "Mono".
17744 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
17745 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
17747 2007-09-01 Bruno Haible <bruno@clisp.org>
17749 Fix collision between uniwidth/* and linebreak modules.
17750 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
17751 u32_width): Remove declarations.
17752 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
17753 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
17754 streq3, streq2, streq1, streq0): Remove functions.
17755 (STREQ): Remove macro.
17756 (is_cjk_encoding): Remove function.
17757 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
17758 (uc_width, u8_width, u16_width, u32_width): Remove functions.
17759 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
17760 * NEWS: Document the change.
17762 2007-09-01 Bruno Haible <bruno@clisp.org>
17764 * lib/streq.h: Add double-inclusion guard.
17766 2007-09-01 Karl Berry <karl@gnu.org>
17768 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
17770 2007-08-28 Jim Meyering <jim@meyering.net>
17772 Rename mreadlink_with_size to areadlink_with_size.
17773 * NEWS: Document the change.
17774 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
17775 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
17776 * lib/mreadlink.h: Rename this to...
17777 * lib/areadlink.h: ...this.
17778 * modules/mreadlink-with-size: Rename this to...
17779 * modules/areadlink-with-size: ...this.
17780 * lib/canonicalize.c: Reflect the renaming.
17781 * modules/canonicalize: Likewise.
17783 2007-08-26 Bruno Haible <bruno@clisp.org>
17785 * gnulib-tool (func_import): When deciding which files to remove,
17786 consider also dangling symbolic links.
17787 Reported by Eric Blake.
17789 2007-08-26 Bruno Haible <bruno@clisp.org>
17791 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
17793 2007-08-23 Simon Josefsson <simon@josefsson.org>
17795 * lib/readline.c: Don't include getline.h, the prototype is now
17798 2007-08-23 Jim Meyering <jim@meyering.net>
17801 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
17802 around the funlockfile call, since funlockfile never sets errno.
17803 Don't set errno upon failed realloc.
17805 2007-08-22 Eric Blake <ebb9@byu.net>
17808 * lib/getdelim.c (getdelim): Revert regression that required *n to
17809 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
17810 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
17811 getdelim, rather than whether implementation is missing.
17812 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
17813 * lib/stdio_.h (getline): Also declare if replacement is
17815 * doc/functions/getdelim.texi: New file.
17816 * doc/functions/getline.texi: Likewise.
17817 * doc/gnulib.texi (Function Substitutes): Add new files.
17818 Reported by Bruno Haible.
17820 2007-08-22 Ludovic Courtès <ludo@gnu.org>
17822 * users.txt: Add Guile.
17824 2007-08-22 Eric Blake <ebb9@byu.net>
17826 * tests/test-getdelim.c (main): Use remove, not unlink.
17827 * tests/test-getline.c (main): Likewise.
17829 Move getline and getdelim into stdio.h, per POSIX 200x.
17830 * modules/getline (Files): Remove getline.h.
17831 (Depends-on): Add stdio.
17832 (configure.ac): Add module indicator.
17833 * modules/getdelim (Files): Remove getdelim.h.
17834 (Depends-on): Add stdio.
17835 (configure.ac): Add module indicator.
17836 * modules/stdio (Makefile.am): Work with new indicators.
17837 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
17838 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
17839 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17840 * lib/getdelim.h: Delete.
17841 * lib/getline.h: Delete.
17842 * lib/stdio_.h (getdelim, getline): Declare.
17843 * modules/getdelim-tests: New module.
17844 * modules/getline-tests: Likewise.
17845 * tests/test-getdelim.c: New file.
17846 * tests/test-getline.c: Likewise.
17847 * NEWS: Document the change.
17848 * lib/getline.c: Update choice of header.
17849 * lib/csharpcomp.c: Likewise.
17850 * lib/getpass.c: Likewise.
17851 * lib/javacomp.c: Likewise.
17852 * lib/javaversion.c: Likewise.
17853 * lib/yesno.c: Likewise.
17854 * lib/getdelim.c: Likewise.
17855 (getdelim): Set errno on failure, and avoid memory leak.
17857 2007-08-19 Bruno Haible <bruno@clisp.org>
17859 * modules/closein (Depends-on): Add freadahead.
17860 * lib/closein.c: Include freadahead.h.
17861 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
17864 2007-08-19 Bruno Haible <bruno@clisp.org>
17866 * modules/freadahead-tests: New file.
17867 * tests/test-freadahead.sh: New file.
17868 * tests/test-freadahead.c: New file.
17870 * modules/freadahead: New file.
17871 * lib/freadahead.h: New file.
17872 * lib/freadahead.c: New file.
17873 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
17874 fbufmode, fpurge, freadable, fwritable.
17876 2007-08-19 Eric Blake <ebb9@byu.net>
17878 Test yesno in combination with closein.
17879 * lib/yesno.c (yesno): Document use of stdin.
17880 * modules/yesno-tests (Files): New module.
17881 * tests/test-yesno.c (main): New file.
17882 * tests/test-yesno.sh: Likewise.
17884 2007-08-19 Bruno Haible <bruno@clisp.org>
17886 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
17887 * lib/fseeko.c (rpl_fseeko): Likewise.
17888 * lib/fseterr.c (fseterr): Likewise.
17890 2007-08-19 Bruno Haible <bruno@clisp.org>
17892 * tests/test-lseek.c (main): Disable a test for BeOS.
17893 * doc/functions/lseek.texi: Document the BeOS bug.
17895 2007-08-19 Bruno Haible <bruno@clisp.org>
17896 Eric Blake <ebb9@byu.net>
17898 * lib/lseek.c: Include <sys/stat.h>.
17899 (rpl_lseek): Add workaround code also for Unix platforms.
17901 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
17902 * doc/functions/lseek.texi: Document BeOS definiency.
17904 2007-08-18 Bruno Haible <bruno@clisp.org>
17906 * modules/fstrcmp-tests: New file.
17907 * tests/test-fstrcmp.c: New file.
17909 2007-08-18 Bruno Haible <bruno@clisp.org>
17911 * modules/fstrcmp: New file, from GNU gettext with modifications.
17912 * lib/fstrcmp.h: New file, from GNU gettext.
17913 * lib/fstrcmp.c: New file, from GNU gettext.
17914 * MODULES.html.sh (String handling): Add fstrcmp.
17916 2007-08-18 Bruno Haible <bruno@clisp.org>
17918 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
17920 (diag, compareseq): Remove const from the ctxt argument.
17921 (USE_HEURISTIC): Undefine at the end.
17923 2007-08-18 Jim Meyering <jim@meyering.net>
17925 New file: lib/idcache.h
17926 * NEWS: Mention the addition.
17927 * modules/idcache (Files): Add lib/idcache.h
17928 * lib/idcache.c: Include "idcache.h".
17929 Don't include <sys/types.h>.
17930 Add a FIXME comment.
17931 Move file-scoped "static" declarations to the top.
17932 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
17934 2007-08-17 Bruno Haible <bruno@clisp.org>
17935 and Paul Eggert <eggert@cs.ucla.edu>
17937 * MODULES.html.sh: Add diffseq.
17938 * modules/diffseq: New file.
17939 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
17940 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
17942 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
17944 Import changes from coreutils for bootstrap script.
17946 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
17948 * build-aux/bootstrap (slurp): Work even in environments where
17949 "ls" defaults to "ls -A". Put in a FIXME, though, since the
17950 current code does not slurp files whose names start with ".", and
17951 this looks like it might be a troublesome area.
17953 2007-07-11 Jim Meyering <jim@meyering.net>
17955 If there's a GPL vN copyright comment, require that N == 3.
17957 2007-07-08 Jim Meyering <jim@meyering.net>
17959 Run the coreutils-specific code only if tests/Makefile.am.in exists.
17960 * build-aux/bootstrap (mam_template): Move definition out of loop.
17962 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
17964 * build-aux/bootstrap (symlink_to_dir): Rename function from
17965 symlink_to_gnulib. Add a directory parameter. Update all
17967 (cp_mark_as_generated): Also check for -- and link to -- files in
17970 2007-07-08 Jim Meyering <jim@meyering.net>
17972 Adapt to deeper hierarchy in gnulib.
17973 * build-aux/bootstrap (symlink_to_dir): If the destination
17974 directory doesn't exist, create it. This is required at least for
17975 "lib/uniwidth/cjk.h".
17977 2007-05-15 Jim Meyering <jim@meyering.net>
17979 * build-aux/bootstrap: Now that generated Makefile.am files
17980 are no longer under version control, they must be created at
17983 2007-08-14 Ben Pfaff <blp@gnu.org>
17985 * lib/count-one-bits.h: Add comments. From Bruno Haible.
17987 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
17989 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
17990 given the changes below.
17991 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
17992 even on hosts that have padding bits beyond the supported 64.
17994 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
17996 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
17997 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
17998 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
18000 (xstrtol_error): Remove.
18001 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
18002 but with a different signature.
18003 (ATTRIBUTE_NORETURN, __attribute__): New macros.
18004 * lib/xstrtol-error.c: Include exitfail.h.
18005 (xstrtol_fatal): New function, with a different signature from the
18006 old xstrtol_error, so that the caller need not worry about passing
18007 in an exit status, or about storage management of the option argument.
18008 (xstrtol_error): Now a static function. Redo signature to
18009 implement xstrtol_fatal. Output the correct number of hyphens in
18010 front of the option so that the caller need not worry about
18011 storage management.
18013 (_): Remove; not used now.
18014 * modules/xstrtol: Depend on getopt.
18015 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
18016 of old STRTOL_FATAL_ERROR macro.
18017 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
18019 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
18020 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
18022 2007-08-08 Eric Blake <ebb9@byu.net>
18024 * lib/xstrtol-error.c: Add missing include.
18026 Move xstrtol messages into gnulib domain, when --pobase is used.
18027 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
18028 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
18029 * modules/xstrtol (Files): Distribute new file.
18030 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
18031 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
18032 * tests/test-xstrtol.c: ...into new file.
18033 * tests/test-xstrtoul.c: Also test xstrtoul.
18034 * tests/test-xstrtoimax.c: Also test xstrtoimax.
18035 * tests/test-xstrtoumax.c: Also test xstrtoumax.
18036 * tests/test-xstrtol.sh: Drive the tests.
18037 * tests/test-xstrtoimax.sh: Likewise.
18038 * tests/test-xstrtoumax.sh: Likewise.
18039 * modules/xstrtol-tests: New module.
18040 * modules/xstrtoimax-tests: Likewise.
18041 * modules/xstrtoumax-tests: Likewise.
18043 2007-08-08 Jim Meyering <jim@meyering.net>
18045 New function: mfile_name_concat.
18046 * lib/filenamecat.c (mfile_name_concat): New function, just like
18047 file_name_concat, but return NULL upon failure rather than exiting
18049 * lib/filenamecat.h: Declare it.
18051 2007-08-07 Bruno Haible <bruno@clisp.org>
18053 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
18054 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
18056 Reported by Eric Blake.
18058 2007-08-07 Simon Josefsson <simon@josefsson.org>
18060 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
18061 * modules/crypto/arcfour (License): Likewise.
18062 * modules/crypto/des-tests (License): Likewise.
18063 * modules/crypto/gc-arctwo-tests (License): Likewise.
18064 * modules/crypto/gc-des-tests (License): Likewise.
18065 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
18066 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
18067 * modules/crypto/gc-md2-tests (License): Likewise.
18068 * modules/crypto/gc-md4-tests (License): Likewise.
18069 * modules/crypto/gc-md5-tests (License): Likewise.
18070 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
18071 * modules/crypto/gc-rijndael-tests (License): Likewise.
18072 * modules/crypto/gc-sha1-tests (License): Likewise.
18073 * modules/crypto/gc-tests (License): Likewise.
18074 * modules/crypto/hmac-md5 (License): Likewise.
18075 * modules/crypto/hmac-sha1 (License): Likewise.
18076 * modules/crypto/md2-tests (License): Likewise.
18077 * modules/crypto/md4-tests (License): Likewise.
18078 * modules/crypto/md5 (License): Likewise.
18079 * modules/crypto/rijndael (License): Likewise.
18080 * modules/crypto/sha1 (License): Likewise.
18081 * modules/memxor (License): Likewise.
18083 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
18084 and Bruno Haible <bruno@clisp.org>
18086 * NEWS: Describe interface changes to human, xstrtol.
18087 * lib/human.h: Include <xstrtol.h>.
18088 (human_options): Return enum strtol_error, not int. Remove
18089 bool arg; take int * instead.
18090 * lib/human.c: Don't include "gettext.h".
18091 (_): Remove; no longer used.
18092 Don't include <xstrtol.h>, since human.h does it.
18093 (human_options): Adjust to abovementioned interface changes.
18094 Do not report error to stderr; that's now the caller's
18096 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
18098 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
18099 Str, Argument_type_string. All uses changed. Put " argument"
18100 in diagnostics to make them clearer. Change wording of suffix
18101 message for clarity.
18102 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
18103 Argument_type_string.
18104 (STRTOL_FATAL_WARN): Remove; no longer used.
18105 * modules/human (Depends-on): Remove gettext-h.
18107 2007-08-06 Simon Josefsson <simon@josefsson.org>
18109 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
18111 2007-07-31 Bruno Haible <bruno@clisp.org>
18113 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
18114 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
18115 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
18117 2007-07-31 Bruno Haible <bruno@clisp.org>
18119 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
18120 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
18122 2007-07-30 Bruno Haible <bruno@clisp.org>
18124 * modules/base64 (License): Use the synonymous term "LGPLv2+".
18125 * modules/c-ctype (License): Likewise.
18126 * modules/c-strcase (License): Likewise.
18127 * modules/check-version (License): Likewise.
18128 * modules/iconv (License): Likewise.
18129 * modules/iconv_open (License): Likewise.
18130 * modules/read-file (License): Likewise.
18131 * modules/striconv (License): Likewise.
18132 * modules/strverscmp (License): Likewise.
18133 * modules/vasprintf (License): Likewise.
18134 * modules/crypto/des (License): Likewise.
18135 * modules/crypto/gc (License): Likewise.
18136 * modules/crypto/gc-arcfour (License): Likewise.
18137 * modules/crypto/gc-arctwo (License): Likewise.
18138 * modules/crypto/gc-des (License): Likewise.
18139 * modules/crypto/gc-hmac-md5 (License): Likewise.
18140 * modules/crypto/gc-hmac-sha1 (License): Likewise.
18141 * modules/crypto/gc-md2 (License): Likewise.
18142 * modules/crypto/gc-md4 (License): Likewise.
18143 * modules/crypto/gc-md5 (License): Likewise.
18144 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
18145 * modules/crypto/gc-random (License): Likewise.
18146 * modules/crypto/gc-rijndael (License): Likewise.
18147 * modules/crypto/gc-sha1 (License): Likewise.
18148 * modules/crypto/md2 (License): Likewise.
18149 * modules/crypto/md4 (License): Likewise.
18151 2007-07-30 Jim Meyering <jim@meyering.net>
18153 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
18154 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
18155 it has valid stat data. This bug would cause du not to count the
18156 sizes of inaccessible directories.
18157 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
18158 in <http://bugzilla.redhat.com/250077>.
18160 2007-07-25 Peter O'Gorman <peter@pogma.com>
18161 Bruno Haible <bruno@clisp.org>
18163 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
18164 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
18165 #include_next, gives a diagnostic about it, but reports no error in
18167 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18169 2007-07-24 Ben Pfaff <blp@gnu.org>
18171 Improve name: "count-one-bits" is better than "popcount".
18172 * MODULES.html.sh: Update name.
18173 * lib/popcount.h: Renamed lib/count-one-bits.h.
18174 (popcount): Renamed count_one_bits.
18175 (popcountl): Renamed count_one_bits_l.
18176 (popcountll): Renamed count_one_bits_ll.
18177 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
18178 * modules/popcount: Renamed module/count-one-bits.
18179 * modules/popcount-tests: Renamed module/count-one-bits-tests.
18180 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
18182 2007-07-23 Ben Pfaff <blp@gnu.org>
18184 * lib/popcount.h (popcount32): Reduce size of constants, to allow
18185 better code generation, and add U to large constants to avoid
18186 warnings, in non-GCC case.
18187 Suggested by Bruno Haible.
18189 2007-07-23 Ben Pfaff <blp@gnu.org>
18191 * lib/popcount.h: Use verify_true instead of if...abort.
18192 * modules/popcount: Depend on verify module.
18193 Suggested by Jim Meyering.
18195 2007-07-23 Bruno Haible <bruno@clisp.org>
18197 * gnulib-tool (func_import): Create a .cvsignore file also when the
18198 directory is not yet in CVS but the toplevel directory is. When
18199 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
18200 Reported by Karl Berry.
18202 2007-07-22 Ben Pfaff <blp@gnu.org>
18204 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
18206 Suggested by Eric Blake.
18208 2007-07-22 Ben Pfaff <blp@gnu.org>
18210 New module: popcount.
18211 * MODULES.html.sh: Add popcount.
18212 * modules/popcount: New file.
18213 * modules/popcount-tests: New file.
18214 * tests/test-popcount.c: New file.
18215 * lib/popcount.h: New file.
18216 * m4/popcount.m4: New file.
18218 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
18220 * build-aux/announce-gen: Update to GPLv3.
18222 * build-aux/config.guess: Update from config.
18224 2007-07-21 Bruno Haible <bruno@clisp.org>
18226 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
18227 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
18229 2007-07-20 Jim Meyering <jim@meyering.net>
18231 * check-module: Diagnose a self-dependency.
18233 2007-07-19 Bruno Haible <bruno@clisp.org>
18235 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
18237 Reported by Eric Blake.
18239 2007-07-18 Bruno Haible <bruno@clisp.org>
18241 * gnulib-tool: New options --po-base, --po-domain.
18242 (func_usage): Document them.
18243 (pobase, po_domain): New variables.
18244 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
18245 DEFAULT_TEXT_DOMAIN.
18246 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
18247 (func_import): Consider pobase and po_domain. Create a po/ directory.
18248 (func_create_testdir): Set pobase and po_domain to empty.
18249 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
18250 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
18252 2007-07-18 Bruno Haible <bruno@clisp.org>
18254 * gnulib-tool (func_get_automake_snippet): Synthesize also an
18255 EXTRA_DIST augmentation for files in build-aux/.
18257 2007-07-16 Bruno Haible <bruno@clisp.org>
18259 * modules/lseek (License): Use the synonymous term "LGPLv2+".
18260 * modules/getdelim (License): Likewise.
18262 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18264 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
18265 * modules/d-type (License): Likewise.
18266 * modules/extensions (License): Likewise.
18267 * modules/fnmatch (License): Likewise.
18268 * modules/fseeko (License): Likewise.
18269 * modules/getaddrinfo (License): Likewise.
18270 * modules/getline (License): Likewise.
18271 * modules/getlogin_r (License): Likewise.
18272 * modules/getpass (License): Likewise.
18273 * modules/gettimeofday (License): Likewise.
18274 * modules/glob (License): Likewise.
18275 * modules/inet_ntop (License): Likewise.
18276 * modules/malloc (License): Likewise.
18277 * modules/malloca (License): Likewise.
18278 * modules/memmem (License): Likewise.
18279 * modules/mempcpy (License): Likewise.
18280 * modules/memset (License): Likewise.
18281 * modules/minmax (License): Likewise.
18282 * modules/mktime (License): Likewise.
18283 * modules/netinet_in (License): Likewise.
18284 * modules/pathmax (License): Likewise.
18285 * modules/poll (License): Likewise.
18286 * modules/regex (License): Likewise.
18287 * modules/snprintf (License): Likewise.
18288 * modules/stdbool (License): Likewise.
18289 * modules/stdint (License): Likewise.
18290 * modules/stdio (License): Likewise.
18291 * modules/strcase (License): Likewise.
18292 * modules/strcasestr (License): Likewise.
18293 * modules/strdup (License): Likewise.
18294 * modules/string (License): Likewise.
18295 * modules/strndup (License): Likewise.
18296 * modules/strnlen (License): Likewise.
18297 * modules/strpbrk (License): Likewise.
18298 * modules/strptime (License): Likewise.
18299 * modules/strsep (License): Likewise.
18300 * modules/sys_select (License): Likewise.
18301 * modules/sys_socket (License): Likewise.
18302 * modules/sys_stat (License): Likewise.
18303 * modules/sys_time (License): Likewise.
18304 * modules/time (License): Likewise.
18305 * modules/time_r (License): Likewise.
18306 * modules/timegm (License): Likewise.
18307 * modules/unistd (License): Likewise.
18308 * modules/vsnprintf (License): Likewise.
18309 * modules/wctype (License): Likewise.
18311 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18313 * modules/argz (License): LGPLv2+.
18315 2007-07-15 Karl Berry <karl@gnu.org>
18317 * doc/gnulib.texi: revise node structure per new fdl.texi.
18319 2007-07-14 Bruno Haible <bruno@clisp.org>
18321 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
18323 * lib/uniname/uninames.h: Regenerated.
18325 2007-07-14 Karl Berry <karl@gnu.org>
18327 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
18328 omitting sectioning and index commands.
18330 2007-07-13 Bruno Haible <bruno@clisp.org>
18332 New gnulib-tool option --more-symlinks.
18333 * gnulib-tool (func_usage): Document --more-symlinks.
18334 (do_copyrights): New variable.
18335 Recognize option --more-symlinks.
18336 (func_import): Don't add a copyright notice transform to
18337 sed_transform_lib_file if do_copyrights is empty.
18339 2007-07-13 Bruno Haible <bruno@clisp.org>
18341 * lib/vasnprintf.c (decimal_point_char): Define also if
18342 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
18343 && !NEED_PRINTF_DIRECTIVE_A.
18344 Reported by Clemens Koller <clemens.koller@anagramm.de> via
18345 Gary V. Vaughan <gary@gnu.org>.
18347 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
18349 * lib/inttypes_.h: Undo previous change, since it was fixed
18350 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
18352 2007-07-13 Bruno Haible <bruno@clisp.org>
18354 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
18355 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
18357 2007-07-13 Jim Meyering <jim@meyering.net>
18359 df: Don't fail for Tru64's "file-on-file mount".
18360 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
18361 so we fall through and use statfs instead. Details here:
18362 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
18363 Reported by Albert Chin.
18365 2007-07-13 Bruno Haible <bruno@clisp.org>
18367 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
18368 * modules/configmake (License): Likewise.
18369 * modules/gettext (License): Likewise.
18370 * modules/gettext-h (License): Likewise.
18371 * modules/include_next (License): Likewise.
18372 * modules/link-warning (License): Likewise.
18373 * modules/localcharset (License): Likewise.
18374 * modules/localename (License): Likewise.
18375 * modules/lock (License): Likewise.
18376 * modules/relocatable-lib-lgpl (License): Likewise.
18377 * modules/size_max (License): Likewise.
18378 * modules/vasnprintf (License): Likewise.
18379 * modules/wchar (License): Likewise.
18380 * modules/xsize (License): Likewise.
18382 2007-07-13 Bruno Haible <bruno@clisp.org>
18384 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
18385 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
18387 2007-07-12 Bruno Haible <bruno@clisp.org>
18389 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
18390 in the modules files.
18392 2007-07-11 Karl Berry <karl@gnu.org>
18394 * MODULES.html.sh (func_module): use
18395 sed -e '\|^'"${includefile}"'$|d'
18396 instead of /.../d, to avoid errors on $includefile's containing /.
18398 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
18400 * gnulib-tool (func_import): Avoid duplication of --avoid
18402 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
18403 names to `_' in variable names.
18405 2007-07-10 Eric Blake <ebb9@byu.net>
18407 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
18408 * NEWS: Document this change.
18410 2007-07-08 Bruno Haible <bruno@clisp.org>
18412 Update to Unicode 5.0.
18413 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
18414 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
18415 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
18416 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
18417 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
18418 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
18419 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
18420 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
18421 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
18422 U+10A3F, U+1D242..U+1D244.
18423 (nonspacing_table_ind): Update.
18424 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
18425 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
18427 2007-07-08 Bruno Haible <bruno@clisp.org>
18429 Update to Unicode 5.0.
18430 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
18431 code transform. Extend the name index field of unicode_name_to_code and
18432 unicode_code_to_name from 16 to 24 bits.
18433 * lib/uniname/uniname.c (unicode_character_name,
18434 unicode_name_character): Add the range 0x12xxx to the code transform.
18435 * lib/uniname/uninames.h: Regenerated.
18436 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
18438 2007-07-07 Bruno Haible <bruno@clisp.org>
18440 * modules/wcwidth-tests: New file.
18441 * tests/test-wcwidth.c: New file.
18443 Work around MacOS X wcwidth() bug.
18444 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
18445 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
18446 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
18447 original wcwidth in non-UTF-8 locales.
18448 * modules/wcwidth (Depends-on): Add localcharset, streq,
18450 * doc/functions/wcwidth.texi: Update.
18452 2007-07-07 Bruno Haible <bruno@clisp.org>
18454 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
18455 (wcwidth): New declaration.
18456 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
18458 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
18459 here. Prepare for creating <wchar.h> unconditionally.
18460 * modules/wchar (Depends-on): Add link-warning.
18461 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
18462 REPLACE_WCWIDTH, and GL_LINK_WARNING.
18463 * lib/wcwidth.h: Remove file.
18464 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
18465 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
18466 * modules/wcwidth (Files): Remove lib/wcwidth.h.
18467 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
18468 (Include): Replace wcwidth.h with <wchar.h>.
18469 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
18470 * lib/mbchar.h: Don't include wcwidth.h.
18471 * lib/mbswidth.c: Likewise.
18472 * NEWS: Mention the change.
18474 2007-07-07 Bruno Haible <bruno@clisp.org>
18476 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
18477 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
18478 definition with an external declaration.
18479 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
18480 defined as a function. Remove AC_C_INLINE requirement.
18481 * modules/wcwidth (Files): Add lib/wcwidth.c.
18482 (Makefile.am): Remove redundant statement.
18484 2007-07-07 Bruno Haible <bruno@clisp.org>
18486 * MODULES.html.sh (Unicode string functions): Add the new modules.
18488 * tests/uniwidth/test-u32-strwidth.c: New file.
18489 * modules/uniwidth/u32-strwidth-tests: New file.
18491 * lib/uniwidth/u32-strwidth.c: New file.
18492 * modules/uniwidth/u32-strwidth: New file.
18494 * tests/uniwidth/test-u16-strwidth.c: New file.
18495 * modules/uniwidth/u16-strwidth-tests: New file.
18497 * lib/uniwidth/u16-strwidth.c: New file.
18498 * modules/uniwidth/u16-strwidth: New file.
18500 * tests/uniwidth/test-u8-strwidth.c: New file.
18501 * modules/uniwidth/u8-strwidth-tests: New file.
18503 * lib/uniwidth/u8-strwidth.c: New file.
18504 * modules/uniwidth/u8-strwidth: New file.
18506 * tests/uniwidth/test-u32-width.c: New file.
18507 * modules/uniwidth/u32-width-tests: New file.
18509 * lib/uniwidth/u32-width.c: New file.
18510 * modules/uniwidth/u32-width: New file.
18512 * tests/uniwidth/test-u16-width.c: New file.
18513 * modules/uniwidth/u16-width-tests: New file.
18515 * lib/uniwidth/u16-width.c: New file.
18516 * modules/uniwidth/u16-width: New file.
18518 * tests/uniwidth/test-u8-width.c: New file.
18519 * modules/uniwidth/u8-width-tests: New file.
18521 * lib/uniwidth/u8-width.c: New file.
18522 * modules/uniwidth/u8-width: New file.
18524 * tests/uniwidth/test-uc_width.c: New file.
18525 * modules/uniwidth/width-tests: New file.
18527 * lib/uniwidth/width.c: New file, from GNU libiconv.
18528 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
18529 * modules/uniwidth/width: New file.
18531 * lib/uniwidth.h: New file, from GNU libiconv.
18532 * modules/uniwidth/base: New file.
18534 2007-07-07 Bruno Haible <bruno@clisp.org>
18536 * lib/uniname.h: New file, from GNU gettext.
18537 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
18538 * lib/uniname/uninames.h: New file, from GNU gettext.
18539 * lib/uniname/uniname.c: New file, from GNU gettext.
18540 * tests/uniname/test-uninames.sh: New file.
18541 * tests/uniname/test-uninames.c: New file, from GNU gettext.
18542 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
18543 * modules/uniname/base: New file.
18544 * modules/uniname/uniname: New file.
18545 * modules/uniname/uniname-tests: New file.
18546 * MODULES.html.sh (Unicode string functions): Add the new modules.
18548 2007-07-06 Bruno Haible <bruno@clisp.org>
18550 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
18552 2007-07-06 Bruno Haible <bruno@clisp.org>
18554 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
18555 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
18556 includes <cygwin/sys_time.h> which includes <sys/select.h> which
18557 include <sys/time.h>.
18558 Reported by Eric Blake.
18560 2007-07-06 Eric Blake <ebb9@byu.net>
18562 Fix testing canonicalize on cygwin.
18563 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
18564 Revert patch from 2007-06-19.
18565 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
18566 canonicalize module is also in use.
18567 * tests/test-canonicalize.c: New file.
18568 * tests/test-canonicalize.sh: Likewise.
18569 * modules/canonicalize-tests: Likewise.
18571 2007-07-06 Jim Meyering <jim@meyering.net>
18573 * lib/getugroups.c (getugroups): Detect getgrent failure.
18574 Adjust comment to reflect reality: this function may return -1.
18576 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
18578 * build-aux/bootstrap (TP_URL,get_translations): Update to use
18579 the new TP address.
18581 (gnulib_mk): New variable.
18583 2007-07-05 Jim Meyering <jim@meyering.net>
18585 Don't let endgrent clobber errno, no matter how improbable.
18586 * lib/getugroups.c (getugroups): Save and restore errno around
18589 Close the group DB even when failing with 2^31 or more members.
18590 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
18592 2007-07-04 Jim Meyering <jim@meyering.net>
18594 * lib/getugroups.h: New file.
18595 * lib/getugroups.c: Include "getugroups.h".
18596 Remove uses of "register" keyword.
18597 Move local variable, "cp", down into scope where used.
18598 Give "username" parameter the "const" attribute.
18599 * modules/getugroups (Files): Add lib/getugroups.h
18601 2007-07-04 Karl Berry <karl@gnu.org>
18603 * MODULES.html.sh (func_all_modules): Complete rename of
18604 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
18606 2007-07-02 Bruno Haible <bruno@clisp.org>
18608 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
18609 mode, when inttypes.h comes from gnulib.
18610 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
18612 2007-07-02 Simon Josefsson <simon@josefsson.org>
18614 * NEWS: Mention lgpl module name change.
18616 * modules/lgpl-2.1: Renamed from lgpl.
18618 * NEWS: Mention gpl module name change.
18620 * modules/gpl-3.0: New file, based on gpl-2.0.
18622 * modules/gpl-2.0: Renamed from gpl.
18624 * modules/gpl: Fix filename, doc/gpl.texi is now found at
18627 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
18629 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
18630 #define __STDC_LIMIT_MACROS temporarily while including
18631 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
18632 Problem reported by Joel E. Denny in
18633 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
18635 2007-07-01 Bruno Haible <bruno@clisp.org>
18637 * lib/unistdio.h: New file.
18638 * lib/unistdio/u-asnprintf.h: New file.
18639 * lib/unistdio/u-asprintf.h: New file.
18640 * lib/unistdio/u-printf-args.c: New file.
18641 * lib/unistdio/u-printf-args.h: New file.
18642 * lib/unistdio/u-printf-parse.h: New file.
18643 * lib/unistdio/u-snprintf.h: New file.
18644 * lib/unistdio/u-sprintf.h: New file.
18645 * lib/unistdio/u-vasprintf.h: New file.
18646 * lib/unistdio/u-vsnprintf.h: New file.
18647 * lib/unistdio/u-vsprintf.h: New file.
18648 * lib/unistdio/ulc-asnprintf.c: New file.
18649 * lib/unistdio/ulc-asprintf.c: New file.
18650 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
18651 * lib/unistdio/ulc-printf-parse.c: New file.
18652 * lib/unistdio/ulc-snprintf.c: New file.
18653 * lib/unistdio/ulc-sprintf.c: New file.
18654 * lib/unistdio/ulc-vasnprintf.c: New file.
18655 * lib/unistdio/ulc-vasprintf.c: New file.
18656 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
18657 * lib/unistdio/ulc-vsnprintf.c: New file.
18658 * lib/unistdio/ulc-vsprintf.c: New file.
18659 * lib/unistdio/u8-asnprintf.c: New file.
18660 * lib/unistdio/u8-asprintf.c: New file.
18661 * lib/unistdio/u8-printf-parse.c: New file.
18662 * lib/unistdio/u8-snprintf.c: New file.
18663 * lib/unistdio/u8-sprintf.c: New file.
18664 * lib/unistdio/u8-vasnprintf.c: New file.
18665 * lib/unistdio/u8-vasprintf.c: New file.
18666 * lib/unistdio/u8-vsnprintf.c: New file.
18667 * lib/unistdio/u8-vsprintf.c: New file.
18668 * lib/unistdio/u8-u8-asnprintf.c: New file.
18669 * lib/unistdio/u8-u8-asprintf.c: New file.
18670 * lib/unistdio/u8-u8-snprintf.c: New file.
18671 * lib/unistdio/u8-u8-sprintf.c: New file.
18672 * lib/unistdio/u8-u8-vasnprintf.c: New file.
18673 * lib/unistdio/u8-u8-vasprintf.c: New file.
18674 * lib/unistdio/u8-u8-vsnprintf.c: New file.
18675 * lib/unistdio/u8-u8-vsprintf.c: New file.
18676 * lib/unistdio/u16-asnprintf.c: New file.
18677 * lib/unistdio/u16-asprintf.c: New file.
18678 * lib/unistdio/u16-printf-parse.c: New file.
18679 * lib/unistdio/u16-snprintf.c: New file.
18680 * lib/unistdio/u16-sprintf.c: New file.
18681 * lib/unistdio/u16-vasnprintf.c: New file.
18682 * lib/unistdio/u16-vasprintf.c: New file.
18683 * lib/unistdio/u16-vsnprintf.c: New file.
18684 * lib/unistdio/u16-vsprintf.c: New file.
18685 * lib/unistdio/u16-u16-asnprintf.c: New file.
18686 * lib/unistdio/u16-u16-asprintf.c: New file.
18687 * lib/unistdio/u16-u16-snprintf.c: New file.
18688 * lib/unistdio/u16-u16-sprintf.c: New file.
18689 * lib/unistdio/u16-u16-vasnprintf.c: New file.
18690 * lib/unistdio/u16-u16-vasprintf.c: New file.
18691 * lib/unistdio/u16-u16-vsnprintf.c: New file.
18692 * lib/unistdio/u16-u16-vsprintf.c: New file.
18693 * lib/unistdio/u32-asnprintf.c: New file.
18694 * lib/unistdio/u32-asprintf.c: New file.
18695 * lib/unistdio/u32-printf-parse.c: New file.
18696 * lib/unistdio/u32-snprintf.c: New file.
18697 * lib/unistdio/u32-sprintf.c: New file.
18698 * lib/unistdio/u32-vasnprintf.c: New file.
18699 * lib/unistdio/u32-vasprintf.c: New file.
18700 * lib/unistdio/u32-vsnprintf.c: New file.
18701 * lib/unistdio/u32-vsprintf.c: New file.
18702 * lib/unistdio/u32-u32-asnprintf.c: New file.
18703 * lib/unistdio/u32-u32-asprintf.c: New file.
18704 * lib/unistdio/u32-u32-snprintf.c: New file.
18705 * lib/unistdio/u32-u32-sprintf.c: New file.
18706 * lib/unistdio/u32-u32-vasnprintf.c: New file.
18707 * lib/unistdio/u32-u32-vasprintf.c: New file.
18708 * lib/unistdio/u32-u32-vsnprintf.c: New file.
18709 * lib/unistdio/u32-u32-vsprintf.c: New file.
18710 * tests/unistdio/test-ulc-asnprintf1.c: New file.
18711 * tests/unistdio/test-ulc-asnprintf1.h: New file.
18712 * tests/unistdio/test-ulc-printf1.h: New file.
18713 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
18714 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
18715 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
18716 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
18717 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
18718 * tests/unistdio/test-ulc-vasprintf1.c: New file.
18719 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
18720 * tests/unistdio/test-ulc-vsprintf1.c: New file.
18721 * tests/unistdio/test-u8-asnprintf1.c: New file.
18722 * tests/unistdio/test-u8-asnprintf1.h: New file.
18723 * tests/unistdio/test-u8-printf1.h: New file.
18724 * tests/unistdio/test-u8-vasnprintf1.c: New file.
18725 * tests/unistdio/test-u8-vasnprintf2.c: New file.
18726 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
18727 * tests/unistdio/test-u8-vasnprintf3.c: New file.
18728 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
18729 * tests/unistdio/test-u8-vasprintf1.c: New file.
18730 * tests/unistdio/test-u8-vsnprintf1.c: New file.
18731 * tests/unistdio/test-u8-vsprintf1.c: New file.
18732 * tests/unistdio/test-u16-asnprintf1.c: New file.
18733 * tests/unistdio/test-u16-asnprintf1.h: New file.
18734 * tests/unistdio/test-u16-printf1.h: New file.
18735 * tests/unistdio/test-u16-vasnprintf1.c: New file.
18736 * tests/unistdio/test-u16-vasnprintf2.c: New file.
18737 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
18738 * tests/unistdio/test-u16-vasnprintf3.c: New file.
18739 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
18740 * tests/unistdio/test-u16-vasprintf1.c: New file.
18741 * tests/unistdio/test-u16-vsnprintf1.c: New file.
18742 * tests/unistdio/test-u16-vsprintf1.c: New file.
18743 * tests/unistdio/test-u32-asnprintf1.c: New file.
18744 * tests/unistdio/test-u32-asnprintf1.h: New file.
18745 * tests/unistdio/test-u32-printf1.h: New file.
18746 * tests/unistdio/test-u32-vasnprintf1.c: New file.
18747 * tests/unistdio/test-u32-vasnprintf2.c: New file.
18748 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
18749 * tests/unistdio/test-u32-vasnprintf3.c: New file.
18750 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
18751 * tests/unistdio/test-u32-vasprintf1.c: New file.
18752 * tests/unistdio/test-u32-vsnprintf1.c: New file.
18753 * tests/unistdio/test-u32-vsprintf1.c: New file.
18754 * modules/unistdio/base: New file.
18755 * modules/unistdio/u-printf-args: New file.
18756 * modules/unistdio/ulc-asnprintf: New file.
18757 * modules/unistdio/ulc-asprintf: New file.
18758 * modules/unistdio/ulc-fprintf: New file.
18759 * modules/unistdio/ulc-printf-parse: New file.
18760 * modules/unistdio/ulc-snprintf: New file.
18761 * modules/unistdio/ulc-sprintf: New file.
18762 * modules/unistdio/ulc-vasnprintf: New file.
18763 * modules/unistdio/ulc-vasprintf: New file.
18764 * modules/unistdio/ulc-vfprintf: New file.
18765 * modules/unistdio/ulc-vsnprintf: New file.
18766 * modules/unistdio/ulc-vsprintf: New file.
18767 * modules/unistdio/u8-asnprintf: New file.
18768 * modules/unistdio/u8-asprintf: New file.
18769 * modules/unistdio/u8-printf-parse: New file.
18770 * modules/unistdio/u8-snprintf: New file.
18771 * modules/unistdio/u8-sprintf: New file.
18772 * modules/unistdio/u8-vasnprintf: New file.
18773 * modules/unistdio/u8-vasprintf: New file.
18774 * modules/unistdio/u8-vsnprintf: New file.
18775 * modules/unistdio/u8-vsprintf: New file.
18776 * modules/unistdio/u8-u8-asnprintf: New file.
18777 * modules/unistdio/u8-u8-asprintf: New file.
18778 * modules/unistdio/u8-u8-snprintf: New file.
18779 * modules/unistdio/u8-u8-sprintf: New file.
18780 * modules/unistdio/u8-u8-vasnprintf: New file.
18781 * modules/unistdio/u8-u8-vasprintf: New file.
18782 * modules/unistdio/u8-u8-vsnprintf: New file.
18783 * modules/unistdio/u8-u8-vsprintf: New file.
18784 * modules/unistdio/u16-asnprintf: New file.
18785 * modules/unistdio/u16-asprintf: New file.
18786 * modules/unistdio/u16-printf-parse: New file.
18787 * modules/unistdio/u16-snprintf: New file.
18788 * modules/unistdio/u16-sprintf: New file.
18789 * modules/unistdio/u16-vasnprintf: New file.
18790 * modules/unistdio/u16-vasprintf: New file.
18791 * modules/unistdio/u16-vsnprintf: New file.
18792 * modules/unistdio/u16-vsprintf: New file.
18793 * modules/unistdio/u16-u16-asnprintf: New file.
18794 * modules/unistdio/u16-u16-asprintf: New file.
18795 * modules/unistdio/u16-u16-snprintf: New file.
18796 * modules/unistdio/u16-u16-sprintf: New file.
18797 * modules/unistdio/u16-u16-vasnprintf: New file.
18798 * modules/unistdio/u16-u16-vasprintf: New file.
18799 * modules/unistdio/u16-u16-vsnprintf: New file.
18800 * modules/unistdio/u16-u16-vsprintf: New file.
18801 * modules/unistdio/u32-asnprintf: New file.
18802 * modules/unistdio/u32-asprintf: New file.
18803 * modules/unistdio/u32-printf-parse: New file.
18804 * modules/unistdio/u32-snprintf: New file.
18805 * modules/unistdio/u32-sprintf: New file.
18806 * modules/unistdio/u32-vasnprintf: New file.
18807 * modules/unistdio/u32-vasprintf: New file.
18808 * modules/unistdio/u32-vsnprintf: New file.
18809 * modules/unistdio/u32-vsprintf: New file.
18810 * modules/unistdio/u32-u32-asnprintf: New file.
18811 * modules/unistdio/u32-u32-asprintf: New file.
18812 * modules/unistdio/u32-u32-snprintf: New file.
18813 * modules/unistdio/u32-u32-sprintf: New file.
18814 * modules/unistdio/u32-u32-vasnprintf: New file.
18815 * modules/unistdio/u32-u32-vasprintf: New file.
18816 * modules/unistdio/u32-u32-vsnprintf: New file.
18817 * modules/unistdio/u32-u32-vsprintf: New file.
18818 * modules/unistdio/ulc-asnprintf-tests: New file.
18819 * modules/unistdio/ulc-vasnprintf-tests: New file.
18820 * modules/unistdio/ulc-vasprintf-tests: New file.
18821 * modules/unistdio/ulc-vsnprintf-tests: New file.
18822 * modules/unistdio/ulc-vsprintf-tests: New file.
18823 * modules/unistdio/u8-asnprintf-tests: New file.
18824 * modules/unistdio/u8-vasnprintf-tests: New file.
18825 * modules/unistdio/u8-vasprintf-tests: New file.
18826 * modules/unistdio/u8-vsnprintf-tests: New file.
18827 * modules/unistdio/u8-vsprintf-tests: New file.
18828 * modules/unistdio/u16-asnprintf-tests: New file.
18829 * modules/unistdio/u16-vasnprintf-tests: New file.
18830 * modules/unistdio/u16-vasprintf-tests: New file.
18831 * modules/unistdio/u16-vsnprintf-tests: New file.
18832 * modules/unistdio/u16-vsprintf-tests: New file.
18833 * modules/unistdio/u32-asnprintf-tests: New file.
18834 * modules/unistdio/u32-vasnprintf-tests: New file.
18835 * modules/unistdio/u32-vasprintf-tests: New file.
18836 * modules/unistdio/u32-vsnprintf-tests: New file.
18837 * modules/unistdio/u32-vsprintf-tests: New file.
18838 * MODULES.html.sh (Unicode string functions): Add the new modules.
18840 2007-07-01 Bruno Haible <bruno@clisp.org>
18842 * lib/sprintf.c (sprintf): Limit the available length estimation,
18843 to avoid address wraparound.
18844 * lib/vsprintf.c (vsprintf): Likewise.
18845 * modules/sprintf-posix (Dependencies): Add stdint.
18846 * modules/vsprintf-posix (Dependencies): Likewise.
18848 2007-07-01 Bruno Haible <bruno@clisp.org>
18850 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
18851 Windows PATH as well. Conservative double-quoting. Comments.
18853 2007-07-01 Bruno Haible <bruno@clisp.org>
18854 Eric Blake <ebb9@byu.net>
18855 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18857 * gnulib-tool (self_abspathname): Fix algorithm to cope with
18858 empty components in $PATH, denoting '.'.
18860 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18862 * gnulib-tool: Fix indentation.
18863 (func_create_megatestdir): Likewise.
18864 Report by Bruno Haible.
18866 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18868 Sync from Automake.
18869 * build-aux/gnupload: Fix shell portability issues with for loops.
18870 Report by Karl Berry.
18872 2007-06-29 Simon Josefsson <simon@josefsson.org>
18874 * build-aux/maint.mk (POURL): Use translationproject.org.
18876 2007-06-27 Simon Josefsson <simon@josefsson.org>
18877 Bruno Haible <bruno@clisp.org>
18879 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
18880 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
18881 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
18882 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
18883 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
18885 2007-06-27 Bruno Haible <bruno@clisp.org>
18887 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
18888 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
18890 2007-06-26 Karl Berry <karl@gnu.org>
18892 * MODULES.html.sh: remove xreadlink-with-size.
18894 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
18896 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
18897 method that I hope also handles the double-include problem noted
18899 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
18901 2007-06-23 Bruno Haible <bruno@clisp.org>
18903 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18904 Don't let the 'mostlyclean' target fail if the last subdirectory could
18906 Reported by Karl Berry.
18908 2007-06-23 Bruno Haible <bruno@clisp.org>
18910 * gnulib-tool (echo): Add a speedier workaround for ksh.
18911 * tests/test-echo.sh: Likewise.
18913 2007-06-23 Bruno Haible <bruno@clisp.org>
18915 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
18916 * tests/test-echo.sh: Likewise.
18918 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18920 * gnulib-tool (IFS): Initialize early, so we don't set it to
18922 (self_abspathname): Rewrite algorithm to set it, reindent.
18923 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
18924 (func_create_megatestdir): Merge some sed scripts.
18926 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
18928 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
18929 exposed by Sun Studio 11 cc on Solaris 8.
18931 2007-06-22 Bruno Haible <bruno@clisp.org>
18933 * gnulib-tool (echo): Ensure the echo primitive does not interpret
18935 * tests/test-echo.sh: New file.
18937 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18939 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
18940 simplify `sed_replace_build_aux' scripts, they are portable but
18941 echoing them with `echo' is not.
18942 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
18944 2007-06-21 Karl Berry <karl@gnu.org>
18946 * config/srclist.txt: guess we can't handle the licenses via
18947 srclist at the moment.
18949 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
18951 * MODULES.html.sh: Add include_next.
18952 * modules/include_next: New file.
18954 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
18956 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
18958 (gl_CHECK_NEXT_HEADERS): New macro.
18959 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
18960 the obsolescent gl_ABSOLUTE_HEADER.
18961 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
18962 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
18963 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
18964 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18965 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18966 * m4/math_h.m4 (gl_MATH_H): Likewise.
18967 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
18968 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18969 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
18970 * m4/stdint.m4 (gl_STDINT_H): Likewise.
18971 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18972 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
18973 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
18974 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18975 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18976 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
18977 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
18978 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
18979 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
18980 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18981 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18982 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
18983 * m4/inttypes.m4 (gl_INTTYPES_H): Define
18984 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
18985 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
18986 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
18987 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
18988 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
18989 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
18990 * lib/float_.h: Likewise.
18991 * lib/inttypes_.h: Likewise.
18992 * lib/math_.h: Likewise.
18993 * lib/search_.h: Likewise.
18994 * lib/signal_.h: Likewise.
18995 * lib/stdint_.h: Likewise.
18996 * lib/stdio_.h: Likewise.
18997 * lib/stdlib_.h: Likewise.
18998 * lib/string_.h: Likewise.
18999 * lib/sys_stat_.h: Likewise.
19000 * lib/sys_time_.h: Likewise.
19001 * lib/time_.h: Likewise.
19002 * lib/unistd_.h: Likewise.
19003 * lib/wchar_.h: Likewise.
19004 * lib/wctype_.h: Likewise.
19005 * lib/dirent_.h: Likewise.
19006 * lib/iconv_.h: Likewise.
19007 * lib/locale_.h: Likewise.
19008 * lib/netinet_in_.h: Likewise.
19009 * lib/sys_select_.h: Likewise.
19010 * lib/sys_socket_.h: Likewise.
19011 * lib/sysexits_.h: Likewise.
19012 * modules/fcntl (Depends-on): Depend on include_next, not
19014 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
19015 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
19016 * modules/fchdir: Likewise.
19017 * modules/float: Likewise.
19018 * modules/iconv_open: Likewise.
19019 * modules/inttypes: Likewise.
19020 * modules/locale: Likewise.
19021 * modules/math: Likewise.
19022 * modules/netinet_in: Likewise.
19023 * modules/search: Likewise.
19024 * modules/signal: Likewise.
19025 * modules/stdint: Likewise.
19026 * modules/stdio: Likewise.
19027 * modules/stdlib: Likewise.
19028 * modules/string: Likewise.
19029 * modules/sys_select: Likewise.
19030 * modules/sys_socket: Likewise.
19031 * modules/sys_stat: Likewise.
19032 * modules/sys_time: Likewise.
19033 * modules/sysexits: Likewise.
19034 * modules/time: Likewise.
19035 * modules/unistd: Likewise.
19036 * modules/wchar: Likewise.
19037 * modules/wctype: Likewise.
19038 * modules/sys_stat: Change maintainer to "all".
19039 * modules/unistd: Likewise.
19041 2007-06-20 Karl Berry <karl@gnu.org>
19043 * config/srclist.txt: track www changes in license files.
19045 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
19047 * build-aux/bootstrap: Remove stray dot.
19048 Make sure build_aux settings are honored when linking
19049 gnulib_extra_files.
19051 2007-06-19 Eric Blake <ebb9@byu.net>
19053 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
19054 Allow compilation on cygwin.
19056 2007-06-19 Jim Meyering <jim@meyering.net>
19058 xreadlink-with-size: Remove module. No longer used.
19059 Ex-callers now use xreadlink or mreadlink-with-size.
19060 * modules/xreadlink-with-size: Remove module.
19061 * lib/xreadlink-with-size.c: Remove file.
19062 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
19063 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
19064 just before the function definition *is* accurate.
19066 Eliminate one way canonicalize_filename_mode could exit.
19067 * lib/canonicalize.c (canonicalize_filename_mode):
19068 Use mreadlink_with_size, not xreadlink_with_size.
19070 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
19072 Detect porting problems to FreeBSD/arm, which has time_t wider than
19073 long int. Original problem reported for GNU diff by Xin Li in
19074 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
19075 * modules/getdate (Depends-on): Add intprops, verify.
19076 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
19077 is an integer type no wider than long int.
19079 2007-06-18 Jim Meyering <jim@meyering.net>
19081 New module: mreadlink-with-size.
19082 * MODULES.html.sh: Add mreadlink-with-size.
19083 * modules/mreadlink-with-size: New module
19084 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
19085 not xreadlink-with-size.
19086 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
19088 2007-06-16 Bruno Haible <bruno@clisp.org>
19090 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
19091 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
19092 Reported by Gary V. Vaughan <gary@gnu.org>.
19094 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
19096 Revamp lchown so that it lives in unistd.h where it belongs.
19097 * lib/lchown.h: Remove.
19098 * lib/dirchownmod.c: Don't include lib/lchown.h.
19099 * lib/fchownat.c: Likewise.
19100 * lib/openat.c: Likewise.
19101 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
19102 does not follow symlinks.
19103 (EOPNOTSUPP): Define if not defined.
19104 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
19106 (lchown): New decl.
19107 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
19108 Do not check for lchown decl.
19109 Set REPLACE_LCHOWN.
19110 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
19112 * modules/chown: Make it clear it follows symlinks.
19113 * modules/lchown: Make it clear it doesn't follow symlinks.
19114 (Files): Remove lib/lchown.h
19115 (Depends-on): Add unistd.
19116 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
19117 (Include): Include <unistd.h>, not "lchown.h".
19118 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
19121 2007-06-15 Jim Meyering <jim@meyering.net>
19123 Change license (GPL to LGPL) of fsusage and dependents.
19124 * modules/fsusage (License): Change to LGPL.
19125 * modules/full-read (License): Likewise.
19126 * modules/full-write (License): Likewise.
19127 * modules/safe-read (License): Likewise.
19128 * modules/safe-write (License): Likewise.
19130 2007-06-14 Ben Pfaff <blp@gnu.org>
19132 Missing part of allocsa -> malloca transition.
19133 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
19136 2007-06-12 Bruno Haible <bruno@clisp.org>
19138 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
19139 to ia64, x86_64, i386.
19140 Reported by Eric Blake.
19142 2007-06-12 Bruno Haible <bruno@clisp.org>
19144 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
19145 cross-compiling to x86_64.
19147 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
19149 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
19150 glitch reported by Ralf Wildenhues in
19151 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
19153 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
19156 2007-06-11 Bruno Haible <bruno@clisp.org>
19158 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
19159 replacement string.
19160 Reported by Eric Blake.
19162 2007-06-10 Bruno Haible <bruno@clisp.org>
19164 Prepare vasnprintf code for use with Unicode strings.
19165 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
19166 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
19168 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
19169 a_u32_string variants.
19170 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
19171 * lib/printf-args.c: Don't include config.h and the specification
19172 header if PRINTF_FETCHARGS is already defined.
19173 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
19174 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
19175 TYPE_U16_STRING, TYPE_U32_STRING.
19176 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
19177 u16_directive, u16_directives, u32_directive, u32_directives): New
19179 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
19181 * lib/printf-parse.c: Don't include config.h and the specification
19182 header if PRINTF_PARSE is already defined. Eliminate the set of
19183 parameters for WIDE_CHAR_VERSION; the user of this file must provide
19184 them now. Include c-ctype.h.
19185 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
19186 directive and CHAR_T_ONLY_ASCII.
19187 * lib/vasnprintf.c: Don't include config.h and the specification header
19188 if VASNPRINTF is already defined.
19189 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
19190 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
19191 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
19192 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
19193 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
19194 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
19196 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
19197 pad_ourselves also in this case, with the 'c' and 's' directives, and
19198 with a different notion of "width".
19199 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
19201 2007-06-10 Bruno Haible <bruno@clisp.org>
19203 * modules/unistr/u32-mbsnlen: New file.
19204 * lib/unistr/u32-mbsnlen.c: New file.
19206 * modules/unistr/u16-mbsnlen: New file.
19207 * lib/unistr/u16-mbsnlen.c: New file.
19209 * modules/unistr/u8-mbsnlen: New file.
19210 * lib/unistr/u8-mbsnlen.c: New file.
19212 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
19215 2007-06-10 Bruno Haible <bruno@clisp.org>
19217 * lib/string_.h (mbsnlen): New declaration.
19218 * lib/mbsnlen.c: New file.
19219 * m4/mbsnlen.m4: New file.
19220 * modules/mbsnlen: New file.
19221 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
19222 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
19223 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
19225 2007-06-10 Bruno Haible <bruno@clisp.org>
19227 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
19229 2007-06-10 Bruno Haible <bruno@clisp.org>
19231 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
19232 * lib/mbuiter.h: Likewise.
19234 2007-06-10 Bruno Haible <bruno@clisp.org>
19236 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
19239 2007-06-10 Karl Berry <karl@gnu.org>
19241 * config/srclist.txt: remove gettext entries, Bruno prefers
19242 to update individually.
19244 2007-06-10 Bruno Haible <bruno@clisp.org>
19246 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
19247 'maxlen'. Ensure only length + width bytes are allocated, not
19248 length + 1 + width.
19250 2007-06-09 Bruno Haible <bruno@clisp.org>
19252 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
19253 (CHAR_T): Remove macro.
19254 (VASNPRINTF): Update.
19256 2007-06-09 Bruno Haible <bruno@clisp.org>
19258 * MODULES.html.sh (Unicode string functions): Add the new modules.
19260 * modules/uniconv/u32-conv-to-enc: New file.
19261 * lib/uniconv/u32-conv-to-enc.c: New file.
19262 * modules/uniconv/u32-conv-to-enc-tests: New file.
19263 * tests/uniconv/test-u32-conv-to-enc.c: New file.
19265 * modules/uniconv/u16-conv-to-enc: New file.
19266 * lib/uniconv/u16-conv-to-enc.c: New file.
19267 * lib/uniconv/u-conv-to-enc.h: New file.
19268 * modules/uniconv/u16-conv-to-enc-tests: New file.
19269 * tests/uniconv/test-u16-conv-to-enc.c: New file.
19271 * modules/uniconv/u8-conv-to-enc: New file.
19272 * lib/uniconv/u8-conv-to-enc.c: New file.
19273 * modules/uniconv/u8-conv-to-enc-tests: New file.
19274 * tests/uniconv/test-u8-conv-to-enc.c: New file.
19276 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
19277 u32_conv_to_encoding): New declarations.
19279 2007-06-09 Bruno Haible <bruno@clisp.org>
19281 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
19283 2007-06-09 Bruno Haible <bruno@clisp.org>
19285 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
19286 * modules/malloca: Renamed from modules/allocsa, updated.
19287 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
19288 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
19289 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
19290 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
19291 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
19292 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
19293 * modules/xmalloca: Renamed from modules/xallocsa, updated.
19294 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
19295 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
19296 * modules/c-strcasestr (Depends-on): Update.
19297 * lib/c-strcasestr.c: Update.
19298 * modules/c-strstr (Depends-on): Update.
19299 * lib/c-strstr.c: Update.
19300 * modules/canonicalize-lgpl (Depends-on): Update.
19301 * lib/canonicalize-lgpl.c: Update.
19302 * modules/clean-temp (Depends-on): Update.
19303 * lib/clean-temp.c: Update.
19304 * modules/csharpcomp (Depends-on): Update.
19305 * lib/csharpcomp.c: Update.
19306 * modules/csharpexec (Depends-on): Update.
19307 * lib/csharpexec.c: Update.
19308 * modules/javacomp (Depends-on): Update.
19309 * lib/javacomp.c: Update.
19310 * modules/javaexec (Depends-on): Update.
19311 * lib/javaexec.c: Update.
19312 * modules/mbscasestr (Depends-on): Update.
19313 * lib/mbscasestr.c: Update.
19314 * modules/mbsstr (Depends-on): Update.
19315 * lib/mbsstr.c: Update.
19316 * modules/setenv (Depends-on): Update.
19317 * lib/setenv.c: Update.
19318 * modules/strcasestr (Depends-on): Update.
19319 * lib/strcasestr.c: Update.
19320 * modules/striconveha (Depends-on): Update.
19321 * lib/striconveha.c: Update.
19322 * modules/relocatable-prog-wrapper (Files): Update.
19323 * lib/relocwrapper.c: Update.
19324 * build-aux/install-reloc: Update.
19325 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
19327 2007-06-08 Bruno Haible <bruno@clisp.org>
19330 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
19331 * lib/fpurge.c (fpurge): Likewise.
19332 * lib/freading.c (freading): Likewise.
19333 * lib/fseeko.c (rpl_fseeko): Likewise.
19334 * lib/fseterr.c (fseterr): Likewise.
19335 * lib/fwriting.c (fwriting): Likewise.
19336 * tests/test-fflush.c (main): Avoid a failure on uClibc.
19338 2007-06-08 Bruno Haible <bruno@clisp.org>
19340 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
19341 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
19342 * modules/gettext (Files): Add m4/intlmacosx.m4.
19344 2007-06-07 Bruno Haible <bruno@clisp.org>
19346 * modules/localename-tests: New file.
19347 * tests/test-localename.c: New file.
19349 New module 'localename'.
19350 * lib/localename.h: New file.
19351 * lib/localename.c: New file, from GNU gettext.
19352 * m4/localename.m4: New file.
19353 * modules/localename: New file.
19355 2007-06-07 Bruno Haible <bruno@clisp.org>
19357 Work around the lack of <wchar.h> on some builds of uClibc.
19358 * doc/headers/wchar.texi: Update.
19359 * lib/wchar_.h: Include <wchar.h> only if it exists.
19360 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
19361 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
19362 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
19364 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
19365 * modules/mbfile (Depends-on): Add wchar.
19366 * modules/mbiter (Depends-on): Likewise.
19367 * modules/mbuiter (Depends-on): Likewise.
19368 Reported by Simon Josefsson.
19370 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
19372 Work around problem reported by Steven M. Schweda in
19373 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
19374 Tru64 5.1B with the Compaq compiler environment installed declares
19375 an 'isblank' function but does not define it in the C library.
19376 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
19377 * lib/regex_internal.h (isblank): Likewise.
19378 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
19379 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19381 2007-06-05 Bruno Haible <bruno@clisp.org>
19383 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
19385 * modules/printf-safe: New file.
19386 * modules/fprintf-posix (Depends-on): Add printf-safe.
19387 * modules/printf-posix (Depends-on): Likewise.
19388 * modules/snprintf-posix (Depends-on): Likewise.
19389 * modules/sprintf-posix (Depends-on): Likewise.
19390 * modules/vasnprintf-posix (Depends-on): Likewise.
19391 * modules/vasprintf-posix (Depends-on): Likewise.
19392 * modules/vfprintf-posix (Depends-on): Likewise.
19393 * modules/vprintf-posix (Depends-on): Likewise.
19394 * modules/vsnprintf-posix (Depends-on): Likewise.
19395 * modules/vsprintf-posix (Depends-on): Likewise.
19396 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
19397 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
19398 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
19399 "no" on i386, x86_64, ia64.
19400 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
19401 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19402 on i386, x86_64, ia64.
19403 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
19404 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19405 on i386, x86_64, ia64.
19406 * tests/test-vasnprintf-posix.c: Include float.h.
19407 (LDBL80_WORDS): New macro.
19408 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19409 on i386, x86_64, ia64.
19410 * tests/test-vasprintf-posix.c: Include float.h.
19411 (LDBL80_WORDS): New macro.
19412 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19413 on i386, x86_64, ia64.
19414 * tests/test-snprintf-posix.c: Include float.h.
19415 * tests/test-sprintf-posix.c: Likewise.
19416 * tests/test-vsnprintf-posix.c: Likewise.
19417 * tests/test-vsprintf-posix.c: Likewise.
19419 2007-06-05 Bruno Haible <bruno@clisp.org>
19421 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
19422 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
19423 non-IEEE numbers on i386, x86_64, ia64.
19424 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
19425 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
19426 * tests/test-isnanl.h: Include float.h.
19427 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
19429 2007-06-05 Bruno Haible <bruno@clisp.org>
19431 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
19432 also the %a / %A. Handle the %a / %A code before this extra handling.
19434 2007-06-05 Bruno Haible <bruno@clisp.org>
19436 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
19437 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
19439 2007-06-05 Bruno Haible <bruno@clisp.org>
19441 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
19442 typo in variable name.
19444 2007-06-05 Eric Blake <ebb9@byu.net>
19446 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
19447 Reported by Simon Josefsson.
19449 2007-06-04 Bruno Haible <bruno@clisp.org>
19451 Avoid test failures on some PowerPC platforms.
19452 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
19453 Define differently for PowerPC.
19454 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
19455 Reported by Gary V. Vaughan <gary@gnu.org>.
19457 2007-06-02 Bruno Haible <bruno@clisp.org>
19459 Fix test-stdint failure on FreeBSD/ia64.
19460 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
19461 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
19462 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
19463 * doc/headers/stdint.texi: Update.
19465 2007-06-01 Bruno Haible <bruno@clisp.org>
19467 * tests/test-binary-io.c (main): Pass a third argument to open().
19468 Reported by Gary V. Vaughan <gary@gnu.org>.
19470 2007-06-01 Bruno Haible <bruno@clisp.org>
19472 * doc/functions/frexpl.texi: Update for mingw.
19474 2007-06-01 Bruno Haible <bruno@clisp.org>
19476 * tests/test-lseek.c (main): Disable test of errno for invalid third
19478 * doc/functions/lseek.texi: Update.
19479 Reported by Gary V. Vaughan <gary@gnu.org>.
19481 2007-05-28 Bruno Haible <bruno@clisp.org>
19483 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
19485 2007-05-31 Eric Blake <ebb9@byu.net>
19487 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
19490 2007-05-30 Eric Blake <ebb9@byu.net>
19491 and Bruno Haible <bruno@clisp.org>
19493 Work around mingw test failures exposed by m4-1.4.9b.
19494 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
19495 * tests/test-unistd.c: Disable uid_t and git_t tests for the
19498 2007-05-30 Bruno Haible <bruno@clisp.org>
19500 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
19501 assuming that they are closed. Needed on HP-UX 11.
19503 2007-05-29 Bruno Haible <bruno@clisp.org>
19505 Fix a problem with #include_next.
19506 * lib/dirent_.h: Split the double-inclusion guard.
19507 * lib/fcntl_.h: Likewise.
19508 * lib/float_.h: Likewise.
19509 * lib/iconv_.h: Likewise.
19510 * lib/inttypes_.h: Likewise.
19511 * lib/locale_.h: Likewise.
19512 * lib/math_.h: Likewise.
19513 * lib/netinet_in_.h: Likewise.
19514 * lib/search_.h: Likewise.
19515 * lib/signal_.h: Likewise.
19516 * lib/stdint_.h: Likewise.
19517 * lib/stdio_.h: Likewise.
19518 * lib/stdlib_.h: Likewise.
19519 * lib/string_.h: Likewise.
19520 * lib/sys_select_.h: Likewise.
19521 * lib/sys_socket_.h: Likewise.
19522 * lib/sys_stat_.h: Likewise.
19523 * lib/sys_time_.h: Likewise.
19524 * lib/sysexits_.h: Likewise.
19525 * lib/time_.h: Likewise.
19526 * lib/unistd_.h: Likewise.
19527 * lib/wchar_.h: Likewise.
19528 * lib/wctype_.h: Likewise.
19530 2007-05-29 Bruno Haible <bruno@clisp.org>
19532 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
19535 2007-05-29 Bruno Haible <bruno@clisp.org>
19537 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
19539 Reported by Eric Blake.
19541 2007-05-29 Bruno Haible <bruno@clisp.org>
19543 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
19546 2007-05-29 Eric Blake <ebb9@byu.net>
19547 Bruno Haible <bruno@clisp.org>
19549 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
19552 2007-05-28 Eric Blake <ebb9@byu.net>
19554 * modules/closein-tests (test_closein_LDADD): Support test on
19555 cygwin with libtool.
19557 2007-05-28 Bruno Haible <bruno@clisp.org>
19559 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
19560 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
19561 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
19562 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
19563 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
19564 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
19565 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19566 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19567 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19569 2007-05-28 Eric Blake <ebb9@byu.net>
19571 Unconditionally include <config.h> in unit tests.
19572 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
19573 * tests/test-allocsa.c, tests/test-arcfour.c,
19574 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
19575 tests/test-array_list.c, tests/test-array_oset.c,
19576 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
19577 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
19578 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
19579 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
19580 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
19581 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
19582 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
19583 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
19584 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
19585 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
19586 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
19587 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
19588 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
19589 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
19590 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
19591 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
19592 test-md5.c, test-memmem.c, test-printf-posix.c,
19593 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
19594 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
19595 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
19596 test-strcasestr.c, test-striconv.c, test-striconveh.c,
19597 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
19598 test-vasnprintf-posix2.c, test-vasnprintf.c,
19599 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
19600 test-vfprintf-posix.c, test-vprintf-posix.c,
19601 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
19602 test-xvasprintf.c: Likewise.
19604 2007-05-28 Bruno Haible <bruno@clisp.org>
19606 * gnulib-tool (func_import): Remember the --with-tests command-line
19607 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
19608 Reported by Eric Blake.
19610 2007-05-28 Bruno Haible <bruno@clisp.org>
19612 * modules/ftell-tests: New file.
19613 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
19614 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
19616 * lib/ftell.c: New file.
19617 * modules/ftell: New file.
19618 * m4/ftell.m4: New file.
19619 * doc/functions/ftell.texi: Update.
19620 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
19622 * lib/stdio_.h (rpl_ftell): New declaration.
19623 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
19626 2007-05-28 Eric Blake <ebb9@byu.net>
19628 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
19630 2007-05-28 Bruno Haible <bruno@clisp.org>
19632 * modules/fseek-tests: New file.
19633 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
19634 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
19636 * lib/fseek.c: New file.
19637 * modules/fseek: New file.
19638 * m4/fseek.m4: New file.
19639 * doc/functions/fseek.texi: Update.
19640 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
19642 * lib/stdio_.h (rpl_fseek): New declaration.
19643 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
19646 2007-05-28 Bruno Haible <bruno@clisp.org>
19648 * lib/stdio_.h (fflush): More comments.
19650 2007-05-28 Bruno Haible <bruno@clisp.org>
19652 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
19655 2007-05-28 Eric Blake <ebb9@byu.net>
19657 Improve lseek module.
19658 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
19659 * lib/unistd_.h (lseek): Scale back link warning message.
19660 * tests/test-lseek.c: Beef up test.
19661 * tests/test-lseek.sh: Exercise more facets of lseek.
19662 Reported by Bruno Haible.
19664 2007-05-28 Bruno Haible <bruno@clisp.org>
19666 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
19669 2007-05-27 Bruno Haible <bruno@clisp.org>
19671 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
19673 2007-05-27 Bruno Haible <bruno@clisp.org>
19675 * modules/openmp: New file.
19676 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
19679 2007-05-26 Bruno Haible <bruno@clisp.org>
19681 * modules/chdir-long (Depends-on): Add fchdir.
19682 * modules/chdir-safer (Depends-on): Likewise.
19683 * modules/fts (Depends-on): Likewise.
19684 * modules/fts-lgpl (Depends-on): Likewise.
19685 * modules/openat (Depends-on): Likewise.
19686 * modules/savewd (Depends-on): Likewise.
19688 2007-05-24 Eric Blake <ebb9@byu.net>
19690 Fix lseek on mingw.
19691 * modules/lseek: New module.
19692 * m4/lseek.m4: New file.
19693 * lib/lseek.c: New file.
19694 * modules/lseek-tests: New file.
19695 * tests/test-lseek.c: New file.
19696 * tests/test-lseek.sh: New file.
19697 * MODULES.html.sh: Document lseek module.
19698 * modules/fflush (Depends-on): Add lseek, fseeko.
19699 * modules/fseeko (Depends-on): Likewise.
19700 * modules/ftello (Depends-on): Likewise.
19701 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
19703 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
19705 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
19706 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
19707 * lib/ftello.c (rpl_ftello): Likewise.
19708 * tests/test-fseeko.c (main): Test this.
19709 * tests/test-fseeko.sh: Likewise.
19710 * tests/test-ftello.c (main): Likewise.
19711 * tests/test-ftello.sh: Likewise.
19712 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
19713 implies replacing fseek.
19714 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
19716 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
19717 * modules/unistd (Makefile.am): Likewise.
19718 * lib/unistd_.h (lseek): Declare a replacement.
19719 * doc/functions/lseek.texi (lseek): Document this fix.
19720 * doc/functions/fseek.texi (fseek): Likewise.
19721 * doc/functions/ftell.texi (ftell): Likewise.
19723 2007-05-24 Bruno Haible <bruno@clisp.org>
19725 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
19726 in the printed representation of a NaN.
19727 * tests/test-vasprintf-posix.c (test_function): Likewise.
19728 * tests/test-snprintf-posix.h (test_function): Likewise.
19729 * tests/test-sprintf-posix.h (test_function): Likewise.
19730 Reported by Eric Blake.
19732 2007-05-23 Eric Blake <ebb9@byu.net>
19734 Fix fseeko/ftello on cygwin 1.5.24.
19735 * doc/functions/fseeko.texi (fseeko): Document the fix.
19736 * doc/functions/ftello.texi (ftello): Document the fix.
19737 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
19738 * doc/functions/stdout.text (stdout): New file.
19739 * doc/functions/stderr.text (stderr): New file.
19740 * doc/gnulib.texi (Function Substitutes): Use new files.
19741 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
19743 * tests/test-ftello.c (main): Likewise for ftello.
19744 * tests/test-fseeko.sh: New file.
19745 * tests/test-ftello.sh: New file.
19746 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
19747 with seekable stdin.
19748 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
19749 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
19750 (gl_REPLACE_FSEEKO): New macro.
19751 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
19752 * modules/fseeko (Files): Distribute fseeko.c.
19753 * modules/ftello (Files): Distribute ftello.c.
19754 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
19756 * lib/ftello.c (rpl_ftello): New file.
19757 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
19759 (gl_STDIN_LARGE_OFFSET): New macro.
19760 * modules/stdio (Makefile.am): Perform the replacement.
19761 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
19763 2007-05-23 Bruno Haible <bruno@clisp.org>
19765 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
19766 GNULIB_POSIXCHECK is defined.
19768 2007-05-21 Bruno Haible <bruno@clisp.org>
19770 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
19771 Check also the output for NaN arguments. When cross-compiling, guess
19773 * lib/vasnprintf.c: Update comments.
19774 * tests/test-vasnprintf-posix.c (strisnan): New function.
19775 (test_function): Use it.
19776 * tests/test-vasprintf-posix.c (strisnan): New function.
19777 (test_function): Use it.
19778 * tests/test-snprintf-posix.h (strisnan): New function.
19779 (test_function): Use it.
19780 * tests/test-sprintf-posix.h (strisnan): New function.
19781 (test_function): Use it.
19782 Reported by Eric Blake.
19784 2007-05-20 Bruno Haible <bruno@clisp.org>
19786 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
19787 numbers that fails on BeOS.
19788 * doc/functions/frexpl.texi: Update.
19790 2007-05-20 Jim Meyering <jim@meyering.net>
19792 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
19793 forced upon us by glibc-2.6.
19795 2007-05-20 Bruno Haible <bruno@clisp.org>
19797 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
19798 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
19799 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
19800 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
19801 NEED_PRINTF_INFINITE.
19802 (is_infinitel): New function.
19803 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
19804 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
19805 gl_PREREQ_VASNPRINTF_INFINITE.
19806 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
19807 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19808 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
19809 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
19810 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
19811 gl_PREREQ_VASNPRINTF_INFINITE.
19812 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19813 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19814 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19815 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19816 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19817 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19818 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19819 * doc/functions/fprintf.texi: Update.
19820 * doc/functions/printf.texi: Update.
19821 * doc/functions/snprintf.texi: Update.
19822 * doc/functions/sprintf.texi: Update.
19823 * doc/functions/vfprintf.texi: Update.
19824 * doc/functions/vprintf.texi: Update.
19825 * doc/functions/vsnprintf.texi: Update.
19826 * doc/functions/vsprintf.texi: Update.
19828 2007-05-20 Bruno Haible <bruno@clisp.org>
19830 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
19831 was not found in libc.
19832 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
19834 2007-05-20 Bruno Haible <bruno@clisp.org>
19836 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
19837 printed as "-nan" instead of "nan".
19838 * tests/test-vasprintf-posix.c (test_function): Likewise.
19839 * tests/test-snprintf-posix.h (test_function): Likewise.
19840 * tests/test-sprintf-posix.h (test_function): Likewise.
19841 Needed for HP-UX 11.
19843 2007-05-20 Jim Meyering <jim@meyering.net>
19845 Fix buggy test for the fchownat-deref bug.
19846 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
19847 symlink required for the run-test. Without it, this test would
19848 always declare that fchownat doesn't work, and client code would
19849 unnecessarily use the replacement function with fixed libc.
19850 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
19851 Reported by Greg Schafer.
19853 2007-05-19 Bruno Haible <bruno@clisp.org>
19855 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
19856 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
19857 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
19858 Needed for IRIX 6.5 and Solaris 2.5.1.
19860 2007-05-19 Bruno Haible <bruno@clisp.org>
19862 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
19863 (test_function): Skip tests involving -0.0 on platforms where
19865 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
19866 (test_function): Skip tests involving -0.0 on platforms where
19868 * tests/test-snprintf-posix.h (have_minus_zero): New function.
19869 (test_function): Skip tests involving -0.0 on platforms where
19871 * tests/test-sprintf-posix.h (have_minus_zero): New function.
19872 (test_function): Skip tests involving -0.0 on platforms where
19874 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
19876 * tests/test-printf-posix.h (test_function): Likewise.
19877 * tests/test-printf-posix.output: Remove all -0.0 related results.
19878 Needed for IRIX 6.5.
19880 2007-05-19 Bruno Haible <bruno@clisp.org>
19882 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
19883 printed as "nan0x7fffffff" instead of "nan".
19884 * tests/test-vasprintf-posix.c (test_function): Likewise.
19885 * tests/test-snprintf-posix.h (test_function): Likewise.
19886 * tests/test-sprintf-posix.h (test_function): Likewise.
19887 * tests/test-fprintf-posix.h (NaN): Remove macro.
19888 (test_function): Remove all NaN related tests.
19889 * tests/test-printf-posix.h (NaN): Remove macro.
19890 (test_function): Remove all NaN related tests.
19891 * tests/test-printf-posix.output: Remove all NaN related results.
19892 Needed for IRIX 6.5.
19894 2007-05-19 Bruno Haible <bruno@clisp.org>
19896 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
19897 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19899 2007-05-19 Bruno Haible <bruno@clisp.org>
19901 * lib/float_.h: New file.
19902 * m4/float_h.m4: New file.
19903 * modules/float: New file.
19904 * modules/isnanl (Dependencies): Add float.
19905 * modules/isnanl-nolibm (Dependencies): Likewise.
19906 * modules/mathl (Dependencies): Likewise.
19907 * modules/printf-frexpl (Dependencies): Likewise.
19908 * modules/signbit (Dependencies): Likewise.
19909 * modules/vasnprintf (Dependencies): Likewise.
19910 * doc/headers/float.texi: Update.
19912 2007-05-19 Jim Meyering <jim@meyering.net>
19914 * lib/utimens.c (gl_futimens): Rename from futimens,
19915 now that glibc-2.6 declares futimens.
19916 * lib/utimens.h: Likewise.
19918 2007-05-19 Bruno Haible <bruno@clisp.org>
19920 Avoid test failures on mingw.
19921 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
19922 * tests/test-printf-posix.sh: Likewise.
19923 * tests/test-vfprintf-posix.sh: Likewise.
19924 * tests/test-vprintf-posix.sh: Likewise.
19926 2007-05-19 Bruno Haible <bruno@clisp.org>
19928 Fix *printf result for NaN, Inf, -0.0 on mingw.
19929 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
19930 * lib/vasnprintf.c: Include math.h and isnan.h.
19931 (is_infinite_or_zero): New function.
19932 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
19933 values in the %f, %F, %e, %E, %g, %G directives.
19934 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
19935 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19936 gl_PRINTF_INFINITE and test its result. Invoke
19937 gl_PREREQ_VASNPRINTF_INFINITE.
19938 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19939 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19940 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19941 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19942 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19943 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19944 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19945 * doc/functions/fprintf.texi: Update.
19946 * doc/functions/printf.texi: Update.
19947 * doc/functions/snprintf.texi: Update.
19948 * doc/functions/sprintf.texi: Update.
19949 * doc/functions/vfprintf.texi: Update.
19950 * doc/functions/vprintf.texi: Update.
19951 * doc/functions/vsnprintf.texi: Update.
19952 * doc/functions/vsprintf.texi: Update.
19954 2007-05-19 Bruno Haible <bruno@clisp.org>
19956 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
19957 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
19958 Instead of multiplying with 10^k, set extra_zeroes to k.
19959 (scale10_round_long_double): Remove function.
19961 2007-05-18 Bruno Haible <bruno@clisp.org>
19963 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
19964 introduced on 2007-05-06.
19966 2007-05-18 Bruno Haible <bruno@clisp.org>
19968 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
19970 * tests/test-vasprintf-posix.c (test_function): Likewise.
19971 * tests/test-snprintf-posix.h (test_function): Likewise.
19972 * tests/test-sprintf-posix.h (test_function): Likewise.
19974 2007-05-18 Bruno Haible <bruno@clisp.org>
19976 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
19977 (strmatch): New function.
19978 (test_function): Test the %f directive on numbers of various exponents.
19979 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
19980 (strmatch): New function.
19981 (test_function): Test the %f directive on numbers of various exponents.
19982 * tests/test-snprintf-posix.h (strmatch): New function.
19983 (test_function): Test the %f directive on numbers of various exponents.
19984 * tests/test-sprintf-posix.h (strmatch): New function.
19985 (test_function): Test the %f directive on numbers of various exponents.
19986 * tests/test-snprintf-posix.c (SIZEOF): New macro.
19987 * tests/test-sprintf-posix.c (SIZEOF): New macro.
19988 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
19989 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
19991 2007-05-18 Bruno Haible <bruno@clisp.org>
19993 Add support for 'long double' number output.
19994 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
19995 * lib/vasnprintf.c: Include math.h and float+.h.
19996 (mp_limb_t): New type.
19997 (GMP_LIMB_BITS): New macro.
19998 (mp_twolimb_t): New type.
19999 (GMP_TWOLIMB_BITS): New macro.
20001 (multiply, divide, convert_to_decimal, decode_long_double,
20002 scale10_round_long_double, scale10_round_decimal_long_double,
20003 floorlog10l): New functions.
20004 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
20005 for the %f, %F, %e, %E, %g, %G directives.
20006 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
20007 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20008 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
20009 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
20010 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20011 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20012 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20013 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20014 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20015 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20016 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20017 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
20018 * modules/snprintf-posix (Depends-on): Likewise.
20019 * modules/sprintf-posix (Depends-on): Likewise.
20020 * modules/vasnprintf-posix (Depends-on): Likewise.
20021 * modules/vasprintf-posix (Depends-on): Likewise.
20022 * modules/vfprintf-posix (Depends-on): Likewise.
20023 * modules/vsnprintf-posix (Depends-on): Likewise.
20024 * modules/vsprintf-posix (Depends-on): Likewise.
20025 * modules/vasnprintf (Files): Add lib/float+.h.
20026 * doc/functions/fprintf.texi: Update.
20027 * doc/functions/printf.texi: Update.
20028 * doc/functions/snprintf.texi: Update.
20029 * doc/functions/sprintf.texi: Update.
20030 * doc/functions/vfprintf.texi: Update.
20031 * doc/functions/vprintf.texi: Update.
20032 * doc/functions/vsnprintf.texi: Update.
20033 * doc/functions/vsprintf.texi: Update.
20035 2007-05-18 Bruno Haible <bruno@clisp.org>
20037 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
20039 2007-05-18 Bruno Haible <bruno@clisp.org>
20041 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
20042 for printing 64-bit integers. Needed for mingw.
20044 2007-05-18 Bruno Haible <bruno@clisp.org>
20046 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
20047 gl_FUNC_FREXPL_WORKS.
20048 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
20050 2007-05-18 Bruno Haible <bruno@clisp.org>
20052 * modules/frexpl-nolibm-tests: New file.
20054 * modules/frexpl-nolibm: New file.
20055 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
20057 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
20059 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
20060 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
20061 GCC 4.2, which otherwise issues a lot of warnings.
20062 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
20063 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
20065 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
20066 * modules/iconv_open (iconv.h): Likewise.
20067 * modules/locale (locale.h): Likewise.
20068 * modules/netinet_in (netinet/in.h): Likewise.
20069 * modules/sys_select (sys_select.h): Likewise.
20070 * modules/sys_socket (sys/socket.h): Likewise.
20071 * modules/sys_stat (sys/stat.h): Likewise.
20072 * modules/sysexits (sysexits.h): Likewise.
20073 * modules/unistd (unistd.h): Likewise.
20075 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20077 * modules/closein-tests (Makefile.am): Distribute
20080 2007-05-17 Bruno Haible <bruno@clisp.org>
20082 * tests/test-printf-posix.output: Renamed from
20083 tests/test-fprintf-posix.out.
20084 * modules/fprintf-posix-tests: Update.
20085 * modules/printf-posix-tests: Update.
20086 * modules/vfprintf-posix-tests: Update.
20087 * modules/vprintf-posix-tests: Update.
20088 * tests/test-fprintf-posix.sh: Update.
20089 * tests/test-printf-posix.sh: Update.
20090 * tests/test-vfprintf-posix.sh: Update.
20091 * tests/test-vprintf-posix.sh: Update.
20092 Reported by Ralf Wildenhues.
20094 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
20096 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
20097 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
20098 GCC 4.2, which otherwise issues a lot of warnings.
20099 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
20100 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
20101 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
20102 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
20103 it should no longer be needed.
20104 * lib/string_.h: Likewise.
20105 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
20106 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
20107 * modules/inttypes (inttypes.h): Likewise.
20108 * modules/math (math.h): Likewise.
20109 * modules/search (search.h): Likewise.
20110 * modules/signal (signal.h): Likewise.
20111 * modules/stdint (stdint.h): Likewise.
20112 * modules/stdio (stdio.h): Likewise.
20113 * modules/stdlib (stdlib.h): Likewise.
20114 * modules/string (string.h): Likewise.
20115 * modules/sys_time (sys/time.h): Likewise.
20116 * modules/time (time.h): Likewise.
20117 * modules/wchar (wchar.h): Likewise.
20118 * modules/wctype (wtype.h): Likewise.
20120 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
20122 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
20124 2007-05-13 Bruno Haible <bruno@clisp.org>
20126 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
20127 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20128 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
20129 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
20130 (gl_PREREQ_STRTOK_R): Don't require it here.
20132 2007-05-13 Bruno Haible <bruno@clisp.org>
20134 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
20135 when used in C++ mode.
20137 2007-05-12 Bruno Haible <bruno@clisp.org>
20139 * lib/linebuffer.h: Tweak doc.
20140 * lib/linebuffer.c: Likewise.
20142 2007-05-12 James Youngman <jay@gnu.org>
20144 * lib/linebuffer.c (readlinebuffer_delim): New function,
20145 like readlinebuffer, but use a caller-specified delimiter.
20146 (readlinebuffer): Just call readlinebuffer_delim with '\n'
20148 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
20150 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
20152 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
20153 * modules/openat (Files): Remove openat-die.c.
20154 (Depends-on): Add openat-die.
20155 * modules/openat-die: New module.
20157 2007-05-06 Bruno Haible <bruno@clisp.org>
20159 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
20160 Update with info about Cygwin.
20161 * doc/functions/fprintf.texi: Update.
20162 * doc/functions/printf.texi: Update.
20163 * doc/functions/snprintf.texi: Update.
20164 * doc/functions/sprintf.texi: Update.
20165 * doc/functions/vfprintf.texi: Update.
20166 * doc/functions/vprintf.texi: Update.
20167 * doc/functions/vsnprintf.texi: Update.
20168 * doc/functions/vsprintf.texi: Update.
20169 Reported by Eric Blake.
20171 2007-05-06 Bruno Haible <bruno@clisp.org>
20173 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
20174 padding ourselves for the floating-point directives.
20175 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
20176 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
20177 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20178 gl_PRINTF_FLAG_ZERO and test its result. Invoke
20179 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
20180 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20181 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
20182 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20183 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20184 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20185 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20186 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20187 * tests/test-snprintf-posix.h (test_function): Also check the width
20188 and some flags in the %f directive.
20189 * tests/test-sprintf-posix.h (test_function): Likewise.
20190 * tests/test-vasnprintf-posix.c (test_function): Likewise.
20191 * tests/test-vasprintf-posix.c (test_function): Likewise.
20192 * doc/functions/fprintf.texi: Update.
20193 * doc/functions/printf.texi: Update.
20194 * doc/functions/snprintf.texi: Update.
20195 * doc/functions/sprintf.texi: Update.
20196 * doc/functions/vfprintf.texi: Update.
20197 * doc/functions/vprintf.texi: Update.
20198 * doc/functions/vsnprintf.texi: Update.
20199 * doc/functions/vsprintf.texi: Update.
20201 2007-05-06 Bruno Haible <bruno@clisp.org>
20203 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
20204 pass the ' flag character to sprintf or snprintf.
20205 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
20206 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
20207 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20208 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
20209 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
20210 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20211 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
20212 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20213 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20214 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20215 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20216 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20217 * tests/test-snprintf-posix.h (test_function): Also check the grouping
20219 * tests/test-sprintf-posix.h (test_function): Likewise.
20220 * tests/test-vasnprintf-posix.c (test_function): Likewise.
20221 * tests/test-vasprintf-posix.c (test_function): Likewise.
20222 * doc/functions/fprintf.texi: Update.
20223 * doc/functions/printf.texi: Update.
20224 * doc/functions/snprintf.texi: Update.
20225 * doc/functions/sprintf.texi: Update.
20226 * doc/functions/vfprintf.texi: Update.
20227 * doc/functions/vprintf.texi: Update.
20228 * doc/functions/vsnprintf.texi: Update.
20229 * doc/functions/vsprintf.texi: Update.
20231 2007-05-01 Bruno Haible <bruno@clisp.org>
20233 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
20235 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
20237 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
20238 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
20240 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
20242 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
20243 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
20244 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
20246 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
20248 * lib/argp-help.c (struct hol_entry): New member `ord'.
20249 (HOL_ENTRY_PTRCMP): Use ord for comparison
20250 (hol_sort): Initialize ord.
20252 2007-05-01 Bruno Haible <bruno@clisp.org>
20254 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
20255 Reported by Eric Blake.
20256 * doc/gnulib.texi (Function Substitutes): Update.
20258 2007-05-01 Bruno Haible <bruno@clisp.org>
20260 * doc/functions.texi: Remove file, now redundant through
20261 doc/functions/*.texi.
20263 2007-05-01 Bruno Haible <bruno@clisp.org>
20265 * modules/argp (Depends-on): Add sleep.
20267 2007-05-01 Bruno Haible <bruno@clisp.org>
20269 * modules/sleep-tests: New file.
20270 * tests/test-sleep.c: New file.
20272 * modules/sleep: New file.
20273 * lib/sleep.c: New file.
20274 * m4/sleep.m4: New file.
20275 * lib/unistd_.h (sleep): New declaration.
20276 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
20278 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
20279 * doc/functions/sleep.texi: Document the sleep module.
20281 2007-05-01 Bruno Haible <bruno@clisp.org>
20283 * lib/sigprocmask.h: Remove file.
20284 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
20285 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
20286 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
20287 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
20288 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
20289 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
20290 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
20291 HAVE_SIGSET_T as a shell variable.
20292 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
20293 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
20294 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
20295 (Depends-on): Add signal. Remove verify.
20296 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
20297 (Include): Mention <signal.h> instead of sigprocmask.h.
20298 * NEWS: Mention the change.
20299 * lib/fatal-signal.c: Don't include sigprocmask.h.
20301 2007-05-01 Bruno Haible <bruno@clisp.org>
20303 * modules/signal: New file.
20304 * lib/signal_.h: New file.
20305 * m4/signal_h.m4: New file.
20307 2007-05-01 Bruno Haible <bruno@clisp.org>
20309 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
20310 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
20311 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
20312 HAVE_WCTYPE_CTMP_BUG into wctype.h.
20314 2007-05-01 Bruno Haible <bruno@clisp.org>
20316 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
20318 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
20319 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
20320 * modules/sys_stat (Makefile.am): Substitute their values into
20323 2007-05-01 Bruno Haible <bruno@clisp.org>
20325 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
20326 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
20327 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
20329 2007-05-01 Bruno Haible <bruno@clisp.org>
20331 * doc/header/assert.texi: Undo last change: don't mention the gnulib
20332 'assert' module here.
20334 2007-05-01 Bruno Haible <bruno@clisp.org>
20336 * doc/functions/*.texi: New files.
20337 * doc/functions/google-ranking.txt: New file.
20338 * doc/gnulib.texi (Function Substitutes): New chapter.
20339 (ctime, inet_ntoa): Remove sections.
20340 * doc/ctime.texi: Remove file.
20341 * doc/inet_ntoa.texi: Remove file.
20342 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
20344 (%.info): New rule, specifying a --reference-limit.
20346 2007-05-01 Bruno Haible <bruno@clisp.org>
20348 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
20350 2007-05-01 Bruno Haible <bruno@clisp.org>
20352 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
20353 the portability of 'mkdir' to mingw systems.
20355 2007-05-01 Bruno Haible <bruno@clisp.org>
20357 * doc/headers/google-ranking.txt: New file.
20359 2007-04-30 Eric Blake <ebb9@byu.net>
20361 Prefer fseeko to fseek.
20362 * modules/getpass (Depends-on): Add fseeko.
20363 * lib/getpass.c (getpass): Use fseeko, not fseek.
20365 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
20367 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
20368 assumes the sorting is stable, while most qsort implementations
20369 are not. Use argument addresses to ensure they never compare as
20372 * tests/test-argp-2.sh (usage-indent test): Fix output
20373 (func_compare): Restore diff options
20374 * tests/test-argp.c: Restore #include "progname.h"
20376 2007-04-29 Bruno Haible <bruno@clisp.org>
20378 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
20379 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20380 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
20381 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20382 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
20383 (configure.ac): Define CHECK_SNPRINTF_POSIX.
20384 (TESTS, check_PROGRAMS): Add test-snprintf.
20385 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
20386 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
20387 (TESTS, check_PROGRAMS): Add test-vsnprintf.
20388 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
20389 assertions that fail on HP-UX, OSF/1, or IRIX.
20390 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
20392 2007-04-29 Bruno Haible <bruno@clisp.org>
20394 * MODULES.html.sh (posix_functions): Remove 'contents'.
20396 2007-04-29 Karl Berry <karl@gnu.org>
20398 * config/srclist.txt (gendocs_template_min): new entry.
20400 2007-04-29 Bruno Haible <bruno@clisp.org>
20402 Work around fpurge bug on BSD systems.
20403 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
20404 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
20405 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
20406 fpurge to rpl_fpurge if the system already has this function.
20407 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
20408 the case where the system already has this function. Correct invariants
20410 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
20413 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
20415 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
20416 proposed by Sven Verdoolaege.
20418 * tests/test-argp.c: Fix option ordering. Test deeply clustered
20420 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
20421 (usage and help tests): Update
20423 2007-04-29 Bruno Haible <bruno@clisp.org>
20425 * tests/test-fflush.c (main): Use a file of size 17, not 10.
20426 Print more information in case of failure. Disable a test on BeOS.
20428 2007-04-29 Bruno Haible <bruno@clisp.org>
20430 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
20431 This helps debugging on systems on which no gdb is available.
20433 2007-04-29 Bruno Haible <bruno@clisp.org>
20435 * lib/freading.h: Improve comments.
20436 * lib/fwriting.h: Likewise.
20437 * tests/test-freading.c (main): Don't check freading immediately after
20438 repositioning. Needed for glibc.
20440 2007-04-29 Bruno Haible <bruno@clisp.org>
20442 * lib/freading.c (freading): Trivial simplification.
20444 2007-04-28 Bruno Haible <bruno@clisp.org>
20446 * tests/test-fwriting.c (main): Also test the interaction between
20447 fflush and fwriting.
20448 * modules/fwriting-tests (Depends-on): Add fflush.
20450 * tests/test-freading.c (main): Also test the interaction between
20451 fflush and freading.
20452 * modules/freading-tests (Depends-on): Add fflush.
20454 2007-04-28 Bruno Haible <bruno@clisp.org>
20456 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
20458 Suggested by Eric Blake.
20460 2007-04-28 Jim Meyering <jim@meyering.net>
20462 Avoid false-negative in gl_STDINT_H's C99 conformance test.
20463 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
20464 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
20466 2007-04-27 Eric Blake <ebb9@byu.net>
20468 * doc/headers/assert.texi (assert.h): Document assert module use.
20470 2007-04-27 Bruno Haible <bruno@clisp.org>
20472 * doc/headers/*.texi: New files.
20473 * doc/gnulib.texi (Header File Substitutes): New chapter.
20474 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
20476 (standards.info ,standards.html, standards.dvi): Update dependencies.
20477 (mostlyclean, clean): New targets.
20479 2007-04-27 Bruno Haible <bruno@clisp.org>
20481 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
20482 * modules/sysexits (Files, Makefile.am): Update.
20484 * lib/sys_socket_.h: Renamed from lib/socket_.h.
20485 * modules/sys_socket (Files, Makefile.am): Update.
20487 * lib/sys_stat_.h: Renamed from lib/stat_.h.
20488 * modules/sys_stat (Files, Makefile.am): Update.
20490 2007-04-27 Eric Blake <ebb9@byu.net>
20492 * lib/freading.h: Improve comments.
20493 * lib/fwriting.h: Likewise.
20494 * lib/fflush.c: Likewise.
20496 Fix closein for mingw.
20497 * modules/closein-tests: Add tests for closein.
20498 * tests/test-closein.c: New file.
20499 * tests/test-closein.sh: Likewise.
20500 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
20501 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
20503 2007-04-27 Bruno Haible <bruno@clisp.org>
20505 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
20507 * lib/math_.h [__DECC]: Likewise.
20508 * lib/stdio_.h [__DECC]: Likewise.
20509 * lib/stdlib_.h [__DECC]: Likewise.
20510 * lib/string_.h [__DECC]: Likewise.
20511 * lib/time_.h [__DECC]: Likewise.
20512 * lib/wchar_.h [__DECC]: Likewise.
20513 * lib/wctype_.h [__DECC]: Likewise.
20515 2007-04-27 Bruno Haible <bruno@clisp.org>
20517 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
20519 2007-04-27 Bruno Haible <bruno@clisp.org>
20521 * lib/fflush.c: Add comments.
20522 * modules/fpurge-tests (Depends-on): Add fflush.
20523 * modules/freadable-tests (Depends-on): Likewise.
20524 * modules/fwritable-tests (Depends-on): Likewise.
20526 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
20528 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
20529 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
20530 Report by Bruno Haible <bruno@clisp.org>.
20532 2007-04-26 Eric Blake <ebb9@byu.net>
20534 Fix fflush on mingw.
20535 * modules/fflush (Depends-on): Add freading.
20536 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
20539 2007-04-26 Eric Blake <ebb9@byu.net>
20540 and Bruno Haible <bruno@clisp.org>
20542 Implement freading and fwriting.
20543 * lib/freading.c: New file.
20544 * lib/freading.h: Likewise.
20545 * m4/freading.m4: Likewise.
20546 * modules/freading: Likewise.
20547 * modules/freading-tests: Likewise.
20548 * tests/test-freading.c: Likewise.
20549 * lib/fwriting.c: New file.
20550 * lib/fwriting.h: Likewise.
20551 * m4/fwriting.m4: Likewise.
20552 * modules/fwriting: Likewise.
20553 * modules/fwriting-tests: Likewise.
20554 * tests/test-fwriting.c: Likewise.
20555 * MODULES.html.sh (File stream based Input/Output): Mention them.
20557 2007-04-26 Bruno Haible <bruno@clisp.org>
20559 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
20560 'long' when we assume it.
20561 Suggested by Eric Blake.
20563 2007-04-26 Bruno Haible <bruno@clisp.org>
20565 Ensure fseeko, ftello are declared on glibc systems.
20566 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
20567 * modules/fseeko (configure.ac-early): Likewise.
20568 * modules/ftello (configure.ac-early): Likewise.
20569 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
20570 AC_FUNC_FSEEKO for this.
20571 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
20572 (gl_CHECK_FSEEKO): Remove macro.
20574 2007-04-26 Bruno Haible <bruno@clisp.org>
20576 * tests/test-fflush.c (main): Also check the ftell result after
20577 fflush and fseek/fseeko.
20578 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
20579 file descriptor position cache in the stream.
20580 * lib/fseeko.c (rpl_fseeko): Likewise.
20582 2007-04-26 Bruno Haible <bruno@clisp.org>
20584 * modules/fflush-tests (Depends-on): Add fseeko.
20586 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
20587 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20589 * lib/argz_.h: ensure error_t definition is obtained in same
20590 mechanism system argz.h would have.
20591 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
20592 argz facilities are known bad. Err on the side of caution if
20595 2007-04-25 Eric Blake <ebb9@byu.net>
20597 * lib/fpurge.c (includes): Use stdlib.h for free.
20598 * tests/test-fflush.c (main): Also test fflush-fseeko.
20600 2007-04-25 Bruno Haible <bruno@clisp.org>
20602 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
20603 * lib/fseeko.c: New file.
20604 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
20605 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
20606 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
20608 (gl_FUNC_FSEEKO): Invoke it.
20609 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
20610 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
20611 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
20613 2007-04-25 Bruno Haible <bruno@clisp.org>
20615 * modules/fflush (Depends-on): Add ftello.
20617 2007-04-25 Bruno Haible <bruno@clisp.org>
20619 * modules/ftello-tests: New file.
20620 * tests/test-ftello.c: New file.
20622 * modules/ftello: New file.
20623 * m4/ftello.m4: New file.
20624 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
20626 * lib/stdio_.h (ftello): New declaration.
20627 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
20630 2007-04-25 Bruno Haible <bruno@clisp.org>
20632 * modules/fseeko-tests: New file.
20633 * tests/test-fseeko.c: New file.
20635 * modules/fseeko: New file.
20636 * m4/fseeko.m4: New file.
20637 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
20639 * lib/stdio_.h (fseeko): New declaration.
20640 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
20643 2007-04-25 Bruno Haible <bruno@clisp.org>
20645 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
20647 2007-04-25 Bruno Haible <bruno@clisp.org>
20649 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
20650 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
20651 * tests/test-unistd.c: Likewise.
20652 * tests/test-fcntl.c: Likewise.
20654 2007-04-23 Eric Blake <ebb9@byu.net>
20656 * lib/fflush.c: Fix missing include.
20657 Reported by Bruno Haible.
20659 2007-04-23 Bruno Haible <bruno@clisp.org>
20661 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
20662 Reported by Eric Blake.
20664 2007-04-23 Bruno Haible <bruno@clisp.org>
20666 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
20668 2007-04-23 Bruno Haible <bruno@clisp.org>
20670 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
20672 2007-04-23 Bruno Haible <bruno@clisp.org>
20674 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
20675 Needed on HP-UX 11.
20677 2007-04-16 Eric Blake <ebb9@byu.net>
20679 Make fflush rely on fpurge.
20680 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
20681 open coding all variants.
20682 * modules/fflush (Depends-on): Add fpurge and unistd.
20683 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
20684 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
20686 Fix --with-tests compilation on cygwin.
20687 * modules/argmatch-tests (Makefile.am): List gnulib library first
20689 * modules/argp-tests (Makefile.am): Likewise.
20690 * modules/array-list-tests (Makefile.am): Likewise.
20691 * modules/array-oset-tests (Makefile.am): Likewise.
20692 * modules/avltree-list-tests (Makefile.am): Likewise.
20693 * modules/avltree-oset-tests (Makefile.am): Likewise.
20694 * modules/avltreehash-list-tests (Makefile.am): Likewise.
20695 * modules/carray-list-tests (Makefile.am): Likewise.
20696 * modules/dirname-tests (Makefile.am): Likewise.
20697 * modules/frexp-tests (Makefile.am): Likewise.
20698 * modules/isnanl-tests (Makefile.am): Likewise.
20699 * modules/linked-list-tests (Makefile.am): Likewise.
20700 * modules/linkedhash-list-tests (Makefile.am): Likewise.
20701 * modules/lock-tests (Makefile.am): Likewise.
20702 * modules/rbtree-list-tests (Makefile.am): Likewise.
20703 * modules/rbtree-oset-tests (Makefile.am): Likewise.
20704 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
20705 * modules/tls-tests (Makefile.am): Likewise.
20706 * modules/tsearch-tests (Makefile.am): Likewise.
20707 * modules/xvasprintf-tests (Makefile.am): Likewise.
20709 Fix fpurge for cygwin.
20710 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
20712 * modules/fpurge-tests (Depends-on): Clean up trash.
20714 2007-04-16 Simon Josefsson <simon@josefsson.org>
20716 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
20718 * m4/autobuild.m4: Re-indent.
20720 2007-04-13 Bruno Haible <bruno@clisp.org>
20722 * modules/fpurge-tests: New file.
20723 * tests/test-fpurge.c: New file.
20725 * modules/fpurge: New file.
20726 * lib/fpurge.h: New file.
20727 * lib/fpurge.c: New file.
20728 * m4/fpurge.m4: New file.
20730 2007-04-13 Bruno Haible <bruno@clisp.org>
20732 * modules/fbufmode-tests: New file.
20733 * tests/test-fbufmode.c: New file.
20735 * modules/fbufmode: New file.
20736 * lib/fbufmode.h: New file.
20737 * lib/fbufmode.c: New file.
20738 * m4/fbufmode.m4: New file.
20740 2007-04-13 Bruno Haible <bruno@clisp.org>
20742 * modules/fwritable-tests: New file.
20743 * tests/test-fwritable.c: New file.
20745 * modules/fwritable: New file.
20746 * lib/fwritable.h: New file.
20747 * lib/fwritable.c: New file.
20748 * m4/fwritable.m4: New file.
20750 2007-04-13 Bruno Haible <bruno@clisp.org>
20752 * modules/freadable-tests: New file.
20753 * tests/test-freadable.c: New file.
20755 * modules/freadable: New file.
20756 * lib/freadable.h: New file.
20757 * lib/freadable.c: New file.
20758 * m4/freadable.m4: New file.
20760 2007-04-13 Bruno Haible <bruno@clisp.org>
20762 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
20765 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
20767 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
20768 gzip bootstrap.conf to avoid dragging in i18n machinery.
20769 (gnulib_tool_option): Use it.
20771 2007-04-13 Bruno Haible <bruno@clisp.org>
20773 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
20775 * tests/test-vasprintf-posix.c (test_function): Likewise.
20776 * tests/test-snprintf-posix.h (test_function): Likewise.
20777 * tests/test-sprintf-posix.h (test_function): Likewise.
20778 * tests/test-fprintf-posix.h (test_function): Likewise.
20779 * tests/test-printf-posix.h (test_function): Likewise.
20780 * tests/test-fprintf-posix.out: Likewise.
20782 2007-04-13 Bruno Haible <bruno@clisp.org>
20784 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
20785 * modules/tls-tests (configure.ac): Likewise.
20786 Reported by Arto C. Nirkko <anirkko@insel.ch>.
20788 2007-04-13 Bruno Haible <bruno@clisp.org>
20790 * lib/tls.c (glthread_tls_get): Fix return type.
20791 Patch by Arto C. Nirkko <anirkko@insel.ch>.
20793 2007-04-12 Eric Blake <ebb9@byu.net>
20795 * modules/gettime (Depends-on): Remove gettime.
20796 Reported by Dmitry V. Levin.
20798 2007-04-12 Bruno Haible <bruno@clisp.org>
20800 * modules/fflush (Include): Mention <stdio.h>.
20801 * modules/strtoimax (Include): Mention <inttypes.h>.
20802 * modules/strtoumax (Include): Likewise.
20804 2007-04-12 Eric Blake <ebb9@byu.net>
20806 * .cvsignore: New file.
20807 * .gitignore: Likewise.
20809 2007-04-12 Bruno Haible <bruno@clisp.org>
20811 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
20812 not before, since $(LDADD) often contains libgnu.a.
20813 * modules/striconv-tests (test_striconv_LDADD): Likewise.
20814 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
20815 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
20818 2007-04-12 Eric Blake <ebb9@byu.net>
20820 Work around glibc's failure to flush stdin on fclose.
20821 * lib/closein.c (close_stdin): Flush stdin before closing.
20823 Work around glibc's failure to reset seekable stdin on exit.
20824 * modules/closein: New module.
20825 * lib/closein.c: New file.
20826 * lib/closein.h: Likewise.
20827 * m4/closein.m4: Likewise.
20828 * MODULES.html.sh (File stream based Input/Output): Document it.
20830 2007-04-12 Simon Josefsson <simon@josefsson.org>
20832 * gnulib-tool: Rename generated 'autobuild' script to
20833 'do-autobuild' in --create-megatestdir output.
20835 * doc/gnulib.texi (Build robot for gnulib): Fix.
20837 2007-04-12 Simon Josefsson <simon@josefsson.org>
20839 * modules/sysexits (Depends-on): Add absolute-header.
20841 2007-04-12 Eric Blake <ebb9@byu.net>
20843 No need to preserve errno on success.
20844 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
20845 Reported by Bruno Haible.
20847 2007-04-12 Simon Josefsson <simon@josefsson.org>
20849 * MODULES.html.sh (Support for maintaining and releasing
20850 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
20852 2007-04-12 Simon Josefsson <simon@josefsson.org>
20854 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
20856 2007-04-12 Simon Josefsson <simon@josefsson.org>
20858 * modules/autobuild: New module.
20860 * m4/autobuild.m4: New file.
20862 2007-04-11 Bruno Haible <bruno@clisp.org>
20864 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
20865 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
20866 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
20867 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
20868 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20869 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20870 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20871 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20872 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20873 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20874 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
20875 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20876 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20877 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
20878 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20879 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20880 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
20881 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20882 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20883 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
20884 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20885 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20886 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
20887 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20888 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20889 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
20890 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20891 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20892 Reported by Eric Blake.
20894 2007-04-11 Bruno Haible <bruno@clisp.org>
20896 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
20898 2007-04-10 Bruno Haible <bruno@clisp.org>
20900 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
20901 for NaN and Infinity. Needed on FreeBSD 6.1.
20902 * tests/test-vasnprintf-posix.c (test_function): Undo last change
20903 regarding results for "%010a" of Infinity and NaN.
20904 * tests/test-vasprintf-posix.c (test_function): Likewise.
20905 * tests/test-snprintf-posix.h (test_function): Likewise.
20906 * tests/test-sprintf-posix.h (test_function): Likewise.
20907 * tests/test-fprintf-posix.h (test_function): Likewise.
20908 * tests/test-printf-posix.h (test_function): Likewise.
20909 * tests/test-fprintf-posix.out: Likewise.
20911 2007-04-10 Bruno Haible <bruno@clisp.org>
20913 * modules/locale-tests: New file.
20914 * tests/test-locale.c: New file.
20916 * modules/locale: New file.
20917 * lib/locale_.h: New file.
20918 * m4/locale_h.m4: New file.
20920 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
20921 Bruno Haible <bruno@clisp.org>
20923 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
20924 be determined, test for availability of the copysignf, copysign,
20925 copysignl functions.
20926 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
20927 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
20928 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
20930 2007-04-09 Eric Blake <ebb9@byu.net>
20932 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
20933 * modules/stdio (Makefile.am): Support fflush.
20934 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20935 * modules/fflush: New file.
20936 * lib/fflush.c: Likewise.
20937 * m4/fflush.m4: Likewise.
20938 * modules/fflush-tests: New test.
20939 * tests/test-fflush.c: Likewise.
20940 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
20942 2007-04-06 Bruno Haible <bruno@clisp.org>
20944 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
20945 (VASNPRINTF): Use signbit for faster determination whether to print a
20947 * modules/vasnprintf (Files): Remove lib/float+.h.
20948 * modules/fprintf-posix (Depends-on): Add signbit.
20949 * modules/snprintf-posix (Depends-on): Likewise.
20950 * modules/sprintf-posix (Depends-on): Likewise.
20951 * modules/vasnprintf-posix (Depends-on): Likewise.
20952 * modules/vasprintf-posix (Depends-on): Likewise.
20953 * modules/vfprintf-posix (Depends-on): Likewise.
20954 * modules/vsnprintf-posix (Depends-on): Likewise.
20955 * modules/vsprintf-posix (Depends-on): Likewise.
20957 2007-04-06 Bruno Haible <bruno@clisp.org>
20959 * tests/test-frexp.c (main): Test also the sign bit of zero results.
20960 * tests/test-frexpl.c (main): Likewise.
20961 * tests/test-ldexpl.c (main): Likewise.
20962 * modules/frexp-tests (Depends-on): Add signbit.
20963 * modules/frexpl-tests (Depdends-on): Likewise.
20964 * modules/ldexpl-tests (Depdends-on): Likewise.
20966 2007-04-06 Bruno Haible <bruno@clisp.org>
20968 * modules/signbit-tests: New file.
20969 * tests/test-signbit.c: New file.
20971 * modules/signbit: New file.
20972 * lib/signbitf.c: New file.
20973 * lib/signbitd.c: New file.
20974 * lib/signbitl.c: New file.
20975 * m4/signbit.m4: New file.
20976 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
20977 (signbit): New macro.
20978 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
20980 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
20981 REPLACE_FREXPL into math.h.
20983 2007-04-06 Bruno Haible <bruno@clisp.org>
20985 * modules/isnanf-nolibm-tests: New file.
20986 * tests/test-isnanf.c: New file.
20988 * modules/isnanf-nolibm: New file.
20989 * lib/isnanf.h: New file.
20990 * lib/isnanf.c: New file.
20991 * lib/isnan.c: Consider the USE_FLOAT macro.
20992 * m4/isnanf.m4: New file.
20994 2007-04-06 Bruno Haible <bruno@clisp.org>
20996 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
20997 (Link): New section.
20999 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
21001 2007-04-06 Bruno Haible <bruno@clisp.org>
21003 Assume the 'long double' type.
21004 * m4/longdouble.m4: Remove file.
21005 * config/srclist.txt: Don't mention longdouble.m4.
21006 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
21007 * lib/float+.h: Likewise.
21008 * lib/frexp.c: Likewise.
21009 * lib/printf-args.h: Likewise.
21010 * lib/printf-args.c: Likewise.
21011 * lib/printf-frexp.c: Likewise.
21012 * lib/printf-parse.c: Likewise.
21013 * lib/vasnprintf.c: Likewise.
21014 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
21015 * m4/intl.m4: Likewise.
21016 * m4/isnanl.m4: Likewise.
21017 * m4/printf.m4: Likewise.
21018 * m4/printf-frexpl.m4: Likewise.
21019 * m4/vasnprintf.m4: Likewise.
21020 * modules/allocsa (Files): Remove m4/longdouble.m4.
21021 * modules/gettext (Files): Likewise.
21022 * modules/relocatable-prog-wrapper (Files): Likewise.
21023 * modules/vasnprintf (Files): Likewise.
21024 * modules/isnanl (Files): Likewise.
21025 (Include): Simplify.
21026 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
21027 (Include): Simplify.
21028 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
21029 (Include): Simplify.
21030 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
21031 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21032 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
21033 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21034 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
21035 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21036 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
21037 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21038 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
21039 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21040 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
21041 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21042 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
21043 * tests/test-isnanl.c: Likewise.
21044 * tests/test-snprintf-posix.h: Likewise.
21045 * tests/test-sprintf-posix.h: Likewise.
21046 * tests/test-vasnprintf-posix.c: Likewise.
21047 * tests/test-vasnprintf-posix2.c: Likewise.
21048 * tests/test-vasprintf-posix.c: Likewise.
21050 2007-04-06 Bruno Haible <bruno@clisp.org>
21052 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
21053 * lib/math_.h [__DECC]: Include the overridden include file through
21054 #include_next, outside the double-inclusion guard.
21055 * lib/stdio_.h [__DECC]: Likewise.
21056 * lib/stdlib_.h [__DECC]: Likewise.
21057 * lib/string_.h [__DECC]: Likewise.
21058 * lib/time_.h [__DECC]: Likewise.
21059 * lib/wchar_.h [__DECC]: Likewise.
21060 * lib/wctype_.h [__DECC]: Likewise.
21061 * lib/inttypes_.h [__DECC]: Likewise.
21062 Reported by Albert Chin <china@thewrittenword.com> in
21063 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
21065 2007-04-04 Eric Blake <ebb9@byu.net>
21067 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
21070 2007-04-04 Bruno Haible <bruno@clisp.org>
21072 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
21073 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
21075 2007-04-04 Bruno Haible <bruno@clisp.org>
21077 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
21078 results for "%010a" of Infinity and NaN.
21079 * tests/test-vasprintf-posix.c (test_function): Likewise.
21080 * tests/test-snprintf-posix.h (test_function): Likewise.
21081 * tests/test-sprintf-posix.h (test_function): Likewise.
21082 * tests/test-fprintf-posix.h (test_function): Remove these tests.
21083 * tests/test-printf-posix.h (test_function): Likewise.
21084 * tests/test-fprintf-posix.out: Update.
21085 Needed for FreeBSD 6.1.
21087 2007-04-04 Bruno Haible <bruno@clisp.org>
21089 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
21090 directly used by the gnulib modules nor by gnulib-tool.
21092 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
21094 * DEPENDENCIES: Give overall description of version dependency
21095 desirability. Use more-typical names for apps.
21096 Add shell, coreutils, diffutils, grep, tar, gzip.
21098 2007-04-04 Simon Josefsson <simon@josefsson.org>
21100 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
21102 2007-04-04 Karl Berry <karl@gnu.org>
21104 * MODULES.html.sh (func_module): missing '.
21106 2007-04-03 Bruno Haible <bruno@clisp.org>
21108 * modules/argmatch-tests (Makefile.am): New variable
21109 test_argmatch_LDADD.
21110 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
21111 * modules/array-list-tests (Makefile.am): New variable
21112 test_array_list_LDADD.
21113 * modules/array-oset-tests (Makefile.am): New variable
21114 test_array_oset_LDADD.
21115 * modules/avltree-list-tests (Makefile.am): New variable
21116 test_avltree_list_LDADD.
21117 * modules/avltree-oset-tests (Makefile.am): New variable
21118 test_avltree_oset_LDADD.
21119 * modules/avltreehash-list-tests (Makefile.am): New variable
21120 test_avltreehash_list_LDADD.
21121 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
21122 test_canonicalize_lgpl_LDADD.
21123 * modules/carray-list-tests (Makefile.am): New variable
21124 test_carray_list_LDADD.
21125 * modules/dirname-tests (Makefile.am): New variable
21126 test_dirname_LDADD.
21127 * modules/linked-list-tests (Makefile.am): New variable
21128 test_linked_list_LDADD.
21129 * modules/linkedhash-list-tests (Makefile.am): New variable
21130 test_linkedhash_list_LDADD.
21131 * modules/rbtree-list-tests (Makefile.am): New variable
21132 test_rbtree_list_LDADD.
21133 * modules/rbtree-oset-tests (Makefile.am): New variable
21134 test_rbtree_oset_LDADD.
21135 * modules/rbtreehash-list-tests (Makefile.am): New variable
21136 test_rbtreehash_list_LDADD.
21137 * modules/xvasprintf-tests (Makefile.am): New variable
21138 test_xvasprintf_LDADD.
21139 Reported by Eric Blake.
21141 2007-04-03 Eric Blake <ebb9@byu.net>
21143 * DEPENDENCIES: Weaken m4 requirements.
21145 2007-04-03 Bruno Haible <bruno@clisp.org>
21147 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
21148 * modules/isnanl-tests (configure.ac): Likewise.
21150 2007-04-03 Ben Pfaff <blp@gnu.org>
21152 * modules/iconv_open: Add $(srcdir)/ to source directory
21153 references in Makefile fragments that call gperf, to fix VPATH
21156 2007-04-03 Bruno Haible <bruno@clisp.org>
21158 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
21159 * lib/ldexpl.c: Undo last change.
21161 2007-04-03 Bruno Haible <bruno@clisp.org>
21163 * modules/printf-frexpl (Depends-on): Undo last change.
21164 (Files): Add m4/ldexpl.m4.
21166 2007-04-03 Bruno Haible <bruno@clisp.org>
21168 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
21169 * modules/isnanl (Link): New section.
21171 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
21172 * modules/frexp (Link): New section.
21174 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
21175 * modules/frexpl (Link): New section.
21177 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
21178 * modules/ldexpl (Link): New section.
21180 2007-04-03 Bruno Haible <bruno@clisp.org>
21182 * modules/TEMPLATE-EXTENDED: New file.
21183 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
21185 2007-04-03 Bruno Haible <bruno@clisp.org>
21187 * DEPENDENCIES: New file.
21188 Suggested by Simon Josefsson.
21190 2007-04-03 Bruno Haible <bruno@clisp.org>
21192 * doc/gnulib.texi: Escape @.
21194 2007-04-03 James Youngman <jay@gnu.org>
21195 and Paul Eggert <eggert@cs.ucla.edu>
21197 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
21198 birthtime on all systems that have birthtime, not just those which
21199 use st_birthtimensec rather than st_birthtim. Putting zero in
21200 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
21201 that the birth time is not available for files on an NFS mount.
21203 2007-04-03 Simon Josefsson <simon@josefsson.org>
21205 * modules/memxor: Move back from crypto/, suggested by Bruno.
21206 * modules/crypto/hmac-sha1: Fix memxor dependency.
21208 * modules/crypto/gc: Moved from ../.
21210 2007-04-02 Eric Blake <ebb9@byu.net>
21212 * lib/ldexpl.c (includes): Avoid libm.
21214 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
21216 2007-04-02 Bruno Haible <bruno@clisp.org>
21218 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
21221 2007-04-02 Bruno Haible <bruno@clisp.org>
21223 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
21224 x86 or x86_64 platforms running MacOS X.
21225 Reported by Ryan Schmidt <@ryandesign.com>.
21227 2007-04-02 Bruno Haible <bruno@clisp.org>
21229 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
21232 2007-04-01 Simon Josefsson <simon@josefsson.org>
21234 * modules/crypto/arcfour: Moved from ../.
21235 * modules/crypto/arcfour-tests: Moved from ../.
21236 * modules/crypto/arctwo: Moved from ../.
21237 * modules/crypto/arctwo-tests: Moved from ../.
21238 * modules/crypto/des: Moved from ../.
21239 * modules/crypto/des-tests: Moved from ../.
21240 * modules/crypto/gc-arcfour: Moved from ../.
21241 * modules/crypto/gc-arcfour-tests: Moved from ../.
21242 * modules/crypto/gc-arctwo: Moved from ../.
21243 * modules/crypto/gc-arctwo-tests: Moved from ../.
21244 * modules/crypto/gc-des: Moved from ../.
21245 * modules/crypto/gc-des-tests: Moved from ../.
21246 * modules/crypto/gc-hmac-md5: Moved from ../.
21247 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
21248 * modules/crypto/gc-hmac-sha1: Moved from ../.
21249 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
21250 * modules/crypto/gc-md2: Moved from ../.
21251 * modules/crypto/gc-md2-tests: Moved from ../.
21252 * modules/crypto/gc-md4: Moved from ../.
21253 * modules/crypto/gc-md4-tests: Moved from ../.
21254 * modules/crypto/gc-md5: Moved from ../.
21255 * modules/crypto/gc-md5-tests: Moved from ../.
21256 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
21257 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
21258 * modules/crypto/gc-random: Moved from ../.
21259 * modules/crypto/gc-rijndael: Moved from ../.
21260 * modules/crypto/gc-rijndael-tests: Moved from ../.
21261 * modules/crypto/gc-sha1: Moved from ../.
21262 * modules/crypto/gc-sha1-tests: Moved from ../.
21263 * modules/crypto/gc-tests: Moved from ../.
21264 * modules/crypto/hmac-md5: Moved from ../.
21265 * modules/crypto/hmac-md5-tests: Moved from ../.
21266 * modules/crypto/hmac-sha1: Moved from ../.
21267 * modules/crypto/hmac-sha1-tests: Moved from ../.
21268 * modules/crypto/md2: Moved from ../.
21269 * modules/crypto/md2-tests: Moved from ../.
21270 * modules/crypto/md4: Moved from ../.
21271 * modules/crypto/md4-tests: Moved from ../.
21272 * modules/crypto/md5: Moved from ../.
21273 * modules/crypto/md5-tests: Moved from ../.
21274 * modules/crypto/memxor: Moved from ../.
21275 * modules/crypto/rijndael: Moved from ../.
21276 * modules/crypto/rijndael-tests: Moved from ../.
21277 * modules/crypto/sha1: Moved from ../.
21279 2007-03-30 James Youngman <jay@gnu.org>
21281 * tests/test-stat-time.c (prepare_test): use chmod() rather than
21282 rename() to change the ctime of a file (because ctime is unaffected
21283 by rename on jfs2 on AIX 5.1).
21284 (main): Start by doing cleanup, in case a previous run failed leaving
21287 2007-03-31 Bruno Haible <bruno@clisp.org>
21289 Support old proprietary implementations of iconv.
21290 * modules/iconv_open: New file.
21291 * lib/iconv_.h: New file.
21292 * m4/iconv_h.m4: New file.
21293 * lib/iconv_open.c: New file.
21294 * lib/iconv_open-aix.gperf: New file.
21295 * lib/iconv_open-hpux.gperf: New file.
21296 * lib/iconv_open-irix.gperf: New file.
21297 * lib/iconv_open-osf.gperf: New file.
21298 * m4/iconv_open.m4: New file.
21299 * modules/linebreak (Depends-on): Add iconv_open.
21300 * modules/striconv (Depends-on): Likewise.
21301 * modules/striconveh (Depends-on): Likewise.
21302 * modules/unicodeio (Depends-on): Likewise.
21303 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
21305 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
21306 conversion if cd is (iconv_t)(-1).
21307 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
21310 2007-03-31 Bruno Haible <bruno@clisp.org>
21312 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
21313 work on Solaris either. Protect also second use of "autodetect_jp".
21315 2007-03-31 Bruno Haible <bruno@clisp.org>
21317 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
21318 the function is not present.
21320 2007-03-31 Bruno Haible <bruno@clisp.org>
21322 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
21323 the function is not present.
21325 2007-03-31 Bruno Haible <bruno@clisp.org>
21327 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
21328 a bug in HP-UX iconv_open().
21330 2007-03-31 Bruno Haible <bruno@clisp.org>
21332 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
21333 (Mathematics <math.h>): New section, add fpieee.
21334 (Input/output <stdio.h>): Add fseterr.
21335 (Mathematics <math.h>): New section, add printf-frexp.
21336 (Container data structures): Add sublist.
21337 (Core language properties): Add fpucw, inline.
21338 (Functions for greatest-width integer types <inttypes.h>): Add
21339 imaxabs, imaxdiv, inttypes.
21340 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
21341 isnanl-nolibm, ldexp.
21342 (Mathematics <math.h>): New section, add printf-frexpl.
21343 (Support for systems lacking POSIX:2001): Add fprintf-posix,
21344 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
21345 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
21346 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
21347 (Unicode string functions): Add unistr/u*-mbtoucr.
21348 (Java): Add javacomp-script, javaexec-script.
21349 (C#): Add csharpcomp-script, csharpexec-script.
21350 (Support for building libraries and executables): Add havelib,
21352 (Support for maintaining and releasing projects): Renamed from
21353 'Support for maintaining and release projects'. Add announce-gen.
21355 2007-03-31 Bruno Haible <bruno@clisp.org>
21357 * README: Talk primarily about git.
21358 (git and CVS): Renamed from CVS.
21359 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
21360 gnulib is available through git.
21361 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
21363 2007-03-30 Bruno Haible <bruno@clisp.org>
21365 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
21366 * lib/poll_.h: Likewise.
21367 * lib/stat_.h: Likewise.
21368 * lib/sys_time_.h: Likewise.
21369 * lib/sysexit_.h: Likewise.
21370 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
21371 * lib/stdbool_.h: Likewise.
21372 * lib/byteswap_.h: Add double-inclusion guard.
21374 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
21376 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
21378 2007-03-30 Karl Berry <karl@gnu.org>
21380 * config/srclist-update: double space after USA in the license
21381 substitution, since that's how it's usually (?) written.
21383 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
21385 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
21386 reported by Bruno Haible.
21388 2007-03-29 Bruno Haible <bruno@clisp.org>
21390 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
21391 a bug in AIX iconv().
21393 2007-03-29 Bruno Haible <bruno@clisp.org>
21395 * modules/ldexpl-tests: New file.
21396 * tests/test-ldexpl.c: New file.
21398 2007-03-29 Bruno Haible <bruno@clisp.org>
21400 * lib/ldexpl.c: Include fpucw.h.
21401 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
21403 * modules/ldexpl (Depends-on): Add fpucw.
21405 2007-03-29 Bruno Haible <bruno@clisp.org>
21407 * modules/ldexpl: New file.
21408 * m4/ldexpl.m4: New file.
21409 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
21411 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
21413 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
21415 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
21416 gl_FUNC_LDEXPL_WORKS.
21417 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
21418 * modules/mathl (Files): Remove lib/ldexpl.c.
21419 (Depends-on): Add ldexpl.
21421 2007-03-29 Bruno Haible <bruno@clisp.org>
21423 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
21425 2007-03-29 Bruno Haible <bruno@clisp.org>
21427 * tests/test-striconveh.c (main): Don't assume that a direct conversion
21428 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
21429 and possibly also HP-UX.
21430 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
21431 work on AIX, IRIX, HP-UX, OSF/1.
21432 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
21433 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
21434 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
21435 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
21436 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
21437 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
21439 2007-03-29 Bruno Haible <bruno@clisp.org>
21441 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
21443 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
21445 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
21446 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
21448 2007-03-29 Eric Blake <ebb9@byu.net>
21450 * lib/acl-internal.h: Remove redundant include.
21451 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
21452 Cygwin when a file is locked.
21454 2007-03-29 Bruno Haible <bruno@clisp.org>
21456 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
21458 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
21460 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
21462 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
21463 try to remove a parent directory if the child couldn't be removed
21464 (except for the first rmdir, which could fail because the child
21465 doesn't exist). Problem reported by Jeff Blaine in
21466 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
21468 2007-03-28 Bruno Haible <bruno@clisp.org>
21470 * lib/striconveh.c (utf8conv_carefully): New function.
21471 (mem_cd_iconveh_internal): Invoke it.
21473 2007-03-28 Bruno Haible <bruno@clisp.org>
21475 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
21476 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
21478 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
21479 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
21482 2007-03-28 Bruno Haible <bruno@clisp.org>
21484 * modules/unistr/u8-mbtoucr: New file.
21485 * lib/unistr/u8-mbtoucr.c: New file.
21486 * modules/unistr/u16-mbtoucr: New file.
21487 * lib/unistr/u16-mbtoucr.c: New file.
21488 * modules/unistr/u16-mbtoucr: New file.
21489 * lib/unistr/u16-mbtoucr.c: New file.
21490 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
21492 2007-03-27 Simon Josefsson <simon@josefsson.org>
21493 Bruno Haible <bruno@clisp.org>
21495 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
21496 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
21497 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
21499 * m4/stdio_h.m4: Add stubs for vasprintf too.
21501 * modules/stdio: Support vasprintf in sed command.
21503 * modules/vasprintf: Depend on stdio for prototypes. Remove
21504 vasprintf.h. Add stdio module indicator.
21506 * lib/stdio_.h: Declare asprintf and vasprintf, based on
21509 * lib/vasprintf.h: File removed.
21511 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
21512 * lib/vasprintf.c: Ditto.
21513 * lib/xvasprintf.c: Ditto.
21514 * tests/test-vasprintf-posix.c: Ditto.
21515 * tests/test-vasprintf.c: Ditto.
21517 2007-03-27 Bruno Haible <bruno@clisp.org>
21519 Make vasnprintf multithread-safe.
21520 * lib/vasnprintf.c (decimal_point_char): New function.
21521 (VASNPRINTF): Use it.
21522 Suggested by Simon Josefsson.
21524 2007-03-27 Eric Blake <ebb9@byu.net>
21526 Support sub-second birthtime on cygwin.
21527 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
21528 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
21529 (get_stat_birthtime): Also work with st_birthtim.
21531 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
21533 * lib/stat-time.h (USE_BIRTHTIME): Remove.
21534 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
21535 (get_stat_birthtime_ns): Do not try to use "spare" fields.
21536 (get_stat_birthtime_ns): Simplify compile-time tests.
21537 (get_stat_birthtime): Change the API to look like
21538 get_stat_mtime etc., except return a negative tv_nsec on error.
21539 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
21540 Don't check for "spare" fields.
21541 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
21542 or for struct stat.st_birthtime, as these tests aren't used.
21543 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
21545 2007-03-27 Bruno Haible <bruno@clisp.org>
21547 * lib/stat-time.h: Include <sys/stat.h>.
21549 2007-03-27 James Youngman <jay@gnu.org>
21551 * lib/stat-time.h (get_stat_birthtime): New function for
21552 retrieving st_birthtime as provided by UFS2 (hence *BSD).
21553 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
21555 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
21556 * modules/stat-time-test: New file.
21557 * tests/test-stat-time.c: New test, devised by Bruno Haible.
21559 2007-03-26 Bruno Haible <bruno@clisp.org>
21561 Better support of signalling NaNs.
21562 * lib/atanl.c: Include isnanl.h.
21563 (atanl): Perform test for NaN at the beginning of the function and
21564 through a call to isnanl.
21565 * lib/cosl.c: Include isnanl.h.
21566 (cosl): Perform test for NaN at the beginning of the function and
21567 through a call to isnanl.
21568 * lib/ldexpl.c: Include isnanl.h.
21569 (ldexpl): Perform test for NaN through a call to isnanl.
21570 * lib/logl.c: Include isnanl.h.
21571 (logl): Perform test for NaN at the beginning of the function and
21572 through a call to isnanl.
21573 * lib/sinl.c: Include isnanl.h.
21574 (sinl): Perform test for NaN at the beginning of the function and
21575 through a call to isnanl.
21576 * lib/sqrtl.c: Include isnanl.h.
21577 (sqrtl): Perform test for NaN at the beginning of the function and
21578 through a call to isnanl.
21579 * lib/tanl.c: Include isnanl.h.
21580 (tanl): Perform test for NaN at the beginning of the function and
21581 through a call to isnanl.
21582 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
21583 * modules/mathl (Depends-on): Add isnanl.
21585 2007-03-26 Eric Blake <ebb9@byu.net>
21587 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
21588 regression in logic sense of previous patch.
21590 2007-03-26 Bruno Haible <bruno@clisp.org>
21592 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
21593 unportable shell command "if ! ...".
21594 Reported by Ralf Wildenhues.
21596 2007-03-25 Bruno Haible <bruno@clisp.org>
21598 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
21599 <sysexits.h> file, and only add EX_CONFIG.
21600 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
21601 absolute file name and whether it is sufficient. Substitute also
21602 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
21603 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
21604 ABSOLUTE_SYSEXITS_H into sysexits.h.
21606 2007-03-25 Bruno Haible <bruno@clisp.org>
21608 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
21611 2007-03-25 Bruno Haible <bruno@clisp.org>
21613 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
21614 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
21616 2007-03-25 Bruno Haible <bruno@clisp.org>
21618 * lib/vasnprintf.c: Include langinfo.h.
21619 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
21621 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
21622 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
21623 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
21624 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
21625 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
21626 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
21627 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
21628 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
21629 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
21630 Reported by Simon Josefsson.
21632 2007-03-25 Bruno Haible <bruno@clisp.org>
21634 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
21635 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
21636 * modules/vasnprintf (Depends-on): Add stdint.
21638 2007-03-25 Bruno Haible <bruno@clisp.org>
21640 * modules/fpieee: New file.
21641 * m4/fpieee.m4: New file.
21642 * modules/isnan-nolibm (Depends-on): Add fpieee.
21643 * modules/isnanl-nolibm (Depends-on): Add fpieee.
21644 * modules/isnanl (Depends-on): Add fpieee.
21646 2007-03-25 Bruno Haible <bruno@clisp.org>
21648 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
21650 2007-03-25 Bruno Haible <bruno@clisp.org>
21652 Avoid test failures on IRIX 6.5.
21653 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
21655 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
21659 2007-03-25 Bruno Haible <bruno@clisp.org>
21661 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
21662 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
21663 exists but doesn't work.
21664 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
21665 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
21666 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
21667 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
21669 2007-03-25 Bruno Haible <bruno@clisp.org>
21671 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
21672 returns inf. Needed on IRIX 6.5.
21674 2007-03-25 Bruno Haible <bruno@clisp.org>
21676 * tests/test-frexpl.c: Include isnanl-nolibm.h.
21677 (main): Use isnanl instead of x != x idiom.
21678 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
21680 * tests/test-frexp.c: Include isnan.h.
21681 (main): Use isnan instead of x != x idiom.
21682 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
21684 2007-03-25 Bruno Haible <bruno@clisp.org>
21686 * tests/test-frexp.c (NaN): New function/macro.
21687 (main): Use it instead of 0.0 / 0.0.
21688 * tests/test-isnan.c (NaN): New function/macro.
21689 (main): Use it instead of 0.0 / 0.0.
21690 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
21691 (test_function): Use it instead of 0.0 / 0.0.
21692 * tests/test-vasprintf-posix.c (NaN): New function/macro.
21693 (test_function): Use it instead of 0.0 / 0.0.
21694 * tests/test-snprintf-posix.h (NaN): New function/macro.
21695 (test_function): Use it instead of 0.0 / 0.0.
21696 * tests/test-sprintf-posix.h (NaN): New function/macro.
21697 (test_function): Use it instead of 0.0 / 0.0.
21698 * tests/test-fprintf-posix.h (NaN): New function/macro.
21699 (test_function): Use it instead of 0.0 / 0.0.
21700 * tests/test-printf-posix.h (NaN): New function/macro.
21701 (test_function): Use it instead of 0.0 / 0.0.
21703 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
21705 2007-03-25 Bruno Haible <bruno@clisp.org>
21707 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
21709 2007-03-25 Bruno Haible <bruno@clisp.org>
21711 * lib/regexec.c (merge_state_with_log): Make static.
21713 2007-03-25 Bruno Haible <bruno@clisp.org>
21715 * lib/trigl.c (kernel_rem_pio2): Make static.
21717 2007-03-25 Bruno Haible <bruno@clisp.org>
21719 * lib/sincosl.c (sincosl_table): Make static.
21721 2007-03-25 Bruno Haible <bruno@clisp.org>
21723 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
21724 if the compiler does not support C99.
21726 2007-03-25 Bruno Haible <bruno@clisp.org>
21728 * modules/time (Makefile.am): Ensure all rule action lines start with a
21731 2007-03-24 Bruno Haible <bruno@clisp.org>
21733 * modules/tsearch-tests: New file.
21734 * tests/test-tsearch.sh: New file.
21735 * tests/test-tsearch.c: New file, mostly copied from glibc.
21737 * modules/search-tests: New file.
21738 * tests/test-search.c: New file.
21740 * modules/search: New file.
21741 * lib/search_.h: New file, incorporating lib/tsearch.h.
21742 * m4/search_h.m4: New file.
21743 * lib/tsearch.h: Remove file.
21744 * lib/tsearch.c: Include search.h instead of tsearch.h.
21745 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
21747 * modules/tsearch (Files): Remove lib/tsearch.h.
21748 (Depends-on): Add search.
21749 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
21750 (Include): Change tsearch.h into search.h.
21752 2007-03-24 Bruno Haible <bruno@clisp.org>
21754 * modules/fpucw: New file.
21755 * lib/fpucw.h: New file.
21756 * lib/frexp.c: Include fpucw.h.
21757 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
21759 * lib/printf-frexp.c: Include fpucw.h.
21760 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
21762 * lib/vasnprintf.c: Include fpucw.h.
21763 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
21764 'long double' calculations.
21765 * tests/test-frexpl.c: Include fpucw.h.
21766 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
21767 * tests/test-printf-frexpl.c: Include fpucw.h.
21768 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
21769 * modules/frexpl (Depends-on): Add fpucw.
21770 * modules/printf-frexpl (Depends-on): Likewise.
21771 * modules/fprintf-posix (Depends-on): Likewise.
21772 * modules/snprintf-posix (Depends-on): Likewise.
21773 * modules/sprintf-posix (Depends-on): Likewise.
21774 * modules/vasnprintf-posix (Depends-on): Likewise.
21775 * modules/vasprintf-posix (Depends-on): Likewise.
21776 * modules/vfprintf-posix (Depends-on): Likewise.
21777 * modules/vsnprintf-posix (Depends-on): Likewise.
21778 * modules/vsprintf-posix (Depends-on): Likewise.
21779 * modules/frexpl-tests (Depends-on): Likewise.
21780 * modules/printf-frexpl-tests (Depends-on): Likewise.
21782 2007-03-24 Bruno Haible <bruno@clisp.org>
21784 * lib/float+.h: New file.
21785 * lib/isnan.c: Include float+.h.
21787 (FUNC): Compare only SIZE bytes of the value.
21788 * lib/vasnprintf.c: Include float+.h.
21789 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
21790 SIZEOF_LDBL or SIZEOF_DBL bytes.
21791 * modules/isnan-nolibm (Files): Add lib/float+.h.
21792 * modules/isnanl-nolibm (Files): Add lib/float+.h.
21793 * modules/isnanl (Files): Add lib/float+.h.
21794 * modules/vasnprintf (Files): Add lib/float+.h.
21796 2007-03-24 Bruno Haible <bruno@clisp.org>
21798 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
21799 include isnanl-nolibm.h.
21801 2007-03-24 Bruno Haible <bruno@clisp.org>
21803 * tests/test-read-file.c (main): Don't produce spurious output for
21804 expected situations. Make the test fail if it encountered unexpected
21807 2007-03-24 Bruno Haible <bruno@clisp.org>
21809 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
21810 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
21812 2007-03-24 Bruno Haible <bruno@clisp.org>
21814 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
21816 2007-03-24 Bruno Haible <bruno@clisp.org>
21818 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
21819 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
21821 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
21822 * modules/utf8-ucs4: Turn into a symbolic link to module
21825 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
21827 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
21828 unistr/u8-mbtouc-unsafe.
21830 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
21831 * modules/utf16-ucs4: Turn into a symbolic link to module
21834 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
21836 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
21837 unistr/u16-mbtouc-unsafe.
21839 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
21840 * modules/ucs4-utf8: Turn into a symbolic link to module
21843 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
21844 * modules/ucs4-utf16: Turn into a symbolic link to module
21847 2007-03-24 Bruno Haible <bruno@clisp.org>
21849 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
21850 Enable the function only if HAVE_INLINE.
21851 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
21852 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
21853 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
21854 Enable the function only if HAVE_INLINE.
21855 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
21856 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
21857 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
21858 Enable the function only if HAVE_INLINE.
21859 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
21860 Enable the function only if HAVE_INLINE.
21861 * modules/utf8-ucs4: Update.
21862 * modules/utf8-ucs4-unsafe: Update.
21863 * modules/utf16-ucs4: Update.
21864 * modules/utf16-ucs4-unsafe: Update.
21865 * modules/ucs4-utf8: Update.
21866 * modules/ucs4-utf16: Update.
21868 2007-03-24 Bruno Haible <bruno@clisp.org>
21870 * lib/utf8-ucs4.h: Remove file.
21871 * lib/utf8-ucs4-unsafe.h: Remove file.
21872 * lib/utf16-ucs4.h: Remove file.
21873 * lib/utf16-ucs4-unsafe.h: Remove file.
21874 * lib/ucs4-utf8.h: Remove file.
21875 * lib/ucs4-utf16.h: Remove file.
21876 * lib/unistr.h: Include their previous contents.
21877 * m4/utf-ucs4.m4: Remove file.
21878 * m4/ucs4-utf.m4: Remove file.
21879 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
21880 (Depends-on): Add unistr/base.
21881 (configure.ac): Remove gl_UTF_UCS4.
21882 (Makefile.am): Update.
21883 (Include): Change to unistr.h.
21884 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
21885 (Depends-on): Add unistr/base.
21886 (configure.ac): Remove gl_UTF_UCS4.
21887 (Makefile.am): Update.
21888 (Include): Change to unistr.h.
21889 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
21890 (Depends-on): Add unistr/base.
21891 (configure.ac): Remove gl_UTF_UCS4.
21892 (Makefile.am): Update.
21893 (Include): Change to unistr.h.
21894 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
21895 (Depends-on): Add unistr/base.
21896 (configure.ac): Remove gl_UTF_UCS4.
21897 (Makefile.am): Update.
21898 (Include): Change to unistr.h.
21899 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
21900 (Depends-on): Add unistr/base.
21901 (configure.ac): Remove gl_UCS4_UTF.
21902 (Makefile.am): Update.
21903 (Include): Change to unistr.h.
21904 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
21905 (Depends-on): Add unistr/base.
21906 (configure.ac): Remove gl_UCS4_UTF.
21907 (Makefile.am): Update.
21908 (Include): Change to unistr.h.
21909 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
21910 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
21911 utf8-ucs4-unsafe.h.
21912 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
21913 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
21914 utf16-ucs4-unsafe.h.
21915 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
21916 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
21917 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
21918 * lib/unistr/u8-strchr.c: Likewise.
21919 * lib/unistr/u8-strrchr.c: Likewise.
21920 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
21921 * lib/unistr/u16-strchr.c: Likewise.
21922 * lib/unistr/u16-strrchr.c: Likewise.
21923 * lib/striconveh.c: Update.
21924 * lib/linebreak.c: Update.
21926 2007-03-24 Bruno Haible <bruno@clisp.org>
21928 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
21929 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
21931 2007-03-22 Bruno Haible <bruno@clisp.org>
21933 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
21935 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
21937 * MODULES.html.sh (File system functions): New module write-any-file.
21938 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
21939 * m4/write-any-file.m4: New files.
21941 2007-03-23 Eric Blake <ebb9@byu.net>
21943 * gnulib-tool: Rearrange space-tab sequences, since some editors
21946 2007-03-23 Eric Blake <ebb9@byu.net>
21948 * lib/version-etc.c (version_etc_va): Update license wording to
21949 be more concise. Recommended by Richard Stallman.
21951 2007-03-22 Bruno Haible <bruno@clisp.org>
21953 * lib/poll.c (MSG_PEEK): New fallback definition.
21955 2007-03-22 Bruno Haible <bruno@clisp.org>
21957 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
21958 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
21960 Fixes a compilation error on BeOS.
21962 2007-03-22 Bruno Haible <bruno@clisp.org>
21964 * modules/frexpl-tests: New file.
21965 * tests/test-frexpl.c: New file.
21967 * modules/frexpl: New file.
21968 * m4/frexpl.m4: New file.
21969 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
21970 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
21971 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
21972 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
21973 (Depends-on): Add frexpl. Remove isnanl-nolibm.
21974 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
21976 2007-03-22 Bruno Haible <bruno@clisp.org>
21978 * lib/frexpl.c: Share code with lib/frexp.c.
21979 * modules/mathl (Files): Add lib/frexp.c.
21980 (Depends-on): Add isnanl-nolibm.
21982 2007-03-22 Bruno Haible <bruno@clisp.org>
21984 * modules/printf-frexp (Files): Add m4/frexp.m4.
21985 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
21986 only if the found frexp function actually works.
21988 2007-03-22 Bruno Haible <bruno@clisp.org>
21990 * lib/frexp.c: Remove older implementation that uses divisions.
21992 2007-03-21 Bruno Haible <bruno@clisp.org>
21994 * modules/frexp-tests: New file.
21995 * tests/test-frexp.c: New file.
21997 * modules/frexp: New file.
21998 * lib/frexp.c: New file.
21999 * m4/frexp.m4: New file.
22000 * lib/math_.h (frexp): New declaration.
22001 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
22003 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
22005 2007-03-21 Bruno Haible <bruno@clisp.org>
22007 * modules/isnanl-tests: New file.
22008 * tests/test-isnanl.c: New file.
22010 * modules/isnanl: New file.
22011 * lib/isnanl.h: New file.
22012 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
22013 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
22014 gl_FUNC_ISNANL_WORKS.
22015 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
22018 2007-03-21 Bruno Haible <bruno@clisp.org>
22020 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
22023 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
22024 * lib/vasnprintf.c: Update.
22025 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
22026 tests/test-isnanl.h, remove tests/test-isnanl.c.
22027 (Makefile.am): Update.
22028 * tests/test-isnanl-nolibm.c: New file.
22029 * tests/test-isnanl.h: New file.
22030 * tests/test-isnanl.c: Remove file.
22032 2007-03-21 Jim Meyering <jim@meyering.net>
22034 When trying to open ".", treat ESTALE like EACCES.
22035 * lib/savewd.c (savewd_save): Resort to forking not just upon
22036 failure with EACCES, but also when errno is ESTALE.
22038 2007-03-20 Bruno Haible <bruno@clisp.org>
22040 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
22041 Needed on AIX 5.1. Reported by Matthew Woehlke.
22043 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
22045 Suggestions by Bruno Haible:
22046 * lib/acl-internal.h: Include "gettext.h" rather than rolling
22048 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
22049 * modules/acl (Depends-on): Add gettext.
22051 2007-03-19 Bruno Haible <bruno@clisp.org>
22053 * modules/iconvme: Remove file.
22054 * lib/iconvme.h: Remove file.
22055 * lib/iconvme.c: Remove file.
22056 * m4/iconvme.m4: Remove file.
22058 2007-03-19 Bruno Haible <bruno@clisp.org>
22060 * doc/relocatable-maint.texi: Break long shell script line.
22061 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
22063 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
22065 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
22066 handle file_has_acl.
22067 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
22068 * lib/acl.c: Move header inclusions and related macro defns into
22069 lib/acl-internal.h.
22070 (S_ISLNK): Remove defn, since that's now done for us.
22071 (file_has_acl): Move to lib/file-has-acl.c.
22072 Call acl_trivial if available. This is the crucial part of the fix.
22073 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
22074 shared within the library. Rewrite a bit, partly to make it compatible
22075 with the GNU coding style.
22076 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
22077 Remove unnecessary double-quotes.
22078 Don't test for acl_to_text; the build will catch that.
22079 Replace acl_entries if it doesn't exist and it is needed.
22080 Check for -lsec and acl_trivial (as used on Solaris 10).
22081 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
22082 lib/file-has-acl.c.
22083 (Depends-on): Add sys_stat, for S_ISLNK.
22085 2007-03-19 Ben Pfaff <blp@gnu.org>
22087 * doc/gnulib.texi: Fix typos.
22088 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
22090 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
22092 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
22093 If size is zero here, buf must be zero.
22095 2007-03-19 Simon Josefsson <simon@josefsson.org>
22097 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
22100 2007-03-18 Bruno Haible <bruno@clisp.org>
22102 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
22103 Suggested by Eric Blake.
22105 2007-03-18 Ben Pfaff <blp@gnu.org>
22107 * doc/relocatable.texi: Recommend using as prefix a directory
22108 that does not exist and will never be created. Based on
22109 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
22112 2007-03-17 Bruno Haible <bruno@clisp.org>
22114 * lib/fchownat.c: Include lchown.h.
22116 2007-03-17 Bruno Haible <bruno@clisp.org>
22118 Fix endless loop when the given allocated size was > INT_MAX.
22119 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
22120 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
22121 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
22122 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
22123 * lib/sprintf.c (sprintf): Likewise.
22125 2007-03-17 Bruno Haible <bruno@clisp.org>
22127 * tests/test-argp-2.sh (func_compare): Output a context diff.
22129 2007-03-17 Bruno Haible <bruno@clisp.org>
22131 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
22132 locale's decimal-point character.
22134 2007-03-17 Bruno Haible <bruno@clisp.org>
22136 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
22137 before comparing it. Needed because on some platforms (e.g. x86) a
22138 'long double' occupies less bytes than sizeof (long double).
22140 2007-03-17 Bruno Haible <bruno@clisp.org>
22142 * tests/test-crc.c (main): Make printf statements 64-bit clean.
22143 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
22144 * tests/test-getaddrinfo.c (simple): Likewise.
22145 * tests/test-read-file.c (main): Likewise.
22147 2007-03-17 Bruno Haible <bruno@clisp.org>
22149 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
22151 2007-03-17 Bruno Haible <bruno@clisp.org>
22153 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
22156 2007-03-17 Bruno Haible <bruno@clisp.org>
22158 * tests/test-c-strcasecmp.c: Include c-strcase.h.
22159 * tests/test-c-strncasecmp.c: Likewise.
22161 2007-03-17 Bruno Haible <bruno@clisp.org>
22163 * modules/stdlib (Depends-on): Add unistd.
22164 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
22165 Needed for MacOS X 10.3.
22167 2007-03-17 Bruno Haible <bruno@clisp.org>
22169 * lib/unistr/u-strdup.h: Include <stdlib.h>.
22171 2007-03-17 Bruno Haible <bruno@clisp.org>
22173 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
22175 2007-03-17 Bruno Haible <bruno@clisp.org>
22177 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
22178 to reflect files copied from gnulib (with or without modifications).
22179 Suggested by Jim Meyering.
22181 2007-03-17 Eric Blake <ebb9@byu.net>
22183 * NEWS: Document stdlib change from 2007-02-18.
22185 2007-03-17 Jim Meyering <jim@meyering.net>
22187 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
22188 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
22189 someone uses a name containing shell meta-characters.
22190 Reported by Alfred M. Szmidt.
22192 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
22194 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
22196 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
22197 and copy gettext configuration files only if configure.ac contains
22198 a use of AM_GNU_GETTEXT_VERSION.
22200 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
22202 * build-aux/bootstrap (gnulib_name): New variable.
22203 (gnulib_tool_options): Use it.
22205 2007-03-13 Simon Josefsson <simon@josefsson.org>
22207 * tests/test-des.c: Use new namespace.
22209 2007-03-15 Bruno Haible <bruno@clisp.org>
22211 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
22212 Reported by James Youngman <jay@gnu.org>.
22214 2007-03-15 Bruno Haible <bruno@clisp.org>
22216 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
22217 declared prototype. Needed with cc on OSF/1 5.1.
22219 2007-03-15 Bruno Haible <bruno@clisp.org>
22221 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
22222 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
22223 (struct gl_list_implementation): Add dispose_fn argument to the
22224 'create_empty', 'create' methods.
22225 (struct gl_list_impl_base): Add field 'dispose_fn'.
22226 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
22228 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
22229 dispose_fn argument.
22230 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
22231 dispose_fn on the dropped values.
22232 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
22233 dispose_fn argument.
22234 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
22236 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
22237 (gl_tree_remove_node): Call dispose_fn on the dropped value.
22238 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
22239 (gl_tree_remove_node): Call dispose_fn on the dropped value.
22240 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
22242 (gl_tree_list_free): Call dispose_fn on the dropped values.
22243 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
22244 the dropped values.
22245 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
22246 Add dispose_fn argument.
22247 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
22248 Call dispose_fn on the dropped values.
22249 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
22250 Add dispose_fn argument.
22251 (gl_sublist_create): Initialize the 'dispose_fn' field.
22252 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
22253 * tests/test-array_list.c (main): Update.
22254 * tests/test-carray_list.c (main): Update.
22255 * tests/test-avltree_list.c (main): Update.
22256 * tests/test-rbtree_list.c (main): Update.
22257 * tests/test-avltreehash_list.c (main): Update.
22258 * tests/test-rbtreehash_list.c (main): Update.
22259 * tests/test-linked_list.c (main): Update.
22260 * tests/test-linkedhash_list.c (main): Update.
22261 * tests/test-array_oset.c (main): Update.
22263 2007-03-15 Bruno Haible <bruno@clisp.org>
22265 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
22266 (gl_oset_create_empty): Add dispose_fn argument.
22267 (struct gl_oset_implementation): Add dispose_fn argument to
22268 'create_empty' method.
22269 (struct gl_oset_impl_base): Add dispose_fn field.
22270 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
22271 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
22272 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
22274 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
22275 (gl_tree_oset_free): Call dispose_fn on the dropped values.
22276 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
22278 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
22280 * tests/test-array_oset.c (main): Update.
22281 * tests/test-avltree_oset.c (main): Update.
22282 * tests/test-rbtree_oset.c (main): Update.
22283 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
22285 2007-03-13 Bruno Haible <bruno@clisp.org>
22287 * tests/test-stdbool.c (i): Update after last patch.
22289 2007-03-12 Bruno Haible <bruno@clisp.org>
22291 * lib/quotearg.c: Include <wctype.h> early, before the definition of
22292 the iswprint macro. Needed on Solaris 2.5.1.
22294 2007-03-12 Bruno Haible <bruno@clisp.org>
22296 * tests/test-printf-frexp.c (main): Declare x as volatile.
22298 2007-03-12 Simon Josefsson <simon@josefsson.org>
22300 * doc/gnulib.texi (Build robot for gnulib): New section.
22302 2007-03-12 Jim Meyering <jim@meyering.net>
22304 * build-aux/bootstrap: New file.
22305 * build-aux/bootstrap.conf: New file, from coreutils.
22307 2007-03-11 Bruno Haible <bruno@clisp.org>
22309 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
22311 2007-03-12 Simon Josefsson <simon@josefsson.org>
22313 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
22314 avoid collisions with 'des_setkey'. Reported by Bruno Haible
22315 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
22317 2007-03-11 Bruno Haible <bruno@clisp.org>
22319 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
22320 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
22322 2007-03-11 Bruno Haible <bruno@clisp.org>
22324 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
22325 formula. Needed for SunPRO C 5.0.
22327 2007-03-11 Bruno Haible <bruno@clisp.org>
22329 * modules/long-options (Depends-on): Add getopt.
22331 2007-03-11 Bruno Haible <bruno@clisp.org>
22333 * modules/modechange (Depends-on): Add stdbool.
22335 2007-03-11 Bruno Haible <bruno@clisp.org>
22337 * modules/i-ring (Depends-on): Add stdbool.
22339 2007-03-11 Bruno Haible <bruno@clisp.org>
22341 * modules/gc-des (Depends-on): Add stdbool.
22343 2007-03-11 Bruno Haible <bruno@clisp.org>
22345 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
22347 2007-03-11 Bruno Haible <bruno@clisp.org>
22349 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
22351 2007-03-11 Bruno Haible <bruno@clisp.org>
22353 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
22355 2007-03-11 Bruno Haible <bruno@clisp.org>
22357 * lib/vasnprintf.c (sprintf): Undefine.
22359 2007-03-11 Bruno Haible <bruno@clisp.org>
22361 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
22362 initializers in SunPRO C and Compaq C compilers.
22364 2007-03-11 Bruno Haible <bruno@clisp.org>
22366 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
22367 decrementing code ANSI C compliant.
22369 2007-03-11 Bruno Haible <bruno@clisp.org>
22371 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
22372 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
22374 2007-03-11 Bruno Haible <bruno@clisp.org>
22376 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
22377 <stdbool.h> substitute doesn't pass.
22379 2007-03-11 Bruno Haible <bruno@clisp.org>
22381 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
22383 2007-03-11 Bruno Haible <bruno@clisp.org>
22385 * gnulib-tool (func_create_megatestdir): Create also an autobuild
22386 script, for submission to autobuild.josefsson.org.
22388 2007-03-10 Bruno Haible <bruno@clisp.org>
22390 * modules/canonicalize-lgpl-tests: New file.
22391 * tests/test-canonicalize-lgpl.sh: New file.
22392 * tests/test-canonicalize-lgpl.c: New file.
22394 * modules/c-strcase-tests: New file.
22395 * tests/test-c-strcase.sh: New file.
22396 * tests/test-c-strcasecmp.c: New file.
22397 * tests/test-c-strncasecmp.c: New file.
22399 * modules/atexit-tests: New file.
22400 * tests/test-atexit.sh: New file.
22401 * tests/test-atexit.c: New file.
22403 2007-03-10 Bruno Haible <bruno@clisp.org>
22405 * tests/test-binary-io.sh: Use temporary filenames that are not so
22406 likely to clash with those of other tests (in a parallel make).
22407 * tests/test-binary-io.c: Likewise.
22409 2007-03-10 Bruno Haible <bruno@clisp.org>
22411 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
22412 fallback; use #error instead.
22413 Suggested by Simon Josefsson.
22415 2007-03-10 Bruno Haible <bruno@clisp.org>
22417 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
22418 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
22419 first and the last.
22421 2007-03-10 Bruno Haible <bruno@clisp.org>
22423 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
22425 2007-03-10 Bruno Haible <bruno@clisp.org>
22427 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
22429 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
22430 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
22431 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
22433 2007-03-10 Bruno Haible <bruno@clisp.org>
22435 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
22437 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
22440 2007-03-09 Eric Blake <ebb9@byu.net>
22441 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
22443 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
22444 types are not being provided by gnulib.
22445 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
22446 types are supported.
22448 2007-03-10 Bruno Haible <bruno@clisp.org>
22450 * lib/stdio_.h (__attribute__): New macro.
22451 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
22452 vsprintf): Specify __attribute__ __format__ for GCC.
22453 Suggested by Eric Blake.
22455 2007-03-09 Bruno Haible <bruno@clisp.org>
22457 * modules/printf-posix-tests: New file.
22458 * tests/test-printf-posix.sh: New file.
22459 * tests/test-printf-posix.c: New file.
22461 * modules/printf-posix: New file.
22462 * lib/printf.c: New file.
22463 * m4/printf-posix-rpl.m4: New file.
22464 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
22466 * lib/stdio_.h (printf): New declaration.
22467 (format, __format__, ____printf____, ____scanf____, ____strftime____,
22468 ____strfmon____): New macros.
22469 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
22472 2007-03-09 Bruno Haible <bruno@clisp.org>
22474 * tests/test-vasnprintf-posix2.sh: New file.
22475 * tests/test-vasnprintf-posix2.c: New file.
22476 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
22477 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
22478 (Makefile.am): Activate test-vasnprintf-posix2.sh.
22480 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
22481 a locale dependent decimal point, rather than always '.'.
22483 2007-03-09 Eric Blake <ebb9@byu.net>
22485 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
22486 spite of platforms like Tandem/NSK that define it to -1.
22488 2007-03-08 Bruno Haible <bruno@clisp.org>
22490 * modules/vprintf-posix-tests: New file.
22491 * tests/test-vprintf-posix.sh: New file.
22492 * tests/test-vprintf-posix.c: New file.
22493 * tests/test-printf-posix.h: New file.
22495 * modules/vprintf-posix: New file.
22496 * lib/vprintf.c: New file.
22497 * m4/vprintf-posix.m4: New file.
22498 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
22500 * lib/stdio_.h (vprintf): New declaration.
22501 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
22504 2007-03-08 Bruno Haible <bruno@clisp.org>
22506 * modules/fprintf-posix-tests: New file.
22507 * tests/test-fprintf-posix.sh: New file.
22508 * tests/test-fprintf-posix.c: New file.
22510 * modules/fprintf-posix: New file.
22511 * lib/fprintf.c: New file.
22512 * m4/fprintf-posix.m4: New file.
22513 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
22515 * lib/stdio_.h (fprintf): New declaration.
22516 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
22519 2007-03-08 Bruno Haible <bruno@clisp.org>
22521 * modules/vfprintf-posix-tests: New file.
22522 * tests/test-vfprintf-posix.sh: New file.
22523 * tests/test-vfprintf-posix.c: New file.
22524 * tests/test-fprintf-posix.h: New file.
22525 * tests/test-fprintf-posix.out: New file.
22527 * modules/vfprintf-posix: New file.
22528 * lib/vfprintf.c: New file.
22529 * m4/vfprintf-posix.m4: New file.
22530 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
22532 * lib/stdio_.h (vfprintf): New declaration.
22533 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
22536 2007-03-08 Bruno Haible <bruno@clisp.org>
22538 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
22540 2007-03-08 Bruno Haible <bruno@clisp.org>
22542 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
22543 instead of 'expr' invocations.
22544 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22545 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22546 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22547 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22548 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22549 Suggested by Paul Eggert.
22551 2007-03-08 Bruno Haible <bruno@clisp.org>
22553 * modules/fseterr-tests: New file.
22554 * tests/test-fseterr.c: New file.
22556 * modules/fseterr: New file.
22557 * lib/fseterr.h: New file.
22558 * lib/fseterr.c: New file.
22560 2007-03-08 Bruno Haible <bruno@clisp.org>
22562 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
22563 * lib/getopt_.h: Likewise.
22564 * lib/mbswidth.h: Likewise.
22565 * lib/setenv.h: Likewise.
22566 * lib/vasnprintf.h: Likewise.
22567 * lib/vasprintf.h: Likewise.
22568 * lib/verror.h: Likewise.
22569 * lib/xsetenv.h: Likewise.
22570 * lib/xvasprintf.h: Likewise.
22572 2007-03-08 Jim Meyering <jim@meyering.net>
22574 * users.txt: Add parted.
22576 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
22578 2007-03-07 Bruno Haible <bruno@clisp.org>
22580 * m4/printf.m4: Make the shell script snippets copy&pastable.
22582 2007-03-02 Bruno Haible <bruno@clisp.org>
22584 * lib/netinet_in_.h: New file.
22585 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
22586 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
22587 * modules/netinet_in (Files): Add lib/netinet_in_.h.
22588 (Depends-on): Add absolute-header.
22589 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
22592 2007-03-03 Bruno Haible <bruno@clisp.org>
22594 * lib/sys_select_.h: New file.
22595 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
22596 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
22597 * modules/sys_select (Files): Add lib/sys_select_.h.
22598 (Depends-on): Add absolute-header.
22599 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
22602 2007-03-02 Bruno Haible <bruno@clisp.org>
22604 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
22605 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
22607 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
22608 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
22609 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
22610 * modules/sys_socket (Depends-on): Add absolute-header.
22611 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
22612 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
22613 (Include): Remove requirement of inclusion of <sys/types.h>.
22615 2007-03-02 Bruno Haible <bruno@clisp.org>
22617 * lib/byteswap_.h (bswap_32): Fix formula.
22619 2007-03-06 Bruno Haible <bruno@clisp.org>
22621 * modules/sprintf-posix-tests: New file.
22622 * tests/test-sprintf-posix.c: New file.
22624 * modules/sprintf-posix: New file.
22625 * lib/sprintf.c: New file.
22626 * m4/sprintf-posix.m4: New file.
22627 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
22629 * lib/stdio_.h (sprintf): New declaration.
22630 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
22633 2007-03-06 Bruno Haible <bruno@clisp.org>
22635 * modules/vsprintf-posix-tests: New file.
22636 * tests/test-vsprintf-posix.c: New file.
22637 * tests/test-sprintf-posix.h: New file.
22639 * modules/vsprintf-posix: New file.
22640 * lib/vsprintf.c: New file.
22641 * m4/vsprintf-posix.m4: New file.
22642 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
22644 * lib/stdio_.h (vsprintf): New declaration.
22645 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
22648 2007-03-06 Bruno Haible <bruno@clisp.org>
22650 * modules/vsnprintf (Depend-on): Remove minmax.
22652 2007-03-06 Bruno Haible <bruno@clisp.org>
22654 * modules/snprintf-posix-tests: New file.
22655 * tests/test-snprintf-posix.c: New file.
22657 * modules/snprintf-posix: New file.
22658 * m4/snprintf-posix.m4: New file.
22659 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
22661 (gl_FUNC_SNPRINTF): Invoke it.
22662 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
22663 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
22665 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
22667 2007-03-06 Bruno Haible <bruno@clisp.org>
22669 * modules/vsnprintf-posix-tests: New file.
22670 * tests/test-vsnprintf-posix.c: New file.
22671 * tests/test-snprintf-posix.h: New file.
22673 * modules/vsnprintf-posix: New file.
22674 * m4/vsnprintf-posix.m4: New file.
22675 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
22677 (gl_FUNC_VSNPRINTF): Invoke it.
22678 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
22679 * lib/stdio_.h (vsnprintf): Define as a replacement if
22680 REPLACE_VSNPRINTF is set.
22681 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
22683 2007-03-06 Bruno Haible <bruno@clisp.org>
22685 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
22686 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
22688 2007-03-06 Bruno Haible <bruno@clisp.org>
22690 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
22691 (asinl): Declare also if HAVE_DECL_ASINL is set.
22692 (atanl): Declare also if HAVE_DECL_ATANL is set.
22693 (ceill): Declare also if HAVE_DECL_CEILL is set.
22694 (cosl): Declare also if HAVE_DECL_COSL is set.
22695 (expl): Declare also if HAVE_DECL_EXPL is set.
22696 (floorl): Declare also if HAVE_DECL_FLOORL is set.
22697 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
22698 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
22699 (logl): Declare also if HAVE_DECL_LOGL is set.
22700 (sinl): Declare also if HAVE_DECL_SINL is set.
22701 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
22702 (tanl): Declare also if HAVE_DECL_TANL is set.
22703 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
22704 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
22705 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
22706 declaration of frexpl, ldexpl.
22707 * modules/printf-frexpl (Depends-on): Add math.
22708 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
22710 2007-03-05 Bruno Haible <bruno@clisp.org>
22712 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
22713 frexpl and ldexpl are declared.
22714 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
22716 2007-03-05 Bruno Haible <bruno@clisp.org>
22718 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
22719 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
22721 2007-03-05 Bruno Haible <bruno@clisp.org>
22723 * lib/stdio_.h: Include <stddef.h>.
22725 2007-03-05 Bruno Haible <bruno@clisp.org>
22727 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
22729 2007-03-05 Bruno Haible <bruno@clisp.org>
22731 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
22732 NetBSD 4, from Ralf Wildenhues.
22734 2007-03-04 Bruno Haible <bruno@clisp.org>
22736 * lib/vasprintf.h: Update #if logic for the case when the functions
22737 exist but are overridden.
22739 2007-03-04 Bruno Haible <bruno@clisp.org>
22741 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
22742 implementations: glibc-2.4 and MacOS X 10.3.
22743 * tests/test-vasnprintf-posix.c (test_function): Test also the case
22744 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
22745 * tests/test-vasprintf-posix.c (test_function): Likewise.
22747 2007-03-04 Bruno Haible <bruno@clisp.org>
22749 * modules/vasprintf-posix-tests: New file.
22750 * tests/test-vasprintf-posix.c: New file.
22752 * modules/vasprintf-posix: New file.
22753 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
22755 * m4/vasprintf-posix.m4: New file.
22756 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
22758 (gl_FUNC_VASPRINTF): Invoke it.
22759 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
22761 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
22763 2007-03-04 Bruno Haible <bruno@clisp.org>
22765 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
22766 REPLACE_GETTIMEOFDAY.
22767 * modules/sys_time (Makefile.am): Likewise.
22768 * m4/sys_time_h.m4: Likewise.
22769 * m4/gettimeofday.m4: Likewise.
22771 2007-03-04 Bruno Haible <bruno@clisp.org>
22773 * modules/vasnprintf-posix-tests: New file.
22774 * tests/test-vasnprintf-posix.c: New file.
22776 * modules/vasnprintf-posix: New file.
22777 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
22779 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
22780 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
22781 REPLACE_VASNPRINTF is defined.
22782 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
22783 gl_FUNC_VASNPRINTF.
22784 (gl_FUNC_VASNPRINTF): Invoke it.
22785 * m4/vasnprintf-posix.m4: New file.
22786 * m4/printf.m4: New file.
22788 2007-03-04 Bruno Haible <bruno@clisp.org>
22790 Compile progreloc.c only if --enable-relocatable is specified.
22791 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
22792 if --enable-relocatable was specified.
22793 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
22796 2007-03-04 Jim Meyering <jim@meyering.net>
22798 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
22799 Use it consistently, rather than enumerating errno constants.
22801 2007-03-04 Bruno Haible <bruno@clisp.org>
22803 * modules/xvasprintf-tests: New file.
22804 * tests/test-xvasprintf.c: New file.
22806 * modules/vasprintf-tests: New file.
22807 * tests/test-vasprintf.c: New file.
22809 * modules/vasnprintf-tests: New file.
22810 * tests/test-vasnprintf.c: New file.
22812 * modules/vsnprintf-tests: New file.
22813 * tests/test-vsnprintf.c: New file.
22815 * modules/snprintf-tests: New file.
22816 * tests/test-snprintf.c: New file.
22818 2007-03-04 Bruno Haible <bruno@clisp.org>
22820 Compile relocatable.c only if --enable-relocatable is specified.
22821 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
22822 gl_RELOCATABLE_LIBRARY.
22823 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
22824 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
22825 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
22826 gl_RELOCATABLE_LIBRARY.
22827 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
22828 (Makefile.am): Remove lib_SOURCES.
22829 * modules/relocatable-lib-lgpl (configure.ac): Invoke
22830 gl_RELOCATABLE_LIBRARY.
22831 (Makefile.am): Remove lib_SOURCES.
22832 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
22834 * modules/relocatable-prog-wrapper (configure.ac): Invoke
22835 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
22837 2007-03-04 Bruno Haible <bruno@clisp.org>
22839 * modules/argmatch-tests: New file.
22840 * tests/test-argmatch.c: New file.
22842 * tests/test-allocsa.c (main): Halve the number of loop runs.
22844 * modules/alloca-opt-tests: New file.
22845 * tests/test-alloca-opt.c: New file.
22847 2007-03-04 Jim Meyering <jim@meyering.net>
22849 Work around difference between Linux ACLs and Solaris 10 ZFS.
22850 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
22853 2007-03-03 Bruno Haible <bruno@clisp.org>
22855 * modules/relocatable-prog (Depends-on): Add back progreloc's
22856 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
22858 2007-03-03 Bruno Haible <bruno@clisp.org>
22860 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
22861 * modules/relocatable-lib: New file.
22863 2007-03-03 Bruno Haible <bruno@clisp.org>
22865 * modules/relocatable-prog: Renamed from modules/relocatable.
22866 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
22868 2007-03-03 Bruno Haible <bruno@clisp.org>
22870 * modules/relocatable-script (Files): Add doc/relocatable.texi,
22871 m4/relocatable-lib.m4.
22872 (Depends-on): Remove 'relocatable'.
22873 (configure.ac): Add gl_RELOCATABLE_NOP.
22875 2007-03-03 Bruno Haible <bruno@clisp.org>
22877 * modules/relocatable-prog-wrapper: New file.
22878 * modules/relocatable (Depends-on): Add it. Remove all other
22879 dependencies except progname.
22880 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
22882 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
22883 (gl_FUNC_STRERROR): Nop.
22884 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
22886 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
22887 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
22889 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
22890 (gl_FUNC_READLINK): Update.
22892 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
22894 2007-03-03 Bruno Haible <bruno@clisp.org>
22896 * lib/xreadlink.c: Include <unistd.h> unconditionally.
22897 * modules/xreadlink (Depends-on): Add unistd.
22898 * modules/xreadlink-with-size (Depends-on): Likewise.
22900 2007-03-03 Bruno Haible <bruno@clisp.org>
22902 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
22903 extracted from gt_FUNC_SETENV.
22904 (gt_FUNC_SETENV): Remove macro.
22905 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
22906 remove gt_FUNC_SETENV.
22908 2007-03-03 Bruno Haible <bruno@clisp.org>
22910 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
22911 ENABLE_RELOCATABLE here.
22912 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
22914 2007-03-03 Bruno Haible <bruno@clisp.org>
22916 * modules/rbtreehash-list-tests (Depends-on): Add progname.
22917 * tests/test-rbtreehash_list.c: Include progname.h.
22918 (main): Call set_program_name.
22920 * modules/rbtree-oset-tests (Depends-on): Add progname.
22921 * tests/test-rbtree_oset.c: Include progname.h.
22922 (main): Call set_program_name.
22924 * modules/rbtree-list-tests (Depends-on): Add progname.
22925 * tests/test-rbtree_list.c: Include progname.h.
22926 (main): Call set_program_name.
22928 * modules/linked-list-tests (Depends-on): Add progname.
22929 * tests/test-linked_list.c: Include progname.h.
22930 (main): Call set_program_name.
22932 2007-03-03 Bruno Haible <bruno@clisp.org>
22934 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
22935 All uses of __restrict changed to _Restrict_.
22936 * lib/glob_.h (__restrict): Remove macro.
22938 2007-03-02 Bruno Haible <bruno@clisp.org>
22940 * modules/gettext (configure.ac): Require gettext infrastructure
22941 from version 0.16.1.
22943 2007-03-02 Bruno Haible <bruno@clisp.org>
22945 * modules/linkedhash-list-tests (Depends-on): Add progname.
22946 * tests/test-linkedhash_list.c: Include progname.h.
22947 (main): Call set_program_name.
22949 * modules/carray-list-tests (Depends-on): Add progname.
22950 * tests/test-carray_list.c: Include progname.h.
22951 (main): Call set_program_name.
22953 * modules/avltreehash-list-tests (Depends-on): Add progname.
22954 * tests/test-avltreehash_list.c: Include progname.h.
22955 (main): Call set_program_name.
22957 * modules/avltree-oset-tests (Depends-on): Add progname.
22958 * tests/test-avltree_oset.c: Include progname.h.
22959 (main): Call set_program_name.
22961 * modules/avltree-list-tests (Depends-on): Add progname.
22962 * tests/test-avltree_list.c: Include progname.h.
22963 (main): Call set_program_name.
22965 * modules/array-oset-tests (Depends-on): Add progname.
22966 * tests/test-array_oset.c: Include progname.h.
22967 (main): Call set_program_name.
22969 * modules/array-list-tests (Depends-on): Add progname.
22970 * tests/test-array_list.c: Include progname.h.
22971 (main): Call set_program_name.
22973 * modules/argp-tests (Depends-on): Add progname.
22974 * tests/test-argp.c: Include argp.h first. Include progname.h.
22975 (main): Call set_program_name.
22977 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
22979 * doc/gnulib-tool.texi (Initial import): Reword description of
22980 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
22981 limited effect even if defined after the first system include.
22983 2007-03-01 Bruno Haible <bruno@clisp.org>
22985 * build-aux/config.libpath: Update to libtool-1.5.22.
22986 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22988 2007-03-01 Bruno Haible <bruno@clisp.org>
22990 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
22992 Reported by Ralf Wildenhues.
22994 2007-03-01 Bruno Haible <bruno@clisp.org>
22996 * build-aux/install-reloc: Remove object files left over by some
22998 Reported by Ralf Wildenhues.
23000 2007-03-01 Bruno Haible <bruno@clisp.org>
23002 * build-aux/install-reloc: Break long lines.
23004 2007-03-01 Bruno Haible <bruno@clisp.org>
23006 * doc/relocatable.texi: Document that it may not work on OpenBSD.
23007 Reported by Ralf Wildenhues.
23009 2007-03-01 Bruno Haible <bruno@clisp.org>
23011 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
23012 include ordering constraints.
23014 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
23016 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
23017 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
23018 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
23019 as another example.
23020 * lib/time_.h: Fix misspelling.
23021 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
23022 Require gl_HEADER_TIME_H_DEFAULTS.
23023 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
23024 * m4/time_r.m4 (gl_TIME_R): Likewise.
23025 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
23027 2007-03-01 Bruno Haible <bruno@clisp.org>
23029 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
23030 * m4/utimens.m4 (gl_UTIMENS): Likewise.
23032 2007-03-01 Jim Meyering <jim@meyering.net>
23034 * modules/xreadlink (Maintainer): Add my name.
23035 * modules/xreadlink-with-size (Depends-on): Alphabetize.
23037 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
23038 Bruno Haible <bruno@clisp.org>
23040 * build-aux/install-reloc: Compile also c-ctype.c.
23041 * build-aux/relocatable.sh.in: New file.
23042 * doc/relocatable.texi: New file.
23043 * doc/relocatable-maint.texi: New file.
23044 * doc/gnulib.texi: Include relocatable-maint.texi.
23045 * lib/progreloc.c: Include unistd.h unconditionally.
23046 * lib/relocwrapper.c: Include unistd.h unconditionally.
23048 (add_dotbin): Use c_tolower.
23049 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
23050 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
23051 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
23052 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
23053 to m4/relocatable-lib.m4.
23054 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
23055 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
23056 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
23057 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
23058 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
23059 * modules/relocatable: New file.
23060 * modules/relocatable-lib: New file.
23061 * modules/relocatable-script: New file.
23063 2007-02-28 Bruno Haible <bruno@clisp.org>
23065 Import --enable-relocatable infrastructure.
23066 * build-aux/config.libpath: New file, from GNU gettext.
23067 * build-aux/install-reloc: New file, from GNU gettext.
23068 * build-aux/reloc-ldflags: New file, from GNU gettext.
23069 * lib/relocatable.h: New file, from GNU gettext.
23070 * lib/relocatable.c: New file, from GNU gettext.
23071 * lib/relocwrapper.c: New file, from GNU gettext.
23072 * m4/relocatable.m4: New file, from GNU gettext.
23074 2007-02-28 Bruno Haible <bruno@clisp.org>
23076 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
23078 * modules/xreadlink: New file, from GNU gettext with modifications.
23079 * lib/xreadlink.c: New file, from GNU gettext.
23080 * lib/xreadlink.h: Add comments.
23081 (xreadlink): New declaration.
23083 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
23084 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
23085 lib/xreadlink-with-size.c.
23086 (configure.ac): Remove gl_XREADLINK invocation.
23087 (Makefile.am): Augment lib_SOURCES.
23088 * m4/xreadlink.m4: Remove file.
23089 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
23090 (xreadlink_with_size): Renamed from xreadink.
23091 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
23092 * modules/canonicalize (Depends-on): Replace xreadlink with
23093 xreadlink-with-size.
23094 * lib/canonicalize.c (canonicalize_filename_mode): Update.
23096 2007-02-25 Jim Meyering <jim@meyering.net>
23098 * build-aux/announce-gen: When complaining about excess arguments,
23101 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
23103 * README: Document signed integer overflow situation more
23106 2007-02-25 Bruno Haible <bruno@clisp.org>
23108 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
23109 'a' or 'A' conversion.
23111 2007-02-25 Bruno Haible <bruno@clisp.org>
23113 * modules/filename: Renamed from modules/pathname.
23114 (Files): Replace lib/pathname.h with lib/filename.h. Replace
23115 lib/concatpath.c with lib/concat-filename.c.
23116 (Makefile.am): Update.
23117 (Include): Replace pathname.h with filename.h.
23118 * lib/filename.h: Renamed from lib/pathname.h.
23119 (concatenated_filename): Renamed from concatenated_pathname.
23120 * lib/concat-filename.c: Renamed from lib/concatpath.c.
23121 (concatenated_filename): Renamed from concatenated_pathname.
23122 * lib/findprog.c: Include filename.h instead of pathname.h.
23123 (find_in_path): Update.
23124 * lib/javacomp.c: Include filename.h instead of pathname.h.
23125 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
23126 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
23127 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
23128 is_oldgcj_14_13_usable, is_javac_usable): Update.
23129 * lib/javaexec.c: Include filename.h instead of pathname.h.
23130 (execute_java_class): Update.
23131 * modules/findprog: Update.
23132 * modules/javacomp: Update.
23133 * modules/javaexec: Update.
23134 * MODULES.html.sh (File system functions): Add 'filename', remove
23137 2007-02-25 Bruno Haible <bruno@clisp.org>
23139 * modules/printf-frexpl-tests: New file.
23140 * tests/test-printf-frexpl.c: New file.
23142 * modules/printf-frexpl: New file.
23143 * lib/printf-frexpl.h: New file.
23144 * lib/printf-frexpl.c: New file.
23145 * m4/printf-frexpl.m4: New file.
23147 2007-02-25 Bruno Haible <bruno@clisp.org>
23149 * modules/printf-frexp-tests: New file.
23150 * tests/test-printf-frexp.c: New file.
23152 * modules/printf-frexp: New file.
23153 * lib/printf-frexp.h: New file.
23154 * lib/printf-frexp.c: New file.
23155 * m4/printf-frexp.m4: New file.
23157 2007-02-25 Bruno Haible <bruno@clisp.org>
23159 Assume automake >= 1.10 for the tests.
23160 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
23161 * modules/arctwo-tests: Likewise.
23162 * modules/argp-tests: Likewise.
23163 * modules/avltree-list-tests: Likewise.
23164 * modules/avltree-oset-tests: Likewise.
23165 * modules/avltreehash-list-tests: Likewise.
23166 * modules/carray-list-tests: Likewise.
23167 * modules/crc-tests: Likewise.
23168 * modules/des-tests: Likewise.
23169 * modules/gc-arcfour-tests: Likewise.
23170 * modules/gc-arctwo-tests: Likewise.
23171 * modules/gc-des-tests: Likewise.
23172 * modules/gc-hmac-md5-tests: Likewise.
23173 * modules/gc-hmac-sha1-tests: Likewise.
23174 * modules/gc-md2-tests: Likewise.
23175 * modules/gc-md4-tests: Likewise.
23176 * modules/gc-md5-tests: Likewise.
23177 * modules/gc-pbkdf2-sha1-tests: Likewise.
23178 * modules/gc-rijndael-tests: Likewise.
23179 * modules/gc-sha1-tests: Likewise.
23180 * modules/gc-tests: Likewise.
23181 * modules/getaddrinfo-tests: Likewise.
23182 * modules/hmac-md5-tests: Likewise.
23183 * modules/hmac-sha1-tests: Likewise.
23184 * modules/linked-list-tests: Likewise.
23185 * modules/linkedhash-list-tests: Likewise.
23186 * modules/lock-tests: Likewise.
23187 * modules/md2-tests: Likewise.
23188 * modules/md4-tests: Likewise.
23189 * modules/md5-tests: Likewise.
23190 * modules/rbtree-list-tests: Likewise.
23191 * modules/rbtree-oset-tests: Likewise.
23192 * modules/rbtreehash-list-tests: Likewise.
23193 * modules/read-file-tests: Likewise.
23194 * modules/rijndael-tests: Likewise.
23195 * modules/stdint-tests: Likewise.
23196 * modules/tls-tests: Likewise.
23198 2007-02-24 Bruno Haible <bruno@clisp.org>
23200 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
23201 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
23202 function; instead check whether isnan with a double argument links.
23203 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
23204 function; instead check whether isnan with a 'long double' argument
23206 Reported by Eric Blake <ebb9@byu.net>.
23208 2007-02-24 Bruno Haible <bruno@clisp.org>
23210 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
23212 * lib/isnanl.c: Remove all code. Just include isnan.c.
23213 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
23215 2007-02-25 Jim Meyering <jim@meyering.net>
23217 Avoid conflicting types for 'unsetenv' on FreeBSD.
23218 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
23219 conflicting with FreeBSD's (5.0 and 6.1) function declaration
23222 2007-02-24 Bruno Haible <bruno@clisp.org>
23224 * modules/isnanl-nolibm-tests: New file.
23225 * tests/test-isnanl.c: New file.
23227 * modules/isnanl-nolibm: New file.
23228 * lib/isnanl.h: New file.
23229 * lib/isnanl.c: New file.
23230 * m4/isnanl.m4: New file.
23232 2007-02-24 Bruno Haible <bruno@clisp.org>
23234 * modules/isnan-nolibm-tests: New file.
23235 * tests/test-isnan.c: New file.
23237 * modules/isnan-nolibm: New file.
23238 * lib/isnan.h: New file.
23239 * lib/isnan.c: New file.
23240 * m4/isnan.m4: New file.
23242 2007-02-24 Bruno Haible <bruno@clisp.org>
23244 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
23245 assume that an exponent fits in 20 bits.
23247 2007-02-24 Jim Meyering <jim@meyering.net>
23249 * m4/regex.m4: Update the description of the configure-time option,
23250 --without-included-regex, to state accurately what the defaults are,
23251 and perhaps to give people an idea why using this option is risky.
23253 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
23255 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
23256 loops on small arguments. This attempts to avoid the problem
23257 Bruno Haible reported for AIX 4.3.2 in
23258 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
23260 2007-02-23 Bruno Haible <bruno@clisp.org>
23262 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
23263 Needed for help2man.
23265 2007-02-23 Karl Berry <karl@gnu.org>
23267 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
23268 exists, foo.h should be cvs-ignored, not committed.
23270 2007-02-23 Eric Blake <ebb9@byu.net>
23272 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
23273 * lib/stat-time.h (includes): Likewise.
23274 * lib/utimecmp.c (includes): Likewise.
23275 * lib/utimens.h (includes): Likewise.
23276 * lib/getdate.y (includes): Also include "timespec.h" for use
23277 internal to the module.
23278 * modules/utimens (Depends-on): Revert yesterday's patch.
23279 * modules/nanosleep (Depends-on): Add missing dependency.
23281 2007-02-22 Bruno Haible <bruno@clisp.org>
23283 * lib/glob.c: Don't include getlogin_r.h.
23285 2007-02-22 Jim Meyering <jim@meyering.net>
23287 * modules/utimens (Depends-on): Add timespec, required for
23288 utimens.h's inclusion of timespec.h.
23290 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
23292 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
23293 long unreadable paths in GNU/Linux. Problem reported by Andreas
23295 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
23296 I'll try to think of a better way to fix the Solaris problem.
23298 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
23299 like glibc; on Solaris 10, it fails with errno == EINVAL.
23300 POSIX says the behavior is unspecified if the first argument is NULL,
23301 so play it safe and never pass NULL to the system getcwd.
23303 2007-02-21 Jim Meyering <jim@meyering.net>
23305 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
23306 of gettimeofday. It would conflict with the one now always
23307 provided via sys_time_.h. Reported by Matthew Woehlke, as
23308 an IRIX 6.5 build failure.
23310 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
23312 Minor fixups to port to Solaris 10 with Sun C 5.8.
23313 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
23314 * modules/getcwd (Depends-on): Add dirfd.
23315 * lib/putenv.c (putenv): #undef it.
23316 (rpl_putenv): New decl.
23317 (malloc, free): Include <stdlib.h> rather than prototyping separately.
23319 2007-02-20 Bruno Haible <bruno@clisp.org>
23321 * modules/stdio-tests: New file.
23322 * tests/test-stdio.c: New file.
23324 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
23325 (Depends-on): Add stdio.
23326 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23327 (Include): Use <stdio.h> instead of vsnprintf.h.
23328 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
23329 HAVE_DECL_VSNPRINTF.
23330 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
23332 * modules/snprintf (Files): Remove lib/snprintf.h.
23333 (Depends-on): Add stdio.
23334 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23335 (Include): Use <stdio.h> instead of snprintf.h.
23336 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
23337 HAVE_DECL_SNPRINTF.
23338 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
23339 * lib/getaddrinfo.c: Likewise.
23341 * modules/stdio: New file.
23342 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
23343 * lib/snprintf.h: Remove file.
23344 * lib/vsnprintf.h: Remove file.
23345 * lib/.cppi-disable: Remove snprintf.h.
23346 * m4/stdio_h.m4: New file.
23347 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
23349 2007-02-20 Jim Meyering <jim@meyering.net>
23351 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
23352 used by e.g., mingw. From Bruno Haible.
23354 2007-02-19 Bruno Haible <bruno@clisp.org>
23356 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
23358 Reported by Ben Pfaff <blp@cs.stanford.edu>.
23360 2007-02-19 Bruno Haible <bruno@clisp.org>
23362 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
23365 2007-02-19 Bruno Haible <bruno@clisp.org>
23367 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
23369 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
23371 2007-02-19 Jim Meyering <jim@meyering.net>
23373 Don't use FD after a successful "fdopendir (fd)".
23374 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
23375 Reset it by calling dirfd on the just-obtained DIR*.
23377 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
23378 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
23380 2007-02-18 Bruno Haible <bruno@clisp.org>
23382 * lib/readlink.c: Include <unistd.h>.
23383 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
23385 * modules/readlink (Depends-on): Add unistd.
23386 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23387 (Include): Add <unistd.h>.
23389 * lib/getlogin_r.h: Remove file.
23390 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
23391 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
23392 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
23393 HAVE_DECL_GETLOGIN_R.
23394 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
23395 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23396 (Include): Use <unistd.h> instead of getlogin_r.h.
23398 * lib/getcwd.h: Remove file.
23399 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
23400 * lib/xgetcwd.c: Likewise.
23401 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
23402 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
23403 * modules/getcwd (Files): Remove lib/getcwd.h.
23404 (Depends-on): Add unistd.
23405 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23406 (Include): Use <unistd.h> instad of getcwd.h.
23408 * lib/ftruncate.c: Include <unistd.h> first.
23409 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
23410 Set HAVE_FTRUNCATE.
23411 * modules/ftruncate (Depends-on): Add unistd.
23412 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23414 * lib/fchdir.c: Include <unistd.h> first.
23415 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
23416 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
23417 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
23418 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23419 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
23421 * lib/dup2.c: Include <unistd.h> first.
23422 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
23424 * modules/dup2 (Depends-on): Add unistd.
23425 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23427 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
23428 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
23429 REPLACE_CHOWN. Don't define chown as a macro here.
23430 * modules/chown (Depends-on): Add unistd.
23431 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23433 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
23434 Add definition for GL_LINK_WARNING.
23435 (chown, dup2): New declarations.
23436 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
23438 (ftruncate): New declaration.
23439 (getcwd): New declaration, taken from old getcwd.h.
23440 (getlogin_r): New declaration, taken from old getlogin_r.h.
23441 (readlink): New declaration.
23442 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
23443 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
23444 (gl_PREREQ_UNISTD): Remove macro.
23445 (gl_UNISTD_MODULE_INDICATOR): New macro.
23446 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
23447 many new variables. Don't set UNISTD_H.
23448 * modules/unistd (Description): Change.
23449 (Depends-on): Add link-warning.
23450 (configure.ac): Update.
23451 (Makefile.am): Create unistd.h always. Substitute many new variables
23454 2007-02-18 Bruno Haible <bruno@clisp.org>
23456 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
23457 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
23459 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
23460 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
23461 * lib/getsubopt.h: Remove file.
23462 * modules/getsubopt (Files): Remove lib/getsubopt.h.
23463 (Depends-on): Add stdlib.
23464 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23465 (Includes): Use <stdlib.h> instead of getsubopt.h.
23466 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
23467 Set HAVE_GETSUBOPT.
23468 * lib/getsubopt.c: Don't include getsubopt.h.
23470 2007-02-18 Bruno Haible <bruno@clisp.org>
23472 * modules/fchdir (Depends-on): Add dup2.
23474 2007-02-18 Bruno Haible <bruno@clisp.org>
23476 * lib/stdlib_.h: Handle glibc's special invocation convention
23479 2007-02-18 Bruno Haible <bruno@clisp.org>
23481 * modules/stdlib-tests: New file.
23482 * tests/test-stdlib.c: New file.
23484 * modules/mkstemp (Files): Remove lib/mkstemp.h.
23485 (Depends-on): Add stdlib.
23486 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23487 (Includes): Use <stdlib.h> instead of mkstemp.h.
23488 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
23489 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
23490 * lib/mkstemp.c: Don't include mkstemp.h.
23491 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
23492 * lib/stdlib--.h: Don't include mkstemp.h.
23494 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
23495 (Depends-on): Add stdlib.
23496 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23497 (Includes): Use <stdlib.h> instead of mkdtemp.h.
23498 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
23500 * lib/mkdtemp.c: Don't include mkdtemp.h.
23501 * lib/clean-temp.c: Don't include mkdtemp.h.
23503 * modules/exit (Files): Remove lib/exit.h.
23504 (Depends-on): Add stdlib.
23505 (Makefile.am): Remove lib_SOURCES.
23506 (Include): Use <stdlib.h> instead of exit.h.
23507 * lib/argmatch.c: Don't include exit.h.
23508 * lib/execute.c: Likewise.
23509 * lib/pagealign_alloc.c: Likewise.
23510 * lib/pipe.c: Likewise.
23511 * lib/wait-process.c: Likewise.
23512 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
23513 * lib/exitfail.c: Likewise.
23514 * lib/savewd.c: Likewise.
23515 * lib/xsetenv.c: Likewise.
23517 * modules/stdlib: New file.
23518 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
23519 and extra comments about mkstemp().
23520 * lib/exit.h: Remove file.
23521 * lib/mkdtemp.h: Remove file.
23522 * lib/mkstemp.h: Remove file.
23523 * m4/stdlib_h.m4: New file.
23524 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
23526 2007-02-18 Bruno Haible <bruno@clisp.org>
23528 * modules/math-tests: New file.
23529 * tests/test-math.c: New file.
23531 * modules/math: New file.
23532 * modules/mathl (Files): Remove lib/mathl.h.
23533 (Depends-on): Add math.
23534 (Makefile.am): Don't mention mathl.h.
23535 (Include): Use <math.h> instead of mathl.h.
23536 * lib/math_.h: New file.
23537 * lib/mathl.h: Remove file.
23538 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
23540 * lib/asinl.c: Likewise.
23541 * lib/atanl.c: Likewise.
23542 * lib/ceill.c: Likewise.
23543 * lib/cosl.c: Likewise.
23544 * lib/expl.c: Likewise.
23545 * lib/floorl.c: Likewise.
23546 * lib/frexpl.c: Likewise.
23547 * lib/ldexpl.c: Likewise.
23548 * lib/logl.c: Likewise.
23549 * lib/sincosl.c: Likewise.
23550 * lib/sinl.c: Likewise.
23551 * lib/sqrtl.c: Likewise.
23552 * lib/tanl.c: Likewise.
23553 * lib/trigl.c: Likewise.
23554 * m4/math_h.m4: New file.
23555 * MODULES.html.sh (Mathematics): Add math.
23557 2007-02-17 Bruno Haible <bruno@clisp.org>
23559 * modules/wctype-tests: New file.
23560 * tests/test-wctype.c: New file.
23562 * modules/wchar-tests: New file.
23563 * tests/test-wchar.c: New file.
23565 * modules/unistd-tests: New file.
23566 * tests/test-unistd.c: New file.
23568 * modules/time-tests: New file.
23569 * tests/test-time.c: New file.
23571 * modules/sysexits-tests: New file.
23572 * tests/test-sysexits.c: New file.
23574 * modules/sys_time-tests: New file.
23575 * tests/test-sys_time.c: New file.
23577 * modules/sys_stat-tests: New file.
23578 * tests/test-sys_stat.c: New file.
23580 * modules/sys_socket-tests: New file.
23581 * tests/test-sys_socket.c: New file.
23583 * modules/sys_select-tests: New file.
23584 * tests/test-sys_select.c: New file.
23586 * modules/string-tests: New file.
23587 * tests/test-string.c: New file.
23589 * modules/stdbool-tests: New file.
23590 * tests/test-stdbool.c: New file.
23592 * modules/netinet_in-tests: New file.
23593 * tests/test-netinet_in.c: New file.
23595 * modules/inttypes-tests: New file.
23596 * tests/test-inttypes.c: New file.
23598 * modules/fcntl-tests: New file.
23599 * tests/test-fcntl.c: New file.
23601 * modules/byteswap-tests: New file.
23602 * tests/test-byteswap.c: New file.
23604 * modules/arpa_inet-tests: New file.
23605 * tests/test-arpa_inet.c: New file.
23607 2007-02-17 Bruno Haible <bruno@clisp.org>
23609 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
23610 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
23611 if the corresponding module is not enabled. Emit link warnings if
23612 the function is used nevertheless.
23613 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
23614 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
23615 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
23616 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
23617 * modules/inttypes (Depends-on): Add link-warning.
23618 (Makefile.am): Copy the contents of build-aux/link-warning.h into
23619 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
23620 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
23621 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
23622 * modules/imaxdiv (configure.ac): Likewise.
23623 * modules/strtoimax (configure.ac): Likewise.
23624 * modules/strtoumax (configure.ac): Likewise.
23626 2007-02-17 Bruno Haible <bruno@clisp.org>
23628 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
23629 gl_STRING_MODULE_INDICATOR_DEFAULTS.
23630 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
23631 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
23633 2007-02-17 Bruno Haible <bruno@clisp.org>
23635 * modules/link-warning: New file.
23636 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
23637 * lib/string_.h (GL_LINK_WARNING): Remove definition.
23638 * modules/string (Depends-on): Add link-warning.
23639 (Makefile.am): Copy the contents of build-aux/link-warning.h into
23641 * MODULES.html.sh (Support for building libraries and executables): Add
23644 2007-02-17 Bruno Haible <bruno@clisp.org>
23646 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
23647 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
23648 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
23651 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
23652 Bruno Haible <bruno@clisp.org>
23654 * modules/tmpfile: New file.
23655 * lib/tmpfile.c: New file.
23656 * m4/tmpfile.m4: New file.
23657 * MODULES.html.sh (func_all_modules): New section "Input/output".
23659 2007-02-15 Bruno Haible <bruno@clisp.org>
23661 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
23662 (supports_delete_on_close): New function.
23663 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
23665 2007-02-14 Bruno Haible <bruno@clisp.org>
23667 * modules/mbspcasecmp-tests: New file.
23668 * tests/test-mbspcasecmp.sh: New file.
23669 * tests/test-mbspcasecmp.c: New file.
23671 New module mbspcasecmp.
23672 * modules/mbspcasecmp: New file.
23673 * lib/mbspcasecmp.c: New file.
23674 * lib/string_.h (strncasecmp): Change warning message.
23675 (mbspcasecmp): New declaration.
23676 * m4/mbspcasecmp.m4: New file.
23677 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23678 GNULIB_MBSPCASECMP.
23679 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
23680 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
23682 2007-02-14 Bruno Haible <bruno@clisp.org>
23684 * modules/mbsncasecmp-tests: New file.
23685 * tests/test-mbsncasecmp.sh: New file.
23686 * tests/test-mbsncasecmp.c: New file.
23688 New module mbsncasecmp.
23689 * modules/mbsncasecmp: New file.
23690 * lib/mbsncasecmp.c: New file.
23691 * lib/string_.h (mbsncasecmp): New declaration.
23692 * m4/mbsncasecmp.m4: New file.
23693 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23694 GNULIB_MBSNCASECMP.
23695 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
23696 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
23698 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
23700 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
23701 Verify that it doesn't overlap with our flags.
23702 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
23703 do not have the desired effect in multibyte locales; instead, use
23705 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
23706 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
23707 we don't require GNU fnmatch ourselves (if our users require it, they
23708 should do so explicitly).
23710 Fix regex code so it doesn't rely on strcasecmp.
23711 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
23712 Otherwise, include gnulib's langinfo.h.
23713 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
23714 undesirable behavior in non-C locales. Instead, rely on localecharset.
23715 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
23716 * modules/regex (FILES): Remove m4/codeset.m4.
23717 (Depends-on): Add localcharset. Remove strcase.
23719 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23721 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
23722 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23724 2007-02-13 Bruno Haible <bruno@clisp.org>
23726 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
23727 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23729 2007-02-12 Bruno Haible <bruno@clisp.org>
23731 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
23732 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
23733 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
23734 time warning rather than a link error.
23736 2007-02-12 Bruno Haible <bruno@clisp.org>
23738 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
23739 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23740 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23742 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
23744 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
23747 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
23749 New module 'time', so that apps can include <time.h> as per
23750 POSIX and GNU instead of separate include files like time_r.h
23751 and timegm.h. This implementation tries out a simpler approach
23752 for replacing decls in standard include files (as compared to
23753 the string module), somewhat as an experiment.
23755 * config/srclist.txt: Comment out mktime.c for now.
23756 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
23757 since it doesn't apply any more. Use generic wording instead.
23758 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
23760 * lib/time_.h, m4/time_h.m4, modules/time: New files.
23761 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
23762 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
23763 Don't include <sys/types.h>; no longer needed since we assume C89.
23764 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
23765 * lib/strftime.c: Likewise.
23766 * lib/time_r.c: Likewise.
23767 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
23768 * lib/nanosleep.c: Include <time.h> first, to check interface.
23769 * lib/strptime.c: Likewise.
23770 * lib/time_r.c: Likewise.
23771 * lib/timegm.c: Likewise.
23772 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
23774 * lib/timegm.c: Don't include timegm.h; no longer needed.
23775 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
23776 time.h now handles any problems in that area.
23777 (struct timespec, nanosleep): Remove; time.h now arranges for these.
23778 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
23779 that time.h defines struct timespec.
23780 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
23781 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
23783 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
23784 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
23785 needed. Set REPLACE_LOCALTIME.
23786 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
23787 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
23788 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
23789 nanosleep; time_h.m4 now does that. Don't require
23790 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
23791 module handles this now.
23792 * modules/getdate (Depends-on): Remove timespec. Add time.
23793 * modules/nanosleep (Depends-on): Likewise.
23794 * modules/stat-time (Depends-on): Likewise.
23795 * modules/nanosleep (Include): Include time.h, not timespec.h.
23796 * modules/strptime (Files): Remove lib/strptime.h.
23797 (Depends-on): Add extensions, time.
23798 (Include): Include time.h, not strptime.h.
23799 * modules/time_r (Files): Remove lib/time_r.h.
23800 (Depends-on): Add time.
23801 (Include): Include time.h, not time_r.h.
23802 * modules/timegm: Likewise.
23803 * modules/timespec (Description): Now does timespec-related decls
23804 of our own, instead of struct timespec itself.
23805 (Depends-on): Add time; remove extensions.
23806 (Maintainer): Add self.
23807 * modules/utimecmp (Depends-on): Add time; remove timespec.
23808 * modules/utimens (Depends-on): Likewise.
23809 * modules/xnanosleep (Depends-on): Likewise.
23811 2007-02-11 Bruno Haible <bruno@clisp.org>
23813 * lib/c-strstr.c: Include allocsa.h.
23814 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
23815 * lib/c-strcasestr.c: Include allocsa.h.
23816 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
23817 * lib/strcasestr.c: Include allocsa.h.
23818 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
23819 * lib/mbsstr.c: Include allocsa.h.
23820 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
23821 allocsa/freesa instead of malloc/free.
23822 * lib/mbscasestr.c: Include allocsa.h.
23823 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
23824 allocsa/freesa instead of malloc/free.
23825 * modules/c-strstr (Depends-on): Add allocsa.
23826 * modules/c-strcasestr (Depends-on): Likewise.
23827 * modules/strcasestr (Depends-on): Likewise.
23828 * modules/mbsstr (Depends-on): Likewise.
23829 * modules/mbscasestr (Depends-on): Likewise.
23831 2007-02-11 Bruno Haible <bruno@clisp.org>
23833 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
23835 * modules/mbsspn-tests: New file.
23836 * tests/test-mbsspn.sh: New file.
23837 * tests/test-mbsspn.c: New file.
23839 2007-02-11 Bruno Haible <bruno@clisp.org>
23841 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
23843 * modules/mbspbrk-tests: New file.
23844 * tests/test-mbspbrk.sh: New file.
23845 * tests/test-mbspbrk.c: New file.
23847 2007-02-11 Bruno Haible <bruno@clisp.org>
23849 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
23852 * modules/mbscspn-tests: New file.
23853 * tests/test-mbscspn.sh: New file.
23854 * tests/test-mbscspn.c: New file.
23856 2007-02-11 Bruno Haible <bruno@clisp.org>
23858 * modules/mbscasecmp-tests: New file.
23859 * tests/test-mbscasecmp.sh: New file.
23860 * tests/test-mbscasecmp.c: New file.
23862 2007-02-11 Bruno Haible <bruno@clisp.org>
23864 Ensure O(n) worst-case complexity of mbscasestr.
23865 * lib/mbscasestr.c: Include stdbool.h.
23866 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
23868 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
23869 the bookkeeping indicates that it's worth it.
23870 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
23872 * modules/mbscasestr-tests: New file.
23873 * tests/test-mbscasestr1.c: New file.
23874 * tests/test-mbscasestr2.sh: New file.
23875 * tests/test-mbscasestr2.c: New file.
23876 * tests/test-mbscasestr3.sh: New file.
23877 * tests/test-mbscasestr3.c: New file.
23878 * tests/test-mbscasestr4.sh: New file.
23879 * tests/test-mbscasestr4.c: New file.
23880 * m4/locale-tr.m4: New file.
23882 2007-02-11 Bruno Haible <bruno@clisp.org>
23884 Ensure O(n) worst-case complexity of mbsstr.
23885 * lib/mbsstr.c: Include stdbool.h.
23886 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
23888 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
23889 bookkeeping indicates that it's worth it.
23890 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
23892 * modules/mbsstr-tests: New file.
23893 * tests/test-mbsstr1.c: New file.
23894 * tests/test-mbsstr2.sh: New file.
23895 * tests/test-mbsstr2.c: New file.
23896 * tests/test-mbsstr3.sh: New file.
23897 * tests/test-mbsstr3.c: New file.
23898 * m4/locale-fr.m4: New file.
23900 2007-02-11 Bruno Haible <bruno@clisp.org>
23902 * lib/mbsrchr.c (mbsrchr): Fix bug.
23904 * modules/mbsrchr-tests: New file.
23905 * tests/test-mbsrchr.sh: New file.
23906 * tests/test-mbsrchr.c: New file.
23908 2007-02-11 Bruno Haible <bruno@clisp.org>
23910 * lib/mbschr.c (mbschr): Fix bug.
23912 * modules/mbschr-tests: New file.
23913 * tests/test-mbschr.sh: New file.
23914 * tests/test-mbschr.c: New file.
23915 * m4/locale-zh.m4: New file.
23917 2007-02-11 Bruno Haible <bruno@clisp.org>
23919 Support for copying multibyte string iterators.
23920 * lib/mbiter.h: Include <string.h>.
23921 (mbiter_multi_copy): New function.
23922 (mbi_copy): New macro.
23923 * lib/mbuiter.h: Include <string.h>.
23924 (mbuiter_multi_copy): New function.
23925 (mbui_copy): New macro.
23927 2007-02-11 Bruno Haible <bruno@clisp.org>
23930 * modules/mbslen: New file.
23931 * lib/mbslen.c: New file.
23932 * lib/string_.h (mbslen): New declaration.
23933 * m4/mbslen.m4: New file.
23934 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23936 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
23937 * MODULES.html.sh (Internationalization functions): Add mbslen.
23939 2007-02-11 Bruno Haible <bruno@clisp.org>
23941 Ensure O(n) worst-case complexity of strcasestr substitute.
23942 * lib/strcasestr.c: Include stdbool.h.
23943 (knuth_morris_pratt): New function.
23944 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
23945 bookkeeping indicates that it's worth it.
23946 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
23948 * modules/strcasestr-tests: New file.
23949 * tests/test-strcasestr.c: New file.
23951 2007-02-11 Bruno Haible <bruno@clisp.org>
23953 Ensure O(n) worst-case complexity of c_strcasestr.
23954 * lib/c-strcasestr.c: Include stdbool.h, string.h.
23955 (knuth_morris_pratt): New function.
23956 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
23957 the bookkeeping indicates that it's worth it.
23958 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
23960 * modules/c-strcasestr-tests: New file.
23961 * tests/test-c-strcasestr.c: New file.
23963 2007-02-11 Bruno Haible <bruno@clisp.org>
23965 Ensure O(n) worst-case complexity of c_strstr.
23966 * lib/c-strstr.c: Include stdbool.h, string.h.
23967 (knuth_morris_pratt): New function.
23968 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
23969 bookkeeping indicates that it's worth it.
23970 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
23972 * lib/c-strstr.c: Complete rewrite for maintainability.
23974 * modules/c-strstr-tests: New file.
23975 * tests/test-c-strstr.c: New file.
23977 2007-02-11 Bruno Haible <bruno@clisp.org>
23979 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
23980 5.2.1 and earlier, whereby \055 was treated just like the range
23982 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23984 2007-02-08 Bruno Haible <bruno@clisp.org>
23986 * modules/regex (Depends-on): Add stdbool.
23987 Reported by Dalibor Topic <robilad@kaffe.org>.
23989 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
23991 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
23992 Prefer returning from main to exiting from it.
23993 Remove unnecessary parens after sizeof.
23995 2007-02-05 Bruno Haible <bruno@clisp.org>
23998 * modules/mbssep: New file.
23999 * lib/mbssep.c: New file.
24000 * lib/string_.h (strsep): Add a conditional link warning.
24001 (mbssep): New declaration.
24002 * m4/mbssep.m4: New file.
24003 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24005 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
24006 * MODULES.html.sh (Internationalization functions): Add mbssep.
24008 2007-02-05 Bruno Haible <bruno@clisp.org>
24010 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
24011 Optimize search in case of 1 delimiter.
24013 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
24015 * lib/acl.h: Include sys/types.h before sys/acl.h.
24017 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
24019 Merge upstream fix for glibc bugzilla #3957:
24021 2007-02-05 Jakub Jelinek <jakub@redhat.com>
24023 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
24024 bit for RE_HAT_LISTS_NOT_NEWLINE.
24025 (build_charclass_op): Remove bogus comment.
24027 2007-02-05 Simon Josefsson <simon@josefsson.org>
24029 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
24031 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
24033 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
24034 * lib/memmem.c [!defined _LIBC]: Include config.h.
24036 2007-02-04 Bruno Haible <bruno@clisp.org>
24038 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
24041 2007-02-04 Bruno Haible <bruno@clisp.org>
24043 New module mbstok_r.
24044 * modules/mbstok_r: New file.
24045 * lib/mbstok_r.c: New file.
24046 * lib/string_.h (strtok_r): Change argument names to match the
24047 comments. Add a conditional link warning.
24048 (mbstok_r): New declaration.
24049 * m4/mbstok_r.m4: New file.
24050 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24052 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
24053 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
24055 2007-02-04 Bruno Haible <bruno@clisp.org>
24058 * modules/mbsspn: New file.
24059 * lib/mbsspn.c: New file.
24060 * lib/string_.h (strspn): Add a conditional link warning.
24061 (mbsspn): New declaration.
24062 * m4/mbsspn.m4: New file.
24063 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24065 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
24066 * MODULES.html.sh (Internationalization functions): Add mbsspn.
24068 2007-02-04 Bruno Haible <bruno@clisp.org>
24070 New module mbspbrk.
24071 * modules/mbspbrk: New file.
24072 * lib/mbspbrk.c: New file.
24073 * lib/string_.h (strpbrk): Add a conditional link warning.
24074 (mbspbrk): New declaration.
24075 * m4/mbspbrk.m4: New file.
24076 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24078 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
24079 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
24081 2007-02-04 Bruno Haible <bruno@clisp.org>
24083 New module mbscspn.
24084 * modules/mbscspn: New file.
24085 * lib/mbscspn.c: New file.
24086 * lib/string_.h (strcspn): Add a conditional link warning.
24087 (mbscspn): New declaration.
24088 * m4/mbscspn.m4: New file.
24089 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24091 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
24092 * MODULES.html.sh (Internationalization functions): Add mbscspn.
24094 2007-02-04 Bruno Haible <bruno@clisp.org>
24096 New module mbscasestr, reduced goal of strcasestr.
24097 * modules/mbscasestr: New file.
24098 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
24099 (mbscasestr): Renamed from strcasestr.
24100 * lib/strcasestr.c: Don't include mbuiter.h.
24101 (strcasestr): Remove support for multibyte locales.
24102 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
24103 Change the conditional link warning.
24104 (mbscasestr): New declaration.
24105 * m4/mbscasestr.m4: New file.
24106 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
24107 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
24108 REPLACE_STRCASESTR.
24109 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
24110 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24111 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
24112 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
24113 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
24114 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
24115 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
24116 (Depends-on): Remove mbuiter.
24117 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
24119 2007-02-04 Bruno Haible <bruno@clisp.org>
24121 Simplify handling of strncasecmp.
24122 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
24123 the conditional link warning.
24124 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24125 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
24126 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
24127 * modules/strcase (configure.ac): Don't invoke
24128 gl_STRING_MODULE_INDICATOR.
24129 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
24131 2007-02-04 Bruno Haible <bruno@clisp.org>
24133 New module mbscasecmp, reduced goal of strcasecmp.
24134 * modules/mbscasecmp: New file.
24135 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
24136 (mbscasecmp): Renamed from strcasecmp.
24137 * lib/strcasecmp.c: Don't include mbuiter.h.
24138 (strcasecmp): Remove support for multibyte locales.
24139 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
24140 Change the conditional link warning.
24141 (mbscasecmp): New declaration.
24142 * m4/mbscasecmp.m4: New file.
24143 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
24144 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
24145 REPLACE_STRCASECMP.
24146 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
24147 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24149 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
24150 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
24151 * modules/strcase (Files): Remove m4/mbrtowc.m4.
24152 (Depends-on): Remove mbuiter.
24153 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
24155 2007-02-04 Bruno Haible <bruno@clisp.org>
24157 New module mbsstr. Remove module strstr.
24158 * modules/mbsstr: New file.
24159 * modules/strstr: Remove file.
24160 * lib/mbsstr.c: Renamed from lib/strstr.c.
24161 (mbsstr): Renamed from strstr.
24162 * lib/string_.h (strstr): Remove declaration. Change the conditional
24164 (mbsstr): New declaration.
24165 * m4/mbsstr.m4: New file.
24166 * m4/strstr.m4: Remove file.
24167 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24169 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
24170 Don't initialize GNULIB_STRSTR.
24171 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
24172 substitute GNULIB_STRSTR and REPLACE_STRSTR.
24173 * MODULES.html.sh (Internationalization functions): Add mbsstr.
24174 (Support for systems lacking ANSI C 89): Remove strstr.
24176 2007-02-04 Bruno Haible <bruno@clisp.org>
24178 New module mbsrchr.
24179 * modules/mbsrchr: New file.
24180 * lib/mbsrchr.c: New file.
24181 * lib/string_.h (strrchr): Add a conditional link warning.
24182 (mbsrchr): New declaration.
24183 * m4/mbsrchr.m4: New file.
24184 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24186 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
24187 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
24189 2007-02-04 Bruno Haible <bruno@clisp.org>
24192 * modules/mbschr: New file.
24193 * lib/mbschr.c: New file.
24194 * lib/string_.h (strchr): Add a conditional link warning.
24195 (mbschr): New declaration.
24196 * m4/mbschr.m4: New file.
24197 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24199 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
24200 * MODULES.html.sh (Internationalization functions): Add mbschr.
24202 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
24204 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
24206 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
24208 2007-02-04 Bruno Haible <bruno@clisp.org>
24210 New module description section 'configure.ac-early'.
24211 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
24212 (func_get_autoconf_early_snippet): New function.
24213 (func_import, func_create_testdir): Use it. Remove special cases for
24214 modules 'extensions' and 'lock'.
24215 * modules/extensions (configure.ac-early): Require
24216 gl_USE_SYSTEM_EXTENSIONS.
24217 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
24219 2007-02-04 Bruno Haible <bruno@clisp.org>
24221 Make use of gcj-4.3's -fsource and -ftarget option.
24222 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
24223 and if so try the options -fsource and -ftarget.
24224 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
24225 source_version, ftarget_option, target_version arguments.
24226 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
24227 (is_envjavac_oldgcj_14_14_usable): Renamed from
24228 is_envjavac_gcj_14_14_usable.
24229 (is_envjavac_oldgcj_14_13_usable): Renamed from
24230 is_envjavac_gcj_14_13_usable.
24231 (is_gcj_present): Update.
24232 (is_gcj_43, is_gcj43_usable): New functions.
24233 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
24234 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
24235 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
24236 try the options -fsource and -ftarget.
24238 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
24240 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
24241 checking code. Set N = ceil (1.5 * N) rather than to a slightly
24244 2007-02-03 Jim Meyering <jim@meyering.net>
24246 Give tools a better chance to allocate space for very large buffers.
24247 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
24249 Make pwd and readlink work also when run with an unreadable parent dir
24250 on systems with openat support.
24251 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
24252 provided getcwd function, even when we have openat support.
24253 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
24255 2007-02-02 Bruno Haible <bruno@clisp.org>
24257 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
24258 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
24259 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
24260 portability problems if one of these functions is only used on specific
24262 Reported by Paul Eggert.
24264 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
24266 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
24267 is causing more trouble than it's curing.
24268 * lib/regex_internal.h (__mempcpy): Remove.
24269 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
24270 (and make the code a tad smaller to boot).
24271 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
24273 2007-02-02 Jim Meyering <jim@meyering.net>
24275 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
24276 section, not in the Makefile.am: one.
24278 2007-02-02 Eric Blake <ebb9@byu.net>
24280 * lib/strchrnul.c: Always include config.h first.
24282 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
24283 gnulib strstr is not necessary here.
24285 2007-02-02 Simon Josefsson <simon@josefsson.org>
24287 * m4/socklen.m4: Fix typo.
24289 2007-02-02 Eric Blake <ebb9@byu.net>
24291 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
24292 * modules/netinet_in (Makefile.am): Likewise.
24294 2007-02-01 Bruno Haible <bruno@clisp.org>
24296 * lib/string_.h (GL_LINK_WARNING): New macro.
24297 (strcasecmp, strstr, strcasestr): If provided by the system,
24298 conditionally define as a macro that leads to a warning instead of to
24300 (strncasecmp): Conditionally define as a macro that leads to a warning.
24302 2007-02-01 Karl Berry <karl@gnu.org>
24304 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
24306 2007-02-01 Bruno Haible <bruno@clisp.org>
24308 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
24311 2007-02-01 Eric Blake <ebb9@byu.net>
24313 * modules/regex (Depends-on): Revert dependence on mempcpy.
24314 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
24315 module's definition of mempcpy.
24316 Reported by Paul Eggert.
24318 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
24320 * lib/string_.h: If the gnulib module XYZ is not present, undefine
24321 the symbol XYZ before redefining it. This fixes a problem with
24322 programs that don't use XYZ, when compiled on systems that define
24323 XYZ to something else.
24325 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
24327 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
24328 occurs when "mkdir -m foo" creates a setgid directory that is (1)
24329 writeable to group or other and (2) is intended to have a special
24330 mode bit that is set or cleared. In such a case, the directory
24331 should be neither group- nor other-writeable until the special
24332 mode bits are right.
24334 2007-01-31 Eric Blake <ebb9@byu.net>
24336 * modules/mountlist (Depends-on): Add strstr.
24338 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
24340 * modules/string (Makefile.am): Remove redundant replacement.
24341 * modules/regex (Depends-on): Add mempcpy.
24343 2007-01-31 Bruno Haible <bruno@clisp.org>
24345 New module description field 'Link'.
24346 * gnulib-tool (func_usage): Document --extract-link-directive.
24347 (sed_extract_prog): Recognize 'Link' directive.
24348 (func_get_link_directive): New function.
24349 (func_import): Show summary of link directives.
24350 Handle --extract-link-directive option.
24351 * modules/acl (Link): New section.
24352 * modules/clock-time (Link): New section.
24353 * modules/euidaccess (Link): New section.
24354 * modules/gettext (Link): New section.
24355 * modules/iconv (Link): New section.
24356 * modules/lock (Link): New section.
24357 * modules/nanosleep (Link): New section.
24358 * modules/readline (Link): New section.
24360 2007-01-27 Bruno Haible <bruno@clisp.org>
24362 Enforce the use of gnulib modules for unportable <string.h> functions.
24363 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
24364 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
24365 (gl_HEADER_STRING_H_BODY): Require it.
24366 * lib/string_.h: If the gnulib module XYZ is not present, redefine
24367 the symbol XYZ to one that gives a link error.
24368 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
24369 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
24370 * modules/mempcpy (configure.ac): Likewise.
24371 * modules/memrchr (configure.ac): Likewise.
24372 * modules/stpcpy (configure.ac): Likewise.
24373 * modules/stpncpy (configure.ac): Likewise.
24374 * modules/strcase (configure.ac): Likewise.
24375 * modules/strcasestr (configure.ac): Likewise.
24376 * modules/strchrnul (configure.ac): Likewise.
24377 * modules/strdup (configure.ac): Likewise.
24378 * modules/strndup (configure.ac): Likewise.
24379 * modules/strnlen (configure.ac): Likewise.
24380 * modules/strpbrk (configure.ac): Likewise.
24381 * modules/strsep (configure.ac): Likewise.
24382 * modules/strstr (configure.ac): Likewise.
24383 * modules/strtok_r (configure.ac): Likewise.
24385 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
24387 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
24389 2007-01-30 Jim Meyering <jim@meyering.net>
24391 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
24393 2007-01-29 Bruno Haible <bruno@clisp.org>
24395 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
24396 * lib/execute.c: Likewise.
24397 * lib/pipe.c: Likewise.
24398 * lib/printf-args.h: Likewise.
24399 * lib/printf-args.c: Likewise.
24400 * lib/printf-parse.c: Likewise.
24401 * lib/vasnprintf.c: Likewise.
24403 2007-01-29 Eric Blake <ebb9@byu.net>
24405 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
24408 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
24410 * lib/strptime.h (strptime): Use 'restrict' for args where
24411 POSIX requires this.
24412 * lib/strptime.c (strptime): Likewise.
24413 Change license notice from LGPL to GPL, since gnulib-tool will
24414 change this as needed.
24415 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
24417 Include "strptime.h" first, to check interface.
24418 Do not #undef _LIBC and _NL_CURRENT.
24419 Do not include <stdlib.h>; no longer needed.
24420 Include "time_r.h" and declare ptime_locale_status
24421 only if _LIBC is not defined.
24422 (__P): Remove unused macro.
24423 (match_string): Bring back glibc version, but use it only if _LIBC
24425 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
24426 Remove unnecessary assertion and abort() call.
24427 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
24428 * m4/strptime.m4: Fix serial number comment.
24429 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
24430 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
24431 (Depends-on): Add time_r.
24433 2007-01-29 Bruno Haible <bruno@clisp.org>
24435 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24437 * modules/strptime (Depends-on): Add stdbool.
24438 * lib/strptime.h: Include <time.h> always. Add comments.
24440 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
24442 * modules/strptime: New file.
24443 * lib/strptime.h: New file.
24444 * lib/strptime.c: New file.
24445 * m4/strptime.m4: New file.
24447 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
24449 * MODULES.html.sh: New module mpsort.
24450 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
24452 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
24453 a circularity problem with HP-UX ia64 reported by Bob Proulx in
24454 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
24456 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
24458 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
24460 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
24461 the parameter matches the prototype.
24463 2007-01-28 Jim Meyering <jim@meyering.net>
24465 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
24466 sys/time.h here, reverting that part of the previous patch:
24467 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
24469 2007-01-28 Bruno Haible <bruno@clisp.org>
24471 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
24472 value of $(SYS_TIME_H).
24473 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
24474 remove it conditionally, too. [added by Jim Meyering]
24475 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
24476 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
24477 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
24478 GETTIMEOFDAY_REPLACEMENT to 1.
24480 2007-01-28 Bruno Haible <bruno@clisp.org>
24482 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
24483 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
24484 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
24485 Set UNISTD_H instead of UNISTD_H2.
24486 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
24488 2007-01-28 Bruno Haible <bruno@clisp.org>
24490 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
24491 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
24493 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24495 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
24496 (func_create_testdir): Ensure C locale for `grep' and `tr'
24498 (func_create_megatestdir): Avoid one `grep'. Fix bug in
24499 ACLOCAL_AMFLAGS parsing state machine.
24501 2007-01-27 Bruno Haible <bruno@clisp.org>
24503 * modules/unistr/base: Update.
24505 2007-01-27 Bruno Haible <bruno@clisp.org>
24507 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
24508 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
24509 * modules/unistr/u32-mbtouc-unsafe: Renamed from
24510 modules/unistr/u32-mbtouc.
24511 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
24512 * lib/unistr.h: Update.
24513 * lib/linebreak.c: Update.
24514 * modules/unistr/u32-mbtouc: Renamed from
24515 modules/unistr/u32-mbtouc-safe.
24516 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
24517 * lib/unistr.h: Update.
24518 * lib/unistr/u32-to-u8.c: Update.
24519 * lib/unistr/u32-to-u16.c: Update.
24521 2007-01-27 Bruno Haible <bruno@clisp.org>
24523 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
24524 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
24525 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
24526 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
24527 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
24528 * modules/unistr/u16-mbtouc-unsafe: Renamed from
24529 modules/unistr/u16-mbtouc.
24530 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
24531 * lib/unistr.h: Update.
24532 * lib/linebreak.c: Update.
24533 * modules/linebreak: Update.
24534 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
24535 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
24536 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
24537 * modules/unistr/u16-mbtouc: Renamed from
24538 modules/unistr/u16-mbtouc-safe.
24539 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
24540 * lib/unistr.h: Update.
24541 * lib/unistr/u16-to-u8.c: Update.
24542 * modules/unistr/u16-to-u8: Update.
24543 * lib/unistr/u16-to-u32.c: Update.
24544 * modules/unistr/u16-to-u32: Update.
24546 2007-01-27 Bruno Haible <bruno@clisp.org>
24548 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
24549 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
24550 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
24551 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
24552 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
24553 * modules/unistr/u8-mbtouc-unsafe: Renamed from
24554 modules/unistr/u8-mbtouc.
24555 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
24556 * lib/unistr.h: Update.
24557 * lib/striconveh.c: Update.
24558 * modules/striconveh: Update.
24559 * lib/linebreak.c: Update.
24560 * modules/linebreak: Update.
24561 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
24562 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
24563 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
24564 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
24565 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
24566 * lib/unistr.h: Update.
24567 * lib/striconveh.c: Update.
24568 * modules/striconveh: Update.
24569 * lib/unistr/u8-to-u16.c: Update.
24570 * modules/unistr/u8-to-u16: Update.
24571 * lib/unistr/u8-to-u32.c: Update.
24572 * modules/unistr/u8-to-u32: Update.
24574 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24577 * lib/argz.c: Do not include strings.h nor memory.h, include
24578 string.h unconditionally. Patch by Simon Josefsson.
24580 2007-01-27 Bruno Haible <bruno@clisp.org>
24582 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
24583 from gl_HEADER_STRING_H_BODY.
24584 (gl_HEADER_STRING_H_BODY): Require it.
24585 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
24586 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
24587 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
24588 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
24589 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24590 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
24591 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24592 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
24593 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
24594 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24595 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
24596 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
24597 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
24598 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24599 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
24601 2007-01-27 Bruno Haible <bruno@clisp.org>
24603 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
24604 check_PROGRAMS into noinst_PROGRAMS.
24605 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
24606 check_PROGRAMS in this case.
24607 (func_import): Set for_test to false.
24608 (func_create_testdir): Set for_test to true.
24610 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
24611 Bruno Haible <bruno@clisp.org>
24613 * modules/strcasestr (Files): Remove lib/strcasestr.h.
24614 (Depends-on): Add string.
24615 (Includes): Use <string.h> instead of strcasestr.h.
24616 * modules/string (Makefile.am): Also substitute the value of
24617 REPLACE_STRCASESTR.
24618 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
24619 assume strcasestr is declared in <string.h> not <strings.h>. Also
24620 set REPLACE_STRCASESTR.
24621 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
24622 REPLACE_STRCASESTR.
24623 * lib/strcasestr.h: Remove file.
24624 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
24625 * lib/string_.h (strcasestr): New declaration.
24627 2007-01-27 Bruno Haible <bruno@clisp.org>
24629 * lib/string_.h: Use 'extern'.
24631 2007-01-27 Jim Meyering <jim@meyering.net>
24633 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
24634 of set-but-not-used local, "q".
24636 * lib/mempcpy.c: Include <config.h> before <string.h>.
24637 This fixes a compilation error on HP-UX, due to the system's
24638 "restrict"-using mempcpy prototype.
24640 2007-01-26 Bruno Haible <bruno@clisp.org>
24642 Small optimization.
24643 * lib/javacomp.c: Include c-strstr.h.
24644 (is_envjavac_gcj): Use c_strstr instead of strstr.
24645 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
24647 2007-01-26 Bruno Haible <bruno@clisp.org>
24649 * MODULES.html.sh (Unicode string functions): Add the new modules.
24651 * modules/uniconv/u32-strconv-to-locale: New file.
24652 * lib/uniconv/u32-strconv-to-locale.c: New file.
24654 * modules/uniconv/u16-strconv-to-locale: New file.
24655 * lib/uniconv/u16-strconv-to-locale.c: New file.
24657 * modules/uniconv/u8-strconv-to-locale: New file.
24658 * lib/uniconv/u8-strconv-to-locale.c: New file.
24660 * modules/uniconv/u32-strconv-from-locale: New file.
24661 * lib/uniconv/u32-strconv-from-locale.c: New file.
24663 * modules/uniconv/u16-strconv-from-locale: New file.
24664 * lib/uniconv/u16-strconv-from-locale.c: New file.
24666 * modules/uniconv/u8-strconv-from-locale: New file.
24667 * lib/uniconv/u8-strconv-from-locale.c: New file.
24669 * modules/uniconv/u32-strconv-to-enc: New file.
24670 * lib/uniconv/u32-strconv-to-enc.c: New file.
24671 * modules/uniconv/u32-strconv-to-enc-tests: New file.
24672 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
24674 * modules/uniconv/u16-strconv-to-enc: New file.
24675 * lib/uniconv/u16-strconv-to-enc.c: New file.
24676 * lib/uniconv/u-strconv-to-enc.h: New file.
24677 * modules/uniconv/u16-strconv-to-enc-tests: New file.
24678 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
24680 * modules/uniconv/u8-strconv-to-enc: New file.
24681 * lib/uniconv/u8-strconv-to-enc.c: New file.
24682 * modules/uniconv/u8-strconv-to-enc-tests: New file.
24683 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
24685 * modules/uniconv/u32-strconv-from-enc: New file.
24686 * lib/uniconv/u32-strconv-from-enc.c: New file.
24687 * modules/uniconv/u32-strconv-from-enc-tests: New file.
24688 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
24690 * modules/uniconv/u16-strconv-from-enc: New file.
24691 * lib/uniconv/u16-strconv-from-enc.c: New file.
24692 * modules/uniconv/u16-strconv-from-enc-tests: New file.
24693 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
24695 * modules/uniconv/u8-strconv-from-enc: New file.
24696 * lib/uniconv/u8-strconv-from-enc.c: New file.
24697 * lib/uniconv/u-strconv-from-enc.h: New file.
24698 * modules/uniconv/u8-strconv-from-enc-tests: New file.
24699 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
24701 * modules/uniconv/u32-conv-from-enc: New file.
24702 * lib/uniconv/u32-conv-from-enc.c: New file.
24703 * modules/uniconv/u32-conv-from-enc-tests: New file.
24704 * tests/uniconv/test-u32-conv-from-enc.c: New file.
24706 * modules/uniconv/u16-conv-from-enc: New file.
24707 * lib/uniconv/u16-conv-from-enc.c: New file.
24708 * lib/uniconv/u-conv-from-enc.h: New file.
24709 * modules/uniconv/u16-conv-from-enc-tests: New file.
24710 * tests/uniconv/test-u16-conv-from-enc.c: New file.
24712 * modules/uniconv/u8-conv-from-enc: New file.
24713 * lib/uniconv/u8-conv-from-enc.c: New file.
24714 * modules/uniconv/u8-conv-from-enc-tests: New file.
24715 * tests/uniconv/test-u8-conv-from-enc.c: New file.
24717 * modules/uniconv/base: New file.
24718 * lib/uniconv.h: New file.
24720 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
24722 * doc/gnulib-tool.texi (Initial import): Update to match current
24723 behavior with strdup module.
24724 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
24725 * lib/memmem.h: Remove; all uses removed. This is now done
24727 * lib/mempcpy.h: Likewise.
24728 * lib/memrchr.h: Likewise.
24729 * lib/stpcpy.h: Likewise.
24730 * lib/stpncpy.h: Likewise.
24731 * lib/strcase.h: Likewise.
24732 * lib/strchrnul.h: Likewise.
24733 * lib/strdup.h: Likewise.
24734 * lib/strndup.h: Likewise.
24735 * lib/strnlen.h: Likewise.
24736 * lib/strpbrk.h: Likewise.
24737 * lib/strsep.h: Likewise.
24738 * lib/strstr.h: Likewise.
24739 * lib/strtok_r.h: Likewise.
24740 * lib/string_.h: New file.
24741 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
24742 Rely on <string.h> instead.
24743 * lib/canon-host.c: Likewise.
24744 * lib/chdir-long.c: Likewise.
24745 * lib/concatpath.c: Likewise.
24746 * lib/exclude.c: Likewise.
24747 * lib/fchdir.c: Likewise.
24748 * lib/getaddrinfo.c: Likewise.
24749 * lib/getcwd.c: Likewise.
24750 * lib/getsubopt.c: Likewise.
24751 * lib/glob.c: Likewise.
24752 * lib/hard-locale.c: Likewise.
24753 * lib/iconvme.c: Likewise.
24754 * lib/javacomp.c: Likewise.
24755 * lib/mempcpy.c: Likewise.
24756 * lib/memrchr.c: Likewise.
24757 * lib/regex_internal.h: Likewise.
24758 * lib/stpncpy.c: Likewise.
24759 * lib/strcasecmp.c: Likewise.
24760 * lib/strchrnul.c: Likewise.
24761 * lib/strdup.c: Likewise.
24762 * lib/striconv.c: Likewise.
24763 * lib/striconveh.c: Likewise.
24764 * lib/striconveha.c: Likewise.
24765 * lib/strncasecmp.c: Likewise.
24766 * lib/strndup.c: Likewise.
24767 * lib/strnlen.c: Likewise.
24768 * lib/strsep.c: Likewise.
24769 * lib/strstr.c: Likewise.
24770 * lib/strtok_r.c: Likewise.
24771 * lib/userspec.c: Likewise.
24772 * lib/w32spawn.h: Likewise.
24773 * lib/xstrndup.c: Likewise.
24774 * lib/mountlist.c (strstr): Remove decl.
24775 * m4/string_h.m4: New file.
24776 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
24777 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
24778 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
24779 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
24780 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
24781 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
24782 Set REPLACE_STRCASECMP if necessary.
24783 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
24784 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
24785 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
24786 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
24787 HAVE_DECL_STRDUP if necessary.
24788 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
24789 since gl_FUNC_STRNDUP does that now.
24790 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
24791 Check for decl here...
24792 (gl_PREREQ_STRNLEN): ... not here.
24793 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
24794 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
24795 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
24796 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
24798 * modules/string: New file.
24799 * modules/memmem (Files): Remove special-purpose include file.
24800 (Depends-on): Add string.
24801 (Include): Include <string.h>, not the removed file.
24802 * modules/mempcpy: Likewise.
24803 * modules/memrchr: Likewise.
24804 * modules/stpcpy: Likewise.
24805 * modules/stpncpy: Likewise.
24806 * modules/strcase: Likewise.
24807 * modules/strchrnul: Likewise.
24808 * modules/strdup: Likewise.
24809 * modules/strndup: Likewise.
24810 * modules/strnlen: Likewise.
24811 * modules/strpbrk: Likewise.
24812 * modules/strsep: Likewise.
24813 * modules/strstr: Likewise.
24814 * modules/strtok_r: Likewise.
24815 * tests/test-dirname.c: Don't include "strdup.h", since
24816 <string.h> now suffices.
24817 * tests/test-memmem.c: Don't include "memmem.h", since
24818 <string.h> now suffices.
24820 2007-01-25 Bruno Haible <bruno@clisp.org>
24822 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
24825 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
24826 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
24827 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
24828 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
24830 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
24831 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
24832 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
24833 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
24834 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
24835 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
24837 2007-01-24 Bruno Haible <bruno@clisp.org>
24839 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
24840 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
24841 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
24842 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
24844 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
24845 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
24846 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24847 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
24848 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
24849 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
24851 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
24853 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
24854 Reported by Ralf Wildenhues.
24856 2007-01-24 Bruno Haible <bruno@clisp.org>
24858 Drop AC_REQUIRE calls that are redundant with the module dependencies.
24859 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
24861 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
24862 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
24863 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
24865 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
24867 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
24868 Don't use 'exit'; just return from 'main'.
24869 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
24871 * lib/fnmatch_.h: Readjust white space and comments to match
24872 glibc, to avoid spurious diffs.
24874 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
24876 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
24877 2004-12-01 change by Jakub Jelinek, since this code won't compile
24878 if !LIBC. Problem reported by Bob Proulx.
24880 2007-01-23 Bruno Haible <bruno@clisp.org>
24882 * lib/striconveh.c: Include c-strcaseeq.h.
24883 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
24884 * modules/striconveh (Depends-on): Add c-strcaseeq.
24886 2007-01-23 Bruno Haible <bruno@clisp.org>
24888 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
24890 * modules/c-strcaseeq: New file.
24891 * lib/c-strcaseeq.h: New file.
24893 * modules/streq: New file.
24894 * lib/streq.h: New file.
24896 2007-01-23 Bruno Haible <bruno@clisp.org>
24898 * modules/striconveha-tests: New file.
24899 * tests/test-striconveha.c: New file.
24901 * lib/striconveha.h: Include <stdbool.h>.
24902 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
24903 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
24904 (mem_iconveha_notranslit): Renamed from mem_iconveha.
24905 (mem_iconveha): New function.
24906 (str_iconveha_notranslit): Renamed from str_iconveha.
24907 (str_iconveha): New function.
24908 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
24911 2007-01-23 Bruno Haible <bruno@clisp.org>
24913 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
24914 encodings without forgiving before trying any encoding with handler.
24915 (str_iconveha): Try all encodings without forgiving before trying any
24916 encoding with handler.
24918 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
24920 Import the following changes from libc.
24922 2005-10-14 Ulrich Drepper <drepper@redhat.com>
24924 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
24926 2004-12-01 Jakub Jelinek <jakub@redhat.com>
24928 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
24929 normal_bracket label.
24931 2004-09-01 Jakub Jelinek <jakub@redhat.com>
24934 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
24935 to normal_bracket after fetching the next character.
24937 2007-01-22 Bruno Haible <bruno@clisp.org>
24939 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
24941 * lib/striconveh.c (iconv_carefully_1): New function.
24942 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
24944 (str_cd_iconveh): Update.
24945 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
24946 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
24947 * tests/test-striconveh.c (MAGIC): New macro.
24948 (new_offsets): New function.
24949 (main): Test call with and without offsets.
24951 2007-01-22 Bruno Haible <bruno@clisp.org>
24953 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
24954 * modules/sys_select (Makefile.am): Likewise.
24955 * modules/sys_socket (Makefile.am): Likewise.
24956 * modules/sys_time (Makefile.am): Likewise.
24958 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
24960 * modules/gettimeofday (License): Change from GPL to LGPL, since
24961 gettimeofday is a library function.
24963 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
24965 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
24967 2007-01-21 Bruno Haible <bruno@clisp.org>
24969 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
24971 2007-01-21 Bruno Haible <bruno@clisp.org>
24973 * modules/striconveha: New file.
24974 * lib/striconveha.h: New file.
24975 * lib/striconveha.c: New file.
24976 * MODULES.html.sh (Internationalization functions): Add striconveha.
24977 * lib/striconv.c (str_iconv): Optimize the case of an empty input
24979 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
24981 2007-01-21 Bruno Haible <bruno@clisp.org>
24983 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
24984 * lib/striconveh.c (str_iconveh): Likewise.
24986 2007-01-21 Bruno Haible <bruno@clisp.org>
24988 * lib/striconveh.h (mem_iconveh): New declaration.
24989 * lib/striconveh.c (mem_iconveh): New function.
24990 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
24992 2007-01-21 Bruno Haible <bruno@clisp.org>
24994 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
24996 * lib/striconveh.h (mem_cd_iconveh): Change specification.
24997 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
24998 original result buffer.
24999 (str_cd_iconveh): Update.
25000 * tests/test-striconveh.c (main): Update.
25002 * lib/striconv.h (mem_cd_iconv): Change specification.
25003 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
25005 (str_cd_iconv): Update.
25006 * tests/test-striconv.c (main): Update.
25008 2007-01-21 Bruno Haible <bruno@clisp.org>
25010 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
25012 2007-01-20 Jim Meyering <jim@meyering.net>
25014 * lib/userspec.c (parse_with_separator): If a user or group string
25015 starts with "+", skip the corresponding name-to-ID look-up, since
25016 such a look-up must fail: user and group names may not include "+".
25018 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
25020 * lib/poll.c: Include sys/time.h and time.h unconditionally,
25021 since we now assume the sys_time module.
25022 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
25023 check for sys/time.h; no longer needed.
25024 * modules/poll (Depends-on): Depend on sys_time.
25026 2007-01-18 Bruno Haible <bruno@clisp.org>
25028 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
25029 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
25031 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
25034 * tests/test-gettimeofday.c: Include <time.h>.
25035 (dummy): Remove variable.
25037 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
25038 gl_HEADER_SYS_TIME_H.
25039 (gl_HEADER_SYS_TIME_H): New macro.
25041 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
25042 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25043 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
25044 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
25045 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25046 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
25047 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
25048 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25049 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
25050 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
25051 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25053 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
25054 last change; it caused a compilation error when cross-compiling to
25057 2007-01-18 Jim Meyering <jim@meyering.net>
25059 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
25060 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
25061 than the race-prone "test -d sys || mkdir sys".
25062 (configure.ac): Use AC_PROG_MKDIR_P.
25063 * modules/sys_select: Likewise.
25064 * modules/sys_socket: Likewise.
25065 * modules/sys_time: Likewise.
25067 2007-01-18 Eric Blake <ebb9@byu.net>
25069 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
25070 replace gettimeofday.
25071 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
25072 name, to avoid infinite recursion.
25074 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
25076 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
25078 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
25079 assume timespec.h defines struct timeval.
25080 * lib/settime.c: Likewise.
25081 * lib/utimens.c: Likewise.
25082 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
25083 since we now assume the gettimeofday module.
25084 * lib/tempname.c (__gen_tempname): Likewise.
25085 * lib/gettimeofday.h: Remove.
25086 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
25087 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
25088 Include <time.h>, for 'time()'.
25089 (localtime_buffer_addr): Also use this workaround if
25090 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
25091 to simplify the uses. All uses changed.
25092 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
25093 that #undef is inside {}, and 'const' follows type name consistently.
25094 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
25095 (gettimeofday): Do not use the maximum possible value for
25096 tv->tv_usec, since that might break usages other than ls.c.
25097 Instead, we'll leave ls.c alone. This undoes today's patch
25098 by Bruno. Add a compile-time warning for 1s-clock resolution;
25099 we've never observed the problem but might as well keep the
25101 * lib/nanosleep.c: Include timespec.h first, for interface check.
25102 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
25103 now assume the sys_time module.
25104 * lib/tempname.c: Likewise.
25105 * lib/timespec.h: Likewise.
25106 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
25108 * lib/strftime.c: Likewise.
25109 * lib/timespec.h: Likewise.
25110 * lib/posixtm.c: Include posixtm.h first, for interface check.
25111 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
25112 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
25113 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
25114 * lib/sys_time_.h: New file.
25115 * lib/timespec.h (struct timespec): Use long int, not long.
25116 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
25117 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
25118 Remove obsolescent call to AC_HEADER_TIME.
25119 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25120 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25121 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
25122 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
25124 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
25125 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
25126 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
25127 into the sys_time module. Check for gettimeofday just once.
25128 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
25129 for gettimeofday signature to just check the signature. Merely
25130 compile it, since linking doesn't test signature. Improve test for
25131 whether gettimeofday.o is actually needed.
25132 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
25133 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
25134 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
25135 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25136 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
25137 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
25138 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
25139 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
25140 than worrying about sys/time.h.
25141 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
25142 Don't bother worrying about TIME_WITH_SYS_TIME.
25143 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25144 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
25145 * m4/sys_time_h.m4: New file.
25146 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
25147 Don't include sys/time.h. Return from main rather than exiting.
25148 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
25150 * modules/gethrxtime (Depends-on): Add sys_time.
25151 * modules/gettime (Depends-on): Likewise.
25152 * modules/gettimeofday (Depends-on): Likewise.
25153 * modules/nanosleep (Depends-on): Likewise.
25154 * modules/settime (Depends-on): Likewise.
25155 * modules/tempname (Depends-on): Likewise.
25156 * modules/utimens (Depends-on): Likewise.
25157 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
25158 (Include:) Change back to <sys/time.h>.
25159 (Maintainer:) Add self.
25160 * modules/sys_time: New file.
25161 * modules/tempname (Depends-on): Add gettimeofday.
25162 * tests/test-gettimeofday.c: Include <sys/time.h>
25163 rather than gettimeofday.h.
25165 2007-01-17 Bruno Haible <bruno@clisp.org>
25167 * gnulib-tool (func_get_license): Revert last patch. Instead, let
25168 the license default to GPL.
25169 (func_create_testdir): Don't complain if a module is LGPL and its
25170 tests module depends on GPLed modules.
25172 2007-01-17 Bruno Haible <bruno@clisp.org>
25174 * lib/gettimeofday.c (gettimeofday): Add code for the case
25175 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
25176 maximum possible value for tv->tv_usec, rather than the minimum one.
25178 2005-10-08 Martin Lambers <marlam@marlam.de>
25179 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
25180 2007-01-16 Bruno Haible <bruno@clisp.org>
25182 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
25183 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
25184 gl_FUNC_GETTIMEOFDAY.
25185 (Include): Add gettimeofday.h.
25186 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
25187 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
25188 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
25189 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
25190 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
25191 * lib/gettimeofday.h: New file.
25192 * lib/gettimeofday.c: Include <sys/timeb.h>.
25193 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
25194 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25195 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
25196 fall back on time().
25198 * tests/test-gettimeofday.c: New file.
25199 * modules/gettimeofday-tests: New file.
25201 2007-01-16 Eric Blake <ebb9@byu.net>
25203 * modules/fnmatch (Depends-on): Depend on wchar.
25204 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
25205 * m4/fnmatch.m4: Likewise.
25206 * modules/mbchar (Makefile.am): Assume <wchar.h>.
25207 * m4/mbchar.m4: Likewise.
25208 * modules/mbswidth (Depends-on): Depend on wchar.
25209 * lib/mbswidth.c: Assume <wchar.h>.
25210 * m4/mbswidth.m4: Likewise.
25211 * modules/quotearg (Depends-on): Depend on wchar.
25212 * lib/quotearg.c: Assume <wchar.h>.
25213 * m4/quotearg.m4: Likewise.
25214 * modules/regex (Depends-on): Depend on wchar.
25215 * lib/regex_internal.h: Assume <wchar.h>.
25216 * m4/regex.m4: Likewise.
25217 * modules/stdint (Depends-on): Depend on wchar.
25218 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
25219 * m4/stdint.m4: Likewise.
25220 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
25221 * modules/strftime (Depends-on): Depend on wchar.
25222 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
25223 * modules/strtol (Depends-on): Depend on wchar.
25224 * lib/strtol.c: Assume <wchar.h>.
25225 * modules/wcwidth (Depends-on): Depend on wchar.
25226 * lib/wcwidth.h: Assume <wchar.h>.
25227 * m4/wcwidth.m4: Likewise.
25229 2007-01-16 Bruno Haible <bruno@clisp.org>
25231 * modules/csharpexec-script: New, created from...
25232 * modules/csharpexec: ... this.
25234 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
25236 * modules/javaexec-script: New, created from...
25237 * modules/javaexec: ... this.
25239 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
25241 * modules/poll (Dependencies): Add sys_select.
25243 2007-01-15 Jim Meyering <jim@meyering.net>
25245 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
25246 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
25247 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
25248 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
25250 2007-01-15 Bruno Haible <bruno@clisp.org>
25252 * modules/striconveh: New file.
25253 * lib/striconveh.h: New file.
25254 * lib/striconveh.c: New file.
25255 * MODULES.html.sh (Internationalization functions): Add striconveh.
25257 * modules/striconveh-tests: New file.
25258 * tests/test-striconveh.c: New file.
25260 2007-01-15 Bruno Haible <bruno@clisp.org>
25262 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
25263 not from GNU libiconv or GNU libc.
25265 2007-01-15 Bruno Haible <bruno@clisp.org>
25267 * doc/gnulib-intro.texi (Copyright): Explain the different license
25268 terms for module descriptions, autoconf macros, tests, documentation.
25270 2007-01-14 Bruno Haible <bruno@clisp.org>
25272 * modules/striconv-tests: New file.
25273 * tests/test-striconv.c: New file.
25275 2007-01-14 Bruno Haible <bruno@clisp.org>
25277 * modules/iconv-tests: New file.
25278 * tests/test-iconv.c: New file.
25280 2007-01-14 Bruno Haible <bruno@clisp.org>
25282 * gnulib-tool (func_get_license): For test modules, use the license of
25285 2007-01-14 Bruno Haible <bruno@clisp.org>
25287 * modules/iconv (Include): Clarify that <iconv.h> can only be included
25288 if iconv is found to exist.
25290 2007-01-14 Bruno Haible <bruno@clisp.org>
25292 * modules/c-ctype-tests: New file.
25293 * tests/test-c-ctype.c: New file.
25295 2007-01-14 Bruno Haible <bruno@clisp.org>
25297 * modules/binary-io-tests: New file.
25298 * tests/test-binary-io.sh: New file.
25299 * tests/test-binary-io.c: New file.
25301 2007-01-14 Bruno Haible <bruno@clisp.org>
25303 * modules/array-oset-tests: New file.
25304 * tests/test-array_oset.c: New file.
25306 2007-01-14 Bruno Haible <bruno@clisp.org>
25308 * modules/array-list-tests: New file.
25309 * tests/test-array_list.c: New file.
25311 2007-01-14 Bruno Haible <bruno@clisp.org>
25313 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
25315 Reported by Simon Josefsson in
25316 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
25318 2007-01-14 Bruno Haible <bruno@clisp.org>
25320 * modules/allocsa-tests: New file.
25321 * tests/test-allocsa.c: New file.
25323 2007-01-14 Bruno Haible <bruno@clisp.org>
25325 * modules/fchdir (Depends-on): Add absolute-header.
25326 * modules/unistd (Depends-on): Likewise.
25328 2006-12-30 Bruno Haible <bruno@clisp.org>
25330 * modules/fchdir: New file.
25331 * modules/unistd (Files): Add lib/unistd_.h.
25332 (Makefile.am): Generate unistd.h from unistd_.h.
25333 * lib/fchdir.c: New file.
25334 * lib/dirent_.h: New file.
25335 * lib/unistd_.h: New file.
25336 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
25337 * m4/fchdir.m4: New file.
25338 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
25339 (gl_HEADER_UNISTD): Invoke it.
25340 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
25342 * lib/backupfile.c (opendir, closedir): Undefine.
25343 * lib/chown.c (open, close): Undefine.
25344 * lib/clean-temp.c (open, close): Undefine.
25345 * lib/copy-file.c (open, close): Undefine.
25346 * lib/execute.c (open, close): Undefine.
25347 * lib/fsusage.c (open, close): Undefine.
25348 * lib/gc-gnulib.c (open, close): Undefine.
25349 * lib/getcwd.c (opendir, closedir): Undefine.
25350 * lib/glob.c (opendir, closedir): Undefine.
25351 * lib/javacomp.c (open, close): Undefine.
25352 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
25353 * lib/openat-proc.c (open, close): Undefine.
25354 * lib/pagealign_alloc.c (open, close): Undefine.
25355 * lib/pipe.c (open, close): Undefine.
25356 * lib/progreloc.c (open, close): Undefine.
25357 * lib/savedir.c (opendir, closedir): Undefine.
25358 * lib/utime.c (open, close): Undefine.
25359 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
25361 2007-01-10 Bruno Haible <bruno@clisp.org>
25363 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
25365 2007-01-12 Eric Blake <ebb9@byu.net>
25367 Provide a robust <wchar.h>. Further simplifications are now
25368 possible in other modules, but not included here.
25369 * modules/wchar: New module.
25370 * m4/wchar.m4: New file.
25371 * lib/wchar_.h: Likewise.
25372 * modules/mbchar (Depends-on): Depend on wchar, as the first use
25374 * MODULES.html.sh (Extended multibyte and wide character utilities):
25377 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
25379 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
25380 to a reasonable default for memory allocation.
25381 (xreadlink): Don't allocate a huge buffer, to work around a buggy
25382 file system that reports garbage st_size values for symlinks.
25383 Problem reported by Liyang Hu.
25385 2007-01-11 Simon Josefsson <simon@josefsson.org>
25387 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
25388 Emacs .#* auto-save files).
25390 2007-01-11 Bruno Haible <bruno@clisp.org>
25392 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
25395 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
25397 Use @...@ consistently in lib/wctype_.h.
25398 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
25399 on it being set to 1 or 0.
25400 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
25401 go back to AC_SUBSTing it.
25402 * modules/wctype (Makefile.am): Undo previous change.
25404 2007-01-10 Eric Blake <ebb9@byu.net>
25406 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
25407 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
25408 * modules/wctype (Makefile.am): Likewise.
25409 Reported by Chris McGuire.
25411 2007-01-10 Jim Meyering <jim@meyering.net>
25413 fts.c: a small readability/maintainability improvement
25414 * lib/fts.c (fts_read): Make this code slightly more readable and
25415 maintainable by hoisting the "sp->fts_cur = p" assignments to
25416 immediately follow the statements that set P. Derived from
25417 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
25419 2007-01-10 Eric Blake <ebb9@byu.net>
25421 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
25422 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
25423 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25424 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25425 Reported by Chris McGuire.
25427 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25429 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
25432 2007-01-09 Bruno Haible <bruno@clisp.org>
25434 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
25435 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
25437 (func_module): Use them.
25439 2007-01-09 Bruno Haible <bruno@clisp.org>
25441 * modules/unistr/base: New file.
25442 * lib/unistr.h: New file.
25444 * modules/unistr/u8-to-u16: New file.
25445 * lib/unistr/u8-to-u16.c: New file.
25447 * modules/unistr/u8-to-u32: New file.
25448 * lib/unistr/u8-to-u32.c: New file.
25450 * modules/unistr/u16-to-u8: New file.
25451 * lib/unistr/u16-to-u8.c: New file.
25453 * modules/unistr/u16-to-u32: New file.
25454 * lib/unistr/u16-to-u32.c: New file.
25456 * modules/unistr/u32-to-u8: New file.
25457 * lib/unistr/u32-to-u8.c: New file.
25459 * modules/unistr/u32-to-u16: New file.
25460 * lib/unistr/u32-to-u16.c: New file.
25462 * modules/unistr/u8-check: New file.
25463 * modules/unistr/u16-check: New file.
25464 * modules/unistr/u32-check: New file.
25465 * lib/unistr/u8-check.c: New file.
25466 * lib/unistr/u16-check.c: New file.
25467 * lib/unistr/u32-check.c: New file.
25469 * modules/unistr/u8-chr: New file.
25470 * modules/unistr/u16-chr: New file.
25471 * modules/unistr/u32-chr: New file.
25472 * lib/unistr/u8-chr.c: New file.
25473 * lib/unistr/u16-chr.c: New file.
25474 * lib/unistr/u32-chr.c: New file.
25476 * modules/unistr/u8-cmp: New file.
25477 * modules/unistr/u16-cmp: New file.
25478 * modules/unistr/u32-cmp: New file.
25479 * lib/unistr/u8-cmp.c: New file.
25480 * lib/unistr/u16-cmp.c: New file.
25481 * lib/unistr/u32-cmp.c: New file.
25483 * modules/unistr/u8-cpy: New file.
25484 * modules/unistr/u16-cpy: New file.
25485 * modules/unistr/u32-cpy: New file.
25486 * lib/unistr/u8-cpy.c: New file.
25487 * lib/unistr/u16-cpy.c: New file.
25488 * lib/unistr/u32-cpy.c: New file.
25489 * lib/unistr/u-cpy.h: New file.
25491 * modules/unistr/u8-cpy-alloc: New file.
25492 * modules/unistr/u16-cpy-alloc: New file.
25493 * modules/unistr/u32-cpy-alloc: New file.
25494 * lib/unistr/u8-cpy-alloc.c: New file.
25495 * lib/unistr/u16-cpy-alloc.c: New file.
25496 * lib/unistr/u32-cpy-alloc.c: New file.
25497 * lib/unistr/u-cpy-alloc.h: New file.
25499 * modules/unistr/u8-endswith: New file.
25500 * modules/unistr/u16-endswith: New file.
25501 * modules/unistr/u32-endswith: New file.
25502 * lib/unistr/u8-endswith.c: New file.
25503 * lib/unistr/u16-endswith.c: New file.
25504 * lib/unistr/u32-endswith.c: New file.
25505 * lib/unistr/u-endswith.h: New file.
25507 * modules/unistr/u8-mblen: New file.
25508 * modules/unistr/u16-mblen: New file.
25509 * modules/unistr/u32-mblen: New file.
25510 * lib/unistr/u8-mblen.c: New file.
25511 * lib/unistr/u16-mblen.c: New file.
25512 * lib/unistr/u32-mblen.c: New file.
25514 * modules/unistr/u8-mbtouc: New file.
25515 * modules/unistr/u16-mbtouc: New file.
25516 * modules/unistr/u32-mbtouc: New file.
25517 * lib/unistr/u8-mbtouc.c: New file.
25518 * lib/unistr/u16-mbtouc.c: New file.
25519 * lib/unistr/u32-mbtouc.c: New file.
25521 * modules/unistr/u8-mbtouc-safe: New file.
25522 * modules/unistr/u16-mbtouc-safe: New file.
25523 * modules/unistr/u32-mbtouc-safe: New file.
25524 * lib/unistr/u8-mbtouc-safe.c: New file.
25525 * lib/unistr/u16-mbtouc-safe.c: New file.
25526 * lib/unistr/u32-mbtouc-safe.c: New file.
25528 * modules/unistr/u8-move: New file.
25529 * modules/unistr/u16-move: New file.
25530 * modules/unistr/u32-move: New file.
25531 * lib/unistr/u8-move.c: New file.
25532 * lib/unistr/u16-move.c: New file.
25533 * lib/unistr/u32-move.c: New file.
25534 * lib/unistr/u-move.h: New file.
25536 * modules/unistr/u8-next: New file.
25537 * modules/unistr/u16-next: New file.
25538 * modules/unistr/u32-next: New file.
25539 * lib/unistr/u8-next.c: New file.
25540 * lib/unistr/u16-next.c: New file.
25541 * lib/unistr/u32-next.c: New file.
25543 * modules/unistr/u8-prev: New file.
25544 * modules/unistr/u16-prev: New file.
25545 * modules/unistr/u32-prev: New file.
25546 * lib/unistr/u8-prev.c: New file.
25547 * lib/unistr/u16-prev.c: New file.
25548 * lib/unistr/u32-prev.c: New file.
25550 * modules/unistr/u8-set: New file.
25551 * modules/unistr/u16-set: New file.
25552 * modules/unistr/u32-set: New file.
25553 * lib/unistr/u8-set.c: New file.
25554 * lib/unistr/u16-set.c: New file.
25555 * lib/unistr/u32-set.c: New file.
25556 * lib/unistr/u-set.h: New file.
25558 * modules/unistr/u8-startswith: New file.
25559 * modules/unistr/u16-startswith: New file.
25560 * modules/unistr/u32-startswith: New file.
25561 * lib/unistr/u8-startswith.c: New file.
25562 * lib/unistr/u16-startswith.c: New file.
25563 * lib/unistr/u32-startswith.c: New file.
25564 * lib/unistr/u-startswith.h: New file.
25566 * modules/unistr/u8-stpcpy: New file.
25567 * modules/unistr/u16-stpcpy: New file.
25568 * modules/unistr/u32-stpcpy: New file.
25569 * lib/unistr/u8-stpcpy.c: New file.
25570 * lib/unistr/u16-stpcpy.c: New file.
25571 * lib/unistr/u32-stpcpy.c: New file.
25572 * lib/unistr/u-stpcpy.h: New file.
25574 * modules/unistr/u8-stpncpy: New file.
25575 * modules/unistr/u16-stpncpy: New file.
25576 * modules/unistr/u32-stpncpy: New file.
25577 * lib/unistr/u8-stpncpy.c: New file.
25578 * lib/unistr/u16-stpncpy.c: New file.
25579 * lib/unistr/u32-stpncpy.c: New file.
25580 * lib/unistr/u-stpncpy.h: New file.
25582 * modules/unistr/u8-strcat: New file.
25583 * modules/unistr/u16-strcat: New file.
25584 * modules/unistr/u32-strcat: New file.
25585 * lib/unistr/u8-strcat.c: New file.
25586 * lib/unistr/u16-strcat.c: New file.
25587 * lib/unistr/u32-strcat.c: New file.
25588 * lib/unistr/u-strcat.h: New file.
25590 * modules/unistr/u8-strchr: New file.
25591 * modules/unistr/u16-strchr: New file.
25592 * modules/unistr/u32-strchr: New file.
25593 * lib/unistr/u8-strchr.c: New file.
25594 * lib/unistr/u16-strchr.c: New file.
25595 * lib/unistr/u32-strchr.c: New file.
25597 * modules/unistr/u8-strcmp: New file.
25598 * modules/unistr/u16-strcmp: New file.
25599 * modules/unistr/u32-strcmp: New file.
25600 * lib/unistr/u8-strcmp.c: New file.
25601 * lib/unistr/u16-strcmp.c: New file.
25602 * lib/unistr/u32-strcmp.c: New file.
25604 * modules/unistr/u8-strcpy: New file.
25605 * modules/unistr/u16-strcpy: New file.
25606 * modules/unistr/u32-strcpy: New file.
25607 * lib/unistr/u8-strcpy.c: New file.
25608 * lib/unistr/u16-strcpy.c: New file.
25609 * lib/unistr/u32-strcpy.c: New file.
25610 * lib/unistr/u-strcpy.h: New file.
25612 * modules/unistr/u8-strcspn: New file.
25613 * modules/unistr/u16-strcspn: New file.
25614 * modules/unistr/u32-strcspn: New file.
25615 * lib/unistr/u8-strcspn.c: New file.
25616 * lib/unistr/u16-strcspn.c: New file.
25617 * lib/unistr/u32-strcspn.c: New file.
25618 * lib/unistr/u-strcspn.h: New file.
25620 * modules/unistr/u8-strdup: New file.
25621 * modules/unistr/u16-strdup: New file.
25622 * modules/unistr/u32-strdup: New file.
25623 * lib/unistr/u8-strdup.c: New file.
25624 * lib/unistr/u16-strdup.c: New file.
25625 * lib/unistr/u32-strdup.c: New file.
25626 * lib/unistr/u-strdup.h: New file.
25628 * modules/unistr/u8-strlen: New file.
25629 * modules/unistr/u16-strlen: New file.
25630 * modules/unistr/u32-strlen: New file.
25631 * lib/unistr/u8-strlen.c: New file.
25632 * lib/unistr/u16-strlen.c: New file.
25633 * lib/unistr/u32-strlen.c: New file.
25634 * lib/unistr/u-strlen.h: New file.
25636 * modules/unistr/u8-strmblen: New file.
25637 * modules/unistr/u16-strmblen: New file.
25638 * modules/unistr/u32-strmblen: New file.
25639 * lib/unistr/u8-strmblen.c: New file.
25640 * lib/unistr/u16-strmblen.c: New file.
25641 * lib/unistr/u32-strmblen.c: New file.
25643 * modules/unistr/u8-strmbtouc: New file.
25644 * modules/unistr/u16-strmbtouc: New file.
25645 * modules/unistr/u32-strmbtouc: New file.
25646 * lib/unistr/u8-strmbtouc.c: New file.
25647 * lib/unistr/u16-strmbtouc.c: New file.
25648 * lib/unistr/u32-strmbtouc.c: New file.
25650 * modules/unistr/u8-strncat: New file.
25651 * modules/unistr/u16-strncat: New file.
25652 * modules/unistr/u32-strncat: New file.
25653 * lib/unistr/u8-strncat.c: New file.
25654 * lib/unistr/u16-strncat.c: New file.
25655 * lib/unistr/u32-strncat.c: New file.
25656 * lib/unistr/u-strncat.h: New file.
25658 * modules/unistr/u8-strncmp: New file.
25659 * modules/unistr/u16-strncmp: New file.
25660 * modules/unistr/u32-strncmp: New file.
25661 * lib/unistr/u8-strncmp.c: New file.
25662 * lib/unistr/u16-strncmp.c: New file.
25663 * lib/unistr/u32-strncmp.c: New file.
25665 * modules/unistr/u8-strncpy: New file.
25666 * modules/unistr/u16-strncpy: New file.
25667 * modules/unistr/u32-strncpy: New file.
25668 * lib/unistr/u8-strncpy.c: New file.
25669 * lib/unistr/u16-strncpy.c: New file.
25670 * lib/unistr/u32-strncpy.c: New file.
25671 * lib/unistr/u-strncpy.h: New file.
25673 * modules/unistr/u8-strnlen: New file.
25674 * modules/unistr/u16-strnlen: New file.
25675 * modules/unistr/u32-strnlen: New file.
25676 * lib/unistr/u8-strnlen.c: New file.
25677 * lib/unistr/u16-strnlen.c: New file.
25678 * lib/unistr/u32-strnlen.c: New file.
25679 * lib/unistr/u-strnlen.h: New file.
25681 * modules/unistr/u8-strpbrk: New file.
25682 * modules/unistr/u16-strpbrk: New file.
25683 * modules/unistr/u32-strpbrk: New file.
25684 * lib/unistr/u8-strpbrk.c: New file.
25685 * lib/unistr/u16-strpbrk.c: New file.
25686 * lib/unistr/u32-strpbrk.c: New file.
25687 * lib/unistr/u-strpbrk.h: New file.
25689 * modules/unistr/u8-strrchr: New file.
25690 * modules/unistr/u16-strrchr: New file.
25691 * modules/unistr/u32-strrchr: New file.
25692 * lib/unistr/u8-strrchr.c: New file.
25693 * lib/unistr/u16-strrchr.c: New file.
25694 * lib/unistr/u32-strrchr.c: New file.
25696 * modules/unistr/u8-strspn: New file.
25697 * modules/unistr/u16-strspn: New file.
25698 * modules/unistr/u32-strspn: New file.
25699 * lib/unistr/u8-strspn.c: New file.
25700 * lib/unistr/u16-strspn.c: New file.
25701 * lib/unistr/u32-strspn.c: New file.
25702 * lib/unistr/u-strspn.h: New file.
25704 * modules/unistr/u8-strstr: New file.
25705 * modules/unistr/u16-strstr: New file.
25706 * modules/unistr/u32-strstr: New file.
25707 * lib/unistr/u8-strstr.c: New file.
25708 * lib/unistr/u16-strstr.c: New file.
25709 * lib/unistr/u32-strstr.c: New file.
25710 * lib/unistr/u-strstr.h: New file.
25712 * modules/unistr/u8-strtok: New file.
25713 * modules/unistr/u16-strtok: New file.
25714 * modules/unistr/u32-strtok: New file.
25715 * lib/unistr/u8-strtok.c: New file.
25716 * lib/unistr/u16-strtok.c: New file.
25717 * lib/unistr/u32-strtok.c: New file.
25718 * lib/unistr/u-strtok.h: New file.
25720 * modules/unistr/u8-uctomb: New file.
25721 * modules/unistr/u16-uctomb: New file.
25722 * modules/unistr/u32-uctomb: New file.
25723 * lib/unistr/u8-uctomb.c: New file.
25724 * lib/unistr/u16-uctomb.c: New file.
25725 * lib/unistr/u32-uctomb.c: New file.
25727 * MODULES.html.sh (Unicode string functions): Add the new modules.
25729 2007-01-08 Bruno Haible <bruno@clisp.org>
25731 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
25732 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
25735 2007-01-08 Karl Berry <karl@gnu.org>
25737 * doc/error.texi: mention that main() fns must set program_name
25738 when progname is used.
25740 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
25742 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
25743 WCTYPE_H is empty, for the benefit of builds from non-distclean
25744 directories. Problem reported by Eric Blake in
25745 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
25747 2007-01-08 Bruno Haible <bruno@clisp.org>
25749 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
25750 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
25751 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
25752 PROVIDE_CANONICALIZE_FILENAME_MODE.
25753 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
25755 2007-01-08 Bruno Haible <bruno@clisp.org>
25757 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
25758 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
25759 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
25760 * lib/fts.c: Likewise.
25761 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
25763 2006-12-25 Bruno Haible <bruno@clisp.org>
25765 * modules/utf8-ucs4-safe: New file.
25766 * lib/utf8-ucs4-safe.h: New file.
25767 * lib/unistr/utf8-ucs4-safe.c: New file.
25769 * modules/utf16-ucs4-safe: New file.
25770 * lib/utf16-ucs4-safe.h: New file.
25771 * lib/unistr/utf16-ucs4-safe.c: New file.
25773 * MODULES.html.sh (Unicode string functions): Add the new modules.
25775 2007-01-08 Bruno Haible <bruno@clisp.org>
25777 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
25778 (Depends-on): Add unitypes.
25779 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
25780 (u8_mbtouc_aux): Move out to separate file.
25781 (u8_mbtouc): Use ucs4_t, uint8_t types.
25782 * lib/unistr/utf8-ucs4.c: New file.
25784 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
25785 (Depends-on): Add unitypes.
25786 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
25787 (u16_mbtouc_aux): Move out to separate file.
25788 (u16_mbtouc): Use ucs4_t, uint16_t types.
25789 * lib/unistr/utf16-ucs4.c: New file.
25791 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
25792 (Depends-on): Add unitypes.
25793 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
25794 (u8_uctomb_aux): Move out to separate file.
25795 (u8_uctomb): Use ucs4_t, uint8_t types.
25796 * lib/unistr/ucs4-utf8.c: New file.
25798 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
25799 (Depends-on): Add unitypes.
25800 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
25801 (u16_uctomb_aux): Move out to separate file.
25802 (u16_uctomb): Use ucs4_t, uint16_t types.
25803 * lib/unistr/ucs4-utf16.c: New file.
25805 2006-12-25 Bruno Haible <bruno@clisp.org>
25807 * modules/unitypes: New file.
25808 * lib/unitypes.h: New file.
25809 * MODULES.html.sh (func_all_modules): New section "Unicode string
25810 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
25811 this section. Add unitypes.
25813 2007-01-08 Bruno Haible <bruno@clisp.org>
25815 Avoid variable names that conflict with those from libtool.
25816 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
25817 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
25818 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
25819 library_names_spec to acl_library_names_spec, hardcode_* to
25821 Reported by Ralf Wildenhues.
25823 2007-01-08 Bruno Haible <bruno@clisp.org>
25825 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
25827 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
25829 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
25830 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
25832 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
25834 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
25835 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
25836 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
25837 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
25839 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
25841 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
25842 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
25843 GC_USE_<algorithm>.
25844 * lib/gc-libgcrypt.c: Likewise.
25845 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
25846 * modules/gc-arctwo (configure.ac): Likewise.
25847 * modules/gc-des (configure.ac): Likewise.
25848 * modules/gc-hmac-md5 (configure.ac): Likewise.
25849 * modules/gc-hmac-sha1 (configure.ac): Likewise.
25850 * modules/gc-md2 (configure.ac): Likewise.
25851 * modules/gc-md4 (configure.ac): Likewise.
25852 * modules/gc-md5 (configure.ac): Likewise.
25853 * modules/gc-random (configure.ac): Likewise.
25854 * modules/gc-rijndael (configure.ac): Likewise.
25855 * modules/gc-sha1 (configure.ac): Likewise.
25857 2007-01-08 Bruno Haible <bruno@clisp.org>
25859 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
25861 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
25863 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
25865 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
25866 * modules/fcntl-safer (configure.ac): Likewise.
25867 * modules/fopen-safer (configure.ac): Likewise.
25868 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
25869 GNULIB_FWRITEERROR macro definition.
25871 2007-01-08 Bruno Haible <bruno@clisp.org>
25873 * m4/gnulib-common.m4: New file.
25874 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
25875 (func_get_filelist): Add m4/gnulib-common.m4.
25877 2007-01-08 Bruno Haible <bruno@clisp.org>
25879 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
25882 2007-01-08 Jim Meyering <jim@meyering.net>
25884 Use a more robust test for a "can't happen" condition.
25885 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
25886 narrowed the st_size value. Presuming the "can't happen" condition
25887 is true, that narrowing could conceivably convert an invalid st_size
25888 value into a valid one. Instead, use a change based on Matthew
25889 Woehlke's original patch.
25891 Slight readability improvement: use an assert-like macro
25892 in place of literal "abort ()" uses.
25893 * lib/fts.c (fts_assert): Define.
25894 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
25895 Use this macro instead of a bare 'abort'.
25897 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
25899 Don't worry about using IRIX 5.3's wctype.h broken definitions;
25900 simply work around them.
25901 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
25902 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
25903 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
25905 Don't bother to define as macros, since the standard doesn't require it.
25906 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
25907 longer worry about IRIX 5.3.
25908 (HAVE_WCTYPE_CTMP_BUG): Remove.
25910 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
25912 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
25913 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
25914 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
25915 Problems reported by Georg Schwarz for IRIX 5.3.
25917 * gnulib-tool (autoconf_minversion): Take the maximum version number
25918 found, not the minimum. Problem reported by James Youngman.
25920 2007-01-03 Karl Berry <karl@gnu.org>
25922 * doc/error.texi: new file, explaining interaction with progname.
25923 * doc/gnulib.texi: include it. Update copyright.
25925 2007-01-03 Simon Josefsson <simon@josefsson.org>
25927 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
25928 AC_CANONICAL_HOST, to improve autobuild outputs.
25930 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
25931 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
25933 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
25934 sockets, server sockets, and other file descriptors. Count errors
25935 to compute the return value. Reorder the code a bit to be easier
25936 to follow. Don't set event bits that were not requested (except
25937 POLLERR and POLLHUP).
25939 2007-01-01 Bruno Haible <bruno@clisp.org>
25941 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
25943 2007-01-03 Jim Meyering <jim@meyering.net>
25945 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
25947 2007-01-02 Bruno Haible <bruno@clisp.org>
25949 * modules/settime (Include): Require timespec.h.
25950 * modules/nanosleep (Include): Likewise.
25952 2007-01-01 Bruno Haible <bruno@clisp.org>
25954 * gnulib-tool (func_emit_copyright_notice): Bump year.
25955 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
25957 2007-01-01 Bruno Haible <bruno@clisp.org>
25959 Improve support for OpenBSD.
25960 * build-aux/config.rpath (libname_spec): Export.
25961 (library_names_spec): New variable. Export.
25962 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
25963 library_names_spec from the config.rpath output. Locate shared library
25964 through the name pattern in library_names_spec.
25966 2007-01-01 Eric Blake <ebb9@byu.net>
25968 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
25970 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
25972 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
25973 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
25974 assume the C locale, and avoid an "eval" that could cause trouble.
25975 Problem with SORT reported by Bob Proulx.
25977 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
25978 Define. Trivial patch from Henning Nielsen Lund, originally
25979 sent to bug-grep@gnu.org today.
25981 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
25983 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
25984 struct stat. Problem reported by Henning Nielsen Lund.
25985 * lib/acl.c: Include acl.h first, to check interface. Don't
25986 bother to include sys/types.h and sys/stat.h again.
25988 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
25990 Import the following change from libc; problem reported by
25993 2005-10-13 Ulrich Drepper <drepper@redhat.com>
25996 * lib/argp.h: Remove __NTH for __argp_usage inline function.
25998 2006-12-28 Jim Meyering <jim@meyering.net>
26000 * build-aux/announce-gen: Do not assume that the package
26001 builds any of tar.gz, tar.bz2, and .xdelta files.
26002 Suggestion from Simon Josefsson.
26004 2006-12-28 Simon Josefsson <simon@josefsson.org>
26006 * modules/announce-gen: New file.
26008 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
26010 * lib/mbchar.h: Just include <wctype.h>; the wctype module
26011 handles its gotchas now.
26012 * lib/mbswidth.c: Likewise.
26013 * lib/wcwidth.h: Likewise.
26014 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
26015 and iswcntrl; the wctype module does this stuff now.
26016 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26017 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26018 * modules/mbchar (Depends-on): Add wctype.
26019 * modules/mbswidth (Depends-on): Likewise.
26020 * modules/wcwidth (Depends-on): Likewise.
26022 2006-12-27 Eric Blake <ebb9@byu.net>
26024 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
26025 module uses more than what <wctype.h> is required to provide.
26027 2006-12-26 Eric Blake <ebb9@byu.net>
26029 * gnulib-tool (sed_extract_prog): Avoid space-tab.
26031 2006-12-26 Eric Blake <ebb9@byu.net>
26033 * modules/absolute-header: New module.
26034 * modules/fcntl (Depends-on): Depend on it.
26035 * modules/inttypes (Depends-on): Likewise.
26036 * modules/stdint (Depends-on): Likewise.
26037 * modules/sys_stat (Depends-on): Likewise.
26038 * modules/wctype (Depends-on): Likewise.
26039 * MODULES.html.sh (Support for building libraries and
26040 executables): Document it.
26042 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
26044 * gnulib-tool (SED): Remove, undoing previous change.
26045 The problem was that it broke coreutils on Solaris, because
26046 "sed --posix" leaked into a makefile.
26047 (sed): New alias, if 'alias' and GNU sed.
26049 2006-12-24 Jim Meyering <jim@meyering.net>
26051 Work around an fchownat bug in glibc-2.4:
26052 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
26053 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
26054 in spite of the -P option.
26055 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
26057 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
26058 * modules/openat (Files): Add lib/fchownat.c.
26059 * lib/openat.c (fchownat): Don't define here. Move to...
26060 * lib/fchownat.c: ...this new file.
26062 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
26064 Fix bug reported by Bruno Haible in
26065 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
26066 where quotearg.c didn't compile on Mac OS X 10.2 because it
26067 lacks <wchar.h> and wint_t.
26068 * lib/wctype_.h (__wctype_wint_t): New type.
26069 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
26070 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
26071 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
26072 Arg is now of type __wctype_wint_t, not wint_t.
26073 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
26074 substitute HAVE_WINT_T.
26075 * modules/wctype (Files): Add m4/wint_t.m4.
26076 (wctype.h): Substitute HAVE_WINT_T.
26078 2006-12-23 Bruno Haible <bruno@clisp.org>
26080 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
26082 2006-12-23 Bruno Haible <bruno@clisp.org>
26084 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
26086 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
26089 2006-12-22 Bruno Haible <bruno@clisp.org>
26091 * lib/copy-file.c: Include acl.h.
26092 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
26093 Close the file descriptors only after being done with copy_acl.
26094 * modules/copy-file (Depends-on): Add acl.
26096 2006-12-22 Bruno Haible <bruno@clisp.org>
26098 * gnulib-tool (SED): New variable.
26099 Use $SED instead of sed everywhere.
26101 2006-12-22 Bruno Haible <bruno@clisp.org>
26103 * modules/no-c++: New file.
26104 * m4/no-c++.m4: New file.
26105 * MODULES.html.sh (Support for building libraries and executables):
26108 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
26110 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
26111 Include <limits.h>, and use its INT_MAX to rewrite the
26112 j loop so that it does not overflow 'int'. Problem reported by
26114 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
26115 Play it safe by shifting left by 1 rather than multiplying by 2,
26116 as GCC is less likely to optimize this away when the value
26117 is signed (when it assumes overflow leads to undefined behavior).
26118 Also, don't assume time_t uses two's complement.
26120 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
26122 * MODULES.html.sh: New module wctype.
26123 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
26124 * lib/fnmatch.c: Don't bother to include <wchar.h> before
26125 <wctype.h>, since the new wctype module should fix this.
26126 * lib/quotearg.c: Include <wctype.h> unconditionally, since
26127 the wctype module should arrange for it.
26128 * lib/regex_internal.h: Likewise.
26129 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
26130 since the wctype module should handle this now.
26131 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
26132 * modules/fnmatch (Depends-on): Add wctype.
26133 * modules/quotearg (Depends-on): Likewise.
26134 * modules/regex (Depends-on): Likewise.
26136 2006-12-19 Bruno Haible <bruno@clisp.org>
26138 * lib/strdup.h [C++]: Wrap definitions in extern "C".
26139 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
26141 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26143 * modules/savewd (Depends-on): Fix dependency on fcntl.
26145 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
26147 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
26148 conforms to C99, rather than relying on the user's environment
26149 setting of STDINT_H.
26151 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
26152 and Eric Blake <ebb9@byu.net>
26154 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
26155 This is more consistent with the other defines here.
26156 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
26157 Port to z/OS. Problem reported by Paul Gilmartin.
26158 Change local vars to use gl_ prefix rather than ac_.
26159 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
26160 with other defines.
26161 * modules/double-slash-root: New module.
26162 * modules/dirname (Files): Remove m4/double-slash-root.m4.
26163 (Depends-on): Add double-slash-root.
26164 * MODULES.html.sh (File system functions): Mention new module.
26166 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
26168 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
26169 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
26170 This is for the benefit of gzip, which doesn't do i18n.
26172 2006-12-12 Jim Meyering <jim@meyering.net>
26174 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
26175 Reported by Andreas Schwab <schwab@suse.de>.
26177 2006-12-12 Bruno Haible <bruno@clisp.org>
26179 Merge these changes.
26180 2006-09-05 Bruno Haible <bruno@clisp.org>
26181 * lib/iconvme.c (iconv_string): No need to save and restore errno when
26182 iconv_alloc succeeded.
26183 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
26184 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
26185 test for " && dest " at the end - dest is always != NULL there. Call
26186 iconv with 4xNULL arguments initially, to reset the state. Call iconv
26187 with 2xNULL arguments, also to flush the state storage. Handle the
26188 IRIX iconv behaviour. Realloc the final result, to throw away unused
26191 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
26193 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
26194 and fchmodat unconditionally, since glibc 2.4 has them.
26195 Problem reported by Arkadiusz Miskiewicz.
26197 2006-12-10 Bruno Haible <bruno@clisp.org>
26199 * gnulib-tool (func_import): Show the include files only for those
26200 modules that are copied and specified.
26201 Reported by Karl Berry.
26203 2006-12-08 Jim Meyering <jim@meyering.net>
26205 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
26206 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
26208 * build-aux/announce-gen: Add two new options, both optional:
26209 --bootstrap-tools=TOOL_LIST
26210 a comma-separated list of tools, e.g.,
26211 autoconf,automake,bison,gnulib
26212 --gnulib-snapshot-date=DATE
26213 if gnulib is in the bootstrap tool list,
26214 then report this as the snapshot date.
26215 If not specified, use the current date/time.
26216 If you specify a date here, be sure it's UTC.
26218 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26220 * tests/test-argp-2.sh: Fix test to match actual output.
26221 (func_compare): Fix sed script to be portable.
26223 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
26225 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
26226 workaround for this case. It is not autoconfigured now; offhand
26227 it's hard to see how to autoconfigure it.
26229 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
26231 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
26232 a directory that is about to be chowned. Such a directory's
26233 initial file permissions should permit the owner only and this
26234 should not be changed until after the chown, since the group and
26235 other bits would be incorrect if they granted permission before
26238 Fix porting problem for iswctype reported by Georg Schwarz in:
26239 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
26240 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
26241 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
26242 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
26243 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26245 2006-12-03 Jim Meyering <jim@meyering.net>
26247 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
26248 p->fts_statp may not yet be defined.
26249 (fts_read): Instead, set it in the caller, once p->fts_statp is
26250 sure to be defined, and corresponds to a top-level directory.
26251 This bug made du -x fail. Here's the coreutils test case:
26252 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
26253 Reported by Mike Frysinger.
26255 2006-12-01 Jim Meyering <jim@meyering.net>
26257 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
26258 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
26259 Reported by Simon Josefsson.
26261 2006-11-30 Jim Meyering <jim@meyering.net>
26263 * m4/warning.m4: Use the all-permissive copyright notice
26264 recommended by RMS (rather than LGPL).
26265 * m4/vararrays.m4: Likewise.
26266 * m4/flexmember.m4: Likewise.
26268 2006-11-29 Bruno Haible <bruno@clisp.org>
26270 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
26271 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
26273 Reported by Simon Josefsson <simon@josefsson.org>.
26275 2006-11-28 James Youngman <jay@gnu.org>
26277 * README: Advise users that they might find the bug-gnulib@gnu.org
26278 and autotools-announce@gnu.org mailing lists useful.
26280 2006-11-28 Bruno Haible <bruno@clisp.org>
26282 * m4/ptrdiff_max.m4: Remove file.
26284 2006-11-21 Bruno Haible <bruno@clisp.org>
26286 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
26288 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26289 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
26291 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26292 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
26294 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26296 2006-11-28 Jim Meyering <jim@meyering.net>
26298 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
26299 warning from "gcc -Wshadow" about shadowing the builtin.
26301 2006-11-27 Bruno Haible <bruno@clisp.org>
26303 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
26305 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26307 2006-11-27 Bruno Haible <bruno@clisp.org>
26308 Paul Eggert <eggert@cs.ucla.edu>
26310 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
26312 2006-11-26 Bruno Haible <bruno@clisp.org>
26314 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
26315 noinst_LTLIBRARIES.
26317 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
26318 Bruno Haible <bruno@clisp.org>
26320 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
26321 if compiling with "gcc -ansi".
26323 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
26325 Fix some incompatibilities with gcc -ansi -pedantic.
26326 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
26327 if compiling pedantically with GCC, unless it's C99 or later.
26328 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
26329 it mishandles gcc -ansi -pedantic as well.
26330 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
26332 * lib/regexec.c (check_node_accept_bytes): Don't use auto
26333 initializers for struct if -pedantic, unless it's C99 or later.
26335 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
26337 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
26338 Don't close an fd more than once. Identical atimes indicate
26339 success, not failure.
26341 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
26343 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
26345 2006-11-23 Jim Meyering <jim@meyering.net>
26347 * build-aux/announce-gen: New file. From coreutils.
26349 2006-11-22 Jim Meyering <jim@meyering.net>
26351 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
26352 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
26353 (fts_read): Use a temporary to narrow the overused st_size member
26354 before using it in a switch statement. Reported by Matthew Woehlke.
26356 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
26357 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26359 2006-11-20 Bruno Haible <bruno@clisp.org>
26361 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
26362 changequote instead of pairs of brackets.
26363 Reported by Andreas Schwab <schwab@suse.de>.
26365 2006-11-21 Jim Meyering <jim@meyering.net>
26367 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
26368 so as to remain compatible with older compilers.
26369 Patch from Michael Deutschmann.
26371 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
26373 * MODULES.html.sh (File system functions): Add openat.
26375 * lib/openat.h (rpl_fstatat): New macro, if
26376 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
26377 (fstatat): Define to rpl_fstatat under the same conditions,
26378 unless COMPILING_FSTATAT.
26379 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
26380 seems to have the bug.
26381 * lib/fstatat.c: New file.
26382 * modules/openat (Files): Add it.
26384 2006-11-20 Bruno Haible <bruno@clisp.org>
26386 * Makefile: New file.
26388 2006-11-20 Jim Meyering <jim@meyering.net>
26390 The beginnings of syntax-related checks for gnulib.
26391 * lib/Makefile: New file.
26392 * lib/t-idcache: New script. Ensure that the two halves of
26393 idcache.c stay in sync.
26395 * lib/idcache.c: Adjust comments in user- and group- portions to
26396 be more accurate, and to be consistent with one another.
26398 2006-11-20 Jim Meyering <jim@meyering.net>
26400 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
26401 continue using the flexible array member (thus, this module performs
26402 half as many malloc calls), with the addition that...
26403 (getgroup, getuser): Consistently record a non-match via an empty
26404 "name" string, and map an empty string match to a NULL return value.
26405 * modules/idcache (Depends-on): Re-add flexmember.
26407 * lib/idcache.c (getuser): Remove all uses of the register keyword.
26408 (getuidbyname, getgroup, getgidbyname): Likewise.
26410 Use cleaner syntax: NULL rather than 0.
26411 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
26413 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
26415 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
26416 It mishandled the case where the group was missing.
26417 Problem reported by Greg Schafer.
26418 * modules/idcache: Likewise.
26420 2006-11-18 Jim Meyering <jim@meyering.net>
26422 * check-module (%exempt_header): Add exception for some
26423 conditionally-included headers.
26425 * modules/i-ring (Depends-on): Add verify.
26426 (License): Change to LGPL.
26428 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
26430 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
26431 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
26432 and inttostr.h. Use snprintf rather than uinttostr, so that
26433 LGPLed code doesn't depend on GPLed.
26435 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
26437 * modules/inline (License): Change from GPL to LGPL.
26439 2006-11-17 Jim Meyering <jim@meyering.net>
26441 * modules/d-type (License): Switch to LGPL.
26443 2006-11-15 Bruno Haible <bruno@clisp.org>
26445 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
26447 2006-11-15 Eric Blake <ebb9@byu.net>
26449 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
26450 the module dependency.
26452 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26453 Bruno Haible <bruno@clisp.org>
26455 * gnulib-tool (func_create_testdir): Add license consistency check.
26457 2006-11-15 Eric Blake <ebb9@byu.net>
26459 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
26460 random "(cached)" in configure output.
26462 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26464 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
26465 test for conforming inttypes.h is both announced and cached.
26467 * MODULES.html.sh (seen_modules, seen_files): New variables.
26468 (func_module): Rewrite to use a few less gnulib-tool and sed
26469 invocations. Avoid a couple of quadratic algorithms for ...
26470 (missed_modules, missed_files): ... these, with ...
26471 (func_append, func_tmpdir): ... these new functions, from
26472 gnulib-tool. Analogously, install traps for cleanup.
26474 * tests/test-gc.c (main): Remove unused variables.
26475 * tests/test-read-file.c: Include stdlib.h, for 'free'.
26477 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
26479 * modules/inttostr (License): Change to LGPL.
26481 2006-11-14 Eric Blake <ebb9@byu.net>
26483 * modules/tempname (License): Change to LGPL.
26485 2006-11-14 Eric Blake <ebb9@byu.net>
26487 * doc/functions.texi (Function Portability): *printf functions on
26488 Cygwin now understand all POSIX size specifiers.
26490 2006-11-14 Bruno Haible <bruno@clisp.org>
26492 * modules/c-ctype (License): Change to LGPL.
26494 2006-11-12 Bruno Haible <bruno@clisp.org>
26496 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26497 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
26498 for GNOME libraries, for which the include files are installed in
26499 subdirectories of $prefix/include.
26501 2006-11-12 Bruno Haible <bruno@clisp.org>
26503 * m4/lib-link.m4: Require at least autoconf-2.54.
26504 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
26505 name to underscores for the --with option.
26507 2006-11-13 Bruno Haible <bruno@clisp.org>
26509 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
26510 the tests directory.
26511 Reported by Ralf Wildenhues.
26513 2006-11-13 Bruno Haible <bruno@clisp.org>
26515 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
26516 (func_emit_initmacro_end): Undo the override here.
26517 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
26518 Works around the famous automake error in coreutils.
26520 2006-11-13 Eric Blake <ebb9@byu.net>
26522 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
26523 element, not its node.
26525 2006-11-12 Bruno Haible <bruno@clisp.org>
26527 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
26528 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
26530 2006-11-12 Bruno Haible <bruno@clisp.org>
26532 * gnulib-tool: New option --local-symlink.
26533 (func_usage): Document it.
26534 (lsymbolic): New variable.
26535 (func_import, func_create_testdir): If --symlink was not specified,
26536 test whether --local-symlink was specified and the file comes from
26537 the local_gnulib_dir.
26539 2006-11-12 Bruno Haible <bruno@clisp.org>
26541 * gnulib-tool (func_ln): New function.
26542 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
26544 2006-11-12 Bruno Haible <bruno@clisp.org>
26546 Finish support for source files in subdirectories.
26547 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
26548 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
26550 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
26552 2006-11-12 Bruno Haible <bruno@clisp.org>
26554 * gnulib-tool (func_get_automake_snippet): Synthesize also an
26555 EXTRA_lib_SOURCES augmentation.
26556 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
26558 2006-11-12 Jim Meyering <jim@meyering.net>
26560 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
26561 file descriptors. This also averts a failure on systems with
26562 native openat support when a traversed directory lacks "x" access.
26563 * lib/fts_.h: Include "i-ring.h"
26564 (struct FTS) [fts_fd_ring]: New member.
26565 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
26566 (FCHDIR): Add parentheses.
26567 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
26568 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
26569 When descending, rather than simply closing the previous
26570 fts_cwd_fd value, push that file descriptor onto the ring.
26571 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
26572 (fts_open): Initialize the new fd_ring member.
26573 (fts_close): Clear the ring.
26574 (fts_safe_changedir): When possible, use our new fd_ring to skip
26575 the diropen and fstat and dev/ino comparison that would normally
26576 accompany a virtual `chdir ("..")'.
26578 * modules/fts (Depends-on): Add i-ring.
26579 * modules/i-ring: New module.
26580 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
26581 * m4/i-ring.m4: New file.
26583 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26585 * gnulib-tool (func_create_testdir): Fix replacement of
26586 `build-aux' in configure.ac. Run autotools in gltests
26588 (func_create_testdir, func_create_megatestdir, test): There is
26589 no need for '--force' in most autotool invocations in a new
26590 tree. Actually fail the whole test if any of the tools, or the
26591 configure or make stages fail.
26593 Sync from Automake.
26594 * build-aux/gnupload: Revert last change. Add pointer to upload
26595 instructions of the GNU Maintenance Instructions.
26596 Suggestion by Karl Berry.
26598 2006-11-10 Jim Meyering <jim@meyering.net>
26600 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
26602 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
26604 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
26605 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
26606 (bind_textdomain_codeset) [! ENABLE_NLS]:
26607 Evaluate all the arguments. That way, callers get compatible behavior
26608 if the arguments have side effects. Also, it avoids some GCC
26609 diagnostics in some cases; Joel E. Denny reported problems when Bison
26610 was configured with --enable-gcc-warnigs.
26612 2006-11-10 Jim Meyering <jim@meyering.net>
26614 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
26615 relevant options in CFLAGS (like -O, -fno-inline) are taken into
26618 2006-11-10 Jim Meyering <jim@meyering.net>
26620 * modules/inline: New file/module.
26621 * modules/xalloc (Files): Remove m4/inline.m4.
26622 (Depends-on): Add inline, instead.
26623 * modules/oset: Likewise.
26624 * modules/list: Likewise.
26626 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
26628 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
26629 Problem reported by Matthew Woehlke.
26631 2006-11-09 Bruno Haible <bruno@clisp.org>
26633 * lib/tempname.c (gen_tempname): Remove variant that invokes
26635 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
26638 2006-11-08 Bruno Haible <bruno@clisp.org>
26640 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
26641 to 'yes' instead of 'cross-compiling'.
26643 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
26645 * lib/quotearg.h (quotearg_free): New decl.
26646 * lib/quotearg.c (quotearg_free): New function.
26647 (slot0, nslots, slotvec0, slotvec):
26648 Now file-scope so that quotearg_free can get at them.
26650 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26652 Sync from Automake.
26653 * build-aux/gnupload: Add missing 'gnu' to example URL.
26654 Report by Karl Berry.
26656 2006-11-08 Bruno Haible <bruno@clisp.org>
26658 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
26659 Suggested by Paul Eggert.
26661 2006-11-08 Jim Meyering <jim@meyering.net>
26663 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
26664 It's already included if !_LIBC.
26665 (fts_safe_changedir): Add a comment.
26667 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
26669 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
26670 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
26673 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
26674 definitions up, to avoid colliding with change below.
26675 (static_inline) [HAVE_INLINE]: New macro.
26676 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
26677 Provide extern decls when !HAVE_INLINE. Do not define unless
26678 static_inline is defined, either by us or by xmalloc.c. Use
26679 static_inline rather than static inline.
26680 (XCALLOC): Optimize sizeof(T) = 1 case.
26681 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
26683 2006-11-07 Bruno Haible <bruno@clisp.org>
26685 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
26686 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
26688 * modules/xalloc (Files): Add m4/inline.m4.
26690 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26692 * README: Fix typo.
26693 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
26694 (Miscellanous Notes): ...from this.
26696 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
26698 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
26699 Mention that offsetof should be used instead of sizeof.
26702 2006-11-07 Bruno Haible <bruno@clisp.org>
26704 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
26706 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
26708 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
26709 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
26710 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
26711 (gl_tree_add_before, gl_tree_add_after):
26712 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
26713 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
26714 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
26715 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
26716 (gl_linked_add_after, gl_linked_add_at): Likewise.
26717 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
26718 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
26719 (gl_tree_add_before, gl_tree_add_after): Likewise.
26720 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
26721 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
26722 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
26724 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26726 * lib/gl_oset.h: Use C comment style, not C++ comment style.
26728 2006-11-06 Bruno Haible <bruno@clisp.org>
26730 * m4/inline.m4: New file.
26731 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
26732 * modules/list (Files): Add m4/inline.m4.
26733 * modules/oset (Files): Likewise.
26735 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
26737 * lib/idcache.c: Include <stddef.h>, for offsetof.
26738 (struct userid.name): Change from char * to a flexible array member.
26740 * modules/idcache (Depends-on): Add flexmember.
26742 * MODULES.html.sh (Core language properties): New module flexmember.
26743 * modules/flexmember, m4/flexmember.m4: New files.
26745 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
26746 inline functions that are identical with the old xnmalloc_inline,
26747 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
26748 that we can avoid some unnecessary integer multiplications and
26749 divisions in the common case where the element size is known at
26751 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
26753 (xnboundedmalloc): Remove.
26754 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
26755 arguments, for consistency with rest of this header.
26756 (xcharalloc): Rewrite using XNMALLOC.
26757 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
26758 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
26759 versions have been moved to lib/xalloc.h and renamed to be the
26760 non-*_inline versions.
26761 (xmalloc, xrealloc): Implement without reference to the xnmalloc
26762 and xnrealloc functions, since those functions are now inline and
26764 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
26765 renaming described above.
26766 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
26767 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
26768 captures the dependency in AC_C_INLINE.
26770 New module canonicalize-lgpl, proposed by Charles Wilson in
26771 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
26772 with a few small changes afterwards.
26773 * MODULES.html.sh (File system functions): New module
26775 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
26776 and canonicalize_file_name.
26777 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
26778 * modules/canonicalize-lgpl: New files.
26780 2006-11-05 Bruno Haible <bruno@clisp.org>
26782 * gnulib-tool (func_import, func_create_testdir): Create directories
26783 also for files in subdirectories of lib/.
26785 2006-11-05 Bruno Haible <bruno@clisp.org>
26787 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
26790 2006-11-03 Bruno Haible <bruno@clisp.org>
26792 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
26793 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
26794 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
26795 (xnboundedmalloc): New inline function.
26796 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
26797 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
26799 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
26801 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
26802 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
26803 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
26805 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
26806 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
26808 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
26809 gl_tree_add_after): Use XMALLOC instead of xmalloc.
26810 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
26812 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
26813 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
26814 gl_tree_add_after): Use XMALLOC instead of xmalloc.
26815 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
26816 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
26817 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
26818 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
26820 2006-11-03 Bruno Haible <bruno@clisp.org>
26822 * lib/c-ctype.h [C++]: Define functions without name mangling.
26823 * lib/fwriteerror.h [C++]: Likewise.
26824 * lib/gcd.h [C++]: Likewise.
26825 * lib/linebreak.h [C++]: Likewise.
26827 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
26829 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
26830 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
26831 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
26832 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
26833 Check for functions and headers just once.
26834 Check for declaration of canonicalize_file_name.
26835 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
26837 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
26839 * gnulib-tool (func_import): Fix typo in actioncmd.
26841 2006-11-02 Bruno Haible <bruno@clisp.org>
26843 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
26844 newline sequence in the Makefile.am snippet as a space, like "make"
26846 Reported by Roger Persson <perrog@gmail.com>.
26848 2006-11-01 Bruno Haible <bruno@clisp.org>
26850 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
26851 already declared in <string.h>.
26852 * lib/strcase.h (strncasecmp): Don't declare it if yes.
26854 2006-11-01 Bruno Haible <bruno@clisp.org>
26856 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
26857 * lib/strcase.h: Include <string.h>.
26858 (strcasecmp): Define to rpl_strcasecmp here.
26860 2006-11-01 Bruno Haible <bruno@clisp.org>
26862 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
26864 2006-11-01 Eric Blake <ebb9@byu.net>
26866 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
26868 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
26870 2006-10-29 Bruno Haible <bruno@clisp.org>
26872 Make it compile in C++ mode.
26873 * lib/full-write.c (full_rw): Add a cast.
26875 2006-11-01 Bruno Haible <bruno@clisp.org>
26877 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
26878 be POSIX compliant.
26879 Reported by Roger Persson <perrog@gmail.com>.
26881 2006-11-01 Eric Blake <ebb9@byu.net>
26883 * lib/getopt_.h: Fix comments.
26885 2006-10-31 Eric Blake <ebb9@byu.net>
26887 * modules/tmpdir (Depends-on): Add sys_stat.
26888 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
26889 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
26890 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
26891 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
26894 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
26896 Avoid some C++ diagnostics reported by Bruno Haible.
26897 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
26899 (quotearg_alloc): Use xcharalloc rather than xmalloc.
26900 (struct slotvec): Move to top level.
26901 (quotearg_n_options): Rewrite to avoid xmalloc.
26902 * lib/xalloc.h (xcharalloc): New function.
26903 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
26904 [defined __cplusplus]: Add function template that provides result
26905 type propagation. This part of the change is from Bruno Haible.
26907 2006-10-29 Bruno Haible <bruno@clisp.org>
26909 Make it compile in C++ mode.
26910 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
26911 * lib/strnlen1.c (strnlen1): Cast memchr result.
26912 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
26913 * lib/clean-temp.c (string_equals, string_hash): Add casts.
26914 (create_temp_dir): Rename local variable 'template'.
26915 (compile_csharp_using_sscli): Add cast.
26916 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
26917 * lib/findprog.c (find_in_path): Likewise.
26918 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
26919 * lib/wait-process.c (register_slave_subprocess): Likewise.
26921 2006-10-22 Bruno Haible <bruno@clisp.org>
26923 * modules/tsearch: New file.
26924 * lib/tsearch.h: New file.
26925 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
26926 * m4/tsearch.m4: New file.
26927 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
26929 2006-10-29 Eric Blake <ebb9@byu.net>
26931 * lib/arcfour.c: Assume config.h.
26932 * lib/arctwo.c: Likewise.
26933 * lib/base64.c: Likewise.
26934 * lib/check-version.c: Likewise.
26935 * lib/crc.c: Likewise.
26936 * lib/des.c: Likewise.
26937 * lib/gc-gnulib.c: Likewise.
26938 * lib/gc-libgcrypt.c: Likewise.
26939 * lib/gc-pbkdf2-sha1.c: Likewise.
26940 * lib/getaddrinfo.c: Likewise.
26941 * lib/getdelim.c: Likewise.
26942 * lib/getline.c: Likewise.
26943 * lib/hmac-md5.c: Likewise.
26944 * lib/hmac-sha1.c: Likewise.
26945 * lib/iconvme.c: Likewise.
26946 * lib/md2.c: Likewise.
26947 * lib/md4.c: Likewise.
26948 * lib/memxor.c: Likewise.
26949 * lib/read-file.c: Likewise.
26950 * lib/readline.c: Likewise.
26951 * lib/rijndael-alg-fst.c: Likewise.
26952 * lib/rijndael-api-fst.c: Likewise.
26953 * lib/xgetdomainname.c: Likewise.
26955 2006-10-28 Eric Blake <ebb9@byu.net>
26957 * lib/xstrndup.c: Assume config.h.
26959 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
26961 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
26962 stat-macros.h is now for our own macros, whereas stat_h is for
26963 macros in the <sys/stat.h> name space.
26964 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
26965 (STAT_MACROS_H): Remove.
26966 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
26967 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
26968 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
26969 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
26970 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
26971 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
26972 Move these macros to ...
26973 * lib/stat_.h: here. Don't include stat-macros.h.
26974 * lib/canonicalize.c: Don't include stat-macros.h.
26975 * lib/chown.c: Likewise.
26976 * lib/euidaccess.c: Likewise.
26977 * lib/file-type.c: Likewise.
26978 * lib/filemode.c: Likewise.
26979 * lib/glob.c: Likewise.
26980 * lib/isapipe.c: Likewise.
26981 * lib/lchown.c: Likewise.
26982 * lib/lstat.c: Likewise.
26983 * lib/mkdir-p.c: Likewise.
26984 * lib/rmdir.c: Likewise.
26985 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
26986 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
26987 unless mkdir isn't declared, to speed up 'configure'.
26988 Always create sys/stat.h, since it's unlikely any real sys/stat.h
26989 would define all the S_* symbols.
26990 * modules/canonicalize (Depends-on):
26991 Depend on sys_stat, not stat-macros.
26992 * modules/chown: Likewise.
26993 * modules/euidaccess: Likewise.
26994 * modules/filemode: Likewise.
26995 * modules/file-type: Likewise.
26996 * modules/glob: Likewise.
26997 * modules/isapipe: Likewise.
26998 * modules/lchown: Likewise.
26999 * modules/lstat: Likewise.
27000 * modules/mkancesdirs: Likewise.
27001 * modules/rmdir: Likewise.
27002 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
27003 * modules/modechange: Likewise.
27004 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
27005 (configure.ac): Remove gl_STAT_MACROS.
27006 * modules/sys_stat (Depends-on): Remove stat-macros.
27008 2006-10-27 Bruno Haible <bruno@clisp.org>
27010 * m4/signed.m4: Remove file.
27011 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
27013 * modules/vasnprintf (Files): Remove m4/signed.m4.
27015 2006-10-27 Bruno Haible <bruno@clisp.org>
27017 Update to GNU gettext 0.16.
27018 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
27019 m4/inttypes-h.m4, m4/signed.m4.
27020 * m4/gettext.m4: Update to GNU gettext 0.16.
27021 * m4/intl.m4: New file, from GNU gettext.
27022 * m4/intldir.m4: New file, from GNU gettext.
27023 * config/srclist.txt: Update
27025 2006-10-27 Eric Blake <ebb9@byu.net>
27027 * MODULES.html.sh: Document tempname.
27028 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
27030 (Files): Move lib/tempname.c...
27031 * modules/tempname: ...to this new module.
27032 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
27033 (gl_PREREQ_TEMPNAME): Move...
27034 * m4/tempname.m4: ...to this new file.
27035 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
27036 * modules/sys_stat (Depends-on): Add stat-macros.
27037 * lib/stat_.h (includes): Pick up stat macros.
27038 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
27039 if stat macros are broken.
27040 * lib/tempname.c (includes): No need to include "stat-macros.h".
27041 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
27042 (direxists, __path_search) [!_LIBC]: Don't compile these in
27043 gnulib; the tmpdir module covers that.
27044 * lib/tempname.h: New file.
27046 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
27048 * COPYING: Explain how gnulib-tool converts licence headers.
27049 Almost all wording by Eric Blake.
27051 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
27053 * lib/mbchar.h (is_basic_table): Make read-only.
27054 * lib/mbchar.c (is_basic_table): Likewise.
27055 Reported by John Darrington.
27057 2006-10-25 Bruno Haible <bruno@clisp.org>
27059 * lib/progname.h (set_program_name): Undefine before defining.
27061 2006-10-25 Bruno Haible <bruno@clisp.org>
27063 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
27064 false for non-gcc C++ compilers.
27065 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
27067 2006-10-24 Bruno Haible <bruno@clisp.org>
27069 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
27070 iconv implementations like Irix iconv.
27072 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
27074 * modules/vararrays: New file.
27075 * m4/vararrays.m4: New file, taken from diffutils.
27076 * MODULES.html.sh: New module vararrays.
27078 2006-10-24 Karl Berry <karl@gnu.org>
27080 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
27081 Don't call GNU Unix.
27083 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27085 * users.txt: Add Libtool.
27089 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
27091 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
27092 to gnulib's policy of including config.h unconditionally.
27094 2006-10-24 Bruno Haible <bruno@clisp.org>
27096 * modules/wcwidth (Files): Add m4/wint_t.m4.
27097 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
27098 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
27100 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
27102 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
27103 to pacify GCC with some -W flags enabled. Problem reported by
27106 2006-10-24 Jim Meyering <jim@meyering.net>
27108 * MODULES.html.sh: Remove uinttostr. It's not a module.
27109 Reported by Karl Berry.
27111 2006-10-23 Bruno Haible <bruno@clisp.org>
27113 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
27115 2006-10-24 Bruno Haible <bruno@clisp.org>
27117 * lib/gl_list.h: Use C comment style, not C++ comment style.
27119 2006-10-23 Eric Blake <ebb9@byu.net>
27121 * lib/getaddrinfo.c (includes): Add missing include.
27123 2006-10-23 Bruno Haible <bruno@clisp.org>
27124 Paul Eggert <eggert@cs.ucla.edu>
27126 Ability to rename obstack_free.
27127 * lib/obstack.h (__obstack_free): New macro. Declare instead of
27129 (obstack_free): Invoke the __obstack_free macro.
27130 * lib/obstack.c (obstack_free): Use __obstack_free macro.
27132 2006-10-23 Bruno Haible <bruno@clisp.org>
27133 Paul Eggert <eggert@cs.ucla.edu>
27135 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
27136 __argc, __argv from the declaration. (They are defined as macros on
27139 2006-10-22 Bruno Haible <bruno@clisp.org>
27141 * doc/gnulib-intro.texi: New file.
27142 * doc/gnulib.texi: Include it.
27144 2006-10-21 Bruno Haible <bruno@clisp.org>
27146 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
27147 "Introduction", "Miscellanous Notes", "Particular Modules".
27149 2006-10-21 Bruno Haible <bruno@clisp.org>
27151 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27152 Change mostlyclean-local rule to avoid sh syntax error from bash
27153 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
27155 2006-10-23 Jim Meyering <jim@meyering.net>
27157 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
27158 in place of snprintf.
27160 * modules/inttostr (Files): Add lib/uinttostr.c.
27161 * lib/uinttostr.c (inttostr): New file/function.
27162 * lib/inttostr.h (uinttostr): Declare.
27163 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
27164 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
27166 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
27168 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
27170 * lib/canonicalize.c (ELOOP): Define if not already defined.
27171 Problem reported by Bruno Haible in
27172 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
27174 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
27176 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
27177 Problem reported by Perry Smith and Ville Laurikari.
27179 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
27182 2006-10-19 Bruno Haible <bruno@clisp.org>
27184 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
27187 2006-10-19 Bruno Haible <bruno@clisp.org>
27189 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
27192 2006-10-19 Bruno Haible <bruno@clisp.org>
27194 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
27196 2006-10-19 Bruno Haible <bruno@clisp.org>
27198 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
27201 2006-10-19 Bruno Haible <bruno@clisp.org>
27203 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
27206 2006-10-19 Bruno Haible <bruno@clisp.org>
27208 * gnulib-tool (func_create_testdir): Don't include ftruncate and
27209 mountlist by default.
27211 2006-10-16 Bruno Haible <bruno@clisp.org>
27213 * lib/c-strstr.c: Include c-strstr.h.
27215 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
27217 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
27220 2006-10-18 Bruno Haible <bruno@clisp.org>
27222 * lib/lock.h [C++]: Wrap definitions in extern "C".
27224 2006-10-18 Bruno Haible <bruno@clisp.org>
27226 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
27229 2006-10-18 Bruno Haible <bruno@clisp.org>
27231 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
27233 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
27235 * lib/xstrtol.h: Include gettext.h.
27236 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
27237 Problem reported by Eric Blake.
27238 * modules/xstrtol (Depends-on): Add gettext-h.
27240 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
27242 * lib/strftime.c (advance): New macro.
27243 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
27244 incomplete type, so you can't add 0 to it. Problem and patch
27245 reported by Eelco Dolstra for dietlibc.
27247 2006-10-18 Jim Meyering <jim@meyering.net>
27249 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
27250 type for a local, and rename it: s/up/user_proc/.
27252 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
27254 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
27255 READ_UTMP_USER_PROCESS.
27256 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
27258 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
27260 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
27261 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
27263 2006-10-17 Eric Blake <ebb9@byu.net>
27265 * lib/sigprocmask.c (sigprocmask): Fix typo.
27267 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
27269 * modules/clean-temp (Makefile.am): Don't add to make output...
27270 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
27273 2006-10-17 Bruno Haible <bruno@clisp.org>
27275 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
27276 differently if DEFAULT_TEXT_DOMAIN is set.
27278 2006-10-16 Bruno Haible <bruno@clisp.org>
27280 * lib/clean-temp.c: Include fwriteerror.h.
27282 2006-10-16 Bruno Haible <bruno@clisp.org>
27284 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
27286 2006-10-16 Bruno Haible <bruno@clisp.org>
27288 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
27289 * lib/sigprocmask.h: Include <sys/types.h>.
27290 (sigset_t): Use the system's definition if present.
27292 2006-10-17 Eric Blake <ebb9@byu.net>
27294 * lib/xvasprintf.c (includes): Assume config.h.
27295 * lib/xasprintf.c (includes): Likewise.
27297 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
27299 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
27300 at least as wide as intmax_t.
27302 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
27304 (Imported from Automake.)
27305 * build-aux/gnupload: Update to version 1.1 of directive file.
27307 2006-10-16 Eric Blake <ebb9@byu.net>
27309 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
27310 match Automake 1.10a.
27312 2006-10-14 Bruno Haible <bruno@clisp.org>
27314 * modules/sigprocmask: New file.
27315 * lib/sigprocmask.h: New file.
27316 * lib/sigprocmask.c: New file.
27317 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
27318 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
27319 request sigprocmask.o.
27320 (gl_PREREQ_SIGPROCMASK): New macro.
27321 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
27322 (Depends-on): Add sigprocmask.
27323 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
27324 gt_SIGNALBLOCKING. Test for 'raise' only once.
27325 * lib/fatal-signal.c: Include sigprocmask.h.
27326 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
27327 unblock_fatal_signals): Define always.
27328 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27331 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
27333 Sync from Automake.
27334 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
27335 which incorrectly sets the mode of an existing destination
27336 directory. In some cases the unpatched install-sh could do the
27337 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
27338 system. We hope this is rare in practice, but it's clearly worth
27339 fixing. Problem reported by Alex Unleashed in
27340 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
27341 Also, don't bother to check for -m bugs unless we're using -m;
27342 suggested by Stepan Kasal.
27344 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27346 Sync from Automake.
27347 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
27348 `-c' flag, so they appear at the same position as in %FASTDEP%
27349 mode in depend2.am. Fixes build failure for FreeBSD's c89,
27350 which ignores unknown options only after the first non-option.
27351 Bug report against M4 by Nelson H. F. Beebe.
27353 2006-10-13 Jim Meyering <jim@meyering.net>
27355 Fix a bug in yesterday's change.
27356 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
27357 p->fts_statp->st_dev would be used uninitialized.
27358 Ensures that we always call fts_stat on the very first entry.
27359 Miklos Szeredi reported that find -xdev stopped working.
27361 2006-10-12 Bruno Haible <bruno@clisp.org>
27363 * gnulib-tool (func_get_automake_snippet): Append an automatically
27364 computed EXTRA_DIST augmentation.
27365 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
27366 * modules/alloca-opt (Makefile.am): Likewise.
27367 * modules/allocsa (Makefile.am): Likewise.
27368 * modules/arcfour (Makefile.am): Likewise.
27369 * modules/arctwo (Makefile.am): Likewise.
27370 * modules/argmatch (Makefile.am): Likewise.
27371 * modules/argz (Makefile.am): Likewise.
27372 * modules/atexit (Makefile.am): Likewise.
27373 * modules/backupfile (Makefile.am): Likewise.
27374 * modules/byteswap (Makefile.am): Likewise.
27375 * modules/c-strtod (Makefile.am): Likewise.
27376 * modules/c-strtold (Makefile.am): Likewise.
27377 * modules/calloc (Makefile.am): Likewise.
27378 * modules/canon-host (Makefile.am): Likewise.
27379 * modules/canonicalize (Makefile.am): Likewise.
27380 * modules/chdir-long (Makefile.am): Likewise.
27381 * modules/chdir-safer (Makefile.am): Likewise.
27382 * modules/check-version (Makefile.am): Likewise.
27383 * modules/chown (Makefile.am): Likewise.
27384 * modules/cloexec (Makefile.am): Likewise.
27385 * modules/close-stream (Makefile.am): Likewise.
27386 * modules/closeout (Makefile.am): Likewise.
27387 * modules/crc (Makefile.am): Likewise.
27388 * modules/csharpexec (Makefile.am): Likewise.
27389 * modules/cycle-check (Makefile.am): Likewise.
27390 * modules/des (Makefile.am): Likewise.
27391 * modules/dev-ino (Makefile.am): Likewise.
27392 * modules/dirfd (Makefile.am): Likewise.
27393 * modules/dirname (Makefile.am): Likewise.
27394 * modules/dup2 (Makefile.am): Likewise.
27395 * modules/eealloc (Makefile.am): Likewise.
27396 * modules/error (Makefile.am): Likewise.
27397 * modules/euidaccess (Makefile.am): Likewise.
27398 * modules/exclude (Makefile.am): Likewise.
27399 * modules/exitfail (Makefile.am): Likewise.
27400 * modules/fcntl-safer (Makefile.am): Likewise.
27401 * modules/fcntl (Makefile.am): Likewise.
27402 * modules/file-type (Makefile.am): Likewise.
27403 * modules/fileblocks (Makefile.am): Likewise.
27404 * modules/filemode (Makefile.am): Likewise.
27405 * modules/filenamecat (Makefile.am): Likewise.
27406 * modules/fnmatch (Makefile.am): Likewise.
27407 * modules/fopen-safer (Makefile.am): Likewise.
27408 * modules/fpending (Makefile.am): Likewise.
27409 * modules/fprintftime (Makefile.am): Likewise.
27410 * modules/free (Makefile.am): Likewise.
27411 * modules/fsusage (Makefile.am): Likewise.
27412 * modules/ftruncate (Makefile.am): Likewise.
27413 * modules/fts (Makefile.am): Likewise.
27414 * modules/gc-arcfour (Makefile.am): Likewise.
27415 * modules/gc-des (Makefile.am): Likewise.
27416 * modules/gc-hmac-md5 (Makefile.am): Likewise.
27417 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
27418 * modules/gc-md4 (Makefile.am): Likewise.
27419 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
27420 * modules/gc-sha1 (Makefile.am): Likewise.
27421 * modules/gc (Makefile.am): Likewise.
27422 * modules/getaddrinfo (Makefile.am): Likewise.
27423 * modules/getcwd (Makefile.am): Likewise.
27424 * modules/getdelim (Makefile.am): Likewise.
27425 * modules/getdomainname (Makefile.am): Likewise.
27426 * modules/getgroups (Makefile.am): Likewise.
27427 * modules/gethostname (Makefile.am): Likewise.
27428 * modules/gethrxtime (Makefile.am): Likewise.
27429 * modules/getline (Makefile.am): Likewise.
27430 * modules/getloadavg (Makefile.am): Likewise.
27431 * modules/getlogin_r (Makefile.am): Likewise.
27432 * modules/getndelim2 (Makefile.am): Likewise.
27433 * modules/getopt (Makefile.am): Likewise.
27434 * modules/getpagesize (Makefile.am): Likewise.
27435 * modules/getpass-gnu (Makefile.am): Likewise.
27436 * modules/getpass (Makefile.am): Likewise.
27437 * modules/getsubopt (Makefile.am): Likewise.
27438 * modules/gettime (Makefile.am): Likewise.
27439 * modules/gettimeofday (Makefile.am): Likewise.
27440 * modules/getugroups (Makefile.am): Likewise.
27441 * modules/getusershell (Makefile.am): Likewise.
27442 * modules/glob (Makefile.am): Likewise.
27443 * modules/group-member (Makefile.am): Likewise.
27444 * modules/hard-locale (Makefile.am): Likewise.
27445 * modules/hash (Makefile.am): Likewise.
27446 * modules/hmac-md5 (Makefile.am): Likewise.
27447 * modules/hmac-sha1 (Makefile.am): Likewise.
27448 * modules/human (Makefile.am): Likewise.
27449 * modules/idcache (Makefile.am): Likewise.
27450 * modules/imaxabs (Makefile.am): Likewise.
27451 * modules/imaxdiv (Makefile.am): Likewise.
27452 * modules/inet_ntop (Makefile.am): Likewise.
27453 * modules/inet_pton (Makefile.am): Likewise.
27454 * modules/intprops (Makefile.am): Likewise.
27455 * modules/inttostr (Makefile.am): Likewise.
27456 * modules/inttypes (Makefile.am): Likewise.
27457 * modules/isapipe (Makefile.am): Likewise.
27458 * modules/javaversion (Makefile.am): Likewise.
27459 * modules/lchmod (Makefile.am): Likewise.
27460 * modules/lchown (Makefile.am): Likewise.
27461 * modules/localcharset (Makefile.am): Likewise.
27462 * modules/long-options (Makefile.am): Likewise.
27463 * modules/lstat (Makefile.am): Likewise.
27464 * modules/malloc (Makefile.am): Likewise.
27465 * modules/mathl (Makefile.am): Likewise.
27466 * modules/mbchar (Makefile.am): Likewise.
27467 * modules/md2 (Makefile.am): Likewise.
27468 * modules/md4 (Makefile.am): Likewise.
27469 * modules/md5 (Makefile.am): Likewise.
27470 * modules/memcasecmp (Makefile.am): Likewise.
27471 * modules/memchr (Makefile.am): Likewise.
27472 * modules/memcmp (Makefile.am): Likewise.
27473 * modules/memcoll (Makefile.am): Likewise.
27474 * modules/memcpy (Makefile.am): Likewise.
27475 * modules/memmem (Makefile.am): Likewise.
27476 * modules/memmove (Makefile.am): Likewise.
27477 * modules/mempcpy (Makefile.am): Likewise.
27478 * modules/memrchr (Makefile.am): Likewise.
27479 * modules/memset (Makefile.am): Likewise.
27480 * modules/memxor (Makefile.am): Likewise.
27481 * modules/mkancesdirs (Makefile.am): Likewise.
27482 * modules/mkdir-p (Makefile.am): Likewise.
27483 * modules/mkdir (Makefile.am): Likewise.
27484 * modules/mkdtemp (Makefile.am): Likewise.
27485 * modules/mkstemp (Makefile.am): Likewise.
27486 * modules/mktime (Makefile.am): Likewise.
27487 * modules/modechange (Makefile.am): Likewise.
27488 * modules/mountlist (Makefile.am): Likewise.
27489 * modules/nanosleep (Makefile.am): Likewise.
27490 * modules/obstack (Makefile.am): Likewise.
27491 * modules/openat (Makefile.am): Likewise.
27492 * modules/pagealign_alloc (Makefile.am): Likewise.
27493 * modules/pathmax (Makefile.am): Likewise.
27494 * modules/physmem (Makefile.am): Likewise.
27495 * modules/poll (Makefile.am): Likewise.
27496 * modules/posixtm (Makefile.am): Likewise.
27497 * modules/posixver (Makefile.am): Likewise.
27498 * modules/putenv (Makefile.am): Likewise.
27499 * modules/quote (Makefile.am): Likewise.
27500 * modules/quotearg (Makefile.am): Likewise.
27501 * modules/raise (Makefile.am): Likewise.
27502 * modules/read-file (Makefile.am): Likewise.
27503 * modules/readline (Makefile.am): Likewise.
27504 * modules/readlink (Makefile.am): Likewise.
27505 * modules/readtokens (Makefile.am): Likewise.
27506 * modules/readutmp (Makefile.am): Likewise.
27507 * modules/realloc (Makefile.am): Likewise.
27508 * modules/regex (Makefile.am): Likewise.
27509 * modules/rename-dest-slash (Makefile.am): Likewise.
27510 * modules/rename (Makefile.am): Likewise.
27511 * modules/rijndael (Makefile.am): Likewise.
27512 * modules/rmdir (Makefile.am): Likewise.
27513 * modules/rpmatch (Makefile.am): Likewise.
27514 * modules/safe-read (Makefile.am): Likewise.
27515 * modules/safe-write (Makefile.am): Likewise.
27516 * modules/same-inode (Makefile.am): Likewise.
27517 * modules/same (Makefile.am): Likewise.
27518 * modules/save-cwd (Makefile.am): Likewise.
27519 * modules/savedir (Makefile.am): Likewise.
27520 * modules/setenv (Makefile.am): Likewise.
27521 * modules/settime (Makefile.am): Likewise.
27522 * modules/sha1 (Makefile.am): Likewise.
27523 * modules/sig2str (Makefile.am): Likewise.
27524 * modules/snprintf (Makefile.am): Likewise.
27525 * modules/stat-macros (Makefile.am): Likewise.
27526 * modules/stat-time (Makefile.am): Likewise.
27527 * modules/stdbool (Makefile.am): Likewise.
27528 * modules/stdint (Makefile.am): Likewise.
27529 * modules/stdlib-safer (Makefile.am): Likewise.
27530 * modules/stpcpy (Makefile.am): Likewise.
27531 * modules/stpncpy (Makefile.am): Likewise.
27532 * modules/strcase (Makefile.am): Likewise.
27533 * modules/strcasestr (Makefile.am): Likewise.
27534 * modules/strchrnul (Makefile.am): Likewise.
27535 * modules/strcspn (Makefile.am): Likewise.
27536 * modules/strdup (Makefile.am): Likewise.
27537 * modules/strerror (Makefile.am): Likewise.
27538 * modules/strftime (Makefile.am): Likewise.
27539 * modules/strndup (Makefile.am): Likewise.
27540 * modules/strnlen (Makefile.am): Likewise.
27541 * modules/strpbrk (Makefile.am): Likewise.
27542 * modules/strsep (Makefile.am): Likewise.
27543 * modules/strstr (Makefile.am): Likewise.
27544 * modules/strtod (Makefile.am): Likewise.
27545 * modules/strtoimax (Makefile.am): Likewise.
27546 * modules/strtok_r (Makefile.am): Likewise.
27547 * modules/strtol (Makefile.am): Likewise.
27548 * modules/strtoll (Makefile.am): Likewise.
27549 * modules/strtoul (Makefile.am): Likewise.
27550 * modules/strtoull (Makefile.am): Likewise.
27551 * modules/strtoumax (Makefile.am): Likewise.
27552 * modules/strverscmp (Makefile.am): Likewise.
27553 * modules/sys_socket (Makefile.am): Likewise.
27554 * modules/sys_stat (Makefile.am): Likewise.
27555 * modules/sysexits (Makefile.am): Likewise.
27556 * modules/time_r (Makefile.am): Likewise.
27557 * modules/timegm (Makefile.am): Likewise.
27558 * modules/timespec (Makefile.am): Likewise.
27559 * modules/tmpfile-safer (Makefile.am): Likewise.
27560 * modules/trim (Makefile.am): Likewise.
27561 * modules/unistd-safer (Makefile.am): Likewise.
27562 * modules/unlinkdir (Makefile.am): Likewise.
27563 * modules/unlocked-io (Makefile.am): Likewise.
27564 * modules/userspec (Makefile.am): Likewise.
27565 * modules/utime (Makefile.am): Likewise.
27566 * modules/utimecmp (Makefile.am): Likewise.
27567 * modules/utimens (Makefile.am): Likewise.
27568 * modules/vasnprintf (Makefile.am): Likewise.
27569 * modules/vasprintf (Makefile.am): Likewise.
27570 * modules/vsnprintf (Makefile.am): Likewise.
27571 * modules/xalloc (Makefile.am): Likewise.
27572 * modules/xgetcwd (Makefile.am): Likewise.
27573 * modules/xnanosleep (Makefile.am): Likewise.
27574 * modules/xreadlink (Makefile.am): Likewise.
27575 * modules/xstrtod (Makefile.am): Likewise.
27576 * modules/xstrtol (Makefile.am): Likewise.
27577 * modules/xstrtold (Makefile.am): Likewise.
27578 * modules/yesno (Makefile.am): Likewise.
27579 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
27581 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
27583 * modules/error (Makefile.am): Distribute files through
27584 EXTRA_DIST, not lib_SOURCES.
27586 2006-10-12 Eric Blake <ebb9@byu.net>
27588 * modules/error (Makefile.am): Distribute files in /lib.
27589 * modules/obstack (Makefile.am): Likewise.
27591 2006-10-12 Bruno Haible <bruno@clisp.org>
27593 * modules/acl (Makefile.am): Distribute all files in lib/ through
27595 * modules/arcfour (Makefile.am): Likewise.
27596 * modules/arctwo (Makefile.am): Likewise.
27597 * modules/argmatch (Makefile.am): Likewise.
27598 * modules/argz (Makefile.am): Likewise.
27599 * modules/atexit (Makefile.am): Likewise.
27600 * modules/backupfile (Makefile.am): Likewise.
27601 * modules/c-strtod (Makefile.am): Likewise.
27602 * modules/c-strtold (Makefile.am): Likewise.
27603 * modules/calloc (Makefile.am): Likewise.
27604 * modules/canon-host (Makefile.am): Likewise.
27605 * modules/canonicalize (Makefile.am): Likewise.
27606 * modules/chdir-long (Makefile.am): Likewise.
27607 * modules/chdir-safer (Makefile.am): Likewise.
27608 * modules/check-version (Makefile.am): Likewise.
27609 * modules/chown (Makefile.am): Likewise.
27610 * modules/cloexec (Makefile.am): Likewise.
27611 * modules/close-stream (Makefile.am): Likewise.
27612 * modules/closeout (Makefile.am): Likewise.
27613 * modules/crc (Makefile.am): Likewise.
27614 * modules/cycle-check (Makefile.am): Likewise.
27615 * modules/des (Makefile.am): Likewise.
27616 * modules/dirfd (Makefile.am): Likewise.
27617 * modules/dirname (Makefile.am): Likewise.
27618 * modules/dup2 (Makefile.am): Likewise.
27619 * modules/euidaccess (Makefile.am): Likewise.
27620 * modules/exclude (Makefile.am): Likewise.
27621 * modules/exitfail (Makefile.am): Likewise.
27622 * modules/fcntl-safer (Makefile.am): Likewise.
27623 * modules/file-type (Makefile.am): Likewise.
27624 * modules/fileblocks (Makefile.am): Likewise.
27625 * modules/filemode (Makefile.am): Likewise.
27626 * modules/filenamecat (Makefile.am): Likewise.
27627 * modules/fnmatch (Makefile.am): Likewise.
27628 * modules/fopen-safer (Makefile.am): Likewise.
27629 * modules/fpending (Makefile.am): Likewise.
27630 * modules/fprintftime (Makefile.am): Likewise.
27631 * modules/free (Makefile.am): Likewise.
27632 * modules/fsusage (Makefile.am): Likewise.
27633 * modules/ftruncate (Makefile.am): Likewise.
27634 * modules/fts (Makefile.am): Likewise.
27635 * modules/gc (Makefile.am): Likewise.
27636 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
27637 * modules/getaddrinfo (Makefile.am): Likewise.
27638 * modules/getcwd (Makefile.am): Likewise.
27639 * modules/getdelim (Makefile.am): Likewise.
27640 * modules/getdomainname (Makefile.am): Likewise.
27641 * modules/getgroups (Makefile.am): Likewise.
27642 * modules/gethostname (Makefile.am): Likewise.
27643 * modules/gethrxtime (Makefile.am): Likewise.
27644 * modules/getline (Makefile.am): Likewise.
27645 * modules/getloadavg (Makefile.am): Likewise.
27646 * modules/getlogin_r (Makefile.am): Likewise.
27647 * modules/getopt (Makefile.am): Likewise.
27648 * modules/getpass (Makefile.am): Likewise.
27649 * modules/getpass-gnu (Makefile.am): Likewise.
27650 * modules/getsubopt (Makefile.am): Likewise.
27651 * modules/gettime (Makefile.am): Likewise.
27652 * modules/gettimeofday (Makefile.am): Likewise.
27653 * modules/getugroups (Makefile.am): Likewise.
27654 * modules/getusershell (Makefile.am): Likewise.
27655 * modules/glob (Makefile.am): Likewise.
27656 * modules/group-member (Makefile.am): Likewise.
27657 * modules/hard-locale (Makefile.am): Likewise.
27658 * modules/hash (Makefile.am): Likewise.
27659 * modules/hmac-md5 (Makefile.am): Likewise.
27660 * modules/hmac-sha1 (Makefile.am): Likewise.
27661 * modules/human (Makefile.am): Likewise.
27662 * modules/idcache (Makefile.am): Likewise.
27663 * modules/imaxabs (Makefile.am): Likewise.
27664 * modules/imaxdiv (Makefile.am): Likewise.
27665 * modules/inet_ntop (Makefile.am): Likewise.
27666 * modules/inet_pton (Makefile.am): Likewise.
27667 * modules/inttostr (Makefile.am): Likewise.
27668 * modules/isapipe (Makefile.am): Likewise.
27669 * modules/lchown (Makefile.am): Likewise.
27670 * modules/long-options (Makefile.am): Likewise.
27671 * modules/lstat (Makefile.am): Likewise.
27672 * modules/malloc (Makefile.am): Likewise.
27673 * modules/mathl (Makefile.am): Likewise.
27674 * modules/mbchar (Makefile.am): Likewise.
27675 * modules/md2 (Makefile.am): Likewise.
27676 * modules/md4 (Makefile.am): Likewise.
27677 * modules/md5 (Makefile.am): Likewise.
27678 * modules/memcasecmp (Makefile.am): Likewise.
27679 * modules/memchr (Makefile.am): Likewise.
27680 * modules/memcmp (Makefile.am): Likewise.
27681 * modules/memcoll (Makefile.am): Likewise.
27682 * modules/memcpy (Makefile.am): Likewise.
27683 * modules/memmem (Makefile.am): Likewise.
27684 * modules/memmove (Makefile.am): Likewise.
27685 * modules/mempcpy (Makefile.am): Likewise.
27686 * modules/memrchr (Makefile.am): Likewise.
27687 * modules/memset (Makefile.am): Likewise.
27688 * modules/memxor (Makefile.am): Likewise.
27689 * modules/mkancesdirs (Makefile.am): Likewise.
27690 * modules/mkdir (Makefile.am): Likewise.
27691 * modules/mkdir-p (Makefile.am): Likewise.
27692 * modules/mkdtemp (Makefile.am): Likewise.
27693 * modules/mkstemp (Makefile.am): Likewise.
27694 * modules/mktime (Makefile.am): Likewise.
27695 * modules/modechange (Makefile.am): Likewise.
27696 * modules/mountlist (Makefile.am): Likewise.
27697 * modules/nanosleep (Makefile.am): Likewise.
27698 * modules/openat (Makefile.am): Likewise.
27699 * modules/pagealign_alloc (Makefile.am): Likewise.
27700 * modules/physmem (Makefile.am): Likewise.
27701 * modules/poll (Makefile.am): Likewise.
27702 * modules/posixtm (Makefile.am): Likewise.
27703 * modules/posixver (Makefile.am): Likewise.
27704 * modules/putenv (Makefile.am): Likewise.
27705 * modules/quote (Makefile.am): Likewise.
27706 * modules/quotearg (Makefile.am): Likewise.
27707 * modules/raise (Makefile.am): Likewise.
27708 * modules/read-file (Makefile.am): Likewise.
27709 * modules/readline (Makefile.am): Likewise.
27710 * modules/readlink (Makefile.am): Likewise.
27711 * modules/readtokens (Makefile.am): Likewise.
27712 * modules/readutmp (Makefile.am): Likewise.
27713 * modules/realloc (Makefile.am): Likewise.
27714 * modules/regex (Makefile.am): Likewise.
27715 * modules/rename (Makefile.am): Likewise.
27716 * modules/rename-dest-slash (Makefile.am): Likewise.
27717 * modules/rijndael (Makefile.am): Likewise.
27718 * modules/rmdir (Makefile.am): Likewise.
27719 * modules/rpmatch (Makefile.am): Likewise.
27720 * modules/safe-read (Makefile.am): Likewise.
27721 * modules/safe-write (Makefile.am): Likewise.
27722 * modules/same (Makefile.am): Likewise.
27723 * modules/save-cwd (Makefile.am): Likewise.
27724 * modules/savedir (Makefile.am): Likewise.
27725 * modules/setenv (Makefile.am): Likewise.
27726 * modules/settime (Makefile.am): Likewise.
27727 * modules/sha1 (Makefile.am): Likewise.
27728 * modules/sig2str (Makefile.am): Likewise.
27729 * modules/snprintf (Makefile.am): Likewise.
27730 * modules/stdlib-safer (Makefile.am): Likewise.
27731 * modules/stpcpy (Makefile.am): Likewise.
27732 * modules/stpncpy (Makefile.am): Likewise.
27733 * modules/strcase (Makefile.am): Likewise.
27734 * modules/strcasestr (Makefile.am): Likewise.
27735 * modules/strchrnul (Makefile.am): Likewise.
27736 * modules/strcspn (Makefile.am): Likewise.
27737 * modules/strdup (Makefile.am): Likewise.
27738 * modules/strerror (Makefile.am): Likewise.
27739 * modules/strftime (Makefile.am): Likewise.
27740 * modules/strndup (Makefile.am): Likewise.
27741 * modules/strnlen (Makefile.am): Likewise.
27742 * modules/strpbrk (Makefile.am): Likewise.
27743 * modules/strsep (Makefile.am): Likewise.
27744 * modules/strstr (Makefile.am): Likewise.
27745 * modules/strtod (Makefile.am): Likewise.
27746 * modules/strtoimax (Makefile.am): Likewise.
27747 * modules/strtok_r (Makefile.am): Likewise.
27748 * modules/strtol (Makefile.am): Likewise.
27749 * modules/strtoll (Makefile.am): Likewise.
27750 * modules/strtoul (Makefile.am): Likewise.
27751 * modules/strtoull (Makefile.am): Likewise.
27752 * modules/strtoumax (Makefile.am): Likewise.
27753 * modules/strverscmp (Makefile.am): Likewise.
27754 * modules/time_r (Makefile.am): Likewise.
27755 * modules/timegm (Makefile.am): Likewise.
27756 * modules/tmpfile-safer (Makefile.am): Likewise.
27757 * modules/unistd-safer (Makefile.am): Likewise.
27758 * modules/unlinkdir (Makefile.am): Likewise.
27759 * modules/userspec (Makefile.am): Likewise.
27760 * modules/utime (Makefile.am): Likewise.
27761 * modules/utimecmp (Makefile.am): Likewise.
27762 * modules/utimens (Makefile.am): Likewise.
27763 * modules/vasnprintf (Makefile.am): Likewise.
27764 * modules/vasprintf (Makefile.am): Likewise.
27765 * modules/vsnprintf (Makefile.am): Likewise.
27766 * modules/xalloc (Makefile.am): Likewise.
27767 * modules/xgetcwd (Makefile.am): Likewise.
27768 * modules/xnanosleep (Makefile.am): Likewise.
27769 * modules/xreadlink (Makefile.am): Likewise.
27770 * modules/xstrtod (Makefile.am): Likewise.
27771 * modules/xstrtol (Makefile.am): Likewise.
27772 * modules/xstrtold (Makefile.am): Likewise.
27773 * modules/yesno (Makefile.am): Likewise.
27775 2006-10-12 Jim Meyering <jim@meyering.net>
27777 * m4/getloadavg.m4: Revert the change below.
27779 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
27780 lib/getloadavg.c using "ls -L", not "test -f". The latter would
27781 fail with a symlink, which is what coreutils' ./bootstrap now
27782 creates by default.
27784 2006-10-12 Bruno Haible <bruno@clisp.org>
27786 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
27788 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
27789 MSVC and mingw explicitly.
27791 2006-10-11 Simon Josefsson <jas@extundo.com>
27792 Bruno Haible <bruno@clisp.org>
27794 Add support for multiple gnulib-tool invocations in the scope of a
27795 single configure.ac file.
27796 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
27797 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
27798 with the same contents as the _LIBADD variable.
27799 (func_emit_initmacro_start, func_emit_initmacro_end,
27800 func_emit_initmacro_done): New functions.
27801 (func_import, func_create_testdir): Invoke them. Allow the identifiers
27802 gl_LIBOBJS and gl_LTLIBOBJS.
27804 2006-10-11 Bruno Haible <bruno@clisp.org>
27806 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
27807 (func_create_testdir): Don't create po/Makefile.am, don't invoke
27808 autoreconf. Instead, invoke autopoint explicitly but move back the
27809 *.m4 files from gnulib.
27811 2006-10-11 Bruno Haible <bruno@clisp.org>
27813 * gnulib-tool (func_usage): Make module names after --create-testdir
27815 (func_create_testdir): If no module was specified, use nearly all
27818 2006-10-12 Jim Meyering <jim@meyering.net>
27820 Big performance improvement for fts-based tools that use FTS_NOSTAT.
27821 Avoid spurious inode-mismatch problems on non-POSIX file systems.
27822 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
27823 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
27824 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
27825 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
27826 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
27827 (fts_set_stat_required): New function.
27828 (fts_open): Defer the calls to fts_stat, if possible or requested.
27829 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
27830 into fts_stat itself.
27831 (fts_read): Perform any required (deferred) fts_stat call.
27832 (fts_build): Likewise, for the directory we're about to open and read.
27833 In the readdir loop, carefully decide whether each entry will require
27834 an eventual call to fts_stat, using dirent.d_type info if available.
27835 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
27836 a command line argument into this function. Update all callers.
27837 Map a return value of FTS_DOT to FTS_D for a command line argument.
27838 * modules/fts (Depends-on): Add d-type. Alphabetize.
27839 Thanks to Miklos Szeredi for his tenacity and for the initial
27840 bug report about "find" failing on a FUSE-based file system.
27842 * lib/fts.c (fts_open): Use consistent indentation.
27844 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
27846 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
27847 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
27848 reported by Jim Meyering. All uses of cache variables renamed
27849 to match Autoconf's.
27850 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
27853 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
27854 Fix misspelling in diagnostic.
27856 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
27858 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
27859 defined. Problem reported by Matthew Woehlke.
27861 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
27862 Add support for Tandem NonStop R series.
27863 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
27866 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
27867 (has_trailing_slash): Omit size arg; all callers changed.
27868 Omit 'inline', since it doesn't help performance and we'd
27869 need to configure it.
27870 Don't count //, ///, etc. as having a trailing slash.
27871 As a side effect, this removes a C99ism reported by Matthew Woehlke.
27872 (rpl_rename_dest_slash): On failure, use rename's errno rather
27873 than (in some cases) an incorrect or junk errno.
27874 Simplify code by removing need to compute length; this does
27875 cause it to make two passes instead of one over the file name,
27878 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
27879 change, since Autoconf's version may no longer be appropriate now
27880 that we are using CVS Autoconf's version. Add support for Tandem.
27882 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
27883 Bruno Haible <bruno@clisp.org>
27885 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
27886 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
27887 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
27888 gl_AC_TYPE_LONG_LONG.
27890 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
27891 instead of HAVE_LONG_LONG.
27892 * lib/printf-args.c (printf_fetchargs): Likewise.
27893 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
27894 * lib/vasnprintf.c (VASNPRINTF): Likewise.
27895 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
27896 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
27897 gl_AC_TYPE_LONG_LONG.
27899 2006-10-11 Bruno Haible <bruno@clisp.org>
27901 * m4/longlong.m4: Add comments.
27902 * m4/ulonglong.m4: Likewise.
27904 2006-10-10 Bruno Haible <bruno@clisp.org>
27906 Make it possible to #define stpcpy, strdup to aliases.
27907 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
27908 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
27910 2006-10-10 Bruno Haible <bruno@clisp.org>
27912 Make it possible to #define gcd to an alias.
27913 * lib/gcd.c: Include config.h.
27915 2006-10-10 Bruno Haible <bruno@clisp.org>
27917 Make it possible to #define c_isascii to an alias.
27918 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
27919 defined. Undefine the macros before defining them, to avoid gcc
27921 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
27922 define NO_C_CTYPE_MACROS early.
27924 2006-10-10 Bruno Haible <bruno@clisp.org>
27926 Make it possible to #define set_program_name to an alias.
27927 * lib/progname.c: Don't undefine set_program_name; instead, undefine
27928 ENABLE_RELOCATABLE early.
27930 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
27932 Port to Tandem NSK OSS, which has 64-bit signed int but at most
27933 32-bit unsigned int. Problem reported by Matthew Woehlke in:
27934 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
27935 More generally, don't assume that 64-bit signed int is available
27936 if unsigned int is, and vice versa.
27937 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
27938 unsigned symbols, not on their signed counterparts.
27939 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
27940 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
27941 (UINT64_C, UINTMAX_C):
27943 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
27944 unsigned counterparts.
27945 (Have_long_long, Unsigned): New macros.
27946 (Int): Renamed from INT.
27947 (strtoimax): Use the new macros.
27948 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
27949 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
27950 * modules/inttypes (inttypes.h): Substitute
27951 HAVE_UNSIGNED_LONG_LONG_INT.
27952 * modules/stdint (stdint.h): Likewise.
27953 (Files): Add m4/ulonglong.m4.
27955 2006-10-10 Bruno Haible <bruno@clisp.org>
27957 Fix a gcc -Wshadow warning.
27958 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
27960 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
27961 gl_linked_indexof_from_to): Likewise.
27962 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
27964 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
27966 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
27967 Reported by Eric Blake.
27969 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
27971 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
27972 for NetBSD. Problem reported by Bruno Haible.
27974 2006-10-09 Jim Meyering <jim@meyering.net>
27976 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
27977 Patch from Bruno Haible.
27979 2006-10-09 Jim Meyering <jim@meyering.net>
27981 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
27982 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
27983 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
27985 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
27987 Don't include <config.h> twice; this doesn't work in some cases,
27988 e.g., when config.h has "#define intmax_t long long int" and
27989 we include <config.h>, <inttypes.h>, <config.h> in that order.
27990 Problem reported by Matthew Woehlke in:
27991 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
27992 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
27993 * lib/fts-cycle.c: Don't include config.h.
27994 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
27995 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
27996 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
27997 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
27999 * lib/xstrtoumax.c: Likewise.
28000 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
28001 __strtol and the like, so that this module is more like its siblings.
28002 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
28003 Remove; no longer needed now that we assume gnulib inttypes.h.
28005 2006-10-08 Bruno Haible <bruno@clisp.org>
28007 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
28010 2006-10-07 Jim Meyering <jim@meyering.net>
28012 * modules/inttypes (inttypes.h): Revert what seems to have been
28013 an inadvertent part of today's change: use "|", not "/" in the
28014 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
28016 2006-10-07 Bruno Haible <bruno@clisp.org>
28018 * modules/sublist: New file.
28020 2006-10-07 Bruno Haible <bruno@clisp.org>
28022 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
28023 * modules/argz (argz.h): Likewise.
28024 * modules/arpa_inet (arpa/inet.h): Likewise.
28025 * modules/byteswap (byteswap.h): Likewise.
28026 * modules/configmake (configmake.h): Likewise.
28027 * modules/fcntl (fcntl.h): Likewise.
28028 * modules/fnmatch (fnmatch.h): Likewise.
28029 * modules/getopt (getopt.h): Likewise.
28030 * modules/glob (glob.h): Likewise.
28031 * modules/inttypes (inttypes.h): Likewise.
28032 * modules/netinet_in (netinet/in.h): Likewise.
28033 * modules/poll (poll.h): Likewise.
28034 * modules/stdbool (stdbool.h): Likewise.
28035 * modules/stdint (stdint.h): Likewise.
28036 * modules/sys_select (sys/select.h): Likewise.
28037 * modules/sys_socket (sys/socket.h): Likewise.
28038 * modules/sys_stat (sys/stat.h): Likewise.
28039 * modules/sysexits (sysexits.h): Likewise.
28040 * modules/unistd (unistd.h): Likewise.
28041 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28042 Add a "DO NOT EDIT" comment to the generated file.
28043 (func_import): Likewise for gnulib-comp.m4.
28045 2006-10-07 Bruno Haible <bruno@clisp.org>
28047 * lib/gl_sublist.h: New file.
28048 * lib/gl_sublist.c: New file.
28050 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
28052 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
28053 name (relative to the original working directory) and the file
28054 name component (relative to the temporary working directory). All
28056 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
28057 * lib/mkdir-p.c (make_dir_parents): Likewise.
28058 * lib/mkdir-p.h (make_dir_parents): Likewise.
28060 2006-10-06 Eric Blake <ebb9@byu.net>
28062 Define several macros for use by the clean-temp module.
28063 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
28064 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
28065 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
28067 * lib/clean-temp.h (close_stream_temp): New declaration.
28068 * lib/clean-temp.c (includes): Pull in headers according to what
28069 other modules are in use.
28070 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
28072 2006-10-06 Bruno Haible <bruno@clisp.org>
28074 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
28075 instead of fopen, fwriteerror.
28077 2006-10-06 Bruno Haible <bruno@clisp.org>
28079 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
28080 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
28082 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
28083 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
28084 Return an error indicator.
28085 Suggested by Eric Blake.
28087 2006-10-06 Bruno Haible <bruno@clisp.org>
28089 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
28090 Reported by Eric Blake.
28092 2006-10-06 Bruno Haible <bruno@clisp.org>
28094 * modules/closeout (Description): Mention stderr too.
28096 2006-10-06 Bruno Haible <bruno@clisp.org>
28097 and Paul Eggert <eggert@cs.ucla.edu>
28099 * lib/closeout.c (close_stdout): Also close stderr.
28100 * lib/closeout.h: Update comment.
28102 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
28104 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
28105 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
28106 * lib/dirchownmod.c: Include lchown.h.
28107 * lib/lchown.c: Don't include files that lchown.h now includes.
28108 Don't declare chown, since lchown.h now does that.
28109 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
28110 (lchown): Define to rpl_chown if lchown is declared but
28111 does not exist. Declare using a prototype if lchown is not
28112 declared. Add a copyright notice.
28113 * lib/mkstemp.h: Include <unistd.h>.
28114 * lib/openat.c: Include lchown.h.
28116 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
28117 we now test for that separately.
28118 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
28119 rather than O_NOFOLLOW, when testing whether it's possible to
28120 avoid a race condition reliably.
28121 * lib/savewd.c (savewd_chdir): Likewise.
28123 Remove macros that are no longer needed now that stdint.h is
28125 * lib/fsusage.c (UINTMAX_MAX): Remove.
28126 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
28127 * lib/utimecmp.c (SIZE_MAX): Remove.
28129 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
28131 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
28132 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
28135 2006-10-05 Bruno Haible <bruno@clisp.org>
28137 * lib/gl_list.h (gl_sortedlist_search_from_to,
28138 gl_sortedlist_indexof_from_to): New declarations.
28139 (gl_list_implementation): New fields sortedlist_search_from_to,
28140 sortedlist_indexof_from_to.
28141 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
28143 * lib/gl_list.c (gl_sortedlist_search_from_to,
28144 gl_sortedlist_indexof_from_to): New functions.
28145 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
28147 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
28148 (gl_array_sortedlist_search_from_to): New function.
28149 (gl_array_list_implementation): Update.
28150 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
28152 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
28153 (gl_carray_sortedlist_search_from_to): New function.
28154 (gl_carray_list_implementation): Update.
28155 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
28156 gl_linked_sortedlist_indexof_from_to): New functions.
28157 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
28158 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
28159 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
28160 gl_tree_sortedlist_indexof_from_to): New functions.
28161 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
28162 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
28164 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
28165 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
28168 2006-10-05 Bruno Haible <bruno@clisp.org>
28170 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
28171 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
28172 (struct gl_list_implementation): Add fields search_from_to,
28173 indexof_from_to. Remove fields search, indexof.
28174 (gl_list_search): Use the search_from_to method.
28175 (gl_list_search_from, gl_list_search_from_to): New functions.
28176 (gl_list_indexof): Use the indexof_from_to method.
28177 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
28178 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
28179 (gl_list_search_from, gl_list_search_from_to): New functions.
28180 (gl_list_indexof): Use the indexof_from_to method.
28181 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
28182 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
28183 gl_array_indexof. Add start_index, end_index arguments.
28184 (gl_array_search_from_to): Renamed from gl_array_search. Add
28185 start_index, end_index arguments.
28186 (gl_array_remove, gl_array_list_implementation): Update.
28187 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
28188 gl_carray_indexof. Add start_index, end_index arguments.
28189 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
28190 start_index, end_index arguments.
28191 (gl_carray_remove, gl_carray_list_implementation): Update.
28192 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
28193 gl_linked_search. Add start_index, end_index arguments.
28194 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
28195 start_index, end_index arguments.
28196 (gl_linked_remove): Update.
28197 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
28198 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
28199 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
28201 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
28202 gl_tree_search. Add start_index, end_index arguments.
28203 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
28204 start_index, end_index arguments.
28205 (gl_tree_remove): Update.
28206 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
28207 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
28208 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
28210 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
28211 gl_tree_search. Add start_index, end_index arguments.
28212 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
28213 start_index, end_index arguments.
28214 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
28216 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
28218 2006-10-05 Bruno Haible <bruno@clisp.org>
28220 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
28222 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
28223 fwriteerror_temp): New declarations.
28224 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
28225 (descriptors): New variable.
28226 (cleanup): First, close the descriptors.
28227 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
28228 fclose_temp, fwriteerror_temp): New functions.
28230 2006-10-04 Jim Meyering <jim@meyering.net>
28232 * lib/fts.c (fts_open): Tiny comment change.
28234 2006-10-04 Bruno Haible <bruno@clisp.org>
28236 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
28237 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
28239 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
28240 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
28241 gl_LOCK_EARLY_BODY.
28242 (gl_LOCK): Require gl_LOCK_BODY.
28244 2006-10-04 Bruno Haible <bruno@clisp.org>
28246 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
28247 (gl_oset_search_atleast): New declaration.
28248 (struct gl_oset_implementation): Add field 'search_atleast'.
28249 (gl_oset_search_atleast): New inline function.
28250 * lib/gl_oset.c (gl_oset_search_atleast): New function.
28251 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
28252 (gl_array_oset_implementation): Update.
28253 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
28254 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
28255 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
28257 2006-10-04 Bruno Haible <bruno@clisp.org>
28259 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
28261 2006-10-03 Bruno Haible <bruno@clisp.org>
28263 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
28264 from gl_avltreehash_list_implementation.
28266 2006-10-03 Bruno Haible <bruno@clisp.org>
28268 * lib/gl_oset.c (gl_oset_add): Fix return type.
28270 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
28272 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
28274 2006-10-02 Eric Blake <ebb9@byu.net>
28276 * modules/strnlen (Depends-on): Add extensions.
28278 2006-10-02 Eric Blake <ebb9@byu.net>
28280 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
28281 definition in 2.60+.
28283 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
28285 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
28288 2006-10-02 Bruno Haible <bruno@clisp.org>
28290 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
28291 to the AUTOMAKE_OPTIONS.
28292 Reported by Jim Meyering.
28294 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
28296 Work around bug in Solaris 10 /proc file system:
28297 /proc/self/fd/NNN/.. isn't the parent directory of
28298 the directory whose file descriptor is NNN. This needs to
28299 be worked around at run time, not compile time, since a
28300 program might be built on Solaris 8, where things work, and
28302 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
28303 to use the following interface instead:
28304 (OPENAT_BUFFER_SIZE): New macro.
28305 (openat_proc_name): New function.
28306 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
28307 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
28309 * lib/openat-proc.c: New file.
28310 * modules/openat (Files): Add lib/openat-proc.c.
28311 (Depends-on): Add same-inode, stdbool.
28312 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
28314 2006-09-29 Bruno Haible <bruno@clisp.org>
28316 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
28317 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
28318 argument. Set stdout_closed before testing for ferror, not after.
28319 (fwriteerror, fwriteerror_no_ebadf): New functions.
28321 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28323 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
28325 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
28327 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
28328 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
28330 2006-09-28 Jim Meyering <jim@meyering.net>
28332 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
28333 Include <unistd.h>.
28335 2006-09-28 Bruno Haible <bruno@clisp.org>
28337 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
28338 * modules/linkedhash-list (Depends-on): Likewise.
28339 * modules/rbtreehash-list (Depends-on): Likewise.
28341 2006-09-28 Bruno Haible <bruno@clisp.org>
28343 * lib/strndup.h: Simplify the redefinition of strndup.
28344 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
28345 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
28347 2006-09-28 Bruno Haible <bruno@clisp.org>
28349 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
28350 * lib/gl_linkedhash_list.c: Likewise.
28351 * lib/gl_rbtreehash_list.c: Likewise.
28353 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
28355 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
28358 * lib/__fpending.h: Don't include <stdio_ext.h> unless
28359 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
28360 it causes <stdio_ext.h> to cause a compile-time error.
28361 Problem reported by Nelson H. F. Beebe.
28362 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
28363 of HAVE_DECL___PENDING.
28365 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
28366 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
28369 2006-09-27 Jim Meyering <jim@meyering.net>
28371 This file could end up with a definition for a function
28372 named __strndup, rather than rpl_strndup on a system with
28373 incomplete weak_alias support.
28374 * lib/strndup.c (strndup): Rename from __strndup.
28375 Remove #defines that used to map __strndup to strndup.
28376 Don't use K&R prototypes.
28377 Remove LIBC-related code, since this file is not sync'd with glibc.
28378 * lib/strndup.h: Revamp, accordingly.
28379 * m4/strndup.m4: Modernize.
28381 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
28383 * modules/savewd (Depends-on): Add 'raise'.
28384 * lib/savewd.c: Include <signal.h>, for 'raise'.
28386 2006-09-26 Jim Meyering <jim@meyering.net>
28388 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
28389 when we detect Darwin 8.7.0's acl_get_file bug.
28390 Rearrange to perform the new (below) run-test while $LIBS
28391 contains any acl-related library. Set USE_ACL at the end.
28392 (gl_ACL_GET_FILE): New function.
28394 2006-09-26 Eric Blake <ebb9@byu.net>
28396 * lib/verror.c: Include <config.h> unconditionally.
28398 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
28400 * modules/clock-time (Maintainer): Add self.
28401 * modules/getlogin_r (Depends-on): Add extensions.
28403 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28405 * modules/clock-time: New module.
28406 * modules/nanosleep (Depends-on): Add clock-time.
28407 * modules/gethrxtime (Depends-on): Likewise.
28408 * modules/gettime (Depends-on): Likewise.
28409 * modules/settime (Depends-on): Likewise.
28411 * modules/fts-lgpl: Depend on openat.
28412 * modules/mkancesdirs: Depend on savewd.
28413 * modules/mkdir-p: Likewise.
28415 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28417 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
28419 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
28420 `gl_have_arbitrary_file_name_length_limit' to
28421 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
28422 actually works between configure runs.
28424 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28425 Bruno Haible <bruno@clisp.org>
28427 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
28429 2006-09-25 Jim Meyering <jim@meyering.net>
28431 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
28432 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
28434 2006-09-25 Eric Blake <ebb9@byu.net>
28436 * gnulib-tool (func_import, func_create_testdir): Fix typos in
28437 exec's in 2006-09-18 patch when shuffling fds.
28439 2006-09-25 Bruno Haible <bruno@clisp.org>
28441 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
28442 Reported by Jim Meyering.
28444 2006-09-24 Jim Meyering <jim@meyering.net>
28446 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
28447 compare a pointer against a literal "0". That caused failures with
28448 at least HP-UX's hpcc.
28450 2006-09-22 Simon Josefsson <jas@extundo.com>
28454 * modules/gc-hmac-sha1:
28455 * modules/gc-hmac-md5:
28457 * modules/gc-arcfour: Distribute more files.
28459 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28461 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
28462 (gl_linked_iterator_from_to): Initialize struct completely.
28463 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
28464 (gl_tree_iterator_from_to): Likewise
28465 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
28466 * lib/gl_array_list.c [lint] (gl_array_iterator)
28467 (gl_array_iterator_from_to): Likewise.
28468 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
28469 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
28470 (gl_carray_iterator_from_to): Likewise.
28472 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
28473 * lib/md4.c (md4_process_block): Remove unused variable.
28474 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
28475 parentheses for clarity.
28477 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28479 * modules/bison-i18n (Depends-on): Add gettext.
28481 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28483 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
28484 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
28485 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
28486 also add missing comma that caused broken test.
28487 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
28488 stdlib.h, for `abort'.
28489 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
28491 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
28492 include unistd.h if present, for `rmdir'.
28493 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
28495 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
28496 in the process include standard headers for prototypes.
28497 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
28498 gets declared on GNU/Linux.
28499 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
28500 unistd.h, for `rmdir'.
28501 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
28503 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
28505 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
28507 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
28509 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28511 * gnulib-tool (func_version): Create output all at once. This
28512 may help avoid triggering unnecessary SIGPIPEs, and at any
28513 rate it doesn't hurt.
28515 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28516 Bruno Haible <bruno@clisp.org>
28518 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
28519 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28520 * m4/signed.m4 (bh_C_SIGNED): Likewise.
28522 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
28523 (gl_FUNC_VASPRINTF): Invoke it.
28525 2006-09-22 Bruno Haible <bruno@clisp.org>
28527 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
28528 getloadavg.c as first argument.
28530 2006-09-22 Bruno Haible <bruno@clisp.org>
28532 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
28533 at the beginning of the gl_INIT macro.
28534 * modules/getloadavg (configure.ac): Pass $gl_source_base to
28537 2006-09-22 Bruno Haible <bruno@clisp.org>
28539 * gnulib-tool (func_create_megatestdir): Don't include the config-h
28541 Suggested by Ralf Wildenhues.
28543 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
28545 Import this patch from libc:
28547 2006-09-06 Jakub Jelinek <jakub@redhat.com>
28549 * lib/regex_internal.c (re_string_reconstruct): Handle
28550 offset < pstr->valid_raw_len && pstr->offsets_needed case.
28551 Ensure no bytes read before raw_mbs array. Pass a saved copy of
28552 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
28553 re_string_context_at.
28555 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
28557 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
28558 gl_REGEX now does it for us.
28559 (gl_REGEX): Add test taken from
28560 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
28562 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
28563 Check that large offsets work. Modernize Autoconf usages.
28564 Prefer "yes" to mean a good thing rather than a bad.
28565 Don't put "#define mkstemp" in config.h, as this might interfere
28566 with standard system headers that "#define mkstemp mkstemp64".
28568 * modules/mkstemp (Depends-on): Add extensions, so that
28569 mkstemp is visible on some platforms.
28570 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
28571 (Include): Change to "mkstemp.h" from <stdlib.h>.
28572 (Files): Add mkstemp.h.
28574 * lib/mkstemp.h: New file, since some standard headers
28576 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
28577 Include "mkstemp.h".
28578 Make the _LIBC code resemble glibc original more,
28579 e.g., use K&R style.
28580 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
28581 (mkstemp): Remove, since mkstemp.h does this for us.
28582 * lib/stdlib--.h: Include mkstemp.h.
28584 Import this patch from libc:
28586 2006-04-07 Ulrich Drepper <drepper@redhat.com>
28588 * lib/tempname.c (__gen_tempname): Change attempts_min
28589 into a macro. Use preprocessor to decide how to initialize
28590 attempts [Coverity CID 67].
28592 2006-09-20 Bruno Haible <bruno@clisp.org>
28594 * lib/mkdtemp.c: Import from libc.
28595 2006-04-07 Ulrich Drepper <drepper@redhat.com>
28596 * sysdeps/posix/tempname.c (__gen_tempname): Change
28597 attempts_min into a macro. Use preprocessor to decide how to
28598 initialize attempts [Coverity CID 67].
28599 2001-11-27 Paul Eggert <eggert@twinsun.com>
28600 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
28601 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
28603 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28605 * gnulib-tool (func_exit): New function, to allow to pass the
28606 exit status portably through the trap. Use everywhere.
28607 (--help, --version): Signal a write error.
28608 (trap): catch SIGPIPE, for write errors.
28609 Exit at the end of the trap, with the correct exit status.
28611 2006-09-19 Karl Berry <karl@gnu.org>
28613 * doc/gnulib.texi: note about the license texinfo files.
28615 2006-09-19 Eric Blake <ebb9@byu.net>
28617 * gnulib-tool: Avoid space-tab.
28619 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
28621 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
28622 that prevented coreutils 6.1 from building. Problem reported
28623 by Petter Reinholdtsen.
28625 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
28627 * gnulib-tool (avoidlist): Fix typo that broke options like
28628 --avoid=lock that are used by coreutils bootstrap.
28630 2006-09-18 Mark D. Baushke <mdb@gnu.org>
28632 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
28633 more systematically.
28635 2006-09-18 Jim Meyering <jim@meyering.net>
28637 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
28639 2006-09-18 Bruno Haible <bruno@clisp.org>
28641 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
28643 2006-09-18 Bruno Haible <bruno@clisp.org>
28645 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
28646 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
28647 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
28648 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
28649 * m4/gettext.m4: Require autoconf >= 2.52.
28650 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
28651 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
28652 of gl_cv_header_inttypes_h.
28654 2006-09-18 Bruno Haible <bruno@clisp.org>
28656 * lib/javaversion.c: Include configmake.h.
28658 2006-09-18 Bruno Haible <bruno@clisp.org>
28660 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
28661 avoid that the while loops be executed in a subshell.
28663 2006-09-18 Bruno Haible <bruno@clisp.org>
28665 * MODULES.html.sh (func_module): Break long lines.
28666 Suggested by Bruce Korb <bkorb@gnu.org>.
28668 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28670 Speed up by a factor of 1.12.
28671 * gnulib-tool (nl): New variable.
28672 (func_import): Rewrite include directive extraction to only read each
28675 2006-09-17 Bruno Haible <bruno@clisp.org>
28677 * modules/javaversion (Makefile.am): Remove DEFS setting.
28678 (Depends-on): Add configmake, for PKGDATADIR definition.
28680 2006-09-17 Bruno Haible <bruno@clisp.org>
28682 * gnulib-tool (func_create_testdir): Rewrite all files at once.
28684 2006-09-17 Bruno Haible <bruno@clisp.org>
28686 * gnulib-tool (func_append): New function, stolen from libtool.m4.
28687 (func_modules_transitive_closure, func_modules_add_dummy,
28688 func_modules_to_filelist, func_import, func_create_testdir,
28689 func_create_megatestdir, ...): Use it wherever possible.
28690 Suggested by Ralf Wildenhues.
28692 2006-09-16 Karl Berry <karl@gnu.org>
28694 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
28695 to avoid sectioning errors.
28696 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
28697 [ifinfo]: blank line after @center-ed titles.
28698 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
28699 Spell FSF address consistently with others.
28700 (These changes approved by rms.)
28702 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28704 Speed up by a factor of 1.61.
28705 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
28706 already checked module names again.
28708 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28710 Speed up by a factor of 1.13.
28711 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
28712 for new_files, and the input to func_add_or_update.
28714 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28716 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
28717 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
28719 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
28721 * modules/mkancesdirs (Depends-on): Add fcntl.
28722 * modules/savewd: New file.
28723 * MODULES.html.sh (File system functions): Add savewd.
28725 * modules/configmake (Makefile.am): Add support for the
28726 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
28728 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
28730 * m4/savewd.m4: New file.
28732 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
28734 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
28735 (dirchownmod): New arg FD. All callers changed.
28736 Use FD rather than opening the directory ourself, as opening is
28737 now the caller's responsibility.
28738 * lib/dirchownmod.h: Likewise.
28739 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
28740 hosts that require <sys/types.h> before <sys/stat.h>. Include
28741 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
28742 (test_dir): Remove.
28743 (mkancesdirs): Return length of prefix of FILE that has already
28744 been made, or -2 if there is a child doing the work. Redo
28745 algorithm so that it is O(N) rather than O(N**2). Optimize away
28746 ".", and treat ".." specially since it might stray back into
28747 already-created areas. Use a subprocess if necessary. New arg
28748 WD; all users changed. MAKE_DIR function should now return 1
28749 if it creates a directory that is not readable. Return -2 if
28750 a child process is spun off.
28751 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
28752 Adjust signature to match code.
28753 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
28754 (make_dir_parents): Use a subprocess if necessary. New arg WD;
28756 * lib/savewd.c, lib/savewd.h: New files.
28758 2006-09-15 Jim Meyering <jim@meyering.net>
28760 * modules/rename-dest-slash: New module.
28761 * MODULES.html.sh (posix_compat): Add it here.
28763 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
28765 2006-09-15 Jim Meyering <jim@meyering.net>
28767 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
28770 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
28772 2006-09-15 Jim Meyering <jim@meyering.net>
28774 * lib/rename-dest-slash.c (has_trailing_slash): Use
28775 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
28776 (rpl_rename_dest_slash): Perform the cheaper trailing slash
28777 test before testing whether SRC is a directory.
28778 Suggestions from Bruno Haible.
28780 Avoid a warning about an unused variable.
28781 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
28782 into the #ifdef block where it's used.
28784 * lib/rename-dest-slash.c: New file.
28786 2006-09-14 Bruno Haible <bruno@clisp.org>
28788 * lib/allocsa.c: Include <config.h> unconditionally.
28789 * lib/asnprintf.c: Likewise.
28790 * lib/asprintf.c: Likewise.
28791 * lib/c-strcasecmp.c: Likewise.
28792 * lib/c-strcasestr.c: Likewise.
28793 * lib/c-strncasecmp.c: Likewise.
28794 * lib/c-strstr.c: Likewise.
28795 * lib/classpath.c: Likewise.
28796 * lib/clean-temp.c: Likewise.
28797 * lib/concatpath.c: Likewise.
28798 * lib/copy-file.c: Likewise.
28799 * lib/csharpcomp.c: Likewise.
28800 * lib/csharpexec.c: Likewise.
28801 * lib/execute.c: Likewise.
28802 * lib/fatal-signal.c: Likewise.
28803 * lib/findprog.c: Likewise.
28804 * lib/fwriteerror.c: Likewise.
28805 * lib/gl_array_list.c: Likewise.
28806 * lib/gl_array_oset.c: Likewise.
28807 * lib/gl_avltree_list.c: Likewise.
28808 * lib/gl_avltree_oset.c: Likewise.
28809 * lib/gl_avltreehash_list.c: Likewise.
28810 * lib/gl_carray_list.c: Likewise.
28811 * lib/gl_linked_list.c: Likewise.
28812 * lib/gl_linkedhash_list.c: Likewise.
28813 * lib/gl_list.c: Likewise.
28814 * lib/gl_oset.c: Likewise.
28815 * lib/gl_rbtree_list.c: Likewise.
28816 * lib/gl_rbtree_oset.c: Likewise.
28817 * lib/gl_rbtreehash_list.c: Likewise.
28818 * lib/imaxabs.c: Likewise.
28819 * lib/imaxdiv.c: Likewise.
28820 * lib/javacomp.c: Likewise.
28821 * lib/javaexec.c: Likewise.
28822 * lib/javaversion.c: Likewise.
28823 * lib/linebreak.c: Likewise.
28824 * lib/localcharset.c: Likewise.
28825 * lib/lock.c: Likewise.
28826 * lib/mbchar.c: Likewise.
28827 * lib/mbswidth.c: Likewise.
28828 * lib/mkdtemp.c: Likewise.
28829 * lib/pipe.c: Likewise.
28830 * lib/printf-args.c: Likewise.
28831 * lib/printf-parse.c: Likewise.
28832 * lib/progname.c: Likewise.
28833 * lib/progreloc.c: Likewise.
28834 * lib/readlink.c: Likewise.
28835 * lib/sh-quote.c: Likewise.
28836 * lib/stpcpy.c: Likewise.
28837 * lib/stpncpy.c: Likewise.
28838 * lib/strcasecmp.c: Likewise.
28839 * lib/strcasestr.c: Likewise.
28840 * lib/strcspn.c: Likewise.
28841 * lib/striconv.c: Likewise.
28842 * lib/strncasecmp.c: Likewise.
28843 * lib/strnlen1.c: Likewise.
28844 * lib/strstr.c: Likewise.
28845 * lib/strtok_r.c: Likewise.
28846 * lib/tls.c: Likewise.
28847 * lib/tmpdir.c: Likewise.
28848 * lib/unicodeio.c: Likewise.
28849 * lib/unsetenv.c: Likewise.
28850 * lib/vasnprintf.c: Likewise.
28851 * lib/vasprintf.c: Likewise.
28852 * lib/wait-process.c: Likewise.
28853 * lib/xallocsa.c: Likewise.
28854 * lib/xsetenv.c: Likewise.
28855 * lib/xstriconv.c: Likewise.
28857 2006-09-13 Simon Josefsson <jas@extundo.com>
28859 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
28860 that internally, suggested by Ralf Wildenhues
28861 <Ralf.Wildenhues@gmx.de>.
28863 2006-09-13 Simon Josefsson <jas@extundo.com>
28865 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
28867 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28869 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
28871 * lib/_fpending.c: Include <config.h> unconditionally, since we no
28872 longer worry about uses that don't define HAVE_CONFIG_H.
28873 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
28874 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
28875 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
28876 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
28877 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
28878 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
28879 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
28880 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
28881 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
28882 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
28883 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
28884 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
28885 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
28886 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
28887 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
28888 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
28889 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
28890 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
28891 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
28892 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
28893 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
28894 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
28895 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
28896 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
28897 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
28898 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
28899 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
28900 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
28901 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
28902 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
28903 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
28904 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
28905 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
28906 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
28907 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
28908 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
28909 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
28910 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
28911 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
28912 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
28913 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
28916 2006-09-13 Eric Blake <ebb9@byu.net>
28918 * lib/getopt.c: Fix typo in last commit.
28920 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
28922 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
28925 2006-09-12 Jim Meyering <jim@meyering.net>
28927 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
28928 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
28929 Reported by Nelson H. F. Beebe.
28931 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
28933 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
28934 program_invocation_name and program_invocation_short_name are
28936 * lib/argp-namefrob.h: Move declarations of program_invocation_name
28937 and program_invocation_short_name to argp.h, so they are visible
28939 * lib/argp.h: Likewise
28941 2006-09-10 Bruno Haible <bruno@clisp.org>
28943 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
28944 m4/inttypes_h.m4, m4/uintmax_t.m4.
28946 2006-09-10 Bruno Haible <bruno@clisp.org>
28948 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
28949 gl_AC_TYPE_UINTMAX_T.
28951 2006-09-10 Bruno Haible <bruno@clisp.org>
28953 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
28955 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
28957 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
28958 convention. Text proposed by Bruno Haible.
28959 (struct argp_option): Document the use of N_() wrappers.
28961 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
28962 '\v', and translate the two parts separately, instead of feeding
28963 the whole string to gettext. This allows to exclude
28964 '\v' from the strings visible to the translator by writing doc
28965 strings as N_("..") "\v" N_("..").
28967 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
28969 * config/srclist.txt: Undo latest change; the bug was fixed.
28971 2006-09-09 Bruno Haible <bruno@clisp.org>
28973 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
28974 assignments if building a library without libtool.
28975 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
28976 in func_emit_lib_Makefile_am.
28977 (func_import): When building a static library libfoo.a, arrange to
28978 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
28979 (func_create_testdir): Likewise.
28980 * modules/gc (configure.ac, Makefile.am): If building statically,
28981 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
28982 * modules/iconvme (configure.ac, Makefile.am): Likewise.
28983 * modules/striconv (configure.ac, Makefile.am): Likewise.
28984 Based on a suggestion by Ralf Wildenhues.
28986 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
28988 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
28989 Check for unistd.h too, since Autoconf doesn't assume POSIX.
28992 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
28993 Add year_2050_test to catch glibc bug 2821
28994 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
28996 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
28997 Prefer #ifdef to #if.
28999 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
29000 Return from 'main' instead of calling 'exit'.
29002 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
29004 * lib/mktime.c (guess_time_tm): Fix bug where mktime
29005 returned the maximum time_t value rather than (time_t) -1.
29006 Problem originally reported by William Bardwell
29007 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
29009 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
29011 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
29014 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
29016 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
29019 2006-09-08 Jim Meyering <jim@meyering.net>
29021 Don't make generated files read-only. That would bother too many
29022 people. However, do retain the ability to work when targets are
29023 read-only: remove the destination and temporary files before writing
29024 them (when generated via sed or echo), or by using the -f option for
29025 both cp and mv commands. Suggestion to use -f from Paul Eggert.
29026 * modules/alloca-opt, modules/argz, modules/arpa_inet:
29027 * modules/byteswap, modules/configmake, modules/fcntl:
29028 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
29029 * modules/localcharset, modules/netinet_in, modules/poll:
29030 * modules/stdbool, modules/stdint, modules/sys_select:
29031 * modules/sys_socket, modules/sys_stat, modules/sysexits:
29033 2006-09-08 Jim Meyering <jim@meyering.net>
29035 Avoid new build failure on FreeBSD 6.0.
29036 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
29037 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
29038 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
29040 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29042 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
29044 2006-09-07 Jim Meyering <jim@meyering.net>
29046 Fix global typo in last change: use chmod u-w, not chmod u-x.
29047 Spotted by Paul Eggert and Bruce Korb.
29048 * modules/alloca-opt, modules/argz, modules/arpa_inet:
29049 * modules/byteswap, modules/configmake, modules/fcntl:
29050 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
29051 * modules/localcharset, modules/netinet_in, modules/poll:
29052 * modules/stdbool, modules/stdint, modules/sys_select:
29053 * modules/sys_socket, modules/sys_stat, modules/sysexits:
29055 2006-09-06 Jim Meyering <jim@meyering.net>
29057 Make generated files be read-only.
29058 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
29059 Ensure that each generated file is now read-only.
29060 * modules/argz: Likewise.
29061 * modules/arpa_inet: Likewise.
29062 * modules/byteswap: Likewise.
29063 * modules/configmake: Likewise.
29064 * modules/fcntl: Likewise.
29065 * modules/fnmatch: Likewise.
29066 * modules/getopt: Likewise.
29067 * modules/glob: Likewise.
29068 * modules/inttypes: Likewise.
29069 * modules/netinet_in: Likewise.
29070 * modules/poll: Likewise.
29071 * modules/stdbool: Likewise.
29072 * modules/stdint: Likewise.
29073 * modules/sys_select: Likewise.
29074 * modules/sys_socket: Likewise.
29075 * modules/sys_stat: Likewise.
29076 * modules/sysexits: Likewise.
29077 * modules/localcharset: Same as above, but continue using temporary
29078 file named "t-$@" (why different?) rather than the "$@-t" used
29081 * modules/sysexits (Makefile.am): Replace literal occurrences
29082 of "sysexit.h" more readable, and more consistent, "$@".
29084 2006-09-06 Bruno Haible <bruno@clisp.org>
29086 * modules/striconv: New file.
29087 * modules/xstriconv: New file.
29088 * MODULES.html.sh (Internationalization functions): Add striconv,
29091 2006-09-06 Bruno Haible <bruno@clisp.org>
29093 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
29094 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
29095 not using libtool correctly.
29097 2006-09-06 Bruno Haible <bruno@clisp.org>
29099 * lib/striconv.h: New file.
29100 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
29102 * lib/xstriconv.h: New file.
29103 * lib/xstriconv.c: New file.
29105 2006-09-06 Bruno Haible <bruno@clisp.org>
29107 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
29110 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29112 * lib/argz_.h: Sync from Libtool.
29114 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
29115 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29117 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
29119 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
29121 * modules/trim: New file.
29123 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
29125 * lib/trim.h: New file.
29126 * lib/trim.c: New file.
29128 2006-09-05 Bruno Haible <bruno@clisp.org>
29130 * MODULES.html.sh (String handling): Add trim.
29132 2006-09-04 Karl Berry <karl@gnu.org>
29134 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
29135 until next release.
29137 2006-09-03 Bruno Haible <bruno@clisp.org>
29139 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
29142 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
29144 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
29145 not gl_GETLOADAVG. Omit unneeded semicolons.
29146 Problems reported by Ralf Wildenhues in
29147 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
29148 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
29149 at the end, which is the usual gnulib style.
29151 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
29152 of doing all the work ourselves.
29153 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
29154 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
29156 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
29158 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
29159 Problem reported by Ralf Wildenhues in
29160 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
29162 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
29163 HAVE_STRUCT_STATFS_F_FSTYPENAME.
29165 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
29167 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
29168 yesterday's patch by changing test -n to test -z.
29170 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
29172 * modules/getloadavg (Files): Add m4/getloadavg.m4.
29173 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
29174 the former is now obsolescent.
29176 * modules/chdir-long (Depends-on): Add fcntl.
29178 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
29180 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
29181 obsolescent, and programs should use gnulib instead.
29182 * m4/getloadavg.m4: New file, with contents taken from Autoconf
29183 but with prefixes changed.
29185 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
29187 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
29188 or stdbool.h, because they might not exist while configuring.
29190 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
29191 Don't include unistd.h or limits.h; not needed, since chdir-long.h
29193 (O_DIRECTORY): Remove.
29195 2006-08-31 Eric Blake <ebb9@byu.net>
29197 * gnulib-tool: Don't let emacs change spaces to TAB.
29199 2006-08-31 Bruno Haible <bruno@clisp.org>
29201 * gnulib-tool: When calling func_import more than once, do it in a
29203 Reported by Eric Blake <ebb9@byu.net>.
29205 2006-08-31 Bruno Haible <bruno@clisp.org>
29207 * gnulib-tool (nl): Remove variable.
29208 (sed_transform_lib_file): Use more robust test for config-h module.
29209 (func_import): Fix typo in 2006-08-25 patch.
29211 2006-08-31 Bruno Haible <bruno@clisp.org>
29213 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
29214 specified, augment Makefile.am variables instead of assigning them.
29216 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
29218 Work around a bug in both the Linux and SunOS 64-bit kernels:
29219 nanosleep mishandles sleeps for longer than 2**31 seconds.
29220 Problem reported by Frank v Waveren in
29221 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
29222 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
29223 Check for nanosleep bug.
29224 (LIB_NANOSLEEP): Append clock_gettime library if needed.
29226 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
29228 Work around a bug in both the Linux and SunOS 64-bit kernels:
29229 nanosleep mishandles sleeps for longer than 2**31 seconds.
29230 Problem reported by Frank v Waveren in
29231 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
29232 * lib/nanosleep.c (BILLION): New constant.
29233 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
29234 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
29237 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
29239 * modules/nanosleep (Depends-on): Add gettime.
29241 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
29242 and Simon Josefsson <jas@extundo.com>
29243 and Oskar Liljeblad <oskar@osk.mine.nu>
29245 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
29246 * gnulib-tool (func_import): New license type 'unmodifiable license
29248 * modules/fdl: Use it. Longer description.
29249 * module/gpl, module/lgpl: New files.
29251 2006-08-30 Jim Meyering <jim@meyering.net>
29253 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
29254 shadowing the parameter.
29256 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29260 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29262 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
29263 sharing with gnulib. Report by Eric Blake.
29265 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
29267 * modules/isapipe: New file.
29268 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
29270 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
29272 * modules/configmake (Makefile.am): Add a comment, and omit
29273 the CONFIGMAKE_ prefix from generated macro names. Suggested
29276 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
29278 * m4/isapipe.m4: New file.
29280 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
29282 * lib/isapipe.c, lib/isapipe.h: New files.
29284 2006-08-29 Jim Meyering <jim@meyering.net>
29286 * modules/configmake (Makefile.am): Make configmake.h depend on
29287 Makefile. Otherwise, a stale configmake.h could hang around.
29289 2006-08-29 Eric Blake <ebb9@byu.net>
29291 * lib/error.c (error_at_line, print_errno_message): Match libc, after
29292 resolution of upstream bug 3044.
29294 2006-08-29 Bruno Haible <bruno@clisp.org>
29296 * modules/localcharset (Depends-on): Add configmake.
29297 (Makefile.am): Remove setting of LIBDIR through DEFS.
29299 2006-08-29 Bruno Haible <bruno@clisp.org>
29301 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
29304 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
29306 * modules/fcntl: New file.
29307 * modules/chdir-safer (Depends-on): Add fcntl.
29308 * modules/fts: Likewise.
29309 * modules/mkdir-p: Likewise.
29311 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
29312 This undoes the most recent change, since we're now addressing the
29313 problem in a different way.
29315 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
29316 into output, since the output might be called Makefile.am even
29317 if $makefile_name is something different.
29318 (func_import): Use $makefile_am rather than
29319 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
29322 * modules/inttypes (Files): Add m4/inttypes-h.m4.
29324 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
29326 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
29327 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
29328 recent change to stdint.m4, since we're now addressing the problem in a
29331 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
29333 * m4/fcntl_h.m4: New file.
29335 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
29337 * lib/fcntl_.h: New file.
29338 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
29340 * lib/dirchownmod.c: Likewise.
29341 * lib/fts.c: Likewise.
29343 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
29344 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
29345 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
29346 just before including <inttypes.h>, to avoid circular inclusion.
29348 2006-08-28 Jim Meyering <jim@meyering.net>
29350 * doc/visibility.texi: Actually read and correct the grammar of the
29351 sentence affected by yesterday's change.
29353 2006-08-28 Eric Blake <ebb9@byu.net>
29355 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
29358 2006-08-28 Eric Blake <ebb9@byu.net>
29360 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
29362 2006-08-28 Eric Blake <ebb9@byu.net>
29364 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
29366 2006-08-28 Bruno Haible <bruno@clisp.org>
29368 * modules/c-strstr: New file, from GNU gettext.
29369 * MODULES.html.sh (String handling): Add c-strstr.
29371 2006-08-28 Bruno Haible <bruno@clisp.org>
29373 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
29375 Reported by Eric Blake.
29377 2006-08-28 Bruno Haible <bruno@clisp.org>
29379 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
29380 (VASNPRINTF): Return a string of length > INT_MAX without failing.
29381 * lib/vasprintf.c: Include errno.h, limits.h.
29382 (EOVERFLOW): New fallback definition.
29383 (vasprintf): Test here whether the string length is > INT_MAX.
29384 * lib/vsnprintf.c: Include errno.h, limits.h.
29385 (EOVERFLOW): New fallback definition.
29386 (vsnprintf): Fix bug when generated string was too long for the buffer.
29387 Test here whether the string length is > INT_MAX.
29389 2006-08-28 Bruno Haible <bruno@clisp.org>
29391 * lib/inttypes_.h (SCNX*): Remove definitions.
29392 Reported by Eric Blake.
29394 2006-08-28 Bruno Haible <bruno@clisp.org>
29396 * lib/c-strstr.h: New file, from GNU gettext.
29397 * lib/c-strstr.c: New file, from GNU gettext.
29399 2006-08-28 Bruno Haible <bruno@clisp.org>
29401 * gnulib-tool: Reorder some statements.
29403 2006-08-28 Bruno Haible <bruno@clisp.org>
29405 * gnulib-tool: New option --makefile-name.
29406 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
29408 (func_import): Write $makefile_name to the cache file, and read it from
29409 there unless explicitly specified. Use $makefile_name as file name
29410 instead of Makefile.am. Adjust the recommendations accordingly.
29412 2006-08-28 Bruno Haible <bruno@clisp.org>
29414 * gnulib-tool (func_verify_module): Check against misapplying patch.
29416 2006-08-28 Bruno Haible <bruno@clisp.org>
29418 * gnulib-tool (func_relativize, func_relconcat): New functions.
29419 Give an error if --local-dir is given with --update.
29420 Remove trailing slashes from $local_gnulib_dir.
29421 (func_import): Store the relativized $local_gnulib_dir in
29422 gnulib-cache.m4, and read it from there if not specified explicitly.
29424 2006-08-28 Bruno Haible <bruno@clisp.org>
29426 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
29427 is the current directory. Respect also $local_gnulib_dir.
29429 2006-08-28 Bruno Haible <bruno@clisp.org>
29430 Simon Josefsson <jas@extundo.com>
29433 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
29435 2006-08-27 Jim Meyering <jim@meyering.net>
29437 * doc/visibility.texi: Remove duplicate word: "pointer".
29439 2006-08-26 Bruno Haible <bruno@clisp.org>
29441 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
29442 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
29443 (Makefile.am): Create inttypes.h from inttypes_.h.
29444 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
29446 * modules/imaxabs: New file.
29448 * modules/imaxdiv: New file.
29450 2006-08-26 Bruno Haible <bruno@clisp.org>
29452 * m4/inttypes.m4: New file.
29453 * m4/_inttypes_h.m4: Remove file.
29454 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
29456 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
29458 * m4/imaxabs.m4: New file.
29460 * m4/imaxdiv.m4: New file.
29462 2006-08-26 Bruno Haible <bruno@clisp.org>
29464 * lib/inttypes_.h: New file.
29465 * lib/inttypes.h: Remove file.
29466 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
29468 * lib/imaxabs.c: New file.
29470 * lib/imaxdiv.c: New file.
29472 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
29474 New config-h module, so that "make" output needn't be cluttered
29475 by -DHAVE_CONFIG_H.
29476 * MODULES.html.sh (Support for building libraries and executables):
29478 * modules/config-h: New file.
29479 * gnulib-tool (nl, sed_transform_lib_file): New vars.
29480 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
29481 the config-h module is used.
29483 New configmake module, so that "make" output needn't be cluttered
29484 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
29485 * MODULES.html.sh (Support for building libraries and executables):
29487 * modules/configmake: New file.
29489 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
29491 * m4/config-h.m4: New file.
29493 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
29495 * config/srclist.txt: Add elisp-comp.
29497 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
29499 * MODULES.html.sh (Support for building libraries and executables):
29501 * build-aux/elisp-comp: New file.
29502 * modules/elisp-comp: New file.
29504 2006-08-24 Bruno Haible <bruno@clisp.org>
29506 * gnulib-tool (func_create_testdir): Use non-default values of
29507 sourcebase and m4base.
29509 2006-08-24 Bruno Haible <bruno@clisp.org>
29511 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
29514 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
29516 * modules/openat (Depends-on): Add lchown.
29518 2006-08-23 Bruno Haible <bruno@clisp.org>
29520 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
29521 of gl_LOCK_EARLY instead of gl_LOCK.
29523 2006-08-23 Bruno Haible <bruno@clisp.org>
29525 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
29527 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
29529 2006-08-23 Bruno Haible <bruno@clisp.org>
29531 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
29534 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
29535 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
29536 (gl_LOCK): New macro.
29538 2006-08-22 Simon Josefsson <jas@extundo.com>
29540 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
29543 2006-08-22 Simon Josefsson <jas@extundo.com>
29545 * MODULES.html.sh: Add "Support for maintaining and release
29548 * build-aux/gnupload: New file, from coreutils.
29550 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
29552 Avoid the need for AC_LIBSOURCES in m4 macros.
29553 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
29554 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
29555 * modules/check-version (EXTRA_DIST): Add check-version.h.
29556 * modules/crc (EXTRA_DIST): Add crc.h.
29557 * modules/des (EXTRA_DIST): Add des.h.
29558 * modules/gc (EXTRA_DIST): Add gc.h.
29559 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
29560 * modules/getline (EXTRA_DIST): Add getline.h.
29561 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
29562 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
29563 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
29564 * modules/md2 (EXTRA_DIST): Add md2.h.
29565 * modules/md4 (EXTRA_DIST): Add md4.h.
29566 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
29567 * modules/read-file (EXTRA_DIST): Add read-file.h.
29568 * modules/readline (EXTRA_DIST): Add readline.h.
29569 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
29570 rijndael-api-fst.h.
29572 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
29574 * m4/rijndael.m4 (gl_ARCFOUR):
29575 * m4/arctwo.m4 (gl_ARCTWO):
29576 * m4/check-version.m4 (gl_CHECK_VERSION):
29577 * m4/crc.m4 (gl_CRC):
29578 * m4/des.m4 (gl_DES):
29579 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
29580 * m4/gc.m4 (gl_GC):
29581 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
29582 * m4/getline.m4 (gl_FUNC_GETLINE):
29583 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
29584 * m4/hmac-md5.m4 (gl_HMAC_MD5):
29585 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
29586 * m4/md2.m4 (gl_MD2):
29587 * m4/md4.m4 (gl_MD4):
29588 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
29589 * m4/read-file.m4 (gl_FUNC_READ_FILE):
29590 * m4/readline.m4 (gl_FUNC_READLINE):
29591 * m4/rijndael.m4 (gl_RIJNDAEL):
29592 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
29593 to get the necessary .h files and whatnot.
29595 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
29597 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
29598 gnulib rather than the other way around.
29599 * config/srclistvars.sh (COREUTILS): Remove.
29601 2006-08-22 Jim Meyering <jim@meyering.net>
29603 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
29605 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
29607 2006-08-22 Eric Blake <ebb9@byu.net>
29609 * modules/regexprops-generic: New file.
29610 * MODULES.html.sh (Support for building documentation): List it.
29612 2006-08-22 Eric Blake <ebb9@byu.net>
29614 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
29615 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29616 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
29617 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29619 2006-08-22 Bruno Haible <bruno@clisp.org>
29621 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
29622 and lib_LTLIBRARIES like the other lib_* variables.
29624 2006-08-22 Bruno Haible <bruno@clisp.org>
29626 * build-aux/x-to-1.in: New file, from GNU gettext.
29628 2006-08-22 Bruno Haible <bruno@clisp.org>
29630 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
29633 2006-08-22 Bruno Haible <bruno@clisp.org>
29635 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
29638 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
29641 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
29643 Problem reported by Bruno Haible.
29645 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
29647 Avoid the need for AC_LIBSOURCES in m4 macros.
29648 * modules/acl (EXTRA_DIST): Add acl.h.
29649 * modules/argmatch (Files): Add m4/argmatch.m4.
29650 (configure.ac): Add gl_ARGMATCH.
29651 (EXTRA_DIST): Renamed from lib_SOURCES, for
29652 consistency with the other modules. Remove argmatch.c.
29653 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
29654 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
29655 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
29656 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
29657 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
29658 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
29659 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
29660 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
29661 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
29662 * modules/closeout (EXTRA_DIST): Add closeout.h.
29663 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
29664 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
29665 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
29666 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
29667 dirname.h; remove basename.c and stripslash.c.
29668 * modules/exclude (EXTRA_DIST): Add exclude.h.
29669 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
29670 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
29671 * modules/file-type (EXTRA_DIST): Add file-type.h.
29672 * modules/filemode (EXTRA_DIST): Add filemode.h.
29673 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
29674 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
29675 * modules/fpending (EXTRA_DIST): Add __fpending.h.
29676 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
29677 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
29678 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
29679 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
29680 * modules/getdate (EXTRA_DIST): Add getdate.c.
29681 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
29682 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
29683 * modules/getpass (EXTRA_DIST): Add getpass.h.
29684 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
29685 * modules/group-member (EXTRA_DIST): Add group-member.h.
29686 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
29687 * modules/hash (EXTRA_DIST): Add hash.h.
29688 * modules/human (EXTRA_DIST): Add human.h.
29689 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
29690 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
29691 * modules/lchown (EXTRA_DIST): Add lchown.h.
29692 * modules/long-options (EXTRA_DIST): Add long-options.h.
29693 * modules/lstat (EXTRA_DIST): Add lstat.h.
29694 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
29695 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
29696 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
29697 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
29698 * modules/memxor (EXTRA_DIST): Add memxor.h.
29699 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
29700 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
29701 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
29702 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
29703 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
29704 * modules/physmem (EXTRA_DIST): Add physmem.h.
29705 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
29706 * modules/posixver (EXTRA_DIST): Add posixver.h.
29707 * modules/quote (EXTRA_DIST): Add quote.h.
29708 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
29709 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
29710 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
29711 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
29712 regex_internal.h regexec.c.
29713 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
29714 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
29715 * modules/same (EXTRA_DIST): Add same.h.
29716 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
29717 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
29718 * modules/savedir (EXTRA_DIST): Add savedir.h.
29719 * modules/sha1 (EXTRA_DIST): Add sha1.h.
29720 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
29721 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
29722 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
29723 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
29724 * modules/strdup (EXTRA_DIST): Add strdup.h.
29725 * modules/strftime (EXTRA_DIST): Add strftime.h.
29726 * modules/strndup (EXTRA_DIST): Add strndup.h.
29727 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
29728 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
29729 * modules/time_r (EXTRA_DIST): Add time_r.h.
29730 * modules/timespec (EXTRA_DIST): Add timespec.h.
29731 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
29732 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
29733 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
29734 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
29735 * modules/userspec (EXTRA_DIST): Add userspec.h.
29736 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
29737 * modules/utimens (EXTRA_DIST): Add utimens.h.
29738 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
29739 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
29740 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
29741 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
29742 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
29743 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
29744 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
29745 * modules/yesno (EXTRA_DIST): Add yesno.h.
29747 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
29749 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
29751 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
29752 * m4/dev-ino.m4, same-inode.m4: Remove.
29754 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
29755 * m4/acl.m4 (AC_FUNC_ACL):
29756 * m4/backupfile.m4 (gl_BACKUPFILE):
29757 * m4/c-strtod.m4 (gl_C99_STRTOLD):
29758 * m4/canon-host.m4 (gl_CANON_HOST):
29759 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
29760 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
29761 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
29762 * m4/cloexec.m4 (gl_CLOEXEC):
29763 * m4/close-stream.m4 (gl_CLOSE_STREAM):
29764 * m4/closeout.m4 (gl_CLOSEOUT):
29765 * m4/dirfd.m4 (gl_FUNC_DIRFD):
29766 * m4/dirname.m4 (gl_DIRNAME):
29767 * m4/exclude.m4 (gl_EXCLUDE):
29768 * m4/exitfail.m4 (gl_EXITFAIL):
29769 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
29770 * m4/file-type.m4 (gl_FILE_TYPE):
29771 * m4/filemode.m4 (gl_FILEMODE):
29772 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
29773 * m4/fpending.m4 (gl_FUNC_FPENDING):
29774 * m4/fprintftime.m4 (gl_FPRINTFTIME):
29775 * m4/fts.m4 (gl_FUNC_FTS):
29776 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
29777 * m4/getdate.m4 (gl_GETDATE):
29778 * m4/gethrxtime.m4 (gl_GETHRXTIME):
29779 * m4/getpagesize.m4 (gl_GETPAGESIZE):
29780 * m4/getpass.m4 (gl_FUNC_GETPASS):
29781 * m4/gettime.m4 (gl_GETTIME):
29782 * m4/getugroups.m4 (gl_GETUGROUPS):
29783 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
29784 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
29785 * m4/hard-locale.m4 (gl_HARD_LOCALE):
29786 * m4/hash.m4 (gl_HASH):
29787 * m4/idcache.m4 (gl_IDCACHE):
29788 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
29789 * m4/lchown.m4 (gl_FUNC_LCHOWN):
29790 * m4/long-options.m4 (gl_LONG_OPTIONS):
29791 * m4/lstat.m4 (gl_FUNC_LSTAT):
29792 * m4/md5.m4 (gl_MD5):
29793 * m4/memcasecmp.m4 (gl_MEMCASECMP):
29794 * m4/memcoll.m4 (gl_MEMCOLL):
29795 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
29796 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
29797 * m4/memxor.m4 (gl_MEMXOR):
29798 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
29799 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
29800 * m4/modechange.m4 (gl_MODECHANGE):
29801 * m4/mountlist.m4 (gl_MOUNTLIST):
29802 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
29803 * m4/openat.m4 (gl_FUNC_OPENAT):
29804 * m4/pathmax.m4 (gl_PATHMAX):
29805 * m4/physmem.m4 (gl_PHYSMEM):
29806 * m4/posixtm.m4 (gl_POSIXTM):
29807 * m4/posixver.m4 (gl_POSIXVER):
29808 * m4/quote.m4 (gl_QUOTE):
29809 * m4/quotearg.m4 (gl_QUOTEARG):
29810 * m4/readtokens.m4 (gl_READTOKENS):
29811 * m4/readutmp.m4 (gl_READUTMP):
29812 * m4/regex.m4 (gl_REGEX):
29813 * m4/safe-read.m4 (gl_SAFE_READ):
29814 * m4/safe-write.m4 (gl_SAFE_WRITE):
29815 * m4/same.m4 (gl_SAME):
29816 * m4/save-cwd.m4 (gl_SAVE_CWD):
29817 * m4/savedir.m4 (gl_SAVEDIR):
29818 * m4/settime.m4 (gl_SETTIME):
29819 * m4/sha1.m4 (gl_SHA1):
29820 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
29821 * m4/stat-macros.m4 (gl_STAT_MACROS):
29822 * m4/stat-time.m4 (gl_STAT_TIME):
29823 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
29824 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
29825 * m4/strdup.m4 (gl_FUNC_STRDUP):
29826 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
29827 * m4/strndup.m4 (gl_FUNC_STRNDUP):
29828 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
29829 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
29830 * m4/time_r.m4 (gl_TIME_R):
29831 * m4/timespec.m4 (gl_TIMESPEC):
29832 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
29833 * m4/unlinkdir.m4 (gl_UNLINKDIR):
29834 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
29835 * m4/userspec.m4 (gl_USERSPEC):
29836 * m4/utimecmp.m4 (gl_UTIMECMP):
29837 * m4/utimens.m4 (gl_UTIMENS):
29838 * m4/xalloc.m4 (gl_XALLOC):
29839 * m4/xgetcwd.m4 (gl_XGETCWD):
29840 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
29841 * m4/xreadlink.m4 (gl_XREADLINK):
29842 * m4/xstrtod.m4 (gl_XSTRTOD):
29843 * m4/yesno.m4 (gl_YESNO):
29844 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
29845 to get the necessary .h files and whatnot.
29847 2006-08-21 Mark D. Baushke <mdb@gnu.org>
29848 Bruno Haible <bruno@clisp.org>
29850 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
29851 /bin/sh understanding of '!' conditional negation.
29853 2006-08-21 Jim Meyering <jim@meyering.net>
29855 * modules/openat (Depends-on): Really alphabetize.
29857 * modules/acl (Depends-on): Add error and quote.
29859 * check-module (find_included_lib_files): Add at-func.c to the
29860 ok-to-include-more-than-once white list.
29862 * modules/openat (Depends-on): Add lstat. Alphabetize.
29864 2006-08-21 Bruno Haible <bruno@clisp.org>
29866 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29867 Emit a pkgdata_DATA variable only if some snippets add contents to it.
29868 Reported by Martin Lambers <marlam@marlam.de>.
29870 2006-08-21 Bruno Haible <bruno@clisp.org>
29872 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
29873 specify an installation location, don't emit a noinst_LIBRARIES or
29874 noinst_LTLIBRARIES assignment.
29876 2006-08-21 Bruno Haible <bruno@clisp.org>
29879 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
29880 BeOS has mbrtowc() but no <wctype.h>.
29882 2006-08-21 Bruno Haible <bruno@clisp.org>
29885 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
29888 2006-08-21 Bruno Haible <bruno@clisp.org>
29891 * lib/mbchar.h: Include <wctype.h> only if it exists.
29893 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
29895 Remove files that are no longer needed by their respective modules.
29896 * m4/obstack.m4: Remove.
29897 * m4/strerror_r.m4: Remove.
29898 * m4/uint32_t.m4: Remove.
29899 * m4/uintptr_t.m4: Remove.
29900 * m4/ullong_max.m4: Remove.
29901 * m4/xstrtoimax.m4: Remove.
29902 * m4/xstrtoumax.m4: Remove.
29904 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
29905 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
29906 dependencies now capture this.
29908 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
29909 Do not use AC_LIBSOURCES, since gnulib modules now do this.
29910 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
29911 * m4/human.m4 (gl_HUMAN): Likewise.
29912 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
29913 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
29915 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
29917 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
29918 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
29920 * m4/human.m4 (gl_HUMAN): Likewise.
29921 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
29922 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
29923 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
29924 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
29925 * m4/xstrtol (gl_XSTRTOL): Likewise.
29927 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
29928 AC_TYPE_LONG_LONG_INT.
29929 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
29930 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
29931 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
29932 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
29934 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
29937 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
29938 (gl_PREREQ_XSTRTOUL): Remove.
29940 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
29942 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
29945 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
29947 Add and change modules to make it easier for coreutils to use
29949 * modules/backupfile (Files): Remove m4/d-ino.m4.
29950 (Depends-on): Add d-ino.
29951 * modules/cycle-check (Depends-on): Add stdint.
29952 (lib_SOURCES): Add cycle-check.h.
29953 * modules/d-ino: New module.
29954 * modules/d-type: New module.
29955 * modules/error (Files): Remove m4/strerror_r.m4.
29956 * modules/filemode (Files): Add m4/st_dm_mode.m4.
29957 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
29958 m4/inttypes_h.m4, m4/uintmax_t.m4.
29959 (Depends-on): Add stdint.
29960 (lib_SOURCES): Add fsusage.h.
29961 * modules/getcwd (Files): Remove d-ino.m4.
29962 (Depends-on): Add d-ino.
29963 * modules/getndelim2 (Depends-on): Add stdint.
29964 * modules/glob (Files): Remove m4/d-type.m4.
29965 (Depends-on): Add d-type.
29966 * modules/host-os: New module.
29967 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
29968 m4/inttypes_h.m4, m4/uintmax_t.m4.
29969 * Depends-on: Add stdint.
29970 (lib_SOURCES): Add human.h.
29971 * modules/inttostr (Files): Remove m4/intmax_t.m4,
29972 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
29973 m4/uintmax_t.m4, m4/ulonglong.m4.
29974 (Depends-on): Add stdint.
29975 (EXTRA_DIST): Add inttostr.h.
29976 * modules/lchmod: New module.
29977 * modules/link-follow: New module.
29978 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
29979 (Depends-on): Add lchmod.
29980 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
29981 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
29982 (Depends-on): Add stdint.
29983 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
29984 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
29985 (Depends-on): Add stdint.
29986 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
29987 * modules/perl: New module.
29988 * modules/regex (Depends-on): Add stdint.
29989 * modules/rmdir-errno: New module.
29990 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
29992 (Depends-on): Add stdint.
29993 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
29995 (Depends-on): Add stdint.
29996 * modules/unlink-busy: New module.
29997 * modules/utimecmp (Depends-on): Add stdint.
29998 * modules/uptime: New module.
29999 * modules/winsz-ioctl: New module.
30000 * modules/winsz-termios: New module.
30001 * modules/xnanosleep (Depends-on): Add nanosleep.
30002 * modules/ullong_max: Remove.
30003 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
30004 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
30005 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
30006 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
30007 (Depends-on): Add inttypes.
30008 (lib_SOURCES): Add xstrtol.h.
30009 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
30010 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
30011 * MODULES.html.sh: Move 'assert' into the assert section.
30012 Move 'dummy' into the linking section.
30014 Add section for compatibility checks for POSIX:2001 functions,
30015 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
30016 winsz-ioctl, and winsz-termios into it.
30018 Add top-level Misc section and put host-os, perl, and uptime
30021 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
30023 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
30024 now assume the stdint module. Do not include inttypes.h.
30025 * lib/fsusage.h: Likewise.
30026 * lib/getndelim2.c: Likewise.
30027 * lib/human.h: Likewise.
30028 * lib/inttostr.h: Likewise.
30029 * lib/obstack.c: Likewise.
30030 * lib/regex_internal.h: Likewise.
30031 * lib/tempname.c: Likewise.
30032 * lib/utimecmp.c: Likewise.
30033 * lib/xstrtol.h: Likewise.
30035 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
30037 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
30038 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
30039 * lib/xtime.h: Likewise.
30041 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
30043 * modules/openat (Files): Add lib/fchmodat.c.
30044 Fixes problem reported by Jay Youngman.
30046 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
30048 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
30049 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
30051 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
30052 Bruno Haible <bruno@clisp.org>
30054 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
30055 and is a script that invokes bison. Tighten the code. Add comments.
30057 2006-08-18 Jim Meyering <jim@meyering.net>
30059 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
30060 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
30061 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
30062 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
30064 2006-08-18 Bruno Haible <bruno@clisp.org>
30066 * modules/bison-i18n: New file.
30067 * MODULES.html.sh (Internationalization functions): Add it.
30069 2006-08-18 Bruno Haible <bruno@clisp.org>
30071 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
30072 sys/statvfs.h. When getmntinfo was found, check its declaration and
30073 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
30075 2006-08-18 Bruno Haible <bruno@clisp.org>
30077 * m4/bison-i18n.m4: New file, from bison.
30079 2006-08-18 Bruno Haible <bruno@clisp.org>
30081 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
30082 (ME_DUMMY): Treat "kernfs" as a dummy.
30083 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
30085 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
30087 Update from coreutils.
30089 2006-08-15 Jim Meyering <jim@meyering.net>
30091 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
30093 2006-01-17 Jim Meyering <jim@meyering.net>
30095 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
30097 2006-01-11 Jim Meyering <jim@meyering.net>
30099 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
30100 Check for the lchmod function.
30102 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
30104 Update from coreutils.
30106 * lib/__fpending.h: Add copyright notice.
30107 * lib/fprintftime.h: Likewise.
30108 * lib/savedir.c: Use (C) in copyright notice.
30109 * lib/savedir.h: Likewise.
30111 2006-08-15 Jim Meyering <jim@meyering.net>
30113 * lib/at-func.c: New file, with the logic of all emulated at-functions.
30114 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
30115 in support of the EXPECTED_ERRNO macro.
30116 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
30117 definitions. Instead, define the appropriate symbols and include
30119 * lib/mkdirat.c (mkdirat): Likewise.
30120 * lib/fchmodat.c (fchmodat): Likewise.
30121 (ENOSYS): Remove definition.
30122 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
30123 it. Don't include "unistd--.h" -- it wasn't ever used.
30125 2006-01-17 Jim Meyering <jim@meyering.net>
30127 Rewrite fts.c not to change the current working directory,
30128 by using openat, fstatat, fdopendir, etc..
30130 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
30131 (HAVE_OPENAT_SUPPORT): Define.
30132 [_LIBC] (fchdir): Don't undef or define; no longer used.
30133 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
30134 Now, this `function' always succeeds, and consumes its file descriptor
30135 parameter -- so callers must not close such FDs. Update callers.
30136 (diropen_fd, opendirat, cwd_advance_fd): New functions.
30137 (diropen): Add parameter, SP. Adjust all callers.
30138 Implement using diropen_fd, rather than open.
30139 (fts_open): Initialize new member, fts_cwd_fd.
30140 Remove fts_rft-setting code.
30141 (fts_close): Close fts_cwd_fd, if necessary.
30142 (__opendir2): Define in terms of opendir or opendirat,
30143 depending on whether the FST_NOCHDIR flag is set.
30144 (fts_build): Since fts_safe_changedir consumes its FD, and since
30145 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
30146 and close the dup'd file descriptor upon failure.
30147 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
30148 (fts_safe_changedir): Tweak semantics to reflect that this function
30149 now calls cwd_advance_fd and hence consumes its FD argument.
30150 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
30151 [struct FTS] (fts_rft): Remove now-unused member.
30152 [struct FTS] (fts_cycle.state): Improve comment.
30154 * lib/openat.c (openat_needs_fchdir): New function.
30155 * lib/openat.h (openat_needs_fchdir): Declare it.
30157 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
30159 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
30160 Problem and fix reported by Pádraig Brady in
30161 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
30163 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
30165 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
30167 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
30169 * lib/memcoll.c (memcoll): Optimize for the common case where the
30170 arguments are bytewise equal.
30172 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
30174 * doc/regexprops-generic.texi: Add a copyright notice.
30176 2006-08-15 Bruno Haible <bruno@clisp.org>
30178 * modules/tmpdir (License): Change to LGPL.
30180 2006-08-15 Bruno Haible <bruno@clisp.org>
30182 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
30185 2006-08-14 Simon Josefsson <jas@extundo.com>
30187 * config/srclist.txt: Add gnupload.
30189 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
30191 Change copyright notice from LGPL 2 to GPL 2, since that's the
30192 standard form used in the gnulib repository.
30193 * tests/test-lock.c: Likewise.
30194 * tests/test-stdint.c: Likewise.
30195 * tests/test-tls.c: Likewise.
30197 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
30198 prelude-manager. User shorter URLs for GNU projects, without '?'.
30199 Add copyright notice.
30201 * check-module: Add copyright notice. Output a copyright
30202 notice if "--version" is specified.
30203 * modules/COPYING: New file.
30204 * tests/test-getaddrinfo.c: Add copyright notice.
30205 * tests/test-verify.c: Likewise.
30207 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
30209 Change copyright notice from LGPL 2 to GPL 2, since that's the
30210 standard form used in the gnulib repository.
30211 * lib/lock.c: LGPL -> GPL.
30212 * lib/lock.h: Likewise.
30213 * lib/strnlen1.c: Likewise.
30214 * lib/strnlen1.h: Likewise.
30215 * lib/tls.c: Likewise.
30216 * lib/tls.h: Likewise.
30217 * lib/tmpdir.c: Likewise.
30219 * lib/TODO: Remove; this belongs only in coreutils.
30221 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
30223 Add copyright notices to long-enough files that lack them, since
30224 otherwise the files aren't clearly free. Use the same notice that
30225 getdate.texi already uses.
30226 * doc/alloca-opt.texi: Add copyright notice.
30227 * doc/alloca.texi: Likewise.
30228 * doc/ctime.texi: Likewise.
30229 * doc/functions.texi: Likewise.
30230 * doc/gcd.texi: Likewise.
30231 * doc/gnulib-tool.texi: Likewise.
30232 * doc/inet_ntoa.texi: Likewise.
30233 * doc/visibility.texi: Likewise.
30235 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
30236 * doc/quote.texi: Add copyright notice.
30238 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
30239 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
30240 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
30241 Mention SunOS 5.11. Mention that everything before SunOS 5.7
30242 is now obsolete, and give a pointer to the Sun list.
30243 Add copyright notice.
30245 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
30247 * config/srclistvars.sh: Add copyright notice.
30249 2006-08-14 Eric Blake <ebb9@byu.net>
30251 Import the following change from libc:
30253 2006-08-12 Ulrich Drepper <drepper@redhat.com>
30256 * lib/misc/error.c: Add space between program name and message if file
30259 2006-08-12 Karl Berry <karl@gnu.org>
30261 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
30262 remove, these originate in gnulib now.
30264 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30266 * doc/Makefile (standards.info standards.html standards.dvi):
30267 Also depend on make-stds.texi.
30269 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
30271 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
30272 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
30274 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
30275 in wchar_t. Problem reported by Eric Blake.
30277 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
30278 LEN is smaller than SIZE. Suggested by Bruno Haible.
30279 Also, help the compiler to keep LEN in a register.
30281 2006-08-11 Eric Blake <ebb9@byu.net>
30283 * users.txt: Sort. Add tar.
30285 2006-08-11 Bruno Haible <bruno@clisp.org>
30287 * users.txt: New file.
30289 2006-08-11 Bruno Haible <bruno@clisp.org>
30291 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
30292 before <wchar.h>. Needed for OSF/1 and BSD/OS.
30294 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
30296 * modules/snprintf (Depends-on): Remove minmax.
30297 (Maintainer): Add self and Bruno.
30299 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
30301 * lib/.cppi-disable: Add snprintf.h, socket_.h.
30302 * lib/snprintf.c: Include <errno.h> and <limits.h>.
30303 (EOVERFLOW): Define if the system does not.
30304 Do not include "minmax.h"; it wasn't used.
30305 (snprintf): Don't assume size_t promotes to an unsigned type.
30306 Fix bug when generated string was too long for the buffer: the
30307 buffer's contents are supposed to be the initial prefix of the
30308 output. Don't assume vasnprintf returns EOVERFLOW if the size
30309 exceeds INT_MAX; do the check ourselves.
30311 Import the following changes from libc:
30313 2006-06-02 Jakub Jelinek <jakub@redhat.com>
30315 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
30316 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
30317 set wc to the byte which couldn't be converted.
30318 (re_string_reconstruct): Don't clear valid_raw_len before calling
30319 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
30320 tip_context using re_string_context_at.
30322 2006-05-02 Ulrich Drepper <drepper@redhat.com>
30324 * lib/posix/regex.h: g++ still cannot handled [restrict].
30326 2006-04-21 Ulrich Drepper <drepper@redhat.com>
30328 * lib/posix/regex.h: Remove special handling for VMS.
30330 2006-08-10 Jim Meyering <jim@meyering.net>
30332 * modules/same-inode: New module.
30333 * modules/dev-ino: New module.
30334 * modules/cycle-check: Depend on these modules, rather than simply
30335 including their .h files.
30336 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
30337 required via m4/cycle-check.m4.
30338 * modules/same: Depend on new same-inode module, rather than
30339 including same-inode.h.
30340 * modules/chdir-safer: New file.
30342 * modules/chown (Depends-on): Add stat-macros.
30344 2006-08-10 Jim Meyering <jim@meyering.net>
30346 * m4/cycle-check.m4: New file.
30347 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
30348 * m4/dev-ino.m4, m4/same-inode.m4: New files.
30350 2006-08-10 Eric Blake <ebb9@byu.net>
30352 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
30353 in from original proposal.
30355 2006-08-10 Eric Blake <ebb9@byu.net>
30356 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30358 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
30361 2006-08-10 Bruno Haible <bruno@clisp.org>
30363 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
30366 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
30368 Sync from coreutils.
30370 2006-07-19 Mike Frysinger <vapier@gentoo.org>
30372 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
30373 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
30375 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
30377 * modules/restrict: Remove; no longer needed now that we assume
30378 Autoconf 2.59 or later.
30379 * MODULES.html.sh: Remove 'restrict'.
30380 * modules/argp (Depends-on): Remove 'restrict'.
30381 * modules/base64 (Depends-on): Likewise.
30382 * modules/gc (Depends-on): Likewise.
30383 * modules/getaddrinfo (Depends-on): Likewise.
30384 * modules/glob (Depends-on): Likewise.
30385 * modules/inet_ntop (Depends-on): Likewise.
30386 * modules/inet_pton (Depends-on): Likewise.
30387 * modules/memxor (Depends-on): Likewise.
30388 * modules/regex (Depends-on): Likewise.
30389 * modules/strtok_r (Depends-on): Likewise.
30390 * modules/time_r (Depends-on): Likewise.
30392 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
30394 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
30395 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
30396 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
30397 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
30398 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
30399 * m4/memxor.m4 (gl_MEMXOR): Likewise.
30400 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
30401 gl_C_RESTRICT replaced by AC_C_RESTRICT.
30403 Merge from coreutils.
30404 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
30405 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
30406 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
30407 * m4/time_r.m4 (gl_TIME_R): Likewise.
30409 2006-08-09 Karl Berry <karl@gnu.org>
30411 * config/srclist.txt: no more gettext-tools, per Bruno.
30413 2006-08-08 Eric Blake <ebb9@byu.net>
30415 * modules/verror: New module.
30416 * MODULES.html.sh: Document it.
30418 2006-08-08 Eric Blake <ebb9@byu.net>
30420 * lib/verror.h, lib/verror.c: New files.
30422 2006-08-08 Eric Blake <ebb9@byu.net>
30424 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
30425 verror_at_line output complies with GNU Coding Standards even when
30428 2006-08-07 Bruno Haible <bruno@clisp.org>
30430 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
30432 Reported by Ralf Wildenhues.
30434 2006-08-07 Bruno Haible <bruno@clisp.org>
30436 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
30437 in an AC_DEFUN. Needed so that the autoconf snippets can use
30440 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30442 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30443 Initialize pkgdata_DATA.
30444 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
30447 2006-08-06 Eric Blake <ebb9@byu.net>
30449 * lib/error.h: Fold in some upstream changes from glibc.
30450 * lib/error.c: Likewise.
30452 2006-08-04 Bruno Haible <bruno@clisp.org>
30454 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30455 Make the mostlyclean-local rule depend on mostlyclean-generic.
30456 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
30458 2006-07-31 Bruno Haible <bruno@clisp.org>
30460 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
30461 <stdlib.h>, <string.h>.
30463 2006-07-30 Bruno Haible <bruno@clisp.org>
30465 * modules/readlink (License): Change to LGPL.
30467 2006-07-30 Bruno Haible <bruno@clisp.org>
30469 * modules/javaversion (Makefile.am): Distribute javaversion.java and
30470 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
30471 set PKGDATADIR to point to it.
30473 2006-07-30 Bruno Haible <bruno@clisp.org>
30475 * modules/csharpexec (configure.ac): Comment out macro invocation.
30476 * modules/javaexec (configure.ac): Likewise.
30477 * modules/javacomp-script (configure.ac): Likewise.
30479 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
30481 2006-07-30 Bruno Haible <bruno@clisp.org>
30483 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
30486 2006-07-30 Bruno Haible <bruno@clisp.org>
30488 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
30490 2006-07-30 Bruno Haible <bruno@clisp.org>
30492 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30493 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
30496 2006-07-29 Bruno Haible <bruno@clisp.org>
30498 Make it possible for gnulib-tool to work with locally modified or
30499 augmented gnulib repositories.
30500 * gnulib-tool (func_usage): Document --local-dir option.
30501 (local_gnulib_dir): New variable.
30502 Handle --local-dir option.
30503 (func_lookup_file): New function.
30504 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
30505 (func_get_description, func_get_filelist, func_get_description,
30506 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
30507 func_get_automake_snippet, func_get_include_directive,
30508 func_get_license, func_get_maintainer): Use func_lookup_file.
30509 (func_import, func_create_testdir): Use func_lookup_file.
30511 2006-07-29 Bruno Haible <bruno@clisp.org>
30513 * modules/setenv (Depends-on): Add unistd.
30515 2006-07-29 Bruno Haible <bruno@clisp.org>
30517 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
30519 2006-07-29 Bruno Haible <bruno@clisp.org>
30521 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
30523 2006-07-29 Bruno Haible <bruno@clisp.org>
30525 * gnulib-tool (import, update): If there is no Makefile.am, look at
30526 aclocal.m4, instead of bailing out.
30528 2006-07-29 Bruno Haible <bruno@clisp.org>
30530 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
30531 Categorize the options by when they are useful.
30533 2006-07-29 Bruno Haible <bruno@clisp.org>
30535 * gnulib-tool (func_usage): Document option --no-libtool.
30536 Handle option --no-libtool.
30537 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
30538 for changed semantics of $libtool variable.
30539 (func_import): Likewise. If libtool is not used, show this through
30540 an option --no-libtool.
30541 (func_create_testdir): Update.
30543 2006-07-29 Bruno Haible <bruno@clisp.org>
30545 * gnulib-tool (func_import): Extend error message about missing
30548 2006-07-29 Bruno Haible <bruno@clisp.org>
30550 * gnulib-tool (func_import): Don't create the $docbase directory if
30551 there is no file to store there.
30553 2006-07-29 Bruno Haible <bruno@clisp.org>
30555 * gnulib-tool (autoconf_minversion): If a --dir option is given and
30556 relevant, look for configure.ac there, not in the current directory.
30557 Also use a simple search for AC_PREREQ, not "autoconf --trace".
30559 2006-07-29 Bruno Haible <bruno@clisp.org>
30561 * gnulib-tool (SORT): New variable.
30562 (func_usage): Undocument --assume-autoconf option.
30563 Remove --assume-autoconf option handling.
30564 (autoconf_minversion): Determine from the contents of configure.ac.
30565 (func_import): Remove autoconf_minversion handling.
30566 Suggested by Eric Blake.
30568 2006-07-29 Bruno Haible <bruno@clisp.org>
30570 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
30572 2006-07-29 Bruno Haible <bruno@clisp.org>
30574 * config/srclist.txt (*setenv.[ch]): Remove rules.
30576 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
30578 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
30580 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
30582 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
30585 2006-07-28 Simon Josefsson <jas@extundo.com>
30587 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
30588 * modules/inet_pton (Depends-on): Likewise.
30590 2006-07-28 Simon Josefsson <jas@extundo.com>
30592 * m4/netinet_in_h.m4: New file.
30594 2006-07-28 Simon Josefsson <jas@extundo.com>
30596 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
30599 2006-07-28 Simon Josefsson <jas@extundo.com>
30601 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
30604 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
30606 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
30607 setgid on directories only if they set these bits.
30608 * lib/modechange.h: Remove obsolete comment about masks.
30610 2006-07-28 Eric Blake <ebb9@byu.net>
30612 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
30615 2006-07-28 Bruno Haible <bruno@clisp.org>
30617 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
30619 2006-07-28 Bruno Haible <bruno@clisp.org>
30621 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
30623 2006-07-28 Bruno Haible <bruno@clisp.org>
30625 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
30626 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
30628 Avoids link error on FreeBSD 4.x.
30629 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30631 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
30633 * lib/mbswidth.c (iswcntrl): Likewise.
30635 2006-07-27 Bruno Haible <bruno@clisp.org>
30637 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
30640 2006-07-27 Bruno Haible <bruno@clisp.org>
30642 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
30643 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
30646 2006-07-26 Eric Blake <ebb9@byu.net>
30648 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
30650 2006-07-26 Eric Blake <ebb9@byu.net>
30652 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
30653 like mingw that lack mkstemp.
30654 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
30655 avoid compilation warning on mingw.
30657 2006-07-26 Bruno Haible <bruno@clisp.org>
30659 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
30660 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
30661 INT_FAST*_MIN, INTPTR_MIN.
30663 2006-07-25 Bruno Haible <bruno@clisp.org>
30665 * modules/version-etc (Depends-on): Add stdarg.
30667 2006-07-25 Bruno Haible <bruno@clisp.org>
30669 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
30672 2006-07-25 Bruno Haible <bruno@clisp.org>
30674 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
30675 defined in <stdarg.h> or config.h.
30677 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
30679 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
30680 (gl_STDIO_SAFER): Remove.
30682 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
30684 * MODULES.html.sh (File stream based Input/Output):
30685 Add fopen-safer, tmpfile-safer; remove stdio-safer.
30686 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
30687 * modules/fopen-safer, modules/tmpfile-safer: New files.
30688 * modules/stdio-safer: Remove.
30690 2006-07-24 Bruno Haible <bruno@clisp.org>
30692 * modules/tmpdir: New file.
30693 * MODULES.html.sh (File system functions): Add it.
30695 2006-07-24 Bruno Haible <bruno@clisp.org>
30697 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
30698 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
30700 2006-07-24 Bruno Haible <bruno@clisp.org>
30702 * modules/clean-temp: New file.
30704 2006-07-24 Bruno Haible <bruno@clisp.org>
30706 * m4/tmpdir.m4: New file, from GNU gettext.
30708 2006-07-24 Bruno Haible <bruno@clisp.org>
30710 * lib/tmpdir.h: New file, from GNU gettext.
30711 * lib/tmpdir.c: New file, from GNU gettext.
30713 2006-07-24 Bruno Haible <bruno@clisp.org>
30715 * lib/clean-temp.h: New file, from GNU gettext.
30716 * lib/clean-temp.c: New file, from GNU gettext.
30718 2006-07-23 Eric Blake <ebb9@byu.net>
30720 * modules/stdio-safer (Files): Add tmpfile-safer.c.
30721 (Depends-on): Add binary-io.
30723 2006-07-23 Eric Blake <ebb9@byu.net>
30725 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
30727 2006-07-23 Eric Blake <ebb9@byu.net>
30729 * lib/tmpfile-safer.c: New file.
30730 * lib/stdio-safer.h (fopen_safer): Add prototype.
30731 * lib/stdio--.h (tmpfile): Make safer.
30733 2006-07-23 Bruno Haible <bruno@clisp.org>
30735 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
30736 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
30737 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
30738 gl_linked_remove_at): Use it.
30740 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
30741 and Simon Josefsson <jas@extundo.com>
30743 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
30745 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
30747 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
30749 * modules/close-stream: New file.
30750 * modules/closeout (Description): Make it clear that it exits
30751 with a diagnostic on error.
30752 (Depends-on): Add close-stream. Remove fpending, stdbool.
30753 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
30755 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
30757 * m4/close-stream.m4: New file.
30759 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
30761 * lib/close-stream.c, lib/close-stream.h: New files.
30763 2006-07-22 Bruno Haible <bruno@clisp.org>
30765 Merge from GNU gettext 0.15.
30767 2006-05-01 Bruno Haible <bruno@clisp.org>
30769 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
30771 2006-07-22 Bruno Haible <bruno@clisp.org>
30773 * modules/javaversion: New file.
30774 * MODULES.html.sh (Java): Add javaversion.
30776 2006-03-12 Bruno Haible <bruno@clisp.org>
30778 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
30780 2005-12-04 Bruno Haible <bruno@clisp.org>
30782 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
30785 2006-06-21 Bruno Haible <bruno@clisp.org>
30787 Avoid warnings from recent versions of mcs.
30788 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
30789 -o, -L, -r any more. Use options documented since mcs-1.0
30790 instead. Similarly for -g.
30792 2005-12-04 Bruno Haible <bruno@clisp.org>
30794 * build-aux/csharpcomp.sh.in: Suffix for resources is
30795 .resources, not .resource.
30797 2005-07-09 Bruno Haible <bruno@clisp.org>
30799 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
30801 Reported by Mark Junker <mjscod@gmx.de>.
30803 2006-07-22 Bruno Haible <bruno@clisp.org>
30805 * modules/gettext: Upgrade to gettext-0.15.
30806 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
30808 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
30810 2006-07-22 Bruno Haible <bruno@clisp.org>
30812 Merge from GNU gettext 0.15.
30814 2006-03-25 Bruno Haible <bruno@clisp.org>
30816 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
30818 2006-07-21 Bruno Haible <bruno@clisp.org>
30820 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
30823 2006-05-09 Bruno Haible <bruno@clisp.org>
30825 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
30826 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
30827 for the conftestver execution.
30829 2006-05-01 Bruno Haible <bruno@clisp.org>
30831 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
30832 optional target-version argument. Verify that the compiler
30833 groks source of the specified source-version, or add -source
30834 option as necessary. Verify that the compiler produces
30835 bytecode in the specified target-version, or add -target and
30836 -source options as necessary. Make the result of the test
30837 available as variable CONF_JAVAC. Also log error output in
30840 2006-03-11 Bruno Haible <bruno@clisp.org>
30842 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
30844 2006-05-09 Bruno Haible <bruno@clisp.org>
30846 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
30847 CLASSPATH_SEPARATOR to a semicolon.
30849 2006-03-12 Bruno Haible <bruno@clisp.org>
30851 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
30852 available as variable CONF_JAVA, for subsequent autoconf
30853 tests. Also log error output in config.log.
30855 2006-07-19 Bruno Haible <bruno@clisp.org>
30857 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
30858 that getline works on glibc2 systems. Needed to avoid trouble
30860 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
30862 2005-12-04 Bruno Haible <bruno@clisp.org>
30864 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
30865 launcher (untested).
30867 2005-12-04 Bruno Haible <bruno@clisp.org>
30869 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
30871 2006-07-22 Bruno Haible <bruno@clisp.org>
30873 * gettext.m4: Update from GNU gettext-0.15.
30874 * nls.m4: Likewise.
30876 * inttypes-pri.m4: Likewise.
30877 * inttypes-h.m4: Renamed from inttypes.m4.
30878 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
30880 2006-07-22 Bruno Haible <bruno@clisp.org>
30882 Merge from GNU gettext 0.15.
30884 2005-07-05 Bruno Haible <bruno@clisp.org>
30886 * printf-args.c (printf_fetchargs): Work around broken
30887 definition of wint_t on mingw.
30889 2005-02-12 Bruno Haible <bruno@clisp.org>
30891 * xallocsa.h: Add extern "C" for C++.
30893 2006-05-17 Bruno Haible <bruno@clisp.org>
30895 Cygwin portability.
30896 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
30898 2006-04-30 Bruno Haible <bruno@clisp.org>
30900 * progreloc.c: Include <mach-o/dyld.h> if available.
30901 (find_executable): Use _NSGetExecutablePath when possible.
30903 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
30905 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
30908 2005-12-29 Bruno Haible <bruno@clisp.org>
30910 * progreloc.c (set_program_name_and_installdir): Fix
30913 2005-12-04 Bruno Haible <bruno@clisp.org>
30915 Cygwin portability.
30916 * progreloc.c: Include <windows.h> also on Cygwin.
30917 (find_executable): Add support for Cygwin.
30918 (set_program_name_and_installdir): Handle also platforms with
30921 2006-07-11 Bruno Haible <bruno@clisp.org>
30923 * javacomp.c: Fix a comment.
30924 Reported by Jim Meyering.
30926 2006-04-30 Bruno Haible <bruno@clisp.org>
30928 * javacomp.h (compile_java_class): Add source_version,
30929 target_version arguments.
30930 * javacomp.c: Rewritten to choose only a compiler that
30931 respects the specified source_version and target_version.
30933 2006-06-27 Bruno Haible <bruno@clisp.org>
30935 Assume correct S_ISDIR macro.
30936 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
30938 2006-07-22 Bruno Haible <bruno@clisp.org>
30940 * javaversion.h: New file, from GNU gettext.
30941 * javaversion.c: New file, from GNU gettext.
30942 * javaversion.java: New file, from GNU gettext.
30943 * javaversion.class: New file, from GNU gettext.
30945 2006-05-17 Bruno Haible <bruno@clisp.org>
30947 Cygwin portability.
30948 * javaexec.c (execute_java_class): Test for jview program
30951 2006-04-09 Bruno Haible <bruno@clisp.org>
30953 * fatal-signal.c: Don't include string.h.
30954 (at_fatal_signal): Use a copying loop instead of memcpy.
30956 2005-12-04 Bruno Haible <bruno@clisp.org>
30958 * csharpexec.c: Add support for 'clix' launcher (untested).
30959 (execute_csharp_using_sscli): New function.
30960 (execute_csharp_program): Call it.
30962 2006-06-21 Bruno Haible <bruno@clisp.org>
30964 Avoid warnings from recent versions of mcs.
30965 * csharpcomp.c (compile_csharp_using_mono): Don't use options
30966 -o, -L, -r any more. Use options documented since mcs-1.0
30967 instead. Similarly for -g.
30969 2005-07-09 Bruno Haible <bruno@clisp.org>
30971 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
30973 Reported by Mark Junker <mjscod@gmx.de>.
30975 2006-06-17 Bruno Haible <bruno@clisp.org>
30977 * config.charset: Update for NetBSD 3.0.
30979 2006-05-17 Bruno Haible <bruno@clisp.org>
30981 Cygwin portability.
30982 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
30984 2006-05-16 Bruno Haible <bruno@clisp.org>
30986 * localcharset.c [CYGWIN]: Include <windows.h>.
30987 (get_charset_aliases): For Cygwin, return the same CPxxx
30988 aliases list as under WIN32.
30989 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
30990 the environment variables. Fall back to GetACP().
30992 2006-04-05 Bruno Haible <bruno@clisp.org>
30994 * config.charset: Update Juan Manuel Guerrero's address.
30996 2005-02-12 Bruno Haible <bruno@clisp.org>
30998 * allocsa.h: Add extern "C" for C++.
31000 2005-02-10 Bruno Haible <bruno@clisp.org>
31002 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
31003 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
31005 2006-07-22 Bruno Haible <bruno@clisp.org>
31007 * gettext.h: Update to GNU gettext-0.15.
31009 2006-07-22 Bruno Haible <bruno@clisp.org>
31011 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
31012 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
31013 lib-prefix.m4, longdouble.m4, ssize_t.m4.
31015 2006-07-21 Eric Blake <ebb9@byu.net>
31017 * modules/stdlib-safer: New file.
31018 * MODULES.html.sh (File stream based Input/Output): Add
31021 2006-07-21 Eric Blake <ebb9@byu.net>
31023 * lib/stdlib-safer.h: New file from coreutils, required by
31026 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
31028 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
31030 2006-07-20 Bruno Haible <bruno@clisp.org>
31032 * gnulib-tool: Recognize new option --assume-autoconf.
31033 (autoconf_minversion): New variable.
31034 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
31036 2006-07-20 Bruno Haible <bruno@clisp.org>
31038 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
31040 2006-07-19 Derek R. Price <derek@ximbiot.com>
31042 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
31043 Reindent and repaginate.
31045 2006-07-19 Derek Price <derek@ximbiot.com>
31047 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
31050 2006-07-17 Bruno Haible <bruno@clisp.org>
31052 * modules/list: New file.
31053 * modules/array-list: New file.
31054 * modules/carray-list, modules/carray-list-tests: New files.
31055 * modules/linked-list, modules/linked-list-tests: New files.
31056 * modules/avltree-list, modules/avltree-list-tests: New files.
31057 * modules/rbtree-list, modules/rbtree-list-tests: New files.
31058 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
31059 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
31060 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
31061 * modules/oset: New file.
31062 * modules/array-oset: New file.
31063 * modules/avltree-oset, modules/avltree-oset-tests: New files.
31064 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
31065 * tests/test-carray_list.c: New file.
31066 * tests/test-linked_list.c: New file.
31067 * tests/test-avltree_list.c: New file.
31068 * tests/test-rbtree_list.c: New file.
31069 * tests/test-linkedhash_list.c: New file.
31070 * tests/test-avltreehash_list.c: New file.
31071 * tests/test-rbtreehash_list.c: New file.
31072 * tests/test-avltree_oset.c: New file.
31073 * tests/test-rbtree_oset.c: New file.
31074 * MODULES.html.sh (Container data structures): New section.
31076 2006-07-17 Bruno Haible <bruno@clisp.org>
31078 * m4/gl_list.m4: New file.
31080 2006-07-17 Bruno Haible <bruno@clisp.org>
31082 * lib/gl_list.h: New file.
31083 * lib/gl_list.c: New file.
31084 * lib/gl_array_list.h: New file.
31085 * lib/gl_array_list.c: New file.
31086 * lib/gl_carray_list.h: New file.
31087 * lib/gl_carray_list.c: New file.
31088 * lib/gl_linked_list.h: New file.
31089 * lib/gl_linked_list.c: New file.
31090 * lib/gl_anylinked_list1.h: New file.
31091 * lib/gl_anylinked_list2.h: New file.
31092 * lib/gl_avltree_list.h: New file.
31093 * lib/gl_avltree_list.c: New file.
31094 * lib/gl_anyavltree_list1.h: New file.
31095 * lib/gl_anyavltree_list2.h: New file.
31096 * lib/gl_rbtree_list.h: New file.
31097 * lib/gl_rbtree_list.c: New file.
31098 * lib/gl_anyrbtree_list1.h: New file.
31099 * lib/gl_anyrbtree_list2.h: New file.
31100 * lib/gl_anytree_list1.h: New file.
31101 * lib/gl_anytree_list2.h: New file.
31102 * lib/gl_linkedhash_list.h: New file.
31103 * lib/gl_linkedhash_list.c: New file.
31104 * lib/gl_anyhash_list1.h: New file.
31105 * lib/gl_anyhash_list2.h: New file.
31106 * lib/gl_avltreehash_list.h: New file.
31107 * lib/gl_avltreehash_list.c: New file.
31108 * lib/gl_rbtreehash_list.h: New file.
31109 * lib/gl_rbtreehash_list.c: New file.
31110 * lib/gl_anytreehash_list1.h: New file.
31111 * lib/gl_anytreehash_list2.h: New file.
31113 * lib/gl_oset.h: New file.
31114 * lib/gl_oset.c: New file.
31115 * lib/gl_array_oset.h: New file.
31116 * lib/gl_array_oset.c: New file.
31117 * lib/gl_avltree_oset.h: New file.
31118 * lib/gl_avltree_oset.c: New file.
31119 * lib/gl_rbtree_oset.h: New file.
31120 * lib/gl_rbtree_oset.c: New file.
31121 * lib/gl_anytree_oset.h: New file.
31123 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
31125 * m4/mkancesdirs.m4: New file.
31126 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
31127 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
31128 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
31131 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
31133 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
31134 * lib/mkancesdirs.h: New files.
31135 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
31136 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
31137 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
31138 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
31139 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
31140 callers changed. Revamp internals significantly, by not
31141 attempting to create directories that are temporarily more
31142 permissive than the final results. Do not attempt to use
31143 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
31144 This removes some race conditions, fixes some bugs, and simplifies
31145 things. Use new dirchownmod function to do owner and mode changes.
31146 * lib/mkdir-p.h: Likewise.
31147 * lib/modechange.c (octal_to_mode): New function.
31148 (struct mode_change): New member mentioned.
31149 (make_node_op_equals): New arg mentioned. All callers changed.
31150 (mode_compile): Keep track of which mode bits the user has explicitly
31152 (mode_adjust): New arg DIR, so that we implement the X op correctly.
31153 New arg PMODE_BITS, to keep track of which mode bits the user
31154 mentioned; it treats S_ISUID and S_ISGID speciall.
31155 All callers changed.
31156 * lib/modechange.h: Likewise.
31158 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
31160 * MODULES.html.sh: Add mkancestors.
31161 * modules/mkancesdirs: New module.
31162 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
31163 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
31164 The chdir-safer and afs files are now orphans; I'll remove them
31165 unless someone speaks up.
31166 Add lib/dirchownmod.c, lib/dirchownmod.h.
31167 (Depends-on): Remove alloca, chown, save-cwd, dirname.
31168 Add lchown, mkancesdirs.
31169 (Maintainer): Add self.
31171 2006-07-15 Karl Berry <karl@gnu.org>
31173 * gnulib-tool: help message wording/arrangement.
31175 2006-07-14 Simon Josefsson <jas@extundo.com>
31177 * doc/gnulib.texi (Libtool and Windows): New section.
31179 2006-07-12 Simon Josefsson <jas@extundo.com>
31181 * modules/gendocs (License): Fix license, approved by Karl.
31183 2006-07-12 Eric Blake <ebb9@byu.net>
31185 * MODULES.html.sh: Add gendocs.
31187 2006-07-11 Eric Blake <ebb9@byu.net>
31189 * modules/fdl: New module, to install doc/fdl.texi.
31190 * MODULES.html.sh: Add new section for documentation modules.
31191 * gnulib-tool: Avoid space-tab.
31192 (--doc-base): New option, to manage files from doc.
31194 2006-07-11 Eric Blake <ebb9@byu.net>
31196 * m4/absolute-header.m4: Fix comments to match recent change.
31198 2006-07-11 Eric Blake <ebb9@byu.net>
31200 * gnulib-tool: List --doc-base before --tests-base.
31202 2006-07-11 Derek R. Price <derek@ximbiot.com>
31204 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
31206 2006-07-11 Bruno Haible <bruno@clisp.org>
31208 * README: Mention where to put documentation.
31210 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31212 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
31214 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
31216 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
31219 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
31221 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
31222 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
31223 "no/such/file/stdint.h" when there is no such file, so that
31224 the resulting C code can be parsed by dodgy compilers.
31225 Problems reported by Bob Proulx.
31227 2006-07-10 Derek R. Price <derek@ximbiot.com>
31229 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
31230 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
31231 macros into the GNU _D_EXACT_NAMLEN.
31232 * lib/savedir.c: Likewise.
31233 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
31235 2006-07-10 Derek R. Price <derek@ximbiot.com>
31236 and Paul Eggert <eggert@cs.ucla.edu>
31238 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
31240 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
31241 macros into the GNU _D_EXACT_NAMLEN.
31243 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
31245 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
31246 around the absolute name, to work around a problem with the HP-UX
31247 11.23 native C compiler, reported by Bob Proulx.
31249 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
31251 * doc/maintain.texi, make-stds.texi: Sync from
31252 <http://savannah.gnu.org/projects/gnustandards>.
31254 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
31256 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
31258 2006-07-09 Jim Meyering <jim@meyering.net>
31260 * m4/glob.m4: Remove a doubled word in a comment.
31262 2006-07-09 Jim Meyering <jim@meyering.net>
31264 * lib/argp-pv.c: Remove a doubled word in a comment.
31265 * lib/check-version.c (check_version): Likewise.
31266 * lib/javacomp.c (compile_java_class): Likewise.
31268 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
31270 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
31271 for the benefit of people using Autoconf 2.60. If you want to
31272 support older Autoconf versions you can copy m4/onceonly_2_57.m4
31273 (or m4/onceonly.m4, if pre-2.57) manually.
31275 2006-07-08 Jim Meyering <jim@meyering.net>
31277 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
31279 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
31280 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
31283 2006-07-08 Jim Meyering <jim@meyering.net>
31285 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
31287 2006-07-07 Simon Josefsson <jas@extundo.com>
31289 * tests/test-crc.c: Change expected crc value, the test vector
31290 were probably computed using the old broken crc.c?
31292 2006-07-06 Simon Josefsson <jas@extundo.com>
31294 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
31295 now the canonical place for the M4 file).
31297 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
31298 from the sys_socket dependency now.
31300 * modules/inet_pton (Files): Ditto.
31302 * modules/inet_ntop (Files): Ditto.
31304 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
31306 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
31307 not gl_PREREQ_GETUSERSHELL.
31309 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31311 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
31312 with only one argument, for Autoconf 2.60.
31313 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
31314 expand to nothing, so add a shell command to avoid syntax error.
31315 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
31317 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31319 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
31321 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
31323 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
31324 no longer needed. Check for isblank decl.
31325 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
31326 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
31329 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
31331 * lib/getloadavg.c: Use __VMS, not VMS.
31332 * lib/getopt.c: Likewise.
31333 * lib/getpagesize.h: Likewise.
31334 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
31335 and probably does not work.
31337 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
31339 * lib/.cppi-disable: Add wcwidth.
31340 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
31341 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
31342 (ISGRAPH): Remove. All uses changed to isgraph.
31343 (FOLD) [!defined _LIBC]: Remove special case.
31344 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
31345 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
31347 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
31350 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
31352 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
31353 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
31354 brackets. Other minor changes to suppress some compiler
31357 2006-07-06 Derek R. Price <derek@ximbiot.com>
31358 and Paul Eggert <eggert@cs.ucla.edu>
31360 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
31361 of invoking obsolescent AC_HEADER_DIRENT macro.
31362 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
31363 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
31364 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
31365 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
31366 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
31367 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31368 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
31369 * m4/readdir.m4: Remove; no longer needed.
31371 2006-07-06 Derek R. Price <derek@ximbiot.com>
31372 and Paul Eggert <eggert@cs.ucla.edu>
31374 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
31375 Don't worry about this obsolete case any more.
31376 (HAVE_DIR): Remove. All uses removed; we now assume you can read
31378 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
31379 worry about this obsolete case any more.
31380 * lib/fts.c: Likewise.
31381 * lib/getcwd.c: Likewise.
31382 * lib/glob.h: Likewise.
31383 * lib/savedir.c: Likewise.
31385 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
31387 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
31388 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
31389 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
31392 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31393 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
31394 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
31396 * m4/getdate.m4 (gl_GETDATE): Likewise.
31397 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
31398 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
31399 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
31400 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31401 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
31402 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
31403 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
31406 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
31408 * lib/memcasecmp.c: Include <limits.h>.
31409 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
31410 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
31411 Don't assume isdigit succeeds only on '0' through '9'.
31413 2006-07-05 Eric Blake <ebb9@byu.net>
31415 * modules/getaddrinfo (Depends-on): Add snprintf.
31417 2006-07-05 Eric Blake <ebb9@byu.net>
31419 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
31420 to avoid 'header present but could not be compiled' on cygwin.
31422 2006-07-05 Eric Blake <ebb9@byu.net>
31424 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
31425 missing from netdb.h.
31426 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
31428 2006-07-05 Derek R. Price <derek@ximbiot.com>
31430 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
31432 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
31433 * m4/getdate.m4 (gl_GETDATE): Likewise.
31434 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
31435 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
31436 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
31437 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31438 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
31440 2006-07-05 Derek R. Price <derek@ximbiot.com>
31442 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
31443 All uses of is_space replaced by isspace.
31444 * lib/exit.h: Don't talk about STDC_HEADERS.
31445 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
31446 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
31447 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
31448 replaced by isprint etc.
31449 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
31450 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
31451 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
31452 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
31453 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
31454 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
31456 2006-07-05 Bruno Haible <bruno@clisp.org>
31458 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
31459 the function exists, before testing against AIX.
31460 Reported by Martin Lambers <marlam@marlam.de>.
31462 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
31464 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
31465 From Mark D. Baushke.
31467 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
31469 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
31470 to the absolute name, not just one, to bypass Sun C 5.8's
31471 "warning: #include of /usr/include/... may be non-portable".
31473 2006-07-04 Eric Blake <ebb9@byu.net>
31475 * modules/dirname-tests: New test module.
31476 * tests/test-dirname.c: New file, replacing dirname.c
31477 TEST_DIRNAME section that was recently deleted.
31479 2006-07-04 Bruno Haible <bruno@clisp.org>
31481 Assume ANSI C header files and <ctype.h> functions.
31482 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
31483 (mbsnwidth): Use isprint, iscntrl instead.
31485 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
31487 Merge from coreutils.
31488 * MODULES.html.sh: Add xstrtold.
31489 * modules/xstrtold: New file.
31490 * modules/cycle-check (Files): Add lib/same-inode.h.
31491 * modules/dirname (Files): Add m4/double-slash-root.m4.
31492 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
31493 * modules/mkdir-p (Files): Add lib/same-inode.h.
31494 * modules/same (Files): Add lib/same-inode.h.
31496 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
31498 * m4/absolute-header.m4: Renamed from full-header-path.m4.
31499 This is to keep the terminology clean; POSIX talks about
31500 "absolute pathnames", not "full pathnames", but the GNU
31501 Coding Standards say to use "path" for something else;
31502 so use "absolute" to keep both sides happy.
31503 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
31504 Set gl_absolute_header, not gl_full_header_path.
31505 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
31506 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
31509 Merge from coreutils.
31511 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
31513 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
31514 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
31515 want to require the building of c-strtod.o.
31516 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
31517 needs -lm directly.
31518 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
31520 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
31522 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
31523 --as-needed option if available. Problem reported by Albert Chin in
31524 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
31525 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
31526 cc merely issues a bunch of annoying warnings for --as-needed
31527 (this problem was reported by Bob Proulx). Also, try linking with
31528 -lm to detect a bug in binutils 2.16 (this problem was reported
31529 by Ralf Wildenhues).
31531 2006-06-18 Jim Meyering <jim@meyering.net>
31533 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
31534 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
31536 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
31537 also check for glibc-2.4's abort-inducing bug.
31539 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
31540 Low-probability clean-up should be to use rmdir to get rid of
31541 the just-created directory, not unlink.
31543 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
31544 configure fail, and request a bug report to inform us about it.
31545 Add a comment that, barring reports to the contrary, in 2007 we'll
31546 assume ftruncate is universally available.
31548 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
31550 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
31552 2006-03-12 Jim Meyering <jim@meyering.net>
31554 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
31555 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
31556 * m4/same.m4 (gl_SAME): Likewise.
31557 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
31559 2006-03-11 Eric Blake <ebb9@byu.net>
31561 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
31562 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
31563 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
31564 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
31566 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
31568 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
31569 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
31570 reported by Mark D. Baushke, one in
31571 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
31573 Merge from coreutils.
31575 * lib/.cppi-disable: Add stdint_.h.
31576 * lib/.cvsignore: Add stdint.h.
31578 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
31580 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
31581 both double and long double versions.
31582 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
31583 * lib/xstrtold.c: New file.
31584 * lib/xstrtod.h (xstrtold): New decl.
31586 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
31588 * lib/filemode.c (setst): Remove.
31589 (strmode): Rewrite to avoid setst. This makes the code shorter,
31590 (arguably) clearer, and the generated code is a bit smaller on my
31591 Debian GNU/Linux stable x86 host.
31593 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
31595 * lib/filemode.c: Include "filemode.h" first, to test the interface.
31596 Assume that filemode.h includes sys/types.h and sys/stat.h.
31597 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
31598 (ftypelet): Reorder to put common cases first, for efficiency.
31599 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
31601 (strmode): Renamed from mode_string, and now stores 12 bytes instead
31602 of 10, for compatibility with FreeBSD. All callers changed.
31603 (filemodestring): Now stores 12 bytes instead of 10, and sets file
31604 types that can't be deduced solely from st_mode. First arg is now a
31606 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
31607 (strmode): Renamed from mode_string.
31608 (filemodestring): New decl.
31609 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
31610 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
31612 (S_ISPORT, S_ISWHT): New macros, if not already defined.
31614 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
31616 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
31617 fsusage.h now does that. Include fsusage.h first, to test interface.
31618 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
31619 at most one method (the old code could have generated decls that
31620 didn't conform to C89, not that this was ever exercised).
31621 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
31623 2006-03-19 Jim Meyering <jim@meyering.net>
31625 Work even in a chroot where d_ino values for entries in "/"
31626 don't match the stat.st_ino values for the same names.
31627 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
31628 number, iterate through all entries again, using lstat instead.
31629 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
31630 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
31632 * lib/getcwd.c (__getcwd): Clarify a comment.
31633 Use memcpy in place of a call to strcpy.
31635 2006-03-12 Jim Meyering <jim@meyering.net>
31637 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
31638 matches that of the current directory (which we're about to chdir ".."
31639 out of), then save the dev-ino of the parent, instead.
31641 * lib/same-inode.h (SAME_INODE): New file/macro.
31642 * lib/chdir-safer.c (SAME_INODE): Remove definition.
31643 Include "same-inode.h", instead.
31644 * lib/same.c: Likewise.
31645 * lib/cycle-check.h: Include "same-inode.h".
31646 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
31647 * lib/cycle-check.c (SAME_INODE): Remove definition.
31648 * lib/root-dev-ino.h: Include "same-inode.h".
31650 2006-03-11 Eric Blake <ebb9@byu.net>
31652 * lib/same.c (same_name): s/base_name/last_component/
31653 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
31654 * lib/filenamecat.c (file_name_concat): Likewise.
31656 2006-03-11 Eric Blake <ebb9@byu.net>,
31657 Paul Eggert <eggert@cs.ucla.edu>
31659 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
31660 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
31662 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
31663 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
31664 (last_component): New method.
31665 * lib/dirname.c (dir_len): Determine when drive letters need a
31666 subsequent slash. Preserve // when it is special.
31667 (dir_name): Don't append dot when drive letter is absolute.
31668 [TEST_DIRNAME]: Move into a full-blown gnulib test.
31669 * lib/basename.c (base_name): New semantics - malloc the result.
31670 Preserve // when it is special. Preserve relative files that look
31671 like drive letters.
31672 (base_len): Preserve // when it is special.
31673 (last_component): New method, similar to old base_name semantics.
31674 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
31675 base_name. Strip redundant slashes from ///.
31677 2006-07-03 Jim Meyering <jim@meyering.net>
31679 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
31680 macro is used before the first cycle_check call.
31682 2006-07-03 Eric Blake <ebb9@byu.net>
31684 * modules/dirname (Depends-on): Add xstrndup.
31686 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
31688 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
31689 test cases, so that config.log is a bit easier to follow.
31691 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
31693 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
31694 both are 64 bits, since this seems to be the tradition, and this
31695 prevents gcc -Wformat from warning about usages with PRIuMAX. If
31696 we ever run into a host that prefers long long to long in this
31697 case, we'll need another configure-time test. Problem reported by
31700 2006-07-02 Eric Blake <ebb9@byu.net>
31702 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
31704 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
31706 * modules/inttypes (Depends-on): No longer depends on stdint.
31707 * modules/stdint (Description): Say more about assumptions.
31708 Say that the fast types might differ. Say macros are used.
31709 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
31710 (Makefile.am): Revise list of substituted symbols to match
31712 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
31713 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
31714 * tests/test-stdint.c (verify_same_types)
31715 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
31716 the code conforms to C99/C89.
31717 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
31718 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
31720 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
31722 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
31723 but fix a bug, by requiring at least 64 bits.
31724 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
31725 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
31726 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
31727 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
31729 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
31730 changes. Make 2.59 a prerequisite. Check and substitute for
31731 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
31732 inttypes.h. Do not use special include files; just use the
31733 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
31734 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
31735 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
31736 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
31737 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
31738 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
31739 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
31740 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
31741 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
31742 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
31743 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
31744 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
31745 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
31746 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
31747 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
31748 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
31749 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
31750 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
31751 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
31752 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
31753 WINT_MAX. Check for C99 conformance more strictly, by detecting
31754 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
31755 not check for things that C99 does not require, e.g., int8_t. If
31756 a test isn't needed unless <stdint.h> isn't working, and is
31757 unlikely to be needed for any other reason, then don't do it
31758 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
31759 size_t, since we assume C89 freestanding at least. Do not check
31760 for sig_atomic_t, wchar_t, or wint_t, since the code now does
31761 the right thing even if the types are not defined. Instead use:
31762 (gl_STDINT_TYPE_PROPERTIES): New macro.
31763 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
31764 testing whether <sys/types.h> clashes, as Autoconf does this for
31765 us now. All uses removed.
31766 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
31767 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
31768 (gl_CHECK_TYPE_SAME):
31769 Remove; no longer needed.
31770 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
31771 exists, since we'll return 0 anyway in that case.
31772 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
31774 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
31776 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
31777 possible collision with system files.
31778 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
31779 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
31780 WCHAR_MIN and WCHAR_MAX in this case.
31781 (<stddef.h>): Do not include; no longer needed.
31782 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
31783 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
31784 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
31785 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
31786 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
31787 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
31788 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
31789 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
31790 !defined(__c99))]: Include in this case too, since it's harmless
31792 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
31793 dangerous to do so.
31794 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
31795 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
31796 (_STDINT_MIN, _STDINT_MAX): New macros.
31797 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
31798 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
31799 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
31800 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
31801 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
31802 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
31803 macros, not typedefs; this simplifies things quite a bit.
31804 Use long int for all types narrower than int64_t.
31805 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
31806 Define in terms of long long int or int64_t or long int,
31807 not int64_t or int32_t. This saves some compile-time testing.
31808 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
31809 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
31810 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
31811 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
31812 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
31813 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
31814 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
31815 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
31816 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
31817 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
31818 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
31819 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
31820 undef any previous version and define our own version, for
31821 simplicity and consistency with the new macros for types.
31822 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
31823 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
31824 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
31825 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
31826 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
31827 @WINT_T_SUFFIX@ to keep things simple here.
31828 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
31829 Simplify by assuming typical 8/16/32/64 host, since we're
31830 already doing that elsewhere anyway.
31831 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
31832 and assume long long int is 64 bits if available. This
31833 speeds up 'configure'.
31835 2006-07-01 Eric Blake <ebb9@byu.net>
31837 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
31838 Reported by Andreas Buening.
31840 2006-07-01 Eric Blake <ebb9@byu.net>
31842 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
31844 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
31846 * lib/getaddrinfo.c: fixed typo
31848 2006-06-29 Jim Meyering <jim@meyering.net>
31850 * modules/strftime (Maintainer): Add my name, since with the
31851 FPRINTFTIME changes strftime.c has forked from glibc.
31853 2006-06-29 Eric Blake <ebb9@byu.net>
31855 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
31857 2006-06-29 Eric Blake <ebb9@byu.net>
31859 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
31861 2006-06-29 Eric Blake <ebb9@byu.net>
31863 * lib/stat_.h: New file.
31865 2006-06-29 Eric Blake <ebb9@byu.net>
31867 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
31868 unused static function.
31870 2006-06-29 Eric Blake <ebb9@byu.net>
31872 * doc/functions.texi (Function Portability): Document missing lstat
31875 2006-06-29 Eric Blake <ebb9@byu.net>
31877 * MODULES.html.sh: Add sys_stat.
31878 * modules/sys_stat: New module.
31879 * modules/mkstemp (Depends-on): Add sys_stat.
31881 2006-06-29 Derek R. Price <derek@ximbiot.com>
31883 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
31885 2006-06-29 Derek R. Price <derek@ximbiot.com>
31887 * m4/c-bs-a.m4: Removed.
31889 2006-06-29 Derek R. Price <derek@ximbiot.com>
31891 * lib/strftime.c: Assume strftime() exists.
31893 2006-06-29 Derek Price <derek@ximbiot.com>
31895 * modules/c-bs-a: Removed - \a is C89.
31896 * MODULES.html.sh: Remove c-bs-a.
31898 2006-06-29 Bruno Haible <bruno@clisp.org>
31900 * modules/wcwidth (License): Change to LGPL.
31902 2006-06-28 Simon Josefsson <jas@extundo.com>
31904 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
31907 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
31910 2006-06-28 Simon Josefsson <jas@extundo.com>
31912 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
31914 2006-06-28 Simon Josefsson <jas@extundo.com>
31916 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
31917 functions there. It will succeed on Windows XP, but on Windows
31918 2000 and (presumably) earlier, it will fail, and use the internal
31920 (use_win32_p): New function.
31921 (getaddrinfo): Use strtoul on servname, to support numeric ports.
31922 Support AI_NUMERICSERV to disable getservbyname.
31923 (getnameinfo): New function, only supports
31924 NI_NUMERICHOST|NI_NUMERICSERV for now.
31926 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
31927 only have some of them. Add AI_NUMERICSERV. Add prototype for
31930 2006-06-28 Eric Blake <ebb9@byu.net>
31932 * modules/wcwidth: New file.
31933 * modules/mbchar (Depends-on): Add wcwidth.
31934 * modules/mbswidth (Depends-on): Add wcwidth.
31935 * MODULES.html.sh: Add wcwidth.
31937 2006-06-28 Eric Blake <ebb9@byu.net>
31939 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
31940 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
31942 2006-06-28 Eric Blake <ebb9@byu.net>
31944 * lib/xvasprintf.h: Fix comments.
31946 2006-06-28 Eric Blake <ebb9@byu.net>
31948 * lib/mbchar.h (wcwidth): Include wcwidth.h.
31949 * lib/mbswidth.c (wcwidth): Move from here...
31950 * lib/wcwidth.h: ...to this new file.
31952 2006-06-28 Derek R. Price <derek@ximbiot.com>
31954 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
31956 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
31958 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
31960 2006-06-28 Derek R. Price <derek@ximbiot.com>
31962 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
31963 Autoconf 2.60 says this stuff was obsolete.
31965 2006-06-28 Bruno Haible <bruno@clisp.org>
31967 * modules/wcwidth (Files): Add m4/wchar_t.m4.
31969 2006-06-28 Bruno Haible <bruno@clisp.org>
31971 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
31974 2006-06-28 Bruno Haible <bruno@clisp.org>
31976 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
31977 declaration for wcwidth.
31978 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
31980 2006-06-28 Bruno Haible <bruno@clisp.org>
31982 * lib/mkdtemp.c [MINGW]: Include <io.h>.
31983 (mkdir): Define using _mkdir.
31985 2006-06-28 Bruno Haible <bruno@clisp.org>
31987 * lib/getaddrinfo.h: Fix POSIX URL.
31988 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
31990 (use_win32_p): Make static.
31991 (getaddrinfo): Reject service name if it is empty or does not consist
31992 solely of decimal digits, or if its value is > 65535.
31993 (getnameinfo): Remove useless casts.
31995 2006-06-27 Simon Josefsson <jas@extundo.com>
31997 * modules/sys_select: New file, suggested by Bruno Haible, Paul
31998 Eggert and Martin Lambers.
32000 2006-06-27 Simon Josefsson <jas@extundo.com>
32002 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
32003 Eggert and Martin Lambers.
32005 2006-06-27 Bruno Haible <bruno@clisp.org>
32007 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
32008 result to 0, not to empty.
32009 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
32011 2006-06-27 Bruno Haible <bruno@clisp.org>
32013 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
32015 2006-06-26 Simon Josefsson <jas@extundo.com>
32017 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
32020 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
32022 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
32023 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
32024 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
32026 2006-06-26 Mark D. Baushke <mdb@gnu.org>
32028 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
32030 2006-06-26 Bruno Haible <bruno@clisp.org>
32032 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
32034 2006-06-26 Bruno Haible <bruno@clisp.org>
32036 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
32038 2006-06-26 Bruno Haible <bruno@clisp.org>
32040 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
32041 SGI C compiler in pre-C99 mode.
32042 Suggested by Mark D. Baushke and Larry Jones.
32044 2006-06-26 Bruno Haible <bruno@clisp.org>
32046 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
32048 Reported by Mark D. Baushke and Larry Jones.
32050 2006-06-26 Bruno Haible <bruno@clisp.org>
32052 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
32054 Suggested by Mark D. Baushke and Larry Jones.
32056 2006-06-23 Simon Josefsson <jas@extundo.com>
32057 Bruno Haible <bruno@clisp.org>
32059 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
32060 Emit mostlyclean-local rule.
32061 (func_emit_tests_Makefile_am): Likewise.
32062 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
32064 2006-06-23 Mark D. Baushke <mdb@gnu.org>
32066 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
32068 2006-06-23 Bruno Haible <bruno@clisp.org>
32070 * tests/test-stdint.c: Update to match ISO C 99 Technical
32073 2006-06-23 Bruno Haible <bruno@clisp.org>
32075 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
32077 2006-06-23 Bruno Haible <bruno@clisp.org>
32079 * lib/stdint_.h: Treat IRIX like OpenBSD.
32081 2006-06-23 Bruno Haible <bruno@clisp.org>
32083 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
32084 ISO C 99 Technical Corrigendum 1.
32086 2006-06-22 Simon Josefsson <jas@extundo.com>
32088 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
32091 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
32093 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
32094 needed. Some compiler complained about some of them. Problem reported
32096 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
32098 2006-06-21 Simon Josefsson <jas@extundo.com>
32100 * tests/test-getaddrinfo.c: New file.
32102 * modules/getaddrinfo-tests: New file.
32104 * MODULES.html.sh: Add inet_pton.
32106 * modules/inet_pton: New file.
32108 2006-06-21 Simon Josefsson <jas@extundo.com>
32110 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
32111 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
32112 of using the (limited) gnulib implementation on Windows XP.
32114 * m4/inet_pton.m4: New file.
32116 2006-06-21 Simon Josefsson <jas@extundo.com>
32118 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
32121 * lib/socket_.h: Don't define WINVER.
32123 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
32124 slightly modified to work in gnulib.
32126 2006-06-21 Simon Josefsson <jas@extundo.com>
32128 * doc/gnulib.texi (Windows sockets): Add.
32130 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
32132 * lib/read-file.c (fread_file): Start with buffer allocation of
32133 0 bytes rather than 1 byte; this simplifies the code.
32134 Don't invoke feof; it's not needed. Refactor to avoid duplicate
32135 code to free buffer and save/restore errno.
32136 (internal_read_file): Remove unused local.
32138 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
32140 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
32141 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
32142 Problem reported by Denis Excoffier in
32143 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
32145 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
32147 * modules/sys_socket, modules/socklen: Include sys/types since
32148 FreeBSD 4.x's sys/socket.h needs it.
32150 2006-06-19 Simon Josefsson <jas@extundo.com>
32152 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
32154 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
32156 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
32158 2006-06-19 Bruno Haible <bruno@clisp.org>
32160 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
32161 and FULL_PATH_INTTYPES_H in angle brackets.
32162 Reported by Mark D. Baushke <mdb@gnu.org>.
32164 2006-06-17 Eric Blake <ebb9@byu.net>
32166 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
32169 2006-06-17 Bruno Haible <bruno@clisp.org>
32171 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
32174 2006-06-17 Bruno Haible <bruno@clisp.org>
32176 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
32177 whether errno is declared. Assume <errno.h> declares errno.
32179 2006-06-17 Bruno Haible <bruno@clisp.org>
32181 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
32183 2006-06-17 Bruno Haible <bruno@clisp.org>
32185 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
32186 problem on Solaris 2.5.1.
32188 2006-06-16 Eric Blake <ebb9@byu.net>
32190 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
32191 * lib/unicodeio.c [!defined errno]: Likewise.
32192 * lib/strtol.c [!defined errno]: Likewise.
32193 * lib/strtod.c [!defined errno]: Likewise.
32195 2006-06-15 Eric Blake <ebb9@byu.net>
32197 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
32199 2006-06-15 Eric Blake <ebb9@byu.net>
32201 * config/srclist.txt (ssize_t.m4): Lose sync.
32203 2006-06-15 Bruno Haible <bruno@clisp.org>
32205 * modules/stdint (Files): Include m4/full-header-path.m4,
32206 m4/size_max.m4, m4/wchar_t.m4.
32207 (Makefile.am): Many more substitutions.
32208 * modules/stdint-tests: New file.
32209 * tests/test-stdint.c: New file.
32211 2006-06-15 Bruno Haible <bruno@clisp.org>
32213 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
32214 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
32215 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
32216 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
32217 gl_CHECK_TYPE_SAME): New macros.
32219 2006-06-15 Bruno Haible <bruno@clisp.org>
32221 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
32223 2006-06-15 Bruno Haible <bruno@clisp.org>
32225 * lib/stdint_.h: Rewritten to be fully auto-configured.
32226 Fixes bug on HP-UX/IA64.
32228 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
32230 * lib/getdate.y (__attribute__): Don't define if already defined.
32231 Problem reported by Larry Jones.
32232 * lib/utimens.c (__attribute__): Likewise.
32234 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
32236 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
32237 reported by Andreas Schwab.
32239 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32240 Bruno Haible <bruno@clisp.org>
32242 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
32243 check for the declaration of strnlen and a run test that exposes the
32244 AIX 5.1 strnlen bug. In the failure case, #define strndup to
32247 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32248 Bruno Haible <bruno@clisp.org>
32250 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
32252 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32254 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
32255 compile test, for Tru64 4.0D.
32257 2006-05-28 Karl Berry <karl@gnu.org>
32259 * config/srclist.txt (printf-args.c): lose sync.
32261 2006-05-26 Martin Lambers <marlam@marlam.de>
32263 * lib/getpass.c: Updates the test for the native W32 API, and adds
32264 missing includes, thus fixing compilation warnings.
32266 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
32268 * lib/exclude.c (exclude_fnmatch): New function.
32269 (excluded_file_name): Call exclude_fnmatch.
32270 * lib/exclude.h (excluded_file_name): New prototype
32272 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
32274 * lib/tempname.c (small_open, large_open): New macros.
32275 (__open, __open64) [!_LIBC]: Remove.
32276 (__gen_tempname): Use small_open and large_open instead of __open
32277 and __open64. This fixes a portability bug on HP-UX 11.11i
32278 reported by Simon Wing-Tang in
32279 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
32281 2006-05-24 Bruno Haible <bruno@clisp.org>
32283 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
32284 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
32285 Reported by Thorsten Maerz <torte@netztorte.de> via
32286 Aaron Stone <aaron@serendipity.cx>.
32288 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
32290 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
32291 gl_ rather than jm_. Link, don't run, so that cross-compiles are
32292 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
32293 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
32294 not really conditional on the cache.
32295 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
32297 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
32299 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
32300 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
32301 (my_usleep): Don't mishandle maximum value.
32303 2006-05-19 Jim Meyering <jim@meyering.net>
32305 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
32307 2006-05-17 Bruno Haible <bruno@clisp.org>
32309 Cygwin portability.
32310 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
32312 2006-05-17 Bruno Haible <bruno@clisp.org>
32314 * lib/stdint_.h: Fix recognition of Cygwin.
32316 2006-05-15 Bruno Haible <bruno@clisp.org>
32318 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
32319 on libtool patch by Ralf Wildenhues.
32321 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
32323 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
32324 test for C99 conformance; (bool) 0.5 is an integer constant
32325 expression, but (bool) -0.5 is not. Problem reported by Fedor
32326 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
32328 2006-05-11 Simon Josefsson <jas@extundo.com>
32330 * m4/xvasprintf.m4: Fix obvious typo.
32332 2006-05-11 Jim Meyering <jim@meyering.net>
32334 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
32337 2006-05-10 Simon Josefsson <jas@extundo.com>
32339 * lib/md4.c: Typo fix, update copyright years.
32340 (K1, K2): Don't use L because it turn computations into 64-bit on
32343 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
32345 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
32346 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
32347 unwanted sign propagation, e.g., on hosts with 64-bit int.
32348 There still are some problems with reeelly weird theoretical hosts
32349 (e.g., 33-bit int) but it's not worth worrying about now.
32350 * lib/sha1.c (rol): Likewise.
32351 (K1, K2, K3, K4): Remove unnecessary L suffix.
32353 2006-05-10 Bruno Haible <bruno@clisp.org>
32355 * lib/des.c: Cast to avoid warnings.
32357 2006-05-09 Bruno Haible <bruno@clisp.org>
32359 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
32360 (Depends-on): Depend also on xsize, stdarg.
32361 (configure.ac): Add gl_XVASPRINTF.
32363 2006-05-09 Bruno Haible <bruno@clisp.org>
32365 * m4/xvasprintf.m4: New file.
32367 2006-05-09 Bruno Haible <bruno@clisp.org>
32369 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
32370 (EOVERFLOW): Define fallback value.
32371 (xstrcat): New function.
32372 (xvasprintf): Recognize the special case of a string concatenation.
32374 2006-05-08 Eric Blake <ebb9@byu.net>
32376 * gnulib-tool (func_version): Base copyright year on CVS date.
32377 (func_emit_copyright_notice): New function.
32378 (func_emit_lib_Makefile_am): Use it.
32379 (func_emit_tests_Makefile_am): Likewise.
32380 (func_import): Likewise.
32382 2006-05-08 Bruno Haible <bruno@clisp.org>
32384 * modules/stdarg: New file.
32385 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
32387 2006-05-08 Bruno Haible <bruno@clisp.org>
32389 * m4/stdarg.m4: New file, from GNU gettext.
32391 2006-05-08 Bruno Haible <bruno@clisp.org>
32393 * config/srclist.txt (build-aux/config.rpath): different from latest
32396 2006-05-08 Bruno Haible <bruno@clisp.org>
32398 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
32400 2006-05-05 Jim Meyering <jim@meyering.net>
32402 * m4/warning.m4: New file, derived from bison's file by the same name.
32404 2006-05-03 Bruno Haible <bruno@clisp.org>
32406 * lib/stdint_.h: Shorter URL.
32407 * lib/inttypes.h: Likewise.
32409 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
32411 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
32413 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
32415 * lib/verify.h: Document the internals better. Most of this change
32416 was written by Bruno Haible.
32418 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
32420 * doc/verify.texi: New file, partly based on a proposal by
32423 2006-05-02 Bruno Haible <bruno@clisp.org>
32425 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
32427 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
32429 2006-04-29 Bruno Haible <bruno@clisp.org>
32431 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
32432 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
32434 2006-04-29 Bruno Haible <bruno@clisp.org>
32436 * gnulib-tool: Make --update option actually work.
32438 2006-04-29 Bruno Haible <bruno@clisp.org>
32440 * doc/gcd.texi: New file.
32441 * doc/gnulib.texi: Include it.
32443 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
32445 * lib/getdate.y (get_date): When adding relative date, start with the
32446 initial time, not with the result of the first mktime call.
32448 2006-04-25 Bruno Haible <bruno@clisp.org>
32450 * gnulib-tool (func_import): Output the include directives in three
32451 blocks, sorted separately.
32452 Reported by Ben Pfaff <blp@cs.stanford.edu>.
32454 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
32456 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
32457 to define main with arguments, for C++. Reported by Eric Blake.
32458 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
32459 Prefer 'int main ()' to 'int main (void)', for C++.
32460 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
32461 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
32462 for 'main', for C99 and C++.
32464 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
32466 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
32467 Don't assume that exit status -1 is valid.
32468 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32469 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
32470 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32471 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
32472 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
32473 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
32474 not AC_TRY_RUN. Use return, not exit. Don't assume that
32475 functions can be used without declaring them, or that you can
32476 exit with status -1.
32477 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32479 2006-04-24 Karl Berry <karl@gnu.org>
32481 * config/srclist.txt (longdouble.m4): sync lost.
32483 2006-04-24 Eric Blake <ebb9@byu.net>
32485 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
32487 2006-04-24 Bruno Haible <bruno@clisp.org>
32489 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
32490 poll() implementation in AIX.
32491 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32493 2006-04-24 Bruno Haible <bruno@clisp.org>
32495 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
32496 assigned exactly once.
32498 2006-04-23 Claudio Fontana <claudio@gnu.org>
32499 Bruno Haible <bruno@clisp.org>
32501 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
32502 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
32505 2006-04-23 Bruno Haible <bruno@clisp.org>
32507 * modules/copy-file: Depend on unistd.
32508 * modules/execute: Likewise.
32509 * modules/fatal-signal: Likewise.
32510 * modules/findprog: Likewise.
32511 * modules/mkdtemp : Likewise.
32512 * modules/pipe: Likewise.
32513 * modules/wait-process: Likewise.
32515 2006-04-23 Bruno Haible <bruno@clisp.org>
32517 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
32518 condition was already detected.
32519 Reported by Ben Pfaff <blp@cs.stanford.edu>.
32521 2006-04-23 Bruno Haible <bruno@clisp.org>
32523 * lib/copy-file.c: Include <unistd.h> unconditionally.
32524 * lib/execute.c: Likewise.
32525 * lib/fatal-signal.c: Likewise.
32526 * lib/findprog.c: Likewise.
32527 * lib/mkdtemp.c: Likewise.
32528 * lib/pipe.h: Likewise.
32529 * lib/pipe.c: Likewise.
32530 * lib/wait-process.h: Likewise.
32532 2006-04-23 Bruno Haible <bruno@clisp.org>
32534 * gnulib-tool (func_usage): Fix --import description. Document
32536 (func_import): Create temporary file in a temporary directory, if
32537 --dry-run is specified. Silence errors from 'grep' when there are no
32538 m4 files in $m4dir.
32539 (func_create_testdir): Silence errors from 'grep' when there are no
32540 m4 files in $m4dir.
32541 Reported by Karl Berry <karl@freefriends.org>.
32543 2006-04-20 Bruno Haible <bruno@clisp.org>
32545 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
32546 one argument, so that the code will be portable to Autoconf 2.60.
32547 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
32548 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
32549 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
32551 2006-04-19 Derek Price <derek@ximbiot.com>
32552 Eric Blake <ebb9@byu.net>
32554 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
32555 rather than "/full/path.h". Update comment to match. Shorten &
32556 generalize m4_translit call via AS_TR_CPP.
32558 2006-04-19 Derek Price <derek@ximbiot.com>
32559 Eric Blake <ebb9@byu.net>
32561 * lib/inttypes.h: Correct grammar in comment.
32563 2006-04-18 Derek Price <derek@ximbiot.com>
32564 Paul Eggert <eggert@cs.ucla.edu>
32566 * modules/inttypes: New file.
32567 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
32569 2006-04-18 Derek Price <derek@ximbiot.com>
32570 Paul Eggert <eggert@cs.ucla.edu>
32572 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
32575 2006-04-18 Derek Price <derek@ximbiot.com>
32576 Paul Eggert <eggert@cs.ucla.edu>
32578 * lib/inttypes.h: New file.
32579 * lib/strtoimax.c: Assume <inttypes.h>.
32581 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
32583 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
32584 isn't mounted. Problem reported by Kir Kolyshkin.
32586 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
32588 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
32589 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
32591 * lib/regex.h (RE_DUP_MAX): Update comment to match current
32594 2006-04-12 Eric Blake <ebb9@byu.net>
32596 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
32597 is now done automatically by the corresponding Autoconf macro.
32599 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
32601 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
32604 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
32606 Merge regex changes from libc, removing some of our
32607 POSIX-conformance changes that were rejected and redoing them in a
32608 less-intrusive way.
32610 * lib/regcomp.c (re_compile_internal, init_dfa):
32611 Length arg is now size_t, not Idx. All uses changed.
32612 (peek_token): Forward decl now says internal_function.
32613 (__re_error_msgid, __re_error_msgid_idx):
32614 Now static rather than extern with attribute_hidden.
32615 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
32616 For some reason libc prefers K&R style defns for external functions.
32617 (regerror) [!defined _LIBC]: Likewise.
32618 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
32619 (seek_collating_symbol_entry, lookup_collation_sequence_value):
32620 (build_range_exp, build_collating_symbol):
32621 Use K&R-style defn.
32622 (re_compile_fastmap): Use '\0' to memset, not 0.
32623 (utf8_sb_map): Make the calculations more obvious.
32624 (init_dfa, parse_bracket_exp, build_charclass_op):
32625 Call calloc and cast result, as glibc does.
32626 (init_word_char, fetch_token, peek_token, peek_token_bracket):
32627 (build_range_exp, build_collating_symbol):
32628 Now internal functions.
32630 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
32632 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
32633 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
32634 Don't depend on VMS; depend on __VMS instead, for POSIX
32635 namespace cleanness.
32636 (regoff_t): Define to ssize_t, not long int.
32638 Remove the REG_ macros named below. Instead, make the old names
32639 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
32641 (REG_BACKSLASH_ESCAPE_IN_LISTS):
32642 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
32643 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
32644 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
32645 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
32646 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
32647 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
32648 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
32649 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
32650 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
32651 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
32652 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
32653 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
32654 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
32655 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
32656 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
32657 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
32659 Remove. All uses replaced by the old RE_* names.
32660 (RE_BACKSLASH_ESCAPE_IN_LISTS):
32661 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
32662 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
32663 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
32664 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
32665 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
32666 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
32667 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
32668 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
32669 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
32670 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
32671 Don't bother having these macros be independent of each others'
32672 values, since they no longer exist in the POSIX name space.
32674 Rename the following member names back to their old names,
32675 unless !__USE_GNU_REGEX. All uses changed back.
32676 (buffer): Renamed from re_buffer.
32677 (allocated): Renamed from re_allocated.
32678 (used): Renamed from re_used.
32679 (syntax): Renamed from re_syntax.
32680 (fastmap): Renamed from re_fastmap.
32681 (translate): Renamed from re_translate.
32682 (can_be_null): Renamed from re_can_be_null.
32683 (regs_allocated): Renamed from re_regs_allocated.
32684 (fastmap_accurate): Renamed from re_fastmap_accurate.
32685 (no_sub): Renamed from re_no_sub.
32686 (not_bol): Renamed from re_not_bol.
32687 (not_eol): Renamed from re_not_eol.
32688 (newline_anchor): Renamed from re_newline_anchor.
32689 (num_regs): Renamed from rm_num_regs.
32690 (start): Renamed from rm_start.
32691 (end): Renamed from rm_end.
32693 (free_state): Move up a bit.
32695 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
32696 #define to be empty.
32697 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
32698 when that is what is intended.
32699 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
32700 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
32702 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
32703 All uses changed back to re_malloc, etc. It's now the caller's
32704 responsibility to check for overflow; all callers changed.
32705 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
32706 (re_x2nrealloc): Remove.
32707 (free_state): Remove decl.
32709 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
32710 (re_set_registers, re_exec):
32711 Use K&R-style defn.
32713 2006-01-31 Roland McGrath <roland@redhat.com>
32715 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
32716 Reported by Mike Frysinger <vapier@gentoo.org>.
32718 2006-01-15 Andreas Jaeger <aj@suse.de>
32721 * lib/regex_internal.c (re_string_reconstruct): Adjust for
32722 build_wcs_upper_buffer change.
32723 (build_wcs_upper_buffer): Change return type.
32725 2005-12-10 Ulrich Drepper <drepper@redhat.com>
32727 * lib/regex_internal.h: Include <stdint.h> if available.
32729 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
32731 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
32733 2005-10-14 Ulrich Drepper <drepper@redhat.com>
32735 * lib/regcomp.c: Adjust for changed secondary hash function.
32737 2005-09-30 Ulrich Drepper <drepper@redhat.com>
32739 * lib/regex.h: Pretty printing.
32740 Clean up namespace a bit.
32742 2005-09-30 Jakub Jelinek <jakub@redhat.com>
32744 * lib/regexec.c (update_cur_sifted_state, check_arrival,
32745 check_arrival_add_next_nodes): Avoid using uninitialized variable.
32747 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
32748 Ulrich Drepper <drepper@redhat.com>
32751 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
32753 (bitset_word_t): Renamed from bitset_word. All uses changed.
32755 2005-09-22 Ulrich Drepper <drepper@redhat.com>
32758 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
32759 * lib/regcomp.c: Remove unnecessary uses of
32760 unsigned RE_TRANSLATE_TYPE.
32761 * lib/regex_internal.h: Likewise.
32762 * lib/regex_internal.c: Likewise.
32763 * lib/regexec.c: Likewise.
32764 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
32766 2005-09-07 Ulrich Drepper <drepper@redhat.com>
32768 * lib/regexec.c (find_recover_state): Remove unnecessary
32770 (transit_state_bkref): Make DFA a const pointer.
32771 (get_subexp): Likewise.
32772 (check_arrival): Likewise.
32773 (update_cur_sifted_state): Likewise.
32774 (re_search_internal): Likewise.
32775 (prune_impossible_nodes): Likewise.
32776 (acquire_init_state_context): Likewise.
32777 (proceed_next_node): Likewise.
32778 (set_regs): Likewise.
32779 (free_fail_stack_return): Likewise.
32780 (check_arrival_expand_ecl): Mark DFA parameter as const.
32781 (check_arrival_expand_ecl_sub): Likewise.
32782 (check_subexp_limits): Likewise.
32783 (sub_epsilon_src_nodes): Likewise.
32784 (add_epsilon_src_nodes): Likewise.
32785 (merge_state_array): Likewise.
32786 (update_regs): Likewise.
32787 (build_trtable): Likewise.
32788 (sift_states_backward): Mark MCTX parameter as const.
32789 (build_sifted_states): Likewise.
32790 (update_cur_sifted_state): Likewise.
32791 (sift_states_mkref): Likewise.
32792 (check_arrival_expand_ecl): Mark eclosure as const.
32793 (check_dst_limits_calc_pos_1): Likewise.
32794 * lib/regex_internal.h (re_match_context_t): Make dfa a const
32797 2005-09-06 Ulrich Drepper <drepper@redhat.com>
32799 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
32800 (transit_state_sb): Likewise.
32801 (transit_state_mb): Likewise.
32802 (sift_states_iter_mb): Likewise.
32803 (check_arrival_add_next_nodes): Likewise.
32804 (check_node_accept_bytes): Change first parameter to pointer-to-const.
32805 [_LIBC] (re_search_2_stub): Use mempcpy.
32807 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
32808 mbrtowc for very simple UTF-8 case.
32810 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
32811 a pointer-to-const.
32812 (re_acquire_state_context): Likewise.
32813 * lib/regex_internal.h: Adjust prototypes.
32815 * lib/regex.c: Prevent using C++ compilers.
32817 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
32818 (re_acquire_state_context): Likewise.
32820 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
32822 * modules/regex (Depends-on): Add ssize_t.
32824 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
32826 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
32829 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
32831 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
32833 2006-03-29 Mark D. Baushke <mdb@gnu.org>
32834 Bruno Haible <bruno@clisp.org>
32836 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
32837 <sys/types.h> and <inttypes.h>.
32839 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32841 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
32842 `__error_t_defined', so argp.h will not typedef the former.
32844 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
32846 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
32847 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
32848 glibc names. Even if glibc is changed to conform to POSIX, the
32849 traditional names will be available anyway, since regex depends on
32850 the extensions module. Also, fix a longstanding typo in the
32851 implementation of Spencer ERE test #75 from grep 2.3. Problems
32852 reported by Emanuele Giaquinta. Also, change sense of cached
32853 variable, so that the message makes sense.
32855 2006-03-24 Simon Josefsson <jas@extundo.com>
32857 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
32858 including some doc fixes.
32859 (base64_encode_alloc): Fix +1 bug on allocation failures.
32861 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32863 * lib/base64.c (base64_encode): Do not read past end of array with
32864 unsanitized input on systems with CHAR_BIT > 8.
32866 2006-03-24 Eric Blake <ebb9@byu.net>
32868 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
32870 2006-03-22 Karl Berry <karl@gnu.org>
32872 * config/srclist.txt (*setenv.[ch]): get from coreutils.
32873 * config/srclistvars.sh (COREUTILS): new var.
32875 2006-03-17 Jim Meyering <jim@meyering.net>
32877 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
32878 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
32880 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
32882 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
32883 no longer needs it. Instead, check that regoff_t is as least
32884 as wide as ptrdiff_t.
32886 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
32887 so that our regex.h stays compatible with the installed regex.
32888 This is helpful for installers who configure --without-included-regex.
32889 Problem reported by Emanuele Giaquinta.
32891 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
32893 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
32894 Typedef to long int, not to off_, as POSIX will likely change
32897 2006-03-15 Eric Blake <ebb9@byu.net>
32899 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
32901 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
32903 * lib/argp-help.c (validate_uparams): Fix typo
32904 * lib/argp-parse.c (argp_default_options): Consistently begin help
32905 messages with a lowercase letter.
32907 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
32909 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
32910 overrun buffers and shouldn't be used (much as gets shouldn't be
32912 * lib/time_r.c (asctime_r, ctime_r): Likewise.
32914 2006-03-08 Simon Josefsson <jas@extundo.com>
32916 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
32917 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32919 2006-03-08 Simon Josefsson <jas@extundo.com>
32921 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
32922 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32924 2006-03-08 Simon Josefsson <jas@extundo.com>
32926 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
32927 signal that configure disabled the device.
32929 2006-03-08 Simon Josefsson <jas@extundo.com>
32931 * build-aux/maint.mk: Fix refresh-po, to handle no translated
32934 2006-03-07 Simon Josefsson <jas@extundo.com>
32936 * modules/getopt (Depends-on): Add unistd.
32938 * modules/unistd: New file.
32940 2006-03-07 Simon Josefsson <jas@extundo.com>
32942 * modules/gc-random: New file.
32944 2006-03-07 Simon Josefsson <jas@extundo.com>
32946 * m4/unistd_h.m4: New file.
32948 2006-03-07 Simon Josefsson <jas@extundo.com>
32950 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
32951 test to be side-effect free by storing the result in the cache
32952 variable gl_cv_lib_readline, and moving the assignment of
32953 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
32954 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32956 2006-03-07 Simon Josefsson <jas@extundo.com>
32958 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
32959 error on missing devices (the functions will return an error).
32961 * m4/gc.m4: Move random stuff to gc-random.m4
32963 2006-03-07 Simon Josefsson <jas@extundo.com>
32965 * lib/unistd_.h: New file.
32967 2006-03-07 Simon Josefsson <jas@extundo.com>
32969 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
32971 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
32973 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
32974 Problem reported by Juan Manuel Guerrero.
32976 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
32978 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
32980 * lib/getlogin_r.c: Likewise.
32981 * lib/getlogin_r.h: Likewise.
32982 * lib/glob.c: Likewise.
32983 * lib/pagealign_alloc.c: Likewise.
32984 * lib/unistd_.h: Remove; no longer needed.
32986 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
32988 * MODULES.html.sh (Support for systems lacking POSIX:2001):
32990 * modules/c-stack (Depends-on): Add unistd.
32991 * modules/getlogin_r: Likewise.
32992 * modules/glob: Likewise.
32993 * modules/pagealign_alloc: Likewise.
32994 * modules/unistd (Files): Remove lib/unistd_.h.
32995 (EXTRA_DIST): Remove.
32996 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
32998 (MOSTLYCLEANFILES): Remove unistd.h-t.
33000 2006-03-03 Simon Josefsson <jas@extundo.com>
33002 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
33004 2006-03-03 Simon Josefsson <jas@extundo.com>
33006 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
33009 2006-03-03 Simon Josefsson <jas@extundo.com>
33011 * build-aux/maint.mk: Add indent target.
33013 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
33015 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
33016 our replacement poll.h in any case, to avoid a differing
33017 declaration from a system header. Seen on AIX.
33019 2006-03-01 Simon Josefsson <jas@extundo.com>
33021 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
33024 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
33026 * modules/gettime (Depends-on): Add extensions module.
33027 * modules/nanosleep (Depends-on): Likewise.
33028 * modules/settime (Depends-on): Likewise.
33030 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
33032 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
33033 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
33035 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33036 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
33038 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
33039 not "==". Reported by Ralf Wildenhues.
33041 2006-03-01 Karl Berry <karl@gnu.org>
33043 * doc/Copyright/request-*: new files, synced from gnuorg.
33045 2006-03-01 Karl Berry <karl@gnu.org>
33047 * config/srclist.txt (Copyright/*): new entries.
33049 2006-02-28 Simon Josefsson <jas@extundo.com>
33051 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
33053 2006-02-27 Simon Josefsson <jas@extundo.com>
33055 * lib/base64.h: Indent #define's. From Jim Meyering
33056 <jim@meyering.net>.
33058 2006-02-27 Jim Meyering <jim@meyering.net>
33060 Revert the change of 2006-02-24, so these files can continue
33061 to be sync'd from gettext.
33062 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
33065 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
33067 * modules/intprops: New file.
33068 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
33070 * modules/getloadavg (Files): Remove lib/intprops.h.
33071 (Depends-on): Add intprops.
33072 * modules/human: Likewise.
33073 * modules/inttostr: Likewise.
33074 * modules/openat: Likewise.
33075 * modules/sig2str: Likewise.
33076 * modules/userspec: Likewise.
33077 * modules/utimecmp: Likewise.
33078 * modules/xnanosleep: Likewise.
33079 * modules/xstrtol: Likewise.
33081 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
33083 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
33084 * modules/lock-tests (TESTS): Use $(EXEEXT).
33085 * modules/tls-tests: Likewise.
33086 * modules/argp-tests: Likewise.
33087 (check_PROGRAMS): New var, replacing...
33088 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
33090 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33092 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
33095 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
33097 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
33099 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33101 Sync from coreutils.
33102 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
33105 2006-02-22 Jim Meyering <jim@meyering.net>
33107 Sync from coreutils.
33108 * m4/chdir-safer.m4: New file.
33110 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
33112 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
33113 AT_FDCWD exceeds INT_MAX.
33114 * lib/openat.h (AT_FDCWD): Likewise.
33116 2006-02-17 Eric Blake <address@hidden>
33118 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
33120 2006-02-16 Simon Josefsson <jas@extundo.com>
33122 * modules/getaddrinfo (Depends-on): Add sys_socket.
33124 2006-02-15 Simon Josefsson <jas@extundo.com>
33126 * build-aux/maint.mk: Add dsyntax-check rule.
33128 2006-02-15 Eric Blake <ebb9@byu.net>
33130 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
33131 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
33132 'present but cannot compile' warnings on cygwin.
33133 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
33134 use ws2tcpip.h if sys/socket.h works.
33135 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
33136 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
33138 2006-02-14 Simon Josefsson <jas@extundo.com>
33140 * modules/maintainer-makefile (Files): Rename.
33142 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
33143 and (the local) Makefile.cfg to maint-cfg.mk.
33145 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
33148 * modules/maintainer-makefile: New module.
33150 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
33151 severaly stripped to make it possible to build it up from scratch
33152 with reliable tests.
33154 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
33155 fixes to permit overriding the default actions when configure and
33156 makefile are not available.
33158 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
33160 Sync from coreutils.
33161 * modules/lstat (Depends-on): Don't depend on xalloc.
33162 (License): Change from GPL to LGPL, since this is now simply a
33163 replacement for a libc function.
33165 2006-02-14 Jim Meyering <jim@meyering.net>
33167 Sync from coreutils.
33169 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
33170 failure on deficient systems, and simplify gnulib lgpl dependencies.
33171 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
33172 xmalloc/lstat combination. Based on a patch from Bruno Haible.
33174 * lib/xalloc-die.c: Remove unused definition of N_.
33176 2006-02-14 Jim Meyering <jim@meyering.net>
33178 Sync from coreutils.
33179 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
33180 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
33181 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
33182 double-quote uses of that variable, to accommodate the rare case in
33183 which getmntent is available in none of the libraries checked. This
33184 happens at least on FreeBSD 5.0.
33186 2006-02-13 Simon Josefsson <jas@extundo.com>
33188 * gnulib-tool (Usage): Fix --import, from
33189 karl@freefriends.org (Karl Berry).
33191 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
33193 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
33195 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
33197 * lib/argp-namefrob.h: Restore changes accidentally lost during the
33198 "autoupdate" on 2005-12-12.
33200 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
33202 * modules/closeout (Depends-on): Remove atexit.
33204 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
33206 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
33207 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
33209 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
33211 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
33212 __EXTENSIONS__ if this causes compilation to fail. Problem
33213 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
33214 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
33216 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
33218 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
33219 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
33220 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
33223 2006-01-26 Simon Josefsson <jas@extundo.com>
33225 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
33226 prototype is visible on mingw32.
33228 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
33231 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
33234 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
33236 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
33237 attempt to open for write; this always fails, at least on POSIX
33238 hosts. This reinstates the 2006-01-09 change, which was
33239 inadvertently removed.
33241 2006-01-26 Bruno Haible <bruno@clisp.org>
33243 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
33244 Reported by Paul Eggert.
33246 2006-01-26 Bruno Haible <bruno@clisp.org>
33247 Paul Eggert <eggert@cs.ucla.edu>
33249 * lib/stdbool_.h (_Bool)
33250 [(! (defined __cplusplus || defined __BEOS__)
33251 && !defined __GNUC__
33252 && !(defined __HP_cc || defined __xlc__
33253 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
33254 || defined __sgi))]:
33255 #define to signed char in these cases too; this simplifies
33256 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
33257 etc., separately) and makes it more conservative.
33259 2006-01-25 Simon Josefsson <jas@extundo.com>
33261 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
33262 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
33263 ws2tcpip.h with WINVER=0x0501. All for mingw32.
33265 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
33267 * lib/argp-namefrob.h: Bugfix. Remove stray #
33269 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
33271 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
33272 so that we test the test.
33273 Check for yet another HP-UX cc bug involving *bool |= bool.
33275 2006-01-25 Karl Berry <karl@gnu.org>
33277 * config/srclist.txt (vasnprintf.c): sync lost.
33279 2006-01-25 Jim Meyering <jim@meyering.net>
33281 Sync from the stable (b5) branch of coreutils:
33283 * lib/fts.c (fts_children): Don't let close() clobber errno from
33286 * lib/fts.c (fts_stat): When following a symlink-to-directory,
33287 don't necessarily interpret stat-fails+lstat-succeeds as indicating
33288 a dangling symlink. That can also happen at least for ELOOP.
33289 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
33290 FYI, this bug predates the inclusion of fts.c in coreutils.
33292 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
33293 in their own block, so pre-c99 compilers don't object.
33295 Avoid the double-free (first in fts_read, second in fts_close) that
33296 would occur when an `active' directory is made inaccessible (e.g.,
33297 via chmod a-x) during a traversal.
33298 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
33299 before returning. Reproduce this failure by
33300 mkdir -p a/b; cd a; chmod a-x . b
33301 Reported by Stavros Passas.
33303 2006-01-25 Jim Meyering <jim@meyering.net>
33305 * lib/fileblocks.c: Remove more useless parentheses.
33306 * lib/readutmp.h: Likewise.
33308 2006-01-25 Bruno Haible <bruno@clisp.org>
33310 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
33312 Reported by Paul Eggert.
33314 2006-01-25 Bruno Haible <bruno@clisp.org>
33316 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
33317 rid of a trap command. For Solaris sh.
33318 Reported by Mark D. Baushke <mdb@gnu.org>.
33320 2006-01-24 Simon Josefsson <jas@extundo.com>
33322 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
33325 2006-01-24 Karl Berry <karl@gnu.org>
33327 * config/srclist.txt (argp-namefrob.h): sync lost.
33329 2006-01-24 Jim Meyering <jim@meyering.net>
33331 * modules/openat (Files): Add lib/intprops.h.
33332 From Mark D. Baushke.
33334 2006-01-24 Jim Meyering <jim@meyering.net>
33336 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
33337 Reported by Mark D. Baushke.
33339 2006-01-24 Jim Meyering <jim@meyering.net>
33341 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
33343 2006-01-24 Bruno Haible <bruno@clisp.org>
33345 * modules/strnlen (Maintainer): Change from glibc to all.
33347 2006-01-24 Bruno Haible <bruno@clisp.org>
33349 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
33350 Patch by Paul Eggert.
33352 2006-01-24 Bruno Haible <bruno@clisp.org>
33354 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
33356 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
33359 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
33360 'signed char' to avoid problems with the built-in _Bool type.
33361 Reported by Paul Eggert on 2005-11-26.
33363 2006-01-24 Bruno Haible <bruno@clisp.org>
33365 * gnulib-tool (func_import): Avoid constructing complicated sed
33366 expressions inside backquote.
33367 Report and solution by Mark D. Baushke <mdb@gnu.org>.
33369 2006-01-23 Ulrich Drepper <drepper@redhat.com>
33371 These changes imported from libc.
33372 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
33373 test and two separate function calls.
33374 * lib/strndup.c (__strndup): Add libc_hidden_def.
33376 2006-01-23 Simon Josefsson <jas@extundo.com>
33378 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
33379 Remove the test_*_SOURCES variable: automake infers it by default.
33380 * modules/tls-tests: Likewise.
33382 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
33384 Work around porting bugs reported by Dieter in
33385 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
33386 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
33387 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
33388 Include "getopt.h" first, to check interface.
33389 (getenv): Declare only if defined HAVE_DECL_GETENV &&
33391 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
33392 (__strndup): Revert to K&R-style function dfns, the glibc style.
33393 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
33394 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
33395 Include strnlen.h first, to get prototype properly.
33396 (strnlen): Renamed from __strnlen.
33399 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
33401 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
33403 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
33405 * config/srclist.txt: Adjust to reflect glibc reorganization.
33406 This affects only comments.
33408 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
33410 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
33411 Reported by Bruce Korb <bkorb@gnu.org>.
33413 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
33415 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
33416 to pacify gcc -Wswitch-default.
33418 2006-01-22 Bruno Haible <bruno@clisp.org>
33420 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
33421 temporary buffer for sprintf, take into account the precision also
33422 for 'd', 'i', 'u', 'o', 'x', 'X'.
33424 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
33426 * modules/argp-tests: New module
33427 * tests/test-argp.c: New file
33428 * tests/test-argp-2.sh: New file
33430 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
33432 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
33433 (__argp_base_name): Removed
33434 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
33436 (__argp_base_name): Provide macro definition or extern declaration
33437 depending on the configuration
33439 2006-01-20 Simon Josefsson <jas@extundo.com>
33441 * modules/inet_ntop (Depends-on): Depend on sys_socket.
33443 2006-01-20 Simon Josefsson <jas@extundo.com>
33445 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
33447 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
33449 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
33450 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
33451 Suggested by Bruno Haible.
33453 2006-01-20 Karl Berry <karl@gnu.org>
33455 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
33456 until changes propagate, I guess.
33458 2006-01-19 Simon Josefsson <jas@extundo.com>
33460 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
33462 2006-01-19 Simon Josefsson <jas@extundo.com>
33464 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
33466 2006-01-19 Simon Josefsson <jas@extundo.com>
33468 * gnulib-tool: Set check_PROGRAMS.
33470 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
33471 modules/des-tests, modules/gc-arcfour-tests,
33472 modules/gc-arctwo-tests, modules/gc-des-tests,
33473 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
33474 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
33475 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
33476 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
33477 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
33478 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
33479 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
33482 2006-01-18 Simon Josefsson <jas@extundo.com>
33484 * modules/socklen (Depends-on): Depend on sys_socket.
33486 2006-01-18 Simon Josefsson <jas@extundo.com>
33488 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
33489 modules/des-tests, modules/gc-arcfour-tests,
33490 modules/gc-arctwo-tests, modules/gc-des-tests,
33491 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
33492 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
33493 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
33494 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
33495 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
33496 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
33497 $(EXEEXT) to automake TESTS variable, for mingw32.
33499 2006-01-17 Simon Josefsson <jas@extundo.com>
33501 * modules/socklen (Include): Need sys/socket.h.
33503 2006-01-17 Bruno Haible <bruno@clisp.org>
33505 * modules/ssize_t (Include): Add <sys/types.h>.
33507 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
33509 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
33510 it's not portable and it doesn't work with cross-compiles.
33511 Problem reported by Bruno Haible. Fix missing-$ typo in
33512 'test "gl_cv_ignore_unused_libraries" ...' that prevented
33513 -zignore from being used with Sun's C compiler.
33515 2006-01-12 Simon Josefsson <jas@extundo.com>
33517 * lib/base64.c: Fix warning, reported by Bruno Haible
33518 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
33520 2006-01-12 Bruno Haible <bruno@clisp.org>
33522 * modules/ldd: New file.
33523 * build-aux/ldd.sh.in: New file.
33524 * MODULES.html.sh (Support for building libraries and executables): Add
33527 2006-01-12 Bruno Haible <bruno@clisp.org>
33529 * m4/ldd.m4: New file.
33531 2006-01-12 Bruno Haible <bruno@clisp.org>
33533 * gnulib-tool (func_import, func_create_testdir): Don't go into an
33534 endless loop while replacing $auxdir with build-aux.
33536 2006-01-11 Simon Josefsson <jas@extundo.com>
33538 * lib/stdint_.h (SIZE_MAX): Add missing (.
33540 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
33542 Sync from coreutils.
33543 * lib/md5.c: Fix commentary typos.
33544 (alignof, UNALIGNED_P): No need for a GCC-specific version.
33545 * lib/md5.h (__attribute__): Remove; unused.
33546 * lib/sha1.c: Fix commentary to match md5 better.
33547 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
33548 so that we don't need to worry about alignment. All uses changed.
33549 This merges the 2005-10-28 md5 change into sha1.
33551 2006-01-11 Jim Meyering <jim@meyering.net>
33553 Sync from coreutils.
33554 * lib/md5.c (OP): Fix spacing.
33556 2006-01-11 Bruno Haible <bruno@clisp.org>
33558 Ensure automatic ordering between gl_LOCK and gl_ARGP.
33559 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
33560 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
33562 2006-01-11 Bruno Haible <bruno@clisp.org>
33564 Ensure automatic ordering between gl_LOCK and gl_ARGP.
33565 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
33566 the "early" section as well.
33568 2006-01-11 Bruno Haible <bruno@clisp.org>
33570 Avoid "ar: no archive members specified" error on MacOS X.
33571 * gnulib-tool (func_modules_add_dummy): New function.
33572 (func_import, func_create_testdir): Invoke it.
33574 2006-01-11 Bruno Haible <bruno@clisp.org>
33576 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
33577 with $auxdir in AC_CONFIG_FILES statements.
33579 2006-01-11 Bruno Haible <bruno@clisp.org>
33581 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33582 Initialize also noinst_HEADERS to empty.
33584 2006-01-11 Bruno Haible <bruno@clisp.org>
33586 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
33588 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
33591 2006-01-11 Bruno Haible <bruno@clisp.org>
33593 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
33594 overridable by the user.
33595 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33597 2006-01-10 Simon Josefsson <jas@extundo.com>
33599 * modules/sys_socket: New file.
33601 2006-01-10 Simon Josefsson <jas@extundo.com>
33603 * m4/sys_socket_h.m4: New file.
33605 2006-01-10 Simon Josefsson <jas@extundo.com>
33607 * lib/socket_.h: New file.
33609 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
33611 * modules/readutmp (Maintainer): Add myself.
33613 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
33615 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
33616 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
33617 People who are still concerned with buggy memcmp implementations
33618 can invoke gl_FUNC_MEMCMP themselves.
33620 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
33622 * lib/regex_internal.h (BITSET_WORD_BITS):
33623 Work around a bug in 64-bit PGC (before version 6.1-2), where the
33624 preprocessor mishandles large unsigned values as if they were signed.
33625 Problem reported by Claudio Fontana in
33626 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
33628 2006-01-10 Jim Meyering <jim@meyering.net>
33630 Avoid the double-free (first in fts_read, second in fts_close) that
33631 would occur when an `active' directory is made inaccessible (e.g.,
33632 via chmod a-x) during a traversal.
33633 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
33634 before returning. Reproduce this failure by
33635 mkdir -p a/b; cd a; chmod a-x . b
33636 Reported by Stavros Passas.
33638 Sync from coreutils.
33639 * lib/sha1.c: Tweak grammar in a comment.
33641 2006-01-10 Jim Meyering <jim@meyering.net>
33643 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
33644 Patch by Joerg Sonnenberger.
33646 2006-01-10 Bruno Haible <bruno@clisp.org>
33648 * modules/readutmp: Depend on module free.
33649 * modules/strtok_r: Depend on module restrict.
33651 2006-01-10 Bruno Haible <bruno@clisp.org>
33653 * modules/gettext (configure.ac): Add an invocation of
33654 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
33656 2006-01-10 Bruno Haible <bruno@clisp.org>
33658 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
33659 Reported by Werner Lemberg <wl@gnu.org>.
33661 2006-01-10 Bruno Haible <bruno@clisp.org>
33663 * lib/localcharset.c: Update from GNU gettext.
33665 2006-01-10 Bruno Haible <bruno@clisp.org>
33667 * lib/argp.h (__const): Remove macro. Use const instead.
33668 * lib/argp-fmtstream.h (__const): Likewise.
33669 * lib/glob_.h (__const): Remove macro.
33670 * lib/glob-libc.h: Use const instead of __const.
33672 2006-01-10 Bruno Haible <bruno@clisp.org>
33674 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
33676 Needed to avoid an automake error regarding the 'gettext' module.
33678 2006-01-09 Simon Josefsson <jas@extundo.com>
33680 * modules/inet_ntop (Depends-on): Add restrict.
33682 2006-01-09 Simon Josefsson <jas@extundo.com>
33684 * modules/gc-rijndael-tests (License): Put under LGPL.
33686 * modules/gc-des-tests (License): Likewise.
33688 * modules/gc-arcfour-tests (License): Likewise.
33690 * modules/gc-arctwo-tests (License): Likewise.
33692 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
33694 * modules/gc-hmac-sha1-tests (Files): Likewise.
33696 * modules/gc-hmac-md5-tests (License): Likewise.
33698 * modules/gc-sha1-tests (License): Likewise.
33700 * modules/gc-md5-tests (License): Likewise.
33702 * modules/gc-md4-tests (License): Likewise.
33704 * modules/gc-md2-tests (License): Likewise.
33706 * modules/gc-tests (License): Likewise.
33708 * modules/des-tests (License): Likewise.
33710 * modules/md4-tests (License): Likewise.
33712 * modules/md2-tests (License): Likewise.
33714 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
33716 Sync from coreutils:
33718 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
33719 * modules/lib-ignore: New file.
33720 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
33721 chdir-safer.m4, lchmod.m4.
33722 * modules/openat: Add mkdirat.c, openat-priv.h.
33724 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
33726 Sync from coreutils.
33727 * m4/lib-ignore.m4: New file.
33728 * m4/lchmod.m4: New file.
33730 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
33732 Sync from coreutils.
33733 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
33734 for write access: POSIX says that must fail.
33735 * lib/fts.c (diropen): Likewise.
33736 * lib/save-cwd.c (save_cwd): Likewise.
33737 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
33738 well, for minor improvements on hosts that lack O_DIRECTORY.
33739 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
33740 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
33741 Fall back on chown if open failed with EACCES.
33743 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
33744 Report an error at compile-time if only a 1-second nominal clock
33745 resolution is found.
33747 * lib/lchmod.h: New file.
33748 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
33749 (make_dir_parents): Use lchown rather than chown, and
33750 lchmod rather than chmod.
33752 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
33753 dummies too. Problem with "none" reported by Bob Proulx. Problem with
33754 "proc" reported by n0dalus.
33756 * lib/mountlist.c: Include <limits.h>.
33757 (dev_from_mount_options)
33758 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
33759 New function. It no longer assumes "dev=" has the System V meaning
33760 on Linux (since it doesn't). It also parses "dev=" more carefully.
33761 (read_file_system_list)
33762 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
33763 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
33766 * lib/posixtm.h (PDS_PRE_2000): New macro.
33767 * lib/posixtm.c (year): Arg is now syntax_bits rather than
33768 allow_century. All usages changed. Reject dates outside the range
33769 1969-1999 if PDS_PRE_2000 is used.
33771 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
33773 Sync from coreutils.
33774 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
33775 (Time of day items): Mention the possibility of leap seconds.
33776 Problem reported by Dr. David Alan Gilbert.
33778 2006-01-09 Jim Meyering <jim@meyering.net>
33780 Sync from coreutils.
33782 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
33784 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
33786 * lib/modechange.c (mode_compile): Reject an invalid mode string
33787 that starts with an octal digit. From Andreas Gruenbacher.
33789 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
33790 and dup to open_safer and dup_safer, respectively.
33791 (openat_permissive): Fix typo in comment.
33793 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
33794 "gettext.h"; either no longer needed or are guaranteed by openat.h.
33795 (_): Remove; no longer needed.
33796 (openat): Renamed from rpl_openat; no need for rpl_openat
33797 since openat.h renames openat for us.
33798 Replace most of the body with a call to openat_permissive,
33799 to avoid duplicate code.
33800 Port to (probably hypothetical) environments were mode_t is
33802 (openat_permissive): Require mode arg, so that we can check
33803 types better. Put it just after flags. Change cwd failure
33804 indicator from pointer-to-bool to pointer-to-errno-value.
33805 All callers changed.
33806 Invoke openat_save_fail and/or openat_restore_fail if
33807 cwd_errno is null, so that openat can call us.
33808 (openat_permissive, fdopendir, fstatat, unlinkat):
33809 Simplify errno handling to avoid some duplicate code,
33810 as it's OK to set errno on success.
33811 * lib/openat.h: Revamp code so that function macros depend on
33812 __OPENAT_PREFIX only, not also on AT_FDCWD.
33813 (openat_ro): Remove. Caller changed to use openat_permissive.
33814 (openat_permissive): Now a macro, if not a function.
33815 (openat_restore_fail, openat_save_fail): Now always functions,
33816 since mkdirat needs them even if __OPENAT_PREFIX is defined.
33818 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
33820 * lib/mkdirat.c: Include openat-priv.h.
33821 Remove definitions of macros defined therein.
33822 * lib/openat.c: Likewise.
33824 * lib/mkdirat.c (mkdirat): New file and function.
33825 * lib/openat.h (mkdirat): Declare.
33827 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
33829 * lib/openat.h (openat_permissive): Declare.
33830 (openat_ro): Define.
33832 * lib/openat.c (EXPECTED_ERRNO): New macro.
33833 (openat_permissive): New function -- used in remove.c rewrite.
33834 (all functions): Set errno just before returning, only if there
33835 was an actual failure.
33836 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
33838 Emulate openat-family functions using Linux's procfs, if possible.
33839 Idea and some code based on Ulrich Drepper's glibc changes.
33841 * lib/openat.c: (BUILD_PROC_NAME): New macro.
33842 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
33843 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
33844 before falling back on save_cwd and restore_cwd.
33845 (fdopendir, fstatat, unlinkat): Likewise.
33847 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
33848 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
33850 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
33851 as second argument to va_arg. Otherwise, some versions of gcc
33852 warn that `if this code is reached, the program will abort'.
33854 2006-01-09 Jim Meyering <jim@meyering.net>
33856 Sync from coreutils.
33857 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
33858 Require openat-priv.h.
33860 2006-01-09 Bruno Haible <bruno@clisp.org>
33862 * modules/strnlen (Include): Use strnlen.h.
33864 2006-01-09 Bruno Haible <bruno@clisp.org>
33866 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
33868 2006-01-09 Bruno Haible <bruno@clisp.org>
33870 * lib/sysexit_.h (EX_OK): New macro.
33871 Suggested by Martin Lambers <marlam@marlam.de>.
33873 2006-01-09 Bruno Haible <bruno@clisp.org>
33875 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
33876 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
33878 2006-01-09 Bruno Haible <bruno@clisp.org>
33880 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
33883 2006-01-09 Bruno Haible <bruno@clisp.org>
33885 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
33886 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
33887 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
33888 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
33890 2006-01-09 Bruno Haible <bruno@clisp.org>
33892 * build-aux/javacomp.sh.in: New file, moved from lib/.
33893 * modules/javacomp-script (Files): Update.
33894 (configure.ac): Add AC_CONFIG_FILES invocation.
33895 (EXTRA_DIST): Remove variable.
33897 * build-aux/javaexec.sh.in: New file, moved from lib/.
33898 * modules/javaexec (Files): Update.
33899 (configure.ac): Add AC_CONFIG_FILES invocation.
33900 (EXTRA_DIST): Remove javaexec.sh.in.
33902 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
33903 * modules/csharpcomp-script (Files): Update.
33904 (configure.ac): Add AC_CONFIG_FILES invocation.
33905 (EXTRA_DIST): Remove variable.
33907 * build-aux/csharpexec.sh.in: New file, moved from lib/.
33908 * modules/csharpexec (Files): Update.
33909 (configure.ac): Add AC_CONFIG_FILES invocation.
33910 (EXTRA_DIST): Remove csharpexec.sh.in.
33912 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
33914 Sync from coreutils.
33916 Add POSIX ACL support
33917 * lib/acl.h (copy_acl, set_acl): Add declarations.
33918 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
33919 systems other than Linux.
33920 (chmod_or_fchmod): New function: use fchmod when possible,
33921 and chmod otherwise.
33922 (file_has_acl): Add a POSIX ACL implementation, with a
33923 Linux-specific subcase.
33924 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
33925 S_ISVTX from one file to another. Fall back to fchmod/chmod when
33926 acls are unsupported.
33927 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
33928 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
33931 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
33933 Sync from coreutils.
33934 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
33936 2006-01-07 Bruno Haible <bruno@clisp.org>
33938 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
33941 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
33943 * lib/strftime.c (tzname): Don't declare if it is already #defined.
33944 Problem reported for Mingw by Mark Junker.
33946 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
33948 * README: Gnulib normally doesn't generate a tarball.
33950 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
33952 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
33953 long int, not int, for nanosecond counts, so that people who are
33954 used to POSIX struct timespec won't be surprised. Reported by Jim
33957 2005-12-28 Bruno Haible <bruno@clisp.org>
33959 * build-aux/config.rpath: Update from GNU gettext.
33961 2005-12-16 Jim Meyering <jim@meyering.net>
33963 * modules/fprintftime: New module.
33964 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
33966 2005-12-16 Jim Meyering <jim@meyering.net>
33968 * m4/fprintftime.m4: New file.
33970 2005-12-16 Jim Meyering <jim@meyering.net>
33972 * lib/fprintftime.c, lib/fprintftime.h: New files.
33974 2005-12-15 Simon Josefsson <jas@extundo.com>
33976 * modules/socklen (configure.ac): Fix M4 macro name, to align with
33979 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
33981 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
33982 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
33984 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
33986 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
33987 * lib/argp-help.c (fill_in_uparams): Check if the constructed
33988 struct uparams is valid. Fall back to the default values if it is
33991 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
33993 * modules/argp (Files): Add argp-pin.c
33994 (Depends-on): dirname
33995 (lib_SOURCES): Add argp-pin.c
33997 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
33999 * m4/argp.m4: Check if program_invocation_name and
34000 program_invocation_short_name are declared and define appropriate
34001 macros if they are not.
34003 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
34005 * lib/argp-help.c (__argp_base_name): New function
34006 (__argp_short_program_name): Rewrite using __argp_base_name
34007 * lib/argp-namefrob.h: Define program_invocation_name and
34008 program_invocation_short_name if requested
34009 (__argp_base_name): Add prototype
34010 * lib/argp-parse.c (argp_def): Use gettext wrappers
34011 (argp_default_parser): Use __argp_base_name
34012 * lib/argp-pin.c: New file. Defines program_invocation_name and
34013 program_invocation_short_name on systems that lack them.
34015 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
34017 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
34018 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
34019 porting problem reported by Georg Schwarz in
34020 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
34022 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
34024 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
34025 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
34026 porting problem reported by Georg Schwarz in
34027 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
34029 2005-12-05 Bruno Haible <bruno@clisp.org>
34031 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
34032 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
34033 Reported by Mark Junker <mjscod@gmx.de>.
34035 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
34037 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
34038 Use implementation from Albert Chin, with some
34039 comments/corrections by Stepan Kasal and myself.
34041 2005-12-02 Bruno Haible <bruno@clisp.org>
34043 * gnulib-tool (func_import): Accept GPLed build tool modules when
34045 * modules/csharpcomp-script: New file.
34046 * modules/csharpcomp: Depend on it.
34047 * modules/javacomp-script: New file.
34048 * modules/javacomp: Depend on it.
34049 Suggested by Simon Josefsson.
34051 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
34053 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
34054 statement, to work around an HP-UX 10.20 compiler bug reported by
34057 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
34059 * modules/savedir (Depends-on): Add openat.
34061 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
34063 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
34064 (uintmax_t) [defined uintmax_t]: Do not declare.
34065 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
34066 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
34067 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
34068 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
34069 sake of portability to weird hosts that C allows (though we don't
34070 know of any practical examples).
34072 * lib/savedir.h (fdsavedir): New decl.
34073 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
34074 contains most of the former guts of savedir.
34075 (savedir): Use savedirstream.
34076 Include "openat.h".
34078 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
34080 * modules/obstack (Files): Add m4/ulonglong.m4.
34081 Problem reported by Davide Angelocola.
34083 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
34085 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
34086 coreutils no longer futzes with rounding modes.
34088 2005-11-14 Jim Meyering <jim@meyering.net>
34090 * lib/mkstemp-safer.c: Include <config.h>, required for possible
34091 replacement of mkstemp.
34093 2005-11-10 Simon Josefsson <jas@extundo.com>
34095 * lib/readline.c: Remove EOL.
34097 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
34099 * modules/gethrxtime (Depends-on): Add gettime.
34101 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
34103 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
34104 or gettimeofday; no longer needed.
34106 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
34108 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
34110 (gethrxtime) [! (HAVE_NANOUPTIME
34111 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
34112 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
34113 our own approximation.
34115 2005-11-08 Eric Blake <ebb9@byu.net>
34117 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
34119 2005-11-08 Eric Blake <ebb9@byu.net>
34121 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
34123 2005-11-04 Bruno Haible <bruno@clisp.org>
34125 * gnulib-tool: Implement --update mode.
34127 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
34129 Fix porting problem reported by Theodoros V. Kalamatianos.
34130 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
34131 Don't assume that futimes failing means we must fail.
34133 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
34135 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
34136 variables to suggest the intended function of the PATH_MAX check.
34138 2005-10-30 Kean Johnston <jkj@sco.com>
34140 Trivial changes to support SCO systems.
34141 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
34143 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
34144 where __ptr is null when no I/O is pending.
34146 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
34148 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
34149 leave errno alone. Problem reported by Dmitry V. Levin.
34151 2005-10-28 Simon Josefsson <jas@extundo.com>
34153 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
34156 * tests/test-gc-md2.c, tests/test-md2.c: New files.
34158 * modules/md2, modules/md2-tests: New files.
34160 2005-10-28 Simon Josefsson <jas@extundo.com>
34162 * m4/inet_ntop.m4: More tests.
34164 * m4/gc-md2.m4, md2.m4: New file.
34166 2005-10-28 Simon Josefsson <jas@extundo.com>
34168 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
34169 "restrict" keywords, as per POSIX. Protect the function
34170 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
34171 Don't use K&R prototypes. Check the sprintf return values.
34172 Re-define EAFNOSUPPORT if not present. Indent.
34174 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
34175 suggested by Bruno Haible <bruno@clisp.org>.
34177 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
34179 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
34181 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
34184 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
34186 * lib/md2.h, lib/md2.c: New files.
34188 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
34190 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
34191 errno alone. Problem reported by Frederic Jolliton.
34193 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
34195 * modules/verify (License): Change from GPL to LGPL. This is a
34196 tiny module and there are apparently near-equivalents that are
34197 under the BSD license.
34199 2005-10-24 Simon Josefsson <jas@extundo.com>
34201 * modules/sha1: Relicense to LGPL.
34203 2005-10-24 Simon Josefsson <jas@extundo.com>
34205 * lib/md4.h: Shrink buffer size, now that we changed the type.
34207 2005-10-23 Simon Josefsson <jas@extundo.com>
34209 * gnulib-tool (func_import): Fix --tests-base.
34211 2005-10-22 Simon Josefsson <jas@extundo.com>
34213 * modules/arcfour (Depends-on): Need stdint.
34215 2005-10-22 Simon Josefsson <jas@extundo.com>
34217 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
34218 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
34220 2005-10-22 Simon Josefsson <jas@extundo.com>
34222 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
34223 suggested by Bruno Haible <bruno@clisp.org>.
34225 2005-10-22 Simon Josefsson <jas@extundo.com>
34227 * lib/crc.h: Include stddef.h, for size_t.
34229 2005-10-22 Simon Josefsson <jas@extundo.com>
34231 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
34232 arcfour_context struct (simplify test vector testing in GNU
34235 2005-10-21 Simon Josefsson <jas@extundo.com>
34237 * modules/des, modules/des-tests: New files.
34239 * modules/gc-des, modules/gc-des-tests: New files.
34241 * tests/test-des.c, tests/test-gc-des.c: New file.
34243 2005-10-21 Simon Josefsson <jas@extundo.com>
34245 * modules/arctwo, modules/arctwo-tests: New files.
34247 * tests/test-arctwo.c: New file.
34249 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
34251 * tests/test-gc-arctwo.c: New file.
34253 2005-10-21 Simon Josefsson <jas@extundo.com>
34255 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
34256 Bruno Haible <bruno@clisp.org>.
34258 * m4/gc-des.m4: New file.
34260 2005-10-21 Simon Josefsson <jas@extundo.com>
34262 * m4/arctwo.m4: New file.
34264 * m4/gc-arctwo.m4: New file.
34266 2005-10-21 Simon Josefsson <jas@extundo.com>
34268 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
34271 2005-10-21 Simon Josefsson <jas@extundo.com>
34273 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
34276 * lib/hmac-sha1.c (hmac_sha1): Likewise.
34278 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
34279 Bruno Haible <bruno@clisp.org>.
34281 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
34284 2005-10-21 Simon Josefsson <jas@extundo.com>
34286 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
34288 2005-10-21 Simon Josefsson <jas@extundo.com>
34290 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
34292 2005-10-21 Simon Josefsson <jas@extundo.com>
34294 * lib/des.h, lib/des.c: New files.
34296 * lib/gc-gnulib.c: Support DES.c
34298 2005-10-21 Simon Josefsson <jas@extundo.com>
34300 * lib/arctwo.h, lib/arctwo.c: New files.
34302 * lib/gc-gnulib.c: Support ARCTWO.
34304 2005-10-21 Simon Josefsson <jas@extundo.com>
34306 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
34307 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34309 2005-10-21 Simon Josefsson <jas@extundo.com>
34311 * gnulib-tool (func_import, func_create_testdir): Define automake
34312 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
34313 Makefile.am snippet),
34314 suggested by Bruno Haible <bruno@clisp.org>.
34316 * modules/gc (Makefile.am): Use it.
34318 2005-10-21 Bruno Haible <bruno@clisp.org>
34320 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
34323 2005-10-19 Simon Josefsson <jas@extundo.com>
34325 * tests/test-gc-rijndael.c: New file.
34327 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
34329 2005-10-19 Simon Josefsson <jas@extundo.com>
34331 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
34334 2005-10-19 Simon Josefsson <jas@extundo.com>
34336 * tests/test-gc-arcfour.c: New file.
34338 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
34340 2005-10-19 Simon Josefsson <jas@extundo.com>
34342 * modules/gc-md4, modules/gc-md4-tests: New file.
34344 * tests/test-gc-md4.c: New file.
34346 2005-10-19 Simon Josefsson <jas@extundo.com>
34348 * m4/gc-md4.m4: New file.
34350 2005-10-19 Simon Josefsson <jas@extundo.com>
34352 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
34353 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
34356 2005-10-19 Simon Josefsson <jas@extundo.com>
34358 * m4/gc-arcfour.m4: New file.
34360 * m4/gc-rijndael.m4: New file.
34362 2005-10-19 Simon Josefsson <jas@extundo.com>
34364 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
34366 2005-10-19 Simon Josefsson <jas@extundo.com>
34368 * lib/gc-gnulib.c: Support ARCFOUR.
34370 2005-10-19 Simon Josefsson <jas@extundo.com>
34372 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
34375 * lib/gc.h: Add ECB enum type.
34377 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
34379 2005-10-18 Simon Josefsson <jas@extundo.com>
34381 * tests/test-md5.c: New file.
34383 * modules/md5-tests: New file.
34385 2005-10-18 Simon Josefsson <jas@extundo.com>
34387 * tests/test-md4.c: New file.
34389 * modules/md4, modules/md4-tests: New files.
34391 2005-10-18 Simon Josefsson <jas@extundo.com>
34393 * m4/md4.m4: New file.
34395 2005-10-18 Simon Josefsson <jas@extundo.com>
34397 * lib/md4.h, lib/md4.c: New files, based on md5.?.
34399 2005-10-17 Stepan Kasal <kasal@ucw.cz>
34401 * gnulib-tool (func_create_testdir): Omit the second check whether
34402 BUILT_SOURCES in nonempty.
34404 2005-10-17 Simon Josefsson <jas@extundo.com>
34406 * tests/test-rijndael.c: New file.
34408 2005-10-17 Simon Josefsson <jas@extundo.com>
34410 * modules/sha1: Depend on stdint instead of md5.
34412 * modules/md5: Depend on stdint, remove uint32_t.
34414 2005-10-17 Simon Josefsson <jas@extundo.com>
34416 * modules/gc-sha1-tests: New file.
34418 * tests/test-gc-sha1.c: New file.
34420 2005-10-17 Simon Josefsson <jas@extundo.com>
34422 * m4/md5.m4: Remove call to uint32_t.m4.
34424 2005-10-17 Simon Josefsson <jas@extundo.com>
34426 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
34428 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
34431 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
34433 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
34435 2005-10-17 Simon Josefsson <jas@extundo.com>
34437 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
34439 2005-10-17 Simon Josefsson <jas@extundo.com>
34441 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
34443 2005-10-17 Simon Josefsson <jas@extundo.com>
34445 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
34447 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
34449 2005-10-17 Bruno Haible <bruno@clisp.org>
34451 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
34452 that it can also be used in a test.
34454 2005-10-16 Bruno Haible <bruno@clisp.org>
34456 * gnulib-tool (func_emit_tests_Makefile_am): Also define
34457 TESTS_ENVIRONMENT, so that individual tests can augment it.
34459 * gnulib-tool (func_create_testdir): Use an intermediate target for
34460 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
34461 macros, like $(ALLOCA_H), which cannot be passed through the command
34464 2005-10-15 Simon Josefsson <jas@extundo.com>
34466 * modules/rijndael-tests: New file.
34468 * modules/rijndael: New file.
34470 2005-10-15 Simon Josefsson <jas@extundo.com>
34472 * m4/rijndael.m4: New file.
34474 2005-10-15 Simon Josefsson <jas@extundo.com>
34476 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
34478 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
34480 2005-10-14 Simon Josefsson <jas@extundo.com>
34482 * tests/test-arcfour.c: New file.
34484 * modules/arcfour, modules/arcfour-tests: New files.
34486 2005-10-14 Simon Josefsson <jas@extundo.com>
34488 * m4/arcfour.m4: New file.
34490 2005-10-14 Simon Josefsson <jas@extundo.com>
34492 * lib/arcfour.h, lib/arcfour.c: New files.
34494 2005-10-14 Roland McGrath <roland@redhat.com>
34496 Import from libc. [BZ #1331]
34497 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
34499 Reported by Matej Vela <vela@debian.org>.
34501 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
34503 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
34504 include <wchar.h>; no longer needed.
34506 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
34508 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
34510 2005-10-14 Jakub Jelinek <jakub@redhat.com>
34511 and Ulrich Drepper <drepper@redhat.com>
34514 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
34515 instead of inline stream orientation test and two separate
34516 function calls. Pay no attention to USE_IN_LIBIO.
34518 2005-10-13 Simon Josefsson <jas@extundo.com>
34520 * modules/gc-hmac-md5-tests: New file.
34522 * tests/test-gc-hmac-sha1.c: New file.
34524 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
34526 * modules/gc-hmac-md5-tests: New file.
34528 * tests/test-gc-md5.c: New file.
34530 * modules/gc-md5-tests: New file.
34532 2005-10-13 Simon Josefsson <jas@extundo.com>
34534 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
34535 Move memory allocation outside of loop.
34537 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
34539 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
34540 intermediate directory is in a read-only file system. Problem
34541 reported by Eric Blake.
34543 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
34545 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
34547 2005-10-12 Simon Josefsson <jas@extundo.com>
34549 * tests/test-hmac-sha1.c: New file.
34551 * modules/hmac-sha1-tests: New file.
34553 * modules/hmac-sha1: New file.
34555 2005-10-12 Simon Josefsson <jas@extundo.com>
34557 * modules/gc-sha1: New file.
34559 2005-10-12 Simon Josefsson <jas@extundo.com>
34561 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
34563 * tests/test-gc-pbkdf2-sha1.c: New file.
34565 2005-10-12 Simon Josefsson <jas@extundo.com>
34567 * modules/gc-md5, modules/gc-hmac-md5: New files.
34569 * modules/gc (Files): Remove md5, memxor and hmac files.
34571 2005-10-12 Simon Josefsson <jas@extundo.com>
34573 * m4/gc-pbkdf2-sha1.m4: New file.
34575 * m4/gc-hmac-sha1.m4: New file.
34577 * m4/gc-sha1: New file.
34579 * m4/hmac-sha1.m4: New file.
34581 2005-10-12 Simon Josefsson <jas@extundo.com>
34583 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
34585 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
34587 2005-10-12 Simon Josefsson <jas@extundo.com>
34589 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
34590 suggested by Bruno Haible <bruno@clisp.org>.
34592 2005-10-12 Simon Josefsson <jas@extundo.com>
34594 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
34596 2005-10-12 Simon Josefsson <jas@extundo.com>
34598 * lib/gc-pbkdf2-sha1.c: New file.
34600 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
34602 2005-10-12 Simon Josefsson <jas@extundo.com>
34604 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
34606 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
34608 2005-10-12 Simon Josefsson <jas@extundo.com>
34610 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
34611 GC_USE_HMAC_MD5, respectively.
34613 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
34614 (gc_md5): Fix typo.
34616 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
34618 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
34620 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
34622 2005-10-12 Bruno Haible <bruno@clisp.org>
34624 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
34625 Reported by Stepan Kasal <kasal@ucw.cz>.
34627 2005-10-11 Simon Josefsson <jas@extundo.com>
34629 * tests/test-crc.c: New file.
34631 * modules/crc, modules/crc-tests: New files.
34633 2005-10-11 Simon Josefsson <jas@extundo.com>
34635 * m4/crc.m4: New file.
34637 2005-10-11 Simon Josefsson <jas@extundo.com>
34639 * lib/gc.h: Add gc_hash and gc_hash_buffer.
34641 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
34643 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
34645 2005-10-11 Simon Josefsson <jas@extundo.com>
34647 * lib/crc.h, lib/crc.c: New files.
34649 * lib/gc.h (gc_hash_buffer): Add doc.
34651 2005-10-11 Bruno Haible <bruno@clisp.org>
34653 * modules/c-strcasestr: New file.
34654 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
34656 2005-10-11 Bruno Haible <bruno@clisp.org>
34658 * modules/c-strcase: New file.
34659 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
34661 2005-10-11 Bruno Haible <bruno@clisp.org>
34663 * lib/strcasecmp.c: Include limits.h.
34664 (strcasecmp): Avoid integer overflow on exotic platforms.
34665 * lib/strncasecmp.c: Include limits.h.
34666 (strncasecmp): Avoid integer overflow on exotic platforms.
34667 Reported by Paul Eggert.
34669 2005-10-11 Bruno Haible <bruno@clisp.org>
34671 * lib/c-strcasestr.h: New file, from GNU gettext.
34672 * lib/c-strcasestr.c: New file, from GNU gettext.
34674 2005-10-11 Bruno Haible <bruno@clisp.org>
34676 * lib/c-strcase.h: New file, from GNU gettext.
34677 * lib/c-strcasecmp.c: New file, from GNU gettext.
34678 * lib/c-strncasecmp.c: New file, from GNU gettext.
34680 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
34682 * modules/mempcpy (License): GPL -> LGPL.
34683 * modules/strchrnul (License): Likewise.
34684 * modules/sysexits (License): Likewise.
34686 2005-10-08 Simon Josefsson <jas@extundo.com>
34688 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
34690 2005-10-07 Simon Josefsson <jas@extundo.com>
34692 * m4/memxor.m4: Remove gl_C_RESTRICT call.
34694 2005-10-06 Simon Josefsson <jas@extundo.com>
34696 * tests/test-hmac-md5.c: New file.
34698 * modules/hmac-md5-tests: New file.
34700 * modules/hmac-md5: New file.
34702 2005-10-06 Simon Josefsson <jas@extundo.com>
34704 * m4/hmac-md5.m4: New file.
34706 * m4/memxor.m4: Require gl_C_RESTRICT.
34708 2005-10-06 Simon Josefsson <jas@extundo.com>
34710 * lib/memxor.c (memxor): Avoid casts and warnings.
34712 2005-10-06 Simon Josefsson <jas@extundo.com>
34714 * lib/hmac-md5.c: New file.
34716 * lib/hmac.h: New file.
34718 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
34720 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
34721 promotes to int, not unsigned int, to catch the AIX 5.3
34724 2005-10-05 Simon Josefsson <jas@extundo.com>
34726 * modules/memxor: New file.
34728 * modules/iconv (Files): Move config.rpath to havelib, it is used
34731 * modules/havelib (Files): Add config.rpath.
34733 2005-10-05 Simon Josefsson <jas@extundo.com>
34735 * m4/memxor.m4: New file.
34737 2005-10-05 Simon Josefsson <jas@extundo.com>
34739 * lib/memxor.c (memxor): Fix compiler error.
34741 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
34742 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
34744 * lib/memxor.h, lib/memxor.c: New files.
34746 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
34747 we assume all systems have it, suggested by Jim Meyering
34748 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
34749 any systems lack sys/socket.h; mingw32 is known to lack it, but we
34750 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
34753 2005-10-05 Simon Josefsson <jas@extundo.com>
34755 * config/srclist.txt: Add glibc bug 1423 for md5.h.
34757 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
34759 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
34760 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
34761 needed, since the source code now assumes these .h files.
34763 2005-10-05 Derek Price <derek@ximbiot.com>
34765 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
34767 2005-10-05 Bruno Haible <bruno@clisp.org>
34769 * modules/stdint (License): Change to LGPL.
34771 2005-10-04 Simon Josefsson <jas@extundo.com>
34773 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
34774 D. Baushke" <mdb@gnu.org>.
34776 2005-10-04 Bruno Haible <bruno@clisp.org>
34778 * lib/verify.h (verify_true): Provide alternative definition for C++.
34780 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
34782 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
34783 (SSIZE_MAX): New macro, if not already defined.
34784 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
34787 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
34789 Sync from coreutils.
34790 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
34791 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
34792 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
34793 ULLONG_MAX doesn't work with 2.7.2.1.
34795 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
34797 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
34800 * modules/exclude (Depends-on): Depend on verify.
34801 * modules/strtoimax (Depends-on): Likewise.
34802 * modules/utimecmp (Depends-on): Likewise.
34804 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
34806 * lib/exclude.c: Include verify.h.
34807 (verify): Remove. All callers changed to use verify.h's version.
34808 * lib/strtoimax.c: Likewise.
34809 * lib/utimecmp.c: Likewis.e
34811 Sync from coreutils.
34812 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
34813 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
34814 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
34815 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
34816 bother returning ENOSYS if settimeofday or stime fails; just let
34817 them return whatever errno they want to return.
34818 * lib/utimens.c: Include unistd.h, for dup2.
34819 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
34820 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
34822 2005-10-02 Jim Meyering <jim@meyering.net>
34824 Sync from coreutils.
34825 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
34826 from glibc-2.2.5 that fails for read-only files.
34828 2005-10-02 Jim Meyering <jim@meyering.net>
34830 Sync from coreutils.
34831 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
34832 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
34833 `#if HAVE_CONFIG_H'.
34834 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
34835 Remove AT_FDCWD test.
34836 Do not consume the fd unless successful.
34837 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
34838 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
34839 block, so that we don't even try to compile it if settimeofday is
34840 available. This works around a compilation failure on OSF1 V5.1,
34841 due to stime requiring a `long int*' while tv_sec is `int'.
34843 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
34845 Sync from coreutils.
34846 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
34847 against `yes', rather than just testing for nonempty.
34849 2005-10-01 Simon Josefsson <jas@extundo.com>
34851 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
34854 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
34855 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
34856 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
34857 freeaddrinfo and gai_strerror are declared by the POSIX headers.
34858 Check if struct addrinfo is declared.
34860 2005-10-01 Simon Josefsson <jas@extundo.com>
34862 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
34863 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
34864 AI_* and EAI_* definitions. Protect function declarations.
34866 2005-10-01 Jim Meyering <jim@meyering.net>
34868 Sync from coreutils.
34870 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
34871 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
34872 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
34873 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
34874 in the inet and nsl libraries. Required on Solaris 5.7.
34876 2005-10-01 Jim Meyering <jim@meyering.net>
34878 Sync from coreutils.
34879 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
34880 in the inet and nsl libraries. Required on Solaris 5.7.
34882 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
34884 * lib/getdelim.c (getdelim): Remove unused variables.
34886 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
34888 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
34889 so that the code works even with ancient cpp. Portability problem
34890 with GCC 2.7.2.1 reported by Thomas M.Ott.
34892 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
34894 * modules/regex (Depends-on): Add strcase.
34896 * modules/gethostname (Licence): Change from GPL to LGPL, since
34897 gethostname.c is a trivial implementation of a standard library
34899 * modules/poll (License): Change from GPL to LGPL, since it's
34900 derived from LGPL code.
34902 2005-09-27 Jim Meyering <jim@meyering.net>
34904 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
34907 * lib/intprops.h (signed_type_or_expr__): Define.
34908 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
34909 for unsigned types.
34911 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
34913 * lib/verify.h (verify_expr): Remove, replacing with:
34914 (verify_true): New macro that returns true instead of void.
34915 (verify_type__): Remove.
34916 (verify): Use verify_true rather than verify_type__.
34918 2005-09-26 Bruno Haible <bruno@clisp.org>
34920 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
34922 (lib_SOURCES): Remove mbchar.c.
34923 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
34924 (Files): Add m4/mbrtowc.m4.
34925 * modules/mbiter: Likewise.
34926 * modules/mbuiter: Likewise.
34928 2005-09-26 Bruno Haible <bruno@clisp.org>
34930 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
34931 compile mbchar.c if they are not both present.
34932 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
34933 * m4/mbiter.m4 (gl_MBITER): Likewise.
34934 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
34935 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
34936 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
34938 2005-09-25 Jim Meyering <jim@meyering.net>
34940 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
34941 also uses socklen_t.
34943 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
34945 * lib/utimens.c (ENOSYS): Define if not already defined.
34946 (futimens): Support having a null PATH if the file descriptor
34949 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
34951 (__attribute): Define to empty unless GCC 3.1 or later.
34952 This works around a core dump on OpenBSD 3.4, which has GCC
34953 2.95.3, which dumps core when given __attribute__(()). It also
34954 simplifies other tests, since we really don't want to bother with
34955 worrying about which ancient version of GCC supported what.
34956 Original problem reported by Yoann Vandoorselaere, with part of
34957 the fix suggested by Derek Price.
34959 2005-09-24 Jim Meyering <jim@meyering.net>
34961 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
34962 so we can once again use a positive bitfield width of 1 -- now we
34963 don't have to explain why we were using a bitfield width of 2.
34965 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
34967 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
34968 and similarly for the other external symbols. Problem reported
34971 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
34972 bug reported by Jim Meyering.
34974 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
34975 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
34976 not needed, since socklen is a prerequisite module.
34978 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
34980 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
34981 Problem reported by Eric Blake.
34982 (getaddrinfo): Initialize se so that it's not garbage.
34983 Redo internal storage allocation so that it doesn't make unportable
34984 assumptions about alignment.
34987 * lib/utimens.c (futimens): Use futimesat if available.
34988 Prefer it to futimes since it doesn't have the futimes bug.
34990 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
34991 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
34992 Instead, declare a function that returns a pointer to an array,
34993 and use verify_type__ to declare the size of the array.
34994 Problem and germ of a solution reported by Bruno Haible.
34995 (verify_type__): Use 2, not 1, for bitfield size, to avoid
34996 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
34998 2005-09-23 Jim Meyering <jim@meyering.net>
35000 Sync from coreutils.
35001 Correct build failure (socklen_t not defined) on at least
35002 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
35003 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
35005 2005-09-23 Jim Meyering <jim@meyering.net>
35007 * modules/getaddrinfo (Depends-on): Add socklen.
35009 2005-09-23 Bruno Haible <bruno@clisp.org>
35011 * tests/test-verify.c: New file.
35013 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
35015 Sync from coreutils.
35017 * modules/argmatch (Depends-on): Add verify.
35018 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
35020 * modules/save-cwd (Depends-on): Likewise.
35022 * modules/openat (Files): Add lib/openat-die.c.
35023 (Depends-on): Remove error, exitfail.
35026 * modules/verify: New file.
35027 * MODULES.html.sh (Diagnostics <assert.h>): New section,
35028 with "verify" module.
35030 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
35032 Sync from coreutils.
35034 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
35035 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
35036 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
35037 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
35038 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
35039 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
35040 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
35041 Don't bother checking for string.h, stdlib.h, unistd.h.
35042 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
35043 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
35045 * m4/jm-macros.m4 (gl_MACROS): Likewise.
35046 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
35048 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
35049 (gl_GETDATE): Use it.
35051 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
35053 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
35055 Sync from coreutils.
35057 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
35059 * lib/argmatch.h: Include verify.h
35060 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
35061 (ARGMATCH_ASSERT): Remove; unused.
35062 * lib/canonicalize.c: Assume STDC_HEADERS.
35063 * lib/exclude.c: Include "strcase.h".
35064 * lib/regex_internal.h [!defined _LIBC]: Likewise.
35065 * lib/getusershell.c: Include stdio--.h rather than stdio.h
35067 (getusershell): Call fopen, not fopen_safer.
35068 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
35069 Do not include unistd-safer.h.
35070 (save_cwd): Don't call fd_safer; no longer needed
35071 now that we include fcntl--.h.
35073 * lib/getdate.y (relative_time): New type.
35074 (RELATIVE_TIME_0): New constant.
35075 (parser_control): Use relative_time instead of doing it ourselves.
35076 (%union): Add new relative_time rel member.
35077 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
35079 (relunit, relunit_snumber): Now of type rel.
35080 (zone, rel, relunit, get_date): Adjust to above changes.
35082 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
35083 Do not include unistd-safer.h.
35084 (getloadavg): Don't call fd_safer; no longer needed
35085 now that we include fcntl--.h.
35087 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
35088 (make_dir_parents): Treat ENOSYS like EEXIST.
35090 Improve quality of diagnostics on restore_cwd failure.
35091 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
35092 (make_dir_parents): Last arg is now int * (for errno), not bool *.
35093 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
35094 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
35095 each time through the loop. Do not diagnose restore_cwd failure;
35096 that is the caller's job (and perhaps the caller does not care).
35098 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
35099 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
35100 If the file already exists but is not a directory, don't bother
35101 to try to make its parents.
35102 Close potential file descriptor leak if we can't chdir("/") (!).
35103 Don't always return true if chdir($PWD) fails; return true only
35104 if the requested action was done successfully (except for the
35106 Don't log final directory unless we actually made it.
35107 Refactor to avoid duplicate code to fix up permissions.
35108 Don't attempt to fix up parent permissions if chdir($PWD) fails.
35110 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
35111 to make it a bit faster and (I hope) clearer.
35112 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
35113 Fix bug in formats like %2N.
35115 * lib/verify.h: New file.
35117 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
35119 Sync from coreutils.
35120 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
35122 2005-09-22 Jim Meyering <jim@meyering.net>
35124 Sync from coreutils.
35126 * m4/lstat.m4 (gl_FUNC_LSTAT):
35127 Use AC_LIBSOURCES to require lstat.c and lstat.h.
35128 Remove obsolete comment.
35129 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
35130 * m4/xstrtod.m4: Likewise.
35132 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
35134 2005-09-22 Jim Meyering <jim@meyering.net>
35136 Sync from coreutils.
35138 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
35140 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
35141 the .tm_year member, since otherwise gcc-4.0 would now warn about
35142 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
35144 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
35145 order to avoid an unsuppressible warning from gcc on 64-bit systems.
35147 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
35148 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
35149 when run in a time zone for which daylight savings time is in effect
35150 for the starting date.
35152 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
35153 stop us from restricting permissions of just-created absolute-named
35155 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
35156 to restore initial working directory.
35157 * lib/mkdir-p.c (make_dir_parents): New parameter:
35158 different_working_dir, to tell caller if/when we change the working
35159 directory and are unable to return to the initial one.
35160 * lib/mkdir-p.h (make_dir_parents): Update prototype.
35161 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
35162 `return false'. This fixes a bug introduced on 2004-07-30.
35164 * lib/openat.c (fdopendir): Be sure to close the supplied
35165 file descriptor before returning. This makes our replacement
35166 implementation a little closer to Solaris's, where fdopendir
35167 ties the file descriptor to the returned DIR* pointer.
35168 * lib/openat.c (unlinkat): New function.
35169 * lib/openat.h (unlinkat): Add prototype.
35170 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
35171 (openat_restore_fail): Rename from openat_restore_die.
35172 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
35174 Provide an alternative to exiting immediately upon save_cwd or
35175 restore_cwd failure. Now, an application can arrange e.g.,
35176 to perform a longjump in that case.
35177 * lib/openat.c: Include dirname.h.
35178 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
35179 (rpl_openat, fdopendir, fstatat): Call openat_save_die
35180 and openat_restore_die rather than calling error directly.
35181 Don't include "error.h" or "exitfail.h"; they're no longer needed.
35183 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
35184 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
35187 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
35188 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
35189 int utc, int nanoseconds);
35191 date should not have to allocate a megabyte of virtual memory to
35192 handle a format argument like +%1048575T. When implemented with
35193 strftime, it must allocate such a buffer, use strftime to fill it
35194 in, print it, then free it.
35195 With fprintftime, it simply prints everything and exits.
35196 With no need for memory allocation, that's one fewer way to fail.
35197 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
35198 optional field width, not before, so we accept %9:z, not %:9z.
35199 (my_strftime): Be sure to use L_('x') for literals.
35201 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
35202 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
35203 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
35204 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
35205 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
35206 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
35207 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
35208 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
35209 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
35210 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
35211 * lib/xgethostname.c, lib/xreadlink.c:
35212 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
35214 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
35215 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
35216 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
35217 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
35218 and don't include <sys/file.h>).
35220 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
35222 Sync from coreutils.
35224 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
35225 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
35226 [!LDAV_DONE]: Avoid unused variable warning.
35228 2005-09-21 Bruno Haible <bruno@clisp.org>
35230 * lib/unicodeio.h (unicode_to_mb): New declaration.
35232 2005-09-20 Derek Price <derek@ximbiot.com>
35234 * lib/getaddrinfo.c: Don't include <netdb.h> included from
35237 2005-09-20 Bruno Haible <bruno@clisp.org>
35239 * gnulib-tool: Remove trailing slashes from the values specified for
35240 --source-base, --m4-base, --tests-base, --aux-dir.
35241 Suggested by Simon Josefsson <jas@extundo.com>.
35243 2005-09-20 Bruno Haible <bruno@clisp.org>
35245 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
35246 func_modules_to_filelist, func_import, func_create_testdir): Make all
35247 sorting results locale-independent, so that gnulib-cache.m4 doesn't
35248 change when gnulib-tool is invoked in a different locale.
35250 2005-09-19 Simon Josefsson <jas@extundo.com>
35252 * m4/socklen.m4: Fix typo.
35254 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35256 Use a consistent style for including <config.h>.
35257 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
35258 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
35259 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
35260 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
35261 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
35262 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
35263 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
35264 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
35265 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
35266 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
35267 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
35268 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
35269 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
35270 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
35271 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
35272 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
35273 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
35274 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
35275 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
35276 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
35277 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
35278 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
35279 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
35280 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
35281 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
35282 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
35283 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
35284 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
35285 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
35286 lib/xstrtoumax.c, lib/yesno.c:
35287 Standardize inclusion of config.h.
35288 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
35289 lib/inttostr.h: Removed inclusion of config.h from header files.
35290 * lib/inttostr.c: Adjusted in-tree users.
35291 * lib/timespec.h: Remove superfluous warning to include config.h.
35292 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
35293 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
35294 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
35295 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
35296 config.h with HAVE_CONFIG_H.
35298 2005-09-19 Jim Meyering <jim@meyering.net>
35300 * modules/pathmax (License): Change to LGPL.
35302 2005-09-19 Derek Price <derek@ximbiot.com>
35304 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
35306 2005-09-19 Bruno Haible <bruno@clisp.org>
35308 * gnulib-tool (import): Provide default for --tests-base.
35310 2005-09-19 Bruno Haible <bruno@clisp.org>
35312 * doc/quote.texi: New file, extracted from gnulib.texi.
35313 * doc/ctime.texi: New file, extracted from gnulib.texi.
35314 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
35315 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
35316 * doc/gnulib.texi: Include them.
35318 2005-09-18 Bruno Haible <bruno@clisp.org>
35321 * gnulib-tool (func_readlink): New function.
35322 (func_ln_if_changed): Use it.
35324 2005-09-18 Bruno Haible <bruno@clisp.org>
35326 * gnulib-tool: Support --with-tests also with --import.
35327 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
35328 (func_import): Use variables $testsbase and $inctests. Emit a
35329 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
35330 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
35331 SUBDIRS += $testsdir.
35332 (func_create_testdir): Update.
35334 2005-09-18 Bruno Haible <bruno@clisp.org>
35336 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
35337 instead of $dry_run.
35338 (func_cp_if_changed, func_mv_if_changed): Remove functions.
35339 (func_ln_if_changed): Don't handle dry-run here.
35340 (func_import): In dry-run mode, detect more precisely which actions
35341 would be performed, and don't use "...ing" verbs.
35343 2005-09-18 Bruno Haible <bruno@clisp.org>
35345 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
35346 (func_import): Use join on two temporary files instead of three nested
35347 loops, in order to determine which files are new or old.
35349 2005-09-18 Bruno Haible <bruno@clisp.org>
35351 * gnulib-tool (func_import): Comment out code that spits out the
35352 new files with --dry-run.
35354 2005-09-18 Bruno Haible <bruno@clisp.org>
35356 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
35358 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
35360 * lib/stat-time.h: New file.
35361 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
35362 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
35363 in a different way.
35364 (timespec_cmp): New function.
35365 * lib/utimecmp.c: Include stat-time.h.
35366 (SYSCALL_RESOLUTION): Depend on whether various struct stat
35367 members exist, not on the obsolescent ST_MTIM_NSEC.
35368 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
35370 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
35372 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
35374 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
35376 * MODULES.html.sh (File system functions): Add stat-time.
35377 * modules/stat-time: New file.
35378 * modules/timespec (Files): Remove m4/st_mtim.m4; this
35379 is now done in a different way, by the stat-time module.
35380 * modules/utimecmp (Depends-on): Add stat-time.
35382 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
35384 * m4/st_mtim.m4: Remove. Superseded by...
35385 * m4/stat-time.m4: New file.
35386 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
35387 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
35389 2005-09-15 Derek Price <derek@ximbiot.com>
35391 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
35393 2005-09-15 Derek Price <derek@ximbiot.com>
35395 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
35396 * lib/regex_internal.c: Ditto, using this...
35397 (__GNUC_PREREQ): ...new macro.
35398 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
35400 (__GNUC_PREREQ): ...this new macro.
35402 * lib/strstr.h: Include string.h. Define strstr as a macro here.
35404 2005-09-15 Derek Price <derek@ximbiot.com>
35405 Paul Eggert <eggert@cs.ucla.edu>
35407 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
35408 changes, consolidating in...
35409 * lib/regex_internal.h: ...this file.
35411 2005-09-13 Jim Meyering <jim@meyering.net>
35413 * lib/canon-host.c: Filter through gnu indent and reword comments
35415 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
35417 2005-09-13 Derek Price <derek@ximbiot.com>
35419 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
35421 Reported by Jim Meyering <jim@meyering.net>.
35423 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
35425 * lib/base64.c: Typo.
35426 (base64_encode): Put b64str in initialized data section.
35428 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
35430 Merge glibc and coreutils changes into gnulib, plus a few
35432 * lib/md5.c: Use #error rather than a string.
35433 (CYCLIC): New macro, from glibc source. Use it instead of rol.
35434 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
35435 (__attribute__): Define to empty for non recent-GCC.
35436 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
35437 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
35438 Renamed from their non-__ counterparts, with new macros replacing
35439 them if not _LIBC. Add __THROW attribute.
35441 (struct md5_ctx): Align buffer if using GCC.
35442 * lib/sha1.h (struct sha1_ctx): Likewise.
35443 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
35444 The old name was backwards.
35445 (NOTSWAP): Remove; not used.
35446 (rol): New macro, moved here from md5.h.
35447 (sha1_process_block): Remove a FIXME that doesn't make sense.
35449 2005-09-12 Derek Price <derek@ximbiot.com>
35451 Return usable errors from canon-host.
35452 * lib/canon-host.h: New file.
35453 * lib/canon-host.c (canon_host): Wrap...
35454 (canon_host_r): ...this new function, which now relies exclusively on
35456 (ch_strerror): New function.
35457 (last_cherror): New global.
35458 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
35460 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
35462 (freeaddrinfo): Free ai->ai_canonname when set.
35464 2005-09-12 Derek Price <derek@ximbiot.com>
35466 Make canon-host require getaddrinfo.
35467 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
35468 AC_LIBSOURCE canon-host.h. Call...
35469 (gl_PREREQ_CANON_HOST): ...this new function, which requires
35471 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
35473 2005-09-12 Derek Price <derek@ximbiot.com>
35475 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
35477 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
35479 2005-09-12 Derek Price <derek@ximbiot.com>
35481 * lib/gai_strerror.c: Include config.h when available. Include
35482 getaddrinfo.h before other headers to test interface.
35483 Reported by Larry Jones <lawrence.jones@ugs.com>.
35485 2005-09-12 Derek Price <derek@ximbiot.com>
35486 Paul Eggert <eggert@cs.ucla.edu>
35488 * modules/glob (Files): Add glob-libc.h.
35490 2005-09-12 Derek Price <derek@ximbiot.com>
35491 Paul Eggert <eggert@cs.ucla.edu>
35493 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
35494 glob_.h, glob-libc.h.
35495 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
35497 2005-09-12 Derek Price <derek@ximbiot.com>
35498 Paul Eggert <eggert@cs.ucla.edu>
35500 * lib/glob-libc.h: Renamed from glob_.h. The new version is
35501 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
35502 protecting things that should be done only in gnulib contexts.
35503 * lib/glob_.h: New file, containing only the glob things needed for
35505 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
35506 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
35507 (glob, globfree, glob_pattern_p): Now defined simply in terms of
35508 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
35509 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
35510 and to respect the namespace rules better.
35512 2005-09-08 Simon Josefsson <jas@extundo.com>
35514 * modules/socklen: New file.
35516 2005-09-08 Simon Josefsson <jas@extundo.com>
35518 * m4/socklen.m4: New file.
35520 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
35522 * modules/utimens (Files): Add m4/utimbuf.m4, since
35523 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
35524 Reported by Sergey Poznyakoff.
35526 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
35528 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
35529 definitions, since that's the preferred style in glibc.
35530 Fix a minor spacing issue, and update copyright notice to match
35533 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
35535 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
35537 2005-09-06 Simon Josefsson <jas@extundo.com>
35539 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
35540 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
35542 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
35544 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
35547 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
35549 * config/srclist.txt: Add glibc bug 1302.
35551 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
35553 Change bitset word type from unsigned int to unsigned long int,
35554 as this has better performance on typical 64-bit hosts.
35555 Port bitset code to hosts with unusual word sizes.
35556 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
35557 (build_collating_symbol):
35558 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
35559 argument is a bitset. This is merely a style issue, but it makes
35560 it clearer that an entire array is expected.
35561 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
35562 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
35563 Port to the case where bitset_word is not the same as unsigned int.
35564 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
35565 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
35567 * lib/regexec.c (check_dst_limits_calc_pos_1,
35568 check_subexp_matching_top):
35569 (build_trtable, group_nodes_into_DFAstates):
35571 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
35572 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
35573 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
35574 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
35575 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
35576 * lib/regcomp.c (optimize_subexps, lower_subexp):
35577 Work even if bitset_word has holes in its bitwise representation.
35578 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
35579 * lib/regexec.c (check_dst_limits_calc_pos_1,
35580 check_subexp_matching_top):
35582 * lib/regex_internal.c (re_string_reconstruct):
35583 Don't assume UCHAR_MAX == 255.
35584 * lib/regex_internal.h (bitset_set_all): Likewise.
35585 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
35587 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
35588 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
35590 (BITSET_WORD_MAX): New macro.
35591 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
35592 (bitset_set_all, bitset_copy): Now inline functions, not macros.
35593 (bitset_empty, bitset_copy):
35594 Prefer sizeof (bitset) to multiplying it out ourselves.
35595 (bitset_not_merge): Remove; unused.
35596 (bitset_contain): Return bool, not unsigned int with one bit on.
35597 All callers changed.
35598 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
35599 alignment than re_node_set; do this by defining a new internal
35600 type struct dests_alloc and using it to allocate memory.
35602 2005-09-05 Bruno Haible <bruno@clisp.org>
35604 * gnulib-tool (func_import): Fix comparison in handling of symbolic
35607 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
35609 * modules/size_max (Makefile.am): Add size_max.h
35611 2005-09-04 Derek Price <derek@ximbiot.com>
35613 * gnulib-tool (func_import): Fix reversed $symbolic logic.
35615 2005-09-03 Simon Josefsson <jas@extundo.com>
35617 * gnulib-tool: Fix typo.
35619 2005-09-03 Simon Josefsson <jas@extundo.com>
35621 * config/srclist.txt: Add glibc bug 1293.
35623 2005-09-03 Derek Price <derek@ximbiot.com>
35625 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
35626 From Larry Jones <lawrence.jones@ugs.com>.
35628 2005-09-02 Simon Josefsson <jas@extundo.com>
35630 * modules/socklen: New file.
35632 2005-09-02 Simon Josefsson <jas@extundo.com>
35634 * modules/havelib: New module.
35636 * modules/gettext, modules/iconv, modules/lock, modules/readline:
35639 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
35641 Check for arithmetic overflow when calculating sizes, to prevent
35642 some buffer-overflow issues. These patches are conservative, in the
35643 sense that when I couldn't determine whether an overflow was possible,
35644 I inserted a run-time check.
35645 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
35647 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
35648 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
35649 (re_xnrealloc, re_x2nrealloc): New inline functions.
35650 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
35651 parse_bracket_exp):
35652 (build_equiv_class, build_charclass): Check for arithmetic overflow
35653 in size expression calculations.
35654 * lib/regex_internal.c (re_string_realloc_buffers):
35655 (build_wcs_upper_buffer, re_node_set_add_intersect):
35656 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
35657 (re_dfa_add_node, register_state): Likewise.
35658 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
35659 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
35660 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
35661 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
35663 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
35665 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
35666 m4/ulonglong.m4. Problem reported by Martin Lambers.
35668 2005-09-02 Bruno Haible <bruno@clisp.org>
35670 Support for lib vs. lib64 distinction on biarch platforms.
35671 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
35672 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
35673 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
35675 2005-09-02 Bruno Haible <bruno@clisp.org>
35677 * gnulib-tool (import): In the other first-use case, provide defaults
35680 2005-09-02 Bruno Haible <bruno@clisp.org>
35682 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
35683 patches not yet found in the latest gettext release.
35685 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
35687 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
35688 to avoid a collision with bits/local_lim.h in glibc.
35689 All uses changed. Problem reported by Dmitry V. Levin in
35690 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
35692 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
35693 bugs in int versus size_t comparisons.
35694 (re_string_context_at): Fix bug where the code assumed that
35697 Use bool where appropriate.
35698 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
35699 All callers changed.
35700 (calc_eclosure_iter): Likewise, for ROOT arg.
35701 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
35702 (build_charclass_op): Likewise, for NON_MATCH arg.
35703 * lib/regex_internal.c (re_string_allocate, re_string_construct):
35704 (re_string_construct_common): Likewise, for ICASE arg.
35705 * lib/regexec.c (re_search_2_stub, re_search_stub):
35706 Likewise, for RET_LEN arg.
35707 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
35708 (set_regs): Likewise, for FL_BACKTRACK arg.
35709 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
35710 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
35711 (calc_eclosure_iter, parse_bracket_exp):
35712 Use bool for internal variables that are booleans.
35713 * lib/regexec.c (re_search_internal, check_matching,
35714 proceed_next_node):
35715 (set_regs, build_sifted_states, sift_states_bkref):
35716 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
35717 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
35718 (find_collation_sequence_value):
35720 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
35721 (re_node_set_compare):
35722 Return bool, not int. All callers changed.
35723 * lib/regexec.c (check_halt_node_context, check_dst_limits):
35724 (build_trtable, check_node_accept): Likewise.
35725 * lib/regex_internal.h: Include stdbool.h.
35727 Fix bugs uncovered when converting to bool.
35728 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
35729 failure instead of charging ahead blindly.
35730 * lib/regex_internal.c (register_state): Likewise.
35731 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
35732 for freeing internal storage.
35733 (group_nodes_into_DFA_states): Use unsigned int, not int, for
35734 bitset pieces used as boolean, to avoid undefined behavior
35735 on hosts that do int overflow checking.
35737 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
35739 * config/srclist.txt: Add glibc bugs 1285-1287.
35741 2005-09-01 Jim Meyering <jim@meyering.net>
35743 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
35744 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
35745 Require gl_STAT_MACROS, too.
35747 2005-09-01 Bruno Haible <bruno@clisp.org>
35749 * gnulib-tool (import): In the first-use case, provide defaults.
35751 2005-09-01 Bruno Haible <bruno@clisp.org>
35753 * gnulib-tool (func_import): Remove the .tmp files.
35755 2005-09-01 Bruno Haible <bruno@clisp.org>
35757 * gnulib-tool (func_import): Fix handling of symbolic links.
35759 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
35761 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
35762 old glibc regex code mishandles strings longer than 2**31 bytes.
35763 This patch fixes this when the regex code is used in gnulib
35764 (i.e., outside glibc).
35766 This patch should not affect the use of the regex code inside
35767 glibc. No doubt this problem also needs to be handled for glibc
35768 as well, but the result will be an incompatible change to the
35769 glibc ABI, and the old ABI will have to be supported too. That
35770 can be the the subject for another patch.
35772 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
35773 governing whether the rest of this patch is active. By default,
35774 the macro is disabled and the patch has no effect.
35775 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
35776 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
35777 (struct re_pattern_buffer, re_search, re_search_2, re_match):
35778 (re_match_2, re_set_registers): Use the new types.
35779 * lib/regex_internal.h (Idx, re_hashval_t): New types.
35780 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
35782 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
35783 (re_string_context_at, bin_tree_t, re_dfastate_t):
35784 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
35785 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
35786 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
35787 (re_string_char_size_at, re_string_wchar_at):
35788 (re_string_elem_size_at):
35789 Use the new types and macros to port to 64-bit hosts.
35790 Use unsigned types for internal values, so that the code
35791 mostly works even for arrays larger than SSIZE_MAX.
35792 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
35793 (search_duplicated_node, calc_eclosure_iter, fetch_number):
35794 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
35795 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
35796 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
35797 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
35798 (calc_inveclosure, parse_dup_op, build_range_exp):
35799 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
35800 (fetch_number, create_token_tree, mark_opt_subexp):
35802 * lib/regex_internal.c (re_string_construct_common,
35803 create_ci_newstate):
35804 (create_cd_newstate, re_string_allocate, re_string_construct):
35805 (re_string_realloc_buffers, build_wcs_upper_buffer):
35806 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
35807 (re_string_reconstruct, re_string_peek_byte_case):
35808 (re_string_fetch_byte_case, re_string_context_at):
35809 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
35810 (re_node_set_init_copy, re_node_set_add_intersect):
35811 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
35812 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
35813 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
35814 (re_acquire_state, re_acquire_state_context, register_state):
35816 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
35817 search_cur_bkref_entry):
35818 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
35819 (re_search_internal, re_search_2_stub, re_search_stub)
35820 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
35821 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
35822 (update_cur_sifted_state, check_dst_limits):
35823 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
35824 (check_subexp_limits, sift_states_bkref, merge_state_array):
35825 (check_subexp_matching_top, get_subexp, get_subexp_sub):
35826 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
35827 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
35828 (expand_bkref_cache, check_node_accept_bytes):
35829 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
35830 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
35831 (acquire_init_state_context, check_halt_node_context):
35832 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
35833 (sift_states_backward, clean_state_log_if_needed):
35834 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
35835 (find_recover_state, transit_state_sb, transit_state_mb):
35836 (transit_state_bkref, build_trtable, match_ctx_clean):
35838 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
35839 to work around an assumption that REG_MISSING is negative.
35841 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
35842 (seek_collating_symbol_entry) [defined _LIBC]:
35843 (lookup_collation_sequence_value) [defined _LIBC]:
35844 (build_range_exp, build_collating_symbol) [defined _LIBC]:
35845 Use prototypes rather than old-style function definitions.
35846 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
35847 (transit_state_sb) [0]:
35848 (find_collation_sequence_value) [defined _LIBC]: Likewise.
35850 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
35853 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
35854 (optimize_subexps, lower_subexp):
35855 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
35856 since the signed shift might overflow. Use 1u<<31 instead.
35857 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
35859 * lib/regexec.c (check_dst_limits_calc_pos_1,
35860 check_subexp_matching_top): Likewise.
35862 * lib/regcomp.c (optimize_subexps, lower_subexp):
35863 Use CHAR_BIT rather than 8, for clarity.
35864 * lib/regexec.c (check_dst_limits_calc_pos_1):
35865 (check_subexp_matching_top): Likewise.
35866 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
35867 have to worry about portability issues when shifting it left.
35868 Remove no-longer-needed test for table_size > 0.
35869 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
35870 in a word, as the resulting behavior is undefined.
35871 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
35872 in one case, a <= should have been an <, and in another case the
35873 whole test was missing.
35874 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
35875 the standard name CHAR_BIT.
35876 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
35877 this is not true on one's complement and signed-magnitude hosts.
35879 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
35881 (struct re_dfa_t): Remove unused member states_alloc.
35882 * lib/regcomp.c (init_dfa): Don't initialize unused members.
35884 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
35886 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
35887 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
35888 and large-file glibc and in 32-bit large-file Solaris.
35890 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
35892 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
35893 lengths fit in regoff_t; this isn't true if regoff_t is the same
35895 * lib/regex.c (re_search_internal): 5th arg is LAST_START
35896 (= START + RANGE) instead of RANGE. This avoids overflow
35897 problems when regoff_t is the same width as size_t.
35898 All callers changed.
35899 (re_search_2_stub): Check for overflow when adding the
35900 sizes of the two strings.
35901 (re_search_stub): Check for overflow when adding START
35902 to RANGE; if it occurs, substitute the extreme value.
35904 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
35906 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
35908 2005-08-31 Jim Meyering <jim@meyering.net>
35910 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
35911 a pointer-to-const.
35912 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
35913 (register_state): Likewise.
35914 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
35915 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
35916 (group_nodes_into_DFAstates): Likewise.
35918 2005-08-31 Jim Meyering <jim@meyering.net>
35920 * check-module: Add a FIXME comment.
35922 2005-08-31 Eric Blake <ebb9@byu.net>
35924 * modules/unistd-safer (Files): Add unistd--.h.
35925 * modules/stdio-safer (Files): Add stdio--.h.
35927 2005-08-31 Derek Price <derek@ximbiot.com>
35929 * lib/getdelim.c (getdelim): Return EOF on EOF.
35930 Reported by Larry Jones <lawrence.jones@ugs.com>.
35932 2005-08-31 Bruno Haible <bruno@clisp.org>
35934 Avoid unnecessary diffs in the generated lib/Makefile.am.
35935 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
35936 the generated files.
35937 (func_import): Don't set cmd.
35939 2005-08-31 Bruno Haible <bruno@clisp.org>
35941 * lib/strstr.c: Include <stddef.h>, for NULL.
35942 * lib/strcasestr.c: Likewise.
35943 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35945 2005-08-31 Bruno Haible <bruno@clisp.org>
35947 * gnulib-tool: New option --macro-prefix.
35948 (func_import): Use macro_prefix.
35949 (import): Handle option --macro-prefix.
35951 2005-08-31 Bruno Haible <bruno@clisp.org>
35953 * gnulib-tool (import): Rename most ac_* variables to cached_*.
35954 Also use new variables cached_lgpl, cached_libtool.
35956 2005-08-31 Bruno Haible <bruno@clisp.org>
35958 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
35959 always instantiating them.
35961 2005-08-31 Bruno Haible <bruno@clisp.org>
35963 * gnulib-tool (func_import): Read the previous cached settings
35964 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
35965 earlier added by gnulib but are now dropped. Warn when a gnulib file
35966 overwrites a non-gnulib file.
35968 2005-08-31 Bruno Haible <bruno@clisp.org>
35970 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
35971 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
35972 projects that don't keep autogenerated files in CVS. Put into
35973 actioncmd only the specified modules, not the transitive closure.
35975 2005-08-31 Bruno Haible <bruno@clisp.org>
35977 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
35978 Create directories that shall be filled.
35979 (import): Don't look for gl_* macros in configure.ac. Recurse across
35980 all directories containing a gnulib-cache.m4 files, if meaningful.
35982 2005-08-31 Bruno Haible <bruno@clisp.org>
35984 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
35985 (import): Set seen_libtool when we see gl_LIBTOOL.
35987 2005-08-31 Bruno Haible <bruno@clisp.org>
35989 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
35990 declaration macro definitions from generated gnulib.m4.
35992 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
35994 * lib/iconvme.h: Add prototype for iconv_alloc.
35996 2005-08-29 Simon Josefsson <jas@extundo.com>
35998 * lib/iconvme.c: Fix errno.
36000 2005-08-29 Bruno Haible <bruno@clisp.org>
36002 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
36003 that it works when the directory contains spaces.
36005 2005-08-29 Bruno Haible <bruno@clisp.org>
36007 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
36009 2005-08-29 Bruno Haible <bruno@clisp.org>
36011 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
36014 2005-08-29 Bruno Haible <bruno@clisp.org>
36015 and Stepan Kasal <kasal@ucw.cz>
36017 * check-module: If more parameters are given, check each of them
36018 separately; add more exceptions, as noted by Jim Meyering.
36019 (check_module): New procedure.
36020 (%exempt_header): Now contains all exceptions.
36022 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
36024 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
36026 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
36028 * lib/iconvme.c: Split iconv_string into iconv_alloc.
36030 2005-08-28 Bruno Haible <bruno@clisp.org>
36032 * m4/gnulib-tool.m4: New file.
36034 2005-08-27 Jim Meyering <jim@meyering.net>
36036 * modules/unistd-safer (Files): Add pipe-safer.c.
36037 * modules/fcntl-safer (Files): Add creat-safer.c.
36039 2005-08-27 Jim Meyering <jim@meyering.net>
36041 * m4/stdlib-safer.m4: New file. From coreutils.
36042 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
36043 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
36044 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
36045 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
36046 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
36048 2005-08-27 Jim Meyering <jim@meyering.net>
36050 * lib/fopen-safer.c: Merge minor changes from coreutils.
36051 * lib/dup-safer.c: Likewise.
36052 * lib/fd-safer.c: Likewise.
36054 Merge from coreutils.
36055 * lib/stdio--.h: New file.
36056 * lib/stdlib--.h: New file.
36057 * lib/mkstemp-safer.c: New file.
36059 GNU tar needs these.
36060 * lib/pipe-safer.c: New file.
36061 * lib/creat-safer.c: New file.
36062 * lib/fcntl--.h (creat): Define to creat_safer.
36063 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
36064 * lib/unistd--.h (pipe): Define to pipe_safer.
36065 * lib/unistd-safer.h: Declare pipe_safer.
36067 2005-08-26 Simon Josefsson <jas@extundo.com>
36069 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
36070 Haible <bruno@clisp.org>.
36072 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
36074 * lib/regex_internal.h: Remove all references to
36075 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
36077 (bitset_not, bitset_merge, bitset_not_merge):
36078 (bitset_mask, re_string_allocate, re_string_construct):
36079 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
36080 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
36081 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
36082 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
36083 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
36084 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
36085 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
36086 (re_acquire_state_context):
36087 Remove unnecessary forward decls.
36088 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
36089 Put __attribute at function definition,
36090 now that the function decl has been removed.
36091 * lib/regex_internal.c (re_string_peek_byte_case):
36092 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
36095 2005-08-25 Stepan Kasal <kasal@ucw.cz>
36097 * m4/regex.m4: Add AC_PREREQ(2.50).
36098 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
36100 2005-08-25 Simon Josefsson <jas@extundo.com>
36102 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
36105 2005-08-25 Simon Josefsson <jas@extundo.com>
36107 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
36108 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
36109 GLIBC specific code.
36111 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
36113 Make regex safe for g++. This fixes one real bug (an "err"
36114 that should have been "*err"). g++ problem reported by
36116 * lib/regex_internal.h (re_calloc): New macro, consistent with
36117 re_malloc etc. All callers of calloc changed to use re_calloc.
36118 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
36119 not int. All callers changed.
36120 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
36121 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
36122 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
36123 (find_recover_state): Change "err" to "*err"; this fixes what
36124 appears to be a real bug.
36125 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
36128 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
36130 * modules/regex (Depends-on): Add malloc, since the code
36131 assumes that !malloc(0) means failure.
36133 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
36135 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
36137 alloca modernization/simplification for regex.
36138 * lib/regex.c: Remove portability cruft for alloca. This no longer
36139 needs to be at the start of the file, and can be moved into
36140 regex_internal.h and simplified.
36141 * lib/regex_internal.h: Include <alloca.h>.
36142 (__libc_use_alloca) [!defined _LIBC]: New macro.
36143 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
36144 now works outside glibc.
36146 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
36148 * config/srclist.txt: Add glibc bugs 1241, 1245.
36150 2005-08-25 Jim Meyering <jim@meyering.net>
36152 * lib/open-safer.c: Include <config.h>.
36153 Otherwise, we'd lose LARGEFILE support in any file using
36156 2005-08-25 Bruno Haible <bruno@clisp.org>
36158 * m4/minmax.m4: Require autoconf 2.52.
36159 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
36160 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
36161 alternatives of translit over the alphabet.
36162 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
36164 2005-08-24 Simon Josefsson <jas@extundo.com>
36166 * tests/test-getpass.c: New file.
36168 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
36170 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
36171 for GNU regex features.
36173 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
36175 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
36176 * lib/regex.h (regerror): Likewise.
36178 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
36179 requires this. (The code never needed it.)
36181 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
36182 All uses of recently-renamed identifiers changed to use the new,
36183 POSIX-compliant names. The code will build and run just fine
36184 without these changes, but it's better to eat our own dog food
36185 and use the standard-conforming names.
36187 * lib/regex.h: Fix a multitude of POSIX name space violations.
36188 These changes have an effect only for programs that define
36189 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
36190 do not change anything for programs compiled in the normal way.
36191 Also, there is no effect on the ABI.
36193 (_REGEX_SOURCE): New macro.
36194 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
36195 defined and _GNU_SOURCE is not; this fixes a name space violation.
36197 Rename the following macros to obey POSIX requirements.
36198 The old names are still visible as macros if _REGEX_SOURCE is defined.
36199 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
36200 RE_BACKSLASH_ESCAPE_IN_LISTS.
36201 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
36202 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
36203 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
36204 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
36205 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
36206 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
36207 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
36208 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
36209 (REG_INTERVALS): renamed from RE_INTERVALS.
36210 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
36211 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
36212 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
36213 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
36214 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
36215 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
36216 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
36217 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
36218 RE_UNMATCHED_RIGHT_PAREN_ORD.
36219 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
36220 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
36221 (REG_DEBUG): renamed from RE_DEBUG.
36222 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
36223 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
36224 unusual, since we can't clash with the POSIX REG_ICASE.
36225 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
36226 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
36227 (REG_NO_SUB): renamed from RE_NO_SUB.
36228 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
36229 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
36230 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
36231 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
36232 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
36233 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
36234 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
36235 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
36236 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
36237 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
36238 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
36239 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
36240 RE_SYNTAX_POSIX_MINIMAL_BASIC.
36241 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
36242 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
36243 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
36244 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
36245 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
36246 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
36247 (REG_FIXED): Renamed from REGS_FIXED.
36248 (REG_NREGS): Renamed from RE_NREGS.
36250 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
36251 of other REG_* macros, since POSIX says the user is allowed to
36252 #undef these macros selectively.
36254 (reg_errcode_t): Update comment stating what other tables need
36257 Rename the following enum values to obey POSIX requirements.
36258 The old names are still visible as macros.
36259 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
36260 is not defined, since GNU is supposed to be a superset of POSIX as
36261 much as possible, and since we want reg_errcode_t to be a signed
36262 type for implementation consistency.
36263 (_REG_NOERROR): Renamed from REG_NOERROR.
36264 (_REG_NOMATCH): Renamed from REG_NOMATCH.
36265 (_REG_BADPAT): Renamed from REG_BADPAT.
36266 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
36267 (_REG_ECTYPE): Renamed from REG_ECTYPE.
36268 (_REG_EESCAPE): Renamed from REG_EESCAPE.
36269 (_REG_ESUBREG): Renamed from REG_ESUBREG.
36270 (_REG_EBRACK): Renamed from REG_EBRACK.
36271 (_REG_EPAREN): Renamed from REG_EPAREN.
36272 (_REG_EBRACE): Renamed from REG_EBRACE.
36273 (_REG_BADBR): Renamed from REG_BADBR.
36274 (_REG_ERANGE): Renamed from REG_ERANGE.
36275 (_REG_ESPACE): Renamed from REG_ESPACE.
36276 (_REG_BADRPT): Renamed from REG_BADRPT.
36277 (_REG_EEND): Renamed from REG_EEND.
36278 (_REG_ESIZE): Renamed from REG_ESIZE.
36279 (_REG_ERPAREN): Renamed from REG_ERPAREN.
36280 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
36281 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
36282 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
36283 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
36285 (_REG_RE_NAME, _REG_RM_NAME): New macros.
36286 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
36287 changed. But support the old name if the new one is not defined
36288 and if _REGEX_SOURCE.
36290 Change the following member names in struct re_pattern_buffer.
36291 The old names are still supported if !_REGEX_SOURCE.
36292 The new names are always supported, regardless of _REGEX_SOURCE.
36293 (re_buffer): Renamed from buffer.
36294 (re_allocated): Renamed from allocated.
36295 (re_used): Renamed from used.
36296 (re_syntax): Renamed from syntax.
36297 (re_fastmap): Renamed from fastmap.
36298 (re_translate): Renamed from translate.
36299 (re_can_be_null): Renamed from can_be_null.
36300 (re_regs_allocated): Renamed from regs_allocated.
36301 (re_fastmap_accurate): Renamed from fastmap_accurate.
36302 (re_no_sub): Renamed from no_sub.
36303 (re_not_bol): Renamed from not_bol.
36304 (re_not_eol): Renamed from not_eol.
36305 (re_newline_anchor): Renamed from newline_anchor.
36307 Change the following member names in struct re_registers.
36308 The old names are still supported if !_REGEX_SOURCE.
36309 The new names are always supported, regardless of _REGEX_SOURCE.
36310 (rm_num_regs): Renamed from num_regs.
36311 (rm_start): Renamed from start.
36312 (rm_end): Renamed from end.
36314 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
36315 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
36316 Prepend __ to parameter names.
36318 Undo yesterday's changes.
36320 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
36322 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
36323 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
36326 2005-08-24 Jim Meyering <jim@meyering.net>
36328 Sync from coreutils.
36329 * m4/fcntl-safer.m4: New file.
36331 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
36332 and object files for this module.
36334 2005-08-24 Jim Meyering <jim@meyering.net>
36336 Sync from coreutils.
36337 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
36339 2005-08-24 Jim Meyering <jim@meyering.net>
36341 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
36342 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
36344 2005-08-24 Jim Meyering <jim@meyering.net>
36346 * modules/fcntl-safer: New module.
36347 * modules/fts (Depends-on): Add fcntl-safer.
36348 * MODULES.html.sh (File descriptor based Input/Output):
36351 2005-08-24 Bruno Haible <bruno@clisp.org>
36353 Support for unit test modules.
36354 * modules/README: Mention tests modules.
36355 * modules/TEMPLATE-TESTS: New file.
36356 * gnulib-tool: New options --extract-tests-module, --with-tests and
36357 --tests-base (unused for the moment).
36358 (testsbase, inctests): New variables.
36359 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
36360 (func_verify_module): Exclude TEMPLATE-TESTS.
36361 (func_verify_nontests_module, func_verify_tests_module): New functions.
36362 (func_get_dependencies): Add implicit dependency for tests modules.
36363 (func_get_tests_module): New function.
36364 (func_modules_transitive_closure): When --with-tests was specified,
36365 include the unit tests as well, unless explicitly avoided.
36366 (func_emit_lib_Makefile_am): Ignore the tests modules here.
36367 (func_emit_tests_Makefile_am): New function.
36368 (func_create_testdir): When --with-tests was specified, emit a
36370 * MODULES.html.sh (Future developments): Update.
36372 2005-08-24 Bruno Haible <bruno@clisp.org>
36374 * modules/tls-tests: New file.
36375 * tests/test-tls.c: New file, from GNU gettext.
36377 2005-08-24 Bruno Haible <bruno@clisp.org>
36379 * modules/lock-tests: New file.
36380 * tests/test-lock.c: New file, from GNU gettext.
36382 2005-08-24 Bruno Haible <bruno@clisp.org>
36384 * lib/lock.h: Add multiple inclusion guard.
36385 * lib/tls.h: Add multiple inclusion guard.
36387 2005-08-24 Bruno Haible <bruno@clisp.org>
36389 * gnulib-tool: Add support for the --aux-dir option to
36390 --create-testdir, --create-megatestdir, --test, --megatest.
36391 (func_create_testdir, func_create_megatestdir): Optionally emit a
36392 AC_CONFIG_AUX_DIR directive.
36393 (create-testdir, create-megatestdir, test, megatest): Provide a
36394 default value for $auxdir.
36396 2005-08-24 Bruno Haible <bruno@clisp.org>
36398 * gnulib-tool (import): Use compound statement instead of subshell
36401 2005-08-24 Bruno Haible <bruno@clisp.org>
36403 * gnulib-tool (import): Change --aux-dir default to "build-aux".
36405 2005-08-24 Bruno Haible <bruno@clisp.org>
36407 * gnulib-tool (func_version): Update.
36409 2005-08-24 Bruno Haible <bruno@clisp.org>
36411 * gnulib-tool (func_import, func_create_testdir,
36412 func_create_megatestdir): Quote all autoconf macro arguments.
36414 2005-08-24 Bruno Haible <bruno@clisp.org>
36416 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
36417 option --force, because --force causes the aclocal.m4 of each
36418 subdirectory to be newer than the corresponding config.h.in.
36420 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
36422 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
36423 All contents moved to gl_REGEX.
36424 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
36425 assume that it does.
36427 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
36429 * lib/regex.h (REG_NOSYS)
36430 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
36431 Define, since POSIX requires it as of 2001.
36433 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
36434 New private symbol, used to keep the enum signed in all cases.
36435 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
36437 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
36439 * lib/regex_internal.c (re_string_skip_chars, register_state):
36441 Remove forward decls; no longer needed now that we use prototypes.
36442 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
36443 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
36444 (clean_state_log_if_needed): Likewise.
36446 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
36448 * config/srclist.txt: Add glibc bugs 1231-1233.
36450 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
36452 Fix problems reported by Sam Steingold in
36453 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
36454 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
36455 assumed that reg_errcode_t is a signed type, which is not
36456 necessarily true if _XOPEN_SOURCE is not defined.
36457 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
36458 since some compilers warn about it otherwise.
36460 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
36462 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
36463 (init_word_char, create_initial_state, duplicate_node_closure):
36464 (fetch_token, peek_token_bracket, build_range_exp):
36465 (build_collating_symbol): Remove forward decls; no longer needed
36466 now that we use prototypes.
36469 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
36470 (re_compile_fastmap_iter, regcomp, regerror, regfree):
36471 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
36472 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
36473 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
36474 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
36475 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
36476 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
36477 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
36478 (build_range_exp, build_collating_symbol, parse_bracket_exp):
36479 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
36480 (build_charclass, build_charclass_op, fetch_number, create_tree):
36481 (create_token_tree, mark_opt_subexp, duplicate_tree):
36482 Use prototypes rather than old-style definitions.
36484 * lib/regex_internal.c:
36485 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
36486 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
36487 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
36488 (re_string_reconstruct, re_string_peek_byte_case):
36489 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
36490 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
36491 (re_node_set_init_copy, re_node_set_add_intersect):
36492 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
36493 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
36494 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
36495 (re_acquire_state, re_acquire_state_context, register_state):
36496 (create_ci_newstate, create_cd_newstate, free_state):
36498 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
36500 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
36501 (re_search_internal, prune_impossible_nodes):
36502 (acquire_init_state_context, check_matching, static):
36503 (check_halt_node_context, check_halt_state_context, proceed_next_node):
36504 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
36505 (update_regs, sift_states_backward, build_sifted_states):
36506 (clean_state_log_if_needed, merge_state_array):
36507 (update_cur_sifted_state, add_epsilon_src_nodes):
36508 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
36509 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
36510 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
36511 (find_recover_state, check_subexp_matching_top, transit_state_mb):
36512 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
36513 (check_arrival, check_arrival_add_next_nodes):
36514 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
36515 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
36516 (check_node_accept_bytes, check_node_accept, extend_buffers):
36517 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
36518 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
36522 * lib/regex_internal.h:
36523 (re_string_allocate, re_string_construct, re_string_reconstruct):
36524 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
36525 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
36526 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
36527 (re_string_context_at, re_string_peek_byte_case):
36528 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
36529 is defined, since we now use prototypes always.
36531 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
36532 C89 or better. All uses removed.
36534 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
36536 * config/srclist.txt: Add glibc bugs 1220-1227.
36538 2005-08-20 Jim Meyering <jim@meyering.net>
36540 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
36541 of unused local, dfa.
36543 2005-08-20 Bruno Haible <bruno@clisp.org>
36545 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
36547 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
36549 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
36550 (re_node_set_insert_last, re_dfa_add_node):
36551 Rename local variables to avoid GCC shadowing warnings.
36553 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
36555 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
36556 [defined lint]: Suppress bogus uninitialized-variable warnings.
36558 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
36559 and let the caller return REG_ESPACE if out of space. This
36560 removes an uninitialied-variable warning with GCC 4.0.1, and also
36561 avoids taking the address of a local variable. All callers
36564 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
36566 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
36567 $LIBCSRC/posix/regexec.c.
36568 Add glibc bug 1217 for regcomp.c.
36570 2005-08-19 Jim Meyering <jim@meyering.net>
36572 * lib/regexec.c (proceed_next_node): Redo local variables to
36573 avoid GCC shadowing warnings.
36575 2005-08-18 Bruno Haible <bruno@clisp.org>
36577 * lib/strstr.c (strstr): Fix return value in multibyte case.
36578 * lib/strcasestr.c (strcasestr): Likewise.
36580 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
36582 * lib/regex.h: Remove useless space-before-tab. From coreutils.
36584 2005-08-17 Jim Meyering <jim@meyering.net>
36586 Make the %s format (seconds since the epoch) work for a negative
36587 number and when used with a zero-padded field width, e.g. %015s.
36589 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
36590 label so that it precedes the code to set `digits'. Otherwise,
36591 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
36592 print `00-22'. Now, it prints `-0022', as it should.
36594 2005-08-17 Bruno Haible <bruno@clisp.org>
36596 * modules/strstr (Files): Add m4/mbrtowc.m4.
36597 (Depends-on): Add mbuiter.
36599 2005-08-17 Bruno Haible <bruno@clisp.org>
36601 * modules/strcasestr: New file.
36602 * MODULES.html.sh (String handling, based on ANSI C 89): Add
36605 2005-08-17 Bruno Haible <bruno@clisp.org>
36607 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
36609 2005-08-17 Bruno Haible <bruno@clisp.org>
36611 * modules/mbuiter: New file.
36612 * MODULES.html.sh (Extended multibyte and wide character utilities):
36615 2005-08-17 Bruno Haible <bruno@clisp.org>
36617 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
36618 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
36620 2005-08-17 Bruno Haible <bruno@clisp.org>
36622 * m4/strcasestr.m4: New file.
36624 2005-08-17 Bruno Haible <bruno@clisp.org>
36626 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
36627 * lib/strstr.c: Completely rewritten, with multibyte locale support.
36629 2005-08-17 Bruno Haible <bruno@clisp.org>
36631 * lib/strcasestr.h: New file.
36632 * lib/strcasestr.c: New file.
36634 2005-08-17 Bruno Haible <bruno@clisp.org>
36636 * lib/strcasecmp.c: Use mbuiter.h.
36638 2005-08-17 Bruno Haible <bruno@clisp.org>
36640 * lib/mbuiter.h: New file.
36642 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
36644 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
36645 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
36646 and gl_GETOPT are both invoked via different paths (as happens
36647 with GNU tar CVS because it uses both argp and getopt), the former
36650 2005-08-16 Bruno Haible <bruno@clisp.org>
36652 * modules/tls: New file.
36653 * MODULES.html.sh (Multithreading): Add tls.
36655 2005-08-16 Bruno Haible <bruno@clisp.org>
36657 * modules/strnlen1: New file.
36658 * MODULES.html.sh (String handling): Add strnlen1.
36660 2005-08-16 Bruno Haible <bruno@clisp.org>
36662 * modules/strcase (Files): Add m4/mbrtowc.m4.
36663 (Depends-on): Add strnlen1, mbchar.
36665 2005-08-16 Bruno Haible <bruno@clisp.org>
36667 * modules/mbiter: New file.
36668 * MODULES.html.sh (Extended multibyte and wide character utilities):
36671 2005-08-16 Bruno Haible <bruno@clisp.org>
36673 * modules/mbfile: New file.
36674 * MODULES.html.sh (Extended multibyte and wide character utilities):
36677 2005-08-16 Bruno Haible <bruno@clisp.org>
36679 * modules/mbchar: New file.
36680 * MODULES.html.sh (Extended multibyte and wide character utilities):
36683 2005-08-16 Bruno Haible <bruno@clisp.org>
36685 * m4/tls.m4: New file, from GNU gettext.
36687 2005-08-16 Bruno Haible <bruno@clisp.org>
36689 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
36691 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
36693 2005-08-16 Bruno Haible <bruno@clisp.org>
36695 * m4/mbiter.m4: New file.
36697 2005-08-16 Bruno Haible <bruno@clisp.org>
36699 * m4/mbfile.m4: New file.
36701 2005-08-16 Bruno Haible <bruno@clisp.org>
36703 * m4/mbchar.m4: New file.
36705 2005-08-16 Bruno Haible <bruno@clisp.org>
36707 * lib/tls.h: New file, from GNU gettext.
36708 * lib/tls.c: New file, from GNU gettext.
36710 2005-08-16 Bruno Haible <bruno@clisp.org>
36712 * lib/strnlen1.h: New file.
36713 * lib/strnlen1.c: New file.
36715 2005-08-16 Bruno Haible <bruno@clisp.org>
36717 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
36718 (mbi_init): Update.
36719 (mbi_avail, mbi_advance): Let the iteration end before the terminating
36720 NUL byte, not after it.
36722 2005-08-16 Bruno Haible <bruno@clisp.org>
36724 * lib/strcase.h (strcasecmp): Add note in comments.
36725 * lib/strncasecmp.c: Use code from strcasecmp.c.
36726 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
36727 (strcasecmp): Work correctly in multibyte locales.
36729 2005-08-16 Bruno Haible <bruno@clisp.org>
36731 * lib/mbiter.h: New file.
36733 2005-08-16 Bruno Haible <bruno@clisp.org>
36735 * lib/mbfile.h: New file.
36737 2005-08-16 Bruno Haible <bruno@clisp.org>
36739 * lib/mbchar.h: New file.
36740 * lib/mbchar.c: New file.
36742 2005-08-16 Bruno Haible <bruno@clisp.org>
36744 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
36745 the valid ones. Makes the comparison operations transitive:
36746 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
36747 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
36749 2005-08-15 Simon Josefsson <jas@extundo.com>
36751 * modules/ssize_t (License): Change to 'unlimited'.
36753 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
36755 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
36757 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
36758 Add comments for each pending glibc patch.
36760 2005-08-15 Bruno Haible <bruno@clisp.org>
36762 * lib/regex.h (__restrict_arr): Don't define to __restrict if
36763 __cplusplus is defined.
36765 2005-08-14 Jim Meyering <jim@meyering.net>
36767 Sync from coreutils.
36769 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
36770 Use the hash-table-based cycle-detection code not just when
36771 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
36772 Reported by James Youngman in
36773 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
36774 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
36775 FTS_TIGHT_CYCLE_CHECK.
36776 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
36777 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
36779 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
36780 * lib/fts.c (fd_safer): Remove decl.
36781 Include fcntl--.h rather than unistd-safer.h
36782 (fts_safe_changedir): Don't call fd_safer; no longer needed
36783 now that we include fcntl--.h.
36785 2005-08-12 Simon Josefsson <jas@extundo.com>
36787 * modules/getndelim2: Use ssize_t module.
36788 * modules/getnline: Likewise.
36789 * modules/safe-read: Likewise.
36790 * modules/xreadlink: Likewise.
36792 * modules/ssize_t: New file.
36794 2005-08-12 Simon Josefsson <jas@extundo.com>
36796 * m4/readline.m4: Look for termcap, curses or ncurses if required.
36798 2005-08-12 Simon Josefsson <jas@extundo.com>
36800 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36803 2005-08-12 Simon Josefsson <jas@extundo.com>
36805 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
36806 readline, getdelim and check_version.
36807 (Support for systems lacking ISO C 99: Sizes of integer types):
36810 2005-08-12 Bruno Haible <bruno@clisp.org>
36812 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
36814 2005-08-11 Simon Josefsson <jas@extundo.com>
36816 * modules/readline: New file.
36818 * modules/strnlen (Files): Add strnlen.h.
36820 2005-08-11 Simon Josefsson <jas@extundo.com>
36822 * m4/readline.m4: New file.
36824 2005-08-11 Simon Josefsson <jas@extundo.com>
36826 * lib/readline.h, readline.c: New file.
36828 2005-08-11 Simon Josefsson <jas@extundo.com>
36830 * doc/gnulib.texi (Initial import, Finishing touches): Mention
36833 2005-08-11 Bruno Haible <bruno@clisp.org>
36835 * lib/strnlen.h (strnlen): Change parameter name to match comment.
36837 2005-08-10 Stepan Kasal <kasal@ucw.cz>
36839 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
36841 2005-08-10 Simon Josefsson <jas@extundo.com>
36843 * tests/test-iconvme.c: New file.
36845 2005-08-10 Simon Josefsson <jas@extundo.com>
36847 * m4/strnlen.m4: New file.
36849 * m4/strndup.m4: Don't check for strnlen declaration, done in
36852 2005-08-10 Simon Josefsson <jas@extundo.com>
36854 * lib/strndup.c: Use strnlen.h.
36856 * lib/strnlen.h: New file.
36858 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
36862 2005-08-02 Simon Josefsson <jas@extundo.com>
36864 * modules/readline: New file.
36866 2005-08-02 Simon Josefsson <jas@extundo.com>
36868 * modules/getdelim: New file.
36870 * modules/getline: Rewrite, don't use getndelim2.
36872 2005-08-02 Simon Josefsson <jas@extundo.com>
36874 * m4/getline.m4: Separate out getdelim stuff into separate module.
36876 * m4/getdelim.m4: New file.
36878 2005-08-02 Simon Josefsson <jas@extundo.com>
36880 * lib/getline.h, getline.c: Rewrite.
36882 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
36884 2005-07-31 Bruno Haible <bruno@clisp.org>
36886 * lib/lock.h (gl_lock_initializer): New macro.
36887 (gl_lock_define_initialized): Use it.
36888 (gl_rwlock_initializer): New macro.
36889 (gl_rwlock_define_initialized): Use it.
36890 (gl_recursive_lock_initializer): New macro.
36891 (gl_recursive_lock_define_initialized): Use it.
36893 2005-07-30 Karl Berry <karl@gnu.org>
36895 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
36896 Report from Ben Pfaff, regarding getopt.
36898 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
36900 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
36902 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
36903 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
36904 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
36905 (gl_GETOPT): Use the new macros. Most of the implementation
36906 is moved to the new macros. This is for programs like Emacs
36907 that don't want all the functionality of gl_GETOPT.
36909 2005-07-26 Bruno Haible <bruno@clisp.org>
36911 * m4/lock.m4: Update from GNU gettext.
36913 2005-07-26 Bruno Haible <bruno@clisp.org>
36915 * lib/lock.h: Update from GNU gettext.
36916 * lib/lock.c: Update from GNU gettext.
36918 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
36920 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
36921 obsolescent AC_TRY_RUN. Include the default includes files, for
36924 2005-07-24 Bruno Haible <bruno@clisp.org>
36926 * modules/visibility: New file.
36927 * MODULES.html.sh (Misc): Add visibility.
36929 2005-07-24 Bruno Haible <bruno@clisp.org>
36931 * m4/visibility.m4: New file.
36933 2005-07-24 Bruno Haible <bruno@clisp.org>
36935 * doc/visibility.texi: New file.
36937 2005-07-22 Bruno Haible <bruno@clisp.org>
36939 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
36940 $(ALLOCA_H), redundant through BUILT_SOURCES.
36941 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
36942 redundant through BUILT_SOURCES.
36943 * modules/byteswap (Makefile.am): Remove explicit dependency on
36944 $(BYTESWAP_H), redundant through BUILT_SOURCES.
36945 * modules/fnmatch (Makefile.am): Remove explicit dependency on
36946 $(FNMATCH_H), redundant through BUILT_SOURCES.
36947 * modules/getopt (Makefile.am): Remove explicit dependency on
36948 $(GETOPT_H), redundant through BUILT_SOURCES.
36949 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
36950 redundant through BUILT_SOURCES.
36951 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
36952 redundant through BUILT_SOURCES.
36953 * modules/stdbool (Makefile.am): Remove explicit dependency on
36954 $(STDBOOL_H), redundant through BUILT_SOURCES.
36955 * modules/stdint (Makefile.am): Remove explicit dependency on
36956 $(STDINT_H), redundant through BUILT_SOURCES.
36957 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
36958 Remove explicit dependency on $(SYSEXITS_H).
36959 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
36961 2005-07-18 Simon Josefsson <jas@extundo.com>
36963 * lib/check-version.c (check_version): Accept identical versions too.
36965 2005-07-18 Bruno Haible <bruno@clisp.org>
36967 * modules/lock: New file.
36968 * MODULES.html.sh (Multithreading): New section.
36970 2005-07-18 Bruno Haible <bruno@clisp.org>
36972 * m4/lock.m4: New file, from GNU gettext.
36974 2005-07-18 Bruno Haible <bruno@clisp.org>
36976 * lib/lock.h: New file, from GNU gettext.
36977 * lib/lock.c: New file, from GNU gettext.
36979 2005-07-18 Bruno Haible <bruno@clisp.org>
36981 * lib/lock.h (gl_once_t): New type.
36982 (gl_once_define, gl_once): New macros.
36983 * lib/lock.c (fresh_once): New variable.
36984 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
36987 2005-07-16 Simon Josefsson <jas@extundo.com>
36989 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
36990 workaround, suggested by Bruno.
36992 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
36994 * modules/xalloc (Depends-on): Add xalloc-die.
36995 * modules/xvasprintf (Depends-on): Add xalloc-die.
36997 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
36999 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
37000 with a minor change.
37002 2005-07-15 Bruno Haible <bruno@clisp.org>
37004 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
37005 When using lib/poll.c, define poll as rpl_poll.
37007 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
37009 * modules/argp (Depends-on): Remove unlocked-io.
37011 2005-07-14 Derek Price <derek@ximbiot.com>
37013 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
37014 for glob symlink bug.
37016 2005-07-14 Bruno Haible <bruno@clisp.org>
37018 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
37019 Instead, test for *_unlocked function declarations directly.
37021 2005-07-11 Simon Josefsson <jas@extundo.com>
37023 * modules/size_max: New file.
37025 * modules/xsize: Depend on size_max module for size_max.m4.
37027 2005-07-11 Simon Josefsson <jas@extundo.com>
37029 * lib/size_max.h: New file.
37031 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
37033 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
37034 copyright symbol and the year.
37035 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
37036 (version_etc_va): Use parameterized copyright notice.
37037 Reword to conform to the current GNU coding standards.
37039 2005-07-11 Karl Berry <karl@gnu.org>
37041 * doc/gnulib.texi (Quoting): new node.
37042 (Initial import): more info, from Patrice.
37044 2005-07-11 Bruno Haible <bruno@clisp.org>
37046 * gnulib-tool (func_usage): Document option --avoid.
37047 (Command line options): Handle --avoid.
37048 (func_acceptable): New function.
37049 (func_modules_transitive_closure): Use it.
37051 2005-07-11 Bruno Haible <bruno@clisp.org>
37053 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
37054 Reported by Jim Meyering.
37056 2005-07-10 Bruno Haible <bruno@clisp.org>
37058 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
37059 Needed when size_t is smaller than 'unsigned int'.
37060 Reported by Paul Eggert.
37062 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
37064 * modules/argp (Depends-on): Add unlocked-io
37066 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
37068 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
37071 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
37073 * config/srclist.txt: Comment out regcomp.c, since we have a porting
37076 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
37077 and Paul Eggert <eggert@cs.ucla.edu>
37079 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
37080 in wint_t, not wchar_t. Remove now-unnecessary cast.
37082 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
37084 * modules/regex (Files): Add lib/regex_internal.c,
37085 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
37086 (Depends-on): Add extensions.
37087 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
37089 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
37091 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
37093 * m4/same.m4 (gl_SAME): Likewise.
37094 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
37096 * m4/regex.m4: Adjust to new libc regex implementation.
37097 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
37098 all the .c and .h parts of (the new) regex.
37099 Quote the m4 stuff better.
37100 Check for RE_ICASE bug of old gnulib.
37101 Check for REG_STARTEND of recent libc.
37102 Rename local variables from jm_* to gl_*.
37103 Quote operand of "test -f".
37104 Say "recent enough" version of libc, not "version 2".
37105 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
37106 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
37107 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
37108 Remove check for btowc, isascii.
37109 Require AM_LANGINFO_CODESET.
37111 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
37113 * lib/regex.c, regex.h: Sync from libc.
37114 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
37116 New files, synced from libc, except that regex_internal.h
37117 currently has a small porting fix.
37119 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
37121 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
37122 regex_internal.c, regexec.c.
37123 Add regex_internal.h too, but as a comment, since the libc version
37124 is currently broken in gnulib mode.
37126 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
37128 Support programs like Emacs that use gnulib but not gettext.
37129 * MODULES.html.sh (Internationalization functions): Add gettext-h.
37130 * modules/gettext-h: New file.
37131 * modules/gettext (Files): Remove lib/gettext.h.
37132 (Depends-on): Add gettext-h.
37133 (Makefile.am): Remove lib_SOURCES.
37134 * modules/argmatch, modules/c-stack, modules/closeout:
37135 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
37136 * modules/execute, modules/file-type, modules/getaddrinfo:
37137 * modules/getopt, modules/human, modules/javacomp:
37138 * modules/javaexec, modules/mkdir-p, modules/obstack:
37139 * modules/openat, modules/pagealign_alloc, modules/pipe:
37140 * modules/quotearg, modules/regex, modules/rpmatch:
37141 * modules/unicodeio, modules/userspec, modules/version-etc:
37142 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
37144 Depend on gettext-h, not gettext.
37146 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
37148 * gnulib-tool (func_import): Add support for 'public domain' license.
37149 * modules/alloca, modules/atexit, modules/memmove:
37150 Now public domain, not GPL.
37151 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
37152 * modules/realloc, modules/strerror, modules/strtod:
37155 2005-07-05 Bruno Haible <bruno@clisp.org>
37157 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
37158 autoconf CVS. Needed for mingw.
37160 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
37162 Remove the dependency of the strftime module on the tzset module.
37163 * modules/strftime (Depends-on): Remove dependency on tzset.
37165 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
37167 Remove the dependency of the strftime module on the tzset module.
37168 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
37169 gl_FUNC_TZSET_CLOBBER.
37171 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
37173 Remove the dependency of the strftime module on the tzset module.
37174 * lib/strftime.c (my_strftime)
37175 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
37176 Copy the input structure, to work around some of the bug with
37177 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
37178 Solaris releases, you should also use the tzset module, but we won't
37179 require it as a dependency any more since we don't want LGPLed code
37180 to depend on GPLed code.
37182 2005-07-02 Jim Meyering <jim@meyering.net>
37184 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
37185 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
37186 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
37187 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
37189 2005-07-02 Jim Meyering <jim@meyering.net>
37191 * lib/backupfile.c (backup_args): Change a `0' to NULL.
37193 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
37195 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
37196 declares only 'struct timespec;' (!).
37198 2005-07-01 Jim Meyering <jim@meyering.net>
37200 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
37201 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
37202 * lib/save-cwd.c, tempname.c:
37203 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
37204 and don't include <sys/file.h>).
37206 2005-06-29 Jim Meyering <jim@meyering.net>
37208 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
37209 type name. Use the variable name instead.
37210 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
37213 2005-06-28 Simon Josefsson <jas@extundo.com>
37215 * modules/check-version (Files): Add check-version.m4.
37217 2005-06-28 Simon Josefsson <jas@extundo.com>
37219 * m4/check-version.m4: New file, suggested by Jim Meyering
37220 <jim@meyering.net>.
37222 2005-06-28 Simon Josefsson <jas@extundo.com>
37224 * lib/check-version.h, lib/check-version.c: New files.
37226 2005-06-28 Simon Josefsson <jas@extundo.com>
37228 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
37229 collision with global variable. Better indentation. Don't
37230 increment buffer pointer beyond buffer end. Based on comments
37231 from Paul Eggert <eggert@cs.ucla.edu>.
37233 * lib/base64.h: Indent.
37235 2005-06-28 Simon Josefsson <jas@extundo.com>
37237 * doc/gnulib.texi (Library version handling): New section.
37239 2005-06-28 Jim Meyering <jim@meyering.net>
37241 * check-module (find_included_lib_files): Hard-code another
37242 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
37243 but modules/fts-lgpl (correctly) does not list those files.
37245 * modules/canonicalize (Files): Add lib/pathmax.h.
37247 2005-06-25 Simon Josefsson <jas@extundo.com>
37249 * modules/check-version: New file.
37251 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
37253 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
37254 initializer of struct addrinfo, as an indication that we don't
37255 care how many members the structure has.
37257 2005-06-24 Derek Price <derek@ximbiot.com>
37258 and Bruno Haible <bruno@clisp.org>
37260 Remove stat module & update lstat.
37261 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
37262 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37263 * m4/stat.m4: Remove this file.
37265 2005-06-24 Derek Price <derek@ximbiot.com>
37266 and Bruno Haible <bruno@clisp.org>
37268 Remove stat module & update lstat.
37269 * lib/stat.c: Remove this file...
37270 (slash_aware_lstat): ...moving this content and its support...
37271 * lib/lstat.c (rpl_lstat): ...into here.
37272 * lib/lstat.h: New file.
37274 2005-06-24 Derek Price <derek@ximbiot.com>
37275 and Bruno Haible <bruno@clisp.org>
37277 Remove stat module & update lstat.
37278 * config/srclist.txt (libc sources): Remove stat.
37280 2005-06-24 Derek Price <derek@ximbiot.com>
37281 and Bruno Haible <bruno@clisp.org>
37283 Remove stat module & update lstat.
37284 * MODULES.html.sh (stat): Remove.
37285 * MODULES.html: Regenerated.
37286 * modules/lstat (Description): Correct function name.
37287 (Files): Add "lstat.h".
37288 (Depends-on): Remove stat, add xalloc, stat-macros.
37289 * modules/stat: Remove this file.
37290 (Include): Add "lstat.h", remove <sys/stat.h>.
37292 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
37294 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
37295 (ranged_convert): Don't save conversion in a temporary struct.
37296 This causes a warning with GCC 4.0.0, and anyway in the typical
37297 case it's not worth the extra 100 bytes or so of code.
37298 (ranged_convert, __mktime_internal): When calling a function via a
37299 pointer P, use P () rather than (*P) (), as we now assume C89 or
37302 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
37304 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
37305 "who -r" failed to give output. Problem reported by Tim Waugh.
37307 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
37308 (xcalloc): Use it to avoid needless tests.
37309 Problem reported by Jim Meyering.
37311 2005-06-20 Derek Price <derek@ximbiot.com>
37313 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
37314 unnecessary for Autoconfs > 2.59c.
37316 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
37318 * lib/argp.h (__option_is_short): Check upper limit of
37319 __key. Isprint() requires its argument to have the value
37320 of an unsigned char or EOF.
37322 2005-06-16 Jim Meyering <jim@meyering.net>
37324 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
37325 when either N or S is zero.
37327 2005-06-16 Derek Price <derek@ximbiot.com>
37329 * m4/bison.m4: Declare YACC & YFLAGS precious.
37331 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
37333 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
37334 multibyte string or pattern, fall back on unibyte matching.
37335 Problem reported by James Youngman.
37337 2005-06-08 Bruno Haible <bruno@clisp.org>
37339 * modules/csharpcomp: New file.
37340 * MODULES.html.sh (C#): Add csharpcomp.
37342 2005-06-08 Bruno Haible <bruno@clisp.org>
37344 * m4/csharpcomp.m4: New file, from GNU gettext.
37346 2005-06-08 Bruno Haible <bruno@clisp.org>
37348 * lib/csharpcomp.h: New file, from GNU gettext.
37349 * lib/csharpcomp.c: New file, from GNU gettext.
37350 * lib/csharpcomp.sh.in: New file, from GNU gettext.
37352 2005-06-08 Bruno Haible <bruno@clisp.org>
37354 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
37357 2005-06-07 Derek Price <derek@ximbiot.com>
37360 * lib/glob_.h: Indent nested #ifdef.
37362 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
37364 Sync from coreutils.
37365 Use "file name" when talking about file names, instead of "filename"
37366 or "path", as per the GNU coding standards.
37367 * lib/mkdir-p.c: Renamed from makepath.c.
37368 (make_dir_parents): Renamed from make_path. All callers changed.
37369 * lib/mkdir-p.h: Likewise. All includers changed.
37370 * lib/filenamecat.c: Renamed from path-concat.c.
37371 (file_name_concat): Renamed from path_concat. All callers changed.
37372 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
37373 * lib/filenamecat.h: Likewise. All includers changed.
37374 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
37375 in comments or local variable names.
37376 * lib/basename.c: Likewise.
37377 * lib/canonicalize.c, canonicalize.h: Likewise.
37378 * lib/dirname.c, dirname.h: Likewise.
37379 * lib/euidaccess.c: Likewise.
37380 * lib/exclude.c: Likewise
37381 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
37382 * lib/fsusage.c, fsuage.h: Likewise.
37383 * lib/fts.c, fts_.h: Likewise.
37384 * lib/getcwd.c: Likewise.
37385 * lib/getloadavg.c: Likewise.
37386 * lib/mkstemp.c: Likewise.
37387 * lib/mountlist.c, mountlist.h: Likewise.
37388 * lib/openat.c, openat.h: Likewise.
37389 * lib/readlink-stub.c: Likewise.
37390 * lib/readutmp.c, readutmp.h: Likewise.
37391 * lib/rename.c: Likewise.
37392 * lib/rmdir.c: Likewise.
37393 * lib/same.c: Likewise.
37394 * lib/savedir.c: Likewise.
37395 * lib/stripslash.c: Likewise.
37396 * lib/tempname.c: Likewise.
37397 * lib/xreadlink.c: Likewise.
37398 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
37400 * lib/exclude.h: Likewise.
37402 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
37403 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37404 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
37405 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37406 * lib/pathmax.h: Include <limits.h> unconditionally, since other
37407 files have been getting away with it for years (MORE/BSD 4.3
37409 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
37410 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37412 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
37413 Define to 256, not 255, as per modern POSIX.
37415 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
37417 Sync from coreutils.
37418 Use "file name" when talking about file names, instead of "filename"
37419 or "path", as per the GNU coding standards.
37420 * MODULES.html.sh: mkdir-p renamed from makepath.
37421 filenamecat renamed from path-concat.
37422 * modules/filenamecat: Renamed from modules/path-concat.
37423 (Files): filenamecat.h and filenamecat.c renamed from
37424 path-concat.h and path-concat.c.
37425 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
37426 (Include): filenamecat.h, not path-concat.h.
37427 * modules/mkdir-p: Renamed from modules/makepath.
37428 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
37430 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
37431 (Include): mkdir-p.h, not makepath.h.
37433 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
37435 Sync from coreutils.
37436 * m4/mkdir-p.m4: Renamed from makepath.m4.
37437 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
37438 Rename files from makepath.c to mkdir-p.c, and from
37439 makepath.h to mkdir-p.h.
37440 * m4/filenamecat.m4: Renamed from path-concat.m4.
37441 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
37442 Rename files from path-concat.c to filenamecat.c,
37443 and from path-concat.h to filenamecat.h.
37444 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
37445 "file name" in local variables or comments.
37446 * m4/rename.m4: Likewise.
37448 2005-06-01 Bruno Haible <bruno@clisp.org>
37450 * modules/csharpexec: New file.
37451 * MODULES.html.sh (C#): New section.
37453 2005-06-01 Bruno Haible <bruno@clisp.org>
37455 * m4/csharp.m4: New file, from GNU gettext.
37456 * m4/csharpexec.m4: New file, from GNU gettext.
37458 2005-06-01 Bruno Haible <bruno@clisp.org>
37460 * lib/csharpexec.h: New file, from GNU gettext.
37461 * lib/csharpexec.c: New file, from GNU gettext.
37462 * lib/csharpexec.sh.in: New file, from GNU gettext.
37464 2005-05-31 Derek Price <derek@ximbiot.com>
37465 Paul Eggert <eggert@cs.ucla.edu>
37468 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
37470 2005-05-31 Derek Price <derek@ximbiot.com>
37471 Paul Eggert <eggert@cs.ucla.edu>
37474 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
37476 2005-05-29 Derek Price <derek@ximbiot.com>
37478 * config/srclist.txt (glob_.h, glob.c): Add these files.
37480 2005-05-29 Derek Price <derek@ximbiot.com>
37482 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
37483 * modules/glob: New file.
37484 * modules/getlogin_r: Add link to POSIX spec in description.
37486 2005-05-29 Derek Price <derek@ximbiot.com>
37487 Paul Eggert <eggert@cs.ucla.edu>
37489 * m4/glob.m4: New file.
37491 2005-05-29 Derek Price <derek@ximbiot.com>
37492 Paul Eggert <eggert@cs.ucla.edu>
37494 * lib/glob_.h, lib/glob.c: New files.
37496 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
37498 * modules/fts (Files): Remove m4/inttypes-pri.m4.
37499 * modules/fts-lgpl (Depends-on): Remove gettext.
37501 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
37503 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
37504 and don't require gt_INTTYPES_PRI.
37506 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
37508 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
37510 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
37511 the configuration hassle isn't worth it.
37512 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
37513 (LONGEST_MODIFIER, PRIuMAX): Remove.
37515 2005-05-27 Bruno Haible <bruno@clisp.org>
37517 * lib/getlogin_r.h: Remove second include of <stddef.h>.
37519 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
37521 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
37522 _POSIX_PTHREAD_SEMANTICS for Solaris.
37524 2005-05-25 Derek Price <derek@ximbiot.com>
37526 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
37528 2005-05-25 Derek Price <derek@ximbiot.com>
37529 Paul Eggert <eggert@cs.ucla.edu>
37531 * modules/getlogin_r, m4/getlogin_r.m4: New files.
37532 * lib/getlogin_r.c, getlogin_r.h: New files.
37534 2005-05-25 Bruno Haible <bruno@clisp.org>
37535 Derek Price <derek@ximbiot.com>
37537 * lib/getlogin_r.h: Simplify API documentation.
37539 2005-05-23 Derek Price <derek@ximbiot.com>
37541 * modules/minmax (Files): Add m4/minmax.m4.
37542 (configure.ac): Add gl_MINMAX.
37544 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
37546 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
37547 so that unistd-safer.h (GPL'ed code) need not be included.
37549 2005-05-22 Bruno Haible <bruno@clisp.org>
37551 * m4/minmax.m4: New file.
37552 Based on a patch by Derek Price <derek@ximbiot.com>.
37554 2005-05-22 Bruno Haible <bruno@clisp.org>
37556 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
37557 (INT64_MIN): Fix definition.
37558 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
37560 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
37561 NEED_SIGNED_INT_TYPES.
37563 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
37564 HAVE_SYSTEM_INTTYPES.
37566 2005-05-22 Bruno Haible <bruno@clisp.org>
37568 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
37569 Also include <sys/param.h> if it defines MIN, MAX.
37570 Based on a patch by Derek Price <derek@ximbiot.com>.
37572 2005-05-21 Jim Meyering <jim@meyering.net>
37574 * modules/fts (Files): Add m4/inttypes-pri.m4.
37575 (Depends-on): Add lstat and remove gettext. Alphabetize.
37577 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
37580 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
37581 (setup_dir, free_dir): New functions.
37582 (enter_dir, leave_dir): Define trivial
37583 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
37584 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
37585 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
37586 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
37587 Move to fts-cycle.c.
37588 (fts_open): Use setup_dir.
37589 (fts_close): Use free_dir.
37590 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
37591 This adds a label and some gotos, but the alternatives were messier.
37592 Check for memory allocation failure when entering a dir.
37593 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
37594 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
37595 (FTS): New member fts_cycle, that is a union that contains the
37596 old active_dir_ht and cycle_state. All uses changed to mention
37597 fts_cycle.ht and fts_cycle.state.
37598 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
37599 fts.c, with the following changes:
37600 (setup_dir, free_dir): New functions.
37601 (enter_dir): Now returns bool. Return true if successful, false
37602 if memory exhausted. All callers changed.
37603 Do not bother partly cleaning up on
37604 memory allocation failure; that is free_dir's job.
37605 However, free ad if hash_insert fails, to avoid memory leak.
37606 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
37607 fts->fts_options to see which union member to use.
37609 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
37611 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
37612 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
37614 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
37616 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
37618 2005-05-20 Jim Meyering <jim@meyering.net>
37620 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
37621 Now a macro, to pacify GCC.
37623 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
37625 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
37628 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
37630 * lib/chown.c (rpl_chown): Return -1 on failure.
37632 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
37634 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
37635 Don't check for stddef.h.
37636 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
37637 don't use its results.
37638 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
37639 since we include them unconditionally. Don't require
37640 AM_STDBOOL_H, since stdbool is a prerequisite.
37641 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
37642 since we assume C89 or better.
37643 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
37644 as we don't use their results.
37645 Don't check for fchdir, memmove, memset, strrchr, as we use
37646 them unconditionally.
37647 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
37648 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
37650 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
37652 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
37653 Include <stddef.h> unconditionally, since we assume C89 now.
37654 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
37655 * lib/fts.c: Include fts_.h first, to check interface.
37656 Do not include intprops.h; no longer needed.
37657 Include cycle-check.h and hash.h, since fts_.h no longer does.
37658 Remove unnecessary casts of closedir to void.
37659 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
37660 decide whether to decrement nlinks.
37661 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
37662 (FTS): Use struct hash_table * instead of Hash_table, so that
37663 we no longer need to include hash.h here.
37665 2005-05-18 Jim Meyering <jim@meyering.net>
37667 * modules/dirfd (License): Change to LGPL. Most of the code
37668 is already in the public domain.
37670 2005-05-18 Jim Meyering <jim@meyering.net>
37672 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
37673 Reported by Yoann Vandoorselaere.
37675 2005-05-17 Jim Meyering <jim@meyering.net>
37677 * m4/fts.m4: New file, from coreutils.
37679 2005-05-17 Jim Meyering <jim@meyering.net>
37681 * lib/fts.c, lib/fts_.h: New files, from coreutils.
37683 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
37685 Sync from coreutils.
37686 * m4/unlinkdir.m4: New file.
37688 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
37690 Sync from coreutils.
37691 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
37692 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
37693 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
37694 White space changes only.
37695 * lib/makepath.c (make_path): Port to hosts where leading "//" is
37697 * lib/yesno.c: Include getline.h, not ctype.h.
37698 (yesno): Don't remove leading white space; POSIX doesn't allow it.
37699 Use getline to remove arbitrary restriction on response length.
37701 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
37703 * config/srclist-update: Spell out "Street" in FSF postal
37704 mail address; this is the style the FSF seems to prefer.
37706 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
37707 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
37708 this updates FSF postal mail address.
37710 Sync from coreutils.
37711 * modules/unlinkdir: New file.
37712 * modules/yesno (Depends-on): Add getline.
37713 * MODULES.html.sh (File system functions): Add unlinkdir.
37715 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
37717 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
37719 Change the initial comment to refer to GPL, not LGPL.
37720 gnulib-tool will change it to LGPL as needed.
37722 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
37723 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
37724 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
37725 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
37726 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
37727 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
37728 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
37729 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
37730 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
37731 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
37732 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
37733 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
37734 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
37735 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
37736 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
37737 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
37738 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
37739 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
37740 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
37741 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
37742 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
37743 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
37744 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
37745 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
37746 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
37747 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
37748 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
37749 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
37750 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
37751 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
37752 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
37753 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
37754 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
37755 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
37756 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
37757 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
37758 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
37759 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
37760 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
37761 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
37762 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
37763 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
37764 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
37765 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
37766 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
37767 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
37768 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
37769 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
37770 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
37771 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
37772 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
37773 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
37774 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
37775 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
37776 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
37777 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
37778 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
37779 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
37780 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
37781 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
37782 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
37783 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
37784 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
37785 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
37786 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
37787 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
37788 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
37789 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
37790 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
37791 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
37792 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
37793 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
37794 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
37795 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
37796 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
37797 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
37798 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
37799 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
37800 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
37801 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
37802 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
37803 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
37804 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
37805 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
37806 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
37807 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
37808 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
37809 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
37810 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
37811 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
37812 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
37813 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
37814 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
37815 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
37816 lib/yesno.c, lib/yesno.h:
37817 Update FSF postal mail address.
37819 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
37821 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
37822 tests/test-memmem.c, tests/test-stpncpy.c:
37823 Update FSF postal mail address.
37825 2005-05-13 Bruno Haible <bruno@clisp.org>
37827 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
37828 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
37829 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
37830 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
37831 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
37832 Add support for 64-bit integers in the MSVC compiler.
37834 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
37836 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
37838 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
37840 * gnulib-tool (func_import): Sort and uniquify recommended includes.
37842 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
37844 * doc/getdate.texi (General date syntax): Don't say that date
37845 date --iso-8601=ns generates acceptable dates; it doesn't yet.
37846 Problem reported by Nic Ferrier.
37848 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37850 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
37851 specified in ai_socktype. Fix invalid ai_protocol
37852 check. ai_protocol is usually set to 0 or depending on
37853 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
37854 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
37855 ai_socktype / ai_protocol in the returned addrinfo structure.
37857 2005-05-10 Simon Josefsson <jas@extundo.com>
37859 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
37860 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37862 2005-05-10 Karl Berry <karl@gnu.org>
37864 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
37865 (from http://www.gnu.org/licenses).
37866 * doc/COPYING.LIB: also rename to COPYING.LESSER.
37867 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
37870 2005-05-10 Karl Berry <karl@gnu.org>
37872 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
37873 (COPYING.DOC): remove.
37875 * config/srclist-update: new FSF address.
37877 2005-05-10 Derek Price <derek@ximbiot.com>
37879 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
37882 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37883 Bruno Haible <bruno@clisp.org>
37885 * modules/inet_ntop: New file.
37886 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37889 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37890 Bruno Haible <bruno@clisp.org>
37892 * m4/inet_ntop.m4: New file.
37894 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37895 Bruno Haible <bruno@clisp.org>
37897 * lib/inet_ntop.h: New file.
37898 * lib/inet_ntop.c: New file, from glibc with modifications.
37900 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
37902 * modules/time_r (License): Change to LGPL.
37903 * modules/extensions (License): Change to LGPL. Actually,
37904 the license is more permissive than that, but currently gnulib-tool
37905 doesn't know how to handle more-permissive licenses.
37907 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
37908 Problem reported by Dave Love.
37910 2005-05-08 Jim Meyering <jim@meyering.net>
37912 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
37915 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
37917 * modules/argmatch (Depends-on): Add stdbool.
37918 * modules/backupfile (Depends-on): Likewise.
37919 * modules/chdir-long (Depends-on): Likewise.
37920 * modules/closeout (Depends-on): Likewise.
37921 * modules/cycle-check (Depends-on): Likewise.
37922 * modules/dirname (Depends-on): Likewise.
37923 * modules/fnmatch (Depends-on): Likewise.
37924 * modules/fsusage (Depends-on): Likewise.
37925 * modules/fwriteerror (Depends-on): Likewise.
37926 * modules/getcwd (Depends-on): Likewise.
37927 * modules/getloadavg (Depends-on): Likewise.
37928 * modules/hard-locale (Depends-on): Likewise.
37929 * modules/makepath (Depends-on): Likewise.
37930 * modules/mountlist (Depends-on): Likewise.
37931 * modules/nanosleep (Depends-on): Likewise.
37932 * modules/posixtm (Depends-on): Likewise.
37933 * modules/quotearg (Depends-on): Likewise.
37934 * modules/readtokens (Depends-on): Likewise.
37935 * modules/readtokens0 (Depends-on): Likewise.
37936 * modules/readutmp (Depends-on): Likewise.
37937 * modules/save-cwd (Depends-on): Likewise.
37938 * modules/strftime (Depends-on): Likewise.
37939 * modules/userspec (Depends-on): Likewise.
37940 * modules/utimecmp (Depends-on): Likewise.
37941 * modules/xgetcwd (Depends-on): Likewise.
37942 * modules/xnanosleep (Depends-on): Likewise.
37943 * modules/xstrtod (Depends-on): Likewise.
37944 * modules/yesno (Depends-on): Likewise.
37946 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
37948 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
37951 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
37953 Merge from coreutils. Among other things,
37954 add bulletproofing for cases where stdin, stdout, or stderr are closed.
37955 * lib/fd-safer.c: New file.
37956 * lib/fcntl-safer.h, open-safer.c: Remove.
37957 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
37958 * lib/dup-safer.c: Include unistd-safer.h first.
37959 Don't include errno.h.
37960 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
37961 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
37962 * lib/file-type.c: Rely on file-type.h change.
37963 * lib/getloadavg.c: Include unistd-safer.h.
37964 (getloadavg): Use safer open.
37965 * lib/getusershell.c: Include "stdio-safer.h".
37966 (getusershell): Use safer fopen.
37967 * lib/long-options.c (long_options): Use NULL rather than 0.
37968 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
37970 * lib/modechange.c: Likewise.
37971 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
37972 (MODE_DONE): New constant.
37973 (struct mode_change): Remove 'next' member.
37974 (make_node_op_equals): New function; like the old one of the
37975 same name, except it allocates an array.
37976 (mode_compile, mode_create_from_ref): Use it.
37977 (mode_compile): Allocate result as an array, not a linked list.
37978 Parse octal string ourself, so that we catch mistakes like "+0".
37979 (mode_adjust): Arg is an array, not a linked list.
37980 * lib/modechange.c: Include stat-macros.h, xalloc.h.
37981 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
37982 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
37983 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
37984 Remove. This is now stat-macros.h's job.
37985 (talloc): Remove. All callers replaced by xalloc, so that
37986 our invokers don't have to worry about reporting memory failures.
37987 (make_node_op_equals): Remove.
37988 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
37990 (struct mode_change): Moved here from modechange.h.
37991 (mode_append_entry): Remove.
37992 (mode_compile): Remove MASKED_OPS arg, since it encouraged
37993 apps to have incorrect behavior. Use simpler algorithm for head
37994 and tail. Don't futz with umask; that's now the job of mode_adjust.
37995 Detect more invalid usages rather than having somewhat-random behavior.
37996 Don't insert an "a=" action, as that leads to incorrect behavior.
37997 (mode_compile, mode_create_from_ref): Return NULL on error instead
37998 of an enum, since now there's only one way to have an error. All
38000 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
38001 at the correct time. Simplify calculation of "+u" and its ilk.
38002 Don't mishandle "+X".
38003 (mode_free): Remove "register" and localize decls.
38004 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
38005 (struct mode_change): Move to modechange.c; callers don't
38006 need to see this stuff.
38007 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
38008 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
38009 (mode_change, mode_adjust): Reflect the new signatures noted above.
38010 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
38011 that might redefine system include files.
38012 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
38013 (my_usleep): Use NULL rather than (void *) 0.
38014 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
38015 Use siginterrupt to specify that system calls should be interrupted.
38016 (rpl_nanosleep): Move initialization of suspended closer to call of
38018 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
38019 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
38020 (desirable_utmp_entry): New function.
38021 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
38022 using x2nrealloc, to simplify logic.
38023 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
38024 size calculation. Do not assume utmp file is a regular file.
38025 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
38026 (READ_UTMP_CHECK_PIDS): New constant.
38027 * lib/save-cwd.c: Include unistd-safer.h.
38028 (save_cwd): Use fd_safer.
38029 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
38030 [!_LIBC] Include "stat-macros.h" instead.
38031 * lib/unistd-safer.h (fd_safer): New decl.
38033 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
38035 * modules/getloadavg (Depends-on): Add unistd-safer.
38036 * modules/getusershell (Depends-on): Add stdio-safer.
38037 * modules/lstat (Depends-on): Remove xalloc.
38038 * modules/mkstemp (Depends-on): Add stat-macros.
38039 * modules/modechange (Depends-on): Remove xstrtol.
38040 Add stat-macros, xalloc.
38041 * modules/save-cwd (Depends-on): Add unistd-safer.
38042 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
38043 * modules/unistd-safer (Files): Add lib/fd-safer.c
38044 (Makefile.am): Remove lib_SOURCES.
38046 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
38047 Remove fcntl-safer; unistd-safer supersedes it.
38049 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
38051 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
38053 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
38054 (gl_PREREQ_CHOWN): Remove.
38055 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
38056 it. Don't require AC_HEADER_STAT.
38057 (gl_PREREQ_LSTAT): Remove.
38058 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
38059 Don't require AC_HEADER_STAT.
38060 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
38061 (gl_PREREQ_RMDIR): Remove.
38062 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
38063 mention stat-macros.h or AC_HEADER_STAT, since we'll make
38064 the stat-macros module a prerequisite.
38065 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
38066 * m4/filemode.m4 (gl_FILEMODE): Likewise.
38067 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
38068 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
38069 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
38071 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
38072 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
38074 * m4/fcntl-safer.m4: Remove.
38075 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
38076 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
38077 Invoke gl_PREREQ_FD_SAFER.
38078 (gl_PREREQ_FD_SAFER): New macro.
38079 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
38080 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
38081 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
38082 Remove duplicate call to AC_LIBOBJ(readutmp).
38083 (gl_PREREQ_READUTMP): Remove. All uses inlined.
38085 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
38086 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
38088 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
38090 * MODULES.html.sh (Misc): Add byteswap.
38092 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
38094 * modules/getcwd (Depends-on): Add extensions.
38095 * modules/openat (Depends-on): Likewise.
38097 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
38099 * modules/byteswap: New file.
38101 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
38103 * m4/byteswap.m4: New file.
38105 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
38107 * lib/byteswap_.h: New file.
38109 2005-04-25 Karl Berry <karl@gnu.org>
38111 * m4/gettext.m4: Update from GNU gettext 0.14.4.
38113 2005-04-25 Albert Chin <china@thewrittenword.com>
38115 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
38118 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
38120 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
38121 (func_ln_if_changed) Remove forcibly for no error message
38122 in case file does not exist.
38124 2005-04-19 Simon Josefsson <jas@extundo.com>
38126 * gnulib-tool (Options): Make --symlink mean --symbolic.
38128 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
38130 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
38132 2005-04-16 Simon Josefsson <jas@extundo.com>
38134 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
38136 2005-04-15 Simon Josefsson <jas@extundo.com>
38138 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
38140 2005-04-15 Simon Josefsson <jas@extundo.com>
38142 * gnulib-tool: Rename --symlink to --symbolic.
38144 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
38146 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
38147 symbolic links to files instead of copying/moving. Add --aux-dir,
38148 specifying directory relative --dir where auxiliary build tools
38151 2005-04-14 Bruno Haible <bruno@clisp.org>
38153 * modules/allocsa (License): Change to LGPL.
38154 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38156 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
38158 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
38159 that "UTC +1 second" continues to work. Problem reported
38160 by Dmitry V. Levin.
38161 (relunit_snumber): New rule.
38164 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
38166 * lib/getdate.y (universal_time_zone_table): New constant.
38167 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
38168 universal_time_zone_table.
38169 (lookup_zone): Prefer universal_time_zone_table to
38170 local_time_zone_table, so that "GMT" time stamps are allowed in
38171 London during the summer. Problem reported by Ian Abbott.
38173 2005-04-12 Jim Meyering <jim@meyering.net>
38175 * lib/human.c (humblock): Set *options even when returning due to
38176 xstrtoumax conversion failure. Thanks to a used-uninitialized
38177 warning from gcc-4.
38179 2005-04-09 Jim Meyering <jim@meyering.net>
38181 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
38182 -Wuninitialized: initialize tm0.tm_year.
38184 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
38186 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
38187 count, since there's no maximum. All uses changed.
38188 Add member dsts_seen.
38189 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
38191 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
38192 Use pc_rels_seen to decide whther a date is absolute.
38194 * lib/getdate.y (number): Don't overwrite year.
38195 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
38198 2005-04-02 Simon Josefsson <jas@extundo.com>
38200 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
38201 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
38203 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
38205 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
38206 where no absolute path name can be longer than PATH_MAX.
38208 2005-03-27 Jim Meyering <jim@meyering.net>
38210 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
38212 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
38214 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
38215 "one's complement" -> "ones' complement" in comment, as per Knuth.
38216 "value of type" -> "type or expression" in comment.
38217 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
38219 2005-03-26 Jim Meyering <jim@meyering.net>
38222 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
38223 Correct typos: s/or/of/.
38225 2005-03-26 Jim Meyering <jim@meyering.net>
38227 * modules/check-include-files: Move to ../ and rename to...
38228 * check-module: ...this.
38230 2005-03-25 Jim Meyering <jim@meyering.net>
38232 * modules/xvasprintf (Files): Add xalloc.h.
38234 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
38236 * modules/gettext (Files): config/config.rpath ->
38237 build-aux/config.rpath
38238 * modules/iconv (Files): Likewise.
38239 Problem reported by Oskar Liljeblad.
38241 2005-03-23 Jim Meyering <jim@meyering.net>
38243 * modules/check-include-files: New script to check for
38244 missing dependencies, multiple includes, etc.
38246 * modules/c-strtold (Depends-on): Add xalloc.
38247 * modules/c-strtod (Depends-on): Add xalloc.
38248 * modules/hash (Depends-on): Add xalloc.
38249 (Files): Remove lib/xalloc.h.
38251 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
38252 * modules/userspec (Files): Add lib/inttostr.h.
38254 2005-03-23 Jim Meyering <jim@meyering.net>
38256 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
38258 2005-03-22 Jim Meyering <jim@meyering.net>
38260 * modules/stat-macros: New module.
38261 * modules/canonicalize, modules/euidaccess, modules/file-type,
38262 * modules/filemode, modules/lchown, modules/makepath,
38263 * modules/rmdir, modules/stat: Depend on new stat-macros module
38264 rather than listing lib/stat-macros.h manually.
38265 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
38267 2005-03-22 Jim Meyering <jim@meyering.net>
38269 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
38271 2005-03-22 Bruno Haible <bruno@clisp.org>
38273 * config/srclist.txt: Replace target directory 'config' with
38275 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
38276 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
38279 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
38281 * modules/chdir-long (Depends-on): Add mempcpy.
38283 * modules/acl, modules/backupfile, modules/c-strtod,
38284 modules/c-strtold, modules/canon-host, modules/canonicalize,
38285 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
38286 modules/exclude, modules/exitfail, modules/file-type,
38287 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
38288 modules/getdate, modules/getline, modules/getpagesize,
38289 modules/getpass, modules/getugroups, modules/group-member,
38290 modules/hard-locale, modules/hash, modules/human, modules/idcache,
38291 modules/inttostr, modules/long-options, modules/makepath,
38292 modules/md5, modules/memcasecmp, modules/memcoll,
38293 modules/modechange, modules/mountlist, modules/path-concat,
38294 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
38295 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
38296 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
38297 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
38298 modules/strftime, modules/strndup, modules/strverscmp,
38299 modules/timespec, modules/unlocked-io, modules/userspec,
38300 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
38302 Remove lib_SOURCES line from Makefile.am section, as this is now
38303 done automatically by the corresponding Autoconf macro.
38305 2005-03-21 Jim Meyering <jim@meyering.net>
38307 Changes imported from coreutils.
38309 * lib/cycle-check.c: Don't include xalloc.h.
38311 * lib/path-concat.c: Don't include assert.h.
38312 (path_concat): Remove assertion that would have triggered
38313 for ABASE starting with more than one slash.
38314 Reported by Andreas Schwab.
38316 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
38317 properly when ABASE is an absolute file name.
38318 Correct the description of this function.
38319 Include <assert.h>.
38320 Add an assertion and a test driver.
38321 This fixes a bug introduced on 2004-07-02.
38322 Andreas Schwab reported the resulting failure of cp --parents:
38323 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
38325 2005-03-21 Jim Meyering <jim@meyering.net>
38327 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
38328 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
38330 2005-03-21 Jim Meyering <jim@meyering.net>
38331 and Paul Eggert <eggert@cs.ucla.edu>
38333 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
38334 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
38335 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
38336 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
38337 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
38338 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
38339 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
38340 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
38341 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
38342 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
38343 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
38344 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
38345 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
38346 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
38347 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
38348 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
38349 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
38352 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
38354 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
38355 (which shouldn't happen), generate nothing instead of returning 0
38356 immediately, so that nstrftime (NULL, ...) doesn't return 0.
38358 2005-03-16 Bruno Haible <bruno@clisp.org>
38360 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
38361 HAVE_LONGLONG_64BIT.
38363 2005-03-16 Bruno Haible <bruno@clisp.org>
38365 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
38366 HAVE_LONGLONG_64BIT.
38368 2005-03-16 Bruno Haible <bruno@clisp.org>
38370 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
38371 HAVE_LONGLONG_64BIT.
38373 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
38375 * lib/strftime.c (my_strftime): Prepend space to format so that we can
38376 reliably distinguish strftime failure from empty output on POSIX
38379 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
38381 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
38382 (iconv_string): Don't guess a size-zero buffer, as that might cause
38383 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
38384 result would be 'too large', where 'too large' is (heuristically)
38385 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
38386 overflow concerns. This will prevent some unwanted malloc failures
38387 when the inputs are very large.
38389 2005-03-15 Karl Berry <karl@gnu.org>
38391 * config/srclist.txt (config.rpath): from gettext.
38392 * config/config.rpath: update.
38394 2005-03-15 Bruno Haible <bruno@clisp.org>
38396 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
38399 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
38402 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
38405 2005-03-14 Simon Josefsson <jas@extundo.com>
38407 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
38410 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
38412 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
38413 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
38415 * lib/strtol.c: Likewise.
38417 2005-03-14 Jim Meyering <jim@meyering.net>
38419 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
38420 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
38421 to be nonzero so that we (and caller) can detect the difference
38422 between a valid zero-length expansion and an error return, even
38423 when the underlying strftime fails before writing anything into
38426 2005-03-14 Bruno Haible <bruno@clisp.org>
38428 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
38429 Update from GNU gettext 0.14.3.
38431 2005-03-10 Jim Meyering <jim@meyering.net>
38433 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
38435 2005-03-10 Jim Meyering <jim@meyering.net>
38437 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
38438 so that this module works on systems without fchdir.
38440 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
38442 Factor int-properties macros into a single file, except for
38443 glibc-related files.
38444 * lib/intprops.h: New file.
38445 * lib/getloadavg.c: Include it instead of limits.h.
38446 (INT_STRLEN_BOUND): Remove.
38447 * lib/human.c: Include intprops.h.
38448 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
38449 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
38451 * lib/inttostr.h: Include intprops.h instead of limits.h.
38452 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
38453 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
38454 for consistency with intprops.h.
38455 (time_t_is_integer, twos_complement_arithmetic): Use them.
38456 * lib/sig2str.h: Include <signal.h>, intprops.h.
38457 (INT_STRLEN_BOUND): Remove.
38458 * lib/strftime.c (TYPE_SIGNED): Remove.
38459 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
38460 * lib/strtol.c: Adjust comments to match intprops.h.
38461 * lib/userspec.c: Include intprops.h.
38462 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
38463 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
38464 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
38465 instead of rolling our own expressions.
38466 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
38468 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
38470 (my_strftime): Do not mishandle years close to INT_MAX, by doing
38471 the right thing even if adding 1900 would overflow. Similarly
38472 for tm_mon + 1 and tm_yday + 1.
38473 Make %Y always equivalent to %C%y, and similarly for %G and %g.
38474 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
38475 (DO_SIGNED_NUMBER): New macro.
38476 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
38478 2005-03-07 Bruno Haible <bruno@clisp.org>
38480 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
38482 2005-03-07 Bruno Haible <bruno@clisp.org>
38484 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
38486 2005-03-04 Derek R. Price <derek@ximbiot.com>
38488 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
38489 (func_import): Only replace files via --import when they have actually
38492 2005-03-03 Derek R. Price <derek@ximbiot.com>
38494 * m4/mmap-anon.m4: New file.
38495 * m4/pagealign_alloc.m4: New file.
38497 2005-03-03 Derek R. Price <derek@ximbiot.com>
38498 Bruno Haible <bruno@clisp.org>
38500 * modules/pagealign_alloc: New file.
38501 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
38503 2005-03-03 Derek R. Price <derek@ximbiot.com>
38504 Bruno Haible <bruno@clisp.org>
38506 * lib/pagealign_alloc.h: New file.
38507 * lib/pagealign_alloc.c: New file.
38509 2005-03-03 Bruno Haible <bruno@clisp.org>
38511 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
38512 Use an all-permissive copyright notice, recommended by RMS.
38514 2005-03-02 Bruno Haible <bruno@clisp.org>
38516 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
38517 of AIX, the replacement has to be done only after <string.h> is
38518 included, therefore not in config.h. stpncpy.h does the replacement,
38519 and stpncpy.c uses it.
38521 2005-03-02 Bruno Haible <bruno@clisp.org>
38523 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
38526 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
38528 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
38529 The workaround isn't strictly needed for POSIX conformance, and
38530 it's too much of a pain to configure and maintain. We'll ask
38531 people to fix their kernels instead.
38532 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
38533 (NANOSLEEP_BUG_WORKAROUND): Remove.
38534 (xnanosleep): Remove the workaround.
38536 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
38538 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
38539 Reported by Derek Price.
38540 (Include): Add "timespec.h".
38542 * modules/xnanosleep (Depends-on): Remove gethrxtime.
38544 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
38546 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
38547 to detect nanosleep bug.
38549 2005-03-01 Bruno Haible <bruno@clisp.org>
38551 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
38553 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
38555 * modules/gethrxtime: New file.
38556 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
38557 (Depends-on): Add gethrxtime.
38558 (configure.ac): Add gl_XNANOSLEEP.
38559 (Makefile.am): Remove lib_SOURCES line.
38561 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
38563 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
38564 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
38566 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
38568 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
38569 * lib/timespec.h (gettime): Return void, since it always
38570 succeeds now. All uses changed.
38571 * lib/gettime.c (gettime) Likewise.
38572 [HAVE_NANOTIME]: Prefer nanotime.
38573 Assume gettimeofday succeeds, as POSIX requires.
38574 Assime time () succeeds, since other code already does.
38575 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
38576 (timespec_subtract): Remove.
38577 (NANOSLEEP_BUG_WORKAROUND): New constant.
38578 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
38579 things considerably. Use it only on GNU/Linux hosts, since the
38580 workaround shouldn't be needed elsewhere.
38582 2005-02-24 Bruno Haible <bruno@clisp.org>
38584 * modules/gettext (Files): Add m4/glibc2.m4.
38586 2005-02-24 Bruno Haible <bruno@clisp.org>
38588 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
38589 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
38591 Update from GNU gettext 0.14.2.
38592 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
38594 2005-02-24 Bruno Haible <bruno@clisp.org>
38596 * lib/localcharset.c: Update from GNU gettext 0.14.2.
38597 * lib/config.charset: Update from GNU gettext 0.14.2.
38599 2005-02-24 Bruno Haible <bruno@clisp.org>
38601 * lib/gettext.h: Update from GNU gettext 0.14.2.
38603 2005-02-23 Simon Josefsson <jas@extundo.com>
38605 * m4/iconvme.m4: New file.
38607 2005-02-23 Jim Meyering <jim@meyering.net>
38609 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
38611 Thanks to Bruno Haible for catching it.
38613 2005-02-22 Simon Josefsson <jas@extundo.com>
38615 * modules/iconvme: New file.
38617 * MODULES.html.sh: Add iconvme.
38619 2005-02-22 Simon Josefsson <jas@extundo.com>
38621 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
38623 2005-02-22 Simon Josefsson <jas@extundo.com>
38625 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
38627 2005-02-22 Jim Meyering <jim@meyering.net>
38629 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
38632 2005-02-20 Neil Conway <neilc@samurai.com>
38634 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
38635 returned by OSX/Darwin if the specified buffer is not large
38636 enough for the hostname.
38638 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
38640 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
38641 pass it to _help, otherwise the latter coredumps trying to
38642 dereference state.root_argp.
38644 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
38646 * modules/chdir-long (Depends-on): Add memrchr.
38647 * modules/memrchr (Files): Add lib/memrchr.h.
38648 (Include): "memrchr.h".
38650 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
38652 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
38654 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
38656 * lib/memrchr.h: New file.
38657 * lib/chdir-long.c: Include it.
38658 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
38659 Don't bother including stddef.h.
38661 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
38663 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
38665 Include <sys/types.h>, for dev_t.
38666 (ME_DUMMY, ME_REMOTE): Move from here....
38667 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
38668 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
38670 Include mountlist.h first, to test the interface.
38672 2005-01-29 Bruno Haible <bruno@clisp.org>
38674 * lib/progname.c (program_name): Initialize.
38675 Needed when linking statically on MacOS X.
38677 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
38679 Sync from coreutils.
38680 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
38681 (Depends-on): Add c-strtod.
38682 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
38684 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
38686 Sync from coreutils.
38687 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
38689 Remove files that are specific to coreutils.
38690 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
38692 2005-01-28 Bruno Haible <bruno@clisp.org>
38694 * modules/javacomp: New file.
38695 * MODULES.html.sh (Java): Add javacomp.
38697 2005-01-28 Bruno Haible <bruno@clisp.org>
38699 * m4/javacomp.m4: New file, from GNU gettext.
38701 2005-01-28 Bruno Haible <bruno@clisp.org>
38703 * lib/javacomp.sh.in: New file, from GNU gettext.
38704 * lib/javacomp.h: New file, from GNU gettext.
38705 * lib/javacomp.c: New file, from GNU gettext.
38707 2005-01-26 Simon Josefsson <jas@extundo.com>
38709 * lib/gai_strerror.c: Use GPL in header.
38711 2005-01-26 Bruno Haible <bruno@clisp.org>
38713 * modules/javaexec: New file.
38714 * MODULES.html.sh (Java): Add javaexec.
38716 2005-01-26 Bruno Haible <bruno@clisp.org>
38718 * m4/javaexec.m4: New file, from GNU gettext.
38720 2005-01-26 Bruno Haible <bruno@clisp.org>
38722 * lib/javaexec.sh.in: New file, from GNU gettext.
38723 * lib/javaexec.h: New file, from GNU gettext.
38724 * lib/javaexec.c: New file, from GNU gettext.
38726 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
38728 * modules/lchown (Depends-on): Remove lchown.h
38730 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
38732 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
38733 must be defined if the header file was not found, in order
38734 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
38736 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
38738 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
38739 initializers for struct pentry_state.
38740 (__argp_error): Check return value of __asprintf
38741 (__argp_failure): Translate error message
38743 * lib/argp-parse.c: Removed braces around the expansion of N_()
38745 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
38747 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
38748 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
38749 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
38750 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
38751 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
38752 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
38753 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
38754 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
38755 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
38756 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
38757 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
38758 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
38759 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
38760 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
38761 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
38762 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
38763 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
38764 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
38765 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
38766 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
38767 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
38768 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
38769 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
38770 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
38771 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
38772 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
38773 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
38774 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
38775 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
38776 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
38777 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
38778 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
38779 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
38780 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
38781 xstrtol.m4, xstrtoumax.m4, yesno.m4:
38782 Use an all-permissive copyright notice, recommended by RMS.
38784 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
38786 * modules/chdir-long (Depends-on): Remove mempcpy.
38788 2005-01-21 Jim Meyering <jim@meyering.net>
38790 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
38791 same value as for Solaris 9.
38793 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
38794 component length. This included changing the parameter to be
38795 of type `char *' rather than `char const *'.
38796 * lib/chdir-long.h (chdir_long): Update prototype.
38798 * lib/openat.c (fdopendir, fstatat): New functions.
38799 * lib/openat.h: Include headers required for use of DIR and struct
38801 [AT_SYMLINK_NOFOLLOW]: Define.
38802 (fdopendir, fstatat): Add prototypes.
38804 2005-01-21 Bruno Haible <bruno@clisp.org>
38806 * modules/classpath: New file.
38807 * MODULES.html.sh (Java): Add classpath.
38809 2005-01-21 Bruno Haible <bruno@clisp.org>
38811 * lib/classpath.h: New file, from GNU gettext.
38812 * lib/classpath.c: New file, from GNU gettext.
38814 2005-01-20 Simon Josefsson <jas@extundo.com>
38816 * modules/version-etc-fsf: New file.
38818 2005-01-20 Simon Josefsson <jas@extundo.com>
38820 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
38821 * lib/version-etc.c: Remove version_etc_copyright.
38822 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
38823 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
38825 2005-01-20 Simon Josefsson <jas@extundo.com>
38827 * lib/base64.h (isbase64): Add.
38829 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
38830 using a unsigned prototype, don't inline.
38831 (base64_decode): Use it.
38833 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
38835 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
38838 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
38840 * lib/save-cwd.c (save_cwd): Remove code to support the case
38841 where fchdir is missing or flaky.
38843 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
38845 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
38847 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
38849 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
38850 AC_LIBSOURCES now does this.
38851 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
38852 with new ullong_max module.
38854 2005-01-19 Bruno Haible <bruno@clisp.org>
38856 * modules/sh-quote: New file.
38857 * MODULES.html.sh (Executing programs): Add sh-quote.
38859 2005-01-19 Bruno Haible <bruno@clisp.org>
38861 * lib/sh-quote.h: New file, from GNU gettext.
38862 * lib/sh-quote.c: New file, from GNU gettext.
38864 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
38866 Merge from coreutils.
38867 * m4/ullong_max.m4: New file.
38868 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
38869 (gl_MACROS): Assume localeconv exists.
38871 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
38873 Merge changes from coreutils, as described below in several
38874 changelogs dated today.
38876 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
38877 (O_DIRECTORY): Remove; not needed here, since "." must be
38878 a directory. All uses removed.
38879 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
38880 universal on Suns, and we also need to test for IRIX.
38881 Revamp code to use 'if' rather than '#if'.
38882 Avoid unnecessary comparison of cwd->desc to 0.
38884 * lib/utimens.c (futimens): Robustify the previous patch, by checking
38885 for known valid error numbers rather than observed invalid ones.
38887 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
38889 * modules/ullong_max: New file.
38891 * modules/chdir-long, modules/openat: New files.
38892 * modules/save-cwd (Depends-on): Depend on chdir-long.
38893 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
38895 2005-01-18 Jim Meyering <jim@meyering.net>
38897 Merge from coreutils.
38898 * m4/chdir-long.m4, m4/openat.m4: New files.
38899 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
38900 save-cwd.h. Add AC_LIBOBJ for save-cwd.
38901 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
38902 is sane and DOES follow symlinks. Besides, testing 20 different
38903 systems found no broken chown implementations.
38904 Prompted by a change in rsync's copy of this macro.
38905 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
38907 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
38909 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
38910 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
38911 NULL-means-set-to-current-time semantics.
38912 Remove temporary file immediately, rather than waiting
38913 for configure's at-exit trap code to do it.
38915 2005-01-18 Jim Meyering <jim@meyering.net>
38917 * lib/version-etc.c (version_etc_copyright): Update copyright date.
38919 * lib/utimens.c (futimens): Account for the fact that futimes
38920 can also fail with errno == ENOSYS or errno == ENOENT.
38921 Patch from Dmitry V. Levin.
38923 Change the name of the robust chdir function from chdir to chdir_long.
38924 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
38925 (restore_cwd): Use chdir_long, not chdir.
38926 * lib/chdir-long.c: Renamed from chdir.c.
38927 * lib/chdir-long.h: Renamed from chdir.h.
38928 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
38931 2005-01-18 Bruno Haible <bruno@clisp.org>
38933 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
38934 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
38935 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
38936 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
38937 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
38938 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
38939 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
38940 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
38941 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
38942 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
38943 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
38944 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
38945 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
38946 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
38947 Use an all-permissive copyright notice, recommended by RMS.
38949 2005-01-18 Bob Proulx <bob@proulx.com>
38951 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
38952 simplify offsetof() macro construct to avoid compile failure with
38953 native HP-UX 11.0 ANSI C compiler.
38955 2005-01-17 Bruno Haible <bruno@clisp.org>
38957 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
38958 redundant because stpncpy.m4 takes care of it.
38960 2005-01-17 Bruno Haible <bruno@clisp.org>
38962 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
38964 2005-01-17 Bruno Haible <bruno@clisp.org>
38966 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
38969 2005-01-17 Bruno Haible <bruno@clisp.org>
38971 * lib/fwriteerror.h (fwriteerror): Change specification to include
38973 * lib/fwriteerror.c: Include <stdbool.h>.
38974 (fwriteerror): At the end, close the file stream. Record whether
38975 stdout was already closed.
38977 2005-01-17 Bruno Haible <bruno@clisp.org>
38979 * lib/execute.c (environ): Declare if needed.
38980 * lib/pipe.c (environ): Likewise.
38981 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
38983 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
38985 * modules/argp: Depend on vsnprintf
38987 2005-01-10 Jim Meyering <jim@meyering.net>
38989 * modules/closeout (Depends-on): Add atexit.
38991 2005-01-06 Bruno Haible <bruno@clisp.org>
38993 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
38995 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
38997 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
38998 definitions to be after all include files, to avoid collisions.
38999 Problem reported by Bob Proulx.
39001 2005-01-04 Jim Meyering <jim@meyering.net>
39003 Changes imported from coreutils.
39004 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
39005 as the mkstemp template, use a temporary directory and an
39006 8.3-friendly template to avoid trouble on systems like DJGPP.
39007 Reported by Juan M. Guerrero via Stepan Kasal.
39008 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
39009 close. Remove the temporary directory right away, rather than waiting
39010 for configure's at-exit trap code to do it.
39011 Suggestion from Stepan Kasal.
39013 2005-01-01 Simon Josefsson <jas@extundo.com>
39015 * gnulib-tool: Print #include directives when --import'ing.
39017 2004-12-28 Simon Josefsson <jas@extundo.com>
39019 * tests/test-base64.c: Include required header files. Remove
39022 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
39024 * modules/error (Depends-on): Remove gettext.
39026 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
39028 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
39029 not needed. This removes a dependency on the gettext module.
39030 [defined _LIBC]: Do not include <libintl.h>; not needed.
39032 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
39034 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
39035 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
39037 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
39039 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
39042 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
39044 * modules/getdate (Depends-on): Remove alloca-opt.
39046 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
39048 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
39050 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
39052 * lib/argp-parse.c: Include <stddef.h>.
39053 (alignof, alignto): New macros.
39054 (parser_init): Don't assume that void * is aligned sufficiently
39057 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
39058 need to extend the stack.
39059 (YYINITDEPTH): New macro, so that the initial stack isn't overly
39062 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
39064 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
39066 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
39068 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
39069 (2004-10-24) change. Apparently this was a false alarm.
39071 * modules/getdate: Depend on alloca-opt, not alloca.
39073 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
39075 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
39076 Remove now-obsolete comment about AIX.
39077 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
39078 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
39079 (YYMAXDEPTH): New macro.
39081 2004-12-18 Simon Josefsson <jas@extundo.com>
39083 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
39085 2004-12-18 Bruno Haible <bruno@clisp.org>
39087 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
39089 2004-12-18 Bruno Haible <bruno@clisp.org>
39091 * lib/fatal-signal.c (fatal_signals): Make non-const.
39092 (init_fatal_signals): New function.
39093 (uninstall_handlers, install_handlers): Ignore signals that were set to
39095 (at_fatal_signal): Call init_fatal_signals.
39096 (init_fatal_signal_set): Likewise. Ignore signals that were set to
39098 Reported by Paul Eggert.
39100 2004-12-18 Bruno Haible <bruno@clisp.org>
39102 * doc/alloca.texi: New file.
39103 * doc/alloca-opt.texi: New file.
39105 2004-12-17 Jim Meyering <jim@meyering.net>
39107 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
39108 Otherwise, install-sh could exit with improper exit status when
39109 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
39111 2004-12-16 Simon Josefsson <jas@extundo.com>
39113 * tests/test-base64.c: Add license.
39115 2004-12-15 Stepan Kasal <address@hidden>
39117 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
39119 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
39121 * modules/getcwd (Files): Add m4/d-ino.m4.
39122 Suggested by Mark D. Baushke.
39124 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
39126 * lib/getdate.y (textint): New member "negative".
39127 (time_zone_hhmm): New function.
39128 Expect 14 shift-reduce conflicts, not 13.
39129 (o_colon_minutes): New rule.
39130 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
39131 (yylex): Set the "negative" member of signed numbers.
39133 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
39135 * doc/getdate.texi (Time of day items, Time zone items):
39136 Describe new formats +00:00, UTC+00:00.
39138 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
39140 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
39141 spurious "-l"s. Problem reported by Stepan Kasal.
39143 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
39145 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
39146 in Autoconf 2.59. Problem reported by Mark D. Baushke.
39148 2004-12-04 Simon Josefsson <jas@extundo.com>
39150 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
39151 Vandoorselaere <yoann@prelude-ids.org>.
39153 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
39155 Changes imported from coreutils.
39156 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
39158 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
39160 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
39162 Changes imported from coreutils.
39163 * lib/hard-locale.c: Assume <locale.h> exists.
39164 Include "strdup.h".
39165 (GLIBC_VERSION): New macro.
39166 (hard_locale): Assume setlocale exists.
39167 Rewrite to avoid #ifdef.
39168 Use strdup rather than malloc + strcpy.
39169 * lib/human.c: Assume <locale.h> exists.
39170 (human_readable): Assume localeconv exists.
39172 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
39174 * modules/hard-locale (Depends-on): Add strdup.
39176 2004-12-01 Jakub Jelinek <jakub@redhat.com>
39178 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
39179 convert T2, not T. (Imported from libc.)
39181 2004-11-30 Simon Josefsson <jas@extundo.com>
39183 * modules/restrict (License): Change to LGPL.
39185 2004-11-30 Simon Josefsson <jas@extundo.com>
39187 * m4/restrict.m4: Add copyright and copying conditions.
39189 2004-11-30 Simon Josefsson <jas@extundo.com>
39191 * m4/base64.m4: New file.
39193 2004-11-30 Simon Josefsson <jas@extundo.com>
39195 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
39198 * tests/test-base64.c: New file.
39200 * modules/base64: New file.
39202 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
39204 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
39205 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
39207 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
39209 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
39211 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
39212 (__getcwd.c): Don't restore errno; glibc doesn't.
39213 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
39214 first, falling back to our code only if its results look suspicious.
39215 Ensure that the resulting buffer is only as large as necessary.
39217 * lib/readutmp.c: Include readutmp.h first.
39218 Include <errno.h>, since readutmp.h no longer does that.
39219 * lib/readutmp.h: Don't include <errno.h>,
39220 <sys/param.h>, <time.h>; not needed to establish interface.
39221 (errno): Remove decl.
39222 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
39223 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
39224 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
39226 2004-11-28 Simon Josefsson <jas@extundo.com>
39228 * lib/base64.h, base64.c: New file.
39230 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
39232 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
39234 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
39236 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
39237 (Depends-on): Remove pathmax, same. Add mempcpy.
39238 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
39239 (Makefile.am): Append getcwd.h to lib_SOURCES.
39240 (Include): Add getcwd.h.
39241 (Maintainer): Change from Jim Meyering to "all, glibc",
39242 since getdate now uses intended-for-glibc code.
39243 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
39244 (Depends-on): Depend on getcwd. Do not depend on pathmax.
39246 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
39248 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
39249 HP's ANSI C compiler.
39250 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
39251 Declaring int functions causes warnings on some modern systems and
39252 shouldn't be needed to compile on ancient ones.
39253 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
39256 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
39257 with the following changes.
39258 (__set_errno): Parenthesize properly.
39259 Include <stdbool.h>.
39260 (MIN, MAX, MATCHING_INO): New macros.
39261 (__getcwd): Define with prototype, not K&R form.
39262 Use heuristics to allocate default buffer on stack if possible.
39263 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
39264 behavior, and to avoid the PATH_MAX limit when computing
39266 Use MATCHING_INO to compare inode number to file.
39267 Check for arithmetic overflow in size calculations.
39268 Fix bug in reallocation of dot array that caused getcwd to fail
39269 on directories nested deeper than 75.
39270 Be more careful about saving errno on error.
39271 Do not use realloc; use only free+malloc, as this is a bit
39272 more flexible and avoids a needless copy operation.
39273 Do not inspect st_dev and st_ino for symbolic links; POSIX
39274 doesn't specify the latter.
39275 Check for closedir errors.
39276 Avoid needless casts.
39277 Use "#ifdef weak_alias" around weak_alias, to be like other
39279 The following changes to getcwd.c have effect only when used in
39280 gnulib; they have no effect inside glibc proper.
39281 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
39282 as alloca isn't used.
39283 (alloca, __alloca): Likewise.
39284 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
39285 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
39286 unconditionally, as gnulib assumes C89 or better.
39287 Do not include <sys/param.h>.
39288 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
39289 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
39291 (NULL) [!defined NULL]: Remove; we assume C89 or better.
39292 Include <dirent.h> in a way that is compatible with modern Autoconf.
39293 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
39294 New macros, if not already defined.
39295 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
39296 Use "_LIBC", not "defined _LIBC", for consistency.
39297 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
39299 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
39300 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
39301 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
39302 credit only to Jim Meyering and adjust the copyright dates.
39303 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
39304 <stdlib.h>, <unistd.h>, "pathmax.h".
39305 Instead, include "xgetcwd.h" (first) and "getcwd.h".
39306 (INITIAL_BUFFER_SIZE): Remove.
39307 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
39309 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
39311 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
39312 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
39313 Use the _ONCE methods, for efficiency.
39314 Check for fcntl.h. In test program, include <errno.h>
39315 and <fcntl.h> if available. Remove old K&R cruft from
39316 test program. Check for common errors in GNU/Linux,
39317 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
39318 don't do AC_LIBOBJ, as that's getcwd.m4's job.
39319 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
39320 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
39322 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
39323 accommodate new getcwd.c.
39324 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
39325 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
39326 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
39327 that's all we need now.
39329 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
39331 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
39332 argp-parse.c depends on getopt internals, that means we should
39333 always use our getopt, to be on the safe side.
39334 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
39335 order not to spoil the result of an eventual previous invocation
39336 of gl_GETOPT_SUBSTITUTE.
39338 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
39340 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
39341 redefinition warnings. To avoid them, include the defines
39342 in `#if !defined __need_getopt ... #endif'. The only place
39343 where __getopt_argv_const is used is in definitions
39344 of getopt_long and getopt_long_only below, which are as well
39345 protected by `#ifndef __need_getopt'.
39346 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
39347 __need_getopt after including <stdio.h> and <unistd.h> These
39348 headers might have defined it.
39350 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
39352 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
39354 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
39356 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
39357 (futimens): New function, which uses futimes if available.
39358 (futimens, utimens): Support timespec==NULL, with same semantics
39359 as utime and utimens.
39360 * lib/utimens.h (futimens): New decl.
39362 2004-11-23 Jim Meyering <jim@meyering.net>
39364 * lib/getopt_.h: Remove trailing blanks.
39366 2004-11-23 Jim Meyering <jim@meyering.net>
39368 * lib/__fpending.c: Add comment.
39370 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
39372 * modules/canonicalize (Depends-on): Add xreadlink.
39373 Problem reported by James Youngman.
39375 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
39377 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
39379 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
39380 optopt): Use them instead of invoking ## directly; otherwise, the
39381 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
39383 2004-11-19 Bruno Haible <bruno@clisp.org>
39385 * lib/strtok_r.c: Move comments from here...
39386 * lib/strtok_r.h: ... to here.
39388 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
39390 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
39391 implementations that mishandle size_t overflow.
39393 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
39395 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
39396 might fail. Problem reported by Yoann Vandoorselaere.
39397 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
39398 implementations that mishandle size_t overflow.
39400 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
39402 * modules/canon-host (Depends-on): Add strdup.
39404 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
39406 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
39408 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
39410 * lib/canon-host.c: Include "strdup.h".
39411 (canon_host): Use getaddrinfo if available, so that IPv6 works.
39412 Use strdup instead of malloc/strcpy to duplicate strings.
39414 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
39415 (human_space_before_unit): New constant.
39416 * lib/human.c (human_readable): Support it.
39418 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
39419 (xgetcwd): Set errno correctly when failing.
39420 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
39421 the failure is actually due to a PATH_MAX problem.
39423 Further getopt changes to make it more likely that glibc will
39424 buy the changes back.
39425 * lib/getopt.c (POSIXLY_CORRECT): New constant.
39426 (getopt): Use it, so to preserve glibc semantic
39427 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
39428 when compiling for libc.
39429 * lib/getopt_.h (__getopt_argv_const): Bring it back.
39430 (getopt_long, getopt_long_only): Use it.
39432 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
39433 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
39434 (getopt): Argv is now char * const *, as per standard.
39435 (_getopt_internal_r, _getopt_internal): Argv is now char **,
39436 not char *__getopt_argv_const *.
39437 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
39438 _getopt_long_only_r): Likewise.
39439 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
39440 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
39441 _getopt_long_r, _getopt_long_only_r): Likewise.
39442 * lib/getopt_.h (__getopt_argv_const): Remove.
39443 (getopt): Argv is now char * const *, as per standard.
39445 * lib/getdate.y (tORDINAL): New token.
39446 (day, relunit): Allow it for relative times.
39447 (relative_time_table): Use tORDINAL for ordinals.
39449 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
39451 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
39452 Document that "second" isn't allowed as an ordinal number.
39454 2004-11-16 Jim Meyering <jim@meyering.net>
39456 * modules/closeout (Depends-on): Add fpending.
39458 2004-11-15 Jim Meyering <jim@meyering.net>
39460 * lib/closeout.c: Include "__fpending.h" once again.
39461 Include <stdbool.h>.
39462 (close_stdout): Don't fail just because stdout was closed initially,
39463 since some programs don't write to stdout in the normal course of
39464 operation (other than --version and --help), and we don't want this
39465 function to make e.g. `touch file >&-' fail.
39466 But do fail if it was closed and someone has tried to write to it.
39467 E.g., `printf foo >&-' must fail.
39469 2004-11-13 Jim Meyering <jim@meyering.net>
39471 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
39473 2004-11-12 Simon Josefsson <jas@extundo.com>
39475 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
39476 small doc fix is still pending.
39478 2004-11-11 Simon Josefsson <jas@extundo.com>
39480 * modules/strtok_r: New file.
39482 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39485 2004-11-11 Simon Josefsson <jas@extundo.com>
39487 * m4/strtok_r.m4: New file.
39489 * m4/getopt.m4: Replace opterr.
39491 2004-11-11 Simon Josefsson <jas@extundo.com>
39493 * lib/strtok_r.h, strtok_r.c: New file.
39495 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
39497 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
39498 of replacing opterr, getopt, etc. This should handle the
39499 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
39501 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
39503 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
39504 we can stop lying to compilers about the constness of argv when we
39505 are compiled outside glibc.
39506 (getopt, getopt_long, getopt_long_only): Use it.
39507 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
39508 _getopt_internal, getopt): Likewise.
39509 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
39510 _getopt_long_only_r): Likewise.
39511 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
39512 _getopt_long_r, _getopt_long_only_r): Likewise.
39514 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
39515 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
39516 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
39517 the other external symbols.
39518 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
39519 declaration, since the above renaming now works around collisions.
39521 2004-11-11 Jim Meyering <jim@meyering.net>
39523 * lib/linebreak.c: Remove trailing blanks.
39524 * lib/alloca_.h: Likewise.
39525 * lib/acosl.c: Likewise.
39526 * lib/euidaccess.c: Likewise.
39527 * lib/allocsa.h: Likewise.
39529 2004-11-10 Simon Josefsson <jas@extundo.com>
39531 * m4/getaddrinfo.m4: New file.
39533 2004-11-10 Simon Josefsson <jas@extundo.com>
39535 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
39537 2004-11-10 Simon Josefsson <jas@extundo.com>
39539 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39542 * modules/getaddrinfo: New file.
39544 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
39546 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
39548 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
39550 * lib/mktime.c (SHR): New macro, which is a portable
39551 substitute for >> that should work even on Crays.
39552 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
39553 Problem reported by Mark D. Baushke in
39554 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
39555 * lib/getdate.y (SHR): Likewise.
39557 * lib/strftime.c (SHR): Likewise.
39559 * lib/quotearg.c (struct quoting_options): Use unsigned int for
39560 quote_these_too, so that right shifts are well defined. All uses
39563 2004-11-10 Jim Meyering <jim@meyering.net>
39565 Ensure that no close failure goes unreported.
39566 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
39567 return early when it seems there's nothing to flush.
39568 Don't include __fpending.h.
39570 2004-11-10 Jim Meyering <jim@meyering.net>
39572 * modules/closeout (Depends-on): Remove fpending.
39574 2004-11-10 Jim Meyering <jim@meyering.net>
39576 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
39578 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
39580 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
39582 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
39583 and AC_REQUIRE when possible, to avoid duplicate checks.
39584 Check for <wchar.h>.
39586 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
39588 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
39590 2004-11-09 Bruno Haible <bruno@clisp.org>
39592 * m4/sockpfaf.m4: New file.
39594 2004-11-05 Bruno Haible <bruno@clisp.org>
39596 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
39597 Reported by Mark D. Baushke <mdb@cvshome.org>.
39599 2004-11-04 Bruno Haible <bruno@clisp.org>
39601 2004-09-11 Bruno Haible <bruno@clisp.org>
39602 * allocsa.valgrind: New file.
39603 2004-02-06 Bruno Haible <bruno@clisp.org>
39604 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
39605 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
39606 Reported by Christopher Seip <chris.seip@hp.com>.
39608 2004-11-04 Bruno Haible <bruno@clisp.org>
39610 * modules/allocsa (Files): Add lib/allocsa.valgrind.
39611 (Makefile.am): Distribute it.
39613 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
39615 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
39616 with errno == ERANGE if the buffer is too small.
39617 Problem reported by Mark D. Baushke.
39619 2004-11-03 Albert Chin <china@thewrittenword.com>
39620 Paul Eggert <eggert@cs.ucla.edu>
39622 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
39623 equivalent, substitute $ac_type for equivalent type rather than
39624 blindly using uint32_t *always* which won't work if uint32_t is not
39625 available. Define _UINT32_T to work around typedef of uint32_t if
39626 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
39629 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
39631 * m4/jm-macros.m4: Sync from coreutils.
39632 (gl_MACROS): Check for mbrlen, for pathchk.
39633 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
39635 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
39637 * lib/xreadlink.c (MAXSIZE): New macro.
39638 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
39639 size does not exceed MAXSIZE. Avoid cast.
39640 As suggested by Mark D. Baushke in
39641 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
39642 if readlink fails with buffer size just under MAXSIZE, try again
39645 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
39647 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
39649 2004-11-02 Derek R. Price <derek@ximbiot.com>
39650 and Paul Eggert <eggert@cs.ucla.edu>
39652 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
39653 (get_date): Overparenthesize to avoid GCC warning.
39655 2004-11-02 Bruno Haible <bruno@clisp.org>
39657 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
39660 2004-11-02 Bruno Haible <bruno@clisp.org>
39662 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
39663 function returns void.
39665 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
39667 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
39668 fflush_unlocked, flockfile, funlockfile, funlockfile,
39669 fputs_unlocked, putc_unlocked.
39671 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
39673 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
39674 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
39677 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
39679 * modules/getdate (Files): Add doc/getdate.texi.
39680 (Depends-on): Add setenv, xalloc.
39682 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
39684 * lib/getdate.y: Add support for TZ="foo" within a date string.
39685 Fix some bugs near time_t boundaries. Reject dates with
39686 out-of-range components, e.g., "Sept 31".
39687 Include <stdlib.h>, "setenv.h", "xalloc.h".
39688 (ISDIGIT_LOCALE): Remove; unused.
39689 Note that the TZ and time functions used here are not reentrant.
39690 (mktime_ok, get_tz): New functions.
39691 (TZBUFSIZE): New constant.
39692 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
39693 This requires that we sometimes generate our own TZ="XXX..." setting.
39695 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
39697 * doc/getdate.texi: New file, from coreutils with modifications for
39698 the new TZ parsing.
39700 2004-10-27 Derek R. Price <derek@ximbiot.com>
39702 * lib/mktime.c (not_equal_tm): Remove redundant check.
39704 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
39706 * modules/regex (lib_SOURCES): Add regex.c.
39707 Reported by James Youngman in
39708 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
39710 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
39712 * lib/getdate.y: Use Bison 1.875 features, and some minor
39713 code cleanups. This change does not affect semantics.
39714 Don't include <stdlib.h>; no longer needed.
39715 Don't include unlocked-io.h; only the "#if TEST" code uses
39716 stdio, and performance isn't crucial there.
39717 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
39718 Bison 1.875 features as described below.
39719 All uses of "PC." replaced by "pc->".
39720 (YYSTYPE): Add a forward declaration.
39721 (yylex, yyerror): Use full prototypes in forward decls.
39722 Use "%pure-parser" rather than obsolescent "%pure_parser".
39723 Use %parse-param and %lex-param instead of obsolescent
39724 YYPARSE_PARAM and YYLEX_PARAM.
39725 (meridian_table, month_and_day_table, time_units_table,
39726 relative_time_table, time_zone_table, military_table,
39727 lookup_zone, lookup_word, get_date):
39728 Use NULL instead of 0 where appropriate.
39729 (to_hour): Avoid abort (), to avoid a dependency on
39731 (yyerror, yylex): Now accepts parser_control * arg.
39732 (main) [TEST]: Use '\0' rather than 0 for char.
39734 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
39736 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
39738 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
39740 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
39741 It's now the caller's responsibility to handle the case where
39742 !HAVE_GETPAGESIZE && !defined getpagesize.
39744 * lib/mktime.c (leapyear): Arg is long int, not int.
39746 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
39748 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
39750 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
39752 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
39753 missing. Problem reported by James Youngman.
39755 2004-10-16 Simon Josefsson <jas@extundo.com>
39757 * gnulib-tool: Fix comments. Fix parse problem.
39758 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
39760 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
39762 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
39763 implementation of getopt_long. Problem reported by Alexander Taler in:
39764 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
39766 2004-10-15 Bruno Haible <bruno@clisp.org>
39768 * gnulib-tool: Untabify. Initialize supplied_libname.
39769 (func_usage): More homogenous output.
39770 (func_modules_transitive_closure, func_modules_to_filelist,
39771 func_emit_lib_Makefile_am): New functions.
39772 (func_import): New function, extracted from big case statement. Use
39773 func_get_license, func_modules_transitive_closure,
39774 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
39775 opt_lgpl. Don't use test -a, as it's not portable.
39776 (func_create_testdir): Use func_modules_transitive_closure,
39777 func_modules_to_filelist, func_emit_lib_Makefile_am.
39779 2004-10-15 Bruno Haible <bruno@clisp.org>
39781 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
39783 2004-10-15 Bruno Haible <bruno@clisp.org>
39785 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
39786 the portions belonging to each module.
39787 Suggested by Derek Robert Price <derek@ximbiot.com>.
39789 2004-10-12 Simon Josefsson <jas@extundo.com>
39791 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
39792 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
39795 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
39797 * modules/vsnprintf: New file.
39799 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
39801 * m4/vsnprintf.m4: New file.
39803 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
39805 * lib/vsnprintf.h: New file.
39806 * lib/vsnprintf.c: New file.
39808 2004-10-11 Bruno Haible <bruno@clisp.org>
39810 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
39813 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
39815 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
39817 2004-10-07 Bruno Haible <bruno@clisp.org>
39819 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
39820 fits into the provided buffer.
39822 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
39824 * lib/diacrit.c, diacrit.h: Add GPL notice.
39826 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
39828 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
39829 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
39830 This avoids a potential constant-folding bug.
39832 2004-10-05 Bruno Haible <bruno@clisp.org>
39834 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
39835 for the declaration of strsep.
39837 2004-10-05 Bruno Haible <bruno@clisp.org>
39839 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
39841 2004-10-04 Simon Josefsson <jas@extundo.com>
39843 * modules/memmem: New file.
39844 * tests/test-memmem.c: New file.
39845 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
39847 2004-10-04 Simon Josefsson <jas@extundo.com>
39849 * m4/memmem.m4: New file.
39851 2004-10-04 Simon Josefsson <jas@extundo.com>
39853 * lib/memmem.h: New file.
39854 * lib/memmem.c: New file, taken from glibc.
39856 2004-10-04 Simon Josefsson <jas@extundo.com>
39858 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
39859 '#ifdef USE_UNLOCKED_IO'.
39861 2004-10-04 Simon Josefsson <jas@extundo.com>
39863 * config/srclist.txt: Add memmem from glibc.
39865 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
39867 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
39869 * modules/argmatch, modules/argp, modules/closeout, modules/error,
39870 modules/exclude, modules/getdate, modules/getline,
39871 modules/getndelim2, modules/getpass, modules/getpass-gnu,
39872 modules/getusershell, modules/linebuffer, modules/md5,
39873 modules/mountlist, modules/posixtm, modules/readtokens,
39874 modules/readutmp, modules/regex, modules/sha1,
39875 modules/version-etc, modules/yesno:
39876 Remove dependency on unlocked-io.
39878 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
39880 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
39882 * m4/unlocked-io.m4: Add copyright notice.
39883 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
39885 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
39887 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
39888 * lib/xmalloc.c (xmemdup): Likewise.
39889 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
39890 XFREE): Remove these long-obsolescent macros.
39891 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
39892 * lib/xstrdup.c: Remove.
39894 * lib/regex.c (re_comp): Cast gettext return value to char *,
39895 Problem reported by Martin Neitzel via Mark D. Baushke.
39897 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
39899 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
39900 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
39901 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
39902 regex.c, sha1.c, version-etc.c, yesno.c:
39903 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
39904 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
39905 the includer's responsibility.
39907 Sync from coreutils.
39909 * lib/modechange.c (mode_compile): Don't decrement a pointer that
39910 points to the start of a string, as the C Standard says the
39911 resulting behavior is undefined.
39913 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
39914 simple -> simple_backups, numbered_existing ->
39915 numbered_existing_backups, numbered -> numbered_backups
39916 to avoid shadowing problems. All uses changed.
39917 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
39918 * lib/backupfile.c (check_extension, numbered_backup):
39919 Rename locals to avoid shadowing 'basename'.
39920 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
39923 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
39924 * lib/.cvsignore: Add getopt.h.
39926 2004-10-04 Bruno Haible <bruno@clisp.org>
39928 * modules/README: New file.
39929 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
39932 2004-10-02 Jim Meyering <jim@meyering.net>
39934 * lib/dirfd.h, getpagesize.h: Add copyright notice.
39936 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
39938 * modules/strsep: New file.
39940 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
39942 * m4/strsep.m4: New file.
39944 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
39946 * lib/strsep.h: New file.
39947 * lib/strsep.c: New file.
39949 2004-10-01 Simon Josefsson <jas@extundo.com>
39951 * lib/snprintf.c (snprintf): Handle size==0.
39953 2004-10-01 Simon Josefsson <jas@extundo.com>
39954 Bruno Haible <bruno@clisp.org>
39956 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
39957 (snprintf): Declare 'args'.
39959 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
39961 * lib/snprintf.c: Remove comments as to why each header is needed.
39963 2004-10-01 Bruno Haible <bruno@clisp.org>
39965 * MODULES.html.sh: Add strsep.
39967 2004-09-30 Simon Josefsson <jas@extundo.com>
39969 * modules/snprintf: New file.
39971 2004-09-30 Simon Josefsson <jas@extundo.com>
39973 * m4/snprintf.m4: New file.
39975 2004-09-30 Simon Josefsson <jas@extundo.com>
39977 * lib/snprintf.h, lib/snprintf.c: New files.
39979 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
39981 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
39982 (hol_entry_help): Never translate an empty string.
39983 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
39984 * lib/argp.h (OPTION_NO_TRANS): New option.
39986 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
39988 * modules/argp (Maintainer): Replace Simon Josefsson
39989 by Sergey Poznyakoff.
39991 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
39993 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
39994 changes merged back into glibc.
39996 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
39998 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
40000 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
40002 * lib/xvasprintf.c: Include xalloc.h.
40003 (xvasprintf): Use xalloc_die, not xmalloc_die.
40005 2004-09-29 Bruno Haible <bruno@clisp.org>
40007 * modules/alloca-opt: New file, derived from modules/alloca.
40008 * modules/allocsa: Depend on alloca-opt instead of alloca.
40009 * modules/setenv: Likewise.
40010 * modules/vasnprintf: Likewise.
40011 * MODULES.html.sh: Add alloca-opt.
40013 2004-09-28 Simon Josefsson <jas@extundo.com>
40015 * gnulib-tool: New parameter --lgpl, to asseert that modules are
40016 LGPL, and to replace license template from GPL to LGPL.
40018 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
40020 * modules/dummy: Change license to LGPL.
40022 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
40024 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
40026 2004-09-24 Simon Josefsson <jas@extundo.com>
40028 * modules/minmax (License): Change from GPL to LGPL.
40030 2004-09-23 Simon Josefsson <jas@extundo.com>
40032 * gnulib-tool (--import): Typo.
40034 2004-09-23 Simon Josefsson <jas@extundo.com>
40036 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
40038 2004-09-22 Bruno Haible <bruno@clisp.org>
40040 * modules/*: Add 'License' field.
40041 * gnulib-tool: Accept --extract-license option.
40042 (func_get_license): New function.
40044 2004-09-21 Bruno Haible <bruno@clisp.org>
40046 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
40047 Reported by Simon Josefsson.
40049 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
40051 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
40052 gl_AC_TYPE_LONG_LONG.
40054 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
40056 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
40058 2004-09-18 Simon Josefsson <jas@extundo.com>
40059 and Paul Eggert <eggert@cs.ucla.edu>
40061 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
40062 calls with autoreconf. Define GL_LIB.
40064 2004-09-14 Karl Berry <karl@gnu.org>
40066 * config/srclist.txt: unsync setenv.c, sigh.
40068 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
40070 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
40071 Problem reported by Bruno Haible in:
40072 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
40074 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
40076 * config/srclist.txt: Comment out argp-pvh.c.
40078 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
40080 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
40081 in case some system header has #define'd it. Problem reported by
40082 Soeren D. Schulze in
40083 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
40085 2004-09-09 Karl Berry <karl@gnu.org>
40087 * regex.[ch]: delete from the root. These were supposed to be
40088 synced with emacs cvs, but this has not happened for about
40089 a year, and anyway nothing else uses emacs regex.[ch].
40090 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
40091 lib/regex[.ch] is untouched.
40093 2004-09-09 Bruno Haible <bruno@clisp.org>
40095 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
40097 2004-09-09 Bruno Haible <bruno@clisp.org>
40099 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
40101 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
40103 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
40105 * modules/xvasprintf: New file.
40106 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
40108 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
40110 * lib/xvasprintf.h: New file.
40111 * lib/xvasprintf.c: New file.
40112 * lib/xasprintf.c: New file.
40114 2004-09-08 Bruno Haible <bruno@clisp.org>
40116 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
40118 2004-09-08 Bruno Haible <bruno@clisp.org>
40120 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
40121 length is > INT_MAX.
40122 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
40125 2004-09-08 Bruno Haible <bruno@clisp.org>
40127 * lib/stdint_.h: New file, taken from GNU clisp.
40129 2004-09-08 Bruno Haible <bruno@clisp.org>
40130 Oskar Liljeblad <oskar@osk.mine.nu>
40132 * modules/stdint: New file.
40133 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
40135 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
40137 Import from coreutils.
40138 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
40139 strings on unbounded length. alloca's performance benefits aren't
40140 that important here.
40141 (V_STRDUP): Remove.
40142 (parse_with_separator): New function, with most of the internals
40143 of the old parse_user_spec. Allow user to omit both user and group,
40144 for compatibility with FreeBSD.
40145 Clone only the user name, not the entire spec.
40146 Do not set *uid, *gid unless entirely successful.
40147 Avoid memory leak in some failing cases.
40148 Fix regression for USER.GROUP reported by Dmitry V. Levin in
40149 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
40150 (parse_user_spec): Rewrite to use parse_with_separator.
40152 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
40154 * modules/userspec: Don't depend on alloca.
40156 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
40158 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
40160 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
40162 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
40163 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
40164 utimecmp, utimens, xnanosleep. Rename sha to sha1.
40166 2004-08-16 Simon Josefsson <jas@extundo.com>
40168 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
40169 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
40170 Add --dry-run for --import.
40171 Let user provided command line parameters override configure.ac
40174 2004-08-12 Simon Josefsson <jas@extundo.com>
40176 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
40177 as discussed with Paul Eggert in threads rooted at
40178 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
40180 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
40181 Before, the test was empty, and relied on ELIDE_CODE in source
40183 (gl_PREREQ_GETOPT): New macro.
40184 (gl_GETOPT): Use them.
40186 2004-08-12 Simon Josefsson <jas@extundo.com>
40188 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
40189 * lib/getopt_.h: Renamed from getopt.h.
40191 2004-08-12 Simon Josefsson <jas@extundo.com>
40193 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
40194 Change default library name from libfoo to libgnu.
40195 Now, if you have a configure.ac that says:
40198 gl_MODULES(error getopt etcetera)
40200 you can import all you need by running:
40201 ../gnulib/gnulib-tool --import
40203 * modules/getopt (Files): Rename getopt.h to getopt_.h.
40204 (Makefile.am): Rewrite, use logic from argz.
40205 (Include): Use <getopt.h> instead of "getopt.h".
40207 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
40209 * modules/argp (Files): Add m4/unlocked-io.m4.
40210 (Depends-on): Add extensions.
40212 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
40214 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
40215 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
40216 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
40217 Check for program_invocation_name, program_invocation_short_name,
40218 flockfile, funlockfile, features.h, _getopt_long_only_r.
40220 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
40222 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
40223 its complicated substitute.
40224 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
40225 and program_invocation_name.
40226 (__argp_basename) [!_LIBC]: Remove; the only use was
40227 replaced by its body.
40228 (__argp_short_program_name): Change condition from
40229 !defined __argp_short_program_name to
40230 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
40231 to match argp-namefrob.h.
40232 (__argp_failure): Don't assume strerror_r returns char *.
40233 * lib/argp-parse.c (N_): Define unconditionally.
40234 (argp_default_options): Fill out initializers with 0 to avoid
40237 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
40239 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
40242 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
40244 Merge from coreutils.
40246 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
40248 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
40249 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
40251 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
40253 Merge from coreutils.
40255 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
40256 wmemchr or wmemcpy. Problem reported by Robert Dahlem
40257 for Reliant Unix 5.43.
40259 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
40260 (union fooround): Use uintmax_t, not long int.
40261 The rest is a merge from libc:
40262 [defined _LIBC]: Include <shlib-compat.h>.
40263 (_obstack) [defined _LIBC]: Remove after 2.3.4.
40265 * lib/settime.c (settime): Recode to avoid warning with
40268 * lib/strverscmp.c: Convert to UTF-8.
40270 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
40272 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
40275 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
40277 * modules/xalloc-die: New file.
40278 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
40280 * modules/md5 (Files): Add m4/uint32_t.m4.
40281 * modules/sha1: Renamed from modules/sha.
40283 Rename lib/sha.h to lib/sha1.h.
40284 Rename lib/sha.c to lib/sha1.c.
40285 Rename m4/sha.m4 to m4/sha1.m4.
40286 (lib_SOURCES): Likewise.
40287 (configure.ac): Rename gl_SHA to gl_SHA1.
40288 (Include): sha.h -> sha1.h.
40290 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
40292 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
40293 * m4/sha1.m4: Renamed from sha.m4.
40294 (gl_SHA1): Renamed from gl_SHA. All uses changed.
40296 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
40298 * lib/obstack.h (obstack_empty_p):
40299 Don't assume that chunk->contents is suitably aligned.
40300 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
40301 Likewise. Problem reported by Benno in
40302 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
40304 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
40305 readable. This could be improved further but it'd take some work.
40307 2004-08-08 Simon Josefsson <jas@extundo.com>
40309 * modules/xgethostname (Depends-on): Remove exit and error (not
40312 * modules/getpass-gnu: Add getpass.h.
40313 (Depends-on): Add stdbool.
40314 * modules/getpass: Add getpass.h.
40316 2004-08-08 Simon Josefsson <jas@extundo.com>
40318 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
40319 Check getpass declaration.
40321 2004-08-08 Simon Josefsson <jas@extundo.com>
40323 * lib/xgethostname.c: Don't include error.h (not used).
40325 * lib/getpass.h: Add.
40326 * lib/getpass.c: Include getpass.h first.
40328 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
40330 * lib/xalloc-die.c: New file.
40331 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
40333 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
40334 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
40336 (_, N_, xalloc_die): Move to xalloc-die.c.
40337 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
40338 so that we needn't mess with xalloc_msg_memory_exhausted.
40340 * lib/sha1.h: Renamed from sha.h.
40341 (SHA1_H): Renamed from _SHA_H.
40342 (sha1_ctx): Renamed from sha_ctx.
40343 (sha1_init_ctx): Renamed from sha_init_ctx.
40344 (sha1_process_block): Renamed from sha_process_block.
40345 (sha1_process_bytes): Renamed from sha_process_bytes.
40346 (sha1_finish_ctx): Renamed from sha_finish_ctx.
40347 (sha1_read_ctx): Renamed from sha_read_ctx.
40348 (sha1_stream): Renamed from sha_stream.
40349 (sha1_buffer): Renamed from sha_buffer.
40350 * lib/sha1.c: Likewise; renamed from sha.c.
40351 Do not include <sys/types.h>.
40352 Include <stddef.h> rather than <stdlib.h>.
40354 2004-08-08 Bruno Haible <bruno@clisp.org>
40356 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
40357 FILESYSTEM_PREFIX_LEN.
40358 * lib/progreloc.c: Likewise.
40359 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
40361 2004-08-06 Simon Josefsson <jas@extundo.com>
40363 * modules/progname (Depends-on): Don't depend on stdbool.
40365 2004-08-06 Simon Josefsson <jas@extundo.com>
40367 * modules/getsubopt: New file.
40368 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40371 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
40373 More merge from coreutils.
40375 * m4/utimens.m4, m4/utimecmp.m4: New files.
40376 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
40377 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
40378 prereq.m4, sha.m4: Import changes from coreutils.
40380 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
40382 More merge from coreutils.
40383 * modules/raise, modules/readtokens0, modules/utimens:
40384 * modules/utimecmp, module/xnanosleep: New files.
40385 * modules/strftime: Add lib/strftime.h.
40386 Change include from <time.h> to "strftime.h".
40387 * modules/yesno: Add lib/yesno.h.
40388 * modules/backupfile: Remove lib/addext.c.
40389 * modules/euidaccess: Add stat-macros.h.
40390 * modules/canonicalize, modules/euidaccess,
40391 modules/filemode, modules/lchown, modules/makepath,
40392 modules/rmdir, modules/stat: Likewise.
40394 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
40397 * lib/argp-help.c (make_hol, hol_append): Don't assume that
40398 SIZE_MAX is a valid preprocessor constant.
40399 (__argp_basename): Change from "#ifndef _LIBC"
40400 to "#ifndef __argp_short_program_name", so that
40401 we don't compile these functions for tar.
40403 More merges from coreutils.
40404 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
40405 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
40406 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
40407 * lib/addext.c: Remove; no longer needed.
40408 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
40409 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
40410 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
40411 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
40412 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
40413 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
40414 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
40415 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
40416 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
40417 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
40418 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
40419 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
40420 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
40421 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
40422 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
40423 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
40424 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
40425 Import changes from coreutils.
40427 2004-08-05 Simon Josefsson <jas@extundo.com>
40429 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
40431 2004-08-05 Simon Josefsson <jas@extundo.com>
40433 * m4/getsubopt.m4: New file.
40435 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
40437 Merge from coreutils.
40439 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
40440 * m4/getcwd-path-max.m4: New files.
40442 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
40443 FILESYSTEM_PREFIX_LEN ->
40444 FILE_SYSTEM_PREFIX_LEN.
40445 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
40446 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
40447 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
40448 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
40450 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
40451 prerequisite modules now handle the DOS stuff.
40452 Don't check for unistd.h.
40454 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
40456 Merge from coreutils.
40458 * lib/.gdb-history: Remove; this doesn't belong here.
40460 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
40461 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
40462 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
40463 * lib/getcwd.c: New files.
40465 * lib/dirname.h: Include <stdbool.h>.
40466 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
40467 for consistency with POSIX terminology. All uses changed.
40468 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
40469 (strip_trailing_slashes): Use bool for booleans.
40470 * lib/stripslash.c (strip_trailing_slashes): Likewise.
40472 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
40473 sometimes returns a positive errno value even when it succeeds.
40474 (print_errno_message) [!LIBC]: Fall back on strerror if
40475 __strerror_r fails.
40477 * lib/path-concat.c (mempcpy): Don't define if a system header defines
40478 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
40479 (longest_relative_suffix): New function.
40480 (path_concat): Use it. Assume first argument is not NULL.
40481 Port to DOS. Omit redundant separators.
40482 Report an error instead of returning NULL.
40483 Use mempcpy instead of memcpy.
40484 (xpath_concat): Remove: not declared or used.
40486 * lib/same.h: Include <stdbool.h>
40487 (same_name): Return bool, not int.
40488 * lib/same.c (same_name): Likewise.
40489 (errno): Don't declare; we assume C89 or better now.
40491 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
40492 if not already defined.
40494 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
40495 * lib/dup-safer.c (errno): Likewise.
40497 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
40499 Merge from coreutils.
40500 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
40501 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
40502 * modules/path-concat: Don't depend on strdup.
40504 2004-08-03 Simon Josefsson <jas@extundo.com>
40506 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
40507 * lib/progname.h: Don't include stdbool.h.
40509 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
40511 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
40512 * MODULES.html.sh (func_all_modules): Remove fatal.
40514 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
40516 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
40518 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
40520 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
40523 2004-08-02 Simon Josefsson <jas@extundo.com>
40525 * lib/getsubopt.h: New file, with comments from Bruno Haible.
40526 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
40527 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
40529 2004-08-01 Simon Josefsson <jas@extundo.com>
40531 * lib/xgetdomainname.c: Include stdlib.h, for free().
40533 2004-07-19 Bruno Haible <bruno@clisp.org>
40535 * MODULES.html.sh (func_all_modules): Add dummy.
40537 2004-07-16 Simon Josefsson <jas@extundo.com>
40539 * modules/dummy: New file.
40541 2004-07-16 Simon Josefsson <jas@extundo.com>
40543 * lib/dummy.c: New file.
40545 2004-07-16 Bruno Haible <bruno@clisp.org>
40547 * lib/backupfile.h: Add extern "C" for C++.
40548 * lib/closeout.h: Likewise.
40549 * lib/copy-file.h: Likewise.
40550 * lib/findprog.h: Likewise.
40551 * lib/full-write.h: Likewise.
40552 * lib/pathname.h: Likewise.
40553 * lib/progname.h: Likewise.
40554 * lib/stpcpy.h: Likewise.
40555 * lib/stpncpy.h: Likewise.
40556 * lib/strcase.h: Likewise.
40557 * lib/strstr.h: Likewise.
40558 * lib/xalloc.h: Likewise.
40560 * lib/mbswidth.h: Add extern "C" for C++.
40561 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
40563 2004-07-13 Robert Millan <robertmh@gnu.org>
40565 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
40567 2004-07-09 Simon Josefsson <jas@extundo.com>
40569 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
40570 failed without this.)
40572 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
40574 * modules/chown (Files): Add lib/fchown-stub.c, since
40575 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
40577 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
40579 * lib/fchown-stub.c: New file.
40581 2004-06-24 Jim Meyering <jim@meyering.net>
40583 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
40585 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
40587 * modules/argz: Omit "#include".
40589 * MODULES.html.sh (func_all_modules): Add calloc, to match
40590 2004-06-01 addition of calloc module.
40592 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
40594 * m4/argz.m4: New file, which is autoupdated from libtool.
40596 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
40598 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
40601 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
40603 * config/srclist-update: Don't insist on "USA." before the
40604 close-comment, as libtool omits the period and puts the */ on a
40606 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
40607 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
40609 2004-06-22 Gary V. Vaughan <gary@gnu.org>
40611 * modules/argz: New file.
40612 * MODULES.html.sh (func_all_modules): Add argz.
40614 2004-06-12 Jim Meyering <jim@meyering.net>
40615 and Paul Eggert <eggert@cs.ucla.edu>
40617 * modules/hash (Files): Add lib/xalloc.h.
40618 * modules/pipe (Depends-on): Add wait-process.
40619 * modules/stat (Depends-on): Add xalloc.
40620 * modules/userspec (Files): Add lib/userspec.h.
40623 Upgrade from gettext-0.13.
40624 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
40625 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
40626 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
40628 2004-06-10 Jim Meyering <jim@meyering.net>
40630 * lib/calloc.c: New file.
40632 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
40634 * lib/getdate.y (yylex): Allow space between sign and number.
40635 Problem reported by Dan Jacobson.
40637 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
40639 Merge from coreutils CVS.
40641 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
40642 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
40643 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
40644 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
40645 xstrtol.m4: Fix copyright date and/or serial number.
40647 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
40648 See if we need an fchown replacement.
40649 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
40650 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
40651 and use the replacement function if we detect either defect.
40653 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
40656 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
40657 and Jim Meyering <jim@meyering.net>
40659 Merge from coreutils CVS.
40661 * lib/stat-macros.h: New file, with contents from file-type.h
40662 and coreutils' system.h.
40663 * lib/file-type.c: Include "stat-macros.h".
40664 * lib/file-type.h (file_type): Move all macro definitions to new file,
40667 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
40668 Wrap old code with this conditional.
40669 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
40670 function that does not dereference symlinks.
40671 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
40673 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
40674 dependency problems.
40675 (xreadlink): Accept new arg SIZE, for efficiency.
40676 All decls and uses changed.
40677 * lib/xreadlink.h: Include <stddef.h>, for size_t.
40679 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
40680 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
40682 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
40685 2004-06-01 Jim Meyering <jim@meyering.net>
40687 * m4/calloc.m4: New file.
40689 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
40691 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
40692 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
40693 Also, fix a typo in a diagnostic.
40695 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
40697 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
40698 or AC_FUNC_REALLOC.
40700 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
40702 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
40703 macros to be defined.
40704 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
40705 the allocator returns NULL because the requested size is zero.
40707 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
40709 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
40710 var. Add comment explaining why libc still defines it. This
40711 merges the following patch from glibc:
40712 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
40714 2004-05-20 Andreas Schwab <schwab@suse.de>
40716 * m4/free.m4: Replace free if it not known to work, not the other
40719 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
40721 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
40722 present in glibc since revision 1.1 of this file.
40723 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
40724 obstack_alignment_mask, obstack_alloc, obstack_base,
40725 obstack_blank, obstack_blank_fast, obstack_chunk_size,
40726 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
40727 obstack_grow0, obstack_init, obstack_int_grow,
40728 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
40729 obstack_next_free, obstack_object_size, obstack_ptr_grow,
40730 obstack_ptr_grow_fast, obstack_room): Remove declarations of
40731 nonexistent functions.
40733 2004-05-18 Karl Berry <karl@gnu.org>
40735 * config/srclist.txt: break link for vasnprintf.c.
40737 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
40739 Port obstack to the AS/400, where pointers are 16 bytes wide and
40740 you cannot cast an integer to a valid pointer. This patch is
40741 currently waiting to be integrated into glibc; see
40742 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
40744 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
40745 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
40746 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
40747 (struct obstack): temp member is now a union of a pointer and
40748 an integer, instead of an integer. All integer uses changed.
40749 This does not affect the physical layout of struct obstack,
40750 except on hosts (like the AS/400) where the size or alignment of
40751 void * is greater than that of ptrdiff_t.
40752 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
40753 __STDC__)]: Store temporary in pointer member of union, not
40755 * lib/obstack.c: Include <stddef.h>, for offsetof.
40756 (struct fooalign): Remove; it doesn't need a name.
40757 (union fooround): Change double to long double, and add void *.
40758 (DEFAULT_ALIGNMENT): Use offsetof to compute.
40759 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
40760 not a macro. Hence the values are always int; so remove all
40761 casts-to-int in uses.
40763 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
40765 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
40766 we can get this patch merged into glibc.
40768 2004-05-17 Derek R. Price <derek@ximbiot.com>
40769 Paul Eggert <eggert@cs.ucla.edu>
40771 * m4/argp: Depend on alloca.
40773 2004-05-17 Derek R. Price <derek@ximbiot.com>
40774 Paul Eggert <eggert@cs.ucla.edu>
40776 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
40779 2004-05-17 Bruno Haible <bruno@clisp.org>
40781 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
40782 precision that consists of a '.' followed by an empty digit string.
40783 Patch by Tor Lillqvist <tml@iki.fi>.
40785 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
40787 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
40788 for backward compatibility with older code. We need our own
40789 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
40790 it under some other name, and our alloca.h will define it.
40792 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
40793 Derek Price <derek@ximbiot.com>
40795 * lib/alloca.c: Include <alloca.h>, to get our interface.
40796 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
40797 include <alloca.h> first. Use C89 prototype for alloca; this
40798 requires including <stddef.h> for size_t. Use extern "C" if C++.
40799 Use #elif for simplicity, since we can assume C89 now.
40800 Don't try to source the system alloca.h since it will not be found
40801 and to prevent recursively including its replacement.
40802 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
40803 * lib/regex.c: Likewise.
40805 2004-05-16 Derek Price <derek@ximbiot.com>
40806 Paul Eggert <eggert@cs.ucla.edu>
40808 getline cleanup. This changes the getndelim2 API: both order of
40809 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
40812 * lib/getline.c: Don't include stddef.h or stdio.h, since our
40813 interface does that.
40814 (getline): Always use getdelim, so that we don't have two
40815 copies of this code.
40816 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
40818 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
40819 (GETNDELIM2_MAXIMUM): New macro.
40820 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
40821 instead of the old practice of delim2==0. All callers changed.
40822 Return -1 on overflow, instead of returning junk.
40823 Do not set *linesize unless allocation succeeds.
40824 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
40825 that we include sys/types.h.
40826 * lib/getnline.h: Likewise.
40827 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
40828 (getndelim2): Reorder arguments.
40829 * lib/getnline.c (getnline, getndelim):
40830 Don't discard the NMAX argument.
40831 (getnline): Invoke getndelim, to avoid code duplication.
40832 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
40833 of (size_t) -1 by callers of the getnline family.
40835 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
40837 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
40838 Check for gettimeofday.
40839 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
40840 Check for settimeofday, stime.
40842 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
40844 * lib/nanosleep.c (suspended): Change its type from int to
40845 sig_atomic_t volatile.
40846 (first_call): Make it private to rpl_nanosleep, and have it
40847 be zero initially as that's a bit faster.
40848 (my_usleep): Round up fractional times instead of truncating them,
40849 as this is the usual meaning for 'sleep'.
40851 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
40853 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
40854 (ENOSYS): Define if not defined.
40855 (settime): Fall back on stime if it exists and settimeofday fails.
40856 But don't bother with fallbacks if a method fails with errno == EPERM.
40858 2004-05-11 Jim Meyering <jim@meyering.net>
40860 Prior to this change, the save_cwd caller required read access to the
40861 current directory on most systems (ones with the fchdir function).
40863 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
40864 fails, try write-only, and finally, resort to using xgetcwd.
40866 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
40868 * lib/obstack.c, obstack.h: Import changes from libc.
40870 2004-04-28 Bruno Haible <bruno@clisp.org>
40872 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
40873 also implicitly appends .exe to executables.
40874 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
40875 accepts Windows pathnames.
40876 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
40877 Treat Cygwin like Windows, since it now accepts Windows pathnames.
40878 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
40879 Treat Cygwin like Windows, since it now accepts Windows pathnames.
40880 Reported by Derek Robert Price <derek@ximbiot.com>.
40882 2004-04-21 Karl Berry <karl@gnu.org>
40884 * config/srclist.txt (localcharset.c): break sync.
40886 2004-04-20 Paul Eggert <eggert@twinsun.com>
40888 * m4/host-os.m4: Add a copyright notice.
40890 2004-04-20 Jim Meyering <jim@meyering.net>
40892 Change UTILS_ to gl_ in AC_DEFINE'd names.
40893 Change utils_- and jm_-prefixed variables, too.
40894 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
40895 UTILS_FUNC_MKDIR_TRAILING_SLASH.
40896 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
40898 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
40899 Don't emit trailing blanks.
40900 Also rename jm_-prefixed variables to have gl_ prefix.
40902 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
40903 Also rename jm_-prefixed variables to have gl_ prefix.
40905 * m4/jm-macros.m4: Reflect the renamings.
40906 * m4/prereq.m4: Likewise.
40908 2004-04-20 Jim Meyering <jim@meyering.net>
40910 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
40913 2004-04-20 Jim Meyering <jim@meyering.net>
40914 Bruno Haible <bruno@clisp.org>
40916 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
40917 memory when realloc fails.
40919 2004-04-19 Jim Meyering <jim@meyering.net>
40921 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
40922 now that readutmp.c may call `free (0)'.
40924 2004-04-19 Bruno Haible <bruno@clisp.org>
40926 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
40927 * m4/inttypes_h.m4: Likewise.
40928 * m4/stdint_h.m4: Likewise.
40929 * m4/intmax_t.m4: Likewise.
40930 * m4/uintmax_t.m4: Likewise.
40932 2004-04-18 Jim Meyering <jim@meyering.net>
40934 * m4/prereq.m4: Don't forbid jm_ prefix.
40936 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
40937 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
40938 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
40939 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
40940 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
40941 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
40942 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
40943 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
40944 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
40945 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
40946 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
40947 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
40948 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
40949 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
40950 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
40951 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
40952 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
40953 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
40954 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
40956 2004-04-18 Jim Meyering <jim@meyering.net>
40958 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
40959 failure, don't leak memory and do call END_UTMP_ENT.
40961 2004-04-16 Jim Meyering <jim@meyering.net>
40963 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
40964 coreutils' stat program.
40965 (gl_PREREQ): Don't require jm_PREREQ_STAT.
40967 2004-04-11 Paul Eggert <eggert@twinsun.com>
40969 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
40971 (CHAR_BIT): Remove, since we assume C89.
40972 Include <stdint.h> if available, as per current Autoconf CVS advice.
40974 2004-03-31 Jim Meyering <jim@meyering.net>
40976 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
40977 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
40978 * m4/xalloc.m4: Likewise.
40980 2004-03-30 Paul Eggert <eggert@twinsun.com>
40982 Merge from coreutils.
40984 * m4/inttostr.m4: New file.
40985 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
40986 Require AM_STDBOOL_H and gl_TIMESPEC instead.
40987 Require gl_CLOCK_TIME.
40988 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
40990 2004-03-30 Paul Eggert <eggert@twinsun.com>
40992 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
40993 not bool, to be more consistent with Unix conventions.
40994 Suggested by Bruno Haible.
40996 Merge from coreutils.
40998 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
40999 * lib/umaxtostr.c: New files.
41001 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
41002 the usual <time.h> dance.
41003 (get_date): Change signature to support fractional time stamps.
41004 All callers changed.
41005 * lib/getdate.y: Include "getdate.h" first, as we can now
41006 assume C89 and don't need to worry about 'const'.
41007 Similarly, include "unlocked-io.h" near start, not in middle.
41008 Include <limits.h>.
41009 (textint.value): Use long int rather than int.
41010 (textint.digits): Use size_t rather than int.
41011 (BILLION, LOG10_BILLION): New constants.
41012 (parser_control): New member rel_ns. Members day_ordinal,
41013 time_zone, month, day, hour, minutes, rel_year, rel_month,
41014 rel_day, rel_hour, rel_minutes, rel_seconds
41015 are now long int, not int. Member seconds is now struct timespec,
41016 not int. New member timespec_seen. Members dates_seen, days_seen,
41017 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
41019 (%union.intval): Now long int, not int.
41020 New member timespec.
41021 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
41022 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
41023 (spec): Now is a timespec or an item list.
41024 (timespec, items): New nonterminals.
41025 (time, rel, relunit, number, get_date):
41026 Add support for fractional seconds.
41027 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
41028 (gmtime, localtime, mktime): Remove decls; not needed with C89.
41029 (to_hour): First arg is now long int, not int.
41030 (to_year): Returns long int, not int.
41031 Don't treat year -70 like 70.
41032 (tm_diff): Returns long int, not int.
41033 (lookup_word): Use bool instead of int when appropriate.
41034 (yylex): Use size_t for count, not int.
41035 Detect overflow when parsing large integer constants.
41036 Add support for fractions.
41037 (get_date): Make pointers 'const' if possible.
41038 Use more-portable code to detect integer overflow.
41039 (main) [TEST]: Adjust to above changes. Test for localtime failure.
41040 Don't use ctime; it's not reliable if the year has >4 digits.
41042 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
41043 This is for compatibility with BSD.
41045 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
41046 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
41047 From coreutils' system.h.
41049 * lib/userspec.c: Don't include "posixver.h".
41050 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
41051 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
41052 compatible extension. Simplify code by removing a boolean int
41053 that was always nonzero if a string was nonnull.
41055 2004-03-30 Jim Meyering <jim@meyering.net>
41057 Merge from coreutils.
41059 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
41060 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
41061 on some systems one must include <grp.h> before it.
41062 Reported by Christian Krackowizer.
41064 2004-03-30 Jim Meyering <jim@meyering.net>
41066 Merge from coreutils.
41068 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
41070 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
41071 an empty input stream.
41073 * lib/readtokens.c: Include <stdbool.h>.
41074 (readtoken): Use `size_t' rather than int/long.
41075 All callers adjusted.
41076 Use `bool' rather than `int' where appropriate.
41077 Use memset rather than an explicit loop.
41078 Use x2nrealloc rather than xrealloc.
41079 Allow the use of `\0' as a delimiter.
41080 (readtokens): Likewise.
41081 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
41083 2004-03-30 Jim Meyering <jim@meyering.net>
41085 * m4/realloc.m4: Remove file, since now it does no more than
41086 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
41087 the `configure.ac' section of module/realloc.
41088 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
41090 2004-03-30 Bruno Haible <bruno@clisp.org>
41092 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
41095 2004-03-29 Paul Eggert <eggert@twinsun.com>
41097 Merge changes to getloadavg.c from coreutils and Emacs.
41099 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
41100 Define to an expression, not to the empty string.
41101 Include cloexec.h and xalloc.h.
41102 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
41103 Use set_cloexec_flag rather than rolling our own.
41104 * lib/cloexec.c, lib/cloexec.h: New files.
41106 2004-03-29 Paul Eggert <eggert@twinsun.com>
41108 * m4/cloexec.m4: New file.
41110 2004-03-18 Paul Eggert <eggert@twinsun.com>
41112 * lib/getopt.h: Sync with libc CVS.
41114 2004-03-18 Paul Eggert <eggert@twinsun.com>
41115 Bruno Haible <bruno@clisp.org>
41117 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
41120 2004-03-18 Paul Eggert <eggert@twinsun.com>
41121 Bruno Haible <bruno@clisp.org>
41123 * lib/mbswidth.h: Include <wchar.h> only if
41124 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
41126 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
41128 2004-03-09 Paul Eggert <eggert@twinsun.com>
41130 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
41131 Sync with libc CVS.
41132 * lib/getopt_int.h: New file, also synced from libc.
41134 2004-03-09 Paul Eggert <eggert@twinsun.com>
41136 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
41137 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
41138 Bring back getopt.c, getopt.h, getopt1.c.
41140 2004-03-07 Paul Eggert <eggert@twinsun.com>
41142 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
41143 All uses changed. Check for sa_sigaction member; this fixes
41144 a bug first reported by Jason Andrade in
41145 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
41147 2004-03-07 Paul Eggert <eggert@twinsun.com>
41149 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
41150 '#if' expressions. Unlike the code it replaces, it does not
41151 depend on (defined _SC_PAGESIZE). However, it does depend on
41152 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
41153 first reported by Jason Andrade in
41154 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
41156 2004-02-25 Simon Josefsson <jas@extundo.com>
41158 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
41160 2004-02-25 Simon Josefsson <jas@extundo.com>
41162 * lib/strdup.h: New file.
41163 * lib/strdup.c: Include it.
41164 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
41165 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
41167 2004-02-23 Karl Berry <karl@gnu.org>
41169 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
41170 (from fencepost.gnu.org:/gd/gnuorg).
41172 2004-02-23 Karl Berry <karl@gnu.org>
41174 * config/srclistvars.sh (GNUORG) [karl]: redefine.
41175 * config/srclist.txt: add maintain/standards documents.
41177 2004-02-18 Bruno Haible <bruno@clisp.org>
41179 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
41180 Reported by Derek Robert Price <derek@ximbiot.com>.
41182 2004-02-16 Karl Berry <karl@gnu.org>
41184 * config/mkinstalldirs, install-sh: update from automake.
41186 2004-02-06 Karl Berry <karl@gnu.org>
41188 * m4/po.m4: update from gettext 0.14.1.
41190 2004-02-06 Karl Berry <karl@gnu.org>
41192 * lib/config.charset: update from gettext 0.14.1.
41194 2004-02-05 Paul Eggert <eggert@twinsun.com>
41196 Add comments and code, prompted by suggestions from Bruno Haible
41198 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
41199 describing the enum quoting_style values.
41200 * lib/quotearg.c (quotearg_alloc): New function.
41201 (quotearg_buffer_restyled): Treat lone { and } as special.
41202 Treat = as special. Work around bug with older shells
41203 that "see" a '\' that is really the 2nd byte of a multibyte char.
41204 Quote empty string with shell_quoting_style.
41206 2004-02-03 Bruno Haible <bruno@clisp.org>
41208 * m4/pipe.m4: New file, from GNU gettext.
41210 2004-02-03 Bruno Haible <bruno@clisp.org>
41212 * lib/pipe.h: New file, from GNU gettext.
41213 * lib/pipe.c: New file, from GNU gettext.
41215 2004-01-27 Bruno Haible <bruno@clisp.org>
41217 * m4/execute.m4: New file, from GNU gettext.
41219 2004-01-27 Bruno Haible <bruno@clisp.org>
41221 * lib/execute.h: New file, from GNU gettext.
41222 * lib/execute.c: New file, from GNU gettext.
41223 * lib/w32spawn.h: New file, from GNU gettext.
41225 2004-01-24 Paul Eggert <eggert@twinsun.com>
41227 Merge from diffutils.
41229 * lib/file-type.c (file_type): Add typed memory objects.
41230 * lib/file-type.h (S_TYPEISTMO): New macro.
41232 * lib/c-stack.h (c_stack_action): Remove argv argument.
41233 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
41234 (die): Don't calculate message unless segv_action returns.
41235 (get_stack_location, min_address_from_argv, max_address_from_argv,
41236 volatile stack_base, volatile_stack_size): Remove.
41237 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
41238 that every segmentation violation is a stack overflow. (Ouch!)
41239 See Debian bug 136249 (still outstanding) for more info about why
41240 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
41242 2004-01-24 Paul Eggert <eggert@twinsun.com>
41244 Exit-status fix from coreutils.
41246 Use exit_failure consistently in place of EXIT_FAILURE,
41247 so that program exit statuses are consistent on failure.
41249 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
41250 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
41251 * lib/argmatch.h: Comment fix to match the above.
41252 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
41253 Now a macro referring to exit_failure, instead of a separate
41254 variable. Include "exitfail.h" to get it.
41255 * lib/xstrtol.h: Include "exitfail.h".
41256 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
41258 * lib/long-options.c (parse_long_options): Use prototype
41259 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
41262 2004-01-21 Jim Meyering <jim@meyering.net>
41264 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
41265 so as not to conflict with a different-sized __mktime_internal
41266 function in GNU libc.
41267 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
41268 Problem building statically-linked `ls' reported by Michael Brunnbauer.
41270 2004-01-20 Karl Berry <karl@gnu.org>
41272 * config/config.guess: update from config.
41274 * config/srclistvars.sh: GNUWWWLICENSES for karl.
41276 2004-01-20 Bruno Haible <bruno@clisp.org>
41278 Safer stack allocation.
41279 * lib/setenv.c: Include allocsa.h.
41280 (alloca): Remove fallback definition.
41281 (freea): Remove macro.
41282 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
41285 2004-01-20 Bruno Haible <bruno@clisp.org>
41287 * m4/eealloc.m4: New file, from GNU gettext.
41289 2004-01-20 Bruno Haible <bruno@clisp.org>
41291 * m4/allocsa.m4: New file, from GNU gettext.
41293 2004-01-20 Bruno Haible <bruno@clisp.org>
41295 * lib/xallocsa.h: New file, from GNU gettext.
41296 * lib/xallocsa.c: New file, from GNU gettext.
41298 2004-01-20 Bruno Haible <bruno@clisp.org>
41300 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
41302 2004-01-20 Bruno Haible <bruno@clisp.org>
41304 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
41305 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
41308 2004-01-20 Bruno Haible <bruno@clisp.org>
41310 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
41313 2004-01-20 Bruno Haible <bruno@clisp.org>
41315 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
41317 2004-01-20 Bruno Haible <bruno@clisp.org>
41319 * lib/eealloc.h: New file.
41321 2004-01-20 Bruno Haible <bruno@clisp.org>
41323 * lib/binary-io.h: Avoid warnings on Cygwin.
41325 2004-01-20 Bruno Haible <bruno@clisp.org>
41327 * lib/allocsa.h: New file, from GNU gettext.
41328 * lib/allocsa.c: New file, from GNU gettext.
41330 2004-01-18 Karl Berry <karl@gnu.org>
41332 * doc/gpl.texi, doc/lgpl.texi: new files.
41334 2004-01-18 Karl Berry <karl@gnu.org>
41336 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
41337 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
41339 2004-01-15 Paul Eggert <eggert@twinsun.com>
41341 Merge from coreutils.
41343 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
41344 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
41345 (gl_DEFAULT_POSIX2_VERSION): Move
41346 the documentation from 'configure' into 'config.hin',
41347 so that 'configure --help' isn't burdened by it and
41348 we don't have to worry about its formatting there.
41349 Reword the documentation so that it's more succinct
41350 and can be run together into a single paragraph.
41351 * m4/same.m4 (gl_SAME): Check for pathconf.
41353 2004-01-15 Paul Eggert <eggert@twinsun.com>
41355 Merge from coreutils.
41357 * lib/posixver.c: Include posixver.h.
41359 * lib/same.c: Include <stdbool.h>, <limits.h>.
41360 (_POSIX_NAME_MAX): Define if not defined.
41362 (same_name): If file names are silently truncated, report
41363 that the file names are the same if they are the same after
41364 the silent truncation.
41366 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
41367 conversion function.
41368 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
41369 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
41372 2004-01-15 Jim Meyering <jim@meyering.net>
41374 Merge from coreutils.
41376 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
41377 if no library is required.
41378 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
41379 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
41380 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
41381 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
41382 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
41383 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
41384 value, $ac_cv_search_crypt, if it's "none required".
41385 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
41386 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
41387 not gl_FUNC_GETLOADAVG.
41388 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
41389 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
41391 2004-01-15 Jim Meyering <jim@meyering.net>
41393 Merge from coreutils.
41395 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
41396 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
41397 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
41399 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
41400 optional configure-time default.
41402 * lib/version-etc.c (version_etc_copyright): Update copyright date.
41404 * lib/xreadlink.c (xreadlink): Correct outdated comment.
41406 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
41408 Merge from coreutils.
41410 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
41411 value, $ac_cv_search_nanosleep, if it's "none required".
41413 2004-01-14 Paul Eggert <eggert@twinsun.com>
41415 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
41416 with like-named macro in fnmatch.c.
41417 (EXT): Use an internal constant instead.
41419 Merge fnmatch patches from glibc.
41420 * lib/fnmatch.c (mbsinit): Remove define.
41421 Add libc_hidden_ver (__fnmatch, fnmatch).
41422 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
41423 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
41425 2004-01-14 Karl Berry <karl@gnu.org>
41427 * config/install-sh: update from automake.
41429 2004-01-13 Karl Berry <karl@gnu.org>
41431 * config/install-sh: update from automake.
41433 2004-01-09 Karl Berry <karl@gnu.org>
41435 * config/install-sh: update from automake.
41437 2004-01-05 Karl Berry <karl@gnu.org>
41439 * config/config.{sub,guess}: update from config.
41441 2003-12-31 Karl Berry <karl@gnu.org>
41443 * config/depcomp: update from automake.
41445 2003-12-14 Karl Berry <karl@gnu.org>
41447 * lib/config.charset: update from gettext-runtime.
41449 2003-12-03 Paul Eggert <eggert@twinsun.com>
41451 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
41452 Bug reported by Alfred M. Szmidt.
41454 2003-12-03 Bruno Haible <bruno@clisp.org>
41456 * m4/gettext.m4: Upgrade from gettext-0.13.
41457 * m4/po.m4: Upgrade from gettext-0.13.
41458 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
41459 * m4/intmax.m4: New file, from gettext-0.13.
41460 * m4/printf-posix.m4: New file, from gettext-0.13.
41462 2003-11-29 Karl Berry <karl@gnu.org>
41464 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
41466 2003-11-25 Paul Eggert <eggert@twinsun.com>
41467 Bruno Haible <bruno@clisp.org>
41469 * lib/printf-parse.h: Don't include sys/types.h.
41470 (ARG_NONE): New macro.
41471 (char_directive): Change type of *arg_index fields to size_t.
41472 * lib/printf-parse.c: Don't include sys/types.h.
41473 (SSIZE_MAX): Remove macro.
41474 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
41475 Remove unnecessary overflow check.
41476 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
41479 2003-11-25 Bruno Haible <bruno@clisp.org>
41481 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
41483 2003-11-25 Bruno Haible <bruno@clisp.org>
41485 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
41488 2003-11-24 Paul Eggert <eggert@twinsun.com>
41490 * modules/alloca: Remove dependency on xalloc.
41492 2003-11-24 Paul Eggert <eggert@twinsun.com>
41494 * lib/alloca.c: Remove dependency on xalloc module.
41495 (xalloc_die): Remove.
41496 (memory_full) [!defined emacs]: New macro.
41497 [!defined emacs]: Don't include xalloc.h.
41498 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
41499 address arithmetic overflows. Change datatypes a bit to avoid
41502 2003-11-22 Jim Meyering <jim@meyering.net>
41504 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
41507 2003-11-21 Karl Berry <karl@gnu.org>
41509 * config/config.{sub,guess}: update from config.
41511 2003-11-18 Karl Berry <karl@gnu.org>
41513 * config/config.{sub,guess}: update from config.
41515 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
41517 2003-11-17 Paul Eggert <eggert@twinsun.com>
41519 * README: Mention that S+T cannot overflow if S is the size of
41520 an existing object and T is sufficiently small.
41522 2003-11-17 Jim Meyering <jim@meyering.net>
41524 On systems without utime and without a utimes function capable of
41525 dealing with a NULL struct utimbuf* argument, this utime replacement
41526 could -- in unusual circumstances -- leak a file descriptor.
41527 * lib/utime.c: Include <unistd.h> and <errno.h>.
41528 (utime_null): Be sure to close `fd' and to preserve errno.
41529 Reported by Geoff Collyer via Arnold Robbins.
41531 2003-11-17 Bruno Haible <bruno@clisp.org>
41533 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
41534 (Depends-on): Add xsize.
41536 2003-11-17 Bruno Haible <bruno@clisp.org>
41538 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
41540 2003-11-17 Bruno Haible <bruno@clisp.org>
41542 * lib/vasnprintf.c (alloca): Remove fallback definition.
41543 (freea): Remove definition.
41544 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
41545 Reported by Paul Eggert.
41547 2003-11-16 Paul Eggert <eggert@twinsun.com>
41548 Bruno Haible <bruno@clisp.org>
41550 Protect against address arithmetic overflow.
41551 * lib/printf-args.h: Include stddef.h.
41552 (arguments): Change type of field 'count' to size_t.
41553 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
41554 'unsigned int' where appropriate.
41555 * lib/printf-parse.h: Include sys/types.h.
41556 (char_directive): Change type of *arg_index fields to ssize_t.
41557 (char_directives): Change type of fields 'count', max_*_length to
41559 * lib/printf-parse.c: Include sys/types.h and xsize.h.
41560 (SSIZE_MAX): Define fallback value.
41561 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
41562 instead of 'int' where appropriate. Check a_allocated, d_allocated
41563 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
41564 * lib/vasnprintf.c: Include xsize.h.
41565 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
41566 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
41567 overflow. Avoid wraparound when converting a width or precision from
41570 2003-11-16 Bruno Haible <bruno@clisp.org>
41572 Update from GNU gettext.
41573 * lib/printf-parse.c: Generalize to it can be compiled for wide
41575 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
41576 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
41577 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
41578 SNPRINTF): New macros.
41579 Don't include <alloca.h> if the file is used inside libintl.
41580 (local_wcslen): New function, for Solaris 2.5.1.
41581 (VASNPRINTF): Use it instead of wcslen.
41583 2003-11-16 Bruno Haible <bruno@clisp.org>
41585 * lib/xsize.h (xmax): New function.
41586 (xsum, xsum3, xsum4): Declare as "pure" functions.
41588 2003-11-12 Paul Eggert <eggert@twinsun.com>
41590 * modules/xalloc (Files): Undo latest change, since xalloc.h
41591 no longer needs SIZE_MAX or PTRDIFF_MAX.
41593 2003-11-12 Paul Eggert <eggert@twinsun.com>
41595 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
41598 2003-11-12 Paul Eggert <eggert@twinsun.com>
41600 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
41601 "return", to pacify some unknown compiler. Problem reported
41602 by Joerg Schilling.
41604 2003-11-12 Paul Eggert <eggert@twinsun.com>
41606 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
41607 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
41608 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
41609 heuristic is just as accurate as far as we know, and it removes a
41610 dependency on size_max.m4 and ptrdiff_max.m4.
41612 2003-11-11 Bruno Haible <bruno@clisp.org>
41614 * modules/xsize (Files): Add m4/size_max.m4.
41615 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
41617 2003-11-11 Bruno Haible <bruno@clisp.org>
41619 * m4/size_max.m4: New file.
41620 * m4/ptrdiff_max.m4: New file.
41621 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
41622 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
41623 (gl_XALLOC): Invoke it.
41625 2003-11-11 Bruno Haible <bruno@clisp.org>
41627 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
41628 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
41631 2003-11-10 Paul Eggert <eggert@twinsun.com>
41633 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
41634 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
41635 rejected some allocations of exactly SIZE_MAX - 2 bytes.
41637 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
41638 not (size_t) -1, since it's defined here.
41640 2003-11-09 Karl Berry <karl@gnu.org>
41642 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
41644 2003-11-06 Paul Eggert <eggert@twinsun.com>
41646 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
41647 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
41648 Reject sizes of exactly SIZE_MAX bytes.
41649 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
41650 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
41652 2003-11-05 Bruno Haible <bruno@clisp.org>
41654 * lib/xsize.h: Include limits.h, to avoid a possible collision with
41655 SIZE_MAX defined in <limits.h> on Solaris.
41657 2003-11-04 Jim Meyering <jim@meyering.net>
41659 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
41660 variable names, rather than @VAR@.
41661 * modules/poll: Likewise.
41663 2003-11-04 Bruno Haible <bruno@clisp.org>
41665 * modules/xsize: New file.
41666 * modules/linebreak: Depend on xsize.
41667 * MODULES.html.sh (func_all_modules): Add xsize.
41669 2003-11-04 Bruno Haible <bruno@clisp.org>
41671 * m4/xsize.m4: New file.
41673 2003-11-04 Bruno Haible <bruno@clisp.org>
41675 * lib/xsize.h: New file.
41676 * lib/linebreak.c: Include xsize.h.
41677 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
41678 argument for overflow.
41679 Suggested by Paul Eggert.
41681 2003-11-03 Karl Berry <karl@gnu.org>
41683 * config/config.{guess,sub}: update from config.
41685 2003-11-03 Jim Meyering <jim@meyering.net>
41687 * modules/userspec (lib_SOURCES): Add userspec.h.
41688 (Include): Add "userspec.h".
41689 Improve description.
41691 2003-11-03 Jim Meyering <jim@meyering.net>
41693 * lib/userspec.c: Include "userspec.h".
41694 * lib/userspec.h: New file.
41696 2003-11-03 Bruno Haible <bruno@clisp.org>
41698 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
41700 2003-11-03 Bruno Haible <bruno@clisp.org>
41702 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
41703 available, to avoid (extremely rare) race condition.
41704 Suggested by Paul Eggert.
41706 2003-11-02 Karl Berry <karl@gnu.org>
41708 * config/srclist.txt (vasprintf.c): sync broken, sigh.
41710 2003-10-31 Paul Eggert <eggert@twinsun.com>
41712 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
41713 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
41714 (read_filesystem_list): Set and use me_type_malloced.
41715 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
41716 whatever the type happens to be), for brevity and consistency.
41717 Check for size calculation overflow on Alphas running OSF/1.
41719 2003-10-31 Jim Meyering <jim@meyering.net>
41721 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
41723 * lib/linebuffer.c: Include <string.h> for declaration of memset.
41725 2003-10-30 Paul Eggert <eggert@twinsun.com>
41726 Bruno Haible <bruno@clisp.org>
41728 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
41729 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
41731 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
41733 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
41734 netbsd*-gnu*. Suggested by Robert Millan.
41736 2003-10-29 Paul Eggert <eggert@twinsun.com>
41738 * modules/group-member: Depend on stdbool.
41740 2003-10-29 Paul Eggert <eggert@twinsun.com>
41742 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
41744 2003-10-29 Paul Eggert <eggert@twinsun.com>
41746 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
41747 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
41748 after the 'gnu' in these cases. This fixes some bugs in the
41749 previous change, and is based on suggestions by Robert Millan.
41751 2003-10-29 Paul Eggert <eggert@twinsun.com>
41753 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
41754 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
41756 * lib/quotearg.c (quotearg_n_options): Use it.
41757 * lib/group-member.c: Include <stdbool.h>.
41758 (free_group_info): Arg is now const *; don't free arg.
41759 (get_group_info): Now returns bool and accepts struct group_info *,
41760 rather than returning a malloc'ed struct group_info *.
41761 All uses changed. Check for overflow in internal size calculation.
41763 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
41764 rather than xmalloc/xrealloc.
41765 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
41766 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
41767 conformance bug: the old code used a pointer after freeing the
41768 storage that it addressed.
41769 * lib/hash.c (hash_initialize): Simplify the code by using
41770 xalloc_oversized rather than doing it by hand.
41771 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
41772 the buffer preserved. Use free and xmalloc instead.
41773 * lib/quotearg.c (quotearg_n_options): Likewise.
41774 Use a simpler test for size overflow. Don't use xalloc_oversized
41775 because unsigned int might be wider than size_t (!); this suggests
41776 that we should switch from unsigned int to size_t for slot numbers.
41778 2003-10-28 Paul Eggert <eggert@twinsun.com>
41780 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
41781 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
41782 NetBSD kernels. Requested by Richard Stallman.
41784 2003-10-27 Paul Eggert <eggert@twinsun.com>
41786 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
41787 to allocate the returned structure. Do not allocate a subarray,
41788 as x2nrealloc will do that.
41789 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
41790 instead of xnrealloc.
41791 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
41793 2003-10-27 Bruno Haible <bruno@clisp.org>
41795 * lib/stdbool_.h: Better support for BeOS.
41797 2003-10-26 Paul Eggert <eggert@twinsun.com>
41799 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
41802 2003-10-26 Paul Eggert <eggert@twinsun.com>
41804 * lib/xalloc.h (xalloc_oversized): New static inline function, for
41805 callers that want to do their own size-overflow checking. Include
41806 <stdbool.h>, since xalloc_oversized returns bool.
41807 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
41808 to use xalloc_oversized.
41810 Add two functions x2realloc, x2nrealloc, for programs that grow
41811 arrays dynamically by doubling their sizes.
41812 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
41813 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
41816 Port to C99 semantics for 'inline' of external functions.
41817 Bug reported by Bruno Haible.
41818 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
41819 with the old contents of xnmalloc.
41820 (xnmalloc, xmalloc): Use it.
41821 (xnrealloc_inline): New static inline function,
41822 with the old contents of xnrealloc.
41823 (xnrealloc, xrealloc): Use it.
41825 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
41828 2003-10-26 Karl Berry <karl@gnu.org>
41830 * config/srclist.txt (COPYING.DOC): no longer available from
41831 /gd/gnuorg; don't know where the ultimate source is.
41833 2003-10-25 Paul Eggert <eggert@twinsun.com>
41835 Fix several address-calculation bugs in the hash modules,
41836 plus some minor code cleanup.
41838 * lib/hash.h: Include <stdbool.h>, for bool.
41839 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
41840 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
41841 hash_get_n_entries, hash_get_max_bucket_length,
41842 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
41843 hash_rehash): Use size_t rather than unsigned.
41844 * lib/hash.c (struct hash_table, hash_get_n_buckets,
41845 hash_get_n_buckets_used, hash_get_n_entries,
41846 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
41847 hash_get_entries, hash_do_for_each, hash_string, is_prime,
41848 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
41850 (SIZE_MAX): Define if not defined.
41851 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
41852 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
41854 Use const * when possible.
41855 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
41856 (check_tuning): Fix bug: if tuning parameters were very close to
41857 0 or 1, rounding errors could have caused subscript violations.
41858 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
41859 (hash_initialize): Add 'fail:' label
41860 to free table and return NULL, and use it to simplify code.
41861 Use calloc rather than clearing the storage ourself.
41862 (hash_initialize, hash_rehash): Check for arithmetic overflow in
41863 buffer size calculations.
41864 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
41865 Include <stddef.h>, for size_t.
41866 * lib/hash-pjw.c (hash_pjw): Likewise.
41867 Switch to method described by Bruno Haible.
41868 Include <limits.h>, for CHAR_BIT.
41869 (SIZE_BITS): New macro.
41871 2003-10-23 Paul Eggert <eggert@twinsun.com>
41873 * m4/getline.m4 (AM_FUNC_GETLINE):
41874 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
41875 hosts. Problem reported by Derek Robert Price in
41876 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
41877 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
41878 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
41880 2003-10-21 Paul Eggert <eggert@twinsun.com>
41882 * lib/getndelim2.c (getndelim2): When size calculation overflows,
41883 ceiling the allocation at NMAX bytes rather than silently
41884 discarding input bytes before NMAX is reached. This makes
41885 a difference only if NMAX exceeds SIZE_MAX / 2.
41887 * lib/obstack.c: Merge from glibc.
41888 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
41889 Add libc_hidden_def (_obstack_newchunk).
41890 (_obstack_free) [! defined _LIBC]: Remove.
41891 [defined _LIBC]: Make a strong alias from obstack_free, rather than
41892 a clone of the function body.
41893 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
41894 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
41896 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
41898 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
41901 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
41902 (obstack_ptr_grow_fast, obstack_int_grow_fast):
41903 Don't use lvalue casts, as GCC plans to remove support for them
41904 in GCC 3.5. Reported by Joseph S. Myers. This bug
41905 was also present in the non-GCC version, indicating that this
41906 code had always been buggy and had never been widely used.
41907 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
41908 Use the fast variant of each macro, rather than copying the
41909 definiens of the fast variant; that way, we'll be more likely to
41910 catch future bugs in the fast variants.
41912 2003-10-20 Bruno Haible <bruno@clisp.org>
41914 * modules/wait-process: New file.
41915 * MODULES.html.sh (func_all_modules): Add wait-process.
41917 2003-10-20 Bruno Haible <bruno@clisp.org>
41919 * m4/wait-process.m4: New file.
41921 2003-10-20 Bruno Haible <bruno@clisp.org>
41923 * lib/wait-process.h: New file, from GNU gettext.
41924 * lib/wait-process.c: New file, from GNU gettext.
41926 2003-10-19 Jim Meyering <jim@meyering.net>
41928 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
41931 2003-10-18 Karl Berry <karl@gnu.org>
41933 * config/config.guess: update from config.
41935 2003-10-16 Paul Eggert <eggert@twinsun.com>
41937 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
41938 (getgroups): First arg is int, not size_t.
41939 Don't let 'free' mangle errno.
41941 2003-10-16 Paul Eggert <eggert@twinsun.com>
41943 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
41945 2003-10-16 Karl Berry <karl@gnu.org>
41947 * config/config.{guess,sub}: update from config.
41949 2003-10-16 Jim Meyering <jim@meyering.net>
41951 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
41954 2003-10-15 Paul Eggert <eggert@twinsun.com>
41956 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
41957 (SIZE_MAX): Remove.
41958 (new_exclude, add_exclude_file): Initial size no longer needs to
41960 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
41961 our own address arithmetic overflow checking.
41963 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
41964 (fnmatch): Do not alloca more than 2000 wide characters;
41965 instead, use malloc for large buffers.
41966 Check for address arithmetic overflow, and return -1
41967 with errno set to ENOMEM in that case.
41968 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
41969 (NEW_PATTERN): Do not alloca more than 8000 bytes;
41970 instead, return -1. Check for address arithmetic overflow.
41972 2003-10-14 Paul Eggert <eggert@twinsun.com>
41974 Handle invalid suffixes and overflow independently, so that
41975 callers can treat them independently as needed. Fix some bugs in
41976 suffix handling, e.g., "100k@" was not diagnosed as an invalid
41977 suffix for a human-readable blocksize. The major caller-visible
41978 change is the addition of a new
41979 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
41980 that both overflow and suffix chars were found.
41982 * lib/human.c (humblock): Don't check separately for invalid suffix
41983 char; that is xstrtoumax's job (now that its bug is fixed).
41984 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
41985 INTMAX_MAX]: New macros.
41986 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
41987 TYPE_MAXIMUM): New macros.
41988 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
41989 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
41990 if overflow occurs, as it's what __strtol does and it's more useful
41992 (__xstrtol): If __strtol reports some error other than ERANGE,
41993 reflect it to the caller as LONGINT_INVALID. If it reports
41994 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
41995 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
41996 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
41998 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
41999 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
42000 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
42001 [defined UINTMAX_MAX]: New macros.
42003 2003-10-14 Bruno Haible <bruno@clisp.org>
42005 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
42007 2003-10-14 Bruno Haible <bruno@clisp.org>
42009 * m4/sig_atomic_t: New file, from GNU gettext.
42010 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
42012 2003-10-14 Bruno Haible <bruno@clisp.org>
42014 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
42015 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
42016 Also use volatile where needed.
42018 2003-10-12 Paul Eggert <eggert@twinsun.com>
42020 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
42021 Change maintainer from Bruno Haible to 'all'.
42023 2003-10-12 Paul Eggert <eggert@twinsun.com>
42025 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
42027 2003-10-12 Paul Eggert <eggert@twinsun.com>
42029 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
42030 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
42031 and define in terms of the other primitives.
42032 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
42033 (SIZE_MAX): Define if not already defined.
42034 (array_size_overflow): New function.
42035 (xalloc_die): Abort instead of exiting if 'error' returns.
42036 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
42037 (xmalloc, xrealloc): Use them.
42038 (xcalloc): Check for address arithmetic overflow.
42039 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
42040 a bit faster than strcpy.
42042 2003-10-10 Simon Josefsson <jas@extundo.com>
42044 * modules/argp (Depends-on): Add restrict and strcase.
42046 2003-10-10 Simon Josefsson <jas@extundo.com>
42048 * m4/argp.m4: Add AC_C_INLINE.
42050 2003-10-08 Paul Eggert <eggert@twinsun.com>
42052 Merge getpass from libc, plus a few fixes.
42054 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
42055 Include <stdbool.h>.
42056 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
42057 __fsetlocking to empty.
42058 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
42059 do include <bits/libc-lock.h>.
42060 Do not include <fcntl.h>; not needed.
42061 [_LIBC]: Include <wchar.h>.
42062 (NOTCANCEL_MODE): New macro.
42063 (flockfile, funlockfile) [_LIBC]: New macros.
42064 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
42065 [!_LIBC]: New macros.
42066 (call_fclose): New function.
42067 (getpass): Use it. Save tty stream separately; this simplifies the
42068 code and makes it more reliable if stdin happens to equal stdout.
42069 Invoke __fsetlocking on tty.
42070 Handle thread cancellation if needed.
42071 Namespace cleanup (use __tcgetattr, __getline).
42072 Use bool for Booleans.
42073 [USE_IN_LIBIO]: Handle wide streams.
42074 [!_LIBC]: Unconditionally do the fseek, since we don't know what
42075 stream might go where.
42077 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
42078 doesn't have to include <stdio.h> before us.
42079 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
42080 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
42081 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
42082 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
42083 if not declared, so that we can use getpass.c code from libc without
42085 (flockfile, ftrylockfile, funlockfile): New macros.
42087 2003-10-08 Paul Eggert <eggert@twinsun.com>
42089 * modules/getpass: Depend on stdbool.
42091 2003-10-08 Paul Eggert <eggert@twinsun.com>
42093 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
42095 2003-10-07 Karl Berry <karl@gnu.org>
42097 * config/config.{guess,sub}: update from config.
42099 2003-10-06 Jim Meyering <jim@meyering.net>
42100 Bruno Haible <bruno@clisp.org>
42102 This lets translators provide better translations for the
42103 "Written by ..." part of --version output.
42104 * lib/version-etc.h: Include stdarg.h.
42105 (version_etc_copyright): Declare as readonly.
42106 (version_etc): Make this function variadic with a NULL-terminated list
42107 of author name strings.
42108 (version_etc_va): New declaration.
42109 * lib/version-etc.c: Include stdarg.h, stdlib.h.
42110 (version_etc_copyright): Declare as readonly.
42111 (version_etc_va): New function. Provide a different translatable string
42112 for each possible number of authors < 10. Abbreviate when there are 10
42114 (version_etc): Make this function variadic. Call version_etc_va.
42115 Suggestion from Gary V. Vaughan.
42117 * lib/long-options.h (parse_long_options): Change prototype: the
42118 authors string is moved to the end and becomes variadic.
42119 * lib/long-options.c: Include stdarg.h.
42120 (parse_long_options): Make this function variadic, too.
42121 Call version_etc_va, not version_etc.
42123 2003-10-06 Bruno Haible <bruno@clisp.org>
42125 * modules/version-etc-2: Remove file.
42126 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
42128 2003-10-06 Bruno Haible <bruno@clisp.org>
42130 * modules/fatal-signal: New file.
42131 * MODULES.html.sh (func_all_modules): Add fatal-signal.
42133 2003-10-06 Bruno Haible <bruno@clisp.org>
42135 * m4/fatal-signal.m4: New file.
42136 * m4/signalblocking.m4: New file, from GNU gettext.
42138 2003-10-06 Bruno Haible <bruno@clisp.org>
42140 * lib/version-etc-2.h: Remove file.
42141 * lib/version-etc-2.c: Remove file.
42143 2003-10-06 Bruno Haible <bruno@clisp.org>
42145 * lib/fatal-signal.h: New file, from GNU gettext.
42146 * lib/fatal-signal.c: New file, from GNU gettext.
42148 2003-10-05 Paul Eggert <eggert@twinsun.com>
42150 * README: Rework advice for preventing empty .o files.
42151 Don't recommend ELIDE constructs. Recommend <stddef.h>,
42154 2003-10-04 Karl Berry <karl@gnu.org>
42156 * lib/argp*: update from libc.
42158 2003-10-04 Karl Berry <karl@gnu.org>
42160 * config/config.{guess,sub}: update from config.
42162 2003-10-02 Bruno Haible <bruno@clisp.org>
42164 * modules/lchown (Include): Add lchown.h.
42165 * modules/time_r (Include): Use "..." syntax.
42166 * modules/xgetdomainname (Include): Add xgetdomainname.h.
42168 2003-10-01 Simon Josefsson <jas@extundo.com>
42170 * MODULES.html.sh (func_all_modules): Move gethostname from section
42171 'based on' to section 'lacking' POSIX:2001.
42173 2003-10-01 Larry Jones <lawrence.jones@eds.com>
42175 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
42176 to output mode on the same stream.
42178 2003-09-29 Paul Eggert <eggert@twinsun.com>
42180 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
42181 Fix arg typo in previous patch.
42183 2003-09-28 Jim Meyering <jim@meyering.net>
42185 * lib/error.c: Correct cpp indentation.
42187 2003-09-27 Paul Eggert <eggert@twinsun.com>
42189 * modules/free: New file.
42191 2003-09-27 Paul Eggert <eggert@twinsun.com>
42193 * m4/free.m4: New file.
42195 2003-09-27 Paul Eggert <eggert@twinsun.com>
42197 * lib/minmax.h (MIN, MAX)
42198 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
42199 Omit the special code that used __typeof__, since we worry that
42200 it could be more trouble than it's worth. See:
42201 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
42202 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
42204 * lib/free.c: New file.
42206 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
42208 Trivial fixes to Makefile.am parts of module listings.
42209 * modules/strstr: Append strstr.h to lib_SOURCES.
42210 * modules/strcase: Likewise, for strcase.h.
42212 2003-09-27 Karl Berry <karl@gnu.org>
42214 * config/mkinstalldirs: update from automake.
42216 2003-09-26 Paul Eggert <eggert@twinsun.com>
42218 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
42219 (error_tail): Do not loop, reallocating temporary buffer, since
42220 the output cannot contain more wide characters than the input
42221 contains bytes, the size must be big enough already. This avoids
42222 one potential size overflow calculation. Check for size overflow
42223 when calculating temporary buffer size. Free temporary buffer
42224 when done, if it was allocated with malloc; this plugs a memory
42225 leak. Remove casts from void * to pointers, that are no longer
42226 needed now that we're assuming C89 or better.
42228 Merge error changes from glibc.
42230 * lib/error.c, error.h: Update copyright notice header to match glibc.
42231 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
42232 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
42233 Disable cancellation while printing error.
42234 * lib/error.h: Prepend __ to parameter names.
42236 2003-09-26 Jim Meyering <jim@meyering.net>
42238 * lib/error.c (error_tail): Move some declarations
42239 into inner scope where the local variables are used.
42241 2003-09-26 Bruno Haible <bruno@clisp.org>
42243 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
42245 Don't define stpncpy through config.h; it's now done through stpncpy.h.
42247 2003-09-26 Bruno Haible <bruno@clisp.org>
42249 * lib/stpncpy.h (gnu_stpncpy): New declaration.
42250 (stpncpy): Define as alias for gnu_stpncpy.
42251 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
42253 2003-09-25 Simon Josefsson <jas@extundo.com>
42255 * lib/xgetdomainname.h: New file.
42256 * lib/xgetdomainname.c: New file.
42258 2003-09-25 Simon Josefsson <jas@extundo.com>
42259 Bruno Haible <bruno@clisp.org>
42261 * modules/getdomainname: New file.
42262 * modules/xgetdomainname: New file.
42263 * MODULES.html.sh (func_all_modules): Add getdomainname,
42266 2003-09-25 Simon Josefsson <jas@extundo.com>
42267 Bruno Haible <bruno@clisp.org>
42269 * m4/getdomainname.m4: New file.
42271 2003-09-25 Simon Josefsson <jas@extundo.com>
42272 Bruno Haible <bruno@clisp.org>
42274 * lib/getdomainname.h: New file.
42275 * lib/getdomainname.c: New file.
42277 2003-09-25 Karl Berry <karl@gnu.org>
42279 * lib/argp-fmtstream.c, argp-help.c: update from libc.
42281 2003-09-25 Karl Berry <karl@gnu.org>
42283 * config/install-sh: update from automake.
42285 2003-09-25 Bruno Haible <bruno@clisp.org>
42287 * modules/version-etc-2: New file, from modules/version-etc with
42289 * MODULES.html.sh (func_all_modules): Add version-etc-2.
42291 2003-09-25 Bruno Haible <bruno@clisp.org>
42293 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
42294 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
42296 2003-09-24 Simon Josefsson <jas@extundo.com>
42298 * modules/xgethostname: Add xgethostname.h.
42300 2003-09-24 Paul Eggert <eggert@twinsun.com>
42302 * lib/linebuffer.c (freebuffer): Don't free the argument, just
42303 the buffer associated with the argument. Bug reported by
42306 2003-09-24 Paul Eggert <eggert@twinsun.com>
42308 * README: Document assumptions that 'int' is at least 32 bits
42309 wide, that integer arithmetic is 2's complement without overflow,
42310 that there are no holes in integer values, that adding sizes of
42311 two nonoverlapping objects can't overflow, and that all-bits-zero
42312 yields scalar zero. Fix spelling and capitalization typos.
42314 2003-09-19 Karl Berry <karl@gnu.org>
42316 * lib/argp.h: update from libc.
42318 2003-09-17 Paul Eggert <eggert@twinsun.com>
42320 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
42321 to avoid spurious warnings like "AC_RUN_IFELSE was called before
42322 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
42324 2003-09-17 Paul Eggert <eggert@twinsun.com>
42326 * gnulib-tool: Use "test -h", not "test -L", for portability
42327 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
42328 (tags_regexp): Remove, since \| doesn't conform to POSIX.
42329 (sed_extract_prog): Issue s commands one-by-one, rather than
42330 using \| in one s command.
42332 2003-09-16 Paul Eggert <eggert@twinsun.com>
42334 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
42335 input error, instead of returning NULL the next time we are called
42336 (and therefore losing track of errno).
42338 2003-09-16 Bruno Haible <bruno@clisp.org>
42340 * gnulib-tool (func_create_testdir): Warn about duplicated
42343 2003-09-15 Paul Eggert <eggert@twinsun.com>
42345 * modules/argmatch, modules/fatal, modules/obstack,
42346 modules/xalloc, modules/xgethostname: Sort dependencies by
42347 importance, not alphabetically.
42349 2003-09-15 Paul Eggert <eggert@twinsun.com>
42351 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
42352 fails, so that the caller gets the proper errno.
42354 * lib/readutmp.c (read_utmp): Likewise.
42355 Check for fstat error. Close stream and free storage
42358 2003-09-14 Karl Berry <karl@gnu.org>
42360 * config/srclist.txt (strdup.c): disable for c89 changes.
42362 2003-09-14 Jim Meyering <jim@meyering.net>
42364 * lib/getloadavg.c: Correct cpp indentation.
42365 * lib/strdup.c: Likewise.
42366 * lib/vasnprintf.c: Likewise.
42368 2003-09-14 Bruno Haible <bruno@clisp.org>
42370 * modules/fwriteerror: New file.
42371 * MODULES.html.sh (func_all_modules): Add fwriteerror.
42373 2003-09-14 Bruno Haible <bruno@clisp.org>
42375 * lib/fwriteerror.h: New file.
42376 * lib/fwriteerror.c: New file.
42378 2003-09-12 Paul Eggert <eggert@twinsun.com>
42380 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
42381 modules/xgethostname, modules/xalloc: Depend on exit.
42383 2003-09-12 Paul Eggert <eggert@twinsun.com>
42385 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
42387 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
42388 and AC_MINIX, too, so that their extensions are available.
42390 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
42391 This macro has been superseded by gl_BACKUPFILE.
42393 More patches to assume C89 or better.
42395 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
42397 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
42399 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
42400 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
42401 Include <string.h>, <stdlib.h> unconditionally.
42402 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
42403 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
42404 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
42405 headers or for string.h.
42406 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
42409 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
42411 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
42412 * m4/userspec.m4 (gl_USERSPEC): Likewise.
42413 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
42414 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
42415 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42416 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
42418 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
42419 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
42420 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
42422 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
42423 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
42424 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
42427 2003-09-12 Paul Eggert <eggert@twinsun.com>
42429 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
42430 * lib/obstack.c [!defined _LIBC]: Likewise.
42431 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
42432 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
42433 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
42435 More changes to assume C89 or better.
42437 * lib/error.c (error_tail): Assume vprintf.
42439 * lib/argmatch.c (getenv): Remove decl.
42440 * lib/progreloc.c (get_full_program_name): Define via prototype.
42441 * lib/setenv.c (clearenv): Likewise.
42442 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
42444 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
42445 (malloc, memcpy): Remove decls.
42446 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
42447 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
42448 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
42449 (memcpy): Remove macro.
42450 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
42451 (__P): Remove. All uses removed.
42452 (PTR): Remove. All uses changed to void *.
42453 (CHAR_BIT, NULL): Remove.
42454 (spaces, zeros, memset_space, memset_zero)
42455 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
42457 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
42458 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
42459 Define with prototype.
42460 Remove now-unnecessary prototype decl.
42461 (extra_args_spec): Assume ANSI C. All uses changed.
42462 (extra_args_spec_iso): Remove.
42463 (my_strftime, emacs_strftimeu): Define via prototype.
42464 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
42466 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
42467 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
42468 (strtoul, strtol): Remove decls.
42469 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
42471 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
42472 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
42473 (LOCALE_PARAM_PROTO): New macro.
42474 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
42475 (INTERNAL (strtol), strtol): Define with a prototype.
42476 (PARAMS): Remove. All uses removed.
42477 * lib/tempname.c: Include <string.h> unconditionally.
42478 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
42479 * lib/xgethostname.c (main): Define with a prototype.
42480 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
42481 Include <stdlib.h> unconditionally.
42482 (calloc, malloc, realloc, free): Remove decls.
42483 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
42484 Include <stdlib.h> unconditionally. Sort include file names.
42486 (xstrtod): Define with a prototype.
42487 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
42488 (strtol, strtoul): Remove decls.
42490 2003-09-11 Paul Eggert <eggert@twinsun.com>
42492 More patches to assume C89 or better.
42493 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
42494 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
42495 string.h, memchr, STDC_HEADERS.
42497 2003-09-11 Paul Eggert <eggert@twinsun.com>
42499 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
42500 Include <stdlib.h>, <string.h> unconditionally.
42501 Remove now-unnecessary cast to char *.
42502 * lib/strnlen.c: Include <string.h> unconditionally.
42503 * lib/yesno.c (yesno): Define with a prototype.
42505 2003-09-11 Bruno Haible <bruno@clisp.org>
42507 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
42509 2003-09-10 Jim Meyering <jim@meyering.net>
42511 * lib/error.c: Correct indentation of cpp directives.
42513 2003-09-10 Bruno Haible <bruno@clisp.org>
42515 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
42516 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
42517 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
42518 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
42519 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
42520 <stdlib.h> and <string.h> checks.
42521 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
42522 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
42524 2003-09-10 Bruno Haible <bruno@clisp.org>
42526 * lib/strcspn.c: Include <string.h> unconditionally.
42527 * lib/strpbrk.c: Include <string.h> unconditionally.
42528 * lib/strstr.c: Include <string.h> unconditionally.
42529 * lib/unicodeio.c: Include <string.h> unconditionally.
42530 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
42531 * lib/unsetenv.c: Likewise.
42532 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
42533 * lib/yesno.c: Include <stdlib.h> unconditionally.
42534 (rpmatch): Add prototype.
42536 2003-09-09 Paul Eggert <eggert@twinsun.com>
42538 More patches to assume C89 or better.
42539 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
42540 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
42541 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
42543 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
42545 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
42547 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
42549 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
42550 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
42551 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
42553 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
42554 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
42556 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
42558 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
42559 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
42560 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
42561 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
42562 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
42563 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
42565 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
42566 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
42567 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
42568 C headers, or for string.h.
42569 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
42570 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
42571 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
42572 headers, memory.h, stdlib.h, string.h, strings.h.
42573 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
42574 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
42575 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
42577 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
42578 headers, memory.h, string.h.
42579 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
42580 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
42582 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
42584 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
42585 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
42586 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
42587 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
42588 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
42590 2003-09-09 Paul Eggert <eggert@twinsun.com>
42594 * lib/acosl.c (main): Use a prototype.
42595 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
42598 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
42600 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
42601 (getopt, etopt_long, getopt_long_only, _getopt_internal)
42602 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
42604 * lib/getopt.c (const): Remove macro.
42605 Include <string.h> unconditionally.
42606 (my_index): Remove; all uses changed to strchr.
42607 (strlen): Remove decl.
42608 (exchange): Remove forward decl; no longer needed.
42609 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
42610 Define with prototype.
42611 * lib/getopt1.c (const): Remove macro.
42612 (getopt_long, getopt_long_only, main): Define with prototype.
42614 * lib/getugroups.c: Include <string.h> unconditionally.
42616 * lib/getusershell.c: Include <stdlib.h> unconditionally.
42617 (getusershell, setusershell, endusershell, readname, main):
42618 Define with prototypes.
42620 * lib/group-member.c: Include group-member.h first.
42621 Include <stdlib.h> unconditionally.
42623 * lib/hard-locale.c: Include hard-locale.h first.
42624 Include <stdlib.h>, <string.h> unconditionally.
42626 * lib/hash.c (free, malloc): Remove decls.
42627 Include <stdlib.h> unconditionally.
42629 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
42630 (getenv): Do not declare.
42632 * lib/idcache.c: Include <string.h> unconditionally.
42634 * lib/long-options.c: Include long-options.h first, to test interface.
42635 Include <stdlib.h> unconditionally.
42637 * lib/makepath.c: Include makepath.h first, to test interface.
42638 Include <stdlib.h> and <string.h> unconditionally.
42640 * lib/linebuffer.c: Include <stdlib.h>.
42641 (free): Remove decl.
42643 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
42644 stddef.h. rpl_malloc returns void *, not char *.
42645 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
42648 * lib/md5.h: Include <limits.h> unconditionally.
42649 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
42650 (__P): Remove; all uses removed.
42651 * lib/md5.c: Include "md5.h" first.
42652 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
42653 md5_buffer, md5_process_bytes, md5_process_block):
42654 Define with prototypes.
42655 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
42656 * lib/sha.c: Include "sha.h" first.
42657 Include <stdlib.h>, <string.h> unconditionally.
42659 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
42660 * lib/memcmp.c (__ptr_t): Likewise.
42661 * lib/memrchr.c (__ptr_t): Likewise.
42662 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
42663 Include <string.h> unconditionally.
42664 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
42665 * lib/memchr.c: Include <stdlib.h> unconditionally.
42666 * lib/memchr.c (LONG_MAX): Remove.
42667 * lib/memrchr.c (LONG_MAX): Likewise.
42668 * lib/memchr.c (__memchr): Define via a prototype.
42669 * lib/memrchr.c (__memrchr): Likewise.
42670 * lib/memcmp.c (__P): Remove, and remove all uses.
42671 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
42672 Remove forward decls; no longer needed.
42673 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
42674 Use types required by C89 in prototype.
42676 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
42677 * lib/savedir.c: Likewise.
42678 * lib/mkdir.c (free): Remove decl.
42679 * lib/rmdir.c (rmdir): Define with a prototype.
42680 * lib/savedir.c: Include savedir.h first, to test interface.
42682 * lib/mktime.c (STDC_HEADERS): Remove.
42683 Include <stdlib.h>, <string.h> unconditionally.
42685 * lib/modechange.c: Include <stdlib.h> unconditionally.
42686 (malloc): Remove decl.
42688 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
42689 (free): Remove decl.
42691 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
42692 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
42693 (This type really should be intptr_t, but that's a C99ism.)
42694 (_obstack_memcpy): Remove: all uses changed to memcpy.
42695 Include <string.h> unconditionally.
42696 (struct obstack): Assume __STDC__ for types of members
42697 chunkfun, freefun, extra_arg.
42698 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
42699 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
42700 obstack_begin, obstack_specify_allocation,
42701 obstack_specify_allocation_with_arg, obstack_chunkfun,
42702 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
42703 Remove unprototyped decls and the macros that use them.
42704 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
42705 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
42706 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
42707 (defined __STDC__ && __STDC__)]:
42708 Remove nonprototyped code.
42709 Include <stdlib.h> unconditionally.
42710 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
42711 _obstack_allocated_p, _obstack_free, obstack_free,
42712 _obstack_memory_used, print_and_abort):
42713 Define using prototypes.
42714 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
42715 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
42716 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
42717 obstack_next_free, obstack_object_size, obstack_room) [0]:
42718 Remove unused, unprototyped code.
42720 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
42722 * lib/physmem.c (physmem_total, physmem_available, main): Define
42725 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
42726 (main): Define with a prototype.
42728 * lib/posixver.c (getenv): Remove decl.
42730 * lib/putenv.c (malloc): Returns void *, not char *.
42731 Include <string.h> unconditionally.
42732 (strchr, memcpy, NULL): Do not define.
42734 * lib/readtokens.c: Include readtokens.h first, to test interface.
42735 Include <stdlib.h>, <string.h> unconditionally.
42736 (init_tokenbuffer): Define with a prototype.
42738 * lib/regex.c (PARAMS): Remove. All uses removed.
42739 All uses of _RE_ARGS removed, too.
42740 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
42742 (bzero): Assume memset exists.
42743 (memcmp, memcpy, NULL): Remove.
42744 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
42745 char, or assignments to local vars of type signed char.
42746 (init_syntax_once, PREFIX(extract_number_and_incr),
42747 PREFIX(print_partial_compiled_pattern),
42748 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
42749 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
42750 PREFIX(regex_grow_registers), PREFIX(regex_compile),
42751 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
42752 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
42753 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
42754 wcs_compile_range, byte_compile_range, truncate_wchar,
42755 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
42756 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
42757 count_mbs_length, wcs_re_match_2_internal,
42758 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
42759 PREFIX(alt_match_null_string_p),
42760 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
42761 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
42762 regfree, PREFIX(extract_number)): Define with prototype. Remove
42763 now-unnecessary declaration, if any.
42764 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
42766 Remove now-unnecessary casts among pointer types.
42767 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
42769 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
42770 (free): Remove decl.
42772 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
42774 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
42775 (free): Remove decl.
42777 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
42778 * lib/xgetcwd.c: Likewise.
42780 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
42781 (free): Remove decl.
42783 * lib/strchrnul.c (strchrnul): Define with a prototype.
42784 Fix bug: c_in was not converted to char before searching.
42786 The following changes are not K&R related:
42788 * lib/group-member.h: Include <sys/types.h>, so that this file is
42790 * lib/makepath.h: Likewise.
42792 * lib/getusershell.c (readname, default_index, line_size, readname):
42793 Use size_t, not int, for sizes.
42794 (readname): If the size overflows, report an error instead of
42797 2003-09-09 Paul Eggert <eggert@twinsun.com>
42799 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
42802 2003-09-09 Paul Eggert <eggert@twinsun.com>
42804 * README: New section: portability guidelines.
42806 2003-09-09 Derek Robert Price <derek@ximbiot.com>
42808 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
42811 2003-09-09 Derek Robert Price <derek@ximbiot.com>
42813 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
42815 2003-09-08 Paul Eggert <eggert@twinsun.com>
42817 Assume C89 or better; remove K&R cruft.
42818 A few of these changes were first proposed by Derek Robert Price
42819 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
42821 * lib/addext.c: Include <string.h> unconditionally.
42822 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
42823 Don't declare getenv or malloc.
42825 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
42826 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
42828 (find_stack_direction, alloca): Use prototypes.
42830 * lib/atexit.c (atexit): Define using a prototype.
42832 * lib/basename.c, dirname.c, stripslash.c:
42833 Include <string.h> unconditionally.
42835 * lib/bcopy.c: Include <stddef.h>.
42836 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
42838 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
42840 * lib/error.h (error, error_at_line, error_print_progname)
42841 [! (defined (__STDC__) && __STDC__)]: Remove decls.
42842 * lib/error.c: Include error.h first, to check interface.
42843 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
42844 (VA_START): Remove; all uses changeed to va_start.
42845 (exit, strerror): Remove decls.
42846 (error_print_progname): Prototype uncondionally.
42847 Don't include <errno.h>; no longer needed.
42848 (private_strerror): Remove.
42849 (error_tail): Always define.
42850 (error, error_at_line): Assume C89 or better; always use prototypes.
42851 * lib/fatal.c: Include "fatal.h" first, to test interface.
42852 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
42853 (VA_START): Remove; all uses changed to va_start.
42854 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
42856 (exit): Remove decl.
42857 (fatal): Prototype unconditionally. Assume va_start works.
42858 Abort at end, to pacify gcc.
42860 * lib/euidaccess.c (main): Define with a prototype.
42862 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
42864 * lib/exitfail.c: Include <stdlib.h> unconditionally.
42866 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
42868 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
42869 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
42870 (getenv): Remove decl.
42871 (fnmatch): Define using a prototype.
42872 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
42873 (FCT): Define using a prototype.
42875 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
42877 * lib/gethostname.c: Include <stddef.h>.
42878 (gethostname): Define with prototype. Length is size_t, not int.
42880 2003-09-08 Paul Eggert <eggert@twinsun.com>
42882 Assume C89 or better; remove K&R cruft.
42883 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
42884 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
42885 string.h, getenv, malloc.
42886 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
42888 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
42889 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
42890 do not check for strerror.
42891 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
42892 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
42893 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
42894 do not check for doprnt or vprintf.
42895 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
42896 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
42898 2003-09-08 Paul Eggert <eggert@twinsun.com>
42900 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
42901 getversion.c should have been removed then, but was accidentally
42904 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
42905 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
42907 2003-09-08 Karl Berry <karl@gnu.org>
42909 * config/config.sub, config.guess, srclistvars.sh: update from savannah
42910 config, forget about prep.
42912 * config/depcomp, missing: update from automake.
42914 2003-09-07 Paul Eggert <eggert@twinsun.com>
42916 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
42917 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
42919 2003-09-07 Paul Eggert <eggert@twinsun.com>
42921 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
42922 copy_tm_result. Bug reported by Simon Josefsson in
42923 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
42925 2003-09-06 Paul Eggert <eggert@twinsun.com>
42927 * m4/time_r.m4: New file.
42928 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
42929 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
42930 is. Check for timegm declaration.
42931 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
42932 Do not check for gmtime_r.
42933 Replace mktime if __mktime_internal does not exist and if mktime
42934 hasn't been replaced already.
42936 2003-09-06 Paul Eggert <eggert@twinsun.com>
42938 * lib/time_r.c, lib/time_r.h: New files.
42940 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
42942 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
42943 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
42945 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
42947 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
42948 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
42949 Include <time_r.h>.
42951 * lib/timegm.c: Switch to glibc implementation, with the following
42953 [defined HAVE_CONFIG_H]: Include <config.h>.
42954 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
42955 (__mktime_internal) [!defined _LIBC]: New decl.
42956 (__gmtime_r) [!defined _LIBC]: New macro and function.
42957 (timegm): Use a prototype, since gnulib assumes C89.
42958 Do not bother declaring tmp to be const, as it's not really usefu.
42959 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
42960 (timegm): Declare only if HAVE_DECL_TIMEGM.
42962 2003-09-06 Paul Eggert <eggert@twinsun.com>
42964 * MODULES.html.sh (func_all_modules): Add time_r.
42965 * modules/time_r: New file.
42966 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
42967 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
42969 2003-09-03 Paul Eggert <eggert@twinsun.com>
42971 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
42972 Bug reported by Lute Kamstra in
42973 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
42975 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
42976 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
42977 course with correspondingly smaller numbers for tomorrow and
42978 yesterday. From Tadayoshi Funaba. Originally installed into
42979 sh-utils on 1999-08-07, but the patch got lost (I guess during the
42982 2003-08-31 Simon Josefsson <jas@extundo.com>
42984 * modules/timegm: New file.
42985 * MODULES.html.sh (func_all_modules): Add timegm.
42987 2003-08-31 Simon Josefsson <jas@extundo.com>
42989 * m4/timegm.m4: New file.
42991 2003-08-31 Simon Josefsson <jas@extundo.com>
42993 * lib/timegm.h: New file.
42994 * lib/timegm.c: New file. Based on
42995 wget-1.8.2/src/http.c:mktime_from_utc.
42997 2003-08-31 Karl Berry <karl@gnu.org>
42999 * lib/argp.h: update from libc.
43001 2003-08-28 Bruno Haible <bruno@clisp.org>
43003 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
43004 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
43005 followed by '#define fnmatch fnmatch_posix' gives an error.
43007 2003-08-28 Bruno Haible <bruno@clisp.org>
43009 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
43010 warning on QNX, which defines O_BINARY to 000000.
43012 2003-08-27 Jim Meyering <jim@meyering.net>
43014 * m4/mkstemp.m4: Require that the system mkstemp be able to create
43015 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
43016 would fail after 32. Reported by Danny Levinson. Details here:
43017 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
43019 2003-08-24 Bruno Haible <bruno@clisp.org>
43021 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
43022 MSVC7 <stdio.h> is included later.
43024 2003-08-22 Simon Josefsson <jas@extundo.com>
43026 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
43028 2003-08-20 Karl Berry <karl@gnu.org>
43030 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
43032 2003-08-20 Bruno Haible <bruno@clisp.org>
43034 * modules/progname: New file.
43035 * MODULES.html.sh (func_all_modules): Add progname.
43037 2003-08-20 Bruno Haible <bruno@clisp.org>
43039 * lib/progname.h: New file, from GNU gettext.
43040 * lib/progname.c: New file, from GNU gettext.
43041 * lib/progreloc.c: New file, from GNU gettext.
43043 2003-08-19 Jim Meyering <jim@meyering.net>
43045 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
43046 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
43048 2003-08-19 Bruno Haible <bruno@clisp.org>
43050 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
43053 2003-08-19 Bruno Haible <bruno@clisp.org>
43055 * lib/xstrdup.c: Assume <string.h> exists.
43057 2003-08-18 Paul Eggert <eggert@twinsun.com>
43059 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
43062 2003-08-18 Jim Meyering <jim@meyering.net>
43064 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
43065 * m4/lib-ld.m4: Likewise.
43067 2003-08-18 Jim Meyering <jim@meyering.net>
43069 * lib/setenv.h: Indent nested cpp directive.
43070 * lib/vasnprintf.c: Remove trailing blanks.
43072 2003-08-17 Simon Josefsson <jas@extundo.com>
43074 * modules/xstrndup: New file.
43075 * MODULES.html.sh (func_all_modules): Add xstrndup.
43077 2003-08-17 Simon Josefsson <jas@extundo.com>
43079 * modules/argp: Fix autoconf macro name. Add more dependencies.
43081 2003-08-17 Simon Josefsson <jas@extundo.com>
43083 * m4/xstrndup.m4: New file.
43085 2003-08-17 Simon Josefsson <jas@extundo.com>
43087 * m4/argp.m4: New file.
43089 2003-08-17 Simon Josefsson <jas@extundo.com>
43090 Bruno Haible <bruno@clisp.org>
43092 * lib/xstrndup.h: New file.
43093 * lib/xstrndup.c: New file.
43095 2003-08-17 Bruno Haible <bruno@clisp.org>
43097 * modules/strndup (Files, Include): Add lib/strndup.h.
43099 2003-08-17 Bruno Haible <bruno@clisp.org>
43101 * modules/euidaccess (Files): Add lib/euidaccess.h.
43103 2003-08-17 Bruno Haible <bruno@clisp.org>
43105 * lib/strndup.h: New file.
43107 2003-08-17 Bruno Haible <bruno@clisp.org>
43109 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
43110 like AC_GNU_SOURCE.
43111 * modules/extensions (configure.ac): Comment out the invocation of
43112 gl_USE_SYSTEM_EXTENSIONS.
43114 2003-08-16 Paul Eggert <eggert@twinsun.com>
43116 Merges from coreutils, etc.
43117 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
43118 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
43119 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
43121 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
43122 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
43124 2003-08-16 Paul Eggert <eggert@twinsun.com>
43126 Document merge from coreutils.
43127 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
43128 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
43129 * modules/utime: Add m4/utimes-null.m4.
43131 2003-08-16 Paul Eggert <eggert@twinsun.com>
43133 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
43134 space, undoing this 2003-08-12 change:
43135 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
43137 2003-08-16 Paul Eggert <eggert@twinsun.com>
43139 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
43140 strtoul.c from libc, undoing this 2003-08-12 change:
43141 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
43143 2003-08-16 Jim Meyering <jim@meyering.net>
43145 Merges from coreutils.
43146 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
43147 prefix. Adjust cache variables similarly. Create 500 rather than
43148 just 300 files, to exercise bug on Darwin6.5, too.
43149 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
43151 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
43152 AM_SYS_POSIX_TERMIOS.
43153 Reported by mkc@mathdogs.com.
43154 Also change use of $am_cv_sys_posix_termios
43155 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
43156 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
43157 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
43158 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
43159 in /proc/mounts until it finds one with matching device number. This
43160 is unnecessary when the FILE argument *is* a mount point. No stat call
43161 is necessary in that case. So, disable the statvfs-testing code on
43162 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
43163 as RedHat bug# 84846.
43164 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
43165 to 1MB, so as not to render systems with no stack size limit (e.g.,
43166 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
43167 Include <unistd.h>. On some systems,
43168 it is required for the definition of _SC_PAGESIZE.
43170 2003-08-16 Jim Meyering <jim@meyering.net>
43172 Merge from coreutils.
43173 * lib/xstrtoimax.c: #else #if -> #elif.
43174 * lib/xstrtoumax.c: Likewise.
43176 2003-08-16 Jim Meyering <jim@meyering.net>
43178 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
43179 * m4/utimes.m4: Removed.
43180 * m4/utimes-null.m4: Renamed from utimes.m4.
43182 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
43183 to 1MB, so as not to render systems with no stack size limit (e.g.,
43184 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
43185 Include <unistd.h>. On some systems,
43186 it is required for the definition of _SC_PAGESIZE.
43188 2003-08-16 Jim Meyering <jim@meyering.net>
43189 and Paul Eggert <eggert@cs.ucla.edu>
43191 Merges from coreutils, etc.
43193 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
43194 using the latest version from cvs. This avoids problems with #line
43195 directives using a vendor (Sun) compiler.
43196 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
43197 Don't set GETGROUPS_LIB here; now it's
43198 done via getgroups.m4's wrapper function.
43199 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
43200 rather than just in sh-util/configure.in, so that the
43201 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
43203 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
43204 AC_FUNC_GETLOADAVG where to find getloadavg.c.
43205 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
43206 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
43207 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
43208 Remove code that is now done by the newly-required macros.
43209 Append $(EXEEXT) to DF_PROG.
43210 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
43211 Do not invoke or require the following here,
43212 since prereq.m4 or some gnulib .m4 now does this for us:
43213 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
43214 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
43215 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
43216 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
43217 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
43218 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
43219 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
43221 Do not replace the following functions, as this is now the job
43222 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
43223 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
43224 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
43225 atexit getpass, strdup, getpagesize.
43227 Do not check for the following functions, as this is now the job
43228 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
43229 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
43231 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
43232 Check for sys/sysctl.h.
43233 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
43234 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
43235 of checking for ssize_t ourselves.
43237 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
43238 Require every macro that gnulib/modules/* suggests for us.
43239 (jm_PREREQ_ADDEXT): New macro.
43240 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
43241 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
43243 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
43244 (gl_PHYSMEM): Use it.
43245 Also check for `table' function.
43246 Check for new headers and functions.
43247 Add check for sys/sysmp.h.
43248 With suggestions from Kaveh Ghazi.
43249 Ignore headers that are present but cannot be compiled. This
43250 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
43253 2003-08-15 Paul Eggert <eggert@twinsun.com>
43255 Document merge from coreutils.
43256 * modules/userspec: Depend on posixver.
43257 * modules/strftime: Depend on tzset.
43259 2003-08-15 Paul Eggert <eggert@twinsun.com>
43261 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
43262 rather than tab, after '#' in shell-script copyright notices.
43263 Suggested by Bruno Haible.
43265 2003-08-15 Paul Eggert <eggert@twinsun.com>
43267 * config/srclist-update: Use three spaces, rather than tab, after '#'
43268 in shell-script copyright notices. Suggested by Bruno Haible.
43269 Remove unnecessary parenthesization in regular expression.
43271 2003-08-15 Jim Meyering <jim@meyering.net>
43273 Merge from coreutils.
43274 * lib/xgethostname.c: Include <stdlib.h>.
43275 (xghostname): Don't exit for anything other than memory-related
43276 failure; just return NULL.
43277 * lib/userspec.c: Include "posixver.h".
43278 (parse_user_spec): Accept `.' as a separator only
43279 in pre-POSIX-200112 mode.
43280 * lib/strtoimax.c: Use #elif rather than #else #if.
43281 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
43282 Remove function, now that we can rely on a working tzset function.
43283 [!_LIBC]: Ensure that the required autoconf test has been run.
43284 [!defined _NL_CURRENT && HAVE_STRFTIME]:
43285 Use underlying_strftime for %r.
43286 * lib/sha.c: Merge in some clean-up and optimization changes from
43288 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
43289 Ensure that it is a multiple of 64.
43290 Rearrange loop exit tests so as to avoid performing an
43291 additional fread after encountering an error or EOF.
43292 * lib/realloc.c: Update copyright date.
43294 2003-08-15 Jim Meyering <jim@meyering.net>
43295 and Paul Eggert <eggert@twinsun.com>
43297 Merge from coreutils.
43298 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
43299 member but strut utmpx does not. Needed for AIX 4.3.3.
43300 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
43302 2003-08-15 Jim Meyering <jim@meyering.net>
43303 and Paul Eggert <eggert@cs.ucla.edu>
43305 Merges from coreutils, etc.
43306 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
43307 Require gl_FUNC_TZSET_CLOBBER.
43308 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
43309 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
43312 2003-08-14 Paul Eggert <eggert@twinsun.com>
43314 Help the merge from coreutils.
43315 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
43316 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
43317 * m4/tzset.m4: Use it too.
43319 2003-08-14 Paul Eggert <eggert@twinsun.com>
43321 * modules/tzset: New file.
43323 2003-08-14 Jim Meyering <jim@meyering.net>
43325 Merges from coreutils.
43326 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
43327 variable names, rather than @FNMATCH_H@.
43328 * modules/alloca: Likewise for $(ALLOCA_H).
43330 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
43331 the three copies of the literal target, `fnmatch.h'.
43332 * modules/alloca (alloca.h): Likewise.
43334 2003-08-14 Jim Meyering <jim@meyering.net>
43336 Merge from coreutils.
43337 * m4/tzset.m4: New file.
43338 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
43339 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
43340 otherwise, AIX 5.1 systems would end up using the latter.
43341 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
43342 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
43343 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
43344 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
43346 2003-08-14 Jim Meyering <jim@meyering.net>
43348 Merge from coreutils.
43349 * lib/obstack.h: Whitespace changes.
43350 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
43351 and xcalloc return values.
43352 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
43353 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
43354 hang on OSF/1 5.1 for DIR on both local and remote file systems.
43355 Reported by (and fix confirmed by) Nelson H. F. Beebe.
43356 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
43358 Use mntctl's return value to drive the entry-processing loop, since
43359 we can't rely on the value of the vmt_length member in the last
43360 entry. On some systems doing so could result in exhausting
43361 virtual memory. Based in part on a patch from Mike Jetzer.
43363 2003-08-14 Jim Meyering <jim@meyering.net>
43364 and Paul Eggert <eggert@twinsun.com>
43366 Merges from coreutils, plus other fixes.
43367 * lib/physmem.c: Merge in portability changes from gcc/libiberty
43368 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
43369 for credits and details. Thanks to Kaveh Ghazi for helping
43370 to keep these files in sync.
43371 (ARRAY_SIZE): Define it.
43372 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
43373 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
43374 (memcasecmp): Don't assume size_t fits in unsigned int.
43375 Remove casts and duplicate code.
43376 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
43377 (memcpy): Remove definition.
43378 Merge in some clean-up and optimization changes from glibc.
43379 [BLOCKSIZE]: Move definition to top of file.
43380 Ensure that it is a multiple of 64.
43381 Rearrange loop exit tests so as to avoid performing an
43382 additional fread after encountering an error or EOF.
43383 * lib/md5.h (md5_uintptr): Define.
43384 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
43385 return to the initial working directory. Preserve errno
43387 * lib/idcache.c: Include "xalloc.h".
43388 (xmalloc, xrealloc): Remove decls.
43389 (getuser): Remove casts no longer required in C89.
43390 * lib/human.c: Include stdio.h, for sprintf.
43391 * lib/group-member.c: Include "xalloc.h".
43392 (xmalloc, xrealloc): Remove decls.
43393 (get_group_info): Remove casts no longer required in C89.
43394 * lib/getusershell.c (readname): Remove casts no longer required in
43396 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
43397 * lib/getline.c: Whitespace fix, from coreutils.
43399 2003-08-13 Paul Eggert <eggert@twinsun.com>
43401 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
43404 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
43405 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
43406 Undo previous (whitespace-only) change.
43408 2003-08-13 Paul Eggert <eggert@twinsun.com>
43410 * lib/exclude.c: Include <ctype.h>
43411 (IN_CTYPE_DOMAIN): New macro.
43412 (is_space): New fn.
43413 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
43416 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
43417 Undo previous (whitespace-only) change.
43419 2003-08-13 Paul Eggert <eggert@twinsun.com>
43421 * config/srclist-update: Change update back to the old behavior,
43422 leaving whitespace alone. Use one 'sed' command rather than a
43424 (fixlicense): Now a variable, not a function.
43425 (remove_trailing_blanks): Remove.
43426 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
43427 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
43428 Undo previous (whitespace-only) change.
43430 2003-08-12 Paul Eggert <eggert@twinsun.com>
43432 Merge from coreutils.
43433 * modules/euidaccess: Add lib_SOURCES, include for new
43436 2003-08-12 Paul Eggert <eggert@twinsun.com>
43438 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
43439 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
43440 Normalize leading white space and remove trailing white space.
43442 Merge from coreutils
43443 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
43445 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
43446 0.12.1. These files are now being upgraded automatically by
43447 ../config/srclist-update.
43449 2003-08-12 Paul Eggert <eggert@twinsun.com>
43451 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
43452 Normalize leading white space and remove trailing white space.
43453 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
43454 notice, as per ../config/srclist-update.
43456 Merge from coreutils.
43457 * lib/euidaccess.h: New file.
43458 * lib/euidaccess.c: Include it.
43459 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
43460 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
43461 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
43463 2003-08-12 Paul Eggert <eggert@twinsun.com>
43465 * config/srclist-update: Add copyright notice.
43466 (remove_id_lines, remove_trailing_blanks): New constants.
43467 (fixfile): Use them to normalize spacing a bit in copied files.
43468 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
43469 Normalize leading white space and remove trailing white space.
43471 * config/texinfo.tex: Sync with texinfo.
43473 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
43474 strtoul.c from libc, to merge coreutils whitespace changes.
43476 * config/srclist.txt: Get the following m4 files from gettext:
43477 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
43478 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
43479 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
43482 2003-08-12 Karl Berry <karl@gnu.org>
43484 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
43487 2003-08-11 Paul Eggert <eggert@twinsun.com>
43489 * modules/gnu-source, m4/gnu-source.m4:
43490 Remove; we're assuming Autoconf 2.54 or later now.
43491 Suggested by Bruno Haible.
43492 * MODULES.html.sh (func_all_modules): Remove gnu-source.
43494 2003-08-11 Bruno Haible <bruno@clisp.org>
43496 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
43498 2003-08-11 Bruno Haible <bruno@clisp.org>
43500 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
43501 (vasnprintf): Use it instead of wcslen.
43503 2003-08-11 Bruno Haible <bruno@clisp.org>
43505 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
43506 value to ensure that _Bool promotes to int. Use #define for _Bool when
43507 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
43509 2003-08-10 Karl Berry <karl@gnu.org>
43511 * lib/regex.h: update from libc (whitespace fix).
43513 2003-08-09 Paul Eggert <eggert@twinsun.com>
43515 Merge some files from coreutils. These changes were
43516 originally made by Jim Meyering.
43517 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
43518 many older Unixes require this.
43519 * lib/alloca.c (alloca): Remove cast to argument of free;
43520 no longer needed in C89.
43521 * lib/alloca_.h, regex.h: Fix white space to match
43522 what GNU indent does.
43524 2003-08-09 Paul Eggert <eggert@twinsun.com>
43526 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
43527 apparently Emacs's Unicode mode got confused before my 2003-08-05
43530 2003-08-08 Paul Eggert <eggert@twinsun.com>
43532 * m4/extensions.m4: New file.
43533 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
43534 Require gl_USE_SYSTEM_EXTENSIONS.
43535 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
43536 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
43538 2003-08-08 Paul Eggert <eggert@twinsun.com>
43540 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
43541 * modules/extensions, modules/gnu-source: New files.
43542 * modules/timespec, modules/unlocked-io: Depend on extensions.
43544 2003-08-07 Paul Eggert <eggert@twinsun.com>
43546 * modules/restrict: New file.
43547 * MODULES.html.sh (func_all_modules): Add restrict.
43548 * modules/regex: Depend on restrict.
43550 2003-08-07 Paul Eggert <eggert@twinsun.com>
43552 * m4/restrict.m4: New file.
43553 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
43555 2003-08-07 Bruno Haible <bruno@clisp.org>
43557 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
43558 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
43560 2003-08-07 Bruno Haible <bruno@clisp.org>
43562 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
43563 makes the module 'getndelim2' compatible with the module 'getline'.
43565 2003-08-05 Paul Eggert <eggert@twinsun.com>
43567 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
43568 byte with "\201" to avoid glitches when editing that source file
43569 with multi-gnome-terminal.
43571 2003-08-05 Paul Eggert <eggert@twinsun.com>
43573 * lib/bumpalloc.h: Remove.
43575 2003-08-05 Paul Eggert <eggert@twinsun.com>
43577 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
43578 * modules/bumpalloc: Remove.
43580 2003-08-04 Paul Eggert <eggert@twinsun.com>
43582 * lib/getloadavg.c: Change copyright notice and spacing to conform to
43585 Merge from coreutils.
43586 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
43588 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
43589 from Karl Berry, implemented by Jim Meyering.
43590 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
43591 from Dmitry V. Levin.
43592 Remove anachronistic cast of xrealloc.
43593 * lib/fnmatch_.h (__const): Remove. Use 'const'.
43594 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
43595 type. Otherwise, it wouldn't compile with at least /bin/cc on
43596 ymp-cray-unicos9.0.2.X.
43597 Combine two mostly-identical uses of alloca into one.
43598 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
43600 2003-08-04 Dave Love <d.love@dl.ac.uk>
43604 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
43605 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
43606 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
43607 obsolete NLIST_NAME_UNION.
43608 [__GNU__]: Undef BSD and FSCALE.
43609 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
43611 2003-08-03 Paul Eggert <eggert@twinsun.com>
43613 * lib/stdbool_.h (_Bool): Make it signed char, instead of
43614 an enum type, so that it's guaranteed to promote to int. See:
43615 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
43617 2003-08-03 Karl Berry <karl@gnu.org>
43619 * config/depcomp: update from automake.
43621 2003-07-31 Paul Eggert <eggert@twinsun.com>
43623 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
43624 (strerror): Don't assume that a printable int fits in 14 bytes.
43626 2003-07-31 Bruno Haible <bruno@clisp.org>
43628 * modules/getpass-gnu: New file.
43629 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
43631 2003-07-31 Bruno Haible <bruno@clisp.org>
43633 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
43635 2003-07-24 Karl Berry <karl@gnu.org>
43637 * config/missing: update from automake.
43639 2003-07-24 Derek Robert Price <derek@ximbiot.com>
43640 Bruno Haible <bruno@clisp.org>
43642 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
43643 * lib/getline.c (getline, getdelim): Likewise.
43644 Remove _GNU_SOURCE define; now it's defined in config.h through
43647 2003-07-23 Karl Berry <karl@gnu.org>
43649 * config/config.sub: update from prep.
43651 2003-07-22 Paul Eggert <eggert@twinsun.com>
43653 * modules/xalloc (Depends-on): Add exitfail.
43654 * modules/xmemcoll: Likewise.
43656 2003-07-22 Paul Eggert <eggert@twinsun.com>
43658 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
43659 over-parenthesization in macros.
43661 Sync with coreutils.
43663 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
43666 Use `exit_failure' for xalloc and xmemcoll instead of their own
43667 private exit-failure variables.
43668 * lib/xalloc.h (xalloc_exit_failure): Remove.
43669 * lib/xmalloc.c: Likewise. Include exitfail.h.
43670 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
43671 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
43672 * lib/xmemcoll.c: Likewise. Include exitfail.h.
43673 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
43675 2003-07-20 Jim Meyering <jim@meyering.net>
43677 * modules/closeout (Depends-on): Add exitfail.
43678 Suggestion from Bruno Haible.
43680 2003-07-19 Karl Berry <karl@gnu.org>
43682 * config/config.sub: update from prep.
43684 2003-07-18 Paul Eggert <eggert@twinsun.com>
43686 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
43688 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
43689 to test that it can stand by itself. Include "exitfail.h".
43690 Clients should set exit_failure instead.
43691 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
43693 2003-07-18 Bruno Haible <bruno@clisp.org>
43695 * modules/getndelim2: New file.
43696 * modules/getline: Share files with module getndelim2.
43697 * modules/getnline: Depend on getndelim2 instead of sharing files with
43698 it. Add getnline.c to lib_SOURCES.
43699 * MODULES.html.sh (func_all_modules): Add getndelim2.
43701 2003-07-18 Bruno Haible <bruno@clisp.org>
43703 * m4/getndelim2.m4: New file.
43704 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
43705 invoke gl_PREREQ_GETNDELIM2.
43706 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
43707 gl_PREREQ_GETNDELIM2.
43708 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
43711 2003-07-18 Bruno Haible <bruno@clisp.org>
43713 * lib/getndelim2.h: New file.
43714 * lib/getndelim2.c: Make into a module of its own. Include config.h,
43716 (getndelim2): Make non-static. Change return type to ssize_t.
43717 * lib/getline.h: Change argument names.
43718 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
43719 * lib/getnline.c: Include getndelim2.h.
43721 2003-07-18 Andreas Schwab <schwab@suse.de>
43723 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
43725 2003-07-17 Karl Berry <karl@gnu.org>
43727 * config/config.sub: update from prep.
43729 2003-07-17 Bruno Haible <bruno@clisp.org>
43731 * modules/getnline: New file.
43732 * modules/getline: Add lib/getndelim2.c to source file list.
43733 * MODULES.html.sh (func_all_modules): Add getnline.
43735 2003-07-17 Bruno Haible <bruno@clisp.org>
43737 * m4/getnline.m4: New file.
43739 2003-07-17 Bruno Haible <bruno@clisp.org>
43741 * m4/Makefile.am.in: Remove file.
43742 * m4/Makefile.am: Remove file.
43743 * m4/Makefile.in: Remove file.
43745 2003-07-17 Bruno Haible <bruno@clisp.org>
43747 * lib/getnline.h: New file.
43748 * lib/getnline.c: New file.
43749 * lib/getndelim2.c: New file, extracted from getline.c.
43750 (getndelim2): Renamed from getdelim2, with added nmax argument.
43751 * lib/getline.c: Include getndelim2.c.
43752 (getdelim2): Moved out to getndelim2.c.
43753 (getline, getdelim): Update.
43755 2003-07-17 Bruno Haible <bruno@clisp.org>
43757 * lib/Makefile.am: Remove file.
43758 * lib/Makefile.in: Remove file.
43760 2003-07-17 Bruno Haible <bruno@clisp.org>
43762 * configure.in: Remove file.
43763 * Makefile.in: Remove file.
43765 2003-07-17 Bruno Haible <bruno@clisp.org>
43767 * MODULES.html.sh: Put the </BODY> right before </HTML>.
43769 2003-07-16 Karl Berry <karl@gnu.org>
43771 * config/srclist-update: was running fixlicense twice, which caused
43772 texinfo.tex to be nullified for some reason. Simplify,
43773 $gplsrc is no longer needed as far as I can see?
43775 2003-07-16 Jim Meyering <jim@meyering.net>
43777 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
43779 2003-07-15 Paul Eggert <eggert@twinsun.com>
43781 * config/srclist.txt: Get the following files from gettext-runtime/intl
43782 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
43783 ref-del.sin. From Bruno Haible.
43784 * config/srclist-update (fixfile): Change grep pattern again, since the
43785 previous fix didn't work (there was another trailing $). Use
43786 '[$]' to escape the $s.
43788 2003-07-15 Karl Berry <karl@gnu.org>
43790 * lib/vasnprintf.c: update from gettext.
43792 2003-07-15 Karl Berry <karl@gnu.org>
43794 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
43795 gets expanded when surrounded by '$'.
43797 2003-07-15 Jim Meyering <jim@meyering.net>
43799 * modules/save-cwd: Don't depend on error. From Derek Price.
43801 2003-07-15 Jim Meyering <jim@meyering.net>
43803 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
43805 2003-07-14 Simon Josefsson <jas@extundo.com>
43807 * modules/mempcpy: New file.
43808 * MODULES.html.sh (func_all_modules): Add mempcpy.
43810 2003-07-14 Simon Josefsson <jas@extundo.com>
43812 * m4/mempcpy.m4: New file.
43814 2003-07-14 Simon Josefsson <jas@extundo.com>
43816 * lib/mempcpy.h: New file.
43817 * lib/mempcpy.c: New file.
43819 2003-07-14 Paul Eggert <eggert@twinsun.com>
43821 * modules/getdate, modules/posixtm: Depend on mktime.
43823 2003-07-14 Paul Eggert <eggert@twinsun.com>
43825 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
43826 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
43827 unicodeio.c, unicodeio.h, unlocked-io.h:
43828 Switch from LGPL to GPL.
43830 2003-07-14 Paul Eggert <eggert@twinsun.com>
43832 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
43833 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
43834 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
43835 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
43836 vasprintf.c, vasprintf.h: Regenerate. These files are now being
43837 updated automatically by ../config/srclist-update. This changes
43838 their license from LPGL to GPL.
43840 2003-07-14 Paul Eggert <eggert@twinsun.com>
43842 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
43843 assumed to refer to the root of the most recent stable gettext version.
43844 * config/srclistvars.sh: Add defaults for eggert.
43845 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
43846 Match "This program" as well as "The program". This is needed
43849 2003-07-14 Jim Meyering <jim@meyering.net>
43851 Don't emit diagnostics. Let callers do that.
43852 * lib/save-cwd.c: Don't include "error.h".
43853 (save_cwd): Don't call error. Ensure that errno is valid
43854 when returning nonzero.
43856 * lib/save-cwd.h (restore_cwd): Update prototype.
43857 * lib/save-cwd.c (restore_cwd): Remove two parameters.
43858 Simplify. Don't call error upon failure. Let callers do that.
43859 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
43860 when auditing is enabled. But don't bother updating the #if.
43862 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
43864 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
43865 it breaks C++ compilation.
43866 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
43868 2003-07-10 Simon Josefsson <jas@extundo.com>
43870 * modules/strchrnul (Makefile.am): Add strchrnul.h.
43872 2003-07-10 Jim Meyering <jim@meyering.net>
43874 * m4/clock_time.m4: Remove trailing blank.
43875 * m4/intmax_t.m4: Likewise.
43877 2003-07-10 Jim Meyering <jim@meyering.net>
43879 * lib/vasnprintf.c: Remove trailing blanks.
43880 Make cpp indentation consistent.
43882 2003-07-09 Paul Eggert <eggert@twinsun.com>
43884 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
43885 posixver.c, strftime.c, strnlen.c, strverscmp.c:
43886 Switch from LGPL to GPL.
43888 2003-07-09 Paul Eggert <eggert@twinsun.com>
43890 * config/srclist.txt: Sort sublists. Add
43891 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
43892 that differ from gnulib for one reason or another; we'd like this list
43893 to be smaller but for now let's document what we have.
43895 2003-07-08 Paul Eggert <eggert@twinsun.com>
43897 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
43898 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
43899 and sweeter "eval x=$x".
43900 * config/srclist.txt: Get lib/argp* from glibc.
43902 2003-07-07 Paul Eggert <eggert@twinsun.com>
43904 * lib/mktime.c: Fix some boundary cases and remove need for floating
43907 Issue a compile-time diagnostic if time_t is floating point, or if
43908 two's complement arithmetic is not in effect, or if arithmetic
43909 right shift does not propagate the sign. These assumptions were
43910 all in the original code but they weren't checked.
43912 (TIME_T_MIDPOINT, verify): New macros.
43913 (__isleap): Remove; it has integer overflow problems.
43914 (leapyear): New function, without those problems.
43915 (ydhms_tm_diff): Remove; splitting into two parts.
43916 (ydhms_diff): New function, containing the arithmetic part of
43917 the old ydhms_tm_diff function. Issue a compile-time
43918 diagnostic if we are not using C99 integer division.
43919 Avoid casts when possible.
43920 (guess_time_tm): New function, containing the checking part of
43921 the old ydhms_tm_diff function. Return the new value, rather than
43922 the difference between it and the old. Accept a new argument T
43923 so that *T specifies the old value. Check for overflow in the result.
43925 (__mktime_internal): Use a time_t offset, not a long int offset.
43926 This undoes the 2003-06-04 change, which is no longer needed now
43927 that we have better overflow checking.
43928 (localtime_offset): Likewise.
43930 (__mktime_internal): Avoid harmful overflow on hosts where time_t
43931 and long are 64-bit but int is only 32-bit.
43932 (ydhms_diff): Use long int to store year1 and yday1.
43933 Issue a compile-time diagnostic if long int is not wide enough.
43935 (__mktime_internal): Use long int to store adjusted year and yday.
43936 Use plain C rather than preprocessor commands, if that doesn't
43938 Check for overflow (and try to repair) after each probe
43939 rather than checking only at the very end. This avoids some bugs
43940 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
43941 does not equal GMT offset at maximum time).
43942 Use integer to check for overflow rather than floating point; this
43943 is more portable to non-IEEE hosts, and is a tad faster.
43944 When we detect that we are oscillating between two values,
43945 don't check whether tm_isdst has the requested value, since
43946 we already know the answer. When tm_isdst has the wrong value,
43947 use a different heuristic to find the right one, based on the
43948 extreme values actually observed in practice in tz2003a,
43949 rather than the (overly optimistic) "previous 3 calendar quarters".
43951 (not_equal_tm, print_tm, check_result): Use "const T" rather than
43952 "T const" to accommodate glibc style.
43953 (check_result): Use less-confusing report format. "long" -> "long int.
43955 Don't loop if the iteration overflows time_t.
43956 Allow a negative step in the iteration.
43958 2003-07-06 Karl Berry <karl@gnu.org>
43960 * config/depcomp: update from automake.
43961 * config/config.sub: update from prep.
43963 2003-07-03 Karl Berry <karl@gnu.org>
43965 * config/config.guess: update from prep.
43967 2003-07-01 Paul Eggert <eggert@twinsun.com>
43969 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
43970 xreadlink.c now includes it unconditionally.
43972 2003-07-01 Paul Eggert <eggert@twinsun.com>
43974 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
43975 having it depend on HAVE_SYS_TYPES_H.
43977 2003-07-01 Bruno Haible <bruno@clisp.org>
43979 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
43980 <sys/types.h> should be sufficient.
43981 Reported by Paul Eggert.
43983 2003-06-26 Karl Berry <karl@gnu.org>
43985 * config/depcomp: update from automake.
43987 2003-06-26 Bruno Haible <bruno@clisp.org>
43989 * modules/human: Depend on module stdbool.
43991 2003-06-25 Bruno Haible <bruno@clisp.org>
43993 * modules/readlink: New file.
43994 * modules/xreadlink: Depend on it.
43995 * MODULES.html.sh (func_all_modules): Add readlink.
43997 2003-06-25 Bruno Haible <bruno@clisp.org>
43999 * m4/readlink.m4: New file.
44001 2003-06-25 Bruno Haible <bruno@clisp.org>
44003 * lib/readlink.c: New file.
44005 2003-06-22 Karl Berry <karl@gnu.org>
44007 * config/srclist.txt: update mkinstalldirs from automake.
44008 * config/mkinstalldirs: update.
44010 2003-06-22 Bruno Haible <bruno@clisp.org>
44012 Portability to mingw32.
44013 * m4/ssize_t.m4: New file, from GNU gettext.
44014 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
44015 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
44017 2003-06-22 Bruno Haible <bruno@clisp.org>
44019 * modules/safe-read: Add m4/ssize_t.m4.
44020 * modules/xreadlink: Add m4/ssize_t.m4.
44022 2003-06-20 Bruno Haible <bruno@clisp.org>
44024 Assume C89, so PARAMS isn't needed.
44025 * lib/unicodeio.h (PARAMS): Remove.
44026 * lib/unicodeio.c: Don't use PARAMS.
44028 2003-06-18 Karl Berry <karl@gnu.org>
44030 * config/config.{guess,sub}: update from prep.
44032 2003-06-18 Jim Meyering <jim@meyering.net>
44034 Merge changes from coreutils.
44035 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
44036 Remove explicit declarations of xmalloc and realloc.
44038 (read_utmp): Remove anachronistic cast of xmalloc.
44040 2003-06-17 Paul Eggert <eggert@twinsun.com>
44042 Assume C89, so PARAMS isn't needed.
44043 * lib/backupfile.h (PARAMS): Remove. All uses removed.
44044 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
44045 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
44046 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
44047 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
44048 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
44049 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
44050 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
44051 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
44052 lib/xstrtod.h, lib/xstrtol.h: Likewise.
44053 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
44054 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
44055 no longer needed. Anyway, config.h should always be included before any
44058 2003-06-11 Simon Josefsson <jas@extundo.com>
44060 * modules/sysexits: New file.
44061 * MODULES.html.sh (func_all_modules): Add sysexits.
44063 2003-06-11 Simon Josefsson <jas@extundo.com>
44065 * lib/sysexit_.h: New file.
44067 2003-06-11 Derek Price <derek@ximbiot.com>
44069 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
44072 2003-06-11 Bruno Haible <bruno@clisp.org>
44074 * m4/sysexits.m4: New file.
44076 2003-06-10 Simon Josefsson <jas@extundo.com>
44078 * lib/argp.h: New file, from glibc.
44079 * lib/argp-ba.c: New file, from glibc.
44080 * lib/argp-eexst.c: New file, from glibc.
44081 * lib/argp-fmtstream.c: New file, from glibc.
44082 * lib/argp-fmtstream.h: New file, from glibc.
44083 * lib/argp-fs-xinl.c: New file, from glibc.
44084 * lib/argp-help.c: New file, from glibc.
44085 * lib/argp-namefrob.h: New file, from glibc.
44086 * lib/argp-parse.c: New file, from glibc.
44087 * lib/argp-pv.c: New file, from glibc.
44088 * lib/argp-pvh.c: New file, from glibc.
44089 * lib/argp-xinl.c: New file, from glibc.
44091 2003-06-10 Simon Josefsson <jas@extundo.com>
44093 * modules/strchrnul: New file.
44095 2003-06-10 Simon Josefsson <jas@extundo.com>
44097 * modules/argp: New file.
44099 2003-06-10 Simon Josefsson <jas@extundo.com>
44101 * m4/strchrnul.m4: New file.
44103 2003-06-10 Simon Josefsson <jas@extundo.com>
44105 * lib/strchrnul.h: New file.
44106 * lib/strchrnul.c: New file.
44108 2003-06-10 Bruno Haible <bruno@clisp.org>
44110 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
44112 2003-06-07 Karl Berry <karl@gnu.org>
44114 * config/config.{guess,sub}: update from prep.
44116 2003-06-07 Jim Meyering <jim@meyering.net>
44118 * modules/strtod: Use $(...) notation, not @...@ for
44119 AC_REPLACE'd variables.
44120 * modules/localcharset: Likewise.
44122 2003-06-07 Jim Meyering <jim@meyering.net>
44124 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
44125 in place of my name in the copyright comment.
44126 Remove definition and uses of __P.
44129 * lib/stat.c: Don't declare xmalloc explicitly.
44130 Instead, include "xalloc.h".
44131 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
44132 xrealloc, and xcalloc return values.
44133 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
44135 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
44137 2003-06-07 Bruno Haible <bruno@clisp.org>
44139 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
44140 avoid AC_CONFIG_LINKS.
44141 * modules/fnmatch (Makefile.am): Use explicit creation rule for
44142 fnmatch.h, to avoid AC_CONFIG_LINKS.
44143 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
44145 2003-06-07 Bruno Haible <bruno@clisp.org>
44147 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
44148 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
44149 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
44151 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
44152 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
44155 2003-06-06 Jim Meyering <jim@meyering.net>
44157 Merge from coreutils.
44158 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
44159 Consolidate declarations and initializations of *_base* locals.
44161 Merge from coreutils.
44162 This avoids a core dump on systems without GNU putenv,
44163 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
44164 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
44165 (unsetenv): New static function, from GNU libc.
44166 (rpl_putenv): Use it.
44168 * lib/modechange.c: Remove trailing blanks.
44170 Merge from coreutils.
44171 * lib/fsusage.c: Remove declaration of statfs.
44172 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
44174 * lib/posixtm.c: Include <stdbool.h> unconditionally.
44176 2003-06-06 Jim Meyering <jim@meyering.net>
44178 * lib/stdbool_.h: Renamed from stdbool.h.in.
44180 2003-06-06 Jim Meyering <jim@meyering.net>
44181 Bruno Haible <bruno@clisp.org>
44183 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
44184 Adjust Makefile.am snippet not to redirect directly to target.
44185 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
44187 2003-06-05 Paul Eggert <eggert@twinsun.com>
44189 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
44190 mismatch, look in future quarters as well as past. This fixes a
44191 bug when processing fall-backwards gaps immediately after a long
44192 period of daylight-saving time.
44194 * lib/mktime.c: Assume freestanding C89 or better.
44195 (HAVE_LIMITS_H): Remove. Assume it's 1.
44196 (__P): Remove; not used.
44197 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
44198 (mktime, not_equal_tm, print_tm, check_result,
44199 main): Use prototypes. Use const * where appropriate.
44200 (main): Fix typo in testing code that uncovered by above changes.
44201 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
44203 2003-06-04 Paul Eggert <eggert@twinsun.com>
44205 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
44206 locale.h, localeconv. This merges changes from coreutils.
44208 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
44209 It can be removed after the next Autoconf is released.
44210 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
44213 2003-06-04 Paul Eggert <eggert@twinsun.com>
44215 * lib/mktime.c: Fix Debian bug 177940
44216 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
44217 (localtime_offset): Now long int, not time_t, because we want it
44218 to be guaranteed to be signed. All uses changed.
44219 (__mktime_internal): If overflow would occur when adding offset,
44222 Merge 'human' changes from coreutils. Rewrite to support
44223 locale-specific notations like thousands separators.
44224 * lib/human.c: Simplify authorship notice.
44225 Include human.h immediately after config.h.
44226 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
44227 <limits.h>: Do not include, since human.h does.
44228 (SIZE_MAX, UINTMAX_MAX): New macros.
44229 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
44230 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
44231 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
44232 (power_letter): Renamed from suffixes.
44233 (generate_suffix_backwards): Remove.
44234 (adjust_value): Now takes int style (because of human.h changes)
44235 and long double value (for greater precision on some platforms).
44236 (group_number): New function.
44237 (human_readable): Use it. Use integer options, not enum.
44238 Put the options before the sizes in the arg list.
44239 Support all the new options.
44240 The old human_readable function has been removed;
44241 use inttostr.h instead.
44242 (human_readable, default_block_size, humblock):
44243 Use uintmax_t, not int, for block sizes.
44244 (human_readable_inexact, block_size_types): Remove.
44245 (block_size_opts): New constant.
44246 (human_options): Renamed from human_block_size, with new signature
44247 that allows block sizes up to UINTMAX_MAX. All callers changed.
44248 * lib/human.h: Add copyright and authorship notice.
44249 Include <limits.h> and <stdbool.h> unconditionally.
44250 (PARAMS): Remove. All uses removed.
44251 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
44252 (enum human_inexact_style): Remove tag; now a nameless enum.
44253 (human_floor, human_ceiling, human_round_to_even): Now have
44254 values 2, 0, 1 rather than -1, 1, 0.
44255 (human_group_digits, human_suppress_point_zero, human_autoscale,
44256 human_base_1024, human_SI, human_B): New constants.
44257 (human_readable_inexact, human_block_size): Remove.
44258 (human_readable): Size args are now uintmax_t, not int.
44259 (human_options): New decl.
44261 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
44262 unnecessary now that we assume C89 or better. This change
44263 imported from coreutils.
44265 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
44266 arbitrarily. This is the same patch as 2003-05-28, but it got lost
44267 in the 2003-05-30 sync from glibc.
44269 .h files should stand alone, but we shouldn't include <sys/types.h>
44270 if we can get away with just <stddef.h>.
44272 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
44273 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
44274 rather than <sys/types.h>, as we merely need size_t.
44275 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
44277 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
44278 Include <stdio.h>, to get FILE.
44279 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
44280 memcasecmp.h has included <stddef.h> and all we need is size_t.
44281 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
44282 our interface, instead of including <sys/types.h>
44284 2003-06-04 Paul Eggert <eggert@twinsun.com>
44286 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
44287 now, as glibc mktime is buggy on non-glibc systems.
44289 2003-06-03 Karl Berry <karl@gnu.org>
44291 * config/config.sub: update from prep.
44293 2003-06-02 Paul Eggert <eggert@twinsun.com>
44296 Fix some minor time-related bugs with POSIX time arguments.
44297 Some valid time stamps were being rejected (notably -1, and
44298 time stamps before 1900 on 64-bit hosts). And some invalid
44299 time stamps were being accepted, e.g. September 31.
44301 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
44302 that we can return (time_t) -1 successfully.
44303 * lib/posixtm.c: Likewise.
44304 [HAVE_STDBOOL_H]: Include <stdbool.h>.
44305 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
44306 (t): Remove static var.
44307 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
44308 of static var. All uses changed.
44309 (year): Do not reject years before 1900; they can occur with
44311 (posix_time_parse): Do not check for out-of-range components;
44312 that is now the caller's responsibility, since our checks were
44313 only approximations.
44314 (posixtime): Use mktime to check for out-of-range components,
44315 since it knows them exactly.
44316 If mktime returns (time_t) -1, check whether an error actually occurred
44317 by invoking localtime on -1.
44318 (main) [TEST_POSIXTIME]: Check for input data errors, and report
44319 posixtime failures better.
44320 Improve the test data (in comments only).
44322 2003-06-02 Karl Berry <karl@gnu.org>
44324 * config/mkinstalldirs (version): new variable.
44325 (--version): new option.
44326 (usage): improve message.
44328 2003-05-30 Karl Berry <karl@gnu.org>
44330 * lib/mktime.c: update from libc.
44332 2003-05-30 Bruno Haible <bruno@clisp.org>
44334 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
44335 * config/config.rpath: Upgrade to gettext-0.12.1.
44337 2003-05-30 Bruno Haible <bruno@clisp.org>
44339 * m4/gettext.m4: Upgrade to gettext-0.12.1.
44340 * m4/nls.m4: New file, from gettext-0.12.1.
44341 * m4/po.m4: New file, from gettext-0.12.1.
44342 * m4/progtest.m4: Upgrade to gettext-0.12.1.
44344 2003-05-30 Bruno Haible <bruno@clisp.org>
44346 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
44347 * lib/localcharset.h: Likewise.
44348 * lib/localcharset.c: Likewise.
44350 2003-05-29 Karl Berry <karl@gnu.org>
44352 * config/config.rpath: update from gettext.
44354 2003-05-28 Paul Eggert <eggert@twinsun.com>
44356 Assume the headers required for C89 freestanding compilers.
44357 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
44358 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
44359 * m4/human.m4 (gl_HUMAN): Likewise.
44360 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
44361 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
44362 * m4/userspec.m4 (gl_USERSPEC): Likewise.
44363 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
44364 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44365 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
44367 2003-05-28 Paul Eggert <eggert@twinsun.com>
44369 Assume the headers required for C89 freestanding compilers.
44370 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
44371 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
44372 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
44373 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
44374 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
44375 define, since <limits.h> is guaranteed to do that.
44376 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
44377 * lib/exclude.c: Include <stdbool.h> unconditionally.
44378 * lib/tempname.c: Include <stddef.h> unconditionally.
44379 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
44380 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
44381 <stddef.h> does that.
44382 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
44383 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
44384 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
44386 * lib/xstrtol.c: Likewise.
44387 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
44388 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
44390 * lib/addext.c (addext): Use assignment rather than cast, to avoid
44391 warnings on some platforms.
44393 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
44396 2003-05-26 Jim Meyering <jim@meyering.net>
44398 Merge in a change from coreutils:
44399 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
44400 that is guaranteed to be `no'. Use `no_such_member' to indicate
44401 that condition, rather than `-1' which is slightly misleading.
44402 Change the name of the cache variable to have the gl_ prefix.
44403 Prompted by a patch from Richard Dawe for DJGPP.
44405 2003-05-24 Karl Berry <karl@gnu.org>
44407 * config/config.guess: update from prep.
44409 2003-05-22 Karl Berry <karl@gnu.org>
44411 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
44413 2003-05-20 Karl Berry <karl@gnu.org>
44415 * config/config.guess: update from prep.
44417 2003-05-18 Karl Berry <karl@gnu.org>
44419 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
44420 might actually be set by the user.
44422 * config/depcomp, install-sh, mdate-sh: update from automake.
44424 2003-05-17 Bruno Haible <bruno@clisp.org>
44426 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
44427 invalid expansion for AC_EGREP_CPP.
44428 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
44429 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
44430 Suggested by Akim Demaille <akim@epita.fr> in
44431 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
44433 2003-05-12 Jim Meyering <jim@meyering.net>
44435 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
44436 the space-padded-by-default conversion specifiers, %e, %k, %l.
44438 2003-05-12 Bruno Haible <bruno@clisp.org>
44440 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
44441 the string is longer than 4 KB.
44443 2003-05-11 Karl Berry <karl@gnu.org>
44445 * config/config.{guess,sub}: update from prep.
44447 2003-05-09 Bruno Haible <bruno@clisp.org>
44449 * modules/error: Add m4/strerror_r.m4 to file list.
44451 2003-05-03 Bruno Haible <bruno@clisp.org>
44453 Upgrade to Unicode-4.0.
44454 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
44455 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
44456 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
44457 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
44458 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
44459 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
44460 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
44461 Change width of U+E0100..U+E01EF from 1 to 0.
44463 2003-04-25 Jim Meyering <jim@meyering.net>
44465 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
44466 of type size_t, not int.
44468 2003-04-25 Bruno Haible <bruno@clisp.org>
44470 * lib/copy-file.c: Include <stddef.h>, for size_t.
44472 2003-04-21 Paul Eggert <eggert@twinsun.com>
44474 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
44475 code which expansion is under static control. Patch imported from
44476 Akim Demaille's patch to Bison; see
44477 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
44479 2003-04-14 Bruno Haible <bruno@clisp.org>
44481 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
44483 2003-04-11 Jim Meyering <jim@meyering.net>
44485 Merge changes from Coreutils.
44487 2003-03-22 Jim Meyering <jim@meyering.net>
44489 * lib/strftime.c (widen): Cast alloca return value to proper type.
44491 2003-01-19 Ulrich Drepper <drepper@redhat.com>
44494 * lib/strftime.c (my_strftime): Handle very large width
44495 specifications for numeric values correctly. Improve checks for
44498 2003-01-19 Jim Meyering <jim@meyering.net>
44500 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
44502 (nl_get_alt_digit) [! defined my_strftime]: Define.
44503 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
44504 _nl_get_alt_digit and _nl_get_walt_digit.
44506 * lib/strftime.c (my_strftime): Merge in locale-related changes from
44507 libc. These changes have no effect outside of _LIBC.
44509 2003-04-10 Bruno Haible <bruno@clisp.org>
44511 * modules/findprog: New file.
44512 * MODULES.html.sh (func_all_modules): Add it.
44514 2003-04-10 Bruno Haible <bruno@clisp.org>
44516 * m4/findprog.m4: New file.
44517 * m4/eaccess.m4: New file.
44519 2003-04-10 Bruno Haible <bruno@clisp.org>
44521 * lib/findprog.h: New file, from GNU gettext.
44522 * lib/findprog.c: New file, from GNU gettext.
44524 2003-04-05 Jim Meyering <jim@meyering.net>
44526 Merge changes from Coreutils.
44528 * lib/exclude.h (PARAMS): Remove definition and uses.
44529 * lib/exclude.c: Remove uses of `PARAMS'.
44531 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
44532 Add test-cases for DOS filenames. Declare program_name.
44533 (main): Set up program_name. Patch by Rich Dawe.
44535 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
44537 Use mntctl's return value to drive the entry-processing loop, since
44538 we can't rely on the value of the vmt_length member in the last
44539 entry. On some systems doing so could result in exhausting
44540 virtual memory. Based in part on a patch from Mike Jetzer.
44542 2003-04-04 Bruno Haible <bruno@clisp.org>
44544 * modules/linebreak: New file.
44545 * MODULES.html.sh (func_all_modules): Add it.
44547 2003-04-04 Bruno Haible <bruno@clisp.org>
44549 * m4/linebreak.m4: New file.
44551 2003-04-04 Bruno Haible <bruno@clisp.org>
44553 * lib/linebreak.h: New file, from GNU gettext.
44554 * lib/linebreak.c: New file, from GNU gettext with slight
44556 * lib/lbrkprop.h: New file, from GNU gettext.
44558 2003-04-03 Bruno Haible <bruno@clisp.org>
44560 * modules/utf8-ucs4: New file.
44561 * modules/utf16-ucs4: New file.
44562 * modules/ucs4-utf8: New file.
44563 * modules/ucs4-utf16: New file.
44564 * MODULES.html.sh (func_all_modules): Add them.
44566 2003-04-03 Bruno Haible <bruno@clisp.org>
44568 * m4/utf-ucs4.m4: New file.
44569 * m4/ucs4-utf.m4: New file.
44571 2003-04-03 Bruno Haible <bruno@clisp.org>
44573 * lib/utf8-ucs4.h: New file, from GNU gettext.
44574 * lib/utf16-ucs4.h: New file, from GNU gettext.
44575 * lib/ucs4-utf8.h: New file, from GNU gettext.
44576 * lib/ucs4-utf16.h: New file, from GNU gettext.
44578 2003-04-02 Bruno Haible <bruno@clisp.org>
44580 * modules/binary-io: New file.
44581 * MODULES.html.sh (func_all_modules): Add it.
44583 2003-04-02 Bruno Haible <bruno@clisp.org>
44585 * lib/binary-io.h: New file, from GNU gettext.
44587 2003-04-01 Bruno Haible <bruno@clisp.org>
44589 * modules/pathname: New file.
44590 * MODULES.html.sh (func_all_modules): Add it.
44592 2003-04-01 Bruno Haible <bruno@clisp.org>
44594 * lib/pathname.h: New file, from GNU gettext.
44595 * lib/concatpath.c: New file, from GNU gettext.
44597 2003-03-30 Bruno Haible <bruno@clisp.org>
44599 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
44601 2003-03-30 Bruno Haible <bruno@clisp.org>
44603 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
44604 function chown() doesn't exist.
44606 2003-03-28 Bruno Haible <bruno@clisp.org>
44608 * modules/copy-file: New file.
44609 * MODULES.html.sh (func_all_modules): Add it.
44611 2003-03-28 Bruno Haible <bruno@clisp.org>
44613 * m4/copy-file.m4: New file.
44615 2003-03-28 Bruno Haible <bruno@clisp.org>
44617 * lib/copy-file.h: New file, from GNU gettext.
44618 * lib/copy-file.c: New file, from GNU gettext.
44620 2003-03-18 Jim Meyering <jim@meyering.net>
44622 * lib/quote.c (quote_n): Fix typo in comment.
44624 2003-03-18 Bruno Haible <bruno@clisp.org>
44626 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
44628 * m4/onceonly_2_57.m4: Likewise.
44630 2003-03-17 Bruno Haible <bruno@clisp.org>
44632 * m4/onceonly.m4: Require autoconf 2.54 or newer.
44633 (m4_quote): Remove macro.
44634 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
44636 2003-03-14 Jim Meyering <jim@meyering.net>
44638 Merge changes from Coreutils.
44639 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
44640 to be const, in order to avoid warnings.
44641 (obstack_room): Likewise.
44642 (obstack_empty_p): Likewise.
44644 2003-03-14 Bruno Haible <bruno@clisp.org>
44646 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
44647 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
44649 2003-03-13 Paul Eggert <eggert@twinsun.com>
44651 Merge changes from Bison.
44652 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
44653 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
44654 when compiling Bison 1.875's `bitset bset = obstack_alloc
44655 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
44656 * lib/hash.c: Include <stdbool.h> unconditionally.
44658 2003-03-13 Paul Eggert <eggert@twinsun.com>
44660 * m4/onceonly.m4 (m4_quote): New macro.
44661 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
44662 Quote AC_FOREACH variable-expansions properly.
44664 2003-03-13 Paul Eggert <eggert@twinsun.com>
44666 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
44668 2003-03-09 Paul Eggert <eggert@twinsun.com>
44670 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
44671 Reported by Bruce Becker; see:
44672 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
44674 2003-03-03 Paul Eggert <eggert@twinsun.com>
44675 Bruno Haible <bruno@clisp.org>
44677 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
44678 Reported by John Hughes, see
44679 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
44681 2003-02-20 Bruno Haible <bruno@clisp.org>
44683 * MODULES.html.sh (func_all_modules): Add poll.
44685 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
44687 * modules/poll: New file.
44689 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
44691 * lib/poll_.h: New file.
44692 * lib/poll.c: New file.
44694 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
44696 * m4/poll.m4: New file.
44698 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
44700 * modules/mathl: New file.
44702 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
44704 * lib/mathl.h: New file.
44705 * lib/acosl.c: New file.
44706 * lib/asinl.c: New file.
44707 * lib/atanl.c: New file.
44708 * lib/ceill.c: New file.
44709 * lib/cosl.c: New file.
44710 * lib/expl.c: New file.
44711 * lib/floorl.c: New file.
44712 * lib/frexpl.c: New file.
44713 * lib/ldexpl.c: New file.
44714 * lib/logl.c: New file.
44715 * lib/sincosl.c: New file.
44716 * lib/sinl.c: New file.
44717 * lib/sqrtl.c: New file.
44718 * lib/tanl.c: New file.
44719 * lib/trigl.c: New file.
44720 * lib/trigl.h: New file.
44722 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
44724 * m4/mathl.m4: New file.
44726 2003-02-18 Bruno Haible <bruno@clisp.org>
44728 * MODULES.html.sh (func_all_modules): Add mathl.
44730 2003-02-17 Bruno Haible <bruno@clisp.org>
44732 * modules/mkdtemp: New module.
44733 * MODULES.html.sh (func_all_modules): Add it.
44735 2003-02-17 Bruno Haible <bruno@clisp.org>
44737 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
44739 2003-02-17 Bruno Haible <bruno@clisp.org>
44741 * lib/mkdtemp.h: New file, from GNU gettext.
44742 * lib/mkdtemp.c: New file, from GNU gettext.
44744 2003-02-02 Jim Meyering <jim@meyering.net>
44746 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
44749 2003-01-31 Bruno Haible <bruno@clisp.org>
44751 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
44753 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
44755 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
44757 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
44760 2003-01-31 Bruno Haible <bruno@clisp.org>
44762 * lib/rename.c: #undef rename before defining rpl_rename.
44763 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
44765 2003-01-30 Bruno Haible <bruno@clisp.org>
44767 * modules/vasnprintf, modules/vasprintf: New modules.
44768 * MODULES.html.sh (func_all_modules): Add them.
44770 2003-01-30 Bruno Haible <bruno@clisp.org>
44772 * m4/signed.m4: New file, from GNU gettext.
44773 * m4/longdouble.m4: New file, from GNU gettext.
44774 * m4/wchar_t.m4: New file, from GNU gettext.
44775 * m4/wint_t.m4: New file, from GNU gettext.
44776 * m4/vasnprintf.m4: New file.
44777 * m4/vasprintf.m4: New file.
44779 2003-01-30 Bruno Haible <bruno@clisp.org>
44781 * lib/printf-args.h: New file, from GNU gettext.
44782 * lib/printf-args.c: New file, from GNU gettext.
44783 * lib/printf-parse.h: New file, from GNU gettext.
44784 * lib/printf-parse.c: New file, from GNU gettext.
44785 * lib/vasnprintf.h: New file, from GNU gettext.
44786 * lib/vasnprintf.c: New file, from GNU gettext.
44787 * lib/asnprintf.c: New file, from GNU gettext.
44788 * lib/vasprintf.h: New file, from GNU gettext with modifications.
44789 * lib/vasprintf.c: New file, from GNU gettext.
44790 * lib/asprintf.c: New file, from GNU gettext.
44792 2003-01-29 Bruno Haible <bruno@clisp.org>
44794 * modules/stpncpy: New module.
44795 * MODULES.html.sh (func_all_modules): Add it.
44797 2003-01-29 Bruno Haible <bruno@clisp.org>
44799 * m4/stpncpy.m4: New file.
44801 2003-01-29 Bruno Haible <bruno@clisp.org>
44803 * lib/stpncpy.h: New file, from GNU gettext with modifications.
44804 * lib/stpncpy.c: New file, from GNU gettext with modifications.
44806 2003-01-28 Bruno Haible <bruno@clisp.org>
44808 * modules/c-ctype: New module.
44809 * MODULES.html.sh (func_all_modules): Add it.
44811 2003-01-28 Bruno Haible <bruno@clisp.org>
44813 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
44815 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
44818 2003-01-27 Bruno Haible <bruno@clisp.org>
44820 * modules/xsetenv: New module.
44821 * MODULES.html.sh (func_all_modules): Add it.
44823 2003-01-27 Bruno Haible <bruno@clisp.org>
44825 * lib/xsetenv.h: New file, from GNU gettext.
44826 * lib/xsetenv.c: New file, from GNU gettext.
44828 2003-01-23 Jim Meyering <jim@meyering.net>
44830 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
44831 from working on systems without dirfd (at least Irix and OSF1/Tru64).
44833 2003-01-23 Bruno Haible <bruno@clisp.org>
44835 * modules/minmax: New module.
44836 * MODULES.html.sh (func_all_modules): Add it.
44838 2003-01-23 Bruno Haible <bruno@clisp.org>
44840 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
44843 2003-01-22 Bruno Haible <bruno@clisp.org>
44845 * modules/exit: New module.
44846 * MODULES.html.sh (func_all_modules): Add it.
44848 2003-01-22 Bruno Haible <bruno@clisp.org>
44850 * lib/exit.h: New file, from GNU gettext.
44852 2003-01-19 Bruno Haible <bruno@clisp.org>
44854 * gnulib-tool: Recognize option --extract-maintainer.
44855 (func_get_maintainer): New function.
44856 * modules/*: Add Maintainer entry.
44858 2003-01-16 Jim Meyering <jim@meyering.net>
44860 * m4/regex.m4: The `regex' struct is both input and output.
44861 Initialize it before each use. Patch by Tim Waugh.
44863 2003-01-16 Bruno Haible <bruno@clisp.org>
44865 * MODULES.html.sh: Add a table of contents. Add the module name as
44866 leftmost column. Add hyperlinks.
44868 2003-01-15 Bruno Haible <bruno@clisp.org>
44870 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
44872 2003-01-15 Bruno Haible <bruno@clisp.org>
44874 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
44875 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
44878 2003-01-15 Bruno Haible <bruno@clisp.org>
44880 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
44882 2003-01-15 Bruno Haible <bruno@clisp.org>
44884 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
44885 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
44887 2003-01-14 Jim Meyering <jim@meyering.net>
44889 * lib/same.c (same_name): Tweak a comment.
44891 2003-01-14 Bruno Haible <bruno@clisp.org>
44893 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
44894 when a string comparison is sufficient.
44896 2003-01-14 Bruno Haible <bruno@clisp.org>
44898 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
44901 2003-01-14 Bruno Haible <bruno@clisp.org>
44903 * lib/hash-pjw.c: Add comment about low quality of this function.
44905 2003-01-13 Bruno Haible <bruno@clisp.org>
44907 * modules/stpcpy: Distribute lib/stpcpy.h.
44908 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
44910 2003-01-13 Bruno Haible <bruno@clisp.org>
44912 * modules/*: Add a description.
44913 * modules/strpbrk: Fix Makefile.am snippet.
44914 * modules/strtoimax: Fix dependencies.
44915 * modules/strtoumax: Likewise.
44917 2003-01-13 Bruno Haible <bruno@clisp.org>
44919 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
44920 * modules/alloca (Makefile.am): All object files depend on alloca.h.
44921 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
44923 2003-01-13 Bruno Haible <bruno@clisp.org>
44925 * gnulib-tool (func_create_testdir): Store config/* files in the main
44927 * config.rpath: Move to ...
44928 * config/config.rpath: ... here.
44929 * modules/gettext: Contains config/config.rpath, not config.rpath.
44930 * modules/iconv: Likewise.
44932 2003-01-12 Paul Eggert <eggert@twinsun.com>
44934 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
44935 to avoid collisions with libcurses and libreadline.
44937 * m4/getstr.m4: Remove.
44938 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
44940 2003-01-12 Paul Eggert <eggert@twinsun.com>
44942 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
44943 to avoid collisions with libcurses and libreadline.
44945 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
44946 * lib/getstr.h, getstr.c: Remove.
44947 * lib/getline.c: Include "getline.h", to check interface.
44948 Move body of old getstr.c here: this defines MIN_CHUNK and
44949 declares getdelim2, which is renamed from getstr.
44950 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
44952 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
44954 * lib/linebuffer.h: Likewise.
44955 (readline): Remove backward-compatibility macro.
44957 2003-01-12 Paul Eggert <eggert@twinsun.com>
44959 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
44960 to avoid collisions with libcurses and libreadline.
44962 * MODULES.html.sh: Remove getstr.
44963 * modules/getline: Depend on unlocked-io, not getstr.
44965 2003-01-12 Jim Meyering <jim@meyering.net>
44967 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
44969 2003-01-10 Bruno Haible <bruno@clisp.org>
44971 * modules/alloca: Change Makefile.am requirements. Simplify Include
44972 requirements. Add lib/alloca_.h to file list.
44974 2003-01-10 Bruno Haible <bruno@clisp.org>
44976 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
44978 2003-01-10 Bruno Haible <bruno@clisp.org>
44980 * lib/alloca_.h: New file.
44981 * lib/getdate.y: Unconditionally include alloca.h.
44982 * lib/makepath.c: Likewise.
44983 * lib/setenv.c: Likewise.
44984 * lib/userspec.c: Likewise.
44986 2003-01-09 Karl Berry <karl@gnu.org>
44988 * MODULES.html.sh: include `dirname $0` in PATH, to find
44991 2003-01-09 Bruno Haible <bruno@clisp.org>
44993 * modules/stdbool: Change configure.ac, Makefile.am requirements.
44994 Simplify Include requirements. Add lib/stdbool.h.in to file list.
44996 2003-01-09 Bruno Haible <bruno@clisp.org>
44998 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
45000 2003-01-09 Bruno Haible <bruno@clisp.org>
45002 * lib/stdbool.h.in: New file.
45004 2003-01-09 Bruno Haible <bruno@clisp.org>
45006 * gnulib-tool (func_all_modules): Ignore files ending in ~.
45007 * MODULES.html.sh: Likewise.
45009 2003-01-08 Jim Meyering <jim@meyering.net>
45011 * lib/full-write.c: Undefine and define-away `const' after inclusion
45012 of errno.h, not before. Suggestion from Bruno Haible.
45014 2003-01-08 Bruno Haible <bruno@clisp.org>
45016 * modules/full-read: Depend on full-write.
45018 2003-01-08 Bruno Haible <bruno@clisp.org>
45020 * lib/safe-read.c: Include specification header first, to ensure its
45022 * lib/full-write.c: Likewise.
45024 2003-01-07 Jim Meyering <jim@meyering.net>
45026 * lib/full-write.c: Rework so that it may serve to define full_read,
45028 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
45030 2003-01-07 Bruno Haible <bruno@clisp.org>
45032 * lib/strtoimax.c: Include <stdint.h> as an alternative to
45034 * lib/xstrtol.h: Likewise.
45035 * lib/xstrtoimax.c: Likewise.
45036 * lib/xstrtoumax.c: Likewise.
45037 * lib/human.h: Likewise.
45039 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
45040 on systems that have <inttypes.h> but not <stdint.h>.
45042 2003-01-07 Bruno Haible <bruno@clisp.org>
45044 * MODULES.html.sh: Add copyright notice.
45045 (missed_files): Omit CVS directory entries.
45046 (func_module): Make it work with sed-3.02.
45047 * MODULES.txt: Remove file.
45049 2003-01-06 Jim Meyering <jim@meyering.net>
45051 * lib/version-etc.c: Update year in translatable copyright string.
45053 2003-01-03 Karl Berry <karl@gnu.org>
45055 * config/config.{guess,sub}: update from prep.
45057 2003-01-02 Karl Berry <karl@gnu.org>
45059 * doc/COPYING.DOC: belatedly updated to 1.2.
45061 2003-01-01 Karl Berry <karl@gnu.org>
45063 * gnulib-tool (func_verify_module): report module name $module in
45064 error message, not $1.
45065 * gnulib-tool (create-testdir): don't complain if destdir couldn't
45066 be created, only if it doesn't exist.
45067 * gnulib-tool (last_checkin_date): don't expand the $Date here.
45069 2002-12-31 Paul Eggert <eggert@twinsun.com>
45071 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
45073 2002-12-31 Paul Eggert <eggert@twinsun.com>
45075 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
45076 memcmp if strcoll doesn't work.
45078 2002-12-31 Bruno Haible <bruno@clisp.org>
45080 * lib/utime.c (utime_null): No need to call ftruncate if the file was
45083 2002-12-31 Bruno Haible <bruno@clisp.org>
45085 * lib/memcoll.c (STRCOLL): New macro.
45088 2002-12-31 Bruno Haible <bruno@clisp.org>
45090 * lib/localcharset.h: New file.
45091 * lib/localcharset.c: Include it.
45092 * lib/unicodeio.c: Likewise.
45094 2002-12-31 Bruno Haible <bruno@clisp.org>
45096 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
45097 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
45099 2002-12-31 Bruno Haible <bruno@clisp.org>
45101 * lib/getline.h: Include <stddef.h>, for size_t.
45103 * lib/unicodeio.h: Include <stddef.h>, for size_t.
45104 * lib/unicodeio.c: Don't include <stddef.h>.
45106 2002-12-31 Bruno Haible <bruno@clisp.org>
45108 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
45111 2002-12-24 Karl Berry <karl@gnu.org>
45113 * config/config.guess: update from prep.
45115 2002-12-24 Bruno Haible <bruno@clisp.org>
45117 General infrasructure.
45118 * m4/README: Rewritten.
45119 * m4/onceonly.m4: New file.
45120 * m4/onceonly_2_57.m4: New file.
45123 * m4/atexit.m4: New file.
45126 * m4/strtod.m4: New file.
45129 * m4/strtol.m4: New file.
45132 * m4/strtoul.m4: New file.
45135 * m4/memchr.m4: New file.
45138 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
45139 (jm_FUNC_MEMCMP): Invoke it.
45142 * m4/memcpy.m4: New file.
45145 * m4/memmove.m4: New file.
45148 * m4/memset.m4: New file.
45151 * m4/strcspn.m4: New file.
45154 * m4/strpbrk.m4: New file.
45157 * m4/strstr.m4: New file.
45160 * m4/strerror.m4: New file.
45163 * m4/mktime.m4: Renamed from jm-mktime.m4.
45164 (gl_PREREQ_MKTIME): New macro.
45165 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
45168 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
45169 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
45170 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
45173 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
45174 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
45175 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
45178 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
45179 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
45180 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
45182 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
45185 * m4/xalloc.m4: New file.
45188 * m4/alloca.m4: New file.
45191 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
45192 (jm_FUNC_PUTENV): Invoke it.
45195 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
45196 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
45197 when invoked twice.
45198 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
45202 * m4/memrchr.m4: New file.
45205 * m4/stpcpy.m4: New file.
45208 * m4/strcase.m4: New file.
45211 * m4/strdup.m4: New file.
45214 * m4/strnlen.m4: New file.
45217 * m4/strndup.m4: New file.
45220 * m4/xstrtod.m4: New file.
45223 * m4/xstrtol.m4: New file.
45226 * m4/getdate.m4: New file.
45228 Module unlocked-io.
45229 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
45230 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
45231 * m4/jm-glibc-io.m4n: Remove file.
45233 Module long-options.
45234 * m4/long-options.m4: New file.
45237 * m4/md5.m4: New file.
45240 * m4/sha.m4: New file.
45243 * m4/getstr.m4: New file.
45246 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
45247 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
45248 <sys/types.h>, for size_t. Use the function name gnu_getline, not
45249 simply getline. Infoke gl_PREREQ_GETLINE.
45252 * m4/obstack.m4: New file.
45255 * m4/hash.m4: New file.
45258 * m4/readtokens.m4: New file.
45261 * m4/strverscmp.m4: New file.
45264 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
45268 * m4/strtoll.m4: New file.
45271 * m4/strtoull.m4: New file.
45274 * m4/strtoimax.m4: New file.
45277 * m4/strtoumax.m4: New file.
45280 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
45281 jm_AC_PREREQ_XSTRTOIMAX.
45282 Moved the strtol prerequisites to strtol.m4.
45283 Moved the strtoll prerequisites to strtoll.m4.
45284 Moved the strtoimax prerequisites to strtoimax.m4.
45287 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
45288 jm_AC_PREREQ_XSTRTOUMAX.
45289 Moved the strtoul prerequisites to strtoul.m4.
45290 Moved the strtoull prerequisites to strtoull.m4.
45291 Moved the strtoumax prerequisites to strtoumax.m4.
45294 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
45295 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
45298 * m4/dup2.m4: New file.
45301 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
45302 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
45305 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
45306 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
45308 Module gettimeofday.
45309 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
45310 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
45311 gl_PREREQ_GETTIMEOFDAY.
45314 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
45315 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
45318 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
45319 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
45320 jm_AC_TYPE_UINTMAX_T.
45321 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
45324 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
45325 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
45328 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
45329 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
45332 * m4/timespec.m4 (gl_TIMESPEC): New macro.
45333 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
45334 * m4/st_mtim.m4: Indentation.
45337 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
45338 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
45339 gl_PREREQ_NANOSLEEP.
45342 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
45343 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
45344 (gl_REGEX): New macro.
45347 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
45348 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
45351 * m4/rmdir.m4: New file.
45354 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
45355 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
45356 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
45359 * m4/dirname.m4: New file.
45362 * m4/getopt.m4: New file.
45364 Module unistd-safer.
45365 * m4/unistd-safer.m4: New file.
45368 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
45370 (gl_PREREQ_FNMATCH_EXTRA): New macro.
45371 (gl_FUNC_FNMATCH_POSIX): New macro.
45372 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
45373 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
45377 * m4/exclude.m4: New file.
45380 * m4/human.m4: New file.
45386 * m4/backupfile.m4: New file.
45387 * m4/d-ino.m4: Indentation.
45390 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
45391 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
45392 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
45395 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
45399 * m4/euidaccess.m4: New file.
45402 * m4/file-type.m4: New file.
45405 * m4/fileblocks.m4: New file.
45408 * m4/filemode.m4: New file.
45411 * m4/isdir.m4: New file.
45414 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
45415 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
45418 * m4/makepath.m4: New file.
45421 * m4/modechange.m4: New file.
45424 * m4/mountlist.m4: New file.
45425 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
45428 Module path-concat.
45429 * m4/path-concat.m4: New file.
45432 * m4/pathmax.m4: New file.
45435 * m4/same.m4: New file.
45438 * m4/save-cwd.m4: New file.
45441 * m4/savedir.m4: New file.
45444 * m4/xgetcwd.m4: New file.
45445 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
45448 * m4/xreadlink.m4: New file.
45451 * m4/safe-read.m4: New file.
45454 * m4/safe-write.m4: New file.
45457 * m4/closeout.m4: New file.
45459 Module stdio-safer.
45460 * m4/stdio-safer.m4: New file.
45463 * m4/getpass.m4: New file.
45466 * m4/getugroups.m4: New file.
45468 Module group-member.
45469 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
45470 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
45473 * m4/idcache.m4: New file.
45476 * m4/userspec.m4: New file.
45479 * m4/clock_time.m4: New file.
45480 * m4/gettime.m4: New file.
45483 * m4/settime.m4: New file.
45486 * m4/posixtm.m4: New file.
45488 Module gethostname.
45489 * m4/gethostname.m4: New file.
45492 * m4/canon-host.m4: New file.
45495 * m4/codeset.m4: New file, from gettext-0.11.5.
45496 * m4/gettext.m4: New file, from gettext-0.11.5.
45497 * m4/glibc21.m4: New file, from gettext-0.11.5.
45498 * m4/iconv.m4: New file, from gettext-0.11.5.
45499 * m4/intdiv0.m4: New file, from gettext-0.11.5.
45500 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
45501 * m4/inttypes.m4: New file, from gettext-0.11.5.
45502 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
45503 * m4/isc-posix.m4: New file, from gettext-0.11.5.
45504 * m4/lcmessage.m4: New file, from gettext-0.11.5.
45505 * m4/lib-ld.m4: New file, from gettext-0.11.5.
45506 * m4/lib-link.m4: New file, from gettext-0.11.5.
45507 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
45508 * m4/progtest.m4: New file, from gettext-0.11.5.
45509 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
45510 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
45511 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
45513 Module localcharset.
45514 * m4/localcharset.m4: New file.
45516 Module hard-locale.
45517 * m4/hard-locale.m4: New file.
45520 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
45522 * m4/mbrtowc.m4: Add comment.
45525 * m4/memcasecmp.m4: New file.
45528 * m4/memcoll.m4: New file.
45531 * m4/unicodeio.m4: New file.
45534 * m4/rpmatch.m4: New file.
45537 * m4/yesno.m4: New file.
45540 * m4/exitfail.m4: New file.
45543 * m4/c-stack.m4 (gl_C_STACK): New macro.
45544 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
45547 * m4/error.m4 (gl_ERROR): New macro.
45548 (jm_PREREQ_ERROR): Use onceonly macros.
45551 * m4/fatal.m4: New file.
45554 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
45555 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
45557 Module getpagesize.
45558 * m4/getpagesize.m4: New file.
45560 Module getusershell.
45561 * m4/getusershell.m4: New file.
45564 * m4/physmem.m4: New file.
45567 * m4/posixver.m4: New file.
45570 * m4/quotearg.m4: New file.
45573 * m4/quote.m4: New file.
45576 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
45579 * m4/sig2str.m4: New file.
45582 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
45584 * m4/intmax_t.m4: New file.
45585 * m4/d-type.m4: Indentation.
45586 * m4/jm-macros.m4: Update.
45587 * m4/prereq.m4 (jm_PREREQ): Update.
45588 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
45589 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
45590 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
45591 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
45592 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
45593 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
45594 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
45595 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
45596 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
45597 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
45598 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
45599 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
45600 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
45601 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
45602 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
45603 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
45604 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
45605 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
45606 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
45608 2002-12-24 Bruno Haible <bruno@clisp.org>
45610 * MODULES.txt: Update according to m4/ changes.
45613 * config.rpath: New file, from gettext-0.11.5.
45615 * modules/*: New module descriptions.
45616 * gnulib-tool: New file.
45617 * MODULES.html.sh: New file.
45619 2002-12-21 Karl Berry <karl@gnu.org>
45621 * doc/fdl.texi: update to version 1.2.
45623 2002-12-19 Karl Berry <karl@gnu.org>
45625 * config/config.guess: update from prep.
45627 2002-12-18 Bruno Haible <bruno@clisp.org>
45629 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
45630 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
45632 2002-12-17 Bruno Haible <bruno@clisp.org>
45634 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
45635 stdlib.h, string.h.
45637 2002-12-17 Bruno Haible <bruno@clisp.org>
45639 * lib/canon-host.c (strdup): Remove unused declaration.
45641 * lib/fsusage.c: Include full_read.h.
45642 (get_fs_usage): Use full_read instead of safe_read.
45644 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
45646 2002-12-12 Karl Berry <karl@gnu.org>
45648 * config/config.guess: update from prep.
45650 2002-12-11 Bruno Haible <bruno@clisp.org>
45652 * m4/setenv.m4: New file, from gettext-0.11.5.
45654 2002-12-11 Bruno Haible <bruno@clisp.org>
45656 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
45658 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
45661 2002-12-11 Bruno Haible <bruno@clisp.org>
45663 * setenv.c (alloca): Fall back to malloc.
45664 (freea): New macro.
45665 (setenv): Use freea() to free memory allocated with alloca().
45667 2002-11-13 Bruno Haible <bruno@clisp.org>
45669 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
45670 function declarations.
45671 * unsetenv.c (unsetenv): Likewise.
45673 2002-03-04 Bruno Haible <bruno@clisp.org>
45675 Portability to AIX 4.3.3.
45676 * unsetenv.c: New file, extracted from setenv.c.
45677 * setenv.c: Move the unsetenv() function to unsetenv.c.
45679 2001-12-20 Bruno Haible <bruno@clisp.org>
45681 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
45682 use malloc instead. For SunOS 4.
45684 2001-12-11 Bruno Haible <bruno@clisp.org>
45686 * setenv.c: Declare alloca.
45687 (compar_fn_t): New typedef.
45688 (KNOWN_VALUE, STORE_VALUE): Use it.
45690 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
45693 2002-12-10 Paul Eggert <eggert@twinsun.com>
45695 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
45696 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
45697 Choose values that are less likely to collide with system fnmatch
45699 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
45700 defined (e.g., a pure POSIX system).
45701 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
45702 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
45704 2002-12-06 Paul Eggert <eggert@twinsun.com>
45706 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
45707 a pain in practice to deal with generated m4 files. This change
45708 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
45710 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
45711 and jm-glibc-io.m4, as they are no longer a special case.
45712 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
45713 kludge and the auto-generation stuff. Check only whether the
45714 functions are declared, not whether they exist, since older hosts
45715 that don't declare the functions can't use the optimization anyway.
45717 2002-12-06 Jim Meyering <jim@meyering.net>
45719 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
45721 Merge in changes from libc's misc/error.c, in preparation
45722 for the merge of gnulib's changes back into libc.
45724 * lib/error.c (_): Define only if not already defined.
45725 Move definition to follow all #include directives.
45726 Include unlocked-io.h only if !_LIBC.
45727 [_LIBC]: Include <libio/libioP.h>.
45728 [USE_IN_LIBIO]: Include <libio/iolibio.h>
45729 (fflush): Tweak definition to use INTUSE.
45732 2002-12-05 Paul Eggert <eggert@twinsun.com>
45734 * lib/alloca.c [defined emacs]: Include "lisp.h".
45735 (xalloc_die) [defined emacs]: New macro.
45736 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
45737 [! defined emacs]: Include <xalloc.h>.
45738 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
45739 (pointer): Typedef to POINTER_TYPE *.
45740 (malloc): Remove decl; we now always use xmalloc.
45741 (alloca): Use old-style definition, since Emacs needs this.
45742 Check for arithmetic overflow when computing combined size.
45744 2002-12-04 Paul Eggert <eggert@twinsun.com>
45746 Do not generate unlocked-io.h automatically, since it's easier to
45747 maintain it by hand.
45749 * lib/unlocked-io.h: New file, from GNU diffutils,
45750 but with proper copyright notice and attribution.
45751 * lib/gen-uio: Remove.
45752 * lib/Makefile.am: Add copyright notice.
45753 (libfetish_a_SOURCES): Add unlocked-io.h.
45754 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
45755 (DISTCLEANFILES, io_functions): Remove macros.
45756 (EXTRA_DIST): Remove gen_uio.
45757 (unlocked-io.h): Remove rule.
45759 2002-12-04 Jim Meyering <jim@meyering.net>
45761 Reflect the fact that stat.c and lstat.c are no longer generated.
45762 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
45763 (DISTCLEANFILES): Likewise.
45764 (EXTRA_DIST): Likewise.
45765 (all_local): Don't depend on stat.c or lstat.c.
45766 (stat.c, lstat.c): Remove rules.
45767 (EXTRA_DIST): Remove xstat.in.
45769 * lib/xstat.in: Remove file. Contents moved into stat.c.
45770 * lib/stat.c: New file. Contents mostly from xstat.in.
45771 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
45772 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
45774 * lib/safe-read.c: Rework so that it may serve to define safe_write,
45776 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
45778 2002-12-03 Jim Meyering <jim@meyering.net>
45780 * lib/safe-read.c, safe-write.c: Change variable names and comments,
45781 but not semantics, to minimize the differences between these two files.
45782 (safe_read): Change comment to mention SAFE_READ_ERROR.
45784 * lib/safe-read.c (IS_EINTR): Define.
45785 (safe_read): Use IS_EINTR in place of in-function cpp directives.
45787 2002-12-02 Jim Meyering <jim@meyering.net>
45789 * lib/safe-read.c (EINTR): Define.
45790 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
45791 (INT_MAX): Provide fallback.
45792 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
45794 * lib/safe-read.h (SAFE_READ_ERROR): Define.
45796 2002-12-02 Bruno Haible <bruno@clisp.org>
45798 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
45799 Define, taken from safe-read.c.
45800 (INT_MAX): Provide fallback.
45801 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
45802 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
45804 * lib/safe-read.c (EINTR): Remove definition.
45805 (safe_read): Don't use EINTR if it is absent.
45807 2002-12-01 Jim Meyering <jim@meyering.net>
45809 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
45811 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
45813 2002-11-27 Paul Eggert <eggert@twinsun.com>
45815 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
45816 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
45817 with `if (! (value < limit)) abort ();', for readability.
45819 2002-11-26 Karl Berry <karl@gnu.org>
45821 * lib/strdup.c: copy from libc again, with jim's ok.
45822 * lib/.cppi-disable: re-add strdup.c
45824 2002-11-25 Karl Berry <karl@gnu.org>
45826 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
45827 instead of "strtol.c".
45829 2002-11-25 Karl Berry <karl@gnu.org>
45831 * config/install-sh: update from automake for variable quoting, $0 in
45834 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
45835 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
45838 2002-11-25 Jim Meyering <jim@meyering.net>
45840 * lib/mktime.c: Sync from libc, now that it has the latest fix.
45842 2002-11-24 Karl Berry <karl@gnu.org>
45844 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
45845 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
45847 2002-11-24 Jim Meyering <jim@meyering.net>
45849 Update from coreutils:
45851 * lib/mktime.c: Merge in changes from libc.
45853 Avoid a link-time failure on some Linux systems.
45854 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
45856 (__mon_yday): Declare with the STATIC attribute.
45857 (__mktime_internal): Likewise.
45858 Based on a report from Greg Schafer.
45860 2002-11-23 Jim Meyering <jim@meyering.net>
45862 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
45863 Use `unsigned', not `int', as type of index.
45865 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
45867 * lib/fsusage.c: Remove unneeded parentheses around operands of
45870 2002-11-22 Paul Eggert <eggert@twinsun.com>
45872 * lib/quotearg.h: Allow multiple inclusion by surrounding with
45873 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
45874 so that we can be included first.
45875 (PARAMS): Remove; we now assume C89 or later. All uses removed.
45876 * lib/quotearg.c: Include quotearg.h immediately after config.h.
45877 No need to include stddef.h or sys/types.h any more.
45878 Surround local include files with "", not "<>".
45879 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
45880 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
45881 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
45882 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
45883 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
45884 (ISPRINT): Remove; no longer needed now that we assume C89.
45886 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
45889 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
45890 quotearg_char): Use SIZE_MAX rather than
45891 (size_t) -1 when we are talking about "infinity".
45893 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
45895 2002-11-22 Paul Eggert <eggert@twinsun.com>
45897 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
45898 hint that one should use `if (! x) abort ();' rather than `assert
45899 (x);', and anyway it's one less thing to worry about configuring.
45900 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
45901 hash_rehash, hash_insert): Use abort rather than assert.
45903 2002-11-22 Bruno Haible <bruno@clisp.org>
45905 * lib/safe-read.h: Assume C89. Add comments.
45906 (safe_read): Change return type to size_t.
45907 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
45908 byte counts > SSIZE_MAX correctly.
45909 * lib/safe-write.h: New file.
45910 * lib/safe-write.c: New file.
45911 * lib/full-read.h: New file.
45912 * lib/full-read.c: New file.
45913 * lib/full-write.h: Assume C89. Add comments.
45914 * lib/full-write.c: Include safe-write.h.
45915 (full_write): Rewritten to use safe_write.
45916 Suggested by Jim Meyering and Paul Eggert.
45918 2002-11-21 Jim Meyering <jim@meyering.net>
45920 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
45922 Merge in changes from the coreutils.
45924 2002-09-25 Paul Eggert <eggert@twinsun.com>
45925 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
45927 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
45928 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
45929 int. Work more efficiently if X is the same width as uintmax_t.
45930 Do not compare X to -1, to avoid bogus compiler warning.
45931 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
45932 Don't assume that f_frsize and f_bsize are the same type.
45934 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
45935 warning on FreeBSD.
45937 * lib/makepath.c (make_path): Restore umask *before* creating the final
45939 (make_path): Minor reformatting.
45941 * lib/xmalloc.c: Adjust to work with new autoconf macros,
45942 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
45943 HAVE_MALLOC/HAVE_REALLOC.
45945 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
45946 dummy ones. At least on GNU/Linux systems, `auto' means something
45948 From Michael Stone.
45950 2002-11-21 Bruno Haible <bruno@clisp.org>
45952 Remove case insensitive option matching.
45953 * lib/argmatch.h (argcasematch): Remove declaration.
45954 (ARGCASEMATCH): Remove macro.
45955 (__xargmatch_internal): Remove case_sensitive argument.
45956 (XARGMATCH): Update.
45957 (XARGCASEMATCH): Remove macro.
45958 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
45959 case_sensitive argument.
45960 (argcasematch): Remove function.
45961 (__xargmatch_internal): Remove case_sensitive argument.
45962 (main): Use XARGMATCH instead of XARGCASEMATCH.
45964 * lib/xmalloc.c: Change compile-time error message. Add comment about
45965 required autoconf version.
45967 2002-11-20 Paul Eggert <eggert@twinsun.com>
45969 Merge argmatch cleanups from Bison. Assume C89.
45971 * lib/argmatch.c: Include config.h here, not in argmatch.h.
45972 Include stdlib.h, for EXIT_FAILURE.
45973 Always include <string.h>, since we assume C89.
45974 (EXIT_FAILURE): Remove pre-C89 bug workaround.
45975 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
45976 Include <stddef.h> instead, since it's all we need for size_t.
45977 (PARAMS): Remove. All uses removed.
45978 (ARRAY_CARDINALITY): Do not bother to #undef.
45979 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
45980 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
45981 Remove unnecessary parentheses.
45982 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
45983 Insert necessary parentheses.
45984 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
45985 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
45987 2002-11-19 Bruno Haible <bruno@clisp.org>
45989 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
45990 * lib/mbswidth.h: Include <stddef.h>, for size_t.
45992 * lib/mbswidth.h (PARAMS): Remove macro.
45993 (mbswidth, mbsnwidth): Use ANSI C function declarations.
45994 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
45996 * lib/gcd.h (PARAMS): Remove macro.
45997 (gcd): Use ANSI C function declarations.
45998 * lib/gcd.c (gcd): Likewise.
46000 2002-11-15 Bruno Haible <bruno@clisp.org>
46002 * lib/strcspn.c: Include <stddef.h>.
46003 (strcspn): Use ANSI C function declaration. Change return type to
46005 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
46006 (strpbrk): Use NULL.
46007 * lib/strpbrk.h (PARAMS): Remove macro.
46008 (strpbrk): Use ANSI C function declaration.
46009 * lib/strstr.c: Don't include <sys/types.h>.
46010 * lib/strstr.h (PARAMS): Remove macro.
46011 (strstr): Use ANSI C function declarations.
46013 2002-11-14 Karl Berry <karl@gnu.org>
46015 * config/mkinstalldirs: `do' on separate line, instead of
46018 2002-11-06 Bruno Haible <bruno@clisp.org>
46020 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
46021 * lib/gcd.c (gcd): Likewise.
46023 2002-11-05 Bruno Haible <bruno@clisp.org>
46025 * lib/gcd.h: New file, from gettext-0.11.5.
46026 * lib/gcd.c: New file, from gettext-0.11.5.
46028 2002-11-05 Bruno Haible <bruno@clisp.org>
46030 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46031 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46032 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46033 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46035 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
46037 * lib/makepath.c: Include gettext.h instead of <locale.h> and
46040 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
46041 * lib/human.c: Include gettext.h instead of <libintl.h>.
46042 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
46043 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
46044 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
46045 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
46046 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
46047 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
46048 (textdomain): Remove definition.
46049 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
46051 * lib/long-options.c: Remove include of <libintl.h> and definition of
46053 * lib/same.c: Remove include of <libintl.h> and definition of _.
46055 2002-11-04 Owen Taylor <otaylor@redhat.com>
46057 * lib/config.charset: A few additions for Solaris.
46059 2002-11-04 Bruno Haible <haible@clisp.cons.org>
46061 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
46062 * lib/localcharset.c (locale_charset): Declare as extern "C".
46064 2002-11-04 Bruno Haible <haible@clisp.cons.org>
46066 * lib/config.charset: msdos in uk_UA uses CP1125.
46068 2002-11-04 Bruno Haible <bruno@clisp.org>
46070 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
46071 * lib/strcase.h: New file, from GNU gettext-0.11.5.
46072 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
46073 * lib/strstr.h: New file, from GNU gettext-0.11.5.
46074 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
46076 2002-11-04 Bruno Haible <bruno@clisp.org>
46078 * lib/localcharset.c (locale_charset): Don't return an empty string.
46080 2002-11-04 Bruno Haible <bruno@clisp.org>
46082 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
46085 2002-11-04 Bruno Haible <bruno@clisp.org>
46087 * lib/config.charset: Update for newest glibc. Add canonical names
46088 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
46090 2002-11-04 Bruno Haible <bruno@clisp.org>
46092 * lib/config.charset: Add support for NetBSD.
46094 2002-11-04 Bruno Haible <bruno@clisp.org>
46096 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
46098 2002-11-01 Bruno Haible <bruno@clisp.org>
46100 * configure.in: Add AC_CONFIG_AUX_DIR call.
46101 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
46103 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
46105 2002-09-28 Karl Berry <karl@gnu.org>
46107 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
46108 installed automake until the next release, since changes have been
46111 2002-09-25 Karl Berry <karl@gnu.org>
46113 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
46114 * lib/getopt*: copy from libc/posix.
46115 * lib/gettext.h: copy from gettext.
46116 * lib/.cppi-disable: add strdup.c, gettext.h.
46118 2002-09-25 Karl Berry <karl@gnu.org>
46120 * config/srclist.txt: enable gettext.h check.
46121 * config/config.{guess,sub}: update from prep.
46122 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
46123 from automake 1.6.3.
46126 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
46128 * regex.c (PATFETCH): Remove the translating fetch.
46129 (PATFETCH_RAW): Rename to PATFETCH.
46130 (set_image_of_range): New fun.
46131 (SET_RANGE_TABLE_WORK_AREA): Use it.
46132 (regex_compile): Don't translate the pattern chars so eagerly.
46133 Only do it when inserting an `exactn' bytecode or when handling
46135 (mutually_exclusive_p): Avoid empty statement.
46137 2002-07-06 Jim Meyering <meyering@lucent.com>
46139 * m4/README: Don't mention Makefile.am.in.
46140 Outline how I've tested changes to .m4 files. Yep, it's a pain.
46142 2002-07-01 Jim Meyering <meyering@lucent.com>
46144 * lib/c-stack.c: Include sys/time.h.
46145 From Volker Borchert.
46147 2002-06-26 Paul Eggert <eggert@twinsun.com>
46149 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
46151 2002-06-26 Paul Eggert <eggert@twinsun.com>
46153 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
46154 New macro. Use it uniformly instead of
46155 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
46156 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
46157 reported by Vin Shelton.
46159 2002-06-22 Paul Eggert <eggert@twinsun.com>
46161 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
46162 Do not assume SA_SIGINFO behavior.
46163 Bug reported by Jim Meyering on NetBSD 1.5.2.
46165 2002-06-22 Jim Meyering <meyering@lucent.com>
46167 * m4/c-stack.m4: New file, from diffutils-2.8.2.
46168 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
46170 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
46171 now that configure.ac uses AC_GNU_SOURCE.
46172 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
46173 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
46175 Update to latest tools. Suggestions from Paul Eggert.
46176 * m4/stdbool.m4: New file, from diffutils-2.8.2.
46177 * m4/gnu-source.m4: Update from diffutils-2.8.2.
46178 * m4/fnmatch.m4: Likewise.
46179 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
46180 to AC_HEADER_STDBOOL
46182 2002-06-22 Jim Meyering <meyering@lucent.com>
46184 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
46185 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
46187 2002-06-22 Jim Meyering <meyering@lucent.com>
46189 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
46191 * lib/exitfail.c, exitfail.h: Likewise.
46192 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
46194 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
46196 (EXTRA_DIST): Add fnmatch_loop.c.
46197 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
46199 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
46200 * lib/fnmatch.c: Update from diffutils-2.8.2.
46201 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
46202 * lib/fnmatch.h: Remove file.
46204 2002-06-21 Jim Meyering <meyering@lucent.com>
46206 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
46207 * m4/mbrtowc.m4: Likewise.
46209 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
46210 * m4/mbswidth.m4: Reflect name change:
46211 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
46212 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
46214 * m4/lib-link.m4: Update from gettext-0.11.2.
46215 * m4/gettext.m4: Likewise.
46217 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
46218 From Alfred M. Szmidt.
46220 2002-06-18 Paul Eggert <eggert@twinsun.com>
46222 * lib/file-type.h: Report an error if neither S_ISREG nor
46223 S_IFREG is defined, instead of using a test specific to glibc
46224 2.2. This should be safe, since POSIX requires S_ISREG and
46225 Unix Version 7 had S_IFREG. We don't need to check for
46226 <sys/types.h> since we don't use any symbols that it defines.
46228 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
46230 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
46231 $@-t, so that each temporary file name is unique and valid in the first
46232 8 characters, for operation under DOS.
46234 2002-06-15 Paul Eggert <eggert@twinsun.com>
46236 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
46238 2002-06-15 Jim Meyering <meyering@lucent.com>
46240 Work even with DJGPP 2.03, which lacks support for symlinks.
46242 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
46244 * lib/lchown.c (S_ISLNK): Likewise.
46246 2002-06-15 Jim Meyering <meyering@lucent.com>
46248 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
46249 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
46250 have been included before this file.
46252 2002-06-14 Jim Meyering <meyering@lucent.com>
46254 * lib/file-type.h: Use the version from diffutils-2.8.2.
46255 * lib/file-type.c: Likewise.
46257 2002-06-07 Jim Meyering <meyering@lucent.com>
46259 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
46260 They're needed at least for NetBSD 1.5.2.
46261 ($statxfs_includes): Include those same headers.
46262 ($statxfs_includes): Include sys/vfs.h if available.
46263 ($statxfs_includes): Likewise for sys/statvfs.h.
46264 Check for the following members in both structs statfs and statvfs:
46265 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
46267 2002-06-01 Jim Meyering <meyering@lucent.com>
46269 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
46270 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
46272 2002-05-28 Jim Meyering <meyering@lucent.com>
46274 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
46275 Reported by Volker Borchert.
46277 2002-05-27 Jim Meyering <meyering@lucent.com>
46279 Fix a problem seen only on nonconforming systems whereby ls.c's
46280 use of localtime, and then of gettimeofday would cause trouble:
46281 the localtime call used to initialize rpl_gettimeofday's save
46282 mechanism would clobber ls's current local time information so
46283 that in any long listing the first file would always be listed
46284 with date 1970-01-01. Analysis by Volker Borchert.
46286 * lib/gettimeofday.c (localtime): Undefine.
46287 (rpl_localtime): New function.
46289 2002-05-27 Jim Meyering <meyering@lucent.com>
46291 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
46294 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
46295 use the replacement function; it wouldn't resolve at link time.
46296 Reported by Volker Borchert.
46298 2002-05-22 Jim Meyering <meyering@lucent.com>
46300 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
46302 * lib/file-type.h: New file.
46303 * lib/file-type.c (file_type): New file/function. Extracted from
46306 2002-04-30 Jim Meyering <meyering@lucent.com>
46308 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
46310 2002-04-29 Paul Eggert <eggert@twinsun.com>
46312 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
46314 2002-04-29 Paul Eggert <eggert@twinsun.com>
46316 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
46317 Do not check for alloca.h (no longer used) or stdbool.h (was never
46318 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
46320 2002-04-29 Paul Eggert <eggert@twinsun.com>
46322 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
46324 2002-04-29 Jim Meyering <meyering@lucent.com>
46326 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
46327 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
46328 Use AC_FUNC_STRNLEN here instead.
46330 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
46331 With autoconf-2.53a, it's part of AC_PROG_CC.
46333 2002-04-28 Paul Eggert <eggert@twinsun.com>
46335 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
46336 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
46338 2002-04-28 Paul Eggert <eggert@twinsun.com>
46340 * lib/sig2str.h, lib/sig2str.c: New files.
46341 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
46343 2002-04-28 Paul Eggert <eggert@twinsun.com>
46345 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
46346 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
46347 of 127, since 64 is the largest conceivable number for ancient
46349 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
46351 2002-04-28 Jim Meyering <meyering@lucent.com>
46353 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
46355 2002-04-24 Jim Meyering <meyering@lucent.com>
46357 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
46358 (jm_PREREQ): Use it.
46360 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
46361 mach/mach.h fcntl.h.
46362 Check for this function: setlocale.
46364 2002-04-24 Jim Meyering <meyering@lucent.com>
46366 * lib/gettext.h: New file, from Gettext.
46367 * lib/Makefile.am (INCLUDES): Remove -I../intl.
46368 (libfetish_a_SOURCES): Add gettext.h.
46370 2002-04-16 Jim Meyering <meyering@lucent.com>
46372 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
46373 ut_pid, ut_id, ut_exit.
46375 2002-04-16 Jim Meyering <meyering@lucent.com>
46377 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
46378 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
46379 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
46381 2002-04-12 Jim Meyering <meyering@lucent.com>
46383 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
46384 now-bogus check for f_type in sys/mount.h. Instead, just test for the
46385 existence of the getmntinfo function. Needed for Darwin 5.3.
46387 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
46388 This is necessary at least on Darwin 5.3.
46390 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
46391 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
46392 strnlen.o in the library, and that makes some versions of ranlib
46395 2002-04-12 Jim Meyering <meyering@lucent.com>
46397 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
46399 2002-04-09 Jim Meyering <meyering@lucent.com>
46401 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
46402 to be more precise. Rather than saying we're checking whether the
46403 function `works', say what we're testing.
46404 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
46405 Reported by Bruno Haible.
46407 2002-03-10 Jim Meyering <meyering@lucent.com>
46409 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
46410 Suggestion from Santiago Vila.
46412 2002-03-08 Jim Meyering <meyering@lucent.com>
46414 * lib/rename.c: Mention that this wrapper is needed also on
46415 mips-dec-ultrix4.4 systems.
46417 2002-03-02 Jim Meyering <meyering@lucent.com>
46419 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
46420 not HAVE_CLOCK_SETTIME.
46422 2002-02-27 Paul Eggert <eggert@twinsun.com>
46424 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
46425 Check for clock_settime.
46427 2002-02-27 Paul Eggert <eggert@twinsun.com>
46429 * lib/nanosleep.h: Rename to....
46430 * lib/timespec.h: New name for nanosleep.h. All uses changed.
46432 * lib/gettime.c: New file.
46433 * lib/settime.c: New file.
46434 * lib/stime.c: Remove.
46436 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
46437 timespec.h. Remove nanosleep.h.
46439 2002-02-25 Paul Eggert <eggert@twinsun.com>
46441 * m4/acl.m4: New file.
46442 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
46443 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
46445 2002-02-25 Paul Eggert <eggert@twinsun.com>
46447 * lib/acl.c, lib/acl.h: New files.
46448 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
46450 2002-02-24 Jim Meyering <meyering@lucent.com>
46452 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
46453 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
46454 cause trouble. Reported by Nelson Beebe.
46456 2002-02-23 Paul Eggert <eggert@twinsun.com>
46458 * lib/path-concat.c (xpath_concat): Reorder code to pacify
46459 compilers that don't know that xalloc_die never returns.
46461 2002-02-20 Jim Meyering <meyering@lucent.com>
46463 * lib/getdate.c: Regenerate using bison-1.33.
46465 2002-02-17 Jim Meyering <meyering@lucent.com>
46467 * config/config.guess (main): Don't use `head -1'; it's no longer
46468 portable. Use `sed 1q' instead.
46470 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
46472 * m4/codeset.m4: Upgrade to gettext-0.11.
46473 * m4/gettext.m4: Upgrade to gettext-0.11.
46474 * m4/glibc21.m4: Upgrade to gettext-0.11.
46475 * m4/iconv.m4: Upgrade to gettext-0.11.
46476 * m4/isc-posix.m4: Upgrade to gettext-0.11.
46477 * m4/lcmessage.m4: Upgrade to gettext-0.11.
46478 * m4/lib-ld.m4: New file, from gettext-0.11.
46479 * m4/lib-link.m4: New file, from gettext-0.11.
46480 * m4/lib-prefix.m4: New file, from gettext-0.11.
46481 * m4/progtest.m4: Upgrade to gettext-0.11.
46483 2002-02-15 Paul Eggert <eggert@twinsun.com>
46485 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
46486 (jm_PREREQ): Use it.
46488 2002-02-15 Paul Eggert <eggert@twinsun.com>
46490 * lib/posixver.c, lib/posixver.h: New files.
46491 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
46493 2002-02-02 Paul Eggert <eggert@twinsun.com>
46494 Bruno Haible <bruno@clisp.org>
46496 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
46497 (fwrite_success_callback): New declaration.
46498 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
46499 print_unicode_char. Call failure callback instead of error.
46500 (fwrite_success_callback): New function.
46501 (exit_failure_callback): New function.
46502 (fallback_failure_callback): New function.
46503 (print_unicode_char): Call unicode_to_mb.
46505 2002-01-26 Jim Meyering <meyering@lucent.com>
46507 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
46508 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
46510 2002-01-26 Jim Meyering <meyering@lucent.com>
46512 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
46514 2002-01-22 Paul Eggert <eggert@twinsun.com>
46516 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
46518 2002-01-22 Jim Meyering <meyering@lucent.com>
46520 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
46521 Otherwise, some versions of automake would omit the rule that makes
46522 Makefile from Makefile.in.
46524 2002-01-21 Paul Eggert <eggert@twinsun.com>
46526 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
46527 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
46528 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
46529 (memcoll): Set errno to zero if there is no error.
46531 * lib/quotearg.c (quotearg_buffer_restyled):
46532 Fix bug with quoting buffers containing NUL when backslashing escapes.
46533 This bug was exposed by the other changes in this patch.
46534 (quotearg_n_options): New arg ARGSIZE.
46535 All callers changed.
46536 (quoting_options_from_style): New function.
46537 (quotearg_n_style): Use it.
46538 (quotearg_n_style_mem): New function.
46540 * lib/quotearg.h (quotearg_n_style_mem): New function.
46542 2002-01-19 Jim Meyering <meyering@lucent.com>
46544 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
46545 Remove useless quotes: DF_PROG="df".
46546 * m4/strnlen.m4: New file.
46548 2002-01-16 Paul Eggert <eggert@twinsun.com>
46550 * lib/backupfile.c (ISDIGIT): Comment fix.
46551 * lib/getdate.y (ISDIGIT): Likewise.
46552 * lib/posixtm.c (ISDIGIT, year): Likewise.
46553 * lib/strverscmp.c (ISDIGIT): Likewise.
46554 * lib/userspec.c (ISDIGIT): Likewise.
46556 2002-01-16 Jim Meyering <meyering@lucent.com>
46558 * lib/getdate.y: Add three semicolons, each just before a closing
46559 brace. Bison (as of version 1.31) no longer papers over that mistake.
46561 2002-01-05 Jim Meyering <meyering@lucent.com>
46563 * lib/version-etc.c (version_etc_copyright): Update copyright year.
46565 2001-12-19 Paul Eggert <eggert@twinsun.com>
46567 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
46568 not silently exit merely because the output buffer happens to
46569 have nothing pending.
46571 2001-12-18 Paul Eggert <eggert@twinsun.com>
46573 See the big note in ../ChangeLog.
46574 * lib/human.c (suffixes): Prefer K to k for 1024.
46575 (generate_suffix_backwards): New function.
46576 (human_readable_inexact): Use it.
46577 * lib/xstrtol.c (__xstrtol): If there is no number but there
46578 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
46579 Accept 'K' as well as 'k'.
46581 2001-12-15 Jim Meyering <meyering@lucent.com>
46583 * lib/regex.h (__restrict_arr): Update from libc.
46585 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
46586 as `remote' if the name starts with `//'. Suggested by Michael Stone.
46589 2001-12-14 Jim Meyering <meyering@lucent.com>
46591 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
46592 Suggestion from Bruno Haible.
46594 2001-12-10 Jim Meyering <meyering@lucent.com>
46596 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
46597 xrealloc, Instead, include "xalloc.h".
46598 (initbuffer): Don't cast xmalloc return value to char*.
46599 (readline): Reword comment.
46600 Don't cast xrealloc return value to char*
46601 Return NULL, not 0.
46603 2001-12-09 Jim Meyering <meyering@lucent.com>
46605 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
46606 about `signed and unsigned type in conditional expression'.
46607 * lib/posixtm.c (posix_time_parse): Likewise.
46609 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
46611 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
46612 to avoid a pedantic warning.
46614 * lib/getstr.c: Don't include assert.h.
46615 (getstr): Remove warning-evoking assertions.
46616 Return -1 if offset parameter is out of bounds.
46617 Change the type of a local from int to size_t.
46619 * lib/strftime.c (my_strftime_localtime_r): Include this function
46620 definition in the `#if ! HAVE_TM_GMTOFF' block.
46622 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
46623 Include xalloc.h instead.
46625 2001-12-02 Jim Meyering <meyering@lucent.com>
46627 * lib/tempname.c: Don't declare getenv, thus reverting the change of
46628 2001-11-18. It's no longer necessary, now that stdlib.h is always
46631 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
46632 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
46634 2001-11-30 Akim Demaille <akim@epita.fr>
46636 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
46637 before being defined.
46639 2001-11-27 Paul Eggert <eggert@twinsun.com>
46641 * lib/quotearg.h (quotearg_n, quotearg_n_style):
46642 First arg is int, not unsigned.
46643 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
46644 (SIZE_MAX, UINT_MAX): New macros.
46645 (quotearg_n_options): Abort if N is negative.
46646 Avoid overflow check on hosts where size_t is 64 bits and int
46647 is 32 bits, as overflow is impossible there.
46648 Fix off-by-one typo that caused unnecessary reallocation.
46650 2001-11-27 Jim Meyering <meyering@lucent.com>
46652 * lib/tempname.c: Merge with version from libc.
46653 * lib/regex.c: Likewise.
46655 * lib/tempname.c: Include stdlib.h unconditionally. On some old
46656 systems for which STDC_HEADERS is 0, it was not included, resulting in
46657 a warning about an integer-to-pointer conversion problem with getenv.
46658 Reported by Volker Borchert.
46660 2001-11-26 Jim Meyering <meyering@lucent.com>
46662 * lib/gtod.h: Remove file.
46663 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
46664 * lib/gettimeofday.c: Don't include gtod.h.
46665 (GTOD_init): Remove function.
46666 (rpl_gettimeofday): Do its job here instead, rather than aborting.
46667 Suggestion from Volker Borchert.
46669 2001-11-23 Jim Meyering <meyering@lucent.com>
46671 * lib/hash.h (struct hash_table): Don't define here. Merely declare
46673 * lib/hash.c (struct hash_table): Define it here instead.
46675 2001-11-22 Jim Meyering <meyering@lucent.com>
46677 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
46679 2001-11-20 Jim Meyering <meyering@lucent.com>
46681 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
46682 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
46684 2001-11-19 Jim Meyering <meyering@lucent.com>
46686 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
46687 directory. Use "conftestXXXXXX" as the template.
46688 Suggestion from Paul Eggert.
46690 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
46691 immediately, so the test doesn't mistakenly hit the max-open-files
46694 2001-11-18 Paul Eggert <eggert@twinsun.com>
46696 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
46697 (TEMPORARIES): New macro.
46698 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
46699 removes an artificial limitation (e.g. HP-UX 10.20, where
46702 2001-11-18 Jim Meyering <meyering@lucent.com>
46704 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
46706 2001-11-18 Jim Meyering <meyering@lucent.com>
46708 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
46711 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
46712 files will be created before anything else.
46714 2001-11-17 Paul Eggert <eggert@twinsun.com>
46716 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
46717 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
46719 2001-11-17 Jim Meyering <meyering@lucent.com>
46721 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
46722 Prompted by a report from Bob Proulx.
46724 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
46725 Instead, require UTILS_FUNC_MKSTEMP.
46727 2001-11-17 Jim Meyering <meyering@lucent.com>
46729 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
46730 Now, that's done as part of AC_FUNC_STRTOD.
46732 2001-11-17 Jim Meyering <meyering@lucent.com>
46734 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
46735 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
46736 rather than group writable. Patch by Juan F. Codagnone.
46738 * lib/readtokens.c: Remove explicit declarations of xmalloc and
46739 xrealloc, Instead, include "xalloc.h".
46741 * lib/mountlist.c: Include unlocked-io.h after all system headers.
46742 Remove explicit declarations of xmalloc, xrealloc,
46743 and xstrdup. Instead, include "xalloc.h".
46745 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
46747 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
46749 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
46751 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
46752 Reported by Padraig Brady.
46754 * lib/mkstemp.c: #undef mkstemp.
46756 (rpl_mkstemp): Rename from mkstemp.
46759 2001-11-16 Jim Meyering <meyering@lucent.com>
46761 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
46762 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
46763 determine the amount of total physical memory, use pstat_getstatic.
46764 HPUX-11 doesn't define _SC_PHYS_PAGES.
46765 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
46766 If sysconf couldn't be used to determine the amount of available
46767 physical memory, use both pstat_getstatic and pstat_getdynamic.
46768 Based on a patch from Bob Proulx.
46770 2001-11-10 Jim Meyering <meyering@lucent.com>
46772 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
46773 (jm_PREREQ): Use it.
46775 2001-11-09 Jim Meyering <meyering@lucent.com>
46777 * m4/jm-macros.m4: Require autoconf-2.52f.
46778 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
46779 Use these AC_-prefixed names, not the AM_-prefixed ones.
46781 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
46783 2001-11-05 Jim Meyering <meyering@lucent.com>
46785 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
46787 2001-11-04 Jim Meyering <meyering@lucent.com>
46789 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
46792 2001-11-03 Jim Meyering <meyering@lucent.com>
46794 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
46797 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
46798 know the name of the variable in the macro definition.
46800 2001-11-03 Jim Meyering <meyering@lucent.com>
46802 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
46803 in argmatch_to_argument call.
46805 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
46808 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
46809 e.g., a fault due to an attempt to free a NULL pointer.
46811 2001-11-01 Jim Meyering <meyering@lucent.com>
46813 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
46814 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
46816 2001-11-01 Jim Meyering <meyering@lucent.com>
46818 * lib/dirfd.c, lib/dirfd.h: New files.
46819 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
46821 * lib/hash.c (hash_print) [TESTING]: Clean up.
46823 2001-10-22 Paul Eggert <eggert@twinsun.com>
46825 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
46826 to avoid a warning if -Wall.
46828 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
46831 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
46832 (per RMS's instructions, this is now the canonical source)
46833 * lgpl/, gpl/: New directories.
46835 2001-10-21 Paul Eggert <eggert@twinsun.com>
46837 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
46839 2001-10-21 Jim Meyering <meyering@lucent.com>
46841 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
46842 this code would end up calling gettext even in packages built
46843 with --disable-nls.
46844 * lib/getopt.c (_): Likewise.
46845 * lib/regex.c (_): Likewise.
46847 2001-10-20 Paul Eggert <eggert@twinsun.com>
46849 * m4/error.m4 (jm_PREREQ_ERROR):
46850 Do not invoke AC_CHECK_FUNCS with strerror_r, as
46851 AC_FUNC_STRERROR_R does that.
46852 Check for strerror declaration.
46854 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
46855 are supposed to have them these days.
46856 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
46857 Merge changes from latest Autoconf CVS.
46858 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
46859 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
46860 POSIX decided to standardize on the int flavor of strerror_r.
46862 2001-10-20 Paul Eggert <eggert@twinsun.com>
46864 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
46865 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
46866 Use strerror_r that is only a macro, even if it is not a function.
46867 (strerror): Check for HAVE_DECL_STRERROR before declaring.
46868 (private_strerror): Use prototypes, not old-style function definition.
46869 (print_errno_message): New function.
46870 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
46871 char*-flavored one.
46872 (error_tail, error, error_at_line): Use it.
46874 2001-10-11 Jim Meyering <meyering@lucent.com>
46876 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
46877 and quote_n (1, ... to avoid clobbering a buffer.
46879 2001-10-05 Jim Meyering <meyering@lucent.com>
46881 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
46883 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
46884 * lib/hash-pjw.h: New file.
46886 2001-09-30 Jim Meyering <meyering@lucent.com>
46888 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
46889 `struct fsstat' has the `f_fstypename' member.
46890 Use that to define FS_TYPE, which is now used to make
46891 the getfsstat link test tighter.
46893 2001-09-30 Jim Meyering <meyering@lucent.com>
46895 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
46896 Include <sys/ucred.h>, for Apple Darwin.
46897 Include sys/mount.h and sys/fs_types.h only if available.
46899 (read_filesystem_list): Use FS_TYPE.
46901 2001-09-29 Paul Eggert <eggert@twinsun.com>
46903 * lib/exclude.c (excluded_filename): 0 -> false, since it's
46906 2001-09-29 Jim Meyering <meyering@lucent.com>
46908 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
46909 [one-argument getmntent function]): Include stdio.h before mntent.h.
46910 SunOS 4.1.x needs it for the declaration of `FILE'.
46911 Patch by Volker Borchert.
46913 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
46914 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
46915 sys/fs_types.h, and make the link-test for getfsstat guard #include
46916 directives with appropriate #if HAVE_*_H tests so that we can
46917 detect getfsstat on Apple Darwin1.3.7 systems.
46918 Reported by Nelson Beebe.
46919 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
46921 2001-09-28 Paul Eggert <eggert@twinsun.com>
46923 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
46924 #defines strtoimax. Also treat the other strto* functions
46927 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
46928 Check for strtoul and strtoumax,
46929 as those declarations are made even in the signed case.
46930 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
46931 Likewise, for strtol and strtoimax.
46933 2001-09-28 Paul Eggert <eggert@twinsun.com>
46935 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
46936 #defines strtoimax. Also treat the other strto* functions
46939 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
46940 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
46941 (strtoimax, strtoumax): Do not declare if already defined as a macro.
46943 2001-09-26 Jim Meyering <meyering@lucent.com>
46945 Most macros in unlocked-io.h had the wrong number of arguments.
46946 * lib/gen-uio: New script.
46947 (USE_UNLOCKED_IO): Define to 1 if not already defined.
46948 * lib/unlocked-io.hin: Remove file.
46949 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
46950 rather than trying to embed it here.
46951 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
46952 Reported by Padraig Brady.
46954 2001-09-25 Volker Borchert <bt@teknon.de>
46956 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
46959 2001-09-24 Jim Meyering <meyering@lucent.com>
46961 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
46963 2001-09-23 Jim Meyering <meyering@lucent.com>
46965 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
46966 instead of the mere test for existence of mntent.h. The latter
46967 would get a false-positive on AIX 3.4 systems.
46968 In the outer getmntent if-block, don't die if neither of the getmntent
46969 tests succeeds. Instead, just fall through and continue with the
46972 2001-09-23 Jim Meyering <meyering@lucent.com>
46974 * lib/mountlist.c: Remove useless parentheses in #if directives.
46975 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
46976 the deprecated MOUNTED symbol is no longer defined in mntent.h.
46978 2001-09-22 Jim Meyering <meyering@lucent.com>
46980 * m4/gettext.m4: New file. From gettext.
46981 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
46982 * m4/progtest.m4: Likewise
46983 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
46984 * m4/glibc21.m4: Likewise.
46986 * m4/libintl.m4: Remove. No longer used.
46988 2001-09-22 Jim Meyering <meyering@lucent.com>
46990 * lib/localcharset.c: Update from latest gettext.
46991 * lib/config.charset: Likewise.
46993 2001-09-20 Jim Meyering <meyering@lucent.com>
46995 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
46997 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
47000 2001-09-20 Jim Meyering <meyering@lucent.com>
47002 * lib/xstrtol.c (strtoimax): Guard declaration with
47003 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
47004 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
47005 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
47006 (strtoumax): Likewise, for completeness (it wasn't necessary).
47008 2001-09-17 Paul Eggert <eggert@twinsun.com>
47010 * lib/strtoimax.c (HAVE_LONG_LONG):
47011 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
47012 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
47013 to work around bug in IBM C compiler.
47015 2001-09-17 Jim Meyering <meyering@lucent.com>
47017 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
47018 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
47019 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
47020 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
47021 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
47022 whenever the right hand side need not be expanded by the shell.
47024 2001-09-16 Paul Eggert <eggert@twinsun.com>
47026 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
47027 library. It's not correct, as some older glibcs are buggy.
47028 fnmatch wasn't fixed until glibc 2.2.
47030 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
47031 special shell magic here.
47033 2001-09-16 Jim Meyering <meyering@lucent.com>
47035 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
47036 * m4/jm-macros.m4: Require it.
47038 2001-09-16 Jim Meyering <meyering@lucent.com>
47040 * lib/mkdir.c: New file.
47042 2001-09-15 Jim Meyering <meyering@lucent.com>
47044 * m4/jm-macros.m4: Check for help2man.
47046 2001-09-11 Jim Meyering <meyering@lucent.com>
47048 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
47049 The body, by Paul Eggert, was moved here from configure.in.
47050 * m4/jm-macros.m4: Require UTILS_HOST_OS.
47052 2001-09-04 Paul Eggert <eggert@twinsun.com>
47054 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
47055 (jm_PREREQ): Use it.
47057 2001-09-04 Paul Eggert <eggert@twinsun.com>
47059 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
47060 Use ssize_t, not int, to store result of readlink.
47061 Check for ssize_t overflow as well as size_t overflow,
47062 as POSIX says the result of readlink is implementation-defined
47063 when ssize_t overflows.
47064 Remove unnecessary cast to char*.
47065 Use free+malloc instead of realloc, as the storage doesn't need
47066 to be preserved and it's clearer and can be more efficient that way.
47067 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
47068 * lib/xreadlink.h (xreadlink): Update prototype.
47070 2001-09-04 Paul Eggert <eggert@twinsun.com>
47072 * lib/xgetcwd.c: Revert some of the previous change; intead,
47073 fix the HAVE_GETCWD_NULL code to behave more like the
47074 !HAVE_GETCWD_NULL code used to.
47076 Include "xalloc.h".
47077 (xgetcwd): Do not return NULL when memory is exhausted; instead,
47080 2001-09-03 Paul Eggert <eggert@twinsun.com>
47082 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
47083 sys/param.h, as pathmax.h includes them.
47085 2001-09-03 Paul Eggert <eggert@twinsun.com>
47087 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
47088 (jm_PREREQ_XGETCWD): New macro.
47090 * m4/getcwd.m4: New file.
47092 2001-09-03 Paul Eggert <eggert@twinsun.com>
47094 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
47095 like the HAVE_GETCWD_NULL code.
47096 Include pathmax.h if not HAVE_GETCWD.
47097 Do not include xalloc.h.
47098 (INITIAL_BUFFER_SIZE): New symbol.
47099 Do not use xmalloc / xrealloc, since the caller is responsible for
47100 handling errors. Preserve errno around `free' during failure.
47101 Do not overrun buffer when using getwd.
47103 2001-09-03 Paul Eggert <eggert@twinsun.com>
47105 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
47106 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
47109 2001-09-03 Paul Eggert <eggert@twinsun.com>
47111 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
47112 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
47113 spotted by Jim Meyering.
47115 2001-09-03 Jim Meyering <meyering@lucent.com>
47117 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
47120 2001-09-02 Jim Meyering <meyering@lucent.com>
47122 * lib/error.c: Update from GNU libc.
47124 2001-09-01 Jim Meyering <meyering@lucent.com>
47126 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
47129 2001-09-01 Jim Meyering <meyering@lucent.com>
47131 * lib/xreadlink.c: New file.
47132 * lib/xreadlink.h: New file.
47133 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
47136 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
47137 doesn't conflict with sparc Solaris 7's definition in
47138 /usr/include/sys/int_types.h.
47140 * lib/exclude.c: Use `""', not `<>' to #include non-system header
47142 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
47143 and strncasecmp as r-values. Unixware didn't have declarations.
47145 2001-08-31 Paul Eggert <eggert@twinsun.com>
47147 * lib/xstrtol.h: Add copyright notice.
47148 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
47149 LONGINT_INVALID_SUFFIX_CHAR.
47151 2001-08-31 Paul Eggert <eggert@twinsun.com>
47153 * lib/xstrtol.c (strtoimax): New decl.
47155 2001-08-31 Paul Eggert <eggert@twinsun.com>
47157 * lib/xgetcwd.c: Don't include pathmax.h.
47158 Include stdlib.h and unistd.h if available.
47160 (xmalloc, xstrdup, free): Remove decls.
47161 (xgetcwd): Don't assume sizes fit in unsigned.
47162 Check for overflow when computing sizes.
47163 Simplify reallocation code.
47165 2001-08-31 Paul Eggert <eggert@twinsun.com>
47167 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
47168 a directory's st_size can have an arbitrary value, so the old
47169 usage could waste an arbitrary amount of memory. All uses
47171 * lib/savedir.h: Update prototype.
47173 2001-08-31 Paul Eggert <eggert@twinsun.com>
47175 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
47177 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
47180 Also, make the following further changes to make this file's
47181 configuration more similar to that of strtol.c:
47182 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
47183 (strtoumax, uintmax_t, strtoull, strtol): Remove.
47184 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
47185 (strtoimax): Renamed from strtoumax. All uses of unsigned values
47186 changed to signed values.
47188 And make the following changes as well:
47189 Fix copyright notice, as 1999 was missing.
47190 (verify): New macro.
47191 (strtoimax): Check sizes at compile-time, not run-time.
47192 Prefer strtol to strtoll if both work.
47193 (main): Remove; it was not that useful and was a pain to maintain.
47195 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
47197 2001-08-31 Jim Meyering <meyering@lucent.com>
47199 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
47200 Use an initial, malloc'd, buffer of length 128 rather than
47201 a statically allocated one of length 1024.
47203 2001-08-30 Paul Eggert <eggert@twinsun.com>
47205 Simplify code, partly by assuming autoconf 2.52 semantics.
47207 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
47209 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
47210 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
47212 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
47213 Move AC_REQUIRE to next-to-top level, to avoid confusion.
47214 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
47215 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
47216 jm_AC_HEADER_INTTYPES_H.
47217 * m4/jm-macros.m4 (jm_MACROS): Likewise.
47219 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
47221 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
47222 Quote first arg of AC_DEFUN.
47223 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
47224 since they are needed to parse the include file even if we need
47225 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
47226 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
47227 but with opposite signedness.
47229 2001-08-30 Paul Eggert <eggert@twinsun.com>
47231 Merge 'exclude' changes from tar 1.13.22.
47232 This fixes one or two unlikely storage allocation overflow bugs,
47233 but doesn't change user-visible behavior otherwise.
47235 2001-08-30 Paul Eggert <eggert@twinsun.com>
47237 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
47238 (jm_PREREQ_EXCLUDE): New macro.
47240 2001-08-30 Paul Eggert <eggert@twinsun.com>
47242 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
47245 2001-08-30 Paul Eggert <eggert@twinsun.com>
47247 * lib/hash.c: Remove '2001' from copyright notice.
47249 2001-08-30 Paul Eggert <eggert@twinsun.com>
47251 * lib/full-write.h: New file.
47252 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
47253 * lib/full-write.c: Correct credits, as cccp.c no longer
47254 exists and anyway it was so heavily changed from the old cccp
47255 code as to be unrecognizable. Include full-write.h.
47256 (full_write) Return size_t, with short writes meaning failure.
47257 All callers changed. This fixes a bug with large buffers
47259 * lib/utime.c: Include full-write.h.
47261 2001-08-30 Paul Eggert <eggert@twinsun.com>
47263 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
47264 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
47265 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
47266 Include if available.
47267 (<xalloc.h>): Include
47268 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
47269 (verify): New macro. Use it to verify that EXCLUDE macros do not
47270 collide with FNM macros.
47271 (struct patopts): New struct.
47272 (struct exclude): Use it, as exclude patterns now come with options.
47273 (new_exclude): Support above changes.
47274 (new_exclude, add_exclude_file):
47275 Initial size must now be a power of two to simplify overflow checking.
47276 (free_exclude, fnmatch_no_wildcards): New function.
47277 (excluded_filename): No longer requires options arg, as the options
47278 are determined by add_exclude. Now returns bool, not int.
47279 (excluded_filename, add_exclude):
47280 Add support for the fancy new exclusion options.
47281 (add_exclude, add_exclude_file): Now takes int options arg.
47282 Check for arithmetic overflow when computing sizes.
47283 (add_exclude_file): xrealloc might modify errno, so don't
47284 realloc until after errno might be used.
47286 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
47288 (free_exclude): New decl.
47289 (add_exclude, add_exclude_file): Now takes int options arg.
47290 (excluded_filename): No longer requires options arg, as the options
47291 are determined by add_exclude. Now returns bool, not int.
47293 2001-08-30 Paul Eggert <eggert@twinsun.com>
47295 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
47297 2001-08-27 Jim Meyering <meyering@lucent.com>
47299 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
47301 * lib/version-etc.c (N_): Remove definition.
47302 Revert most of last change.
47303 Instead, simply don't mark the `Copyright...' string for translation.
47304 Based on advice from Paul Eggert.
47306 * lib/strtoxmax.c: Tweak comment.
47308 2001-08-26 Jim Meyering <meyering@lucent.com>
47310 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
47312 * m4/xstrtoimax.m4: New file.
47313 * m4/xstrtoumax.m4: Add comments explaining why we
47314 AC_REPLACE_FUNCS(strtol).
47316 2001-08-26 Jim Meyering <meyering@lucent.com>
47318 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
47319 of copyright with `%s' so translators don't get an untranslated
47321 (COPYRIGHT_YEAR): Define.
47322 (version_etc): Use fprintf rather than fputs.
47323 Suggestion from Ulrich Drepper.
47325 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
47327 * lib/strtoll.c: New file, from GNU libc.
47328 * lib/xstrtoimax.c: New file.
47330 * lib/xstrtol.h: Add xstrtoimax.
47331 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
47332 * lib/strtoimax.c: New file. Likewise, but first define
47335 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
47337 * lib/strtoxmax.c: ... then renamed to this.
47339 2001-08-18 Paul Eggert <eggert@twinsun.com>
47341 * m4/inttypes.m4: Add AC_PREREQ(2.13).
47342 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
47343 (jm_AC_TYPE_INTMAX_T): New macro.
47344 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
47346 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
47348 * m4/longlong.m4: Renamed from ulonglong.m4.
47349 * m4/inttypes.m4: Renamed from inttypes_h.m4.
47350 * m4/uintmax_t.m4: Removed.
47352 2001-08-13 Paul Eggert <eggert@twinsun.com>
47354 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
47355 Port to Solaris 8, where 'sed' requires a space after the 'r'
47356 command, and where sh dislikes "$/". Clean up the spacing a bit.
47357 Redirect output to $tmp just once.
47359 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
47361 * lib/addext.c (<errno.h>): Include.
47362 (errno): Declare if not defined.
47363 (addext): Work correctly when pathconf returns -1 and leaves
47364 errno alone because there is no limit. Also, work even if
47365 pathconf returns a value greater than SIZE_MAX.
47367 2001-08-12 Jim Meyering <meyering@lucent.com>
47369 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
47370 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
47371 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
47372 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
47373 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
47374 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
47375 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
47376 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
47377 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
47378 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
47379 utime.m4, utimes.m4, xstrtoumax.m4:
47380 Quote the first argument in each use of AC_DEFUN.
47382 2001-08-12 Jim Meyering <meyering@lucent.com>
47384 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
47385 Simply `return getcwd (NULL, 0);'.
47386 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
47387 Use 1300 as initial value for length, not PATH_MAX.
47389 * lib/pathmax.h: Clean up cpp syntax.
47391 2001-08-12 Jim Meyering <meyering@lucent.com>
47393 * lib/gettimeofday.c: New file.
47394 * lib/gtod.h: New file.
47395 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
47397 2001-08-05 Jim Meyering <meyering@lucent.com>
47399 * m4/jm-macros.m4: Require autoconf-2.52.
47401 2001-08-04 Jim Meyering <meyering@lucent.com>
47403 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
47404 stmt, to get in sync with glibc.
47406 2001-08-03 Paul Eggert <eggert@twinsun.com>
47408 The following changes are from gettext 0.10.39 as maintained by
47411 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
47412 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
47413 with inverted sense. All uses changed.
47415 * lib/mbswidth.c: Don't include <limits.h>.
47416 Include <stdlib.h> and <string.h> unconditionally.
47417 (iswcntrl, mbsinit, ISCNTRL): New macros.
47418 (mbsnwidth): Use K&R style function declarations.
47419 Don't bother checking for MB_LEN_MAX == 1, since the compiler
47420 can optimize it when MB_CUR_MAX == 1.
47421 The width of control characters is zero, not 1.
47423 2001-08-03 Paul Eggert <eggert@twinsun.com>
47425 The following changes are from gettext 0.10.39 as maintained by
47426 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
47428 * m4/codeset.m4: Upgrade to serial AM1.
47429 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
47430 all uses changed. Quote first arg of AC_DEFUN.
47431 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
47433 * m4/iconv.m4: Upgrade to serial AM2.
47434 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
47435 Add --with-libconv-prefix.
47436 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
47437 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
47438 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
47439 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
47440 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
47442 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
47443 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
47444 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
47445 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
47446 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
47447 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
47448 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47449 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
47450 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
47452 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
47455 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
47456 not the default value.
47458 2001-06-25 Bruno Haible <haible@clisp.cons.org>
47459 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
47460 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
47461 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
47462 Also check for iswcntrl, used for wcwidth fallback.
47463 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
47466 2001-08-03 Jim Meyering <meyering@lucent.com>
47468 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
47469 as it was in the original. Reported by Paul Eggert.
47471 2001-07-16 Jim Meyering <meyering@lucent.com>
47473 * m4/gettimeofday.m4: New file.
47474 Prompted by a report from Bernhard Baehr.
47476 2001-07-15 Jim Meyering <meyering@lucent.com>
47478 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
47479 stuff. Now it's in ../Makefile.cfg.
47481 2001-07-15 Jim Meyering <meyering@lucent.com>
47483 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
47484 (BUILT_SOURCES): Add unlocked-io.h.
47485 (io_functions): Define.
47486 (unlocked-io.h): New rule.
47487 (DISTCLEANFILES): Add unlocked-io.h.
47488 (all-local): Depend on unlocked-io.h, to ensure it is created.
47490 * lib/unlocked-io.hin: New file
47492 * lib/regex.c: Update from glibc.
47494 2001-07-05 Jim Meyering <meyering@lucent.com>
47496 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
47498 (libfetish_a_SOURCES): Put all .h files here instead.
47499 Remove a thus-exposed (better checks in automake) duplicate and
47500 two unnecessary .h files.
47502 2001-07-04 Jim Meyering <meyering@lucent.com>
47504 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
47505 that generates jm-glibc-io.m4 so that it doesn't trigger any make
47508 2001-07-02 Jim Meyering <meyering@lucent.com>
47510 The following changes were prompted by suggestions from Bruno Haible.
47512 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
47514 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
47515 definition of EXTRA_DIST.
47516 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
47517 ensure that the generated file is created/updated whenever the list
47518 of $(unlocked_functions) is changed.
47519 (jm-glibc-io.m4): New rule.
47520 (unlocked-io.h): New rule -- currently unused.
47522 2001-06-24 Jim Meyering <meyering@lucent.com>
47524 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
47525 unmatched right bracket, rather than kludging it with an extra,
47526 falsely-matching quote in a comment. Patch by Akim Demaille.
47528 2001-06-11 Jim Meyering <meyering@lucent.com>
47530 * lib/regex.c: Update from GNU libc.
47532 2001-05-27 Jim Meyering <meyering@lucent.com>
47534 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
47535 Check for ut_type in struct utmp.
47537 2001-05-27 Jim Meyering <meyering@lucent.com>
47539 * lib/readutmp.h (UT_TYPE): Define.
47541 2001-05-24 Jim Meyering <meyering@lucent.com>
47543 * lib/argmatch.c: Include "quote.h".
47544 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
47545 quote function. Reported by Göran Uddeborg.
47547 2001-05-22 Jim Meyering <meyering@lucent.com>
47549 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
47550 now that we use the package-supplied version unconditionally.
47551 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
47553 2001-05-21 Jim Meyering <meyering@lucent.com>
47555 * m4/regex.m4: Change a couple backticks to single quotes to avoid
47556 shell syntax errors.
47558 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
47560 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
47562 2001-05-20 Paul Eggert <eggert@twinsun.com>
47564 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
47565 Don't bother to check library strftime, since
47566 we'll be using our own my_strftime function anyway.
47567 Define my_strftime instead of strftime.
47569 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
47571 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
47572 which is not yet declared.
47574 2001-05-15 Jim Meyering <meyering@lucent.com>
47576 * m4/regex.m4: Use proper quoting so brackets appear in the test
47578 Reported by, and with help from, Bruno Haible.
47580 2001-05-13 Jim Meyering <meyering@lucent.com>
47582 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
47585 2001-05-11 Paul Eggert <eggert@twinsun.com>
47587 dirname code cleanup. base_name now behaves more compatibly
47588 with POSIX basename when given file names that have trailing
47589 slashes, and similarly for dir_name. Add new primitives
47590 base_len and dir_len. Put the directory-name-related decls
47593 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
47594 * lib/backupfile.c (base_name): Likewise.
47595 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
47596 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
47597 * lib/makepath.c (strip_trailing_slashes): Likewise.
47598 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
47599 ISSLASH): Likewise.
47600 * lib/rename.c (strip_trailing_slashes): Likewise.
47601 * lib/same.c (base_name): Likewise.
47602 * lib/stripslash.c (ISSLASH): Likewise.
47604 * lib/addext.c: Include <dirname.h> after size_t is defined.
47605 * lib/backupfile.c: Likewise.
47607 * lib/addext.c (addext): Use base_len to trim redundant
47608 trailing slashes instead of doing it ourselves.
47609 But do not trim the last slash if it is not redundant.
47611 * lib/backupfile.c (find_backup_file_name,
47612 max_backup_version): Use base_len instead of rolling it ourselves.
47613 Handle the case of "" and (on DOS) "C:" correctly.
47615 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
47616 needed. Include <string.h>, <dirname.h>.
47617 (base_name): Allow file names ending in slashes, other than names
47618 that are all slashes. In this case, return the basename followed
47619 by the slashes. This is more general, and can be used in places
47620 where the original base_name purposely had an assertion failure.
47621 (base_len): New function.
47623 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
47624 Do not include <assert.h>; no longer needed.
47626 (memrchr): Remove decl.
47627 (dir_name_r): Remove.
47628 (dir_len): Renamed from dirlen. All callers changed.
47629 Rewrite in terms of base_name, for simplicity and consistency.
47630 (dir_name): Never return NULL. All callers changed.
47631 Do not include <stdlib.h> in test program; no longer needed.
47632 return 0; is fine for test program.
47634 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
47636 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
47638 * lib/path-concat.c (path_concat): Use base_len to compute
47639 base length, not strlen; this means we cannot rely on memcpy
47642 * lib/same.c (STREQ): Remove.
47643 (same_name): Handle the case where the basename ends in trailing '/'.
47645 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
47646 a slash was stripped. Do not strip the last slash after a
47647 file system prefix.
47649 2001-05-11 Paul Eggert <eggert@twinsun.com>
47651 * lib/Makefile.am (libfetish_a_SOURCES):
47652 Add strftime.c, since we now compile it on all hosts.
47654 * lib/strftime.c (my_strftime):
47655 Define to nstrftime if emacs, but only if my_strftime is not defined.
47656 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
47657 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
47658 Add one more extra argument: a nanoseconds value.
47661 (my_strftime function): Add %N format.
47662 (emacs_strftimeu): Renamed from emacs_strftime,
47663 with extra ut argument.
47665 2001-05-09 Paul Eggert <eggert@twinsun.com>
47667 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
47669 2001-04-21 Jim Meyering <meyering@lucent.com>
47671 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
47674 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
47676 * m4/ftruncate.m4: Check for chsize.
47677 Link with ftruncate.o unconditionally if ftruncate is missing.
47678 This was required when cross-compiling to i586-mingw32msvc.
47680 2001-04-08 Jim Meyering <meyering@lucent.com>
47682 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
47683 recomputed; that's necessary when the offset spans a DST transition.
47684 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
47686 2001-04-02 Jim Meyering <meyering@lucent.com>
47688 * lib/regex.h, regex.c: Update from GNU libc.
47690 2001-03-24 Jim Meyering <meyering@lucent.com>
47692 * m4/jm-macros.m4: Require autoconf-2.49d.
47694 2001-03-20 Bruno Haible <haible@clisp.cons.org>
47696 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
47698 2001-03-19 Paul Eggert <eggert@twinsun.com>
47700 * lib/version-etc.c (version_etc_copyright): Update to 2001.
47702 2001-03-17 Jim Meyering <meyering@lucent.com>
47704 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
47705 now that the version in autoconf is equivalent.
47706 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
47708 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
47709 Suggestion from Akim Demaille.
47711 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
47712 (jm_PREREQ_TEMPNAME): New function.
47714 2001-03-16 Paul Eggert <eggert@twinsun.com>
47716 * lib/tempname.c (uint64_t): Define to uintmax_t if
47717 not defined, and if UINT64_MAX is not defined.
47718 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
47719 Reported by John David Anglin.
47721 2001-03-15 Bruno Haible <haible@clisp.cons.org>
47723 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
47724 resolve alias if codeset is empty.
47725 * lib/config.charset (BeOS): Use wildcard syntax.
47727 2001-03-13 Jim Meyering <meyering@lucent.com>
47729 * lib/path-concat.c (path_concat)
47730 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
47731 concatenating e.g., `C:' and `foo'.
47734 2001-03-06 Bruno Haible <haible@clisp.cons.org>
47736 * lib/localcharset.c (locale_charset): Don't use
47737 setlocale(LC_CTYPE,NULL). Don't return NULL.
47738 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
47740 2001-03-06 Bruno Haible <haible@clisp.cons.org>
47742 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
47743 support for DOS/DJGPP.
47745 2001-03-01 Paul Eggert <eggert@twinsun.com>
47747 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
47748 lacks mkstemp. Compile our own tempname.c if we compile our own
47749 mkstemp.c, as mkstemp relies on tempname.
47751 2001-03-01 Jim Meyering <meyering@lucent.com>
47753 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
47754 AH_VERBATIM really does output its argument verbatim.
47756 2001-02-28 Paul Eggert <eggert@twinsun.com>
47758 * lib/Makefile.am (libfetish_a_SOURCES):
47759 Add dup-safer.c, fopen-safer.c.
47760 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
47762 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
47763 * lib/unistd-safer.h: New files.
47765 2001-02-25 Paul Eggert <eggert@twinsun.com>
47767 The mkstemp replacement is taken from glibc 2.2.2, with some
47768 portability fixes for use outside glibc, as follows:
47770 * lib/tempname.c (struct_stat64): New macro.
47771 (direxists, __gen_tempname): Use it.
47772 This avoids a portability problem with Solaris 8.
47774 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
47775 (<stddef.h>, <stdint.h>, <string.h>):
47776 Include only if STDC_HEADERS || _LIBC.
47777 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
47778 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
47779 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
47780 (__set_errno): Define this macro if <errno.h> doesn't.
47781 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
47782 Define these macros if <stdio.h> doesn't.
47783 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
47784 Define these macros if <sys/stat.h>
47785 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
47786 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
47787 __xstat64): Define if not _LIBC.
47788 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
47789 (__gen_tempname): Invoke gettimeofday only if
47790 HAVE_GETTIMEOFDAY || _LIBC;
47791 otherwise, fall back on plain "time".
47792 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
47794 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
47796 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
47798 2001-02-18 Paul Eggert <eggert@twinsun.com>
47800 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
47802 2001-02-17 Paul Eggert <eggert@twinsun.com>
47804 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
47805 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
47806 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
47807 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
47809 2001-02-17 Paul Eggert <eggert@twinsun.com>
47811 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
47812 Remove workaround macros for hosts that have mbrtowc but not
47813 mbstate_t, as we now insist on proper declarations for both
47814 before using mbrtowc.
47816 2001-02-17 Jim Meyering <meyering@lucent.com>
47818 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
47819 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
47820 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
47823 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
47824 rather than AC_CACHE_VAL.
47826 2001-02-17 Jim Meyering <meyering@lucent.com>
47828 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
47829 around included file name.
47831 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
47833 * lib/strftime.c: Update from GNU libc (the only changes were to
47836 2001-02-17 Jim Meyering <meyering@lucent.com>
47838 * lib/regex.c: Update from libc.
47840 2001-02-17 Bruno Haible <haible@clisp.cons.org>
47842 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
47845 2001-02-16 Paul Eggert <eggert@twinsun.com>
47847 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
47848 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
47849 Reported by Mark Hounschell via Paul Eggert.
47851 2001-02-07 Jim Meyering <meyering@lucent.com>
47853 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
47855 2001-02-05 Jim Meyering <meyering@lucent.com>
47857 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
47858 it includes the patch required for `large file' support with at least
47859 HP-UX's 10.20 /bin/cc.
47861 2001-02-03 Jim Meyering <meyering@lucent.com>
47863 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
47864 AS_IF, now that it works once again (mysteriously).
47865 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
47867 2001-01-30 Jim Meyering <meyering@lucent.com>
47869 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
47870 * m4/chown.m4: Rename conftestchown to conftest.chown.
47871 * m4/rename.m4: s/conftestdir/conftest.d1/ and
47872 s/conftestdir2/conftest.d2/.
47873 * m4/utimes.m4: s/conftestdata/conftest.data/
47874 Inspired by Pavel Roskin's change in autoconf.
47876 2001-01-30 Bruno Haible <haible@clisp.cons.org>
47878 * lib/config.charset: Update for FreeBSD 4.2.
47880 2001-01-27 Jim Meyering <meyering@lucent.com>
47882 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
47884 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
47886 2001-01-26 Jim Meyering <meyering@lucent.com>
47888 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
47889 quotearg.c includes it.
47891 2001-01-26 Jim Meyering <meyering@lucent.com>
47893 * lib/quotearg.c: Include stddef.h.
47894 * lib/quote.c: Include stddef.h.
47895 Reported by Axel Kittenberger.
47897 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
47898 line in double quotes so that it evokes a better diagnostic.
47899 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
47900 Reported by Axel Kittenberger.
47902 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
47904 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
47905 as if it was a `charset'.
47907 2001-01-21 Bruno Haible <haible@clisp.cons.org>
47909 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
47912 2001-01-21 Bruno Haible <haible@clisp.cons.org>
47914 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
47915 to avoid a warning. Add back 'const' to inptr.
47917 2001-01-20 Jim Meyering <meyering@lucent.com>
47919 Be sure that headers are checked before used in code compiled
47920 for the type checks.
47921 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
47922 In place of that, invoke jm_CHECK_ALL_TYPES.
47923 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
47924 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
47925 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
47926 The check for ssize_t was mistakenly run before the test for unistd.h.
47928 The configure-time check for stdbool.h was missing.
47929 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
47930 (jm_PREREQ_HASH): New function.
47932 2001-01-17 Jim Meyering <meyering@lucent.com>
47934 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
47935 for autoconf-2.49c.
47936 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
47938 2001-01-16 Jim Meyering <meyering@lucent.com>
47940 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
47943 2001-01-14 Jim Meyering <meyering@lucent.com>
47945 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
47946 foo and bar. Create conftestdir/ in the script, not in the C code.
47947 Remove directories in the script, not in the C code.
47948 Remove conftestdir{,2} before trying to create the directory.
47949 Make the entire configure script fail if the mkdir fails.
47951 2001-01-14 Jim Meyering <meyering@lucent.com>
47953 * lib/rename.c: New file. From Volker Borchert.
47954 Include stdlib.h, string.h or strings.h, and xalloc.h.
47955 Use strip_trailing_slashes rather than open-coding it.
47957 2001-01-03 Paul Eggert <eggert@twinsun.com>
47959 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
47961 2001-01-03 Jim Meyering <meyering@lucent.com>
47963 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
47964 of local `inptr' to avoid warning with some system declarations of
47967 2001-01-02 Volker Borchert <bt@teknon.de>
47969 * m4/rename.m4: New file.
47970 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
47972 2001-01-01 Jim Meyering <meyering@lucent.com>
47974 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
47975 even on systems with utmpx.h. It's necessary for the declaration of
47976 utmp's ut_user member. Reported by Andreas Jaeger.
47978 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
47979 available. They are required for the declarations of getgrgid and
47981 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
47982 Reported by Andreas Jaeger.
47984 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
47986 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
47987 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
47988 so `make install' also works in VPATH builds.
47990 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
47992 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
47993 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
47994 can be used in subdirectories.
47996 2000-12-29 Paul Eggert <eggert@twinsun.com>
47998 * lib/modechange.c: Do not assume that mode_t uses the
47999 traditional octal encoding. E.g. "chmod 1 FOO" should set
48000 the other-execute bit of FOO even if S_IXOTH != 1.
48002 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
48003 WOTH, XOTH, ALLM): New macros.
48004 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
48005 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
48007 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
48008 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
48010 No need to use uintmax_t; unsigned long is long enough.
48011 Don't bother to get suffix since we don't use it.
48013 2000-12-26 Jim Meyering <meyering@lucent.com>
48015 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
48016 better with autoheader.
48018 2000-12-24 Jim Meyering <meyering@lucent.com>
48020 * lib/hash.c (is_prime): Return explicit boolean values.
48021 (hash_get_first): Return NULL to appease Irix5.6's 89.
48022 Reported by Nelson Beebe.
48024 2000-12-19 Bruno Haible <haible@clisp.cons.org>
48026 * lib/localcharset.c (locale_charset): Add support for Win32.
48028 2000-12-18 Paul Eggert <eggert@twinsun.com>
48030 * lib/physmem.h, lib/physmem.c: New files.
48032 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
48033 (noinst_HEADERS): Add physmem.h.
48035 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
48036 't' for compatibility with Solaris 8 sort.
48038 2000-12-18 Bruno Haible <haible@clisp.cons.org>
48040 * lib/config.charset: Add support for BeOS.
48042 2000-12-17 Jim Meyering <meyering@lucent.com>
48044 * m4/dos.m4 (jm_AC_DOS): New file and macro.
48045 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
48047 2000-12-16 Jim Meyering <meyering@lucent.com>
48049 This bug had a serious impact on chown: `chown N:M FILE' (for integer
48050 N and M) would have treated it like `chown N:N FILE'.
48052 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
48054 2000-12-16 Jim Meyering <meyering@lucent.com>
48056 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
48057 SHELLS_FILE to a file name that's useful on djgpp systems.
48059 (ADDITIONAL_DEFAULT_SHELLS): Define.
48060 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
48061 Based mostly on a patch from Prashant TR.
48063 2000-12-16 Bruno Haible <haible@clisp.cons.org>
48065 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
48066 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
48067 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
48069 2000-12-08 Andreas Schwab <schwab@suse.de>
48071 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
48072 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
48074 2000-12-07 Jim Meyering <meyering@lucent.com>
48076 * lib/stripslash.c (ISSLASH): Define.
48077 (strip_trailing_slashes): Use ISSLASH rather than comparing against
48081 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
48082 (dir_name_r): Declare this function as static.
48083 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
48084 manifest itself on a name containing a mix of slashes and
48086 Make this function work with names starting with a DOS-style
48087 drive letter and colon prefix.
48088 (dir_name): Append `.' if necessary.
48089 Based mostly on patches from Prashant TR and Eli Zaretskii.
48091 * lib/dirname.h (dir_name_r): Remove prototype.
48093 2000-12-06 Paul Eggert <eggert@twinsun.com>
48095 * m4/off_t-format.m4: Remove this file.
48096 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
48098 2000-12-06 Jim Meyering <meyering@lucent.com>
48100 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
48101 replacement strtoull, we may well need the replacement strtoul, too.
48102 Check for declarations of strtoul and strtoull.
48103 Check for strtol. Mainly as a cue to cause automake to include
48104 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
48105 Check for limits.h -- strtol.c needs it.
48107 2000-12-05 Jim Meyering <meyering@lucent.com>
48109 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
48111 2000-12-04 Jim Meyering <meyering@lucent.com>
48113 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
48114 Also include memory.h, stdlib.h, unistd.h if appropriate.
48115 Reported by Andreas Jaeger (conflicting declaration of malloc).
48117 2000-12-02 Jim Meyering <meyering@lucent.com>
48119 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
48120 * m4/jm-macros.m4 (jm_MACROS): require it.
48122 2000-12-02 Jim Meyering <meyering@lucent.com>
48124 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
48126 2000-12-01 Paul Eggert <eggert@twinsun.com>
48128 * lib/memrchr.c: Include <config.h> before any system include file.
48130 2000-11-30 Jim Meyering <meyering@lucent.com>
48132 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
48134 2000-11-30 Jim Meyering <meyering@lucent.com>
48136 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
48138 2000-11-29 Paul Eggert <eggert@twinsun.com>
48140 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
48142 2000-11-26 Jim Meyering <meyering@lucent.com>
48144 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
48146 2000-11-22 Paul Eggert <eggert@twinsun.com>
48148 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
48149 size of (size_t) -1; it's not portable.
48151 2000-11-17 Jim Meyering <meyering@lucent.com>
48153 * lib/strstr.c: Update from GNU libc.
48155 2000-11-17 Akim Demaille <akim@epita.fr>
48157 * lib/obstack.h: Formatting changes.
48158 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
48159 prevent type checking.
48160 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
48161 cast the value to (void *): assigning a `foo *' to a `void *'
48163 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
48165 2000-11-16 Jim Meyering <meyering@lucent.com>
48167 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
48169 2000-11-11 Jim Meyering <meyering@lucent.com>
48171 * lib/error.c: Add a couple #includes, merging from GNU libc version.
48173 2000-11-10 Jim Meyering <meyering@lucent.com>
48175 * lib/obstack.h: Update from GNU libc.
48176 * lib/obstack.c: Likewise.
48178 2000-11-08 Bruno Haible <haible@clisp.cons.org>
48180 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
48182 2000-11-06 Paul Eggert <eggert@twinsun.com>
48184 * lib/getusershell.c (setusershell): Use rewind rather than
48185 fseek/fseeko, to avoid configuration hassles with fseeko.
48186 Don't bother opening SHELLS_FILE if shellstream is NULL;
48187 it's not necessary.
48189 2000-11-05 Jim Meyering <meyering@lucent.com>
48191 * lib/makepath.h (make_dir): Declare.
48192 * lib/makepath.c (make_dir): Remove `static' attribute.
48195 2000-11-04 Jim Meyering <meyering@lucent.com>
48197 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
48199 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
48201 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
48202 last one in a bucket, advance to the next bucket.
48204 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
48206 * lib/fnmatch.c: Do not comment out all the code if we are using
48207 the GNU C library, because in some cases we are replacing buggy
48208 code in the GNU C library itself.
48210 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
48212 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
48213 (regex_compile): Catch bogus \(\1\).
48215 2000-10-30 Paul Eggert <eggert@twinsun.com>
48217 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
48218 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
48219 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
48221 2000-10-30 Paul Eggert <eggert@twinsun.com>
48223 * lib/error.h, getline.h, modechange.h:
48224 Remove "2000" from Copyright line, as the file hasn't been
48225 changed this year other than in the copyright notice.
48227 * lib/xalloc.h: Add "2000" to Copyright line, as this file
48228 was changed this year.
48230 2000-10-29 Jim Meyering <meyering@lucent.com>
48232 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
48234 * m4/ls-mntd-fs.m4: Likewise
48236 2000-10-29 Jim Meyering <meyering@lucent.com>
48238 * lib/xstat.in: Fix grammar in comment.
48240 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
48242 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
48243 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
48244 doesn't define __restrict_arr.
48246 2000-10-28 Jim Meyering <meyering@lucent.com>
48248 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
48249 (jm_PREREQ_MEMCHR): New function.
48251 2000-10-28 Jim Meyering <meyering@lucent.com>
48253 * lib/memchr.c: Update from libc.
48254 Adjust for portability:
48255 [HAVE_STDLIB_H]: Include stdlib.h.
48256 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
48257 Undef __memchr, too.
48258 [!weak_alias]: Define __memchr to memchr.
48260 * lib/regex.c: Update from libc.
48261 * lib/regex.h: Likewise.
48262 * lib/getopt1.c: Likewise.
48263 * lib/memcmp.c: Likewise.
48265 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
48266 Avoid using fseek, when possible -- it's broken by design.
48267 Patch by Ulrich Drepper.
48269 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
48271 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
48272 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
48273 Giving in to popular pressure to shut up the compiler with casts.
48275 2000-10-26 Jim Meyering <meyering@lucent.com>
48277 * lib/strftime.c: Update from libc.
48279 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
48281 * regex.c: More `unsigned char' -> `re_char' changes.
48282 Also change several `int' into `re_wchar_t'.
48283 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
48284 (PUSH_FAILURE_POINTER): Don't cast any more.
48285 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
48286 We want GCC to complain, since this piece of code makes
48287 re_match non-reentrant, which *should* be fixed.
48288 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
48289 (EXTEND_BUFFER): Use RETALLOC.
48290 (SET_LIST_BIT): Don't cast.
48291 (re_wchar_t): New type.
48292 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
48293 that those two functions will always properly return.
48294 (IMMEDIATE_QUIT_CHECK): Cast to void.
48295 (analyse_first): Use recursion rather than an explicit stack.
48296 (re_compile_fastmap): Can't fail anymore.
48297 (re_search_2): Don't check re_compile_fastmap for failure.
48298 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
48299 Now also sets the new value (passed in a new argument).
48300 (re_match_2_internal): Use it.
48301 Also, use a new var `reg' of type size_t when looping through regs
48302 rather than reuse the inappropriate `mcnt'.
48304 2000-10-25 Jim Meyering <meyering@lucent.com>
48306 * lib/obstack.c: Update from libc.
48308 2000-10-24 Kenichi Handa <handa@etl.go.jp>
48310 * regex.c (regex_compile): Change the way of handling a range from
48311 a char less than 256 to a char not less than 256.
48313 2000-10-24 Andrew Innes <andrewi@gnu.org>
48315 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
48317 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
48318 so that re_search functions only quit when callers expect them to.
48320 2000-10-23 Jim Meyering <meyering@lucent.com>
48322 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
48323 wrong. That set_locale call must not have any side effects.
48326 2000-10-22 Jim Meyering <meyering@lucent.com>
48328 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
48329 [CYCLIC]: Remove now-unused definition.
48331 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
48332 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
48333 Suggestion from Ulrich Drepper.
48335 2000-10-21 Jim Meyering <meyering@lucent.com>
48337 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
48338 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
48339 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
48341 2000-10-21 Jim Meyering <meyering@lucent.com>
48343 * lib/dirname.c (memrchr): Declare if necessary.
48344 (dir_name): Remove the restriction that there be no
48345 trailing slashes. Now, this code skips past them, effectively
48347 [TEST_DIRNAME] (main): New unit tests.
48349 * lib/memrchr.c: New file from GNU libc.
48350 Undef __memrchr, too.
48351 [!weak_alias]: Define __memrchr to memrchr.
48352 Guard weak_alias use with `#ifdef weak_alias'.
48354 2000-10-21 Jim Meyering <meyering@lucent.com>
48356 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
48357 (dir_name): Use dir_name_r.
48358 * lib/dirname.h (dir_name_r): Declare it.
48360 2000-10-17 Jim Meyering <meyering@lucent.com>
48362 * lib/quote.h (PARAMS): Define and use.
48363 Reported by Akim Demaille.
48365 * lib/getopt.c: Update from libc.
48367 2000-10-16 Jim Meyering <meyering@lucent.com>
48369 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
48373 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
48375 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
48377 2000-09-25 Jim Meyering <meyering@lucent.com>
48379 * lib/md5.h (rol): Define (from GnuPG).
48381 * lib/sha.c: Give credit (GnuPG) where due.
48382 (M): Use rol rather than open-coding it.
48383 Add a FIXME comment.
48385 2000-09-21 Jim Meyering <meyering@lucent.com>
48387 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
48388 Reported by Michael Stone.
48390 2000-09-20 Jim Meyering <meyering@lucent.com>
48392 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
48393 (noinst_HEADERS): Add sha.h.
48394 Based on code from Scott G. Miller and from GnuPG.
48396 2000-09-18 Jim Meyering <meyering@lucent.com>
48398 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
48399 LIBS. Otherwise, everyone ends up linking with -lelf for some
48401 Reported by Mike Stone.
48403 2000-09-15 Jim Meyering <meyering@lucent.com>
48405 * lib/regex.c: Update from libc.
48407 2000-09-10 Jim Meyering <meyering@lucent.com>
48409 * lib/getopt.c (_getopt_internal): Update from glibc.
48411 2000-09-09 Jim Meyering <meyering@lucent.com>
48413 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
48414 think it should be used as a general replacement for isascii.
48415 * lib/fnmatch.c: Likewise.
48416 * lib/mbswidth.c: Likewise
48417 * lib/regex.c: Likewise.
48420 * lib/userspec.c: Include sys/param.h and limits.h.
48422 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
48423 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
48424 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
48425 UID, GID. Check range.
48427 2000-09-06 Jim Meyering <meyering@lucent.com>
48429 * lib/getopt.c (_getopt_internal): Update from glibc.
48431 2000-08-30 Jim Meyering <meyering@lucent.com>
48433 * lib/strftime.c: Merge in changes from GNU libc.
48435 2000-08-26 Jim Meyering <meyering@lucent.com>
48437 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
48438 * m4/fpending.m4: New file.
48440 2000-08-26 Jim Meyering <meyering@lucent.com>
48442 * lib/closeout.c: Include "__fpending.h".
48443 (close_stdout_status): Return right away if there's nothing to flush.
48445 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
48446 * lib/__fpending.c: New file.
48447 * lib/__fpending.h: New file.
48449 2000-08-20 Jim Meyering <meyering@lucent.com>
48451 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
48452 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
48453 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
48455 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
48457 Improve fileutils installation on systems where running
48458 programs (like install) can't be unlinked.
48459 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
48460 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
48462 2000-08-07 Paul Eggert <eggert@twinsun.com>
48464 Standardize on "memory exhausted" instead of "Memory exhausted"
48465 or "virtual memory exhausted".
48466 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
48467 "virtual memory exhausted".
48468 * lib/same.c (same_name): Invoke xalloc_die instead of printing
48470 * lib/userspec.c (parse_user_spec): Likewise.
48471 * lib/bumpalloc.h: comment fix
48472 * lib/same.c, userspec.c: Include xalloc.h.
48474 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
48475 not char *const and pointing to a constant array.
48476 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
48477 (xrealloc): Comment fix.
48479 * lib/userspec.c (parse_user_spec):
48480 Don't translate a message until just before returning,
48481 to avoid unnecessary translation.
48483 2000-08-07 Jim Meyering <meyering@lucent.com>
48485 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
48486 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
48487 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
48488 getgroups.c, gethostname.c, getopt.h, group-member.c,
48489 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
48490 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
48491 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
48492 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
48493 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
48494 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
48495 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
48496 yesno.c: Back out Copyright date changes for each file with no change
48497 this year. This eases coordination with other programs using the same
48498 source code modules. From Paul Eggert.
48500 2000-08-06 Paul Eggert <eggert@twinsun.com>
48502 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
48503 not char, for compatibility with glibc 2.1.3 strftime.c.
48505 2000-08-03 Greg McGary <greg@mcgary.org>
48507 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
48508 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
48509 (EXTEND_BUFFER): Use them.
48511 2000-08-01 Jim Meyering <meyering@lucent.com>
48513 * lib/dirname.c (ISSLASH): Define.
48514 (BACKSLASH_IS_PATH_SEPARATOR): Define.
48515 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
48516 both `\' and `/' may be use as path separators.
48517 Based on a patch from Prashant TR.
48519 2000-07-31 Paul Eggert <eggert@twinsun.com>
48521 * lib/quotearg.c (quotearg_n_options): Don't make the initial
48522 slot vector a constant, since it might get modified.
48524 2000-07-31 Jim Meyering <meyering@lucent.com>
48526 * lib/xmalloc.c: Use `virtual memory exhausted', not
48527 `Memory exhausted'.
48528 * lib/obstack.c (print_and_abort): Likewise.
48530 2000-07-30 Paul Eggert <eggert@twinsun.com>
48532 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
48533 buffer, so that the caller can always quote one small
48534 component of a "memory exhausted" message in slot 0.
48535 From a suggestion by Jim Meyering.
48537 2000-07-30 Jim Meyering <meyering@lucent.com>
48539 * lib/makepath.c (make_path): Quote the other instance, too.
48541 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
48542 (STATIC_BUF_SIZE): Define.
48543 (quotearg_n_options): Use only statically allocated storage when
48544 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
48545 than STATIC_BUF_SIZE.
48547 2000-07-29 Jim Meyering <meyering@lucent.com>
48549 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
48550 * lib/dirname.c (dir_name): Likewise.
48552 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
48555 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
48556 (dir_name): Assert that there are no trailing slashes.
48558 2000-07-29 Bruno Haible <haible@clisp.cons.org>
48560 * lib/mbswidth.h (mbswidth): Add a flags argument.
48561 (mbswidth): New declaration.
48562 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
48563 * lib/mbswidth.c (mbswidth): Add a flags argument.
48564 (mbsnwidth): New function.
48566 2000-07-24 Jim Meyering <meyering@lucent.com>
48568 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
48570 2000-07-23 Paul Eggert <eggert@twinsun.com>
48572 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
48574 2000-07-23 Paul Eggert <eggert@twinsun.com>
48576 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
48577 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
48578 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
48579 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
48580 invoke multibyte primitives.
48582 2000-07-23 Paul Eggert <eggert@twinsun.com>
48585 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
48586 so that mbstate_t is always defined.
48588 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
48589 be 1 in at least one GCC installation, and this configuration
48590 error is likely to be common. Ignoring MB_LEN_MAX hurts
48591 performance on hosts that have mbrtowc but have only unibyte
48592 locales, but I assume these hosts are rare.
48594 2000-07-23 Paul Eggert <eggert@twinsun.com>
48596 * lib/mbswidth.c (_XOPEN_SOURCE):
48597 Don't define; this causes problems on Solaris 7.
48598 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
48600 2000-07-23 Jim Meyering <meyering@lucent.com>
48602 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
48603 too: getgrgid, getpwuid, getuid.
48605 2000-07-23 Jim Meyering <meyering@lucent.com>
48607 * lib/basename.c (base_name): Add an assertion.
48609 2000-07-23 Bruno Haible <haible@clisp.cons.org>
48611 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
48612 shadow its mbsinit function.
48614 2000-07-17 Bruno Haible <haible@clisp.cons.org>
48616 * lib/mbswidth.h: New file.
48617 * lib/mbswidth.c: New file.
48618 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
48619 (noinst_HEADERS): Add mbswidth.h.
48621 2000-07-17 Bruno Haible <haible@clisp.cons.org>
48623 * lib/config.charset: Add support for FreeBSD. Improve support for
48626 2000-07-16 Bruno Haible <haible@clisp.cons.org>
48628 * m4/mbswidth.m4: New file.
48629 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
48631 2000-07-15 Jim Meyering <meyering@lucent.com>
48633 * lib/makepath.c: Include quote.h.
48634 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
48635 corresponding argument in a `quote (...)' call.
48636 Give better diagnostics.
48638 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
48639 (noinst_HEADERS): Add quote.h.
48641 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
48642 from tar's src/misc.c.
48643 * lib/quote.h: New file. Prototypes for same.
48645 2000-07-14 Paul Eggert <eggert@twinsun.com>
48647 From a suggestion by Bruno Haible.
48648 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
48649 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
48650 to decide whether to define the BeOS workaround macro;
48651 this adjusts to the change to AC_MBSTATE_T.
48653 2000-07-14 Jim Meyering <meyering@lucent.com>
48655 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
48656 jm_AC_TYPE_UINTMAX_T.
48658 2000-07-13 Paul Eggert <eggert@twinsun.com>
48660 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
48662 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
48663 quotearg_buffer_restyled): Add support for
48664 clocale_quoting_style. Undo previous change to
48665 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
48666 and "{RIGHT QUOTATION MARK}" msgids.
48668 2000-07-10 Paul Eggert <eggert@twinsun.com>
48670 From a suggestion by Bruno Haible.
48671 * m4/mbstate_t.m4 (AC_MBSTATE_T):
48672 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
48673 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
48674 and mbstate_t, to a single-part test that simply defines mbstate_t.
48675 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
48676 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
48678 2000-07-10 Jim Meyering <meyering@lucent.com>
48680 * m4/strerror_r.m4: Mirror the correction made in autoconf.
48682 * m4/gnu-source.m4: Output to confdefs.h directly.
48683 Suggestion from Akim Demaille.
48685 2000-07-09 Paul Eggert <eggert@twinsun.com>
48687 The old behavior of quoting `like this' doesn't look good with
48688 newer, ISO-style fonts. See:
48689 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
48691 Instead, quote "like this" by default. Let the translator
48692 tailor the locale-specific quoting behavior by providing
48693 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
48695 * lib/quotearg.c (N_): New macro.
48696 (gettext_default): New function.
48697 (quotearg_buffer_restyled): Use
48698 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
48699 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
48701 2000-07-09 Jim Meyering <meyering@lucent.com>
48703 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
48704 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
48706 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
48707 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
48709 2000-07-09 Jim Meyering <meyering@lucent.com>
48711 * lib/Most files: Update copyright dates to include 2000.
48713 2000-07-08 Jim Meyering <meyering@lucent.com>
48715 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
48717 (xgethostname): Remove now-unnecessary #ifdef.
48718 Move declaration of `err' into loop where it's used.
48720 2000-07-05 Paul Eggert <eggert@twinsun.com>
48721 and Bruno Haible <haible@clisp.cons.org>
48723 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
48724 only if the test for an object-type mbstate_t fails. This
48725 prevents us from mistakenly reporting that mbstate_t is a
48726 system object type after we "#define mbstate_t int" to work
48729 2000-07-05 Paul Eggert <eggert@twinsun.com>
48730 and Bruno Haible <haible@clisp.cons.org>
48732 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
48734 2000-07-05 Bruno Haible <haible@clisp.cons.org>
48736 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
48738 Include <ctype.h> for use of isalpha.
48740 2000-07-05 Bruno Haible <haible@clisp.cons.org>
48742 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
48743 by allocating a larger buffer. Test the gethostname return value for
48744 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
48745 returns an error and ENAMETOOLONG isn't defined.
48747 2000-07-05 Bruno Haible <haible@clisp.cons.org>
48749 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
48752 2000-07-04 Jim Meyering <meyering@lucent.com>
48754 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
48755 of the deprecated AC_CHECKING.
48757 2000-07-04 Jim Meyering <meyering@lucent.com>
48759 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
48760 Reported by Bruno Haible.
48762 2000-07-04 Jim Meyering <meyering@lucent.com>
48764 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
48765 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
48768 2000-07-03 Paul Eggert <eggert@twinsun.com>
48770 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
48771 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
48773 2000-07-03 Paul Eggert <eggert@twinsun.com>
48774 and Bruno Haible <haible@clisp.cons.org>
48776 * lib/quotearg.c (mbrtowc):
48777 Assign to *pwc, and return 1 only if result is nonzero.
48778 (iswprint): Use ISPRINT when substituting our own mbrtowc.
48780 2000-07-03 Jim Meyering <meyering@lucent.com>
48782 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
48784 2000-07-03 Jim Meyering <meyering@lucent.com>
48786 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
48787 This is necessary to get a definition of e.g., UTMP_FILE on
48791 2000-07-02 Jim Meyering <meyering@lucent.com>
48793 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
48795 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
48796 AC_LIBOBJ(function_name).
48797 * m4/chown.m4: Likewise.
48798 * m4/fnmatch.m4: Likewise.
48799 * m4/ftruncate.m4: Likewise.
48800 * m4/getgroups.m4: Likewise.
48801 * m4/getline.m4: Likewise.
48802 * m4/group-member.m4: Likewise.
48803 * m4/jm-macros.m4: Likewise.
48804 * m4/lstat.m4: Likewise.
48805 * m4/malloc.m4: Likewise.
48806 * m4/memcmp.m4: Likewise.
48807 * m4/nanosleep.m4: Likewise.
48808 * m4/putenv.m4: Likewise.
48809 * m4/realloc.m4: Likewise.
48810 * m4/regex.m4: Likewise.
48811 * m4/stat.m4: Likewise.
48812 * m4/strftime.m4: Likewise.
48814 2000-07-02 Jim Meyering <meyering@lucent.com>
48816 * lib/quotearg.c (mbstate_t): Don't define here.
48818 2000-07-02 Jim Meyering <meyering@lucent.com>
48820 * lib/nanosleep.c (SIGCONT): Define if not already defined.
48822 2000-07-01 Jim Meyering <meyering@lucent.com>
48824 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
48826 2000-07-01 Jim Meyering <meyering@lucent.com>
48828 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
48831 2000-07-01 Bruno Haible <haible@clisp.cons.org>
48833 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
48834 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
48836 2000-07-01 Bruno Haible <haible@clisp.cons.org>
48838 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
48839 per change in ../m4/ls-mntd-fs.m4.
48840 (read_filesystem_list): Ignore symbolic links.
48842 2000-06-29 Jim Meyering <meyering@lucent.com>
48844 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
48845 for declaration of strcmp.
48847 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
48849 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
48850 Avoid warning by casting result to `char *' to remove `const'.
48852 2000-06-28 Jim Meyering <meyering@lucent.com>
48854 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
48855 included by quotearg.c, for which we perform this test. From
48858 2000-06-27 Bruno Haible <haible@clisp.cons.org>
48860 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
48861 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
48862 <utmpx.h> exists, put readutmp.o into LIBOBJS.
48864 2000-06-27 Bruno Haible <haible@clisp.cons.org>
48866 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
48868 2000-06-26 Paul Eggert <eggert@twinsun.com>
48870 savedir now sets errno on failure and invokes xmalloc to get memory.
48871 Fix a couple of other minor bugs while we're at it.
48873 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
48874 (NAMLEN): Remove macro.
48875 (malloc, realloc): Remove decls.
48876 (stpcpy): Likewise.
48877 ("xalloc.h"): Include.
48878 (NAME_SIZE_DEFAULT): New macro.
48879 (savedir): Use xmalloc / xrealloc to allocate memory.
48880 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
48881 Skip "" directory entries.
48882 Use strlen to calculate directory entry length, since the old method
48883 is rarely used these days and isn't worth supporting.
48884 Don't use a pointer after freeing it.
48885 Check for integer overflow when calculating allocation size.
48886 Use memcpy to copy entries, instead of stpcpy.
48887 Set errno properly when returning NULL.
48888 Check for readdir error.
48890 2000-06-26 Jim Meyering <meyering@lucent.com>
48892 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
48894 2000-06-25 Jim Meyering <meyering@lucent.com>
48896 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
48897 Linux header bug when _XOPEN_SOURCE is defined to 500.
48899 2000-06-25 Bruno Haible <haible@clisp.cons.org>
48901 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
48904 2000-06-25 Bruno Haible <haible@clisp.cons.org>
48906 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
48908 Don't include <stdlib.h>. Don't declare malloc, realloc.
48910 2000-06-24 Jim Meyering <meyering@lucent.com>
48912 * m4/strerror_r.m4: Revive this file -- to try out an experimental
48913 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
48914 for which strerror does return char*, but which lacks a conveniently
48915 accessible declaration of the function. If the compile-test says
48916 strerror_r doesn't work, then resort to a `run'-test that works on
48917 BeOS and segfaults on DEC Unix.
48919 2000-06-24 Jim Meyering <meyering@lucent.com>
48921 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
48923 2000-06-23 Paul Eggert <eggert@twinsun.com>
48925 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
48926 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
48928 2000-06-23 Paul Eggert <eggert@twinsun.com>
48930 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
48931 (mbrtowc, mbstate_t): Define substitutes if
48932 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
48933 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
48934 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
48936 2000-06-23 Jim Meyering <meyering@lucent.com>
48938 * m4/afs.m4: Add missing AC_MSG_RESULT.
48939 Reported by Bruno Haible.
48941 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
48942 Suggestion from Bruno Haible.
48944 2000-06-23 Jim Meyering <meyering@lucent.com>
48946 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
48948 2000-06-21 Jim Meyering <meyering@lucent.com>
48950 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
48952 2000-06-21 Jim Meyering <meyering@lucent.com>
48954 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
48955 (noinst_HEADERS): Add getstr.h.
48957 * lib/getline.c (getstr): Move into a separate file.
48958 * lib/getstr.c (getstr): New file, extracted from getline.c, with
48959 the following changes: new parameter, delim2; both delim[12]
48960 parameters have type `int', not `char'. The latter would lose
48961 with 8-bit delimiters.
48962 * lib/getstr.h: New file.
48964 2000-06-21 Bruno Haible <haible@clisp.cons.org>
48966 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
48967 than 1024, return a memory chunk of least possible size, instead
48968 of size PATH_MAX + 2. In the loop, increment the size proportionally.
48969 Use free/xmalloc instead of xrealloc to avoid copying for very long
48972 2000-06-21 Bruno Haible <haible@clisp.cons.org>
48974 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
48977 2000-06-21 Bruno Haible <haible@clisp.cons.org>
48979 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
48980 address, not strdup. Include <stdlib.h> and don't declare free().
48982 2000-06-19 Jim Meyering <meyering@lucent.com>
48984 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
48986 2000-06-18 Jim Meyering <meyering@lucent.com>
48988 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
48990 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
48991 `checking whether...' message to be consistent with that of the
48994 2000-06-18 Jim Meyering <meyering@lucent.com>
48996 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
48997 Besides, these days every porting target provides a mkdir function.
48999 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
49000 needed. (this snippet comes from src/system.h).
49002 2000-06-16 Bruno Haible <haible@clisp.cons.org>
49004 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
49006 2000-06-15 Paul Eggert <eggert@twinsun.com>
49008 * lib/human.c (adjust_value): New function.
49009 (human_readable_inexact): Apply rounding style even when
49010 printing approximate values.
49012 2000-06-14 Paul Eggert <eggert@twinsun.com>
49014 * lib/human.c (human_readable_inexact): Allow an input block
49015 size that is not a multiple of the output block size, and vice versa.
49016 Reported by Piergiorgio Sartor.
49018 2000-06-14 Paul Eggert <eggert@twinsun.com>
49020 * lib/getdate.y (get_date): Apply relative times after time
49021 zone indicator, not before. Reported by Todd A. Jacobs.
49023 2000-06-13 Jim Meyering <meyering@lucent.com>
49025 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
49027 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
49029 2000-06-12 Paul Eggert <eggert@twinsun.com>
49031 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
49033 2000-06-12 Jim Meyering <meyering@lucent.com>
49035 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
49036 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
49038 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
49039 the optional argument, `lib'.
49041 2000-06-08 Jim Meyering <meyering@lucent.com>
49043 * m4/largefile.m4: Remove file (now that it's part of autoconf).
49045 2000-06-04 Paul Eggert <eggert@twinsun.com>
49047 Rewrite largefile configuration so that we don't need to run
49048 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
49049 AC_CANONICAL_HOST in configure.in -- jmm]
49051 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
49052 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
49053 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
49054 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
49055 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
49057 Instead of inspecting the output of getconf, try to compile the
49058 test program without and with the macro definition.
49059 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
49060 for getconf. Instead, check for the needed flags by compiling
49063 2000-06-04 Paul Eggert <eggert@twinsun.com>
49065 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
49067 2000-06-04 Jim Meyering <meyering@lucent.com>
49069 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
49070 SunOS 4.1.4 for which gid_t is an unsigned type.
49072 2000-06-03 Jim Meyering <meyering@lucent.com>
49074 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
49075 now that autoconf requires that.
49077 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
49078 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
49079 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
49081 2000-06-03 Jim Meyering <meyering@lucent.com>
49083 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
49085 2000-06-03 Bruno Haible <haible@clisp.cons.org>
49087 * m4/glibc21.m4: New file.
49088 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
49090 2000-06-03 Bruno Haible <haible@clisp.cons.org>
49092 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
49093 newer, don't install charset.alias.
49094 * lib/config.charset: Change the Linux/glibc rules so they become empty
49095 on glibc-2.1 or newer.
49097 2000-06-02 Jim Meyering <meyering@lucent.com>
49099 * lib/mountlist.c: Back out last change. Instead, do this...
49100 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
49101 me_dummy member using the same `ignore'-testing code.
49102 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
49106 2000-05-29 Jim Meyering <meyering@lucent.com>
49108 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
49109 mounts with the `ignore' attribute. Based on a patch from
49112 2000-05-28 Jim Meyering <meyering@lucent.com>
49114 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
49115 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49116 * m4/stat.m4: Likewise.
49117 * m4/lstat.m4: Likewise.
49118 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
49120 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
49121 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
49123 2000-05-26 Jim Meyering <meyering@lucent.com>
49125 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
49127 2000-05-24 Jim Meyering <meyering@lucent.com>
49129 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
49130 autoconf requires that.
49131 * m4/lib-check.m4: Likewise.
49132 * m4/jm-macros.m4: Likewise.
49133 * m4/strftime.m4: Likewise.
49135 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
49136 AC_CHECK_DECLS, now that autoconf requires that.
49138 2000-05-22 Jim Meyering <meyering@lucent.com>
49140 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49141 * m4/lstat.m4: Likewise.
49143 2000-05-22 Jim Meyering <meyering@lucent.com>
49145 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
49147 2000-05-20 Jim Meyering <meyering@lucent.com>
49149 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
49150 (jm_PREREQ): Use it.
49152 2000-05-18 Jim Meyering <meyering@lucent.com>
49154 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
49155 back, too, since it may have been modified by allocate_entry.
49156 (hash_delete): Rewrite to use neither the assignment operator
49157 nor the comma operator in an if-expression.
49159 2000-05-15 Paul Eggert <eggert@twinsun.com>
49162 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
49163 Remove; no longer needed.
49164 "quotearg.h": Add include.
49165 (file_name): Do not bother to explicitly initialize to NULL; it's less
49166 efficient on some hosts.
49167 (close_stdout_status): Remove test as to whether stdout was already
49168 closed; it breaks for the case "echo x | sort >&-".
49169 Quote file name colons.
49170 Do not assume that _("write error") lacks format strings.
49172 2000-05-15 Jim Meyering <meyering@lucent.com>
49174 * lib/version-etc.c (version_etc_copyright): Update the copyright
49175 string used in all --version output.
49177 2000-05-14 Jim Meyering <meyering@lucent.com>
49179 * lib/closeout.c (close_stdout_set_file_name): New function.
49180 (close_stdout_status): Use new file-scoped global.
49181 Return right away if fstat says the stdout file descriptor is invalid.
49182 * lib/closeout.h (close_stdout_set_file_name): Declare.
49184 2000-05-10 Jim Meyering <meyering@lucent.com>
49186 * lib/closeout.c [default_exit_status]: New file-scoped variable.
49187 (close_stdout_set_status): New function.
49188 * lib/closeout.h (close_stdout_set_status): Declare.
49190 2000-05-09 Jim Meyering <meyering@lucent.com>
49192 * m4/gettext.m4: Rename this...
49193 * m4/libintl.m4: ...to this.
49195 2000-05-08 Jim Meyering <meyering@lucent.com>
49197 * lib/long-options.c: Don't include closeout.h.
49198 (parse_long_options): Don't call close_stdout for --version.
49200 2000-05-06 Paul Eggert <eggert@twinsun.com>
49202 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
49203 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
49204 2.1.3 bug. This avoids a clash when files like regex.c define
49207 2000-05-06 Jim Meyering <meyering@lucent.com>
49209 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
49210 (AC_REPLACE_FUNCS): Add strnlen.
49212 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
49213 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
49215 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
49216 AC_SEARCH_LIBS call for nanosleep.
49217 (LIB_NANOSLEEP): Set and AC_SUBST.
49219 2000-05-06 Jim Meyering <meyering@lucent.com>
49221 * lib/strnlen.c: Undefine __strnlen and strnlen.
49222 [!weak_alias]: Define __strnlen to strnlen.
49224 * lib/atexit.c: New file, from libiberty.
49226 2000-05-06 Jim Meyering <meyering@lucent.com>
49228 * lib/closeout.c (close_stdout_status): Also check for errors on the
49231 2000-05-05 Jim Meyering <meyering@lucent.com>
49233 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
49234 AC_SEARCH_LIBS call for clock_gettime.
49235 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
49237 * m4/search-libs.m4: Update from autoconf.
49239 su doesn't work on Solaris 2.6.
49240 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
49241 <shadow.h>. Reported by Dragos Harabor.
49243 2000-05-05 Bruno Haible <haible@clisp.cons.org>
49245 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
49246 memcpy instead of xmalloc, xrealloc, path_concat.
49247 (locale_charset): Treat empty environment variables as absent.
49248 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
49250 2000-05-04 Jim Meyering <meyering@lucent.com>
49252 * lib/getopt.c: Update from glibc.
49253 * lib/obstack.c: Likewise.
49254 * lib/obstack.h: Likewise.
49255 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
49258 * lib/regex.h: Likewise.
49259 * lib/strndup.c: Likewise.
49260 * lib/strnlen.c: New file, from glibc.
49262 2000-05-03 Jim Meyering <meyering@lucent.com>
49264 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
49266 2000-05-02 Paul Eggert <eggert@twinsun.com>
49268 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
49269 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
49270 compile-time test, rather than inspecting host and OS, to
49271 decide whether to define _LARGEFILE_SOURCE.
49273 2000-05-01 Jim Meyering <meyering@lucent.com>
49275 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
49277 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
49278 Based on a patch from Bruno Haible.
49280 2000-05-01 Jim Meyering <meyering@lucent.com>
49282 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
49284 2000-04-29 Jim Meyering <meyering@lucent.com>
49286 * lib/path-concat.c: Declare strdup only if it's not defined.
49287 * lib/canon-host.c: Likewise.
49289 2000-04-28 Jim Meyering <meyering@lucent.com>
49291 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
49292 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
49293 is included first, then limits.h is included by locale.h by libintl.h.
49294 From John David Anglin.
49296 2000-04-25 Jim Meyering <meyering@lucent.com>
49298 * lib/makepath.c (S_IRWXUGO): Define.
49299 (make_path): Always perform explicit chmod if MODE specifies any
49300 of the `special' permission bits. Prompted by a bug report against
49301 install from Mate Wierdl and Joost van Baal.
49303 2000-04-18 Jim Meyering <meyering@lucent.com>
49305 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
49306 (jm_PREREQ): Use it.
49308 2000-04-18 Jim Meyering <meyering@lucent.com>
49310 * lib/README: New file.
49312 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
49313 getpagesize. For BeOS. Based on a patch from Bruno Haible.
49315 2000-04-17 Jim Meyering <meyering@lucent.com>
49318 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
49319 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
49320 Suggestion from Akim Demaille.
49322 2000-04-17 Jim Meyering <meyering@lucent.com>
49324 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
49325 the definition of it to rpl_strftime also defined-away the system's
49328 2000-04-15 Jim Meyering <meyering@lucent.com>
49330 Use `C' to denote so-called `contiguous' files, the same way
49332 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
49333 (ftypelet): Use S_ISCTG.
49334 From Michael Deutschmann.
49336 2000-04-14 Jim Meyering <meyering@lucent.com>
49338 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
49339 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
49342 2000-04-14 Jim Meyering <meyering@lucent.com>
49344 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
49346 2000-04-13 Jim Meyering <meyering@lucent.com>
49348 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
49349 AH_VERBATIM to insert required #ifndef into config.h.in.
49350 Suggestion from Akim Demaille.
49352 2000-04-12 Jim Meyering <meyering@lucent.com>
49354 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
49355 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
49356 Christian Krackowizer.
49358 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
49359 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
49360 (AC_SYS_LARGEFILE): Require.
49361 (AM_C_PROTOTYPES): Require.
49363 2000-04-08 Jim Meyering <meyering@lucent.com>
49365 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
49366 names don't conflict. Reported by Eli Zaretskii.
49368 2000-04-07 Jim Meyering <meyering@lucent.com>
49370 * lib/putenv.c: Move inclusion of errno.h so it follows that of
49371 sys/types.h, to work around system header problems on AIX 3.2.5.
49374 2000-04-07 Bruno Haible <haible@clisp.cons.org>
49376 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
49377 bug. Deal with the different error behavior of Irix iconv.
49379 2000-04-05 Paul Eggert <eggert@twinsun.com>
49381 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
49382 IRIX if the installer said otherwise.
49384 2000-04-05 Jim Meyering <meyering@lucent.com>
49386 Portability tweaks required for ultrix4.3.
49387 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
49388 (jm_CHECK_DECLS): Add getutent to the list of functions.
49389 (_jm_DECL_HEADERS): Add utmpx.h.
49390 From John David Anglin.
49392 * m4/strftime.m4: Back out the 2000-04-02 change.
49393 Instead of that change, simply undefine putenv in the test program.
49395 2000-04-05 Jim Meyering <meyering@lucent.com>
49397 Portability tweaks required for ultrix4.3.
49398 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
49400 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
49401 * lib/canon-host.c: Declare strdup.
49402 * lib/path-concat.c: Likewise.
49403 From John David Anglin.
49405 2000-04-04 Jim Meyering <meyering@lucent.com>
49407 Be more DOS 8.3-friendly.
49408 * lib/ref-add.sin: Renamed from ref-add.sed.in.
49409 * lib/ref-del.sin: Renamed from ref-del.sed.in.
49410 * lib/Makefile.am: Reflect renaming.
49411 Reported by Eli Zaretskii.
49413 Use a temporary file name that won't clash with `charset.alias'
49414 in the DOS 8.3 name space.
49415 * lib/Makefile.am (charset_tmp): Define.
49416 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
49417 (uninstall-local): Likewise.
49418 Reported by Eli Zaretskii.
49420 2000-04-03 Jim Meyering <meyering@lucent.com>
49422 * m4/gettext.m4: Fix typo in comment.
49424 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
49425 textutils/configure.in). Suggestion from Paul Eggert.
49426 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
49428 2000-04-02 Paul Eggert <eggert@twinsun.com>
49430 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
49431 variable in the shell rather than using putenv, which isn't
49432 portable. This avoids the configure-time inter-test dependency
49433 on the potentially-renamed putenv function.
49435 2000-03-30 Paul Eggert <eggert@twinsun.com>
49437 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
49438 before checking struct stat.st_blksize, so that
49439 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
49441 2000-03-29 Paul Eggert <eggert@twinsun.com>
49443 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
49444 since strftime.c uses HAVE_STRFTIME to decide whether to use
49445 the underlying strftime.
49447 2000-03-29 Paul Eggert <eggert@twinsun.com>
49449 * lib/time/strftime.c (my_strftime): Make sure we call the system
49450 strftime, not ourselves, when invoking the underlying strftime.
49452 2000-03-24 Jim Meyering <meyering@lucent.com>
49454 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
49455 (charset_alias): Define.
49456 (install-exec-local): Factor out common code.
49457 (uninstall-local): Split lines longer than 80.
49458 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
49459 (SUFFIXES): Define.
49460 (.sed.in.sed): New rule. Don't redirect directly to $@.
49461 (CLEANFILES): Add ref-add.sed and ref-del.sed.
49463 2000-03-19 Bruno Haible <haible@clisp.cons.org>
49465 * lib/config.charset: Output a line containing "Packages using this
49467 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
49468 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
49469 ref-del.sed): New rules.
49471 2000-03-17 Jim Meyering <meyering@lucent.com>
49473 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
49474 Otherwise, include <strings.h>
49476 2000-03-17 Bruno Haible <haible@clisp.cons.org>
49478 * lib/unicodeio.c (utf8_wctomb): New function.
49479 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
49480 format instead of in UCS-4 with platform dependent endianness.
49482 2000-03-10 Jim Meyering <meyering@lucent.com>
49484 * m4/lib-check.m4: Look for getspnam in -lgen, too.
49485 From Marco Franzen.
49487 2000-03-07 Paul Eggert <eggert@twinsun.com>
49489 * lib/savedir.c (savedir): Work even if directory size is
49490 negative; this can happen with some screwy NFS configurations.
49492 2000-03-06 Jim Meyering <meyering@lucent.com>
49494 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
49495 if it's NULL (because we ran out of memory). From Bruno Haible.
49497 2000-03-05 Jim Meyering <meyering@lucent.com>
49499 * lib/localcharset.c ("path-concat.h"): Include.
49500 (get_charset_aliases): Use path_concat instead of ANSI string
49503 * lib/unicodeio.h (PARAMS): Define.
49504 Use it to guard prototype.
49506 2000-03-04 Jim Meyering <meyering@lucent.com>
49508 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
49509 for lib/localcharset.c.
49511 2000-03-04 Jim Meyering <meyering@lucent.com>
49513 * lib/Makefile.am (install-exec-local): Create $(libdir) before
49514 installing into it.
49515 (uninstall-local): Uncomment this rule so `make distcheck' works
49518 * lib/unicodeio.c (<errno.h>): Include it.
49519 (errno): Declare if not defined.
49521 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
49523 * lib/config.charset: New version, incorporating remarks from a linux
49524 i18n mailing list. From Bruno Haible.
49526 2000-03-04 Bruno Haible <haible@clisp.cons.org>
49528 * m4/codeset.m4: New file.
49529 * m4/iconv.m4: New file.
49530 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
49532 2000-03-03 Jim Meyering <meyering@lucent.com>
49534 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
49536 2000-03-02 Jim Meyering <meyering@lucent.com>
49538 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
49539 the messages come out on separate lines.
49541 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
49542 rather than jm_CHECK_DECLARATIONS.
49543 * m4/decl.m4: Remove now-unused file.
49545 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
49548 2000-03-02 Jim Meyering <meyering@lucent.com>
49550 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
49552 2000-03-01 Jim Meyering <meyering@lucent.com>
49554 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
49555 * lib/unicodeio.c: Likewise.
49557 2000-03-01 Bruno Haible <haible@clisp.cons.org>
49559 * lib/config.charset: New file.
49560 * lib/localcharset.c: New file.
49561 * lib/unicodeio.h, lib/unicodeio.c: New files.
49562 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
49563 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
49564 (noinst_HEADERS): Add unicodeio.h.
49565 (all-local, install-exec-local, charset.alias): New targets.
49567 2000-02-28 Paul Eggert <eggert@twinsun.com>
49569 * lib/quotearg.c (ALERT_CHAR): New macro.
49570 (quotearg_buffer_restyled): Use it.
49572 2000-02-27 Jim Meyering <meyering@lucent.com>
49574 * m4/check-decl.m4: Add getenv to the list.
49576 2000-02-27 Jim Meyering <meyering@lucent.com>
49578 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
49579 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
49581 * lib/backupfile.c: Guard inclusion of stdlib.h with
49582 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
49583 Declare malloc if needed.
49585 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
49586 `#ifndef HAVE_DECL..'
49587 now that autoconf always defines the HAVE_DECL_ symbols.
49588 * lib/human.c: Likewise.
49589 * lib/same.c: Likewise.
49590 * lib/strtoumax.c: Likewise.
49592 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
49593 declaration check was not run.
49594 * lib/hash.c: Likewise.
49595 * lib/human.c: Likewise.
49596 * lib/same.c: Likewise.
49597 * lib/strtoumax.c: Likewise.
49599 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
49600 `.', then first look up the entire `.'-containing string as a login
49603 2000-02-23 Jim Meyering <meyering@lucent.com>
49605 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
49606 in place of my hack.
49608 2000-02-18 Paul Eggert <eggert@twinsun.com>
49610 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
49611 (textint): New typedef.
49612 (parser_control): Member year changed from int to textint.
49614 (YYSTYPE): Removed; replaced by %union with int and textint members.
49615 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
49616 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
49617 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
49618 (tSNUMBER, tUNUMBER): Now of type <textintval>.
49619 (date, number, to_year): Use width of number in digits, not its value,
49620 to determine whether it's a 2-digit year, or a 2-digit time.
49621 (yylex): Store number of digits of numeric tokens.
49622 Reported by John Kendall.
49624 (parser_control): Changed from struct parser_control to typedef (for
49625 consistency). All uses changed.
49627 (tID): Removed; not used.
49628 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
49630 2000-02-14 Paul Eggert <eggert@twinsun.com>
49632 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
49633 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
49635 2000-02-12 Jim Meyering <meyering@lucent.com>
49637 * lib/userspec.c (ISDIGIT): Define it.
49638 (isdigit): Remove definition.
49639 (is_number): Use ISDIGIT, not isdigit.
49640 <libintl.h>: Include.
49641 (_ and N_): Define.
49642 (parse_user_spec): Mark translatable strings.
49644 2000-02-10 Jim Meyering <meyering@lucent.com>
49646 With these changes, nanosleep.[ch] are finally enough like the other
49647 lib/* replacement files to compile on a few more losing systems.
49649 * lib/nanosleep.h: Don't include config.h.
49650 Remove prototype from declaration of nanosleep.
49651 (PARAMS): Remove now-unneeded definition.
49652 * lib/nanosleep.c: #undef nanosleep.
49653 (rpl_nanosleep): Rename from nanosleep.
49655 2000-02-10 Jim Meyering <meyering@lucent.com>
49657 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
49658 gnu_nanosleep to rpl_nanosleep.
49660 2000-02-09 Jim Meyering <meyering@lucent.com>
49662 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
49663 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
49665 2000-02-08 Akim Demaille <akim@epita.fr>
49667 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
49668 `[' and `]' and remove uses of `changequote'.
49669 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
49670 (AC_SYS_LARGEFILE): Likewise.
49671 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49672 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
49674 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
49675 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
49676 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
49677 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
49679 2000-02-05 Jim Meyering <meyering@lucent.com>
49681 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
49682 Remove explicit use of AC_HEADER_TIME. It is required by
49683 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
49684 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
49685 in autoconf whereby the expansion of the latter ended up preceding
49686 the expansion of its prerequisite, AC_HEADER_TIME.
49687 Reported by Volker Borchert.
49689 2000-02-03 Jim Meyering <meyering@lucent.com>
49691 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
49693 2000-02-03 Jim Meyering <meyering@lucent.com>
49695 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
49696 rather than with `#if HAVE_UTMPNAME'.
49698 2000-02-02 Jim Meyering <meyering@lucent.com>
49700 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
49701 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
49702 Reported by Eli Zaretskii.
49704 2000-02-01 Jim Meyering <meyering@lucent.com>
49706 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
49708 2000-01-31 Jim Meyering <meyering@lucent.com>
49710 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
49711 functions. Add the time.h and sys/time.h headers along with the
49712 AC_REQUIRE'ment of AC_HEADER_TIME.
49714 2000-01-31 Jim Meyering <meyering@lucent.com>
49716 * lib/nanosleep.h (nanosleep): Guard declaration with
49717 `#if ! HAVE_DECL_NANOSLEEP'.
49718 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
49719 the declaration in that vendor's sys/timers.h.
49720 Reported by Christian Krackowizer.
49722 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
49723 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
49724 (ISPRINT): Likewise.
49725 Reported by Tom Tromey.
49727 2000-01-30 Jim Meyering <meyering@lucent.com>
49729 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
49731 * m4/prereq.m4 (utmp_includes): Define.
49732 Check for ut_user and ut_name members in both struct utmpx
49735 2000-01-30 Jim Meyering <meyering@lucent.com>
49737 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
49738 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
49739 header files where only utmpx.ut_user is declared.
49741 * lib/readutmp.h (UT_USER): Define.
49743 2000-01-29 Jim Meyering <meyering@lucent.com>
49745 * m4/lib-check.m4: New file containing library-related checks from
49746 fileutils and sh-utils (textutils had none).
49748 2000-01-28 Jim Meyering <meyering@lucent.com>
49750 * m4/perl.m4: Change format of warning message to look more like that
49751 from the missing script. Suggestion from François Pinard.
49753 2000-01-25 Jim Meyering <meyering@lucent.com>
49755 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
49756 well as time.h in the compile check.
49757 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
49758 Fix typo in cross-compiling case: s/yes/no/.
49760 2000-01-23 Jim Meyering <meyering@lucent.com>
49762 * m4/jm-macros.m4: Move df-related tests here from
49763 fileutils/configure.in
49765 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
49766 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
49768 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
49769 s/space/ac_fsusage_space/.
49770 (jm_FILE_SYSTEM_USAGE): Take two parameters.
49772 * m4/ftruncate.m4: New file (derived from part of
49773 fileutils/configure.in).
49774 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
49775 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
49777 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
49778 AC_SUBST these here, rather than just in sh-util/configure.in, so
49779 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
49781 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
49782 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
49783 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
49784 (AC_SUBST(POW_LIBM)): Likewise.
49785 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
49787 2000-01-23 Jim Meyering <meyering@lucent.com>
49789 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
49792 2000-01-22 Jim Meyering <meyering@lucent.com>
49794 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
49796 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
49798 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
49800 (AC_CHECK_HEADERS): Likewise for sh-utils.
49801 (AC_CHECK_HEADERS): Likewise for textutils.
49802 Merge the three lists of headers.
49804 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
49805 from fileutils' configure.in.
49807 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
49808 code. Moved tests into their own function (_jm_DECL_HEADERS) in
49811 * m4/check-decl.m4: Use #if rather than #ifdef.
49812 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
49813 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
49814 (_jm_DECL_HEADERS): Define new function.
49815 (jm_CHECK_DECLARATIONS): Require it.
49817 2000-01-22 Jim Meyering <meyering@lucent.com>
49819 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
49820 [! HAVE_DECL_STRTOULL]: Declare strtoull.
49821 Required for some AIX systems. Reported by Christian Krackowizer.
49822 [TESTING] (main): New function.
49824 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
49825 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
49828 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
49831 * lib/strverscmp.c (ISDIGIT): Define.
49832 (strverscmp): Use ISDIGIT, not isdigit.
49834 2000-01-19 Jim Meyering <meyering@lucent.com>
49836 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
49837 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
49838 defines `struct timespec' in <sys/time.h>
49840 * m4/c-bs-a.m4: Remove uses of changequote altogether.
49841 Thanks to Akim for explaining.
49843 2000-01-17 Paul Eggert <eggert@twinsun.com>
49845 * lib/nanosleep.c (nanosleep):
49846 Don't use SA_INTERRUPT to decide whether to call sigaction, as
49847 POSIX.1 doesn't require SA_INTERRUPT and some systems
49848 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
49849 it's been part of POSIX.1 since day 1 (in 1988).
49851 2000-01-17 Jim Meyering <meyering@lucent.com>
49853 * lib/interlock: Remove unused file. Reported by François Pinard.
49855 2000-01-16 Paul Eggert <eggert@twinsun.com>
49857 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
49858 alert, backslash, formfeed, and vertical tab unnecessarily in
49859 shell quoting style.
49861 2000-01-16 Jim Meyering <meyering@lucent.com>
49863 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
49864 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
49865 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
49866 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
49868 2000-01-16 Jim Meyering <meyering@lucent.com>
49870 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
49871 because the latter didn't work.
49873 2000-01-15 Jim Meyering <meyering@lucent.com>
49875 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
49876 (AC_REPLACE_FUNCS): Add memcpy and memset.
49877 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
49879 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
49881 2000-01-12 Jim Meyering <meyering@lucent.com>
49883 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
49884 (jm_PREREQ): Use it.
49885 (jm_PREREQ_READUTMP): New macro.
49886 (jm_PREREQ): Use it.
49888 2000-01-11 Paul Eggert <eggert@twinsun.com>
49890 Quote multibyte characters correctly.
49891 * m4/c-bs-a.m4: New file.
49892 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
49893 (jm_PREREQ): Use it.
49895 2000-01-11 Paul Eggert <eggert@twinsun.com>
49897 * m4/uintmax_t.m4: Port to autoconf 2.13.
49899 2000-01-08 Jim Meyering <meyering@ascend.com>
49901 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
49902 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
49904 2000-01-04 Jim Meyering <meyering@ascend.com>
49906 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
49907 jm_STRUCT_DIRENT_D_TYPE.
49908 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
49909 jm_STRUCT_DIRENT_D_INO.
49910 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
49912 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
49914 * m4/utime.m4: Likewise.
49916 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
49917 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
49919 2000-01-03 Paul Eggert <eggert@twinsun.com>
49921 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
49922 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
49924 2000-01-02 Jim Meyering <meyering@ascend.com>
49926 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
49927 remember if this is necessary.
49929 1999-12-26 Jim Meyering <meyering@ascend.com>
49931 * m4/jm-macros.m4: Use it here.
49932 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
49934 1999-12-23 Jim Meyering <meyering@ascend.com>
49936 * m4/jm-macros.m4: Check for clock_gettime (moved from
49937 fileutils/configure.in)
49938 Check for gettimeofday.
49940 1999-12-20 Jim Meyering <meyering@ascend.com>
49942 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
49943 autoconf-2.14a-1999-12-20.
49945 1999-12-19 Jim Meyering <meyering@ascend.com>
49947 * m4/lstat-slash.m4: New file.
49948 * m4/jm-macros.m4: Use the new macro:
49949 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49951 1999-12-07 Jim Meyering <meyering@ascend.com>
49953 * m4/perl.m4: Require that File::Compare be available, too.
49954 Too many systems seem to lack it.
49956 * m4/strftime.m4: Add checks for most of the cpp macros tested in
49957 GNU's strftime.c. Prompted by a patch from Paul Eggert.
49959 1999-11-18 Paul Eggert <eggert@twinsun.com>
49961 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
49962 problem with the QNX 4.25 shell, which doesn't propagate exit
49963 status of failed commands inside shell assignments.
49965 1999-11-17 Jim Meyering <meyering@ascend.com>
49967 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
49969 1999-11-07 Jim Meyering <meyering@ascend.com>
49971 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
49973 1999-11-06 Jim Meyering <meyering@ascend.com>
49975 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
49976 * m4/jm-macros.m4 (jm_MACROS): Use it here.
49978 1999-11-05 Jim Meyering <meyering@ascend.com>
49980 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
49981 configure.in of textutils, fileutils, and sh-utils into this one
49982 (shared between those packages) file.
49983 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
49984 AC_STRUCT_ST_BLKSIZE.
49986 1999-11-03 Jim Meyering <meyering@ascend.com>
49988 * m4/ssize_t.m4: Remove file. No longer needed since the new version
49989 of AC_CHECK_TYPE checks includes unistd.h.
49990 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
49991 Suggestion from Akim Demaille.
49993 1999-10-30 Jim Meyering <meyering@ascend.com>
49995 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
49997 * m4/ls-mntd-fs.m4: Likewise.
49998 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
49999 * m4/jm-winsz1.m4: Likewise.
50001 * m4/const.m4: Remove file, since the fix made it into the experimental
50002 version of autoconf.
50003 * m4/mktime.m4: Likewise.
50005 * m4/check-type.m4: Remove file, now that the latest version of
50006 AC_CHECK_TYPE takes a third arg to specify additional #includes.
50008 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
50009 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
50012 1999-10-04 Jim Meyering <meyering@ascend.com>
50014 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
50016 1999-09-22 Paul Eggert <eggert@twinsun.com>
50018 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
50019 2.95.1 bug with HP-UX 10.20.
50021 1999-09-17 Jim Meyering <meyering@ascend.com>
50023 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
50024 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
50025 due to missing strdup (against sh-utils-2.0).
50027 1999-08-29 Jim Meyering <meyering@ascend.com>
50029 * m4/jm-macros.m4: Require jm_BISON.
50030 * m4/bison.m4: New file.
50032 1999-08-17 Paul Eggert <eggert@twinsun.com>
50034 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
50035 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
50037 1999-08-05 Jim Meyering <meyering@ascend.com>
50039 * m4/getline.m4: Rename test file from conftestdata to conftest.data
50040 to avoid conflicts with `conftest' on 8+3 filesystems.
50041 Suggestion from Eli Zaretskii.
50043 1999-08-04 Jim Meyering <meyering@ascend.com>
50045 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
50046 fileutils and sh-utils (textutils's getline test was inadequate).
50047 (AM_FUNC_GETLINE): Run this test.
50048 (AC_CHECK_FUNCS): Check for getdelim.
50049 Reported by Bob Proulx.
50051 1999-08-02 Jim Meyering <meyering@ascend.com>
50053 * m4/jm-macros.m4: Add a comment.
50055 1999-08-01 Paul Eggert <eggert@twinsun.com>
50057 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
50058 <inttypes.h> defines strtoumax as a macro (and not as a
50061 1999-08-01 Paul Eggert <eggert@twinsun.com>
50063 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
50064 that we can shift, multiply and divide unsigned long long
50065 values; Ultrix cc can't do it.
50067 1999-08-01 Paul Eggert <eggert@twinsun.com>
50069 * m4/mktime.m4: New file, which is a preview of what should appear
50070 in the next public autoconf release.
50072 1999-08-01 Paul Eggert <eggert@twinsun.com>
50074 * m4/lfs.m4: Remove this file.
50075 * m4/largefile.m4: New file. It contains the old contents of
50076 lfs.m4, except that all names with prefix AC_LFS have been
50077 changed to use the prefix AC_SYS_LARGEFILE instead, to be
50078 compatible with future autoconf versions. Also, some minor m4
50079 quoting problems have been fixed.
50081 1999-08-01 Paul Eggert <eggert@twinsun.com>
50083 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
50084 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
50085 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
50086 and simplify the shell code.
50088 1999-08-01 Jim Meyering <meyering@ascend.com>
50090 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
50093 1999-07-20 Jim Meyering <meyering@ascend.com>
50095 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
50097 1999-07-15 Jim Meyering <meyering@ascend.com>
50099 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
50101 1999-05-22 Jim Meyering <meyering@ascend.com>
50103 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
50105 1999-05-20 Jim Meyering <meyering@ascend.com>
50107 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
50108 Add a colon after each `then' in case $4 is empty.
50110 1999-05-16 Jim Meyering <meyering@ascend.com>
50112 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
50114 1999-05-10 Jim Meyering <meyering@ascend.com>
50116 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
50118 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
50121 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
50123 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
50125 1999-05-04 Paul Eggert <eggert@twinsun.com>
50127 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
50128 not CPPFLAGS, so that linking works correctly in IRIX.
50130 1999-04-30 Paul Eggert <eggert@twinsun.com>
50132 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
50134 1999-04-20 Paul Eggert <eggert@twinsun.com>
50136 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
50137 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
50138 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
50139 jm_AC_TYPE_UNSIGNED_LONG_LONG.
50140 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
50142 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
50144 1999-04-20 Jim Meyering <meyering@ascend.com>
50146 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
50147 AC_REPLACE xstroull if necessary. From Paul Eggert.
50148 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
50150 1999-04-18 Jim Meyering <meyering@ascend.com>
50152 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
50153 * m4/jm-macros.m4: Use it.
50155 1999-04-06 Jim Meyering <meyering@ascend.com>
50157 * m4/strftime.m4: Remove test for %f.
50159 1999-03-29 Jim Meyering <meyering@ascend.com>
50161 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
50162 superset of the AC_TYPE_* checks in the textutils, fileutils,
50163 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
50166 1999-03-28 Jim Meyering <meyering@ascend.com>
50168 * m4/jm-macros.m4: Define GNU_PACKAGE here.
50169 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
50170 replaced e.g., in the *.sh files of the sh-utils.
50172 1999-03-20 Jim Meyering <meyering@ascend.com>
50174 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
50175 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
50176 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
50178 1999-03-19 Jim Meyering <meyering@ascend.com>
50180 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
50182 1999-03-12 Jim Meyering <meyering@ascend.com>
50184 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
50186 1999-03-07 Jim Meyering <meyering@ascend.com>
50188 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
50191 1999-02-17 Jim Meyering <meyering@ascend.com>
50193 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
50194 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
50196 1999-02-07 Jim Meyering <meyering@ascend.com>
50198 * m4/group-member.m4: New file -- extracted from sh-utils'
50201 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
50202 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
50204 1999-02-06 Jim Meyering <meyering@ascend.com>
50206 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
50207 * m4/fnmatch.m4: Likewise.
50208 * m4/getgroups.m4: Likewise.
50209 * m4/lstat.m4: Likewise.
50210 * m4/malloc.m4: Likewise.
50211 * m4/putenv.m4: Likewise.
50212 * m4/realloc.m4: Likewise.
50213 * m4/regex.m4: Likewise.
50214 * m4/stat.m4: Likewise.
50215 * m4/strftime.m4: Likewise.
50216 Suggestion from Alain Magloire.
50218 * m4/chown.m4: Use `.$ac_objext', not `.o'.
50219 * m4/fnmatch.m4: Likewise.
50220 * m4/getgroups.m4: Likewise.
50221 * m4/getline.m4: Likewise.
50222 * m4/lstat.m4: Likewise.
50223 * m4/malloc.m4: Likewise.
50224 * m4/memcmp.m4: Likewise.
50225 * m4/putenv.m4: Likewise.
50226 * m4/realloc.m4: Likewise.
50227 * m4/regex.m4: Likewise.
50228 * m4/stat.m4: Likewise.
50229 * m4/strftime.m4: Likewise.
50230 Suggestion from Alain Magloire.
50232 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
50235 * m4/regex.m4: Add a run-time Test for proper operation of
50236 re_compile_pattern.
50238 1999-01-31 Jim Meyering <meyering@ascend.com>
50240 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
50242 1999-01-30 Jim Meyering <meyering@ascend.com>
50244 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
50246 * m4/jm-mktime.m4: Make this a wrapper around the official
50247 AM_FUNC_MKTIME rather than my private copy, now that the official one
50249 * m4/mktime.m4: Remove file.
50251 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
50252 * m4/uptime.m4: Likewise.
50253 * m4/uintmax_t.m4: Likewise.
50255 1999-01-28 Jim Meyering <meyering@ascend.com>
50257 * m4/jm-macros.m4: Use jm_AFS.
50258 * m4/afs.m4: New file (from fileutils' configure.in).
50260 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
50261 * m4/chown.m4: Likewise.
50262 * m4/d-ino.m4: Likewise.
50263 * m4/d-type.m4: Likewise.
50264 * m4/fnmatch.m4: Likewise.
50265 * m4/getgroups.m4: Likewise.
50266 * m4/gettext.m4: Likewise.
50267 * m4/jm-mktime.m4: Likewise.
50268 * m4/jm-winsz2.m4: Likewise.
50269 * m4/lcmessage.m4: Likewise.
50270 * m4/ls-mntd-fs.m4: Likewise.
50271 * m4/malloc.m4: Likewise.
50272 * m4/memcmp.m4: Likewise.
50273 * m4/putenv.m4: Likewise.
50274 * m4/realloc.m4: Likewise.
50275 * m4/st_mtim.m4: Likewise.
50276 * m4/strftime.m4: Likewise.
50278 1999-01-16 Jim Meyering <meyering@ascend.com>
50280 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
50281 (ARGMATCH_DIE_DECL): Define.
50283 1999-01-12 Jim Meyering <meyering@ascend.com>
50285 * m4/Makefile.am.in: Rewrite to avoid using fmt.
50286 Reported by Lars Hecking.
50288 1999-01-10 Jim Meyering <meyering@ascend.com>
50290 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
50292 * m4/inttypes_h.m4: Likewise.
50293 * m4/lstat.m4: Likewise.
50294 * m4/malloc.m4: Likewise.
50295 * m4/readdir.m4: Likewise.
50296 * m4/realloc.m4: Likewise.
50297 * m4/st_dm_mode.m4: Likewise.
50298 * m4/stat.m4: Likewise.
50299 * m4/utimbuf.m4: Likewise.
50300 * m4/utimes.m4: Likewise.
50302 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
50303 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
50304 comments in config.h.in are meaningful.
50306 * m4/jm-macros.m4: Require autoconf-2.13 here.
50308 * m4/regex.m4: By default, don't use the included regex.c on systems
50309 with glibc 2. Suggestion from Uli Drepper.
50311 1999-01-02 Jim Meyering <meyering@ascend.com>
50313 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
50315 1998-12-18 Jim Meyering <meyering@ascend.com>
50317 * m4/Makefile.am.in (Makefile.am): Simplify rule.
50318 Based on a suggestion from Lars Hecking.
50320 1998-11-16 Paul Eggert <eggert@twinsun.com>
50322 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
50324 1998-11-16 Jim Meyering <meyering@ascend.com>
50326 * m4/lfs.m4: Double-quote the `uname...` expression.
50328 1998-11-14 Jim Meyering <meyering@ascend.com>
50330 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
50331 * m4/stat.m4: Likewise.
50333 1998-11-03 Jim Meyering <meyering@ascend.com>
50335 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
50336 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
50338 1998-10-18 Jim Meyering <meyering@ascend.com>
50340 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
50342 1998-10-17 Jim Meyering <meyering@ascend.com>
50344 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
50345 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
50346 calls for those previously hard-coded headers. Instead, take a new
50348 (jm_CHECK_DECLARATIONS): Reflect interface change.
50349 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
50350 (jm_CHECK_DECL_LOCALTIME_R): New macro.
50352 * m4/mktime.m4: Test for spring-forward gap before long-running test.
50354 1998-10-14 Jim Meyering <meyering@ascend.com>
50356 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
50357 instead of "TZ=America/Vancouver". From Paul Eggert.
50359 1998-10-11 Jim Meyering <meyering@ascend.com>
50361 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
50362 This adds a test for a recently added compatibility fix for mktime.c.
50363 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
50365 1998-09-27 Jim Meyering <meyering@ascend.com>
50367 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
50369 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
50370 ../configure.in, including a change from Gordon Matzigkeit to allow
50371 cross-compiling for the Hurd.
50373 * m4/glibc.m4: New file/macro to test for the GNU C Library
50374 versions 1 and 2. From Gordon Matzigkeit.
50377 1998-09-21 Jim Meyering <meyering@ascend.com>
50379 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
50381 1998-08-18 Paul Eggert <eggert@twinsun.com>
50383 Port nanosecond-resolution times to UnixWare 2.1.2 and
50384 pedantic Solaris 2.6.
50386 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
50388 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
50389 Generate name of ns member, instead of just 1 or undef.
50390 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
50392 1998-08-15 Jim Meyering <meyering@ascend.com>
50394 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
50395 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
50396 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
50397 instead of jm_TYPE_SSIZE_T.
50399 1998-08-12 Jim Meyering <meyering@ascend.com>
50401 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
50403 1998-08-02 Jim Meyering <meyering@ascend.com>
50405 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
50406 in acconfig.h manually.
50408 1998-07-31 Paul Eggert <eggert@twinsun.com>
50410 * m4/st_mtim.m4: New file.
50412 1998-07-28 Jim Meyering <meyering@ascend.com>
50414 * m4/utimes.m4: Undef stat.
50416 1998-07-25 Jim Meyering <meyering@ascend.com>
50418 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
50419 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
50421 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
50423 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
50424 uid and gid actually remain unchanged.
50426 1998-07-07 Jim Meyering <meyering@ascend.com>
50428 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
50430 1998-07-04 Jim Meyering <meyering@ascend.com>
50432 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
50433 to prove that this macro can be used in packages without regex.c.
50435 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
50437 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
50440 1998-07-03 Jim Meyering <meyering@ascend.com>
50442 * m4/gettext.m4: Add -lintl if it's found to be necessary.
50444 * m4/gettext.m4: New file -- from gettext-0.10.35.
50445 * m4/lcmessage.m4: Likewise.
50446 * m4/progtest.m4: Likewise.
50448 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
50449 * m4/jm-macros.m4: Require the new macro.
50451 1998-06-29 Jim Meyering <meyering@ascend.com>
50453 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
50454 for the definition of NGROUPS (used in a system header included
50457 1998-06-28 Jim Meyering <meyering@ascend.com>
50459 * m4/ls-mntd-fs.m4: New file.
50460 * m4/fstypename.m4: New file.
50462 * m4/jm-macros.m4: Require the new macro.
50463 * m4/jm-glibc-io.m4: New file.
50465 1998-05-19 Jim Meyering <meyering@ascend.com>
50467 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
50468 * m4/lchown.m4: New file.
50470 * m4/Makefile.am.in: New file.
50471 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
50473 1998-05-14 Jim Meyering <meyering@ascend.com>
50475 * m4/Makefile.am (EXTRA_DIST): Add them.
50476 * m4/jm-macros.m4: New file.
50477 * m4/utimbuf.m4: New file.
50479 1998-05-12 Jim Meyering <meyering@ascend.com>
50481 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
50483 1998-05-11 Jim Meyering <meyering@ascend.com>
50485 * m4/isc-posix.m4: New file.
50487 1998-05-10 Jim Meyering <meyering@ascend.com>
50489 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
50491 1998-05-09 Jim Meyering <meyering@ascend.com>
50493 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
50494 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
50497 * m4/ssize_t.m4: New file.
50498 * m4/mktime.m4: Remove file -- the new automake has this now.
50500 1998-04-26 Jim Meyering <meyering@ascend.com>
50502 * m4/assert.m4: New file.
50503 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
50505 1998-04-05 Jim Meyering <meyering@ascend.com>
50507 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
50508 (jm_PREREQ): Use it here.
50510 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
50512 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
50515 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
50517 * m4/prereq.m4: New file.
50518 * m4/error.m4: New file.
50519 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
50521 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
50523 * m4/getline.m4: Don't set am_cv_func_working_getline before the
50524 cache-check for the same variable -- that defeated the purpose of
50525 the test; the test program was never run. This was a problem only
50526 on systems with losing getline functions -- HP-UX 10.20 is one.
50527 Reported by Bjorn Helgaas.
50529 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
50531 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
50533 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
50535 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
50537 * m4/const.m4: New file. Use an initializer in this declaration
50538 typedef int charset[2]; const charset x;
50539 Reported by Bob Glickstein.
50541 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
50543 * m4/chown.m4: Fix reversed types on -1 args to chown.
50546 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
50548 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
50549 Add lseek and memchr.
50551 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
50552 T.E.Dickey <dickey@clark.net> said that some older preprocessors
50553 have a 20-character limit on names.
50555 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
50557 * m4/inttypes_h.m4: New file.
50558 * m4/uintmax_t.m4: New file.
50559 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
50568 Copyright (C) 1997-2009 Free Software Foundation, Inc.
50570 Copying and distribution of this file, with or without
50571 modification, are permitted provided the copyright notice
50572 and this notice are preserved.