1 2009-12-23 Bruno Haible <bruno@clisp.org>
3 * tests/test-localename.c (test_locale_name): New function, extracted
4 from main. Also test mixed situations.
5 (test_locale_name_posix, test_locale_name_environ,
6 test_locale_name_default): New functions.
7 (main): Invoke them all.
8 * modules/localename-tests (configure.ac): Test for newlocale.
10 2009-12-23 Bruno Haible <bruno@clisp.org>
12 unistd: Ensure getcwd gets declared before being overridden.
13 * lib/unistd.in.h: Conditionally include <io.h>.
15 2009-12-22 Bruno Haible <bruno@clisp.org>
17 wchar: Diagnose broken combination of glibc and gcc versions and flags.
18 * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
19 (gl_WCHAR_H): Invoke it.
20 * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
21 * doc/posix-headers/wchar.texi: Mention the interoperability problem.
22 Reported by Karl Berry <karl@freefriends.org>.
24 2009-12-22 Eric Blake <ebb9@byu.net>
26 math, unistd: avoid redundant includes
27 * lib/math.in.h (isnan): No need to re-include <math.h>.
28 * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
30 getsubopt: work around cygwin bug
31 * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
32 avoid conflicting with system getsubopt.
33 * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36 getopt: synchronize from glibc
37 * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
38 parameter order. Adjust all callers.
39 (_getopt_internal_r, main): Adjust quoting in error messages.
40 Drop considerations for outdated POSIX 1003.2 error message.
41 * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
43 * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
45 test-getopt: test stderr behavior
46 * modules/getopt-posix-tests (Depends-on): Add dup2.
47 * tests/test-getopt.c (ASSERT): Avoid stderr.
48 (main): Move stderr to a temporary file.
49 * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
50 Instead, add parameter to inform caller if output occurred.
51 (test_getopt): Adjust all existing tests to expect silence, and
52 add new tests of leading ":".
53 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
54 glibc shortcomings with leading "-:" or "+:" in optstring.
55 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
57 * doc/posix-functions/getopt.texi (getopt): Likewise.
59 test-getopt: enhance test
60 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
62 * tests/test-getopt.c (OPTIND_MIN): Move...
63 * tests/test-getopt.h (OPTIND_MIN): ...here.
64 * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
65 Require that optind=0 works, since modern BSD supports it in
66 addition to optreset, and since coreutils expects it.
67 (test_getopt_long_only): New test.
68 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
69 glibc shortcomings with 'W;', and enforcement of optind=0.
70 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
73 2009-12-21 Bruno Haible <bruno@clisp.org>
75 localename: Improvements for MacOS X and Cygwin.
76 * lib/localename.h (gl_locale_name_environ): New declaration.
77 * lib/localename.c (gl_locale_name_environ): New function, extracted from
78 gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
79 (gl_locale_name_posix): Invoke it.
80 (gl_locale_name_default): Add comments. Use Windows native API also on
83 2009-12-21 Bruno Haible <bruno@clisp.org>
85 Update list of Win32 locale ids.
86 * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
87 (LANG_SAMI): Renamed from LANG_SAAMI.
88 (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
89 LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
90 LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
91 LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
92 (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
93 SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
94 SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
95 SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
96 SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
97 SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
98 SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
99 SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
100 SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
101 SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
102 SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
103 SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
104 SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
105 SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
106 SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
107 SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
108 SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
109 SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
110 SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
111 SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
112 SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
113 SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
114 SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
115 SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
116 SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
117 SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
118 SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
119 SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
120 SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
121 SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
122 SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
123 SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
124 SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
125 SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
126 SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
127 SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
128 SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
129 SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
130 SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
131 SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
132 SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
133 SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
134 SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
135 SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
136 SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
137 SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
138 SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
139 SUBLANG_ZULU_SOUTH_AFRICA): New macros.
140 (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
141 locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
142 Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
143 Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
144 Add more languages and countries for Sami, Sorbian. Add more countries
145 for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
146 for Pashto. Change country for Syriac, Tswana.
148 2009-12-21 Eric Blake <ebb9@byu.net>
150 test-utimens: avoid spurious failure
151 * tests/test-chown.h (nap): Factor...
152 * tests/nap.h: ...into new file.
153 * tests/test-lchown.h (nap): Avoid duplication.
154 * tests/test-utimens-common.h (nap): Use shared implementation,
155 necessary on file systems with 1-second resolution.
156 * modules/chown-tests (Files): Include new file.
157 * modules/fdutimensat-tests (Files): Likewise.
158 * modules/futimens-tests (Files): Likewise.
159 * modules/lchown-tests (Files): Likewise.
160 * modules/openat-tests (Files): Likewise.
161 * modules/utimens-tests (Files): Likewise.
162 * modules/utimensat-tests (Files): Likewise.
164 2009-12-19 Eric Blake <ebb9@byu.net>
166 futimens, utimensat: work around Linux bug
167 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
168 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
169 * lib/utimensat.c (rpl_utimensat): Work around it.
170 * lib/futimens.c (rpl_futimens): Adjust comment.
172 utimens: work around Linux ctime bug
173 * lib/utimens.c (detect_ctime_bug): New helper function.
174 (update_timespec): Differentiate between workaround needed for
175 this bug vs. what is needed for systems that lack utimensat.
176 (fdutimens, lutimens): Work around bug.
178 utimens: check for ctime update
179 * tests/test-utimens-common.h (check_ctime): Define.
180 * tests/test-utimens.h (test_utimens): Expose the Linux bug.
181 * tests/test-futimens.h (test_futimens): Likewise.
182 * tests/test-lutimens.h (test_lutimens): Likewise.
183 * doc/posix-functions/futimens.texi (futimens): Document the bug.
184 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
186 2009-12-19 Bruno Haible <bruno@clisp.org>
188 dprintf-posix: Check against memory leak fixed on 2009-12-15.
189 * tests/test-dprintf-posix2.sh: New file.
190 * tests/test-dprintf-posix2.c: New file.
191 * modules/dprintf-posix-tests (Files): Add them.
192 (configure.ac): Check for getrlimit and setrlimit.
193 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
195 2009-12-19 Bruno Haible <bruno@clisp.org>
197 fprintf-posix: Check against memory leak fixed on 2009-12-15.
198 * tests/test-fprintf-posix3.sh: New file.
199 * tests/test-fprintf-posix3.c: New file.
200 * modules/fprintf-posix-tests (Files): Add them.
201 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
203 2009-12-19 Eric Blake <ebb9@byu.net>
206 * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
207 * lib/dirfd.c (dirfd): Likewise.
209 canonicalize: reduce memory usage
210 * lib/canonicalize.c (canonicalize_filename_mode): Trim the
212 Reported by Solar Designer <solar@openwall.com>.
214 2009-12-19 Bruno Haible <bruno@clisp.org>
216 New module attribute 'Applicability'.
217 * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
218 * gnulib-tool: New option --extract-applicability.
219 (func_usage): Document it.
220 (sed_extract_prog): Recognize it.
221 (func_get_applicability): New function.
222 (func_import): Generalize handling of 'link-warning' module.
223 * modules/link-warning (Applicability): New section.
224 * modules/arg-nonnull (Applicability): New section.
225 Repoted by Simon Josefsson <simon@josefsson.org>.
227 2009-12-19 Bruno Haible <bruno@clisp.org>
230 * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
231 * lib/fseeko.c (rpl_fseeko): Likewise.
233 2009-12-16 José E. Marchesi <jemarch@gnu.org> (tiny change)
235 * lib/gl_list.h: Fix typo in comment.
237 2009-12-16 Eric Blake <ebb9@byu.net>
239 fcntl: use to simplify other modules
240 * modules/cloexec (Depends-on): Add fcntl.
241 * modules/fchdir (Depends-on): Likewise.
242 * modules/fd-safer-flag (Depends-on): Likewise.
243 * modules/unistd-safer (Depends-on): Likewise.
244 * modules/dup3 (configure.ac): Set module indicator.
245 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
247 * lib/fchdir.c (_gl_register_dup): Fix comment.
248 * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
249 * lib/dup-safer.c (dup_safer): Likewise.
250 * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
251 * lib/dup3.c (dup3): Likewise.
252 * tests/test-fchdir.c (main): Enhance test.
253 Fixes a dup_cloexec bug reported by OndÅ™ej VaÅ¡Ãk.
255 fcntl: port portions of fcntl to mingw
256 * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
257 * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
258 replacement for mingw.
259 * modules/fcntl (Description): Update.
260 (Depends-on): Add dup2.
261 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
262 * modules/fcntl-h (Makefile.am): Substitute it.
263 * lib/fcntl.in.h (fcntl): Update declaration.
264 (F_DUPFD, F_GETFD): New macros, when needed.
265 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
266 * doc/posix-functions/fcntl.texi (fcntl): Likewise.
267 * tests/test-fcntl.c (check_flags, main): Enhance test for items
270 fcntl: work around cygwin bug in F_DUPFD
271 * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
272 (gl_FUNC_FCNTL): Use it. Test for F_DUPFD bug.
273 * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
274 <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
275 * doc/posix-functions/fcntl.texi (fcntl): Document it.
277 fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
278 * modules/fcntl (Files): List new files.
279 (configure.ac): Run a test.
280 * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
281 * lib/fcntl.c (rpl_fcntl): Likewise.
282 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
283 (gl_FCNTL_H): Always replace fcntl.h.
284 * modules/fcntl-h (Makefile.am): Substitute witnesses.
285 * lib/fcntl.in.h (fcntl): Declare replacement.
286 (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
287 needed, plus a witness.
288 * doc/posix-functions/fcntl.texi (fcntl): Document this.
289 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
290 * tests/test-fcntl.c: New file.
291 * modules/fcntl-tests: Likewise.
293 binary-io: avoid potential compilation warning
294 * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
297 fflush: avoid compilation error on NetBSD
298 * lib/fflush.c (update_fpos_cache): Use a union to safely convert
299 between off_t and fpos_t, since the latter is sometimes a struct.
300 * lib/fseeko.c (rpl_fseeko): Likewise.
301 Reported by Alexander Nasonov <alnsn@yandex.ru>.
303 2009-12-15 Eric Blake <ebb9@byu.net>
305 fcntl-h, stdio, sys_ioctl: fix declarations
306 * lib/stdio.in.h (dprintf): Use of link warning on a variadic
307 function must not take arguments.
308 * lib/sys_ioctl.in.h (ioctl): Likewise.
309 * lib/fcntl.in.h (openat): Likewise. Declare extern.
310 (open): Add a link warning.
312 2009-12-15 Jim Meyering <meyering@redhat.com>
314 areadlink, areadlink-with-size: relax license to LGPLv2+
315 * modules/areadlink (License): Relax to LGPLv2+.
316 * modules/areadlink-with-size (License): Likewise.
318 2009-12-15 Joel E. Denny <jdenny@clemson.edu>
319 Bruno Haible <bruno@clisp.org>
321 *printf: Fix memory leak.
322 * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
323 * lib/vfprintf.c (vfprintf): Likewise.
324 * lib/dprintf.c (dprintf): Likewise.
325 * lib/vdprintf.c (vdprintf): Likewise.
327 2009-12-14 Eric Blake <ebb9@byu.net>
329 accept4: adjust module dependencies
330 * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
332 utimens: one more try at avoiding compiler warning
333 * lib/utimens.c (lutimens): Lower scope of result.
335 2009-12-13 Bruno Haible <bruno@clisp.org>
337 Move the malloc checking from module 'list' to new module 'xlist'.
338 * modules/xlist: New file.
339 * lib/gl_xlist.h: New file.
340 * lib/gl_xlist.c: New file.
341 * lib/gl_list.h (gl_list_create_empty, gl_list_create,
342 gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
343 gl_list_add_last, gl_list_add_before, gl_list_add_after,
344 gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
345 (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
346 gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
347 gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
348 gl_sortedlist_nx_add): New declarations.
349 (struct gl_list_implementation): Rename and change methods accordingly.
350 (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
351 (gl_list_nx_create): Renamed from gl_list_create.
352 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
353 (gl_list_nx_set_at): Renamed from gl_list_set_at.
354 (gl_list_nx_add_first): Renamed from gl_list_add_first.
355 (gl_list_nx_add_last): Renamed from gl_list_add_last.
356 (gl_list_nx_add_before): Renamed from gl_list_add_before.
357 (gl_list_nx_add_after): Renamed from gl_list_add_after.
358 (gl_list_nx_add_at): Renamed from gl_list_add_at.
359 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
360 * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
361 gl_list_create_empty.
362 (gl_list_nx_create): Renamed from gl_list_create.
363 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
364 (gl_list_nx_set_at): Renamed from gl_list_set_at.
365 (gl_list_nx_add_first): Renamed from gl_list_add_first.
366 (gl_list_nx_add_last): Renamed from gl_list_add_last.
367 (gl_list_nx_add_before): Renamed from gl_list_add_before.
368 (gl_list_nx_add_after): Renamed from gl_list_add_after.
369 (gl_list_nx_add_at): Renamed from gl_list_add_at.
370 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
371 * lib/gl_array_list.c: Don't include xalloc.h.
372 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
373 NULL upon out-of-memory.
374 (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
376 (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
377 Change return type to 'int'.
378 (gl_array_nx_set_at): Renamed from gl_array_set_at.
379 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
380 (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
382 (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
384 (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
386 (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
388 (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
390 (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
392 (gl_array_list_implementation): Update.
393 * lib/gl_carray_list.c: Don't include xalloc.h.
394 (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
395 Return NULL upon out-of-memory.
396 (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
398 (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
399 Change return type to 'int'.
400 (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
401 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
402 (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
404 (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
406 (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
408 (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
409 (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
410 (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
412 (gl_carray_list_implementation): Update.
413 * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
414 * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
415 gl_linked_create_empty. Return NULL upon out-of-memory.
416 (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
418 (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
419 Change return type to 'int'. Return -1 upon out-of-memory.
420 (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
422 (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
424 (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
426 (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
427 NULL upon out-of-memory.
428 (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
430 (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
432 (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
434 * lib/gl_linked_list.c: Don't include xalloc.h.
435 (gl_linked_list_implementation): Update.
436 * lib/gl_linkedhash_list.c: Don't include xalloc.h.
437 (add_to_bucket): Change return type to 'int'.
438 (gl_linkedhash_list_implementation): Update.
439 * lib/gl_anytree_list1.h (free_subtree): New function.
440 * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
441 gl_tree_create_empty. Return NULL upon out-of-memory.
442 (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
443 Change return type to 'int'. Return -1 upon out-of-memory.
444 (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
446 (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
447 (gl_tree_remove_node): New function, moved here from
448 lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
449 (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
451 * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
452 malloc, not xmalloc. Return NULL upon out-of-memory.
453 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
455 (gl_tree_remove_node_from_tree): New function, extracted from
457 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
459 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
461 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
463 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
465 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
466 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
467 not xmalloc. Return NULL upon out-of-memory.
468 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
470 (gl_tree_remove_node_from_tree): New function, extracted from
472 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
474 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
476 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
478 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
480 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
481 * lib/gl_avltree_list.c: Don't include xalloc.h. Include
482 gl_anytree_list1.h before gl_anyavltree_list2.h.
483 (gl_avltree_list_implementation): Update.
484 * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
485 gl_anytree_list1.h before gl_anyavltree_list2.h.
486 (gl_rbtree_list_implementation): Update.
487 * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
488 Change return type to 'int'. Return -1 upon out-of-memory. Use
490 * lib/gl_avltreehash_list.c: Don't include xalloc.h.
491 (gl_avltreehash_list_implementation): Update.
492 * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
493 (gl_rbtreehash_list_implementation): Update.
494 * modules/array-list (Depends-on): Remove xalloc.
495 * modules/carray-list (Depends-on): Likewise.
496 * modules/linked-list (Depends-on): Likewise.
497 * modules/linkedhash-list (Depends-on): Likewise.
498 * modules/avltree-list (Depends-on): Likewise.
499 * modules/rbtree-list (Depends-on): Likewise.
500 * modules/avltreehash-list (Depends-on): Likewise.
501 * modules/rbtreehash-list (Depends-on): Likewise.
503 * modules/xsublist: New file.
504 * lib/gl_xsublist.h: New file.
505 * lib/gl_xsublist.c: New file.
506 * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
507 (gl_sublist_nx_create): New declaration.
508 * lib/gl_sublist.c: Don't include xalloc.h.
509 (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
510 (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
511 (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
512 Change return type to 'int'. Return -1 upon out-of-memory.
513 (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
515 (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
516 NULL upon out-of-memory.
517 (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
519 (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
520 NULL upon out-of-memory.
521 (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
522 NULL upon out-of-memory.
523 (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
525 (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
526 (gl_sublist_list_implementation): Update.
527 (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
529 * modules/sublist (Depends-on): Remove xalloc.
531 * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
532 * tests/test-carray_list.c: Likewise.
533 * tests/test-linked_list.c: Likewise.
534 * tests/test-linkedhash_list.c: Likewise.
535 * tests/test-avltree_list.c: Likewise.
536 * tests/test-rbtree_list.c: Likewise.
537 * tests/test-avltreehash_list.c: Likewise.
538 * tests/test-rbtreehash_list.c: Likewise.
539 * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
540 * modules/carray-list-tests (Makefile.am): Likewise.
541 * modules/linked-list-tests (Makefile.am): Likewise.
542 * modules/linkedhash-list-tests (Makefile.am): Likewise.
543 * modules/avltree-list-tests (Makefile.am): Likewise.
544 * modules/rbtree-list-tests (Makefile.am): Likewise.
545 * modules/avltreehash-list-tests (Makefile.am): Likewise.
546 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
548 * NEWS: Mention the changes.
550 * lib/clean-temp.c: Include gl_xlist.h.
551 * modules/clean-temp (Depends-on): Add xlist.
553 * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
554 * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
556 * tests/test-array_oset.c: Include gl_xlist.h.
557 * modules/array-oset-tests (Depends-on): Add xlist.
559 Reported by José E. Marchesi <jemarch@gnu.org>.
561 2009-12-13 Bruno Haible <bruno@clisp.org>
563 Move the malloc checking from module 'oset' to new module 'xoset'.
564 * modules/xoset: New file.
565 * lib/gl_xoset.h: New file.
566 * lib/gl_xoset.c: New file.
567 * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
569 (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
570 (struct gl_oset_implementation): Rename and change methods accordingly.
571 (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
572 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
573 'int'. Mark as __warn_unused_result__.
574 * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
575 gl_oset_create_empty.
576 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
578 * lib/gl_array_oset.c: Don't include xalloc.h.
579 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
581 (grow): Change return type to 'int'. Don't call xalloc_die.
582 (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
584 (gl_array_nx_add): Renamed from gl_array_add. Change return type to
586 (gl_array_oset_implementation): Update.
587 * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
588 gl_tree_create_empty.
589 (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
591 * lib/gl_avltree_oset.c: Don't include xalloc.h.
592 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
594 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
596 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
598 (gl_avltree_oset_implementation): Update.
599 * lib/gl_rbtree_oset.c: Don't include xalloc.h.
600 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
602 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
604 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
606 (gl_rbtree_oset_implementation): Update.
607 * modules/array-oset (Depends-on): Remove xalloc.
608 * modules/avltree-oset (Depends-on): Likewise.
609 * modules/rbtree-oset (Depends-on): Likewise.
610 * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
611 * tests/test-avltree_oset.c: Likewise.
612 * tests/test-rbtree_oset.c: Likewise.
613 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
614 * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
615 * modules/rbtree-oset-tests (Makefile.am): Likewise.
616 * NEWS: Mention the change.
618 2009-12-05 Alfred M. Szmidt <ams@gnu.org>
620 maint.mk: allow a project to override release-prep commands
621 * top/maint.mk (alpha, beta, stable): Move release-preparatory
622 commands into a new rule.
623 (release-prep): New rule.
624 (release-prep-hook): New overridable variable.
626 2009-12-13 Bruno Haible <bruno@clisp.org>
628 * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
630 2009-12-13 Jim Meyering <meyering@redhat.com>
632 maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
633 * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
635 2009-12-12 Bruno Haible <bruno@clisp.org>
638 * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
640 2009-12-12 Karl Berry <karl@gnu.org>
642 * config/srclist.txt (strtoll.c): tab changes, no more sync.
644 2009-12-12 Bruno Haible <bruno@clisp.org>
646 * m4/po.m4: Undo incorrect untabification.
648 2009-12-12 Bruno Haible <bruno@clisp.org>
650 c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
651 * modules/c-strtod (Depends-on): Add locale.
652 * modules/c-strtold (Depends-on): Likewise.
654 2009-12-12 Bruno Haible <bruno@clisp.org>
656 * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
658 2009-12-11 Eric Blake <ebb9@byu.net>
660 setenv: relax requirement in light of POSIX ruling
661 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
663 * tests/test-setenv.c (main): Relax test.
664 * tests/test-unsetenv.c (main): Likewise.
665 * doc/posix-functions/setenv.texi (setenv): Document this.
666 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
668 2009-12-11 Bruno Haible <bruno@clisp.org>
670 New module 'fd-safer-flag'.
671 * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
672 * lib/dup-safer.c (dup_safer_flag): Remove function.
673 * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
674 * lib/fd-safer.c (fd_safer_flag): Remove function.
675 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
676 * modules/cloexec (configure.ac): Drop indicator macro.
677 * modules/fd-safer-flag: New file.
678 * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
679 * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
680 * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
682 2009-12-11 Bruno Haible <bruno@clisp.org>
684 Tests for module 'nl_langinfo'.
685 * modules/nl_langinfo-tests: New file.
686 * tests/test-nl_langinfo.sh: New file.
687 * tests/test-nl_langinfo.c: New file.
689 New module 'nl_langinfo'.
690 * lib/nl_langinfo.c: New file.
691 * m4/nl_langinfo.m4: New file.
692 * modules/nl_langinfo: New file.
693 * doc/posix-functions/nl_langinfo.texi: Mention the new module.
695 2009-12-11 Bruno Haible <bruno@clisp.org>
697 Tests for module 'langinfo'.
698 * modules/langinfo-tests: New file.
699 * tests/test-langinfo.c: New file.
701 New module 'langinfo'.
702 * lib/langinfo.in.h: New file.
703 * m4/langinfo_h.m4: New file.
704 * modules/langinfo: New file.
705 * doc/posix-headers/langinfo.texi: Mention the new module.
707 2009-12-11 Bruno Haible <bruno@clisp.org>
709 * lib/config.charset: Untabify.
711 2009-12-11 Bruno Haible <bruno@clisp.org>
713 * modules/unistd-safer (configure.ac): Drop indicator macro.
715 2009-12-11 Bruno Haible <bruno@clisp.org>
717 Move pipe2-safer code to its own file.
718 * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
719 * lib/pipe-safer.c (pipe2_safer): Remove function.
720 * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
721 (Makefile.am): Add it to lib_SOURCES.
723 2009-12-10 Bruno Haible <bruno@clisp.org>
725 * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
727 2009-12-10 Bruno Haible <bruno@clisp.org>
729 Declare which arguments expect non-NULL values, for GCC and clang.
730 * build-aux/arg-nonnull.h: New file.
731 * modules/arg-nonnull: New file.
732 * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
733 (inet_ntop, inet_pton): Use it.
734 * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
735 (closedir, dirfd, opendir, scandir, alphasort): Use it.
736 * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
737 (open, openat): Use it.
738 * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
740 * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
741 (getopt, getopt_long, getopt_long_only): Use it.
742 * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
743 * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
745 * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
746 (iconv_open): Use it.
747 * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
748 (strtoimax, strtoumax): Use it.
749 * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
751 * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
752 (frexp, frexpl): Use it.
753 * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
754 (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
755 * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
756 (tsearch, tfind, tdelete, twalk): Use it.
757 * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
758 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
760 * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
761 (posix_spawn, posix_spawnp, posix_spawnattr_init,
762 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
763 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
764 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
765 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
766 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
767 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
768 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
769 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
770 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
772 * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
773 (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
774 rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
775 obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
776 rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
777 vfprintf, vprintf, vsnprintf, vsprintf): Use it.
778 * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
779 (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
780 mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
781 setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
782 strtoull, unsetenv): Use it.
783 * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
784 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
785 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
786 strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
787 mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
788 mbsspn, mbssep, mbstok_r, strverscmp): Use it.
789 * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
790 (strcasecmp, strncasecmp): Use it.
791 * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
792 (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
793 rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
794 rpl_setsockopt): Use it.
795 * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
796 (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
797 mkfifoat, mknod, mknodat, stat, utimensat): Use it.
798 * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
799 (gettimeofday): Use it.
800 * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
802 * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
804 * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
805 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
806 * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
807 (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
808 getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
809 pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
810 unlinkat, write): Use it.
811 * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
812 (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
813 * lib/argv-iter.h: Include arg-nonnull.h.
814 (_ATTRIBUTE_NONNULL_): Remove macro.
815 (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
816 argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
817 * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
819 * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
820 * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
821 * lib/glob.c (_GL_ARG_NONNULL): Likewise.
822 * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
823 * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
824 * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
825 * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
826 * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
827 * modules/arpa_inet (Depends-on): Add arg-nonnull.
828 (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
829 * modules/dirent (Depends-on): Add arg-nonnull.
830 (Makefile.am): Insert arg-nonnull.h into dirent.h.
831 * modules/fcntl-h (Depends-on): Add arg-nonnull.
832 (Makefile.am): Insert arg-nonnull.h into fcntl.h.
833 * modules/fnmatch (Depends-on): Add arg-nonnull.
834 (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
835 * modules/getopt-posix (Depends-on): Add arg-nonnull.
836 (Makefile.am): Insert arg-nonnull.h into getopt.h.
837 * modules/glob (Depends-on): Add arg-nonnull.
838 (Makefile.am): Insert arg-nonnull.h into glob.h.
839 * modules/iconv_open (Depends-on): Add arg-nonnull.
840 (Makefile.am): Insert arg-nonnull.h into iconv.h.
841 * modules/inttypes (Depends-on): Add arg-nonnull.
842 (Makefile.am): Insert arg-nonnull.h into inttypes.h.
843 * modules/locale (Depends-on): Add arg-nonnull.
844 (Makefile.am): Insert arg-nonnull.h into locale.h.
845 * modules/math (Depends-on): Add arg-nonnull.
846 (Makefile.am): Insert arg-nonnull.h into math.h.
847 * modules/netdb (Depends-on): Add arg-nonnull.
848 (Makefile.am): Insert arg-nonnull.h into netdb.h.
849 * modules/search (Depends-on): Add arg-nonnull.
850 (Makefile.am): Insert arg-nonnull.h into search.h.
851 * modules/signal (Depends-on): Add arg-nonnull.
852 (Makefile.am): Insert arg-nonnull.h into signal.h.
853 * modules/spawn (Depends-on): Add arg-nonnull.
854 (Makefile.am): Insert arg-nonnull.h into spawn.h.
855 * modules/stdio (Depends-on): Add arg-nonnull.
856 (Makefile.am): Insert arg-nonnull.h into stdio.h.
857 * modules/stdlib (Depends-on): Add arg-nonnull.
858 (Makefile.am): Insert arg-nonnull.h into stdlib.h.
859 * modules/string (Depends-on): Add arg-nonnull.
860 (Makefile.am): Insert arg-nonnull.h into string.h.
861 * modules/strings (Depends-on): Add arg-nonnull.
862 (Makefile.am): Insert arg-nonnull.h into strings.h.
863 * modules/sys_socket (Depends-on): Add arg-nonnull.
864 (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
865 * modules/sys_stat (Depends-on): Add arg-nonnull.
866 (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
867 * modules/sys_time (Depends-on): Add arg-nonnull.
868 (Makefile.am): Insert arg-nonnull.h into sys/time.h.
869 * modules/sys_times (Depends-on): Add arg-nonnull.
870 (Makefile.am): Insert arg-nonnull.h into sys/times.h.
871 * modules/sys_utsname (Depends-on): Add arg-nonnull.
872 (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
873 * modules/time (Depends-on): Add arg-nonnull.
874 (Makefile.am): Insert arg-nonnull.h into time.h.
875 * modules/unistd (Depends-on): Add arg-nonnull.
876 (Makefile.am): Insert arg-nonnull.h into unistd.h.
877 * modules/wchar (Depends-on): Add arg-nonnull.
878 (Makefile.am): Insert arg-nonnull.h into wchar.h.
879 * modules/argv-iter (Depends-on): Add arg-nonnull.
880 * tests/test-canonicalize.c (null_ptr): New function.
882 * tests/test-canonicalize-lgpl.c (null_ptr): New function.
884 * tests/test-memmem.c (null_ptr): New function.
886 Reported by Jim Meyering.
888 2009-12-10 Bruno Haible <bruno@clisp.org>
890 Use spaces for indentation, not tabs.
891 * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
893 * build-aux/*.h: Untabify.
894 * tests/**/*.[hc]: Untabify.
895 * README: New section "Indent with spaces, not TABs", based on
896 coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
897 * NEWS: Mention the change.
899 2009-12-10 Bruno Haible <bruno@clisp.org>
901 pty test: Fix link error.
902 * modules/pty-tests (Makefile.am): Add the default LDADD value to
905 2009-12-07 Simon Josefsson <simon@josefsson.org>
907 * modules/pty: New file.
908 * modules/pty-tests: New file.
909 * m4/pty.m4: New file.
910 * tests/test-pty.c: New file.
911 * doc/glibc-headers/pty.texi: Modified.
912 * doc/glibc-functions/forkpty.texi: Modified.
913 * doc/glibc-functions/openpty.texi: Modified.
915 2009-12-10 Bruno Haible <bruno@clisp.org>
917 Avoid syntax error in C++ mode.
918 * lib/stdio.in.h (rename): Don't use parameter name 'new'.
920 2009-12-10 Bruno Haible <bruno@clisp.org>
922 Use sed with option -e.
923 * gnulib-tool (func_version, func_emit_copyright_notice,
924 func_emit_initmacro_end, func_import, func_create_testdir): Pass
926 * modules/link-warning (Makefile.am): Likewise.
928 2009-12-10 Jim Meyering <meyering@redhat.com>
930 mgetgroups: do not write bytes beyond end of malloc'd buffer
931 * lib/mgetgroups.c: Fix an off-by-one error. When we have no
932 username, we call getgroups with a one-element-shorter buffer,
933 but still told it the length was original, max_n_groups.
935 2009-12-09 Eric Blake <ebb9@byu.net>
937 cloexec: relax license
938 * modules/cloexec (Maintainer): Add myself.
939 (License): Use LGPL, not GPL.
941 link-warning: optimize generation
942 * modules/link-warning (Makefile.am): Reduce process usage.
944 2009-12-09 Bruno Haible <bruno@clisp.org>
946 * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
947 workaround was added on 2009-11-17.
949 2009-12-09 Jim Meyering <meyering@redhat.com>
950 Bruno Haible <bruno@clisp.org>
952 link-warning: Allow extra lines at the top of build-aux/link-warning.h.
953 * modules/link-warning (Makefile.am): Make the comment-removing sed
954 command more robust in the face of bootstrap-prepended comment lines.
956 2009-12-09 Bruno Haible <bruno@clisp.org>
958 * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
961 2009-12-09 Simon Josefsson <simon@josefsson.org>
962 Bruno Haible <bruno@clisp.org>
964 * build-aux/link-warning.h: Add copyright notice.
965 * modules/link-warning (Makefile.am): Generate link-warning.h from
966 build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
967 * NEWS: Mention change in link-warning module.
968 * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
969 * modules/dirent (Makefile.am): Add dependency to dirent.h.
970 * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
971 * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
972 * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
973 * modules/math (Makefile.am): Add dependency to math.h.
974 * modules/search (Makefile.am): Add dependency to search.h.
975 * modules/signal (Makefile.am): Add dependency to signal.h.
976 * modules/spawn (Makefile.am): Add dependency to spawn.h.
977 * modules/stdio (Makefile.am): Add dependency to stdio.h.
978 * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
979 * modules/string (Makefile.am): Add dependency to string.h.
980 * modules/strings (Makefile.am): Add dependency to strings.h.
981 * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
982 * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
983 * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
984 * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
985 * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
986 * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
987 * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
988 * modules/unistd (Makefile.am): Add dependency to unistd.h.
989 * modules/wchar (Makefile.am): Add dependency to wchar.h.
991 2009-12-09 Bruno Haible <bruno@clisp.org>
993 fchdir: Optimize away rpl_fstat when possible.
994 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
995 REPLACE_OPEN_DIRECTORY.
996 * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
998 2009-12-09 Bruno Haible <bruno@clisp.org>
1000 * lib/fchdir.c: Update comment.
1002 2009-12-09 Bruno Haible <bruno@clisp.org>
1004 * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
1006 2009-12-08 Eric Blake <ebb9@byu.net>
1008 fchdir: avoid memory leak on re-registration.
1009 * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
1011 2009-12-08 Jim Meyering <meyering@redhat.com>
1013 init.sh: avoid Solaris 10 /bin/sh portability problem
1014 Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
1016 $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
1017 $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
1019 tests/init.sh relied on that, accepting a --set-path=DIR argument,
1020 and two tests used that idiom.
1021 * tests/init.sh: Update suggested usage comments.
1022 (path_prepend_): New function, to be used in place
1023 of the --src-path=DIR option.
1024 (setup_): Move PATH-prepending code into path_prepend_.
1025 * tests/test-pread.sh: Adapt to new usage.
1026 * tests/test-xalloc-die.sh: Likewise.
1028 2009-12-08 Simon Josefsson <simon@josefsson.org>
1030 * doc/gnulib.texi (Glibc pty.h): Add.
1031 * doc/glibc-functions/forkpty.texi: Add.
1032 * doc/glibc-functions/openpty.texi: Add.
1033 Suggested by Bruno Haible.
1035 2009-12-08 Eric Blake <ebb9@byu.net>
1037 fchdir: fix logic bugs
1038 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
1039 * tests/test-fchdir.c (main): Enhance test.
1040 * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
1043 dup2: fix logic bugs
1044 * lib/dup2.c (dup2): Fix logic bugs. Use HAVE_DUP2 rather than
1045 REPLACE_DUP2 to decide when rpl_dup2 is needed.
1046 * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
1048 (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
1050 2009-12-07 Eric Blake <ebb9@byu.net>
1052 unlink: fix m4 detection
1053 * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
1055 unistd-safer: add unit test
1056 * modules/unistd-safer-tests: New file.
1057 * tests/test-dup-safer.c: Likewise.
1058 * tests/test-cloexec.c (setmode): Avoid compiler warning.
1059 * tests/test-dup2.c (setmode): Likewise.
1060 * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
1062 cloexec: preserve text vs. binary across dup_cloexec
1063 * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
1065 * modules/dup2-tests (Depends-on): Add binary-io.
1066 * modules/cloexec-tests (Depends-on): Likewise.
1067 * tests/test-dup2.c (setmode, is_mode): New helpers.
1068 (main): Add tests that translation mode is preserved.
1069 * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
1070 Reported by Bruno Haible.
1072 mgetgroups: reduce duplicate listings
1073 * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
1075 * tests/test-chown.h (test_chown): Simplify client.
1076 * tests/test-lchown.h (test_lchown): Likewise.
1078 2009-12-06 Bruno Haible <bruno@clisp.org>
1080 * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
1083 2009-12-06 Bruno Haible <bruno@clisp.org>
1085 * lib/progname.c: Include stdio.h, stdlib.h.
1086 (set_program_name): Reject a NULL argument.
1088 2009-12-05 Eric Blake <ebb9@byu.net>
1090 pipe2-safer: new module
1091 * modules/pipe2-safer: New file.
1092 * lib/unistd-safer.h (pipe2_safer): New prototype.
1093 * lib/unistd--.h (pipe2): New wrapper.
1094 * lib/pipe-safer.c (pipe2_safer): New function.
1095 * modules/pipe (Depends-on): Add pipe2-safer.
1096 * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
1098 stdlib-safer: preserve cloexec flag for mkostemp[s]
1099 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
1102 unistd-safer: allow preservation of cloexec status via flag
1103 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
1105 * lib/dup-safer.c (dup_safer_flag): New function.
1106 * lib/fd-safer.c (fd_safer_flag): Likewise.
1107 * modules/cloexec (configure.ac): Set witness.
1109 test-dup2: enhance test
1110 * modules/dup2-tests (Depends-on): Add cloexec.
1111 * tests/test-dup2.c (main): Enhance test.
1113 cloexec: add dup_cloexec
1114 * lib/cloexec.h (dup_cloexec): New prototype. Add copyright
1115 header and comments.
1116 * lib/cloexec.c (set_cloexec_flag): Add comments.
1117 (dup_cloexec): New function, with mingw implementation borrowed
1119 * lib/w32spawn.h (dup_noinherit): ...here.
1120 * modules/execute (Depends-on): Add cloexec.
1121 * modules/pipe (Depends-on): Likewise.
1122 * modules/cloexec (Depends-on): Add dup2.
1123 * modules/cloexec-tests (Files): New file.
1124 * tests/test-cloexec.c: Likewise.
1126 test-xalloc-die: fix test for mingw
1127 * modules/xalloc-die-tests (Files): Add tests/init.sh.
1128 * tests/test-xalloc-die.sh: Rewrite to use init.sh. Strip
1129 directory and .exe suffix off argv[0] output.
1131 test-fseeko: fix test for mingw
1132 * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
1133 than undefining fseek, so test will pass on mingw.
1135 2009-12-05 Bruno Haible <bruno@clisp.org>
1137 * lib/progname.h (set_program_name): Clarify specification.
1138 * lib/progname.c (set_program_name): Likewise.
1139 Reported by Jim Meyering.
1141 2009-12-05 Jim Meyering <meyering@redhat.com>
1143 maint.mk: backslash-escape parens in default regexp
1144 * top/maint.mk (news-check-regexp): Now that we're using grep -E,
1145 backslash-escape the literal parentheses.
1147 maint.mk: news-date-check: use grep -E
1148 * top/maint.mk (today): Define a Make variable, not a...
1149 (news-date-check): ...shell variable.
1150 (news-date-regexp): Use the Make variable.
1151 Use grep's -E option. Change the failing diagnostic to mention
1152 the variable, $(news-date-regexp).
1154 2009-12-04 Alfred M. Szmidt <ams@gnu.org>
1156 maintainer-makefile: allow customization of NEWS entry format
1157 * top/maint.mk (news-date-regexp): New overridable variable.
1158 (news-date-check): Use it.
1160 2009-12-04 Eric Blake <ebb9@byu.net>
1162 mgetgroups: add xgetgroups, and avoid ENOSYS failures
1163 * lib/mgetgroups.h (xgetgroups): New prototype.
1164 * lib/mgetgroups.c (xgetgroups): New wrapper.
1165 (mgetgroups): Handle ENOSYS.
1166 * modules/mgetgroups (Depends-on): Add realloc.
1167 Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
1169 mgetgroups: avoid argument promotion issues with -1
1170 * lib/mgetgroups.c (mgetgroups): A cast is required when checking
1172 * tests/test-chown.h (getegid, test_chown): Likewise.
1173 * tests/test-lchown.h (getegid, test_lchown): Likewise.
1175 2009-12-03 Paolo Bonzini <bonzini@gnu.org>
1177 exclude: Fix header file problems.
1178 * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
1180 2009-12-01 Jim Meyering <meyering@redhat.com>
1182 fts: fts_open: do not let an empty string cause immediate failure
1183 This is required in support of GNU rm, for which the command
1184 "rm A '' B" must process and remove both A and B, in spite of
1185 the empty string argument.
1186 * lib/fts.c (fts_open): Do not let the presence of an empty string
1187 cause fts_open to fail immediately. Most fts-using tools must be
1188 able to process all arguments, in order, and can be expected to
1189 diagnose such arguments themselves.
1191 2009-11-30 Eric Blake <ebb9@byu.net>
1193 utimens: fix compilation error
1194 * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
1195 Declare variable at right scope.
1197 2009-11-29 Jim Meyering <meyering@redhat.com>
1199 bootstrap: handle perl-5.11's changed --version output
1200 * build-aux/bootstrap (get_version): Handle perl separately,
1201 since perl-5.11's --version output is different.
1203 2009-11-28 Jim Meyering <meyering@redhat.com>
1205 userspec: depend on the inttostr module, too
1206 * modules/userspec (Depends-on): Add inttostr.
1208 userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
1209 * lib/userspec.c (parse_with_separator): Do not accept a user ID
1210 number of MAXUID when it evaluates to (uid_t) -1.
1211 Likewise for group ID. Reported by Matt McCutchen in
1212 <http://savannah.gnu.org/bugs/?28113>
1214 userspec: reformat to use spaces, not TABs
1215 * lib/userspec.c: Expand TABs to spaces.
1216 Add Emacs' "indent-tabs-mode: nil" hint.
1218 2009-11-27 Eric Blake <ebb9@byu.net>
1220 getopt-gnu: flush out another BSD bug
1221 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
1222 * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
1224 * tests/test-getopt.h (test_getopt): End lists with NULL.
1225 * tests/test-getopt_long.h (test_getopt_long): Likewise.
1226 (test_getopt_long_posix): Enhance test.
1227 * modules/getopt-posix-tests (Depends-on): Add stdbool.
1228 * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
1230 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
1233 2009-11-27 Simon Josefsson <simon@josefsson.org>
1235 * modules/idpriv-droptemp-tests (Notice): Fix text.
1237 2009-11-27 Jim Meyering <meyering@redhat.com>
1239 test-xalloc-die: avoid spurious failure due to libtool argv difference
1240 In a libtool-enabled project, this test would fail due to a difference
1241 in the emitted program name, e.g.,
1242 -test-xalloc-die: memory exhausted
1243 +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
1244 Use program to avoid that.
1245 * modules/xalloc-die-tests (Depends-on): Add progname.
1246 * tests/test-xalloc-die.c: Include progname.h".
1247 (program_name): Remove decl.
1248 (main): Call set_program_name.
1249 * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
1251 2009-11-26 Richard Jones <rjones@redhat.com>
1253 w32sock: leave win32 error in place.
1254 * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
1256 2009-11-26 Eric Blake <ebb9@byu.net>
1258 init.sh: suggest to use skip_ and fail_ functions in comments
1259 * tests/init.sh: Add a sentence.
1261 2009-11-25 Bruno Haible <bruno@clisp.org>
1263 init.sh: add documentation in comments
1264 * tests/init.sh: Add some developer and user documentation.
1266 2009-11-26 Jim Meyering <meyering@redhat.com>
1268 init.sh: accommodate even those who specify bogus srcdir manually
1269 * tests/init.sh: Normally, srcdir is guaranteed by automake and
1270 configure-time tests to be sanitized, so that there is no need to
1271 use "$srcdir" in Makefile rules and shell scripts. Using $srcdir
1272 (with no double quotes) suffices. However, since tests may be
1273 invoked manually, and since you may explicitly set srcdir to the
1274 name of a directory containing spaces, do quote its uses here.
1275 * tests/test-pread.sh: Likewise.
1276 Suggested by Bruno Haible.
1278 test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
1279 * tests/test-pread.sh: Write no data into the pipe, because
1280 test-pread actually reads none. This avoids a diagnostic,
1281 "bash: echo: write error: Broken pipe", that arises in the unusual
1282 event something is ignoring SIGPIPE, and might be interpreted
1283 as some sort of failure. Reported by Bruno Haible.
1285 2009-11-25 Jim Meyering <meyering@redhat.com>
1287 test-pread: cover failure with ESPIPE and EINVAL
1288 * tests/test-pread.c (main): Test for failure, too.
1289 * tests/test-pread.sh: Invoke with stdin on a pipe.
1290 Suggested by Eric Blake.
1292 pread: improvement and fix
1293 * modules/pread (Depends-on): Depend on lseek, for portability to
1294 e.g., mingw. Suggested by Eric Blake.
1295 * lib/pread.c (__libc_read): Define. Reported by Richard W.M. Jones.
1297 unistd.in.h: correct declaration of pread
1298 * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
1299 Reported by Richard W.M. Jones.
1301 test-pread.sh: distribute the test script
1302 * modules/pread-tests (Files): Include test-pread.sh.
1304 test-pread.sh: clean up
1305 * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
1306 * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
1307 That is unnecessary, since it's always ".".
1308 Suggestion from Eric Blake.
1310 test-pread.sh: make executable
1311 * tests/test-pread.sh: Set executable bit.
1312 Reported by Eric Blake.
1314 correct typo in test-pread.sh
1315 * tests/test-pread.sh: Add #! line.
1318 * tests/test-pread.c: New file.
1319 * tests/test-pread.sh: Likewise.
1320 * modules/pread-tests: Likewise.
1323 * modules/pread: New file.
1324 * lib/unistd.in.h (pread): Define/declare.
1325 * lib/pread.c (pread): New file.
1326 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
1327 * modules/unistd (Makefile.am): Substitute witnesses.
1328 * doc/posix-functions/pread.texi (pread): Update.
1329 * MODULES.html.sh: Add pread.
1331 2009-11-25 Jim Meyering <meyering@redhat.com>
1333 tests/init.sh: new file to be used via most *.sh tests
1334 * tests/init.sh: New file.
1336 2009-11-25 Eric Blake <ebb9@byu.net>
1338 utimens: work around older Linux failure with symlinks
1339 * lib/utimens.c (lutimensat_works_really): New variable.
1340 (fdutimens, lutimens): Use it to manage kernels that support
1341 nanosecond times on files, but not on symlinks.
1342 Reported by OndÅ™ej VaÅ¡Ãk.
1344 utimes: fix configure grammar
1345 * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
1347 2009-11-25 Paolo Bonzini <bonzini@gnu.org>
1349 regex: Fix fastmap for multibyte character ranges.
1350 * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
1351 characters when a multibyte character range is included.
1353 2009-11-22 Andy Wingo <wingo@pobox.com>
1355 version-etc: work also with AM_INIT_AUTOMAKE's no-define option
1356 * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
1358 2009-11-24 Bruno Haible <bruno@clisp.org>
1360 doc: Most *_l functions exist in MacOS X 10.5.
1361 * doc/posix-functions/duplocale.texi: Update platforms list.
1362 * doc/posix-functions/freelocale.texi: Likewise.
1363 * doc/posix-functions/newlocale.texi: Likewise.
1364 * doc/posix-functions/uselocale.texi: Likewise.
1365 * doc/posix-functions/isalnum_l.texi: Likewise.
1366 * doc/posix-functions/isalpha_l.texi: Likewise.
1367 * doc/posix-functions/isblank_l.texi: Likewise.
1368 * doc/posix-functions/iscntrl_l.texi: Likewise.
1369 * doc/posix-functions/isdigit_l.texi: Likewise.
1370 * doc/posix-functions/isgraph_l.texi: Likewise.
1371 * doc/posix-functions/islower_l.texi: Likewise.
1372 * doc/posix-functions/isprint_l.texi: Likewise.
1373 * doc/posix-functions/ispunct_l.texi: Likewise.
1374 * doc/posix-functions/isspace_l.texi: Likewise.
1375 * doc/posix-functions/isupper_l.texi: Likewise.
1376 * doc/posix-functions/iswalnum_l.texi: Likewise.
1377 * doc/posix-functions/iswalpha_l.texi: Likewise.
1378 * doc/posix-functions/iswblank_l.texi: Likewise.
1379 * doc/posix-functions/iswcntrl_l.texi: Likewise.
1380 * doc/posix-functions/iswctype_l.texi: Likewise.
1381 * doc/posix-functions/iswdigit_l.texi: Likewise.
1382 * doc/posix-functions/iswgraph_l.texi: Likewise.
1383 * doc/posix-functions/iswlower_l.texi: Likewise.
1384 * doc/posix-functions/iswprint_l.texi: Likewise.
1385 * doc/posix-functions/iswpunct_l.texi: Likewise.
1386 * doc/posix-functions/iswspace_l.texi: Likewise.
1387 * doc/posix-functions/iswupper_l.texi: Likewise.
1388 * doc/posix-functions/iswxdigit_l.texi: Likewise.
1389 * doc/posix-functions/isxdigit_l.texi: Likewise.
1390 * doc/posix-functions/nl_langinfo_l.texi: Likewise.
1391 * doc/posix-functions/strcasecmp_l.texi: Likewise.
1392 * doc/posix-functions/strcoll_l.texi: Likewise.
1393 * doc/posix-functions/strfmon_l.texi: Likewise.
1394 * doc/posix-functions/strftime_l.texi: Likewise.
1395 * doc/posix-functions/strncasecmp_l.texi: Likewise.
1396 * doc/posix-functions/strxfrm_l.texi: Likewise.
1397 * doc/posix-functions/tolower_l.texi: Likewise.
1398 * doc/posix-functions/toupper_l.texi: Likewise.
1399 * doc/posix-functions/towctrans_l.texi: Likewise.
1400 * doc/posix-functions/towlower_l.texi: Likewise.
1401 * doc/posix-functions/towupper_l.texi: Likewise.
1402 * doc/posix-functions/wcscoll_l.texi: Likewise.
1403 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
1404 * doc/posix-functions/wctrans_l.texi: Likewise.
1405 * doc/posix-functions/wctype_l.texi: Likewise.
1406 * doc/glibc-functions/strptime_l.texi: Likewise.
1407 * doc/glibc-functions/strtod_l.texi: Likewise.
1408 * doc/glibc-functions/strtof_l.texi: Likewise.
1409 * doc/glibc-functions/strtol_l.texi: Likewise.
1410 * doc/glibc-functions/strtold_l.texi: Likewise.
1411 * doc/glibc-functions/strtoll_l.texi: Likewise.
1412 * doc/glibc-functions/strtoul_l.texi: Likewise.
1413 * doc/glibc-functions/strtoull_l.texi: Likewise.
1414 * doc/glibc-functions/wcsftime_l.texi: Likewise.
1415 * doc/glibc-functions/wcstod_l.texi: Likewise.
1416 * doc/glibc-functions/wcstof_l.texi: Likewise.
1417 * doc/glibc-functions/wcstol_l.texi: Likewise.
1418 * doc/glibc-functions/wcstold_l.texi: Likewise.
1419 * doc/glibc-functions/wcstoll_l.texi: Likewise.
1420 * doc/glibc-functions/wcstoul_l.texi: Likewise.
1421 * doc/glibc-functions/wcstoull_l.texi: Likewise.
1423 2009-11-24 Bruno Haible <bruno@clisp.org>
1425 duplocale: Fix logic bug.
1426 * lib/duplocale.c: Don't include <langinfo.h>.
1427 (_NL_LOCALE_NAME): Remove macro.
1428 (rpl_duplocale): Use setlocale instead of nl_langinfo.
1429 * tests/test-duplocale.c (main): Also test duplocale after uselocale.
1431 2009-11-23 Jim Meyering <meyering@redhat.com>
1433 test-update-copyright: don't hard-code /usr/bin/perl
1434 * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
1435 perl to print the current year. Gilles Espinasse reported that
1436 the replaced use of perl was hard-coded as /usr/bin/perl.
1438 2009-11-23 Bruno Haible <bruno@clisp.org>
1440 duplocale: Add support for glibc 2.3.x.
1441 * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
1443 2009-11-22 Bruno Haible <bruno@clisp.org>
1445 vasnprintf: Tiny optimization.
1446 * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
1449 2009-11-22 Bruno Haible <bruno@clisp.org>
1451 Tests for module 'duplocale'.
1452 * modules/duplocale-tests: New file.
1453 * tests/test-duplocale.c: New file.
1455 New module 'duplocale'.
1456 * m4/duplocale.m4: New file.
1457 * lib/locale.in.h (duplocale): New declaration.
1458 * lib/duplocale.c: New file.
1459 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
1460 gl_LOCALE_H_DEFAULTS): New macros.
1461 (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
1462 gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
1463 * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
1465 * modules/duplocale: New file.
1466 * doc/posix-functions/duplocale.texi: Mention the glibc bug.
1468 2009-11-22 Bruno Haible <bruno@clisp.org>
1470 * modules/locale-tests (configure.ac): Test for newlocale function.
1471 * tests/test-locale.c: When the system has extended locale functions,
1472 verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
1474 locale: Make locale_t available when possible.
1475 * lib/locale.in.h: Include <xlocale.h> when it exists.
1476 * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
1477 replace <locale.h> if it does not define locale_t but <xlocale.h> does.
1478 * modules/locale (Depends-on): Add extensions.
1479 (Makefile.am): Also substitute HAVE_XLOCALE_H.
1480 * doc/posix-headers/locale.texi: Document the problem with locale_t.
1482 2009-11-22 Bruno Haible <bruno@clisp.org>
1485 * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
1487 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
1488 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1489 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1491 2009-11-22 Bruno Haible <bruno@clisp.org>
1493 error: account for the possibility of freopen (stdout).
1494 * lib/error.c: Include <unistd.h>.
1495 (flush_stdout): New function, extracted from error and error_at_line.
1496 Determine stdout's fd dynamically.
1497 (error, error_at_line): Invoke flush_stdout.
1498 * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
1499 * modules/error (Depends-on): Add unistd.
1501 2009-11-22 Bruno Haible <bruno@clisp.org>
1503 diffseq: Add comment.
1504 * lib/diffseq.h (IF_LINT): Add comment about pitfall.
1506 2009-11-22 Jim Meyering <meyering@redhat.com>
1508 c-stack: avoid defining an unused static function
1509 * lib/c-stack.c (find_stack_direction): Do not define this function
1510 when it will not be used.
1512 diffseq: avoid spurious gcc warnings
1513 * lib/diffseq.h (IF_LINT2): Define.
1514 (compareseq): Use it to initialize two members of "part".
1515 This avoids two used-uninitialized warnings.
1517 2009-11-21 Jim Meyering <meyering@redhat.com>
1519 c-stack: avoid "ignoring return value of `write'" warning
1520 * lib/c-stack.c: Include "ignore-value.h".
1521 (die): Explicitly ignore each write return value.
1522 * modules/c-stack (Depends-on): Add ignore-value.
1524 2009-11-21 Bruno Haible <bruno@clisp.org>
1526 diffseq: reduce scope of variable 'best'.
1527 * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
1528 variable, earlier used for two different purposes.
1530 2009-11-21 Jim Meyering <meyering@redhat.com>
1532 diffseq: remove useless assignment to "best"
1533 * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
1534 assignment. At that point "best" is already guaranteed to be zero.
1536 2009-11-20 Eric Blake <ebb9@byu.net>
1538 build: mention ftp redirector in release announcements
1539 * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
1540 values that used to come from cfg.mk; mention FTP redirect URL.
1541 * build-aux/announce-gen: Mention the mirror list.
1542 Suggested by Karl Berry.
1544 nanosleep: improve port to mingw
1545 * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
1546 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
1547 LIB_NANOSLEEP, but only when needed.
1548 * modules/select (Link): Document LIBSOCKET.
1549 * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
1552 nanosleep: work around cygwin bug
1553 * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
1554 Fix logic bug when nanosleep fails. Work around cygwin 1.5.x
1556 (getnow): Delete, not needed.
1557 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
1559 * modules/nanosleep (Depends-on): Add intprops and verify. Drop
1560 clock-time, gettime.
1561 * doc/posix-functions/nanosleep.texi (nanosleep): Document the
1563 * modules/nanosleep-tests: New test.
1564 * tests/test-nanosleep.c: New file.
1566 sleep: work around cygwin bug
1567 * lib/sleep.c (rpl_sleep): Work around the bug.
1568 * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
1569 (gl_PREREQ_SLEEP): Delete unused macro.
1570 * modules/sleep (Depends-on): Add verify.
1571 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
1572 * modules/unistd (Makefile.am): Substitute witness.
1573 * lib/unistd.in.h (sleep): Update prototype.
1574 * doc/posix-functions/sleep.texi (sleep): Document the bug.
1575 * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
1576 * modules/sleep-tests (Depends-on): Check for alarm.
1578 2009-11-20 Jim Meyering <meyering@redhat.com>
1580 maint.mk: improve sc_prohibit_magic_number_exit
1581 * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
1582 so it does not match uses like System.exit(1).
1583 Add comments showing how to correct all offenders.
1585 2009-11-19 Eric Blake <ebb9@byu.net>
1587 xalloc-die-tests: add missing library
1588 * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
1590 test-xvasprintf: silence compiler warnings
1591 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
1592 empty string from gcc.
1594 2009-11-19 Jim Meyering <meyering@redhat.com>
1596 xfreopen: new module, from coreutils
1597 * modules/xfreopen: New module.
1598 * lib/xfreopen.c: New file.
1599 * lib/xfreopen.h: New file.
1600 * MODULES.html.sh (File stream based Input/Output"): Add it.
1602 2009-11-19 Eric Blake <ebb9@byu.net>
1604 manywarnings: depend on warnings
1605 * modules/manywarnings (Depends-on): Add warnings.
1607 build: avoid compiler warnings
1608 * lib/select.c (rpl_select): Delete unused variable.
1609 * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
1611 2009-11-18 Eric Blake <ebb9@byu.net>
1613 tests: avoid false negative with --with-packager
1614 * tests/test-version-etc.sh: Discard packager information.
1615 * tests/test-argp-version-etc-1.sh: Likewise.
1616 Reported by Mike Frysinger.
1618 utimens: fix regression on Solaris
1619 * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
1620 * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
1621 can only change fd timestamps via futimesat. Instead, use an
1622 additional witness macro to avoid BSD bug.
1623 Reported by Jim Meyering.
1625 2009-11-17 Eric Blake <ebb9@byu.net>
1627 usleep: use it to simplify tests
1628 * modules/stat-time-tests (Depends-on): Add usleep.
1629 (configure.ac): Drop usleep check.
1630 * modules/chown-tests (Depends-on, configure.ac): Likewise.
1631 * modules/lchown-tests (Depends-on, configure.ac): Likewise.
1632 * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
1633 * modules/futimens-tests (Depends-on, configure.ac): Likewise.
1634 * modules/openat-tests (Depends-on, configure.ac): Likewise.
1635 * modules/utimens-tests (Depends-on, configure.ac): Likewise.
1636 * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
1637 * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
1639 * tests/test-chown.h (nap): Rely on nicer usleep semantics.
1640 * tests/test-lchown.h (nap): Likewise.
1641 * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
1642 * tests/test-stat-time.c (nap): Likewise.
1643 * tests/test-utimens-common.h (nap): Update comments.
1646 * modules/usleep: New file.
1647 * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
1648 * lib/usleep.c (usleep): Likewise.
1649 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
1650 * modules/unistd (Makefile.am): Substitute witnesses.
1651 * lib/unistd.in.h (usleep): Add declaration.
1652 * doc/pastposix-functions/usleep.texi (usleep): Document this.
1653 * MODULES.html.sh (Date and time): Likewise.
1654 * modules/usleep-tests (Depends-on): New test.
1655 * tests/test-usleep.c: New file.
1657 chown: work around OpenBSD bug
1658 * lib/chown.c (rpl_chown): Work around the bug.
1659 * lib/lchown.c (rpl_lchown): Attempt to do likewise.
1660 * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
1661 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
1662 * modules/chown (Depends-on): Add stdbool.
1663 * modules/lchown (Depends-on): Likewise.
1664 * doc/posix-functions/chown.texi (chown): Document the bug.
1665 * doc/posix-functions/lchown.texi (lchown): Likewise.
1666 * tests/test-lchown.h (test_chown): Relax test.
1668 mkstemp: avoid conflict with C++ keyword template
1669 * lib/mkdtemp.c (mkdtemp): Change spelling of template.
1670 * lib/mkostemp.c (mkostemp): Likewise.
1671 * lib/mkostemps.c (mkostemps): Likewise.
1672 * lib/mkstemp.c (mkstemp): Likewise.
1673 * lib/mkstemps.c (mkstemps): Likewise.
1675 xalloc-die-tests: optimize
1676 * tests/test-xalloc-die.sh: Reduce number of processes.
1678 2009-11-17 Simon Josefsson <simon@josefsson.org>
1680 * gnulib-tool: Support LGPLv3+ licenses in module files. Tiny
1681 patch from ludo@gnu.org (Ludovic Courtès).
1683 2009-11-17 Jim Meyering <meyering@redhat.com>
1685 version-etc: use proper license string
1686 * modules/version-etc (License): Use LGPL, not LGPLv3+.
1687 * modules/version-etc-fsf: Likewise.
1689 2009-11-17 Simon Josefsson <simon@josefsson.org>
1691 * tests/test-xalloc-die.sh: Add license. Check that nothing is
1692 printed to stdout. Deal with EOL differences.
1694 2009-11-17 Eric Blake <ebb9@byu.net>
1696 unsetenv: work around Solaris bug
1697 * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
1698 * lib/unsetenv.c (rpl_unsetenv): Work around it.
1699 Reported by Jim Meyering.
1701 vasnprintf: avoid compiler warnings
1702 * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
1704 * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
1706 2009-11-17 Simon Josefsson <simon@josefsson.org>
1708 * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
1709 settings since xalloc-die is no longer the self test,
1712 2009-11-17 Jim Meyering <meyering@redhat.com>
1714 test-xalloc-die.sh: make the code agree with the commit log
1715 * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
1716 at the end, just in case you happen to have a test-xalloc-die
1717 program in some other PATH directory.
1719 test-xalloc-die.sh: fix a portability bug
1720 * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
1721 Instead, set PATH to start with "." and invoke via "test-xalloc-die".
1722 Otherwise, argv[0] (as often seen in diagnostics) would be too
1723 system-dependent, sometimes with, and sometimes without the leading "./".
1725 version-etc-fsf: relax license to LGPLv3+
1726 * modules/version-etc-fsf (License): Relax license.
1728 2009-11-16 Eric Blake <ebb9@byu.net>
1730 xalloc-die-tests: avoid printing null pointer
1731 * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
1733 * tests/test-xalloc-die.c (program_name): Declare.
1734 * tests/test-xalloc-die.sh (tmpfiles): New file.
1736 setenv, unsetenv: work around various bugs
1737 * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
1738 (setenv) [HAVE_SETENV]: Work around bugs.
1739 * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
1740 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
1742 (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
1743 * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
1744 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
1745 * modules/stdlib (Makefile.am): Update substitutions.
1746 * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
1747 * doc/posix-functions/setenv.texi (setenv): Document the bugs.
1748 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
1749 * modules/setenv-tests: New test.
1750 * modules/unsetenv-tests: Likewise.
1751 * tests/test-setenv.c: New file.
1752 * tests/test-unsetenv.c: Likewise.
1754 2009-11-16 Jim Meyering <meyering@redhat.com>
1756 version-etc: relax license to LGPLv3+
1757 * modules/version-etc (License): Relax license.
1759 better AC_REQUIRE expanded-before-required-warning avoidance
1760 * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
1761 with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
1762 Suggested by Eric Blake. This change also reverts commit 1b712ba8,
1763 which is no longer needed.
1765 2009-11-16 Eric Blake <ebb9@byu.net>
1767 test-freading: clean up temporary file
1768 * tests/test-freading.c (main): Remove file on success, and use
1769 ASSERT more liberally.
1770 Reported by Jim Meyering.
1772 2009-11-16 Jim Meyering <meyering@redhat.com>
1774 avoid new AC_REQUIRE expanded-before-required warnings
1775 * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
1777 * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
1778 * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
1780 2009-11-15 Simon Josefsson <simon@josefsson.org>
1782 * tests/test-xalloc-die.c: New file.
1783 * modules/xalloc-die-tests: New file.
1784 * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
1785 XFAIL_TESTS so it can be appended by modules.
1787 2009-11-15 Simon Josefsson <simon@josefsson.org>
1789 * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898. Reported
1790 by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
1792 2009-11-14 Eric Blake <ebb9@byu.net>
1794 fnmatch: avoid compiler warning
1795 * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
1796 to silence compiler warning about mismatch signedness in ?:.
1797 Reported by Robert Millan.
1799 intprops: add double-inclusion guard
1800 * lib/intprops.h: Allow idempotent includes.
1801 Suggested by Bruce Korb.
1803 openat: detect Solaris fchownat bug
1804 * lib/fchownat.c (rpl_fchownat): Work around Solaris bug. Avoid
1805 penalizing glibc chownat when only lchownat is broken.
1806 * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
1807 trailing slash bugs.
1808 * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
1809 * modules/openat-tests (Files): Include more files.
1810 (Depends-on): Add mgetgroups, sleep, stat-time.
1811 (configure.ac): Add additional checks.
1812 (Makefile.am): Build new test.
1813 * tests/test-fchownat.c: New file.
1815 lchown: detect Solaris and FreeBSD bug
1816 * lib/lchown.c (rpl_lchown): Work around bug.
1817 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
1818 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
1819 * modules/unistd (Makefile.am): Populate it.
1820 * lib/unistd.in.h (lchown): Update declaration.
1821 * doc/posix-functions/lchown.texi (lchown): Document the bug.
1822 * modules/lchown-tests: New file.
1823 * tests/test-lchown.h (test_lchown): Likewise.
1824 * tests/test-lchown.c (main): Likewise.
1826 chown: detect Solaris and FreeBSD bug
1827 * lib/chown.c (rpl_chown): Work around bug.
1828 * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
1829 (gl_PREREQ_CHOWN): Delete.
1830 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
1831 * modules/unistd (Makefile.am): Populate it.
1832 * lib/unistd.in.h (chown): Update declaration.
1833 * lib/lchown.c (chown): Update client.
1834 * modules/lchown (Depends-on): Add lstat.
1835 * doc/posix-functions/chown.texi (chown): Document the bug.
1836 * doc/posix-functions/getgroups.texi (getgroups): Document
1838 * modules/chown-tests: New file.
1839 * tests/test-chown.h (test_chown): Likewise.
1840 * tests/test-chown.c (main): Likewise.
1842 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> (tiny change)
1844 gnulib-tool: correctly detect absence of m4 directories
1845 * gnulib-tool: Avoid extra newline on data passed to wc -l.
1847 2009-11-14 Jim Meyering <meyering@redhat.com>
1849 maint.mk: Prohibit inclusion of "xalloc.h" without use.
1850 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
1852 2009-11-14 John W. Eaton <jwe@gnu.org>
1854 strftime.h: wrap funtion declaration in extern "C" block
1855 * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
1857 2009-11-13 Eric Blake <ebb9@byu.net>
1859 getgroups: avoid compiler warning
1860 * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
1862 getgroups: work around FreeBSD bug
1863 * lib/getgroups.c (rpl_getgroups): Work around the bug.
1864 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
1865 * doc/posix-functions/getgroups.texi (getgroups): Document it.
1866 * tests/test-getgroups.c (main): Fix buffer overrun.
1868 getgroups: avoid compilation failure
1869 * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
1870 * modules/getgroups (Depends-on): Add stdint.
1872 2009-11-13 Jim Meyering <meyering@redhat.com>
1874 test-getgroups: avoid compilation failure
1875 * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
1877 2009-11-13 Eric Blake <ebb9@byu.net>
1879 mgetgroups: new module, taken from coreutils
1880 * modules/mgetgroups: New file.
1881 * lib/mgetgroups.h: Likewise.
1882 * lib/mgetgroups.c (mgetgroups): Likewise.
1883 * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
1884 * MODULES.html.sh (Users and groups): Mention it.
1886 getgroups: don't expose GETGROUPS_T to user
1887 * lib/getgroups.c (rpl_getgroups): Change signature. Copy array
1888 an element at a time if GETGROUPS_T is wrong size.
1889 * lib/getugroups.h (getugroups): Change signature.
1890 * lib/unistd.in.h (getgroups): Likewise.
1891 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
1892 signature needs fixing.
1893 * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
1895 * modules/group-member (Depends-on): Add getgroups.
1896 * lib/group-member.c (group_info, get_group_info): Use gid_t.
1897 (group_member): Rely on getgroups replacement.
1898 * lib/getugroups.c (getugroups): Use gid_t.
1899 * tests/test-getgroups.c (main): Likewise.
1900 * NEWS: Mention the signature change.
1901 * doc/posix-functions/getgroups.texi (getgroups): Mention the
1902 problem with signature.
1903 * doc/glibc-functions/setgroups.texi (setgroups): Mention that
1904 GETGROUPS_T is still useful for setgroups.
1906 getgroups, getugroups: provide stubs for mingw
1907 * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
1908 * lib/getugroups.c (getugroups): Likewise.
1909 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
1910 function. Modernize replacement scheme.
1911 (gl_PREREQ_GETGROUPS): Delete.
1912 * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
1913 * modules/getgroups (configure.ac): Declare witness.
1914 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
1915 * modules/unistd (Depends-on): Substitute witness.
1916 * lib/unistd.in.h (getgroups): Declare replacement.
1918 getgroups: avoid calling exit
1919 * modules/getgroups (Depends-on): Add malloc-posix and unistd,
1921 * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
1923 * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
1924 exiting, in the rare case of malloc failure.
1926 getgroups: fix logic error
1927 * lib/getgroups.c (rpl_getgroups): Don't fail if current process
1928 has more than 20 groups.
1929 * modules/getgroups-tests: New test.
1930 * tests/test-getgroups.c: New file.
1932 2009-11-13 Simon Josefsson <simon@josefsson.org>
1934 * tests/test-base64.c: Improve.
1936 2009-11-13 Simon Josefsson <simon@josefsson.org>
1938 * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
1939 Blake <ebb9@byu.net>.
1941 2009-11-13 Simon Josefsson <simon@josefsson.org>
1943 * tests/test-xvasprintf.c: Add %s%s related checks.
1945 2009-11-12 Eric Blake <ebb9@byu.net>
1947 version-etc: match standards.texi style
1948 * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
1949 and use <> only for URLs.
1951 2009-11-10 Kamil Dudka <kdudka@redhat.com>
1953 fts: do not fail on a submount during traversal
1954 * lib/fts.c (fts_build): Read the stat info again after opening
1955 a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
1956 Original report at http://bugzilla.redhat.com/501848.
1958 2009-11-12 Jim Meyering <meyering@redhat.com>
1960 bootstrap: sync from coreutils
1961 * build-aux/bootstrap (bootstrap_epilogue): New function.
1962 Use git_modules_config in one more place. This make bootstrap's
1963 --gnulib-srcdir option more useful for testing.
1965 bootstrap: generalize autoheader check
1966 * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
1969 2009-11-11 Eric Blake <ebb9@byu.net>
1971 mkfifoat: use new modules for Solaris and BSD bugs
1972 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
1973 * lib/mkfifoat.c (mknodat): Split...
1974 * lib/mknodat.c (mknodat): ...into new file.
1975 * modules/mkfifoat (Files): Ship new file.
1976 (Depends-on): Add mkfifo, mknod.
1977 * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
1978 (Depends-on): Add symlink.
1979 * tests/test-mkfifoat.c (main): Enhance test. Drop portions now
1980 redundant with test_mkfifo.h.
1981 (do_mkfifoat, do_mknodat): New helpers.
1984 * modules/mknod: New file.
1985 * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
1986 * lib/mknod.c (mknod): Likewise.
1987 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
1989 * modules/sys_stat (Makefile.am): Substitute them.
1990 * lib/sys_stat.in.h (mknod): Declare replacement.
1991 * MODULES.html.sh (Support for systems lacking POSIX:2008):
1993 * doc/posix-functions/mknod.texi (mknod): Likewise.
1994 * modules/mknod-tests: New test.
1995 * tests/test-mknod.c: Likewise.
1998 * modules/mkfifo: New file.
1999 * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
2000 * lib/mkfifo.c (mkfifo): Likewise.
2001 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
2003 * modules/sys_stat (Makefile.am): Substitute them.
2004 * lib/sys_stat.in.h (mkfifo): Declare replacement.
2005 * MODULES.html.sh (Support for systems lacking POSIX:2008):
2007 * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
2008 * modules/mkfifo-tests: New test.
2009 * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
2010 from test-mkfifoat.c.
2011 * tests/test-mkfifo.c: New file.
2013 readlink: detect FreeBSD bug
2014 * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
2016 * doc/posix-functions/readlink.texi (readlink): Document the bug.
2017 * tests/test-readlink.h (test_readlink): Enhance test.
2019 symlink: detect FreeBSD bug
2020 * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
2022 * doc/posix-functions/symlink.texi (symlink): Document the bug.
2023 * tests/test-symlink.h (test_symlink): Enhance test.
2025 2009-11-10 Eric Blake <ebb9@byu.net>
2027 link: detect FreeBSD bug
2028 * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
2030 * doc/posix-functions/link.texi (link): Document the bug.
2031 * tests/test-link.h (test_link): Enhance test.
2032 * tests/test-linkat.c (main): Update caller.
2034 unlink, remove: detect FreeBSD bug
2035 * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
2037 * doc/posix-functions/unlink.texi (unlink): Document the bug.
2038 * doc/posix-functions/remove.texi (remove): Likewise.
2039 * tests/test-unlink.h (test_unlink): Enhance test.
2040 * tests/test-remove.c (main): Likewise.
2042 2009-11-09 Eric Blake <ebb9@byu.net>
2044 rename: detect FreeBSD bug
2045 * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
2047 * modules/renameat-tests (Depends-on): Add filenamecat.
2048 * tests/test-rename.h (test_rename): Allow one more errno.
2049 * tests/test-renameat.c (main): Likewise.
2050 * doc/posix-functions/rename.texi (rename): Document the bug.
2052 open: detect FreeBSD bug
2053 * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
2055 * doc/posix-functions/open.texi (open): Document the bug.
2056 * doc/posix-functions/utimes.texi (utimes): Likewise.
2057 * tests/test-open.h (test_open): Add parameters, and test symlink
2059 * tests/test-open.c (main): Adjust caller.
2060 * tests/test-fcntl-safer.c (main): Likewise.
2061 * modules/open-tests (Depends-on): Add stdbool, symlink.
2062 * modules/fcntl-safer-tests (Depends-on): Likewise.
2063 * tests/test-openat.c (main): Add test-open tests.
2065 stat: detect FreeBSD bug
2066 * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
2068 * doc/posix-functions/stat.texi (stat): Document the bug.
2069 * tests/test-stat.h (test_stat_func): Add argument.
2070 * tests/test-stat.c (main): Adjust caller.
2071 * tests/test-fstatat.c (main): Likewise.
2072 * modules/stat-tests (Depends-on): Add stdbool, symlink.
2073 Reported by Jim Meyering.
2075 2009-11-09 James Youngman <jay@gnu.org>
2077 strftime.c: include ignore-value.h only when FPRINTFTIME is defined
2078 * lib/strftime.c: Correct placement of #include "ignore-value.h".
2080 2009-11-08 Jim Meyering <meyering@redhat.com>
2082 utimens: remove invalid futimesat call
2083 * lib/utimens.c (fdutimens): Remove invalid futimesat call.
2084 It used the file descriptor of the target file as the DIR_FD
2085 parameter and NULL as the file name. That caused failure with
2086 errno == EFAULT on FreeBSD-8.0-rc2
2088 2009-11-07 Eric Blake <ebb9@byu.net>
2090 fflush, freadseek: use fseeko, not fseek
2091 * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2092 (clear_ungetc_buffer): Avoid potential problems on large files.
2093 * lib/freadseek.c (freadseek): Likewise.
2094 * modules/freadseek (Depends-on): Add fseeko.
2095 * modules/fseek (configure.ac): Set a witness.
2096 * tests/test-fflush.c (main): Use fseeko.
2097 * tests/test-fpurge.c (fseek): Disable link warning.
2098 * tests/test-freadable.c (fseek): Likewise.
2099 * tests/test-freading.c (fseek): Likewise.
2100 * tests/test-fseeko.c (fseek): Likewise.
2101 * tests/test-ftell.c (fseek): Likewise.
2102 * tests/test-ftello.c (fseek): Likewise.
2103 * tests/test-fwritable.c (fseek): Likewise.
2104 * tests/test-fwriting.c (fseek): Likewise.
2106 2009-11-06 Simon Josefsson <simon@josefsson.org>
2108 * modules/memchr (Depends-on): Drop getpagesize dependency.
2110 2009-11-06 Simon Josefsson <simon@josefsson.org>
2112 * build-aux/pmccabe2html: Disable execute bit. Suggested by
2113 Reported by Ludovic Courtès.
2114 * build-aux/pmccabe2html: Improve example usage.
2115 * build-aux/pmccabe2html: Drop #! header. Doc fix.
2117 2009-11-06 Jim Meyering <meyering@redhat.com>
2119 do-release-commit-and-tag: New module.
2120 Automate the release-commit and tag process.
2121 * build-aux/do-release-commit-and-tag: New script, from coreutils.
2122 * modules/do-release-commit-and-tag: New file.
2123 * MODULES.html.sh (Support for maintaining and releasing): Add it.
2125 2009-11-06 Simon Josefsson <simon@josefsson.org>
2127 * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
2128 because test-select.c uses inet_pton.
2130 2009-11-06 Simon Josefsson <simon@josefsson.org>
2132 * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
2133 GETADDRINFO_LIB. Bump serial number.
2134 * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
2135 Suggested by Eric Blake <ebb9@byu.net>.
2137 2009-11-05 Eric Blake <ebb9@byu.net>
2139 strtod: detect darwin bug
2140 * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
2141 Reported by Leo Davis.
2143 freopen-safer: new module
2144 * modules/freopen-safer: New module.
2145 * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
2146 * lib/freopen-safer.c (freopen_safer): New file.
2147 * lib/stdio-safer.h (freopen_safer): New declaration.
2148 * lib/stdio--.h (freopen): New override.
2149 * MODULES.html.sh (File stream based Input/Output): Mention it.
2150 * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
2151 freopen-safer module.
2152 * doc/posix-functions/stderr.texi (stderr): Likewise.
2153 * doc/posix-functions/stdin.texi (stdin): Likewise.
2154 * doc/posix-functions/stdout.texi (stdout): Likewise.
2155 * modules/freopen-safer-tests: New test.
2156 * tests/test-reopen-safer.c: New file.
2158 2009-11-05 Jim Meyering <meyering@redhat.com>
2160 maint.mk: Prohibit inclusion of "close-stream.h" without use.
2161 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
2163 2009-11-05 Simon Josefsson <simon@josefsson.org>
2165 * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
2167 2009-11-05 Simon Josefsson <simon@josefsson.org>
2169 * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
2171 2009-11-05 Simon Josefsson <simon@josefsson.org>
2174 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
2175 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2177 2009-11-05 Simon Josefsson <simon@josefsson.org>
2179 * tests/test-func.c: Also test value of __func__.
2181 2009-11-05 Simon Josefsson <simon@josefsson.org>
2183 * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
2184 may be an 8-bit type. Reported by Bruno Haible <bruno@clisp.org>.
2186 2009-11-05 Bruno Haible <bruno@clisp.org>
2189 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
2190 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2191 Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
2193 2009-11-05 Bruno Haible <bruno@clisp.org>
2195 Tests for module 'inet_pton'.
2196 * modules/inet_pton-tests: New file.
2197 * tests/test-inet_pton.c: New file.
2199 2009-11-05 Bruno Haible <bruno@clisp.org>
2201 Tests for module 'inet_ntop'.
2202 * modules/inet_ntop-tests: New file.
2203 * tests/test-inet_ntop.c: New file.
2205 2009-11-04 Eric Blake <ebb9@byu.net>
2207 stdlib-safer: wrap all mkstemp variants
2208 * modules/mkostemp (configure.ac): Set witness.
2209 * modules/mkostemps (configure.ac): Likewise.
2210 * modules/mkstemps (configure.ac): Likewise.
2211 * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
2212 (mkstemps_safer): Wrap more functions.
2213 * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
2215 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
2216 (mkstemps_safer): Implement the wrappers.
2218 mkstemps, mkostemps: new modules
2219 * modules/mkostemps: New module.
2220 * modules/mkstemps: Likewise.
2221 * lib/mkostemps.c (mkostemps): New file.
2222 * lib/mkstemps.c (mkstemps): Likewise.
2223 * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
2224 * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
2225 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
2226 * modules/stdlib (Makefile.am): Substitute them.
2227 * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
2228 * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
2229 * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
2230 * doc/gnulib.texi (Glibc stdlib.h): Include them.
2231 * MODULES.html.sh (File system functions): Mention them.
2233 tempname: resync from glibc
2234 * lib/tempname.c (__gen_tempname): Add suffixlen argument. Use
2235 same values for __GT_FILE as glibc. Abort even when assertions
2237 * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
2238 match its value otherwise. Allow idempotent inclusion.
2239 * lib/mkdtemp.c (mkdtemp): Adjust caller.
2240 * lib/mkostemp.c (mkostemp): Likewise.
2241 * lib/mkstemp.c (mkstemp): Likewise.
2242 * lib/tmpfile.c (tmpfile): Likewise.
2243 * NEWS: Document this.
2245 utimens: fix use of futimens on older Linux
2246 * lib/utimens.c (fdutimens): Use updated, rather than original,
2247 timespec to avoid bug in older Linux kernel.
2248 Reported by Simon Josefsson.
2250 2009-11-04 Bruno Haible <bruno@clisp.org>
2252 Make num_processors more flexible and consistent.
2253 * lib/nproc.h (enum nproc_query): New type.
2254 (num_processors): Add a 'query' argument.
2255 * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
2256 (num_processors): Add a 'query' argument. Test the value of the
2257 OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
2258 mingw, count the number of CPUs available for the current process.
2259 * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
2260 Check for sched_getaffinity and sched_getaffinity_np.
2261 * modules/nproc (Depends-on): Add c-ctype, extensions.
2262 * NEWS: Mention the change.
2264 2009-11-03 Bruno Haible <bruno@clisp.org>
2266 * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
2268 2009-11-03 Jim Meyering <meyering@redhat.com>
2270 test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
2271 * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
2274 2009-11-02 Eric Blake <ebb9@byu.net>
2276 mktime, timegm: share common declaration
2277 * lib/mktime-internal.h: New file.
2278 * lib/mktime.c: Use it rather than open-coding a declaration.
2279 * lib/timegm.c: Likewise.
2280 * modules/mktime (Files): Ship it.
2281 * modules/timegm (Files): Likewise.
2282 Suggested by Bruno Haible.
2284 test-update-copyright: update test to match script changes
2285 * tests/test-update-copyright.sh: Avoid hard-coding perl
2286 location. Don't update *.bak created by earlier runs.
2288 2009-11-02 Paul Eggert <eggert@cs.ucla.edu>
2289 Simon Josefsson <simon@josefsson.org>
2290 Bruno Haible <bruno@clisp.org>
2292 Fix link error on Solaris 8.
2293 * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
2294 also in libnsl. Define also INET_PTON_LIB.
2295 * modules/inet_pton (Link): New section.
2297 2009-11-02 Simon Josefsson <simon@josefsson.org>
2298 Bruno Haible <bruno@clisp.org>
2300 * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
2301 * modules/inet_ntop (Link): New section.
2302 Reported by Boyan Kasarov <bkasarov@gmail.com>.
2304 2009-11-02 Eric Blake <ebb9@byu.net>
2306 maint: avoid compiler warnings in m4 macros
2307 * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
2308 * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
2310 2009-11-02 Simon Josefsson <simon@josefsson.org>
2312 * m4/pmccabe2html.m4: Remove file.
2313 * modules/pmccabe2html: Drop pmccabe2html.m4. Don't call m4
2314 function. Change maintainer.
2315 * build-aux/pmccabe2html: Use /bin/sh with magic instead of
2316 hard-coding path to awk. Tiny patch from ludo@gnu.org (Ludovic
2319 2009-10-31 Eric Blake <ebb9@byu.net>
2321 fseeko: fix m4 regression
2322 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes
2323 regression from 2009-10-27.
2324 Reported by Ralf Wildenhues.
2326 2009-10-31 Jim Meyering <meyering@redhat.com>
2328 inttostr: aesthetics and improved (compile-time) safety
2329 Define inttype_is_signed rather than inttype_is_unsigned,
2330 since the sole use is via "#if inttype_is_signed".
2331 * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
2332 inttype_is_unsigned.
2333 * lib/offtostr.c (inttype_is_signed): Likewise.
2334 * lib/uinttostr.c (inttype_is_signed): Likewise.
2335 * lib/umaxtostr.c (inttype_is_signed): Likewise.
2336 * lib/inttostr.c (inttostr): Use verify to cross-check the
2337 inttype_is_signed value and the signedness of the actual type.
2338 * modules/inttostr (Depends-on): Add verify.
2340 2009-10-30 Eric Blake <ebb9@byu.net>
2342 build: avoid compiler warnings
2343 * lib/fchmodat.c (lchmod): Mark unused variables.
2344 * lib/getopt.c (_getopt_initialize): Likewise.
2345 * lib/mktime.c (__mktime_internal): Provide prototype.
2346 * lib/inttostr.c (inttostr): Avoid compiler warning even with
2347 older gcc that do not understand #pragma GCC diagnostic.
2348 * lib/uinttostr.c (inttype_is_unsigned): Define.
2349 * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
2351 2009-10-30 Michael Haubenwallner <michael.haubenwallner@salomon.at>
2353 stat: fix compilation on AIX
2354 * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
2355 only see struct stat64.
2357 2009-10-30 Eric Blake <ebb9@byu.net>
2359 exclude: make more robust
2360 * lib/exclude.c (excluded_file_name): Abort on unexpected value,
2361 rather than masking a coding bug.
2362 Suggested by Bruno Haible.
2364 2009-10-30 Jim Meyering <meyering@redhat.com>
2366 perl scripts: remove #!/usr/bin/perl in favor of more portable...
2367 Rather than putting #!/usr/bin/perl on the first line,
2368 start with a variant of what's recommended by "man perlrun" that
2369 invokes the first "perl" program from your shell's search path.
2370 * build-aux/gitlog-to-changelog: Replace #!... as above.
2371 Add a "Local Variables" perl mode setting.
2372 Prompted by a patch from Ludovic Courtès.
2373 Improved by Eric Blake.
2374 * build-aux/useless-if-before-free: Likewise.
2375 * build-aux/announce-gen: Likewise.
2376 * build-aux/update-copyright: Likewise.
2378 2009-10-29 Eric Blake <ebb9@byu.net>
2380 filenamecat-lgpl: adjust clients
2381 * modules/linkat (Depends-on): Use filenamecat-lgpl, not
2383 * modules/renameat (Depends-on): Likewise.
2385 filenamecat: split into filenamecat-lgpl
2386 * modules/filenamecat-lgpl: New module.
2387 * modules/filenamecat (Files): Move library-safe files into
2389 (Depends-on): Add filenamecat-lgpl.
2390 (configure.ac): Declare witness.
2391 * lib/filenamecat.h (file_name_concat): Only declare when using
2393 * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
2395 * lib/filenamecat-lgpl.c: ...into new file.
2396 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
2397 (gl_FILE_NAME_CONCAT): Use it.
2398 * MODULES.html.sh (File system functions): Mention new module.
2400 argp: avoid memory leak
2401 * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
2402 * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
2403 base_name, since the latter malloc()s and can call exit().
2404 Leak introduced 2006-07-03.
2406 dirname-lgpl: adjust clients that don't need full dirname
2407 * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
2408 * modules/filenamecat (Depends-on): Likewise.
2409 * modules/linkat (Depends-on): Likewise.
2410 * modules/mkancesdirs (Depends-on): Likewise.
2411 * modules/mkdir (Depends-on): Likewise.
2412 * modules/openat (Depends-on): Likewise.
2413 * modules/savewd (Depends-on): Likewise.
2414 * modules/rename (Depends-on): Likewise.
2415 (License): Relax license.
2416 * modules/mkdir-tests (Depends-on): Drop progname.
2417 (Makefile.am): Delete unneeded LDADD.
2418 * modules/rename-tests (Depends-on, Makefile.am): Likewise.
2420 dirname: split into dirname-lgpl
2421 * modules/dirname-lgpl: New module.
2422 * modules/dirname (Files): Move library-safe files into
2424 (Depends-on): Add dirname-lgpl.
2425 (configure.ac): Declare witness.
2426 * modules/double-slash-root (License): Relax license.
2427 * lib/dirname.h (base_name, dir_name): Only declare when using GPL
2429 * lib/dirname.c (dir_len, mdir_name): Move...
2430 * lib/dirname-lgpl.c: ...into new file.
2431 * lib/basename.c (last_component, base_len): Move...
2432 * lib/basename-lgpl.c: ...into new file.
2433 * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
2434 (gl_DIRNAME): Use it.
2435 * MODULES.html.sh (Enhancements for POSIX:2008 functions):
2437 * modules/dirname-tests (Depends-on): Add progname.
2438 * tests/test-dirname.c (program_name): Delete.
2440 mkdir: make safe for libraries
2441 * modules/mkdir (Depends-on): Drop xalloc.
2442 * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
2445 tests: avoid some compiler warnings
2446 * tests/test-getaddrinfo.c (simple): Mark static, and allow string
2448 * tests/test-memchr.c (main): Avoid type mismatch.
2449 * tests/test-arpa_inet.c (main): Avoid unused parameters.
2450 * tests/test-base64.c (main): Likewise.
2451 * tests/test-getdelim.c (main): Likewise.
2452 * tests/test-gethostname.c (main): Likewise.
2453 * tests/test-getline.c (main): Likewise.
2454 * tests/test-netinet_in.c (main): Likewise.
2455 * tests/test-select.c (open_server_socket, main): Likewise.
2456 * tests/test-select-stdin.c (main): Likewise.
2457 * tests/test-sockets.c (main): Likewise.
2458 * tests/test-strsignal.c (main): Likewise.
2459 * tests/test-sys_select.c (main): Likewise.
2460 * tests/test-sys_socket.c (main): Likewise.
2461 * tests/test-u64.c (main): Likewise.
2462 * tests/test-xfprintf-posix.c (main): Likewise.
2463 * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
2465 sockets: avoid compiler warning
2466 * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
2468 maint: detect usage(1) and other suspicious exits
2469 * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
2471 2009-10-29 Jim Meyering <meyering@redhat.com>
2473 timespec: long-to-int truncation could make timespec_cmp malfunction
2474 * lib/timespec.h (timespec_cmp): Do not interpret a difference of
2475 a multiple of 2^32 nanoseconds as no difference.
2477 2009-10-28 Jim Meyering <meyering@redhat.com>
2479 fprintftime: wrap macro code argument in "do {...} while(0)"
2480 * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
2481 cpy macro must be a statement that can be followed by a semicolon.
2482 Now that the else clause contains a comment and is hence longer
2483 than one line, I require curly braces. That in turn requires
2484 that we wrap this code block in the standard do...while(0).
2486 fprintftime: remove stray semicolon from previous change
2487 * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
2489 fprintftime: avoid a warning about ignored fwrite return value
2490 * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
2491 (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
2493 * modules/fprintftime (Depends-on): Add ignore-value.
2495 exclude: avoid an unwarranted warning
2496 * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
2498 2009-10-27 Eric Blake <ebb9@byu.net>
2500 fseek: avoid compilation failure when fflush is replaced
2501 * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
2502 * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
2504 * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
2505 module is not in use; since REPLACE_FSEEK worked otherwise.
2506 (GNULIB_FTELLO): Likewise for ftell.
2507 Reported by Ian Beckwith and others.
2509 2009-10-27 Bruno Haible <bruno@clisp.org>
2511 * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
2512 Reported by Jim Meyering.
2514 2009-10-27 Jim Meyering <jim@meyering.net>
2515 Bruno Haible <bruno@clisp.org>
2517 Avoid warning despite dropping the return value of fwrite.
2518 * lib/unicodeio.c: Include ignore-value.h.
2519 (fwrite_success_callback): Explicitly ignore fwrite's return value.
2520 * modules/unicodeio (Depends-on): Add ignore-value.
2522 2009-10-26 Eric Blake <ebb9@byu.net>
2524 areadlinkat: fix fallback path
2525 * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
2528 2009-10-22 Pádraig Brady <P@draigBrady.com>
2530 Use a better IO block size for modern systems
2531 * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
2532 * lib/md2.c: Likewise.
2533 * lib/md4.c: Likewise.
2534 * lib/md5.c: Likewise.
2535 * lib/sha1.c: Likewise.
2536 * lib/sha256.c: Likewise.
2537 * lib/sha512.c: Likewise.
2539 2009-10-22 Eric Blake <ebb9@byu.net>
2541 tests: avoid several compiler warnings
2542 * tests/test-getcwd.c (main): Avoid buffer underflow.
2543 * tests/test-getdate.c (main): String literals are not safe with
2544 putenv, so use setenv. Declare unused argument.
2545 * modules/getdate-tests (Depends-on): Add setenv.
2546 * tests/test-argv-iter.c (main): Declare unused argument. Avoid
2547 problems with string literals in char *.
2548 * tests/test-hash.c (main): Avoid shadowing declaration.
2549 (insert_new): Treat string literals as char const *.
2550 * tests/test-getopt.h (test_getopt): Likewise.
2551 (getopt_loop): Alter types to minimize casting elsewhere.
2552 * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
2553 (test_getopt_long_posix): Likewise.
2554 (do_getopt_long): Add wrapper to minimize casting.
2555 * tests/test-atexit.c (clear_temp_file): Use void.
2556 * tests/test-areadlink-with-size.c (main): Declare unused
2558 * tests/test-areadlink.c (main): Likewise.
2559 * tests/test-areadlinkat-with-size.c (main): Likewise.
2560 * tests/test-areadlinkat.c (main): Likewise.
2561 * tests/test-canonicalize-lgpl.c (main): Likewise.
2562 * tests/test-canonicalize.c (main): Likewise.
2563 * tests/test-dirent-safer.c (main): Likewise.
2564 * tests/test-dirname.c (main): Likewise.
2565 * tests/test-dup2.c (main): Likewise.
2566 * tests/test-fchdir.c (main): Likewise.
2567 * tests/test-fcntl-h.c (main): Likewise.
2568 * tests/test-fcntl-safer.c (main): Likewise.
2569 * tests/test-fdopendir.c (main): Likewise.
2570 * tests/test-fdutimensat.c (main): Likewise.
2571 * tests/test-fflush.c (main): Likewise.
2572 * tests/test-filenamecat.c (main): Likewise.
2573 * tests/test-filevercmp.c (main): Likewise.
2574 * tests/test-fopen-safer.c (main): Likewise.
2575 * tests/test-fopen.c (main): Likewise.
2576 * tests/test-fpending.c (main): Likewise.
2577 * tests/test-fpurge.c (main): Likewise.
2578 * tests/test-freading.c (main): Likewise.
2579 * tests/test-fstatat.c (main): Likewise.
2580 * tests/test-fsync.c (main): Likewise.
2581 * tests/test-futimens.c (main): Likewise.
2582 * tests/test-getndelim2.c (main): Likewise.
2583 * tests/test-gettimeofday.c (main): Likewise.
2584 * tests/test-getopt.c (main): Likewise.
2585 * tests/test-i-ring.c (main): Likewise.
2586 * tests/test-inttypes.c (main): Likewise.
2587 * tests/test-link.c (main): Likewise.
2588 * tests/test-lstat.c (main): Likewise.
2589 * tests/test-math.c (main): Likewise.
2590 * tests/test-md5.c (main): Likewise.
2591 * tests/test-memchr2.c (main): Likewise.
2592 * tests/test-memrchr.c (main): Likewise.
2593 * tests/test-mkdir.c (main): Likewise.
2594 * tests/test-mkdirat.c (main): Likewise.
2595 * tests/test-mkfifoat.c (main): Likewise.
2596 * tests/test-open.c (main): Likewise.
2597 * tests/test-openat-safer.c (main): Likewise.
2598 * tests/test-openat.c (main): Likewise.
2599 * tests/test-quotearg.c (main): Likewise.
2600 * tests/test-rawmemchr.c (main): Likewise.
2601 * tests/test-readlink.c (main): Likewise.
2602 * tests/test-remove.c (main): Likewise.
2603 * tests/test-rename.c (main): Likewise.
2604 * tests/test-renameat.c (main): Likewise.
2605 * tests/test-rmdir.c (main): Likewise.
2606 * tests/test-sha1.c (main): Likewise.
2607 * tests/test-signal.c (main): Likewise.
2608 * tests/test-sigaction.c (main): Likewise.
2609 * tests/test-stat.c (main): Likewise.
2610 * tests/test-stat-time.c (main): Likewise.
2611 * tests/test-stddef.c (main): Likewise.
2612 * tests/test-stdint.c (main): Likewise.
2613 * tests/test-stdio.c (main): Likewise.
2614 * tests/test-stdlib.c (main): Likewise.
2615 * tests/test-strchrnul.c (main): Likewise.
2616 * tests/test-strerror.c (main): Likewise.
2617 * tests/test-string.c (main): Likewise.
2618 * tests/test-strtod.c (main): Likewise.
2619 * tests/test-strverscmp.c (main): Likewise.
2620 * tests/test-symlink.c (main): Likewise.
2621 * tests/test-symlinkat.c (main): Likewise.
2622 * tests/test-sys_stat.c (main): Likewise.
2623 * tests/test-sys_time.c (main): Likewise.
2624 * tests/test-time.c (main): Likewise.
2625 * tests/test-unistd.c (main): Likewise.
2626 * tests/test-unlink.c (main): Likewise.
2627 * tests/test-unlinkat.c (main): Likewise.
2628 * tests/test-utimens.c (main): Likewise.
2629 * tests/test-utimensat.c (main): Likewise.
2630 * tests/test-version-etc.c (main): Likewise.
2631 * tests/test-wchar.c (main): Likewise.
2632 * tests/test-wctype.c (main): Likewise.
2633 * tests/test-xprintf-posix.c (main): Likewise.
2634 * tests/test-posixtm.c (main): Likewise.
2635 (STREQ): Delete unused macro.
2636 * tests/test-linkat.c (main): Declare unused arguments. Avoid
2638 * tests/test-memchr.c (main): Likewise.
2640 2009-10-21 Eric Blake <ebb9@byu.net>
2642 areadlinkat: avoid failure on older glibc
2643 * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
2644 rather than mis-comparing 0 against FUNC_RESULT of char*.
2646 2009-10-21 Bruno Haible <bruno@clisp.org>
2648 * modules/stpncpy (License): Relicense under LGPLv2+.
2649 Reported by David Lutterkort <lutter@redhat.com>.
2651 2009-10-20 Eric Blake <ebb9@byu.net>
2653 utimensat: work around Solaris 9 bug
2654 * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
2655 has trailing slash bugs.
2656 * tests/test-lutimens.h (test_lutimens): Enhance test.
2657 * tests/test-utimens.h (test_utimens): Likewise.
2658 * doc/posix-functions/utime.texi (utime): Enhance documentation.
2659 * doc/posix-functions/utimes.texi (utimes): Likewise.
2660 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
2661 * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
2662 * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
2663 * doc/posix-functions/futimens.texi (futimens): Likewise.
2665 fdutimensat: new module
2666 * modules/fdutimensat: New file.
2667 * lib/fdutimensat.c (fdutimensat): Likewise.
2668 * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
2669 * MODULES.html.sh (File system functions): Mention module.
2670 * modules/fdutimensat-tests: New test.
2671 * tests/test-fdutimensat.c: Likewise.
2673 doc: regenerate INSTALL
2674 * doc/INSTALL: Reflect recent autoconf update.
2675 * doc/INSTALL.ISO: Likewise.
2676 * doc/INSTALL.UTF-8: Likewise.
2678 2009-10-20 Pádraig Brady <P@draigBrady.com>
2680 acl: warn if ACL support is not detected
2681 * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
2683 2009-10-19 Giuseppe Scrivano <gscrivano@gnu.org>
2685 * lib/nproc.h: Add extern "C" block for C++.
2687 2009-10-18 Reuben Thomas <rrt@sc3d.org>
2688 Bruno Haible <bruno@clisp.org>
2690 * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
2691 * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
2692 * doc/posix-functions/isalpha.texi: Likewise.
2693 * doc/posix-functions/isblank.texi: Likewise.
2694 * doc/posix-functions/iscntrl.texi: Likewise.
2695 * doc/posix-functions/isdigit.texi: Likewise.
2696 * doc/posix-functions/isgraph.texi: Likewise.
2697 * doc/posix-functions/islower.texi: Likewise.
2698 * doc/posix-functions/isprint.texi: Likewise.
2699 * doc/posix-functions/ispunct.texi: Likewise.
2700 * doc/posix-functions/isspace.texi: Likewise.
2701 * doc/posix-functions/isupper.texi: Likewise.
2702 * doc/posix-functions/isxdigit.texi: Likewise.
2704 2009-10-18 Bruno Haible <bruno@clisp.org>
2706 Tests for module 'isblank'.
2707 * modules/isblank-tests: New file.
2708 * tests/test-isblank.c: New file.
2710 New module 'isblank'.
2711 * lib/isblank.c: New file.
2712 * m4/isblank.m4: New file.
2713 * modules/isblank: New file.
2714 * doc/posix-functions/isblank.texi: Mention the new module.
2716 2009-10-18 Bruno Haible <bruno@clisp.org>
2719 * lib/ctype.in.h: New file.
2720 * m4/ctype.m4: New file.
2721 * modules/ctype: New file.
2722 * doc/posix-headers/ctype.texi: Mention the new module.
2724 2009-10-18 Jim Meyering <meyering@redhat.com>
2726 m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
2727 Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
2728 right after its initialization, rather than farther down.
2729 Keeping these in close proximity makes it easier to ensure
2730 that each such variable is initialized. E.g.,
2733 AC_SUBST([LIB_CLOCK_GETTIME])
2735 This change also increments these serial numbers.
2736 * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
2737 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
2738 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2740 2009-10-18 Bruno Haible <bruno@clisp.org>
2742 Don't let environment variables perturb build.
2743 * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
2744 (gl_PREREQ_GETHRXTIME): ... not here.
2746 2009-10-18 Bruno Haible <bruno@clisp.org>
2748 Avoid symlink attack in localcharset module.
2749 * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
2750 (O_NOFOLLOW): Define fallback.
2751 (get_charset_aliases): Don't open the file if it is a symbolic link.
2752 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
2754 (gl_FCNTL_H): Require it.
2755 * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
2756 * modules/localcharset (Files): Add m4/fcntl_h.m4.
2757 Reported by Fergal Glynn <fglynn@veracode.com>.
2759 2009-10-18 Bruno Haible <bruno@clisp.org>
2761 Implement nproc for mingw.
2762 * lib/nproc.c: Include <windows.h>
2763 (num_processors): On native Windows platforms, try GetSystemInfo.
2765 2009-10-18 Bruno Haible <bruno@clisp.org>
2767 Implement nproc for IRIX.
2768 * lib/nproc.c: Include <sys/sysmp.h>.
2769 (num_processors): On IRIX systems, try sysmp.
2770 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
2772 2009-10-18 Bruno Haible <bruno@clisp.org>
2774 Implement nproc for HP-UX.
2775 * lib/nproc.c: Include <sys/pstat.h>
2776 (num_processors): On HP-UX systems, try pstat_getdynamic.
2777 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
2780 2009-10-18 Giuseppe Scrivano <gscrivano@gnu.org>
2781 Bruno Haible <bruno@clisp.org>
2783 Implement nproc for NetBSD, OpenBSD.
2784 * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
2785 (ARRAY_SIZE): New macro.
2786 (num_processors): On BSD systems, try sysctl of HW_NCPU.
2787 * m4/nproc.m4: New file.
2788 * modules/nproc (Files): Add m4/nproc.m4.
2789 (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
2790 (Makefile.am): Instead, augment lib_SOURCES.
2792 2009-10-18 Bruno Haible <bruno@clisp.org>
2794 Fix recognition of sys/sysctl.h on OpenBSD 4.0.
2795 * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
2798 2009-10-16 Eric Blake <ebb9@byu.net>
2800 utimensat: new module
2801 * modules/utimensat: New file.
2802 * lib/utimensat.c (utimensat): Likewise.
2803 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2804 * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
2805 so we can work around Linux bugs.
2806 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
2807 * modules/sys_stat (Makefile.am): Substitute them.
2808 * lib/sys_stat.in.h (utimensat): Declare it.
2809 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
2810 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
2811 * modules/utimensat-tests: New test.
2812 * tests/test-utimensat.c: Likewise.
2814 utimens: let lutimens work on non-symlinks
2815 * lib/utimens.c (lutimens): Fall back to utimens rather than
2816 failing with ENOSYS, when file is not a symlink.
2817 (utimens): Reduce redirection.
2818 * tests/test-lutimens.h (test_lutimens): Update test to cover
2820 * tests/test-utimens.h (test_utimens): Update test to cover
2822 * tests/test-utimens.c (main): Update caller.
2824 utimens: cache whether utimensat syscall works
2825 * lib/utimens.c (utimensat_works_really): New cache variable.
2826 (fdutimens, lutimens): Use it to avoid failing syscall.
2828 test-stat-time, test-utimens: improve portability
2829 * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
2830 ext4 on alpha, and for cygwin.
2831 * tests/test-utimens-common.h: New file.
2832 (nap): Factor delays into single function.
2833 * tests/test-lutimens.h (test_lutimens): Use new header.
2834 * tests/test-futimens.h (test_futimens): Likewise.
2835 * tests/test-utimens.h (test_utimens): Likewise. Also, force NFS
2836 timestamps to occur from same machine, as was done previously for
2838 * modules/utimens-tests (Files): Ship new file.
2839 * modules/futimens-tests (Files): Likewise.
2840 Reported in part by Jim Meyering.
2842 sys_stat: sort replacement declarations
2843 * lib/sys_stat.in.h: Sort declarations.
2844 * lib/futimens.c (futimens): Fix typo.
2846 2009-10-15 Jim Meyering <meyering@redhat.com>
2848 don't let environment settings perturb build
2849 Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
2850 could cause a configure-time and/or build-time malfunction.
2851 Typically, a configure-time function-in-library test is performed
2856 prefix_saved_LIBS=$LIBS
2857 AC_SEARCH_LIBS([FUNC], [LIB_NAME],
2858 [test "$ac_cv_search_FUNC" = "none required" ||
2859 LIB_VAR=$ac_cv_search_FUNC])
2860 LIBS=$prefix_saved_LIBS
2862 However, in each of the files affected by this change, the LIB_VAR=
2863 initialization was omitted. Thus, when set in the environment, its
2864 value would propagate into generated Makefiles when FUNC is not found
2866 * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
2867 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
2868 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2870 2009-10-14 Eric Blake <ebb9@byu.net>
2872 fchdir: avoid infinite recursion in mingw
2873 * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
2876 test-stat-time: port to mingw
2877 * tests/test-stat-time.c (force_unlink): Return a value.
2878 (test_ctime) [W32]: Fix compilation error.
2879 (nap): Don't call usleep with too large an argument. Use
2881 * doc/pastposix-functions/usleep.texi (usleep): Document the
2884 2009-10-13 Jim Meyering <meyering@redhat.com>
2886 use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
2887 * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
2888 * modules/pipe-filter-ii: Likewise.
2889 * modules/sys_socket-tests: Likewise.
2890 * modules/tsearch-tests: Likewise.
2891 * Makefile (sc_prefer_ac_check_funcs_once): New rule.
2892 (check): Depend on it.
2894 2009-10-12 Eric Blake <ebb9@byu.net>
2896 utimens-tests: port to NFS file systems
2897 * tests/test-utimens.h (test_utimens): Refactor utimecmp
2898 comparisons to avoid spurious failures from timestamp drift
2899 between NFS machines.
2901 2009-10-12 Eric Blake <ebb9@byu.net>
2903 stat-time-tests: minor cleanups
2904 * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
2905 * tests/test-stat-time.c (nap): Separate assignment from call.
2906 Suggested by Paolo Bonzini and Bruno Haible.
2908 sys_stat: guarantee struct timespec
2909 * lib/sys_stat.in.h (includes): Always include <time.h>
2910 * modules/sys_stat (Depends-on): Add time.
2911 * tests/test-sys_stat.c: Guarantee struct timespec, as well as
2912 mode_t permission values.
2913 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
2914 get at subsecond timestamps.
2916 2009-10-10 Eric Blake <ebb9@byu.net>
2918 futimens: new module
2919 * modules/futimens: New file.
2920 * lib/futimens.c (futimens): Likewise.
2921 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
2922 * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
2923 we can work around Linux bugs.
2924 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
2925 * modules/sys_stat (Makefile.am): Substitute them.
2926 * lib/sys_stat.in.h (futimens): Declare it.
2927 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
2928 * doc/posix-functions/futimens.texi (futimens): Likewise.
2929 * modules/futimens-tests: New test.
2930 * tests/test-futimens.c: Likewise.
2932 utimens: introduce fdutimens
2933 * lib/utimens.h (fdutimens): New prototype.
2934 * lib/utimens.c (gl_futimens): Move guts...
2935 (fdutimens): ...to new interface.
2936 * tests/test-utimens.c (do_fdutimens): Use it.
2938 utimens: add UTIME_NOW and UTIME_OMIT support
2939 * lib/utimens.c (validate_timespec, update_timespec): New helper
2941 (gl_futimens, lutimens): Use them.
2942 * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
2944 (Link): Mention resulting library dependency.
2945 * modules/utimecmp (Link): Likewise.
2946 * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
2947 (Makefile.am): Pick up library dependency.
2948 * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
2950 * tests/test-sys_stat.c: Test the definitions.
2951 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
2952 * NEWS: Document library dependency.
2954 utimecmp: support symlink timestamps
2955 * lib/utimecmp.c (utimecmp): Use new interface. Skip effort of
2956 hashing when possible. Use pathconf when available.
2957 (SYSCALL_RESOLUTION): Recognize tighter resolution.
2958 * modules/utimecmp (Depends-on): Add lstat.
2960 utimens: add lutimens interface
2961 * lib/utimens.c (lutimens): New function.
2962 * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
2963 * lib/utimens.h (lutimens): Declare new interface.
2964 * tests/test-utimens.c (main): Enhance test.
2965 * tests/test-lutimens.h (test_lutimens): New file.
2966 * modules/utimens-tests (Files): Distribute it.
2967 (Depends-on): Add symlink.
2968 (configure.ac): Check for usleep.
2970 utimens: validate futimens usage
2971 * lib/utimens.c (gl_futimens): Require valid fd up front, using
2972 fewer syscalls on failure later on. Avoid compiler warning on
2974 * modules/utimens (Depends-on): Add dup2.
2977 * modules/utimens-tests: New test.
2978 * tests/test-utimens.h: New file.
2979 * tests/test-futimens.h: Likewise.
2980 * tests/test-utimens.c: Likewise.
2982 doc: mention timestamp portability issues
2983 * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
2985 * doc/posix-functions/utime.texi (utime): Likewise.
2986 * doc/posix-functions/utimes.texi (utimes): Likewise.
2987 * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
2989 * doc/posix-functions/futimens.texi (futimens): Mention utimens
2991 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
2992 Mention weakness with symlink timestamps.
2993 * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
2994 to utimensat/futimens instead.
2995 * doc/gnulib.texi (Glibc sys/time.h): Include new file.
2997 test-dup2: enhance test
2998 * tests/test-dup2.c (main): Also check AT_FDCWD.
3000 test-stat-time: avoid more spurious failures
3001 * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
3002 xfs; and avoid race if the two timestamps cross quantization edge.
3004 relocatable: prefer 'file system' over 'filesystem'
3005 * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
3006 (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
3007 * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
3008 * doc/relocatable.texi (Enabling Relocatability): Likewise.
3009 * lib/relocatable.c (compute_curr_prefix): Likewise.
3011 2009-10-10 Jim Meyering <meyering@redhat.com>
3013 stat-time-tests: check for the usleep function
3014 * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
3016 2009-10-10 Bruno Haible <bruno@clisp.org>
3018 * modules/xnanosleep: Put the Link section after the Include section.
3020 2009-10-09 Eric Blake <ebb9@byu.net>
3022 dup2: work around FreeBSD 6.1 bug
3023 * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
3024 * doc/posix-functions/dup2.texi (dup2): Document it.
3025 Reported by Nelson H. F. Beebe and Jim Meyering.
3027 test-stat-time: port to buggy NFS clients
3028 * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
3029 (test_ctime): Also skip test if mtime and ctime are skewed.
3031 maint: prefer 'file system' over 'filesystem'
3032 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
3033 * doc/posix-functions/lstat.texi (lstat): Likewise.
3034 * lib/file-has-acl.c (file_has_acl): Likewise.
3035 * lib/fwriteerror.c [TEST]: Likewise.
3036 * tests/test-areadlink.h (test_areadlink): Likewise.
3037 * tests/test-areadlinkat-with-size.c (main): Likewise.
3038 * tests/test-areadlinkat.c (main): Likewise.
3039 * tests/test-canonicalize-lgpl.c (main): Likewise.
3040 * tests/test-canonicalize.c (main): Likewise.
3041 * tests/test-fstatat.c (main): Likewise.
3042 * tests/test-linkat.c (main): Likewise.
3043 * tests/test-lstat.h (test_lstat_func): Likewise.
3044 * tests/test-mkdir.h (test_mkdir): Likewise.
3045 * tests/test-readlink.h (test_readlink): Likewise.
3046 * tests/test-remove.c (main): Likewise.
3047 * tests/test-rename.h (test_rename): Likewise.
3048 * tests/test-renameat.c (main): Likewise.
3049 * tests/test-rmdir.h (test_rmdir_func): Likewise.
3050 * tests/test-symlink.h (test_symlink): Likewise.
3051 * tests/test-symlinkat.c (main): Likewise.
3052 * tests/test-unlink.h (test_unlink_func): Likewise.
3053 * tests/test-unlinkat.c (main): Likewise.
3055 maint: make realtime library usage explicit
3056 * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
3057 * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
3058 * modules/settime (Link): Likewise.
3059 * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
3061 test-stat-time: speed up execution
3062 * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
3064 (nap): New helper function.
3065 (prepare_test): Use it to reduce sleep time.
3066 (test_mtime, test_ctime, test_birthtime): Allow for subsecond
3068 * modules/stat-time-tests (configure.ac): Check for usleep.
3070 2009-10-09 Jim Meyering <meyering@redhat.com>
3072 selinux-h: always use getfilecon wrappers
3073 * lib/getfilecon.c: New file.
3074 * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
3075 [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
3076 [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
3077 (fgetfilecon): Provide a stub.
3078 * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
3079 AC_SUBST SELINUX_SELINUX_H, since now we're generating that
3080 file unconditionally.
3081 When <selinux/selinux.h> is found, arrange to use wrappers.
3082 * modules/selinux-h (Files): Add getfilecon.c.
3083 (Makefile.am): Substitute include-next-related bits
3084 into the now-always-generated selinux/selinux.h file.
3085 * doc/glibc-functions/lgetfilecon.texi: New file.
3086 * doc/glibc-functions/fgetfilecon.texi: New file.
3087 * doc/glibc-functions/getfilecon.texi: New file.
3088 * doc/glibc-functions/getfilecon-desc.texi: New file.
3089 * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
3090 which to pull in the new files.
3091 * MODULES.html.sh (Misc): Add selinux-h.
3093 2009-10-08 Jim Meyering <meyering@redhat.com>
3095 unistd: fix comment typo
3096 * lib/unistd.in.h (euidaccess): Fix a comment typo.
3098 2009-10-08 Eric Blake <ebb9@byu.net>
3100 areadlink: use SIZE_MAX consistently
3101 * modules/areadlink (Depends-on): Add stdint.
3102 * modules/areadlink-with-size (Depends-on): Likewise.
3103 * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
3104 gives NULL; drop sys/types, since unistd gives size_t; and add
3105 stdint for SIZE_MAX.
3106 (SIZE_MAX): Rely on headers.
3107 * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
3109 * lib/areadlink.c (includes): Drop sys/types, and add stdint.
3110 (SIZE_MAX): Likewise.
3111 (INITIAL_BUF_SIZE): Turn into enum.
3112 * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
3114 2009-10-08 Jim Meyering <meyering@redhat.com>
3116 areadlinkat: avoid compilation failure
3117 * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
3118 Fix typo in comment.
3120 2009-10-07 Eric Blake <ebb9@byu.net>
3122 areadlinkat-with-size: new module
3123 * modules/areadlinkat-with-size: New module.
3124 * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
3125 * lib/areadlink.h (areadlinkat): Declare it.
3126 * MODULES.html.sh (File system functions): Mention it.
3127 * modules/areadlinkat-with-size-tests: New test.
3128 * tests/test-areadlinkat-with-size.c: New file.
3130 xreadlinkat: new module
3131 * modules/xreadlinkat: New module.
3132 * lib/xreadlinkat.c (xreadlinkat): New file.
3133 * lib/xreadlink.h (xreadlinkat): Declare it.
3134 * MODULES.html.sh (File system functions): Mention it.
3136 areadlinkat: new module
3137 * lib/at-func.c (FUNC_FAIL): New define.
3138 (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
3139 * modules/areadlinkat: New module.
3140 * lib/linkat.c (areadlinkat): Move...
3141 * lib/areadlinkat.c (areadlinkat): ...to new file.
3142 * lib/areadlink.h (areadlinkat): Declare it.
3143 * modules/linkat (Depends-on): Add areadlinkat.
3144 * MODULES.html.sh (File system functions): Mention it.
3145 * modules/areadlinkat-tests: New test.
3146 * tests/test-areadlinkat.c: New file.
3148 areadlink, areadlink-with-size: add tests
3149 * modules/areadlink-tests: New test.
3150 * modules/areadlink-with-size-tests: Likewise.
3151 * tests/test-areadlink.h: New file.
3152 * tests/test-areadlink.c: Likewise.
3153 * tests/test-areadlink-with-size.c: Likewise.
3155 maint: minor cleanups
3156 * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
3157 _UNUSED_PARAMETER_ instead.
3158 * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
3159 * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
3160 * modules/linkat-tests (Files): Distribute test-link.h.
3162 openat, utimens: whitespace cleanup
3163 * lib/openat.c: Prefer space throughout, rather than mix of 8
3165 * lib/at-func.c: Likewise.
3166 * lib/utimens.c: Likewise.
3168 openat: avoid using wrong fd
3169 * lib/openat.c (openat_permissive): Reject user's fd if saving the
3170 working directory chooses same fd.
3171 * lib/at-func.c (AT_FUNC_NAME): Likewise.
3173 mkdir, mkdirat: fix cygwin 1.5.x bug
3174 * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
3175 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
3176 * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
3178 (gl_PREREQ_MKDIR): Delete unused macro.
3179 * modules/mkdir (Files): Track file rename.
3180 (configure.ac): Update macro name.
3181 * modules/openat (Depends-on): Add mkdir.
3182 * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
3184 mkdir, mkdirat: add tests
3185 * modules/mkdir-tests: New test.
3186 * tests/test-mkdir.h: New file.
3187 * tests/test-mkdir.c: Likewise.
3188 * tests/test-mkdirat.c: Likewise.
3189 * modules/openat-tests (Files): Add new files.
3190 (Makefile.am): Run new test.
3192 2009-10-06 Eric Blake <ebb9@byu.net>
3194 doc: tweak *at function documentation
3195 * doc/posix-functions/faccessat.texi (faccessat): Mention
3196 known issue with replacement.
3197 * doc/posix-functions/fchdir.texi (fchdir): Likewise.
3198 * doc/posix-functions/linkat.texi (linkat): Likewise.
3199 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
3200 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
3201 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
3202 * doc/posix-functions/renameat.texi (renameat): Likewise.
3203 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
3205 openat: fix GNU/Hurd bug in unlinkat
3206 * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
3208 * doc/posix-functions/unlink.texi (unlink): Document this.
3209 * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
3211 fdopendir: fix GNU/Hurd bug
3212 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
3213 allowing non-directory fds.
3214 * lib/fdopendir.c (rpl_fdopendir): Work around it.
3215 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
3216 * modules/dirent (Makefile.am): Substitute it.
3217 * lib/dirent.in.h (fdopendir): Declare replacement.
3218 * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
3219 * tests/test-fdopendir.c (main): Test something other than
3220 /dev/null, since on Hurd that behaves like a directory.
3222 test-symlink: port to GNU/Hurd
3223 * tests/test-symlink.h (test_symlink): Relax expected errno.
3225 doc: tweak more cygwin information
3226 * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
3227 now compatible with glibc.
3228 * doc/posix-functions/getopt.texi (getopt): Likewise.
3230 getopt-gnu: add another test
3231 * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
3232 guarantee behavior relied on by m4.
3233 * tests/test-getopt.c (main): Use it.
3234 * modules/getopt-posix-tests (Depends-on): Add setenv.
3235 See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
3237 getopt: fix compilation on darwin
3238 * lib/getopt.in.h (includes): Leave breadcrumbs during system
3240 * lib/unistd.in.h (getopt): Use them to avoid recursive include.
3241 Reported by Ludovic Courtès.
3243 2009-10-06 Bruno Haible <bruno@clisp.org>
3245 * modules/size_max (Description): Discourage its use.
3246 Reported by Simon Josefsson.
3248 2009-10-06 Jim Meyering <meyering@redhat.com>
3250 linkat: avoid compilation failure
3251 * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
3253 2009-10-05 Eric Blake <ebb9@byu.net>
3255 linkat: support Linux 2.6.17
3256 * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
3257 linkat on Linux, but allow cache variable override.
3258 * lib/linkat.c (rpl_linkat): Define override.
3259 * modules/linkat (Depends-on): Add symlinkat.
3260 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
3261 * modules/unistd (Makefile.am): Substitute it.
3262 * lib/unistd.in.h (linkat): Declare replacement.
3263 Reported by Pádraig Brady.
3265 quotearg: port test to systems with C.UTF-8 locale
3266 * tests/test-quotearg.c (struct result_strings): Add another
3267 member, differentiating between C.ASCII and C.UTF-8 handling.
3268 (compare_strings): Add parameter.
3269 (main): Adjust all callers.
3271 getopt: avoid clash with FreeBSD _getopt_internal
3272 * lib/getopt.in.h (_getopt_internal): Override the name.
3273 * lib/getopt_int.h (includes): Pick up any overrides.
3274 Reported by Reuben Thomas.
3276 hash: allow C89 compilation
3277 * lib/hash.c (check_tuning): Move declaration before statement.
3278 Reported by Reuben Thomas.
3280 2009-10-05 Karl Berry <karl@gnu.org>
3282 * doc/gnulib.texi: @include execvpe.texi, missing for several days.
3284 2009-10-04 Paolo Bonzini <bonzini@gnu.org>
3285 Bruno Haible <bruno@clisp.org>
3287 * lib/uname.c (uname): Use a table-driven algorithm to compute
3288 Windows NT versions.
3290 2009-10-04 Bruno Haible <bruno@clisp.org>
3292 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
3293 program_invocation_short_name.
3294 * modules/progname (configure.ac): Test for presence of
3295 program_invocation_short_name.
3296 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
3298 2009-10-04 Bruno Haible <bruno@clisp.org>
3300 * lib/progname.c (set_program_name): Fix comment.
3301 Reported by Jim Meyering.
3303 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
3304 Bruno Haible <bruno@clisp.org>
3306 * lib/uname.c: Include <string.h>.
3307 (uname): Do only one call to GetVersionEx in the common case.
3309 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
3310 Bruno Haible <bruno@clisp.org>
3312 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
3313 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
3314 (uname): Add support for Windows CE and various non-x86 CPU types.
3316 2009-10-03 Bruno Haible <bruno@clisp.org>
3318 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
3319 invocation to tests/configure.ac.
3320 Reported by Ian Beckwith <ianb@erislabs.net>.
3322 2009-10-02 Eric Blake <ebb9@byu.net>
3324 fchdir: avoid compiler warning
3325 * lib/fchdir.c (canonicalize_file_name)
3326 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
3328 test-open: support mingw errno values
3329 * tests/test-open.h (test_open): Relax test.
3330 * tests/test-fopen.h (test_fopen): Likewise.
3331 * tests/test-openat-safer.c (main): Likewise.
3333 open: fix opening directory on mingw
3334 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
3336 test-open: on GNU/Hurd, /dev/null is a directory
3337 * tests/test-fopen.h (main): Rename...
3338 (test_fopen): ...to this. Use a guaranteed non-directory when
3339 confirming open behavior on trailing slash.
3340 * tests/test-openat-safer.c (main): Likewise.
3341 * tests/test-open.h (main): Likewise....
3342 (test_open): ...to this.
3343 * tests/test-fopen.c (main): Adjust caller.
3344 * tests/test-fopen-safer.c (main): Likewise.
3345 * tests/test-open.c (main): Likewise.
3346 * tests/test-fcntl-safer.c (main): Likewise.
3347 Reported by Samuel Thibault.
3349 rename, fchdir: don't ignore chdir failure
3350 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
3351 * lib/rename.c (rpl_rename) [W32]: Likewise.
3352 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
3353 an empty destination directory if source cannot be renamed,
3354 although there is still possibility for failure.
3355 * doc/posix-functions/rename.texi (rename): Document the race.
3356 Reported by Jim Meyering.
3358 maint: cleanup whitespace in recent commits
3359 * lib/rename.c (rpl_rename): Remove tabs.
3360 * tests/test-link.h (test_link): Likewise.
3361 * lib/fchdir.c (get_name): Likewise.
3362 Reported by Jim Meyering.
3364 2009-10-02 Ben Pfaff <blp@gnu.org>
3366 relocatable-prog-wrapper: Add missing dependency on
3368 * modules/relocatable-prog-wrapper: Add dependency.
3369 Reported by Ian Beckwith <ianb@erislabs.net>.
3371 2009-10-02 Eric Blake <ebb9@byu.net>
3373 renameat: fix Solaris bugs
3374 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
3376 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
3377 * modules/stdio (Makefile.am): Substitute it.
3378 * lib/stdio.in.h (renameat): Declare replacement.
3379 * lib/renameat.c (rpl_renameat): Implement fix.
3381 renameat: new module
3382 * modules/renameat: New file.
3383 * lib/renameat.c (renameat): Likewise.
3384 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
3385 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
3386 * modules/stdio (Makefile.am): Substitute them.
3387 * lib/stdio.in.h (renameat): Declare it.
3388 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
3389 * doc/posix-functions/renameat.texi (renameat): Likewise.
3390 * modules/renameat-tests: New test.
3391 * tests/test-renameat.c: Likewise.
3393 rename: fix mingw bugs
3394 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
3395 directory overwrite bugs.
3397 rename: fix another cygwin 1.5 bug
3398 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
3400 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
3401 unnecessary cygwin workarounds. Also work around bug with moving
3402 full directory onto an empty one.
3403 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
3405 rename-dest-slash: merge into rename module
3406 * modules/rename-dest-slash (Status): Mark obsolete.
3407 (Depends-on): Add rename.
3408 (Files): Let rename do it all.
3409 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
3410 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
3411 * m4/rename-dest-slash.m4: ...so this file can be deleted.
3412 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
3413 * lib/rename.c (rpl_rename): Update comments.
3415 rename: fix cygwin 1.5.x bugs
3416 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
3417 * lib/rename.c (rpl_rename): Work around them.
3418 * modules/rename (Depends-on): Add same-inode.
3420 rename: fix Solaris 10 bug
3421 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
3422 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
3425 rename: fix Solaris 9 bug
3426 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
3427 on non-directory. Avoid calling exit.
3428 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
3430 * modules/rename-tests (Depends-on): Drop lstat.
3431 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
3432 (gl_PREREQ_RENAME): Delete unused macro.
3434 rename-dest-slash: fix NetBSD bug
3435 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
3437 * modules/rename-dest-slash (Depends-on): Add same-inode.
3439 rename-tests: new test, exposes several platform bugs
3440 * modules/rename-tests: New file.
3441 * tests/test-rename.h: Likewise.
3442 * tests/test-rename.c: Likewise.
3443 * doc/posix-functions/rename.texi (rename): Improve documentation,
3444 including bugs that will eventually be fixed in gnulib.
3446 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
3448 * lib/uname.c: Include <stdlib.h>
3449 (uname): Assume version info is available.
3451 2009-10-02 Jim Meyering <meyering@redhat.com>
3453 gnu-web-doc-update: correct --help output
3454 * build-aux/gnu-web-doc-update: Make --help output relevant.
3456 gnu-web-doc-update: add standard options
3457 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
3459 gnu-web-doc-update: New module.
3460 Use this script to automatically update the on-line web documentation
3461 for your GNU project at http://www.gnu.org/software/$pkg/manual/
3462 * modules/gnu-web-doc-update: New file, from coreutils.
3463 * build-aux/gnu-web-doc-update: New script.
3465 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
3467 link: LoadLibrary is not needed.
3468 * lib/link.c: Use GetModuleHandle.
3470 2009-10-01 Eric Blake <ebb9@byu.net>
3472 getopt: bump serial number
3473 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
3476 tests: tighten link, rmdir, and remove tests
3477 * tests/test-link.h (includes): No need to use <config.h> here.
3478 Clean up if directory hard link was created, otherwise test for
3480 * tests/test-linkat.c (main): Simplify.
3481 * tests/test-remove.c (main): Enhance test for trailing '.'.
3482 * tests/test-rmdir.h (test_rmdir_func): Likewise.
3484 2009-10-01 Jim Meyering <meyering@redhat.com>
3486 maint.mk: requiring "make major" was annoying, for a "minor" release.
3487 What is intended is "stable", to contrast with alpha and beta,
3488 so require "make stable", not "make major".
3489 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
3490 (get_tool_versions): Likewise.
3491 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
3493 2009-09-30 Ben Pfaff <blp@gnu.org>
3495 Fix broken build of replacement for Windows tmpfile().
3496 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
3497 flags argument added along with the 'mkostemp' module.
3499 2009-09-28 Bruno Haible <bruno@clisp.org>
3501 Avoid identifier clash with POSIX function 'remove' defined as a macro.
3502 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
3504 (gl_list_remove): Update.
3505 * lib/gl_list.c (gl_list_remove): Update.
3506 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
3508 (gl_oset_remove): Update.
3509 * lib/gl_list.c (gl_oset_remove): Update.
3510 Reported by Eric Blake.
3512 2009-09-28 Eric Blake <ebb9@byu.net>
3514 doc: mention yet more cygwin 1.7 status
3515 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
3517 * doc/glibc-functions/execvpe.texi (execvpe): New file.
3518 * doc/gnulib.texi (Glibc unistd.h): Mention it.
3520 argp: fix test failure
3521 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
3522 that are not upper-case. Pass correct range to tolower.
3524 2009-09-27 Jim Meyering <meyering@redhat.com>
3526 test-yesno: work around sparc-dash here-document infelicity
3527 Without this change, the literal \177 byte in a here document
3528 would make dash 0.5.5.1-3 access uninitialized memory.
3529 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
3530 Instead, use a marker, "@", and filter through tr to create the desired
3531 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
3533 2009-09-27 Bruno Haible <bruno@clisp.org>
3535 Disable untested support for new flavours of ACLs on AIX.
3536 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
3538 * lib/set-mode-acl.c (qset_acl): Likewise.
3540 2008-12-07 Bruno Haible <bruno@clisp.org>
3542 Add support for new flavours of ACLs on AIX. (Untested.)
3543 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
3544 (file_has_acl): Add support for newer AIX.
3545 * lib/set-mode-acl.c (qset_acl): Likewise.
3546 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
3547 Rainer Tammer <tammer@tammer.net>.
3549 2009-09-26 Eric Blake <ebb9@byu.net>
3551 argp: fix compilation of getopt
3552 * lib/getopt.in.h (includes): Use different guard than glibc.
3553 Reported by Sergey Poznyakoff.
3555 doc: mention more cygwin 1.7 status
3556 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
3558 * doc/posix-functions/execl.texi (execl): Likewise.
3559 * doc/posix-functions/execle.texi (execle): Likewise.
3560 * doc/posix-functions/execlp.texi (execlp): Likewise.
3561 * doc/posix-functions/execv.texi (execv): Likewise.
3562 * doc/posix-functions/execve.texi (execve): Likewise.
3563 * doc/posix-functions/execvp.texi (execvp): Likewise.
3564 * doc/glibc-functions/canonicalize_file_name.texi
3565 (canonicalize_file_name): Cygwin 1.7 now provides this.
3566 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
3567 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
3568 on AT_SYMLINK_NOFOLLOW.
3570 2009-09-24 Eric Blake <ebb9@byu.net>
3572 test-linkat: make test more robust
3573 * tests/test-linkat.c (main): Avoid collision with EEXIST.
3575 getopt: fix inclusion guards for cygwin
3576 * modules/getopt-posix (Depends-on): Add include-next.
3577 (Makefile.am): Substitute more items in replacement header.
3578 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
3580 * lib/getopt.in.h (includes): Use split inclusion guard, and
3581 prefer <getopt.h> over include <unistd.h> when one is present.
3582 (option): Also override name of 'struct option'.
3584 same-inode: revert prior change; it is not yet ready
3585 * NEWS: Undo mention of this change.
3586 * lib/same-inode.h (same-inode.h): Undo tri-state change.
3587 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
3588 * lib/cycle-check.c (cycle_check): Likewise.
3589 * lib/same.c (same_name): Likewise.
3590 * lib/at-func2.c (at_func2): Likewise.
3592 2009-09-23 Eric Blake <ebb9@byu.net>
3595 * modules/linkat: New file.
3596 * lib/at-func2.c (at_func2): Likewise.
3597 * lib/linkat.c (linkat): Likewise.
3598 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3599 * lib/openat-priv.h (at_func2): Add declaration.
3600 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
3601 * modules/unistd (Makefile.am): Substitute them.
3602 * lib/unistd.in.h (linkat): Declare it.
3603 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
3604 * doc/posix-functions/linkat.texi (linkat): Likewise.
3605 * doc/posix-functions/link.texi (link): Tweak wording.
3606 * tests/test-link.c (main): Move guts...
3607 * tests/test-link.h (test_link): ...into new file.
3608 * modules/linkat-tests: New test.
3609 * tests/test-linkat.c: Likewise.
3610 * modules/link-tests (Files): Ship new file.
3611 (Depends-on): Add stdbool.
3613 dirname: add library-safe mdir_name
3614 * lib/dirname.h (mdir_name): New prototype.
3615 * lib/dirname.c (dir_name): Move guts...
3616 (mdir_name): ...to new function that avoids xalloc_die.
3618 fchdir: another mingw fix
3619 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
3620 * lib/fchdir.c (get_name): New helper method; skips canonicalize
3621 on mingw (where it has not yet been ported), and make it optional
3623 (_gl_register_fd): Use it.
3625 same-inode: make SAME_INODE tri-state, to port to mingw
3626 * NEWS: Mention this change.
3627 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
3628 st_ino always being 0.
3629 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
3630 * lib/cycle-check.c (cycle_check): Likewise.
3631 * lib/same.c (same_name): Likewise.
3633 lstat: avoid mingw compilation error
3634 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
3635 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
3637 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
3639 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
3640 the checks for lstat.
3641 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
3643 link: fix test failure on Solaris 9
3644 * lib/link.c (rpl_link): Don't assume link will catch bogus
3645 trailing slash on source.
3647 test-symlinkat: enhance test
3648 * tests/test-readlink.c (main): Move guts...
3649 * tests/test-readlink.h (test_readlink): ...into new file.
3650 * tests/test-symlink.c (main): Move guts...
3651 * tests/test-symlink.h (test_symlink): ...into new file.
3652 * tests/test-symlinkat.c (main): Use new files for further
3654 (do_symlink, do_readlink): New helper functions.
3655 * modules/symlink-tests (Files): Ship new file.
3656 (Depends-on): Add stdbool.
3657 * modules/readlink-tests (Files): Ship new file.
3658 (Depends-on): Add stdbool.
3659 * modules/symlinkat-tests (Files): Use new files.
3661 2009-09-23 Eric Blake <ebb9@byu.net>
3663 readlink: document portability issue with symlink length
3664 * doc/posix-functions/lstat.texi (lstat): Mention that some file
3665 systems have bogus st_size on symlinks, and mention the
3666 areadlink-with-size module.
3667 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
3668 * doc/posix-functions/readlink.texi (readlink): Mention the
3669 areadlink module, and ERANGE failure.
3670 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
3671 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
3673 readlink: fix Solaris 9 bug with trailing slash
3674 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
3675 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
3676 * doc/posix-functions/readlink.texi (readlink): Document this.
3677 * modules/readlink-tests: New test.
3678 * tests/test-readlink.c: Likewise.
3680 readlink: fix cygwin 1.5.x bug with return type
3681 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
3682 * lib/unistd.in.h (readlink): Use ssize_t.
3683 * lib/readlink.c (readlink): Likewise.
3684 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
3685 * modules/unistd (Makefile.am): Substitute it.
3686 * lib/unistd.in.h (readlink): Declare replacement.
3687 * doc/posix-functions/readlink.texi (readlink): Document this.
3689 symlink: use throughout gnulib
3690 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
3691 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
3692 symlink is not used.
3693 * modules/symlinkat (Depends-on): Add symlink.
3694 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
3695 * modules/canonicalize-tests (Depends-on): Likewise.
3696 * modules/lstat-tests (Depends-on): Likewise.
3697 * modules/openat-tests (Depends-on): Likewise.
3698 * modules/remove-tests (Depends-on): Likewise.
3699 * modules/rmdir-tests (Depends-on): Likewise.
3700 * modules/unlink-tests (Depends-on): Likewise.
3701 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
3702 * tests/test-canonicalize.c (symlink): Likewise.
3703 * tests/test-fstatat.c (symlink): Likewise.
3704 * tests/test-lstat.c (symlink): Likewise.
3705 * tests/test-remove.c (symlink): Likewise.
3706 * tests/test-rmdir.c (symlink): Likewise.
3707 * tests/test-unlink.c (symlink): Likewise.
3708 * tests/test-unlinkat.c (symlink): Likewise.
3710 symlink: new module, for Solaris 9 bug
3711 * modules/symlink: New file.
3712 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
3713 * lib/symlink.c: Likewise.
3714 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
3715 * modules/unistd (Makefile.am): Substitute them.
3716 * lib/unistd.in.h (symlink): Declare replacement.
3717 * MODULES.html.sh (File system functions): Mention it.
3718 * doc/posix-functions/symlink.texi (symlink): Likewise.
3719 * modules/symlink-tests: New test.
3720 * tests/test-symlink.c: Likewise.
3722 2009-09-23 Bruno Haible <bruno@clisp.org>
3724 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
3726 Test case: gnulib-tool --import --with-tests atexit inttypes.
3727 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
3729 2009-09-23 Bruno Haible <bruno@clisp.org>
3731 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
3732 subcommand, not in a subshell.
3734 2009-09-22 Eric Blake <ebb9@byu.net>
3736 unistd: sort replacement declarations
3737 * lib/unistd.in.h: Sort declarations.
3739 open, openat: minor optimization
3740 * lib/open.c (open): If open succeeded, len is non-zero.
3741 * lib/openat.c (rpl_openat): Likewise.
3743 link-follow: ensure correct result
3744 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
3745 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
3746 distinguish between possible failures.
3748 2009-09-21 Eric Blake <ebb9@byu.net>
3750 fts: avoid compiler warning
3751 * lib/fts.c (dirent_inode_sort_may_be_useful)
3752 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
3754 2009-09-19 Bruno Haible <bruno@clisp.org>
3756 * lib/progreloc.c (canonicalize_file_name): New declaration.
3758 2009-09-19 Eric Blake <ebb9@byu.net>
3761 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
3763 openat: fix openat bugs on Solaris 9
3764 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
3765 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
3766 * modules/openat (Depends-on): Add open.
3767 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
3768 * modules/fcntl-h (Makefile.am): Substitute it.
3769 * lib/fcntl.in.h (openat): Declare replacement.
3770 * doc/posix-functions/openat.texi (openat): Document this.
3772 openat: move fstatat and unlinkat into correct files
3773 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
3775 * lib/openat.c (fstatat, unlinkat): Move...
3776 * lib/fstatat.c (fstatat): ...into correct files.
3777 * lib/unlinkat.c (unlinkat): Likewise.
3779 openat: fix unlinkat bugs on Solaris 9
3780 * lib/unlinkat.c (unlinkat): New file.
3781 * modules/openat (Depends-on): Add unlink.
3782 (Files): Distribute it.
3783 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
3784 trailing slash behavior is broken.
3785 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
3786 * modules/unistd (Makefile.am): Substitute it.
3787 * lib/unistd.in.h (unlinkat): Declare replacement.
3788 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
3790 openat: fix fstatat bugs on Solaris 9
3791 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
3793 * doc/posix-functions/fstatat.texi (fstatat): Document this.
3795 test-unlinkat: enhance test, to expose Solaris 9 bug
3796 * tests/test-unlink.c (main): Factor guts...
3797 * tests/test-unlink.h (test_rmdir_func): ...into new file.
3798 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
3799 * tests/test-rmdir.c (main): Adjust caller.
3800 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
3801 (unlinker): New helper function.
3802 (rmdirat): Enhance check.
3803 * modules/rmdir-tests (Depends-on): Add stdbool.
3804 * modules/unlink-tests (Depends-on): Likewise.
3805 (Files): Add test-unlink.h.
3806 * modules/openat-tests (Files): Likewise.
3807 (Depends-on): Add unlinkdir.
3809 test-fstatat: new test, to expose Solaris 9 bugs
3810 * tests/test-stat.c (main): Factor guts...
3811 * tests/test-stat.h (test_stat_func): ...into new file.
3812 * tests/test-lstat.c (main): Factor guts...
3813 * tests/test-lstat.h (test_lstat_func): ...into new file.
3814 * tests/test-fstatat.c: New file.
3815 * modules/stat-tests (Files): Add test-stat.h.
3816 * modules/lstat-tests (Files): Add test-lstat.h.
3817 (Depends-on): Add stdbool.
3818 * modules/openat-tests (Depends-on): Add pathmax.
3819 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
3820 (Makefile.am): Run new test.
3822 remove: new module, for mingw and Solaris 9 bugs
3823 * modules/remove: New file.
3824 * lib/remove.c: Likewise.
3825 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
3826 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
3827 * modules/stdio (Makefile.am): Use them.
3828 * lib/stdio.in.h (remove): Declare replacement.
3829 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
3830 * doc/posix-functions/remove.texi (remove): Likewise.
3831 * modules/remove-tests: New test.
3832 * tests/test-remove.c: Likewise.
3834 unlink: new module, for Solaris 9 bug
3835 * modules/unlink: New file.
3836 * lib/unlink.c: Likewise.
3837 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3838 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
3839 * modules/unistd (Makefile.am): Use them.
3840 * lib/unistd.in.h (stat): Declare replacement.
3841 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
3842 * doc/posix-functions/unlink.texi (unlink): Likewise.
3843 * modules/unlink-tests: New test.
3844 * tests/test-unlink.c: Likewise.
3846 lstat: fix Solaris 9 bug
3847 * lib/lstat.c (lstat): Also check for trailing slash on
3848 non-symlink, non-directories. Use stat module to simplify logic.
3849 * doc/posix-functions/lstat.texi (lstat): Document it.
3850 * modules/lstat-tests (Depends-on): Add errno, same-inode.
3851 (configure.ac): Check for symlink.
3852 * tests/test-lstat.c (main): Add more tests.
3854 stat: add as dependency to other modules
3855 * modules/chown (Depends-on): Add stat.
3856 * modules/euidaccess (Depends-on): Likewise.
3857 * modules/fchdir (Depends-on): Likewise.
3858 * modules/isdir (Depends-on): Likewise.
3859 * modules/link (Depends-on): Likewise.
3860 * modules/lstat (Depends-on): Likewise.
3861 * modules/mkdir-p (Depends-on): Likewise.
3862 * modules/modechange (Depends-on): Likewise.
3863 * modules/open (Depends-on): Likewise.
3864 * modules/readlink (Depends-on): Likewise.
3865 * modules/same (Depends-on): Likewise.
3867 stat: fix Solaris 9 bug
3868 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
3870 * lib/stat.c (rpl_stat): Work around it.
3871 * doc/posix-functions/stat.texi (stat): Update documentation.
3873 stat: new module, for mingw bug
3874 * modules/stat: New file.
3875 * lib/stat.c: Likewise.
3876 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3877 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
3878 * modules/sys_stat (Makefile.am): Use them.
3879 * lib/sys_stat.in.h (stat): Declare replacement.
3880 * lib/openat.c (fstatat): Deal with lstat and stat being function
3882 * modules/openat (Depends-on): Add inline.
3883 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
3884 * doc/posix-functions/stat.texi (stat): Likewise.
3885 * modules/stat-tests: New test.
3886 * tests/test-stat.c: Likewise.
3888 2009-09-19 Jim Meyering <meyering@redhat.com>
3890 syntax-check: detect unnecessary inclusion of canonicalize.h
3891 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
3893 2009-09-19 Eric Blake <ebb9@byu.net>
3895 canonicalize-lgpl: adjust clients to use correct header
3896 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
3897 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
3898 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
3899 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
3900 * lib/progreloc.c (includes): Likewise.
3902 2009-09-19 Jim Meyering <meyering@redhat.com>
3904 test-posixtm.c: correct a comment
3905 * tests/test-posixtm.c: Correct first-line comment.
3906 Spotted by Eric Blake.
3908 2009-09-16 Jim Meyering <meyering@redhat.com>
3910 posixtm-tests: make T const-correct; add a test case
3911 * tests/test-posixtm.c (T): Declare const.
3912 Add a test for -(2^31+1).
3913 Remove useless can-succeed-only-in-2002 test.
3915 posixtm-tests: adjust the sole failing test
3916 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
3917 expected output matches what mktime now produces. Cross-checked via
3918 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
3920 posixtm: move #ifdef'd tests into a new module
3921 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
3922 * tests/test-posixtm.c: ... this new file.
3923 * modules/posixtm-tests: New module.
3925 2009-09-19 Eric Blake <ebb9@byu.net>
3927 openat: simplify use of at-func.c
3928 * lib/at-func.c (includes): Include prerequisites here, to
3929 simplify requirements on client files.
3930 * lib/openat-priv.h: Add double-inclusion guard.
3931 * lib/faccessat.c (includes): Simplify.
3932 * lib/fchmodat.c (includes): Likewise.
3933 * lib/fchownat.c (includes): Likewise.
3934 * lib/mkdirat.c (includes): Likewise.
3935 * lib/mkfifoat.c (includes): Likewise.
3936 * lib/symlinkat.c (includes): Likewise.
3938 openat: allow return of fd 0
3939 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
3940 * modules/save-cwd (Depends-on): Replace fcntl-safer with
3942 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
3943 <fcntl.h>; this module does not leak fds.
3944 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
3945 must be allowed to return 0, leaving openat_safer to add the
3947 (openat_permissive): Avoid writing to just-opened fd 2 if
3948 restoring the current directory fails.
3949 * lib/openat-die.c (openat_restore_fail): Add comment.
3950 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
3951 (save_cwd): Guarantee safe fd, but without use of open_safer.
3952 * tests/test-openat.c: New test.
3953 * modules/openat-tests (Files, Makefile.am): Distribute and build
3956 relocatable-prog-wrapper: fix build
3957 * modules/relocatable-prog-wrapper (Files): Update name of
3958 canonicalize m4 file, broken on 2009-09-17.
3959 Reported by emad hajjar <aleppos@hotmail.com>.
3961 2009-09-19 Bruno Haible <bruno@clisp.org>
3963 * lib/safe-alloc.h: Use the standard header with GPL copyright.
3964 * lib/safe-alloc.c: Likewise.
3965 Reported by Ian Beckwith <ianb@erislabs.net>.
3967 2009-09-18 Bruno Haible <bruno@clisp.org>
3969 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
3970 Reported by <erobles@sensacd.com.mx>.
3972 2009-09-17 Eric Blake <ebb9@byu.net>
3974 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
3975 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
3976 slashes when checking if last component is missing.
3977 * tests/test-canonicalize.c (main): Test this.
3979 canonicalize, canonicalize-lgpl: honor // if distinct from /
3980 * modules/canonicalize (Files): Add double-slash-root.m4.
3981 * modules/canonicalize-lgpl (Files): Likewise.
3982 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
3983 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
3984 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
3985 fallback definition.
3986 (canonicalize_filename_mode): Use it to protect //.
3987 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
3988 (__realpath): Likewise.
3989 * tests/test-canonicalize.c (main): Test this.
3990 * tests/test-canonicalize-lgpl.c (main): Likewise.
3991 * modules/canonicalize-tests (Depends-on): Add same-inode.
3992 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
3994 canonicalize-lgpl: fix glibc bug with trailing slash
3995 * m4/canonicalize-lgpl.m4: Move contents...
3996 * m4/canonicalize.m4: ...here.
3997 (gl_CANONICALIZE_LGPL): Factor realpath check...
3998 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
3999 glibc 2.3.5 bug, fixed 2005-04-27.
4000 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
4001 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
4002 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
4003 * modules/canonicalize-lgpl (Files): Manage file rename.
4004 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
4005 * modules/stdlib (Makefile.am): Substitute witness.
4006 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
4008 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
4009 replacement is required.
4010 * lib/canonicalize.c (canonicalize_file_name): Likewise.
4011 * doc/glibc-functions/canonicalize_file_name.texi
4012 (canonicalize_file_name): Document this.
4013 * doc/posix-functions/realpath.texi (realpath): Likewise.
4015 canonicalize-lgpl: reject non-directory with trailing slash
4016 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
4017 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
4018 catches failures in glibc 2.3.5.
4019 * tests/test-canonicalize.c (main): Likewise.
4021 canonicalize-lgpl: use native realpath if it works
4022 * lib/canonicalize-lgpl.c (realpath): Guard with
4023 FUNC_REALPATH_WORKS.
4024 * lib/stdlib.in.h (realpath): Make declaration optional based on
4026 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
4027 native realpath works.
4028 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
4029 * modules/stdlib (Makefile.am): Substitute witness.
4031 canonicalize, canonicalize-lgpl: use <stdlib.h>
4032 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
4033 (Include): Mention <stdlib.h>.
4034 (configure.ac): Mention functions we provide.
4035 * modules/canonicalize (configure.ac): Likewise.
4036 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
4037 realpath if canonicalize_file_name is missing.
4038 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
4039 * modules/stdlib (Makefile.am): Substitute witnesses.
4040 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
4041 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
4042 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
4043 * NEWS: Document this.
4044 * doc/glibc-functions/canonicalize_file_name.texi
4045 (canonicalize_file_name): Likewise.
4046 * doc/posix-functions/realpath.texi (realpath): Likewise.
4047 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
4049 test-canonicalize: consolidate into single C program
4050 * tests/test-canonicalize.sh: Delete; move setup into...
4051 * tests/test-canonicalize.c (main): ...the program, making it
4052 easier to run in debugger. Add some tests.
4053 * modules/canonicalize-tests (Files): Remove unused file.
4054 (Depends-on): Add progname.
4055 (configure.ac, Makefile.am): Simplify.
4057 test-canonicalize-lgpl: consolidate into single C program
4058 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
4059 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
4060 easier to run in debugger. Add some tests.
4061 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
4062 (configure.ac, Makefile.am): Simplify.
4064 canonicalize: avoid resolvepath
4065 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
4067 * lib/canonicalize.c (includes): Simplify.
4068 (canonicalize_file_name): Drop resolvepath implementation.
4069 * modules/canonicalize (Depends-on): Drop filenamecat.
4071 canonicalize: don't lose errno
4072 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
4075 canonicalize: simplify errno handling
4076 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
4079 canonicalize, canonicalize-lgpl: update module dependencies
4080 * modules/canonicalize (Depends-on): Add extensions, lstat,
4082 (Files): Drop pathmax.h.
4083 (configure.ac): Adjust macro name.
4084 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
4085 lstat, stdlib, sys_stat.
4086 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
4087 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
4089 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
4090 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
4091 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
4092 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
4093 declaration, if available.
4094 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
4095 we can rely on the readlink module.
4096 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
4097 (includes): Use <unistd.h> unconditionally.
4099 2009-09-17 Eric Blake <ebb9@byu.net>
4101 maint: make Include sections of modules consistent
4102 * modules/alloca: Use only header name; no need to list #include.
4103 * modules/alloca-opt: Likewise.
4104 * modules/arpa_inet: Likewise.
4105 * modules/canon-host: Likewise.
4106 * modules/configmake: Likewise.
4107 * modules/dirent: Likewise.
4108 * modules/eealloc: Likewise.
4109 * modules/environ: Likewise.
4110 * modules/fchdir: Likewise.
4111 * modules/fcntl: Likewise.
4112 * modules/fcntl-h: Likewise.
4113 * modules/gethrxtime: Likewise.
4114 * modules/gettime: Likewise.
4115 * modules/ignore-value: Likewise.
4116 * modules/inet_ntop: Likewise.
4117 * modules/inet_pton: Likewise.
4118 * modules/inttypes: Likewise.
4119 * modules/isnand-nolibm: Likewise.
4120 * modules/isnanf-nolibm: Likewise.
4121 * modules/mbchar: Likewise.
4122 * modules/mbfile: Likewise.
4123 * modules/mbiter: Likewise.
4124 * modules/mbuiter: Likewise.
4125 * modules/netdb: Likewise.
4126 * modules/netinet_in: Likewise.
4127 * modules/nproc: Likewise.
4128 * modules/pagealign_alloc: Likewise.
4129 * modules/poll: Likewise.
4130 * modules/printf-frexp: Likewise.
4131 * modules/pthread: Likewise.
4132 * modules/putenv: Likewise.
4133 * modules/random_r: Likewise.
4134 * modules/relocatable-prog: Likewise.
4135 * modules/search: Likewise.
4136 * modules/select: Likewise.
4137 * modules/selinux-h: Likewise.
4138 * modules/settime: Likewise.
4139 * modules/signal: Likewise.
4140 * modules/size_max: Likewise.
4141 * modules/socklen: Likewise.
4142 * modules/ssize_t: Likewise.
4143 * modules/stdarg: Likewise.
4144 * modules/stdbool: Likewise.
4145 * modules/stddef: Likewise.
4146 * modules/stdint: Likewise.
4147 * modules/stdio: Likewise.
4148 * modules/stdlib: Likewise.
4149 * modules/string: Likewise.
4150 * modules/strings: Likewise.
4151 * modules/sys_file: Likewise.
4152 * modules/sys_ioctl: Likewise.
4153 * modules/sys_select: Likewise.
4154 * modules/sys_socket: Likewise.
4155 * modules/sys_stat: Likewise.
4156 * modules/sys_time: Likewise.
4157 * modules/sys_times: Likewise.
4158 * modules/sys_utsname: Likewise.
4159 * modules/sys_wait: Likewise.
4160 * modules/sysexits: Likewise.
4161 * modules/time: Likewise.
4162 * modules/times: Likewise.
4163 * modules/tmpfile: Likewise.
4164 * modules/trim: Likewise.
4165 * modules/unistd: Likewise.
4166 * modules/wchar: Likewise.
4167 * modules/wctype: Likewise.
4169 2009-09-17 Bruno Haible <bruno@clisp.org>
4171 Make getdate.y compile on QNX and NetBSD 5 / i386.
4172 * m4/getdate.m4 (gl_GETDATE): Conditionally define
4173 TIME_T_FITS_IN_LONG_INT.
4174 * lib/getdate.y (long_time_t): New type.
4175 (relative_time): Change type of 'seconds' field to long_time_t.
4176 (get_date): Update types of local variables. Check against overflow
4177 during conversion from long_time_t to time_t.
4178 Reported by Matt Kraai <kraai@ftbfs.org>
4179 and Hasso Tepper <hasso@netbsd.org>.
4181 2009-09-17 Bruno Haible <bruno@clisp.org>
4183 * modules/COPYING: Update copyright years.
4184 * modules/README: Likeiwse.
4185 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
4186 Reported by Ian Beckwith <ianb@erislabs.net>.
4188 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
4190 * users.txt: Update references for gnuit package.
4192 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
4194 * m4/getdelim.m4: Fix typo in copyright line.
4196 2009-09-17 Bruno Haible <bruno@clisp.org>
4198 * lib/atoll.c: Use the standard header with GPL copyright.
4199 * lib/argz.in.h: Likewise.
4200 * lib/glob.c: Likewise.
4201 * lib/glob-libc.h: Likewise.
4202 * lib/random_r.c: Likewise.
4203 * lib/siglist.h: Likewise.
4204 * lib/strsignal.c: Likewise.
4205 Reported by Ian Beckwith <ianb@erislabs.net>.
4207 2009-09-17 Eric Blake <ebb9@byu.net>
4209 rmdir: ensure correct dependency order
4210 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
4212 2009-09-17 Bruno Haible <bruno@clisp.org>
4214 Disable assertion that fails on NetBSD 5 / i386.
4215 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
4216 Reported by Sam Steingold <sds@gnu.org>
4217 and Hasso Tepper <hasso@netbsd.org>.
4219 2009-09-16 Eric Blake <ebb9@byu.net>
4221 unlinkdir: port to mingw
4222 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
4223 on which no one can unlink a directory.
4225 stdlib: sort witness names
4226 * modules/stdlib (Makefile.am): Sort replacements.
4227 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
4228 * lib/stdlib.in.h: Likewise.
4230 parse-duration-tests: avoid link failure
4231 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
4233 Reported by Tom G. Christensen.
4235 openat-tests: ensure unlinkat behaves like rmdir
4236 * tests/test-rmdir.c (main): Factor guts...
4237 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
4238 * modules/rmdir-tests (Files): Ship new file.
4239 * modules/openat-tests: New test.
4240 * tests/test-unlinkat.c: Likewise.
4242 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
4243 * modules/rmdir-errno (Status, Notice): Now obsolete.
4245 rmdir: work around cygwin 1.5.x and mingw bugs
4246 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
4247 * lib/rmdir.c (rmdir): Work around it.
4248 * modules/rmdir (Status, Notice): No longer obsolete.
4249 (Files): Add dos.m4.
4250 (Depends-on): Add unistd.
4251 (configure.ac): Set witnesses.
4252 (License): Relax to LGPLv2+.
4253 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
4254 * modules/unistd (Makefile.am): Substitute witnesses.
4255 * lib/unistd.in.h (rmdir): Declare replacement.
4256 * doc/posix-functions/rmdir.texi (rmdir): Document this.
4257 * modules/rmdir-tests: New tests.
4258 * tests/test-rmdir.c: Likewise.
4260 2009-09-15 Eric Blake <ebb9@byu.net>
4262 fchdir: improve use of replacement functions
4263 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
4264 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
4265 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
4267 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
4268 * modules/sys_stat (Makefile.am): Substitute correct witness.
4269 * modules/dirent (Makefile.am): Likewise.
4270 * modules/unistd (Makefile.am): Likewise.
4271 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
4272 * lib/unistd.in.h (dup): Likewise.
4273 * lib/sys_stat.in.h (fstat): Likewise.
4275 maint: ignore gnulib-tool temp files
4276 * .gitignore: Ignore files created during gnulib-tool --test.
4278 2009-09-13 Jim Meyering <meyering@redhat.com>
4280 posixtm: don't reject a time that specify "60" as the number of seconds
4281 * lib/posixtm.c (posixtime): The code to reject invalid dates
4282 would also reject a time specified with the .60 suffix.
4283 But POSIX allows that, in order to accommodate leap seconds.
4285 (main): Adjust tests accordingly.
4286 * modules/posixtm (Depends-on): Add stpcpy.
4288 2009-09-11 Jim Meyering <meyering@redhat.com>
4290 announce-gen: include [$release_type] in emitted Subject:
4291 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
4292 e.g., [stable] in the emitted Subject: line.
4294 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4296 Remove obsolete macros from several modules.
4297 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
4298 obsolete Autoconf macros with their modern counterparts.
4299 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
4300 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
4301 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
4302 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
4303 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
4304 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4305 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
4306 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
4307 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
4308 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
4309 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4310 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4311 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
4312 * m4/sockets.m4 (gl_SOCKETS): Likewise.
4313 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
4314 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
4315 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
4316 * m4/time_r.m4 (gl_TIME_R): Likewise.
4317 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
4318 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
4319 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
4321 Fix copyright header in build-aux scripts.
4322 * build-aux/git-version-gen: Fix copyright header to match GPLv3
4324 * build-aux/ncftpput-ftp: Likewise.
4325 * build-aux/update-copyright: Likewise.
4327 2009-09-09 Eric Blake <ebb9@byu.net>
4329 test-link: allow Linux choice of errno
4330 * tests/test-link.c (main): Relax test for alternate error.
4332 strndup: fix improper m4 caching
4333 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
4334 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
4335 (gl_PREREQ_STRNDUP): Delete.
4336 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
4337 * modules/string (Makefile.am): Substitute it.
4338 * lib/string.in.h (strndup): Modernize prototype.
4340 getcwd: port to mingw
4341 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
4342 different from the POSIX assumptions made throughout the getcwd
4343 module; fortunately, the mingw getcwd does not need replacement.
4344 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
4345 * modules/getcwd-tests: New test.
4346 * tests/test-getcwd.c: Likewise.
4348 link: fix platform bugs
4349 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
4350 * lib/link.c (link): Work around them. Fix related mingw bug.
4351 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
4352 * modules/unistd (Makefile.am): Substitute it.
4353 * lib/unistd.in.h (link): Declare replacement.
4354 * doc/posix-functions/link.texi (link): Document this.
4355 * modules/link (Depends-on): Add strdup-posix, sys_stat.
4357 test-link: consolidate into single C program, test more cases
4358 * tests/test-link.sh: Delete.
4359 * tests/test-link.c: Test more error conditions. Exposes bugs on
4360 at least Cygwin and Solaris.
4361 * modules/link-tests (Files): Remove unused file.
4362 (Depends-on): Add errno, sys_stat.
4363 (Makefile.am): Simplify.
4365 2009-09-08 Bruno Haible <bruno@clisp.org>
4367 Work around towlower, towupper bug on mingw.
4368 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
4369 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
4370 * doc/posix-functions/towlower.texi: Mention the mingw bug.
4371 * doc/posix-functions/towupper.texi: Likewise.
4372 Reported by Eric Blake.
4374 2009-09-08 Jim Meyering <meyering@redhat.com>
4376 build: don't try to run autoheader if we don't use it
4377 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
4378 is not used in configure.ac.
4380 2009-09-08 Eric Blake <ebb9@byu.net>
4382 euidaccess: fix compilation error
4383 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
4385 rawmemchr: relax license
4386 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
4388 Reported by Jim Meyering.
4390 mkfifoat: new module
4391 * modules/mkfifoat: New file.
4392 * lib/mkfifoat.c: Likewise.
4393 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
4394 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
4395 * modules/sys_stat (Makefile.am): Use them.
4396 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
4397 * MODULES.html.sh (File system functions): Mention module.
4398 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
4399 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
4400 * modules/mkfifoat-tests: New test.
4401 * tests/test-mkfifoat.c: Likewise.
4403 strchrnul: relax license
4404 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
4406 Reported by Jim Meyering.
4408 2009-09-08 Eric Blake <ebb9@byu.net>
4410 fstatat: fix compilation on Solaris
4411 * lib/fstatat.c (includes): Add fcntl.h.
4412 Reported by Pádraig Brady.
4414 2009-09-07 Eric Blake <ebb9@byu.net>
4416 rename: modernize replacement
4417 * modules/rename (Depends-on): Add stdio.
4418 (configure.ac): Declare witness.
4419 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
4420 stdio take care of replacement.
4421 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
4422 * modules/stdio (Makefile.am): Substitute them.
4423 * lib/stdio.in.h (rename): Declare replacement.
4424 * lib/rename.c (includes): Allow cross-compilation to non-windows
4426 * doc/posix-functions/rename.texi (rename): Improve
4429 stdio: sort witness names
4430 * modules/stdio (Makefile.am): Sort replacements.
4431 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
4432 * lib/stdio.in.h: Likewise.
4434 getcwd: minor cleanups
4435 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
4436 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
4438 openat: provide more convenience names
4439 * modules/faccessat (configure.ac): Add C witness.
4440 * lib/unistd.in.h (readlinkat): Fix typo.
4441 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
4442 convenience wrappers.
4443 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
4444 wrappers in syntax checks.
4446 2009-09-06 Eric Blake <ebb9@byu.net>
4448 doc: fix comments in recent patches
4449 * lib/faccessat.c: Mention correct function.
4450 * lib/fchmodat.c: Likewise.
4451 * lib/fchownat.c: Likewise.
4452 * lib/symlinkat.c: Likewise.
4453 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
4456 faccessat, symlinkat: continue cleanup of previous patch
4457 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
4458 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
4459 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
4460 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
4461 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
4462 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
4465 2009-09-06 Bruno Haible <bruno@clisp.org>
4467 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
4468 (fstatat): Declare if GNULIB_FSTATAT is set.
4469 (mkdirat): Declare if GNULIB_MKDIRAT is set.
4470 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
4471 (unlinkat): Declare if GNULIB_UNLINKAT is set.
4472 * modules/fcntl-h (Files): Remove m4/openat.m4.
4473 * modules/sys_stat (Files): Remove m4/openat.m4.
4474 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
4475 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
4476 * modules/unistd (Files): Remove m4/openat.m4.
4477 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
4479 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
4480 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
4481 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
4482 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
4483 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
4485 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
4486 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
4487 Don't require gl_OPENAT_DEFAULTS.
4488 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
4489 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
4490 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
4491 (gl_OPENAT_DEFAULTS): Remove macro.
4493 2009-09-06 Bruno Haible <bruno@clisp.org>
4495 * modules/openat (configure.ac): Remove unneeded witness.
4497 2009-09-06 Bruno Haible <bruno@clisp.org>
4499 Set errno to ENOSYS when a function is entirely unsupported.
4500 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
4502 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
4503 * modules/chown (Depends-on): Remove errno.
4505 2009-09-06 Bruno Haible <bruno@clisp.org>
4507 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
4509 2009-09-06 Bruno Haible <bruno@clisp.org>
4511 * lib/sys_stat.in.h: Fix preprocessor command indentation.
4513 2009-09-06 Ben Pfaff <blp@gnu.org>
4514 Bruno Haible <bruno@clisp.org>
4516 Work around a glibc bug in strtok_r.
4517 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
4518 Undefine if UNDEFINE_STRTOK_R is set.
4519 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
4520 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4521 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
4522 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
4523 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
4525 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
4527 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
4530 * lib/exclude.c: Include wctype.h
4532 2009-09-06 Akim Demaille <demaille@gostai.com>
4534 bootstrap: improve error message
4535 * build-aux/bootstrap (find_tool): Upon failure, report the list
4537 Honor the initial value of the envvar.
4539 2009-09-05 Eric Blake <ebb9@byu.net>
4541 symlinkat: new module
4542 * modules/symlinkat: New file.
4543 * lib/symlinkat.c: Likewise.
4544 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
4545 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
4546 * modules/unistd (Makefile.am): Use them.
4547 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
4548 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
4549 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
4550 * MODULES.html.sh (File system functions): Mention module.
4551 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
4552 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
4553 * modules/symlinkat-tests: New test.
4554 * tests/test-symlinkat.c: Likewise.
4556 test-openat-safer: add more checks
4557 * tests/test-openat-safer.c (main): Check more code paths.
4559 2009-09-05 Jim Meyering <meyering@redhat.com>
4561 syntax-check: detect unnecessary inclusion of openat.h
4562 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
4564 2009-09-05 Bruno Haible <bruno@clisp.org>
4566 Support towlower, towupper.
4567 * doc/posix-functions/towlower.texi: Mention module wctype.
4568 * doc/posix-functions/towupper.texi: Likewise.
4569 * lib/wctype.in.h (towlower, towupper): New functions.
4570 * tests/test-wctype.c: Include stdio.h, stdlib.h.
4571 (ASSERT): New macro.
4573 (main): Test also towlower, towupper. Test WEOF argument.
4574 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
4576 2009-09-05 Bruno Haible <bruno@clisp.org>
4578 Fix conversion behaviour when the input is invalid.
4579 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
4580 mark occurring in first pass of indirect conversion.
4581 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
4583 Found by clang's static analyzer.
4585 2009-09-05 Bruno Haible <bruno@clisp.org>
4587 * tests/test-striconveh.c (main): Test indirect conversion on platforms
4588 where direct conversion is possible.
4590 2009-09-04 Eric Blake <ebb9@byu.net>
4592 openat: fail with ENOENT on empty name
4593 * lib/openat-proc.c (openat_proc_name): Special-case the empty
4596 link-follow: fix logic bug in prior patch
4597 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
4598 reversed sense of yes and no in prior patch. Avoid confusing
4599 compilation failure with desired semantics.
4601 link-follow: accomodate mingw and cross-compilation
4602 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
4603 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
4604 cross-compilation results to -1, to make linkat easier to
4605 implement when cross-compiling. Trivially support mingw.
4606 * modules/link-follow (configure.ac): Call new name.
4607 * NEWS: Mention this.
4609 2009-09-03 Eric Blake <ebb9@byu.net>
4611 faccessat: compile replacement
4612 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
4615 fts: fix compilation error
4616 * lib/fts.c (includes): Re-add "openat.h", for
4617 openat_needs_fchdir.
4619 faccessat: new module
4620 * modules/faccessat: New file.
4621 * lib/faccessat.c: Likewise.
4622 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
4623 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4624 * modules/unistd (Makefile.am): Use it.
4625 * lib/unistd.in.h (faccessat): Declare it.
4626 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
4627 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
4628 * MODULES.html.sh (File system functions): Mention it.
4629 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
4630 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
4632 euidaccess: prefer POSIX over non-standard implementation
4633 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
4634 * lib/euidaccess.c (euidaccess): Use it if available.
4636 openat: make template easier to use
4637 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
4638 AT_FUNC_F2 to be undefined.
4639 (VALIDATE_FLAG): New macro; use it to reject bad flags.
4640 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
4641 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
4642 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
4643 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
4645 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
4646 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
4647 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
4650 openat: declare in POSIX headers
4651 * NEWS: Mention this.
4652 * modules/openat (configure.ac): Declare witnesses.
4653 (Depends-on): Add fcntl-h, sys_stat, unistd.
4654 (Include): Mention correct headers.
4655 * modules/fcntl-h (Depends-on): Add link-warning.
4656 (Files): Add openat.m4.
4657 (Makefile.am): Substitute witnesses.
4658 * modules/sys_stat (Files, Makefile.am): Likewise.
4659 * modules/unistd (Files, Makefile.am): Likewise.
4660 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
4661 (gl_OPENAT_DEFAULTS): New macro.
4662 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
4663 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
4664 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
4665 (SYS_STAT_H): Remove unused variable.
4666 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
4667 * lib/fcntl--.h (includes): Remove unneeded header.
4668 * lib/openat-safer.c (includes): Likewise.
4669 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
4670 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
4671 appropriate headers.
4672 (__OPENAT_PREFIX): Delete.
4673 * lib/fcntl.in.h (openat): Provide declaration.
4674 (AT_FDCWD): Fix Solaris bug.
4675 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
4676 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
4677 * lib/fchmodat.c (includes): Adjust to find declaration.
4678 * lib/fchownat.c (includes): Likewise.
4679 * lib/mkdirat.c (includes): Likewise.
4680 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
4683 2009-09-02 Eric Blake <ebb9@byu.net>
4685 errno: use consistently
4686 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
4687 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
4688 * lib/canonicalize.c (ELOOP): Likewise.
4689 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
4690 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
4691 * lib/lchown.c (EOPNOTSUPP): Likewise.
4692 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
4693 * lib/savewd.c (ESTALE): Likewise.
4694 * lib/settime.c (ENOSYS): Likewise.
4695 * lib/utimens.c (ENOSYS): Likewise.
4696 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
4697 * lib/chdir-safer.c (ELOOP): Likewise.
4698 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
4699 * modules/c-stack (Depends-on): Add errno.
4700 * modules/canonicalize (Depends-on): Likewise.
4701 * modules/chdir-safer (Depends-on): Likewise.
4702 * modules/fdopendir (Depends-on): Likewise.
4703 * modules/inet_ntop (Depends-on): Likewise.
4704 * modules/inet_pton (Depends-on): Likewise.
4705 * modules/lchown (Depends-on): Likewise.
4706 * modules/openat (Depends-on): Likewise.
4707 * modules/savewd (Depends-on): Likewise.
4708 * modules/settime (Depends-on): Likewise.
4709 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
4711 fts: avoid leaking fds
4712 * modules/fts (Depends-on): Add cloexec.
4713 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
4716 fts: make directory fds more robust
4717 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
4718 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
4720 backupfile, chdir-long, fts, savedir: make safer
4721 * lib/backupfile.c (includes): Use "dirent--.h", since
4722 numbered_backup can write to stderr during readdir.
4723 * lib/savedir.c (includes): Likewise.
4724 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
4725 emulation can write to stderr on failure.
4726 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
4727 * lib/getcwd.c: Document why opendir_safer is unused.
4728 * lib/glob.c: Likewise.
4729 * lib/scandir.c: Likewise.
4730 * lib/openat-proc.c: Likewise, for open_safer.
4731 * modules/backupfile (Depends-on): Add dirent-safer.
4732 * modules/savedir (Depends-on): Likewise.
4733 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
4734 * modules/chdir-long (Depends-on): Add openat-safer.
4736 openat-safer: new module
4737 * modules/openat-safer: New file.
4738 * lib/openat-safer.c: Likewise.
4739 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
4740 * lib/fcntl-safer.h (openat_safer): Declare.
4741 * lib/fcntl--.h (openat): Override.
4742 * MODULES.html.sh (File descriptor based I/O): Mention it.
4743 * lib/openat.h: Add double-inclusion guards.
4744 * lib/openat.c (includes): Only include "fcntl-safer.h", not
4745 "fcntl--.h", so we can implement openat.
4746 * modules/openat-safer-tests: New test.
4747 * tests/test-openat-safer.c: New file.
4749 dirent-safer: new module
4750 * modules/dirent-safer: New file.
4751 * lib/dirent--.h: Likewise.
4752 * lib/dirent-safer.h: Likewise.
4753 * lib/opendir-safer.c: Likewise.
4754 * m4/dirent-safer.m4: Likewise.
4755 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
4756 * modules/dirent-safer-tests: New test.
4757 * tests/test-dirent-safer.c: New file.
4758 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
4760 fdopendir: optimize on mingw
4761 * lib/unistd.in.h (_gl_directory_name): New prototype.
4762 * lib/fchdir.c (_gl_directory_name): Implement it.
4763 (fchdir): Use it to simplify implementation.
4764 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
4765 fchdir, when available, to avoid calling [f]chdir().
4767 fdopendir: split into its own module
4768 * lib/openat.c (fdopendir): Move...
4769 * lib/fdopendir.c: ...into new file.
4770 * modules/fdopendir: New module.
4771 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
4772 * modules/openat (Depends-on): Add fdopendir.
4773 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
4775 * modules/savedir (Depends-on): Only need fdopendir, not full
4777 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
4778 * lib/openat.h (fdopendir): Drop prototype.
4779 * lib/dirent.in.h (fdopendir): Provide prototype.
4780 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
4781 * modules/dirent (Makefile.am): Substitute them.
4782 * MODULES.html.sh (File system functions): Mention it.
4783 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
4784 * modules/fdopendir-tests: New file.
4785 * tests/test-fdopendir.c: Likewise.
4787 fchdir: use more consistent macro convention
4788 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
4789 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
4790 REPLACE_FCHDIR, rather than relying on config.h macros.
4791 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
4792 inside a single make-time REPLACE_FCHDIR block, rather than using
4793 the config.h FCHDIR_REPLACEMENT.
4794 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
4795 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
4796 Manage fstat replacement.
4797 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
4799 * modules/sys_stat (Files): Add m4/unistd_h.m4.
4800 (Makefile.am): Substitute REPLACE_FCHDIR.
4801 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
4803 * lib/dup-safer.c (dup_safer): Likewise.
4804 * lib/dup2.c (rpl_dup2): Likewise.
4805 * lib/dup3.c (rpl_dup3): Likewise.
4806 * lib/open.c (rpl_open): Likewise.
4808 fchdir: simplify error handling, and support dup3
4809 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
4810 stdbool, malloc-posix, realloc-posix.
4811 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
4812 (ensure_dirs_slot): Return false on allocation failure.
4814 (_gl_register_dup): New function.
4815 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
4816 (_gl_register_fd): Close fd on allocation failure.
4817 * lib/fcntl.in.h (_gl_register_fd): Update signature.
4818 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
4820 (rpl_dup2_fchdir): Delete prototype.
4821 * lib/open.c (open): Update caller.
4822 * lib/dup2.c (dup2): Track fchdir metadata.
4823 * lib/dup3.c (dup3): Likewise.
4824 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
4825 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
4827 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4829 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
4830 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
4831 don't pass arguments to AC_OUTPUT.
4833 2009-09-02 Bruno Haible <bruno@clisp.org>
4835 * modules/mkdtemp (License): Relicense under LGPLv2+.
4836 Reported by Paolo Bonzini.
4838 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4840 Replace uses of obsolete autoconf macros in Jim's modules.
4841 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
4842 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
4843 can evoke a warning from autoconf when run with -Wobsolete
4844 enabled. They were declared obsolete for good reasons (see
4845 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
4846 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
4847 should not continue using the deprecated macros.
4848 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
4849 obsolete Autoconf macros with modern counterparts.
4850 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4851 * m4/dos.m4 (gl_AC_DOS): Likewise.
4852 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
4853 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
4854 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
4855 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
4856 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
4857 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
4858 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
4859 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
4860 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
4862 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
4863 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4864 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
4865 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
4866 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
4867 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
4869 2009-09-01 Eric Blake <ebb9@byu.net>
4871 fchdir: fix off-by-one bug in previous patch
4872 * lib/fchdir.c (rpl_fstat): Use correct bounds.
4873 (_gl_unregister_fd): Delete useless if.
4875 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
4877 maint.mk: sort the list of syntax-check rules
4878 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
4879 easier to get a sense of progress when the rules are run sequentially
4880 and take a long time.
4882 2009-09-01 Simon Josefsson <simon@josefsson.org>
4884 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
4885 * modules/netinet_in: Likewise.
4886 * modules/sys_file: Likewise.
4887 * modules/sys_ioctl: Likewise.
4888 * modules/sys_select: Likewise.
4889 * modules/sys_socket: Likewise.
4890 * modules/sys_stat: Likewise.
4891 * modules/sys_time: Likewise.
4892 * modules/sys_times: Likewise.
4893 * modules/sys_utsname: Likewise.
4894 * modules/sys_wait: Likewise.
4896 2009-09-01 Jim Meyering <meyering@redhat.com>
4898 fts: help ensure that return values are not ignored
4899 * lib/fts_.h (__GNUC_PREREQ): Define.
4900 (__attribute_warn_unused_result__): Define.
4901 (fts_children, fts_close, fts_open, fts_read): Declare with
4902 __attribute_warn_unused_result__.
4904 fts: fts_close now fails also when closing a dir file descriptor fails
4905 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
4906 and propagate to caller, along with errno.
4908 announce-gen: correct formatting in --help output
4909 * build-aux/announce-gen (usage): Move the one-line description in
4910 --help output "up", to where it belongs, just after Usage:.
4912 2009-08-31 Eric Blake <ebb9@byu.net>
4914 fchdir: port to mingw
4915 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
4916 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
4917 opened, then use a substitute.
4918 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
4920 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
4921 (_gl_register_fd): No need to check stat if open already filters
4923 (fchdir): Fix error condition to match POSIX.
4924 * modules/fchdir (Depends-on): Add sys_stat.
4925 * doc/posix-functions/open.texi (open): Document the limitation.
4926 * modules/fchdir-tests: New file.
4927 * tests/test-fchdir.c: Likewise.
4929 canonicalize: allow cross-testing from cygwin to mingw
4930 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
4931 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
4932 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
4934 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
4935 target does not support symlinks.
4936 * tests/test-canonicalize-lgpl.sh: Likewise.
4938 chown: avoid compilation warning on mingw
4939 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
4940 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
4942 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
4943 * modules/chown (Depends-on): Add errno.
4945 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
4947 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
4950 2009-08-31 Jim Meyering <meyering@redhat.com>
4952 canonicalize: remove useless initialization
4953 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
4954 initialization of local, "end".
4956 2009-08-30 Bruno Haible <bruno@clisp.org>
4958 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
4959 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
4962 2009-08-30 Bruno Haible <bruno@clisp.org>
4964 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
4965 /usr/xpg4/bin/tr when it exists.
4966 * tests/test-pipe-filter-gi1.sh: Likewise.
4968 2009-08-30 Bruno Haible <bruno@clisp.org>
4970 Work around deficient /usr/bin/id program on Solaris.
4971 * tests/test-file-has-acl.sh (ID): New variable.
4972 * tests/test-set-mode-acl.sh (ID): Likewise.
4973 * tests/test-copy-acl.sh (ID): Likewise.
4974 * tests/test-copy-file.sh (ID): Likewise.
4976 2009-08-30 Bruno Haible <bruno@clisp.org>
4978 New module 'xstriconveh'.
4979 * lib/xstriconveh.h: New file.
4980 * lib/xstriconveh.c: New file.
4981 * modules/xstriconveh: New file.
4983 2009-08-30 Bruno Haible <bruno@clisp.org>
4985 Make it easier to use mem_cd_iconveh.
4986 * lib/striconveh.h (iconveh_t): New type.
4987 (iconveh_open, iconveh_close): New declarations.
4988 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
4989 with a single 'const iconveh_t *' argument.
4990 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
4991 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
4992 with a single 'const iconveh_t *' argument.
4993 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
4994 * tests/test-striconveh.c (main): Update.
4995 * NEWS: Mention the change.
4997 2009-08-30 Bruno Haible <bruno@clisp.org>
4999 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
5002 2009-08-30 Bruno Haible <bruno@clisp.org>
5004 Work around iconv_open problem on Solaris.
5005 * lib/iconv_open-solaris.gperf: New file.
5006 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
5007 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
5008 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
5009 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
5010 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
5011 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
5013 2009-08-29 Jim Meyering <meyering@redhat.com>
5015 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
5016 * top/maint.mk (cvs-check): Remove target; it was just an alias
5017 to the better-named vc-diff-check.
5018 (maintainer-distcheck): Remove rule. It was used only from
5019 the (alpha/beta/major) target, and all of its commands but one
5020 were coreutils-specific.
5021 (vc-dist): Remove rule.
5022 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
5023 Run vc-diff-check, not vc-dist.
5024 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
5026 2009-08-27 Bruno Haible <bruno@clisp.org>
5028 * tests/test-bitrotate.c (main): Remove test that uses a shift count
5031 2009-08-27 Bruno Haible <bruno@clisp.org>
5033 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
5035 * doc/func.texi: Document the SunPRO C bug.
5037 2009-08-27 Bruno Haible <bruno@clisp.org>
5039 Fix link error on Solaris.
5040 * tests/test-parse-duration.c (xstrdup): Remove function.
5042 2009-08-26 Pádraig Brady <P@draigbrady.com>
5044 ignore-value: handle pointer types, too
5045 * lib/ignore-value.h (__attribute__): Remove definition.
5046 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
5047 of a more concise and more-often effective "(void) i" statement.
5048 (ignore_ptr): New function to suppress warnings from functions that
5049 return pointers, and to make it explicit that one function doesn't
5052 2009-08-25 Bruno Haible <bruno@clisp.org>
5054 dup2: work around a Linux bug.
5055 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
5056 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
5057 * doc/posix-functions/dup2.texi: Mention the Linux bug.
5058 Reported by Simon Josefsson.
5060 2009-08-25 Jim Meyering <meyering@redhat.com>
5062 libguestfs uses gnulib
5063 * users.txt: Add libguestfs.
5065 2009-08-24 Eric Blake <ebb9@byu.net>
5067 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
5068 * lib/pipe2.c (includes): Add binary-io.h.
5069 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
5071 2009-08-24 Bruno Haible <bruno@clisp.org>
5073 Tolerate declared but missing accept4 syscall.
5074 * lib/accept4.c (accept4): Invoke original accept4 function first, if
5076 * lib/sys_socket.in.h (accept4): If the function is already present,
5078 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
5079 * modules/accept4 (Makefile.am): Compile accept4.c always.
5080 Reported by Paolo Bonzini and Eric Blake.
5082 2009-08-23 Bruno Haible <bruno@clisp.org>
5084 New module 'accept4'.
5085 * lib/sys_socket.in.h (accept4): New declaration.
5086 * lib/accept4.c: New file.
5087 * m4/accept4.m4: New file.
5088 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
5089 GNULIB_ACCEPT4, HAVE_ACCEPT4.
5090 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
5092 * modules/accept4: New file.
5093 * doc/glibc-functions/accept4.texi: Mention the new module.
5095 2009-08-24 Jim Meyering <meyering@redhat.com>
5097 progname: also set global program_invocation_name, when possible
5098 Before this change, a libtool-enabled program that calls glibc's
5099 error function would report the program name as
5100 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
5101 * modules/progname (configure.ac): Check for a declaration of
5102 program_invocation_name.
5103 * lib/progname.c: Include <errno.h>.
5104 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
5105 Set program_invocation_name.
5107 2009-08-23 Bruno Haible <bruno@clisp.org>
5109 * lib/dup3.c: Include <string.h>.
5111 2009-08-23 Bruno Haible <bruno@clisp.org>
5113 * lib/dup3.c (dup3): Test only once whether the system actually exists.
5114 * lib/pipe2.c (pipe2): Likewise.
5115 Suggested by Eric Blake.
5117 2009-08-23 Bruno Haible <bruno@clisp.org>
5119 Tolerate declared but missing dup3 syscall.
5120 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
5121 * lib/unistd.in.h (dup3): If the function is already present,
5123 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
5124 * modules/dup3 (Makefile.am): Compile dup3.c always.
5125 Reported by Paolo Bonzini.
5127 2009-08-23 Bruno Haible <bruno@clisp.org>
5129 Tolerate declared but missing pipe2 syscall.
5130 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
5132 * lib/unistd.in.h (pipe2): If the function is already present,
5134 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
5135 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
5136 Reported by Paolo Bonzini.
5138 2009-08-23 Bruno Haible <bruno@clisp.org>
5140 * lib/pipe2.c (pipe2): Move #ifs inside function.
5142 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
5144 quotearg: document limitations of quote_these_too
5145 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
5146 those limitations are created.
5147 * lib/quotearg.h (set_char_quoting): Document that digits and
5148 letters that are special after backslash are not permitted.
5149 (quotearg_char): Cross-reference set_char_quoting documentation.
5151 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
5153 quotearg: implement custom_quoting_style
5154 * lib/quotearg.c: (struct quoting_options): Add left_quote and
5156 (set_custom_quoting): New public function.
5157 (quotearg_buffer_restyled): Add left_quote and right_quote
5158 arguments, handle them very much like locale quoting, and update
5160 (quotearg_n_custom): New public function.
5161 (quotearg_n_custom_mem): New public function.
5162 (quotearg_custom): New public function.
5163 (quotearg_custom_mem): New public function.
5164 * lib/quotearg.h: Prototype and document new public functions.
5165 (enum quoting_style): For escape_quoting_style and
5166 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
5167 ignored even though they're otherwise like c_quoting_style.
5168 Add custom_quoting_style member and document with comparison to
5169 clocale_quoting_style.
5170 * tests/test-quotearg.c (custom_quotes): New array.
5171 (custom_results): New array.
5172 (main): Extend to test custom quoting.
5174 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
5176 quotearg: fix right quote escaping when it's in quote_these_too
5177 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
5178 quote, be sure to prepend only one backslash.
5179 * tests/test-quotearg.c (use_quote_double_quotes): New function.
5182 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
5184 quotearg-tests: test escaping of embedded locale quotes
5185 * tests/test-quotearg.c (struct result_strings): Add member for
5187 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
5188 (inputs): Add new input.
5189 (results_g): Add expected results.
5190 (flag_results): Likewise.
5191 (locale_results): Likewise.
5192 (compare_strings): Check those.
5194 2009-08-23 Bruno Haible <bruno@clisp.org>
5196 Tests for module 'dup3'.
5197 * modules/dup3-tests: New file.
5198 * tests/test-dup3.c: New file.
5201 * lib/unistd.in.h (dup3): New declaration.
5202 * lib/dup3.c: New file.
5203 * m4/dup3.m4: New file.
5204 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
5206 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
5207 * modules/dup3: New file.
5208 * doc/glibc-functions/dup3.texi: Mention the new module.
5210 2009-08-23 Bruno Haible <bruno@clisp.org>
5212 Tweak the dup2 test.
5213 * tests/test-dup2.c (main): Create the test file empty. Verify that an
5214 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
5215 the test file is still empty. Fix argument order of lseek.
5217 2009-08-23 Bruno Haible <bruno@clisp.org>
5219 Avoid test link errors when the modules getopt-gnu, gettext are used.
5220 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
5221 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5223 2009-08-23 Bruno Haible <bruno@clisp.org>
5225 Fix getdtablesize() on mingw.
5226 * lib/getdtablesize.c (getdtablesize): Implement differently.
5227 * lib/unistd.in.h (getdtablesize): Improve comment.
5229 2009-08-23 Bruno Haible <bruno@clisp.org>
5231 New module 'mkostemp'.
5232 Based on Ulrich Drepper's 2007-08-10 change in glibc.
5233 * lib/stdlib.in.h (mksotemp): New declaration.
5234 * lib/mkostemp.c: New file, from glibc with modifications.
5235 * lib/tempname.h (GT_FILE): Remove outdated comment.
5236 (gen_tempname): Add flags argument.
5237 * lib/tempname.c (__GT_BIGFILE): Remove macro.
5238 (__GT_FILE): Map to 1.
5239 (small_open, large_open): Remove macros.
5240 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
5241 * lib/mkstemp.c (mkstemp): Update.
5242 * lib/mkdtemp.c (mkdtemp): Likewise.
5243 * m4/mkostemp.m4: New file.
5244 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
5246 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
5248 * modules/mkostemp: New file, based on modules/mkstemp.
5249 * doc/glibc-functions/mkostemp.texi: Mention the new module.
5250 * NEWS: Mention the change.
5252 2009-08-23 Bruno Haible <bruno@clisp.org>
5254 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
5255 Reported by Eric Blake.
5257 2009-08-23 Bruno Haible <bruno@clisp.org>
5259 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
5260 Reported by Eric Blake.
5262 2009-08-23 Bruno Haible <bruno@clisp.org>
5264 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
5265 * modules/pipe2 (Depends-on): Likewise.
5267 2009-08-23 Eric Blake <ebb9@byu.net>
5269 fcntl-h: add O_TTY_INIT support
5270 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
5271 * tests/test-fcntl-h.c (o): Test it.
5272 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5274 fcntl-h: rename from fcntl, in preparation for fcntl(2)
5275 * modules/fcntl: Move <fcntl.h> header replacement...
5276 * modules/fcntl-h: ...to new name, so as not to collide with
5277 like-named function.
5278 * tests/test-fcntl.c: Rename...
5279 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
5280 * modules/fcntl-tests: Rename...
5281 * modules/fcntl-h-tests: ...to this. Update test file name.
5282 * modules/chdir-long (Depends-on): Update clients.
5283 * modules/chdir-safer (Depends-on): Likewise.
5284 * modules/fcntl-safer (Depends-on): Likewise.
5285 * modules/fts (Depends-on): Likewise.
5286 * modules/mkancesdirs (Depends-on): Likewise.
5287 * modules/mkdir-p (Depends-on): Likewise.
5288 * modules/open (Depends-on): Likewise.
5289 * modules/savewd (Depends-on): Likewise.
5290 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
5291 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5293 2009-08-22 Bruno Haible <bruno@clisp.org>
5295 * modules/binary-io (License): Relicense under LGPL.
5296 * modules/pipe2 (License): Likewise.
5298 2009-08-22 Bruno Haible <bruno@clisp.org>
5300 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
5302 * lib/pipe-filter-gi.c (filter_init): Likewise.
5303 Reported by Eric Blake.
5305 2009-08-22 Bruno Haible <bruno@clisp.org>
5307 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
5308 * modules/pipe (Depends-on): Add pipe2.
5310 2009-08-22 Bruno Haible <bruno@clisp.org>
5312 Tests for module 'pipe2'.
5313 * modules/pipe2-tests: New file.
5314 * tests/test-pipe2.c: New file.
5317 * lib/unistd.in.h (pipe2): New declaration.
5318 * lib/pipe2.c: New file.
5319 * m4/pipe2.m4: New file.
5320 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
5322 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
5323 * modules/pipe2: New file.
5324 * doc/glibc-functions/pipe2.texi: Mention the new module.
5326 2009-08-22 Bruno Haible <bruno@clisp.org>
5328 Reference some new glibc functions.
5329 * doc/glibc-functions/accept4.texi: New file.
5330 * doc/glibc-functions/dup3.texi: New file.
5331 * doc/glibc-functions/mkostemp.texi: New file.
5332 * doc/glibc-functions/pipe2.texi: New file.
5333 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
5334 (Glibc sys/socket.h): Refer to accept4.
5335 (Glibc unistd.h): Refer to dup3, pipe2.
5336 Reported by Eric Blake.
5338 2009-08-22 Jim Meyering <meyering@redhat.com>
5339 Bruno Haible <bruno@clisp.org>
5341 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
5342 This makes it so packages using automake-1.11's silent-rules option
5343 can print e.g., a single "GEN configmake.h" line, rather than
5344 the 30+ statements that perform the job. If you want to see the
5345 actual commands, you can still run "make V=1".
5346 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
5347 so that make output is abbreviated when those variables are defined
5349 * modules/argz: Likewise.
5350 * modules/arpa_inet: Likewise.
5351 * modules/byteswap: Likewise.
5352 * modules/configmake: Likewise.
5353 * modules/dirent: Likewise.
5354 * modules/errno: Likewise.
5355 * modules/fcntl: Likewise.
5356 * modules/float: Likewise.
5357 * modules/fnmatch: Likewise.
5358 * modules/getopt-posix: Likewise.
5359 * modules/glob: Likewise.
5360 * modules/iconv_open: Likewise.
5361 * modules/inttypes: Likewise.
5362 * modules/localcharset: Likewise.
5363 * modules/locale: Likewise.
5364 * modules/math: Likewise.
5365 * modules/netdb: Likewise.
5366 * modules/netinet_in: Likewise.
5367 * modules/poll: Likewise.
5368 * modules/posix_spawnp-tests: Likewise.
5369 * modules/sched: Likewise.
5370 * modules/search: Likewise.
5371 * modules/selinux-h: Likewise.
5372 * modules/signal: Likewise.
5373 * modules/spawn: Likewise.
5374 * modules/stdarg: Likewise.
5375 * modules/stdbool: Likewise.
5376 * modules/stddef: Likewise.
5377 * modules/stdint: Likewise.
5378 * modules/stdio: Likewise.
5379 * modules/stdlib: Likewise.
5380 * modules/string: Likewise.
5381 * modules/strings: Likewise.
5382 * modules/sys_file: Likewise.
5383 * modules/sys_ioctl: Likewise.
5384 * modules/sys_select: Likewise.
5385 * modules/sys_socket: Likewise.
5386 * modules/sys_stat: Likewise.
5387 * modules/sys_time: Likewise.
5388 * modules/sys_times: Likewise.
5389 * modules/sys_utsname: Likewise.
5390 * modules/sys_wait: Likewise.
5391 * modules/sysexits: Likewise.
5392 * modules/time: Likewise.
5393 * modules/unistd: Likewise.
5394 * modules/wchar: Likewise.
5395 * modules/wctype: Likewise.
5397 2009-08-22 Jim Meyering <meyering@redhat.com>
5399 announce-gen: detect write failure
5400 * build-aux/announce-gen: Add Coda at end.
5401 Remove equivalent-but-more-verbose block at top.
5403 2009-08-19 Akim Demaille <demaille@gostai.com>
5405 bootstrap: --help to stdout.
5406 * bootstrap (usage): Don't send --help to stderr.
5407 Use a here doc instead of a long string.
5409 2009-08-21 Eric Blake <ebb9@byu.net>
5411 test-popen-safer: split from test-popen
5412 * tests/test-popen.c (main): Move...
5413 * tests/test-popen.h: ...into new file.
5414 * tests/test-popen-safer2.c: New file.
5415 * modules/popen-tests (Files): Add test-popen.h.
5416 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
5417 Suggested by Bruno Haible.
5419 test-fcntl-safer: split from test-open
5420 * tests/test-open.c (main): Move...
5421 * tests/test-open.h: ...into new file.
5422 * tests/test-fcntl-safer.c: New file.
5423 * modules/open-tests (Files): Add test-open.h.
5424 * modules/fcntl-safer-tests: New file.
5425 Suggested by Bruno Haible.
5427 test-fopen-safer: split from test-fopen
5428 * tests/test-fopen.c (main): Move...
5429 * tests/test-fopen.h: ...into new file.
5430 * tests/test-fopen-safer.c: New file.
5431 * modules/fopen-tests (Files): Add test-fopen.h.
5432 * modules/fopen-safer-tests: New file.
5433 Suggested by Bruno Haible.
5435 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
5437 popen-safer: test O_CLOEXEC at run-time.
5438 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
5440 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
5442 fcntl: move more flags to the header
5443 * lib/cloexec.c: Do not define FD_CLOEXEC here.
5444 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
5445 * lib/fcntl.in.h: Do both things here.
5447 2009-08-21 Jim Meyering <meyering@redhat.com>
5449 consistently remove $@-t before redirecting to it
5450 * modules/argz: Remove $@-t and $@ before redirecting to the former.
5451 * modules/alloca-opt: Likewise.
5452 * modules/byteswap: Likewise.
5453 * modules/fnmatch: Likewise.
5454 * modules/getopt-posix: Likewise.
5455 * modules/glob: Likewise.
5456 * modules/poll: Likewise.
5457 * modules/posix_spawnp-tests: Likewise.
5458 * modules/sys_socket: Likewise.
5459 * modules/sysexits: Likewise.
5461 2009-08-21 Eric Blake <ebb9@byu.net>
5463 popen: simplify access to original popen
5464 * lib/popen.c (rpl_popen): No need to worry about popen being a
5466 Reported by Bruno Haible.
5468 2009-08-20 Eric Blake <ebb9@byu.net>
5470 build: avoid some compiler warnings
5471 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
5472 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
5474 (new_exclude_segment, excluded_file_pattern_p)
5475 (excluded_file_name_p): Reduce scope.
5476 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
5477 old-style declaration.
5479 2009-08-20 Simon Josefsson <simon@josefsson.org>
5481 * tests/test-exclude1.sh: Handle Windows EOL.
5482 * tests/test-exclude2.sh: Likewise.
5483 * tests/test-exclude3.sh: Likewise.
5484 * tests/test-exclude4.sh: Likewise.
5485 * tests/test-exclude5.sh: Likewise.
5486 * tests/test-exclude6.sh: Likewise.
5487 * tests/test-exclude7.sh: Likewise.
5489 2009-08-19 Akim Demaille <demaille@gostai.com>
5491 bootstrap: find sha1sum when named gsha1sum.
5492 * bootstrap (find_tool): New.
5496 2009-08-20 Jim Meyering <meyering@redhat.com>
5498 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
5499 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
5500 expression that converts "." in a file name to "\." in the resulting
5501 regexp. Start with a dummy statement, so that prior shell variable
5502 definitions are expanded portably. Reported by Simon Josefsson.
5504 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
5506 Fix polling for writeability of a screen buffer.
5507 * lib/poll.c: Distinguish input and screen buffers for the
5508 Win32 implementation.
5509 * lib/select.c: Likewise.
5511 2009-08-19 Eric Blake <ebb9@byu.net>
5513 popen-safer: prevent popen from clobbering std descriptors
5514 * modules/popen-safer: New file.
5515 * lib/popen-safer.c: Likewise.
5516 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
5517 * lib/stdio--.h (popen): Provide override.
5518 * lib/stdio-safer.h (popen_safer): Provide declaration.
5519 * tests/test-popen.c (includes): Partially test this.
5520 * modules/popen-safer-tests: New file, for more tests.
5521 * tests/test-popen-safer.c: Likewise.
5522 * MODULES.html.sh (file stream based Input/Output): Mention it.
5524 tests: test some of the *-safer modules
5525 * modules/fopen-safer (Depends-on): Add fopen.
5526 * modules/fcntl-safer (Depends-on): Add fcntl.
5527 * modules/stdlib-safer (Depends-on): Add stdlib.
5528 (configure.ac): Set indicator.
5529 * modules/unistd-safer (configure.ac): Likewise.
5530 * modules/tmpfile-safer (configure.ac): Likewise.
5531 (Depends-on): Add tmpfile.
5532 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
5534 * tests/test-fopen.c (includes): Test safer versions when they are
5536 * tests/test-open.c (includes): Likewise.
5538 popen: fix cygwin 1.5 bug when stdin closed
5539 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
5540 * modules/popen: New file.
5541 * modules/popen-tests: Likewise.
5542 * tests/test-popen.c: Likewise.
5543 * m4/popen.m4: Likewise.
5544 * lib/popen.c: Likewise.
5545 * lib/stdio.in.h (popen): New declaration.
5546 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
5547 * modules/stdio (Makefile.am): Likewise.
5548 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
5550 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
5552 maint.mk: give full control over update-copyright exclusions
5553 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
5554 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
5555 (update-copyright): Don't force inclusion of top-level
5556 ChangeLog. Don't force exclusion of all COPYING files, but make
5557 them the default exclusion instead.
5559 2009-08-16 Bruno Haible <bruno@clisp.org>
5561 Fix test failures on Solaris 10.
5562 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
5563 tests when Solaris iconv() is used.
5564 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
5565 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
5566 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
5567 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
5568 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
5570 2009-08-16 Bruno Haible <bruno@clisp.org>
5572 Fix test failures on Solaris 10.
5573 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
5574 'tr' program and pass it as first argument.
5575 * tests/test-pipe-filter-gi1.sh: Likewise.
5576 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
5577 program as first argument.
5578 * tests/test-pipe-filter-gi1.c (main): Likewise.
5580 2009-08-16 Eric Blake <ebb9@byu.net>
5582 fpurge: fix previous commits
5583 * modules/fpurge (Makefile.am): Make replacement conditional,
5584 partially reverting 2007-04-29 change; missed in previous
5586 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
5589 2009-08-16 Bruno Haible <bruno@clisp.org>
5591 Clarify fpurge's effect on the file position.
5592 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
5593 * tests/test-fpurge.c (main): Make a second pass for checking the file
5596 2009-08-16 Bruno Haible <bruno@clisp.org>
5598 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
5599 declaration of fpurge is missing.
5600 * tests/test-fpurge.c (main): Check that the file has not more contents
5601 than expected. Close the file before removing it.
5603 2009-08-15 Eric Blake <ebb9@byu.net>
5605 fpurge: don't wrap working cygwin implementation
5606 * lib/fpurge.c (fpurge): Fix comment typo.
5607 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
5608 1.7 to avoid replacement.
5609 * tests/test-fpurge.c (main): Enhance test.
5611 2009-08-15 Eric Blake <ebb9@byu.net>
5612 and Jim Meyering <meyering@redhat.com>
5614 test-update-copyright: skip if perl is insufficient
5615 * tests/test-update-copyright.sh: Failure to run maintainer tool
5616 should not cause testsuite failure on cygwin 1.5.
5618 2009-08-14 Eric Blake <ebb9@byu.net>
5620 doc: mention more functions added in cygwin 1.7.0
5621 * doc/posix-headers/limits.texi (limits.h): Update for recent
5623 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
5624 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
5625 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
5626 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
5627 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
5629 2009-08-14 Eric Blake <ebb9@byu.net>
5631 maint.mk: simplify update-copyright rule
5632 * top/maint.mk (update-copyright-local): Delete, and document how
5633 to do it in cfg.mk instead.
5634 (update-copyright-exclude-regexp): Delete, and document how to do
5635 it in .x-update-copyright instead.
5636 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
5639 2009-08-14 Bruno Haible <bruno@clisp.org>
5641 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
5643 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
5645 maint.mk: support update-copyright-env
5646 * top/maint.mk (update-copyright-env): Define place-holder.
5647 (update-copyright): Expand $(update-copyright-env) before
5648 invoking update-copyright.
5650 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
5652 update-copyright: implement forced reformatting
5653 * build-aux/update-copyright: Implement and document
5654 UPDATE_COPYRIGHT_FORCE.
5655 * tests/test-update-copyright.sh: Test it.
5657 2009-08-14 Eric Blake <ebb9@byu.net>
5658 and Bruno Haible <bruno@clisp.org>
5660 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
5661 * tests/test-locale.c: Revert previous patch related to NULL.
5662 * tests/test-stdio.c: Likewise.
5663 * tests/test-stdlib.c: Likewise.
5664 * tests/test-string.c: Likewise.
5665 * tests/test-unistd.c: Likewise.
5666 * modules/time-tests (Depends-on): Add verify.
5667 * modules/wchar-tests (Depends-on): Likewise.
5668 * tests/test-time.c: Test for NULL compliance.
5669 * tests/test-wchar.c: Likewise.
5670 * modules/locale (Depends-on): Add stddef.
5671 * modules/stdio (Depends-on): Likewise.
5672 * modules/stdlib (Depends-on): Likewise.
5673 * modules/string (Depends-on): Likewise.
5674 * modules/time (Depends-on): Likewise.
5675 * modules/unistd (Depends-on): Likewise.
5676 * modules/wchar (Depends-on): Likewise.
5677 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
5678 * lib/stdlib.in.h (includes): Likewise.
5679 * lib/string.in.h (includes): Likewise.
5680 * lib/time.in.h (includes): Likewise.
5681 * lib/unistd.in.h (includes): Likewise.
5682 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
5684 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
5685 * m4/stddef_h.m4: New file.
5686 * modules/stddef: Likewise.
5687 * lib/stddef.in.h: Likewise.
5688 * modules/stddef-tests: Likewise.
5689 * tests/test-stddef.c: Likewise.
5690 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
5691 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
5692 * doc/posix-headers/locale.texi (locale.h): Likewise.
5693 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
5694 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
5695 * doc/posix-headers/string.texi (string.h): Likewise.
5696 * doc/posix-headers/time.texi (time.h): Likewise.
5697 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
5698 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
5700 2009-08-14 Eric Blake <ebb9@byu.net>
5702 doc: improve git diff of texinfo files
5703 * .gitattributes: Add rule for *.texi files, with hint on how to
5705 Copied from m4, and based on a report by Bruno Haible.
5707 2009-08-14 Bruno Haible <bruno@clisp.org>
5709 Disable multithread support by default on Cygwin 1.5.x for real.
5710 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
5712 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
5714 update-copyright: much ado about intervals
5715 * build-aux/update-copyright: Implement and document
5716 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
5717 of copyright year intervals.
5718 Also, document UPDATE_COPYRIGHT_YEAR.
5719 * tests/test-update-copyright.sh: Test it.
5721 update-copyright: convert 2-digit to 4-digit years
5722 * build-aux/update-copyright: Implement and document.
5723 * tests/test-update-copyright.sh: Update.
5725 2009-08-14 Jim Meyering <meyering@redhat.com>
5727 test-exclude: avoid coreutils "make check" failure
5728 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
5729 just as in test-argmatch.c.
5731 2009-08-13 Eric Blake <ebb9@byu.net>
5733 test-dup2: fix bad assumption
5734 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
5735 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
5737 test-version-etc: fix CRLF portability issue
5738 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
5740 * tests/test-argp-version-etc-1.sh: Likewise.
5742 getopt: update client modules
5743 * modules/argp (Depends-on): Use getopt-gnu.
5744 * modules/git-merge-changelog (Depends-on): Likewise.
5745 * modules/long-options (Depends-on): Likewise.
5746 * modules/xstrtol (Depends-on): Likewise.
5748 2009-08-13 Simon Josefsson <simon@josefsson.org>
5750 * tests/test-version-etc.sh: Don't fail on different
5751 project/version. Don't fail on CRLF differences. Rewrite to use
5752 multiple -e instead of multiple sed forks, suggested by Eric Blake
5754 * tests/test-argp-version-etc-1.sh: Likewise.
5756 2009-08-13 Simon Josefsson <simon@josefsson.org>
5758 * tests/test-version-etc.sh: Don't fail on different
5761 2009-08-12 Bruno Haible <bruno@clisp.org>
5763 Tests for modules 'getopt-posix', 'getopt-gnu'.
5764 * modules/getopt-posix-tests: New file.
5765 * tests/test-getopt.c: New file.
5766 * tests/test-getopt.h: New file.
5767 * tests/test-getopt_long.h: New file.
5769 New modules 'getopt-posix', 'getopt-gnu'.
5770 * modules/getopt-gnu: New file, renamed from modules/getopt.
5771 * modules/getopt-posix: New file.
5772 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
5773 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
5774 (gl_GETOPT): Remove macro.
5775 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
5776 Disable the test against BSD systems that declare optreset. Test
5777 against mingw bug. Test against lack of support of optional arguments
5779 * doc/glibc-headers/getopt.texi: Update module name and list of
5781 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
5782 'getopt-gnu' and more portability problems.
5783 * NEWS: Mention the changes.
5785 2009-08-12 Bruno Haible <bruno@clisp.org>
5787 Ensure that optarg etc. get declared by <unistd.h>.
5788 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
5789 AC_USE_SYSTEM_EXTENSIONS.
5790 * modules/getopt (Depends-on): Add 'extensions'.
5792 2009-08-12 Bruno Haible <bruno@clisp.org>
5794 Avoid test link errors.
5795 * modules/pipe-filter-ii-tests (Makefile.am): Define
5796 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
5797 * modules/pipe-filter-gi-tests (Makefile.am): Define
5798 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
5799 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5801 2009-08-12 Bruno Haible <bruno@clisp.org>
5803 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
5804 gl_GETOPT_SUBSTITUTE before.
5805 (gl_GETOPT): Use it.
5806 * m4/argp.m4 (gl_ARGP): Update.
5807 Reported by Sergey Poznyakoff.
5809 * m4/getopt.m4: Reorder macros.
5810 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
5811 (gl_GETOPT_SUBSTITUTE): Remove macro.
5813 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
5815 Minor improvement in gitlog-to-changelog
5817 * build-aux/gitlog-to-changelog: New option `--format' makes
5818 output format string configurable.
5820 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
5822 Optimize exclude: use hash tables for non-wildcard patterns.
5824 * lib/exclude.c: Include hash.h and mbuiter.h
5825 (struct exclude_pattern, exclude_segment): New data types.
5826 (struct exclude): Rewrite.
5827 (fnmatch_pattern_has_wildcards): New function.
5828 (new_exclude_segment, free_exclude_segment): New functions.
5829 (excluded_file_pattern_p, excluded_file_name_p): New functions.
5830 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
5831 * lib/exclude.h (is_fnmatch_pattern): New prototype.
5832 * modules/exclude: Depend on hash and mbuiter.
5834 * modules/exclude-tests: New file.
5835 * tests/test-exclude.c: New file.
5836 * tests/test-exclude1.sh: New file.
5837 * tests/test-exclude2.sh: New file.
5838 * tests/test-exclude3.sh: New file.
5839 * tests/test-exclude4.sh: New file.
5840 * tests/test-exclude5.sh: New file.
5841 * tests/test-exclude6.sh: New file.
5842 * tests/test-exclude7.sh: New file.
5844 2009-08-12 Bruno Haible <bruno@clisp.org>
5846 Ensure that getopt() gets declared by <unistd.h>.
5847 * lib/unistd.in.h: Conditionally include getopt.h.
5848 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
5849 Set GNULIB_UNISTD_H_GETOPT.
5850 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5851 GNULIB_UNISTD_H_GETOPT.
5852 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
5854 2009-08-12 Bruno Haible <bruno@clisp.org>
5857 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
5858 gl_replace_getopt instead of GETOPT_H.
5860 2009-08-12 Bruno Haible <bruno@clisp.org>
5862 * m4/getopt.m4: Add comments.
5864 2009-08-12 Bruno Haible <bruno@clisp.org>
5866 Disable multithread support by default on Cygwin 1.5.x.
5867 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
5868 set gl_use_threads=no if not specified otherwise.
5870 2009-08-11 Bruno Haible <bruno@clisp.org>
5872 Avoid compilation error on NetBSD 5.0.
5873 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
5874 * tests/test-stdio.c: Likewise.
5875 * tests/test-stdlib.c: Likewise.
5876 * tests/test-string.c: Likewise.
5877 * tests/test-unistd.c: Likewise.
5878 Reported by Greg Troxel <gdt@ir.bbn.com>
5879 at <https://savannah.gnu.org/support/?106973>.
5881 2009-08-11 Bruno Haible <bruno@clisp.org>
5883 * modules/dup2-tests (Depends-on): Remove close.
5885 Undo 2009-07-19 commit.
5886 * modules/acl-tests (Depends-on): Remove close.
5887 * modules/binary-io-tests (Depends-on): Likewise.
5888 * modules/closein-tests (Depends-on): Likewise.
5889 * modules/flock-tests (Depends-on): Likewise.
5890 * modules/fsync-tests (Depends-on): Likewise.
5891 * modules/lseek-tests (Depends-on): Likewise.
5892 * modules/pipe-tests (Depends-on): Likewise.
5893 * modules/posix_spawn-tests (Depends-on): Likewise.
5894 * modules/posix_spawnp-tests (Depends-on): Likewise.
5895 * modules/stat-time-tests (Depends-on): Likewise.
5896 * modules/yesno-tests (Depends-on): Likewise.
5898 2009-08-10 Bruno Haible <bruno@clisp.org>
5900 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
5902 2009-08-10 Bruno Haible <bruno@clisp.org>
5905 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
5907 2009-08-10 Bruno Haible <bruno@clisp.org>
5909 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
5910 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
5911 not only the first time.
5912 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
5913 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
5914 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
5915 is 1, not only the the first time.
5917 2009-08-10 Bruno Haible <bruno@clisp.org>
5919 Make it possible to use module 'gethostname' without module 'close'.
5920 * lib/unistd.in.h (close): Evoke a link error only if
5921 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
5922 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5923 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
5924 * modules/unistd (Makefile.am): Substitute
5925 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
5926 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
5927 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
5928 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
5929 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
5930 * modules/sys_ioctl (Makefile.am): Substitute
5931 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
5932 * modules/socket (configure.ac): On native Windows, set
5933 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
5934 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
5935 Reported by Sam Steingold <sds@gnu.org>.
5937 2009-08-10 Bruno Haible <bruno@clisp.org>
5939 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
5940 * modules/ioctl (configure.ac): Likewise.
5942 2009-08-10 Bruno Haible <bruno@clisp.org>
5944 Avoid collision between gnulib wrapper and libintl wrapper.
5945 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
5946 already defined in intl/printf.c.
5947 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
5948 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
5950 2009-08-09 Bruno Haible <bruno@clisp.org>
5952 Make <sys/select.h> really self-contained, also on Solaris 10.
5953 * lib/sys_select.in.h: Include <string.h>.
5954 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
5956 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
5957 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
5958 Reported by Jim Meyering.
5960 2009-08-09 Bruno Haible <bruno@clisp.org>
5962 Avoid warnings from 'aclocal' that are due to a use of macro name
5963 AM_XGETTEXT_OPTION that is not defined in automake.
5964 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
5966 * modules/error (configure.ac): Likewise.
5967 * modules/propername (configure.ac): Likewise.
5968 * modules/vasprintf (configure.ac): Likewise.
5969 * modules/verror (configure.ac): Likewise.
5970 * modules/xprintf (configure.ac): Likewise.
5971 * modules/xvasprintf (configure.ac): Likewise.
5973 2009-08-08 Bruno Haible <bruno@clisp.org>
5975 Avoid compilation error in C++ mode.
5976 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
5977 Reported by Sam Steingold <sds@gnu.org>.
5979 2009-08-08 Bruno Haible <bruno@clisp.org>
5981 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
5982 for the various Unix platforms.
5983 * doc/posix-headers/limits.texi: Update platforms list regarding
5985 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5987 2009-08-07 Jim Meyering <meyering@redhat.com>
5989 selinux-at: fix typo in a comment
5990 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
5991 Spotted by Paolo Bonzini.
5993 selinux-at: remove redundant m4 code, add documentation
5994 * modules/selinux-at (configure.ac): Remove redundant code.
5995 LIB_SELINUX is already set via the dependent module, selinux-h.
5996 (Include): Add quotes around selinux-at.h.
5997 * lib/selinux-at.h: Add documentation.
5998 Reported by Bruno Haible in
5999 http://marc.info/?l=gnulib-bug&m=124958988300749
6001 2009-08-07 Bruno Haible <bruno@clisp.org>
6003 Avoid link error on MacOS X 10.3 and 10.4.
6004 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
6006 * lib/argp-pv.c (argp_program_version): Likewise.
6007 Reported by Simon Josefsson.
6009 2009-08-07 Simon Josefsson <simon@josefsson.org>
6011 * tests/test-version-etc.sh: Use $EXEEXT.
6013 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
6015 update-copyright: update documentation to point to maint.mk
6016 * build-aux/update-copyright: Here.
6018 2009-08-06 Jim Meyering <meyering@redhat.com>
6020 maint.mk: support update-copyright-local
6021 * top/maint.mk (update-copyright-local): Define place-holder.
6022 (update-copyright): Depend on $(update-copyright-local).
6024 2009-08-06 Jim Meyering <meyering@redhat.com>
6026 selinux-at: new module
6027 Initially written for coreutils, this module will soon be
6028 used by findutils, too.
6029 * MODULES.html.sh [Misc]: Add selinux-at.
6030 * lib/selinux-at.h: New file, from coreutils.
6031 * lib/selinux-at.c: Likewise.
6032 * modules/selinux-at: Likewise.
6033 (License): Change from LGPL to GPL, since it depends
6034 on the GPL'd openat module.
6037 * README: Remove references to cogito.
6038 Remove cvs-repo-updating instructions from 2007.
6039 Don't imply that CVS is better if you have limited disk space.
6041 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
6043 update-copyright: support C-style comments
6044 * build-aux/update-copyright: Implement and document.
6045 * tests/test-update-copyright.sh: Test.
6047 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
6049 update-copyright: support omitted "(C)"
6050 * build-aux/update-copyright: Implement and document. Also,
6051 allow variable whitespace before "(C)".
6052 * tests/test-update-copyright.sh: Test.
6054 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
6056 update-copyright: don't trip on non-FSF copyright statements
6057 * build-aux/update-copyright: Fix so that the first correctly
6058 formatted FSF copyright statement is recognized no matter what
6059 appears before it. Update documentation.
6060 * tests/test-update-copyright.sh: Test that.
6062 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
6064 update-copyright: clean up code a little
6065 * build-aux/update-copyright: Append "_re" to the name of any
6066 variable holding a regular expression.
6067 Replace "old" and "new" with "stmt" in variable names.
6068 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
6070 Format code more consistently.
6072 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
6074 update-copyright-tests: improve portability
6075 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
6076 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
6078 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
6080 update-copyright: support @copyright{} and ©
6081 * build-aux/update-copyright: Implement and document.
6082 * tests/test-update-copyright.sh: Test.
6084 2009-08-04 Jim Meyering <meyering@redhat.com>
6086 update-copyright-tests: correctly test EOL=\r\n handling
6087 * tests/test-update-copyright.sh: Put \r at the end of some lines
6088 for the dos-eol tests. Based on a patch by Joel E. Denny.
6090 maint.mk: make update-copyright exclusion list more configurable
6091 * top/maint.mk (update-copyright): Default to excluding COPYING,
6092 but allow an override, in case someone does want to update that file.
6094 maint.mk: don't update copyright date in COPYING
6095 * top/maint.mk (update-copyright): Exclude COPYING.
6097 maint.mk: add a copyright-updating rule
6098 * top/maint.mk (update-copyright): New rule.
6099 Derived from coreutils/Makefile.am.
6101 update-copyright: rename some variables
6102 * build-aux/update-copyright: Rename a few variables for clarity.
6103 Tweak syntax. List Joel E. Denny as coauthor.
6105 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
6107 update-copyright: fix bug for 2-digit last year and add tests
6108 * build-aux/update-copyright: Fix bug.
6109 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
6111 * modules/update-copyright-tests: New
6112 * tests/test-update-copyright.sh: New.
6114 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
6116 update-copyright: handle leading tabs in line prefix
6117 * build-aux/update-copyright: Count leading tabs as 8 spaces
6118 when computing margin. This helps with the formatting of
6119 ChangeLogs, for example.
6120 Fix documentation a little.
6122 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
6124 update-copyright: support EOL=\r\n
6125 * build-aux/update-copyright: Implement that.
6127 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
6129 update-copyright: automatically format copyright statements
6130 * build-aux/update-copyright: Implement that.
6131 Also, be a little more predictable and safer by always failing
6132 when the full copyright format is not perfectly recognized as an
6133 unbroken whole. Discussed at
6134 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
6135 Rewrite documentation.
6137 2009-08-03 Bruno Haible <bruno@clisp.org>
6139 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
6141 2009-08-02 Bruno Haible <bruno@clisp.org>
6143 Tests for module 'uname'.
6144 * modules/uname-tests: New file.
6145 * tests/test-uname.c: New file.
6148 * lib/uname.c: New file.
6149 * m4/uname.m4: New file.
6150 * modules/uname: New file.
6151 * doc/posix-functions/uname.texi: Mention the new module.
6153 2009-08-02 Bruno Haible <bruno@clisp.org>
6155 Tests for module 'sys_utsname'.
6156 * modules/sys_utsname-tests: New file.
6157 * tests/test-sys_utsname.c: New file.
6159 New module 'sys_utsname'.
6160 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
6161 * m4/sys_utsname_h.m4: New file.
6162 * modules/sys_utsname: New file.
6163 * doc/posix-headers/sys_utsname.texi: Mention the new module.
6165 2009-08-02 Bruno Haible <bruno@clisp.org>
6167 Implicitly initialize the sockets library.
6168 * lib/gethostname.c: Include sockets.h.
6169 (rpl_gethostname): Invoke gl_sockets_startup.
6170 * lib/socket.c: Include sockets.h.
6171 (rpl_socket): Invoke gl_sockets_startup.
6172 * modules/gethostname (Depends-on): Add sockets.
6173 * modules/socket (Depends-on): Likewise.
6174 * tests/test-poll.c: Don't include sockets.h.
6175 (main): Don't invoke gl_sockets_startup.
6176 * tests/test-select.c: Don't include sockets.h.
6177 (main): Don't invoke gl_sockets_startup.
6179 2009-08-02 Bruno Haible <bruno@clisp.org>
6181 Allow multiple calls to gl_sockets_startup.
6182 * lib/sockets.c (initialized_sockets_version): New variable.
6183 (gl_sockets_startup): Do nothing if already called for this or a higher
6185 (gl_sockets_cleanup): Reset initialized_sockets_version.
6187 2009-08-03 Simon Josefsson <simon@josefsson.org>
6189 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
6190 different project/version.
6192 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
6193 Bruno Haible <bruno@clisp.org>
6195 Tests for module 'pipe-filter-gi'.
6196 * modules/pipe-filter-gi-tests: New file.
6197 * tests/test-pipe-filter-gi1.sh: New file.
6198 * tests/test-pipe-filter-gi1.c: New file.
6199 * tests/test-pipe-filter-gi2.sh: New file.
6200 * tests/test-pipe-filter-gi2-main.c: New file.
6201 * tests/test-pipe-filter-gi2-child.c: New file.
6203 New module 'pipe-filter-gi'.
6204 * lib/pipe-filter-gi.c: New file.
6205 * modules/pipe-filter-gi: New file.
6207 2009-08-02 Bruno Haible <bruno@clisp.org>
6208 Paolo Bonzini <bonzini@gnu.org>
6210 Tests for module 'pipe-filter-ii'.
6211 * modules/pipe-filter-ii-tests: New file.
6212 * tests/test-pipe-filter-ii1.sh: New file.
6213 * tests/test-pipe-filter-ii1.c: New file.
6214 * tests/test-pipe-filter-ii2.sh: New file.
6215 * tests/test-pipe-filter-ii2-main.c: New file.
6216 * tests/test-pipe-filter-ii2-child.c: New file.
6218 New module 'pipe-filter-ii'.
6219 * lib/pipe-filter.h: New file.
6220 * lib/pipe-filter-ii.c: New file.
6221 * lib/pipe-filter-aux.h: New file.
6222 * modules/pipe-filter-ii: New file.
6224 2009-08-02 Simon Josefsson <simon@josefsson.org>
6226 * lib/gc-libgcrypt.c: Change copyright to FSF.
6227 * lib/gc-gnulib.c: Likewise.
6229 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
6231 * lib/gethostname.c: Include limits.h.
6233 2009-08-02 Simon Josefsson <simon@josefsson.org>
6234 Bruno Haible <bruno@clisp.org>
6236 Ensure HOST_NAME_MAX as part of the gethostname module.
6237 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
6238 define also HOST_NAME_MAX.
6239 * tests/test-gethostname.c: Include <limits.h>.
6240 (main): Check also HOST_NAME_MAX.
6241 * doc/posix-headers/limits.texi: Document the mingw problem.
6243 2009-08-02 Bruno Haible <bruno@clisp.org>
6245 * lib/gethostname.c (gethostname): Fix handling of large len argument.
6248 2009-03-31 Simon Josefsson <simon@josefsson.org>
6250 * lib/gethostname.c: Add Windows wrapper.
6251 * m4/gethostname.m4: Look for gethostname in -lws2_32.
6252 * modules/gethostname: Depend on sys_socket & errno, for also
6253 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
6254 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
6256 2009-07-31 Jim Meyering <meyering@redhat.com>
6258 getloadavg: fix symbol name in comment
6259 * lib/getloadavg.c: Correct a typo I introduced when adding
6260 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
6261 Matt Kraai spotted the problem.
6263 2009-07-29 Matt Kraai <mkraai@beckman.com>
6265 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
6266 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
6267 code also if ! defined N_NAME_POINTER.
6268 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
6269 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
6270 but the n_name member is a 12-byte array.
6272 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
6274 update-copyright: generalize comment handling
6275 * build-aux/update-copyright: Handle copyright statements
6276 within more comment styles.
6278 Report any file with an external copyright holder or parse failure.
6280 2009-07-29 Jim Meyering <meyering@redhat.com>
6282 mktime: correct setting of REPLACE_MKTIME
6283 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
6285 update-copyright: new module
6286 * modules/update-copyright: New file.
6287 * build-aux/update-copyright: New file.
6288 * MODULES.html.sh (maint+release support): Add update-copyright.
6290 2009-07-27 Bruno Haible <bruno@clisp.org>
6292 Fix compilation error when <ctime> is used and mktime is replaced.
6293 * lib/time.in.h (mktime): New declaration.
6294 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
6295 REPLACE_MKTIME instead of defining mktime in config.h.
6296 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
6297 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
6298 Reported by Ross McFarland <rwmcfa1@neces.com>.
6300 2009-07-27 Bruno Haible <bruno@clisp.org>
6302 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
6303 Reported by Matt Kraai <mkraai@beckman.com>.
6305 2009-07-25 Jim Meyering <meyering@redhat.com>
6307 maint.mk: avoid warnings about missing files
6308 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
6309 diagnostic when .prev-version does not exist.
6310 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
6311 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
6313 Suggestions from Simon Josefsson.
6315 2009-07-25 Bruno Haible <bruno@clisp.org>
6317 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
6318 defined as macros. Needed on QNX 6.4.1.
6319 Reported by Matt Kraai <mkraai@beckman.com>.
6321 2009-07-23 Jim Meyering <meyering@redhat.com>
6323 maint.mk: invoke "make dist" with a working value of XZ_OPT
6324 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
6326 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
6328 Make fseeko.c compile on QNX.
6329 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
6331 2009-07-22 Peter Simons <simons@cryp.to>
6333 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
6334 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
6335 * lib/md4.h: Likewise.
6336 * lib/md5.h: Likewise.
6337 * lib/sha1.h: Likewise.
6338 * lib/sha256.h: Likewise.
6339 * lib/sha512.h: Likewise.
6341 tests-sha1: don't assign literal string to 'char *' variable
6342 * tests/test-sha1.c (main): Declare locals with "const" to match
6343 attributes of the right hand side.
6345 2009-07-21 Eric Blake <ebb9@byu.net>
6347 dup2: fix more mingw problems
6348 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
6350 * doc/posix-functions/dup2.texi (dup2): Document the bug.
6351 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
6352 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
6353 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
6356 2009-07-21 Jim Meyering <meyering@redhat.com>
6358 vc-list-files: avoid failure when /bin/sh is dash
6359 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
6360 On some Debian based systems, /bin/sh is a symlink to dash, and running
6361 this command would omit the "/" following each 'tests' prefix:
6362 dash -x build-aux/vc-list-files -C . tests
6363 That is because bash and dash work differently:
6364 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
6368 2009-07-21 Eric Blake <ebb9@byu.net>
6370 dup2-tests: test previous patch
6371 * modules/dup2-tests: New file.
6372 * tests/test-dup2.c: Likewise.
6373 * tests/test-open.c (main): Avoid unspecified behavior.
6374 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
6377 dup2: work around mingw and cygwin 1.5 bug
6378 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
6379 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6380 * modules/unistd (Makefile.am): Substitute it.
6381 * lib/unistd.in.h (dup2): Declare the replacement.
6382 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
6383 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
6384 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
6385 * modules/execute (Depends-on): Add dup2.
6386 * modules/fseterr (Depends-on): Likewise.
6387 * modules/pipe (Depends-on): Likewise.
6388 * modules/posix_spawn-internal (Depends-on): Likewise.
6390 2009-07-21 Bruno Haible <bruno@clisp.org>
6392 * modules/.gitattributes: New file.
6394 2009-07-20 Bruno Haible <bruno@clisp.org>
6396 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
6399 2009-07-20 Eric Blake <ebb9@byu.net>
6401 test-pipe: make a bit more robust.
6402 * tests/test-pipe.c (myerr): Allow error messages regardless of
6403 what we do to stderr.
6404 (test_pipe): Rearrange to avoid deadlock.
6405 (child_main): Try a larger read, to ensure we avoided deadlock.
6406 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
6407 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
6410 2009-07-19 Jim Meyering <meyering@redhat.com>
6412 fts: avoid false-positive cycle-detection
6413 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
6414 for each new command line argument.
6416 2009-07-19 Bruno Haible <bruno@clisp.org>
6418 Fix build error on mingw with the modules sys_select and unistd.
6419 * modules/acl-tests (Depends-on): Add close.
6420 * modules/binary-io-tests (Depends-on): Likewise.
6421 * modules/closein-tests (Depends-on): Likewise.
6422 * modules/flock-tests (Depends-on): Likewise.
6423 * modules/fsync-tests (Depends-on): Likewise.
6424 * modules/lseek-tests (Depends-on): Likewise.
6425 * modules/pipe-tests (Depends-on): Likewise.
6426 * modules/posix_spawn-tests (Depends-on): Likewise.
6427 * modules/posix_spawnp-tests (Depends-on): Likewise.
6428 * modules/stat-time-tests (Depends-on): Likewise.
6429 * modules/yesno-tests (Depends-on): Likewise.
6431 2009-07-19 Bruno Haible <bruno@clisp.org>
6434 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
6435 macros, not at the compiler macros.
6436 * lib/pipe.c: Likewise.
6437 * lib/execute.c: Likewise.
6438 * lib/spawni.c: Likewise.
6440 2009-07-19 Bruno Haible <bruno@clisp.org>
6442 Fix handling of closed stdin/stdout/stderr on mingw.
6443 * lib/w32spawn.h: Include unistd.h.
6444 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
6445 file descriptor with O_NOINHERIT flag.
6446 (fd_safer_noinherit): New function, based on fd-safer.c.
6447 (dup_safer_noinherit): New function, based on dup-safer.c.
6448 (undup_safer_noinherit): New function.
6449 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
6450 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
6451 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
6452 instead of fd_safer.
6453 * tests/test-pipe.c: Include <windows.h>.
6454 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
6456 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
6458 (test_pipe): Pass an extra argument for disambiguation.
6459 (main): Invoke parent_main or child_main.
6461 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
6464 2009-07-18 Eric Blake <ebb9@byu.net>
6466 test-pipe: fix mingw build
6467 * tests/test-pipe.c (main): Avoid fcntl on mingw.
6469 2009-07-18 Bruno Haible <bruno@clisp.org>
6471 * modules/pipe-tests (Makefile.am): Fix typo.
6473 2009-07-18 Eric Blake <ebb9@byu.net>
6475 error: fix mingw build
6476 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
6477 Reported by Bruno Haible.
6479 error: avoid undefined use of stdout
6480 * lib/error.c (error, error_at_line): Check that fd 1 is open
6481 before flushing stdout. Avoids a crash on cygwin when libsigsegv
6482 is handling faults and the close_stdout module wants to report the
6483 detection of closed stdout as an error.
6485 2009-07-17 Eric Blake <ebb9@byu.net>
6487 pipe: be robust in face of closed fds
6488 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
6489 should cause child to misbehave.
6490 * modules/pipe-tests: New module.
6491 * tests/test-pipe.c: New file.
6492 * tests/test-pipe.sh: New file.
6493 Reported by Akim Demaille.
6495 2009-07-14 Bruno Haible <bruno@clisp.org>
6497 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
6498 Reported by anonymous kc.
6500 2009-07-07 Jim Meyering <meyering@redhat.com>
6502 maint.mk: don't look for translatable strings in *.m4 or *.mk
6503 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
6504 when searching for translatable strings.
6506 2009-07-05 Jim Meyering <meyering@redhat.com>
6508 remove superfluous parentheses in STREQ definition
6509 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
6510 * lib/getugroups.c (STREQ): Likewise.
6511 * lib/fnmatch.c (STREQ): Likewise.
6512 Spotted by Bruno Haible.
6514 2009-07-04 Jim Meyering <meyering@redhat.com>
6516 argv-iter: new module
6517 * MODULES.html.sh: Add argv-iter.
6518 * lib/argv-iter.c, lib/argv-iter.h: New files.
6519 * modules/argv-iter: New file.
6520 * modules/argv-iter-tests: New file.
6521 * tests/test-argv-iter.c: Test it.
6523 2009-07-04 Bruno Haible <bruno@clisp.org>
6526 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
6527 contains more exact copies of a given entry than file2, leave the extra
6528 copies unpaired rather than aborting.
6529 Reported by Eric Blake.
6531 2009-07-02 Bruno Haible <bruno@clisp.org>
6533 Speedup git-merge-changelog for git cherry-pick.
6534 * lib/git-merge-changelog.c (struct entries_mapping): New type.
6535 (entries_mapping_get): New function, extracted from compute_mapping.
6536 (entries_mapping_reverse_get): New function.
6537 (compute_mapping): Add a 'full' argument. Return the result in a
6538 'struct entries_mapping'.
6539 (main): Update. Access the mappings through entries_mapping_get.
6540 Reported by Eric Blake.
6542 2009-07-02 Bruno Haible <bruno@clisp.org>
6544 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
6547 2009-07-02 Bruno Haible <bruno@clisp.org>
6549 Speed up approximate search for matching ChangeLog entries.
6550 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
6551 argument. Call fstrcmp_bounded instead of fstrcmp.
6552 (compute_mapping, try_split_merged_entry, main): Update callers.
6554 2009-07-02 Bruno Haible <bruno@clisp.org>
6556 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
6558 2009-06-30 Bruno Haible <bruno@clisp.org>
6560 Reduce the number of uc_is_cased calls.
6561 * lib/unicase.h (casing_suffix_context_t): Add
6562 'first_char_except_ignorable' field.
6563 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
6564 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
6565 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
6567 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
6568 case-ignorable characters.
6569 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
6570 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
6571 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
6572 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
6573 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
6575 2009-06-30 Bruno Haible <bruno@clisp.org>
6577 Tests for module 'unicase/ignorable'.
6578 * modules/unicase/ignorable-tests: New file.
6579 * tests/unicase/test-ignorable.c: New file, generated by
6582 Tests for module 'unicase/cased'.
6583 * modules/unicase/cased-tests: New file.
6584 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
6585 * tests/unicase/test-predicate-part1.h: New file, derived from
6586 tests/unictype/test-predicate-part1.h.
6587 * tests/unicase/test-predicate-part2.h: New file, same as
6588 tests/unictype/test-predicate-part2.h.
6590 Fix evaluation of "Before C" condition of FINAL_SIGMA.
6591 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
6592 (output_casing_properties): New function.
6594 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
6595 * lib/unicase/cased.c: Include unictype/bitmap.h.
6596 (uc_is_cased): Define through a bitmap lookup.
6597 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
6598 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
6599 (uc_is_case_ignorable): Define through a bitmap lookup.
6600 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
6601 lib/unictype/bitmap.h.
6602 (Depends-on): Add inline. Clean up.
6603 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
6604 lib/unictype/bitmap.h.
6605 (Depends-on): Add inline. Clean up.
6606 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
6608 * tests/unicase/test-u16-tolower.c (main): Likewise.
6609 * tests/unicase/test-u32-tolower.c (main): Likewise.
6611 2009-06-30 Bruno Haible <bruno@clisp.org>
6613 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
6614 * lib/unicase/u16-casemap.c: Likewise.
6615 * lib/unicase/u32-casemap.c: Likewise.
6617 2009-06-29 Bruno Haible <bruno@clisp.org>
6619 Define u32_casefold as a wrapper around u32_ct_casefold.
6620 * lib/unicase/u32-casefold.c: Update.
6621 * modules/unicase/u32-casefold (Depends-on): Add
6622 unicase/u32-ct-casefold, unicase/empty-prefix-context,
6623 unicase/empty-suffix-context. Clean up.
6625 Define u16_casefold as a wrapper around u16_ct_casefold.
6626 * lib/unicase/u16-casefold.c: Update.
6627 * modules/unicase/u16-casefold (Depends-on): Add
6628 unicase/u16-ct-casefold, unicase/empty-prefix-context,
6629 unicase/empty-suffix-context. Clean up.
6631 Define u8_casefold as a wrapper around u8_ct_casefold.
6632 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
6633 * lib/unicase/u8-casefold.c: Update.
6634 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
6635 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
6637 Define u32_totitle as a wrapper around u32_ct_totitle.
6638 * lib/unicase/u32-totitle.c: Update.
6639 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
6640 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
6642 Define u16_totitle as a wrapper around u16_ct_totitle.
6643 * lib/unicase/u16-totitle.c: Update.
6644 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
6645 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
6647 Define u8_totitle as a wrapper around u8_ct_totitle.
6648 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
6650 (FUNC): Delegate to U_CT_TOTITLE.
6651 * lib/unicase/u8-totitle.c: Update.
6652 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
6653 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
6655 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
6657 * modules/unicase/u32-tolower (Depends-on): Add
6658 unicase/empty-prefix-context, unicase/empty-suffix-context.
6660 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
6662 * modules/unicase/u16-tolower (Depends-on): Add
6663 unicase/empty-prefix-context, unicase/empty-suffix-context.
6665 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
6666 * modules/unicase/u8-tolower (Depends-on): Add
6667 unicase/empty-prefix-context, unicase/empty-suffix-context.
6669 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
6671 * modules/unicase/u32-toupper (Depends-on): Add
6672 unicase/empty-prefix-context, unicase/empty-suffix-context.
6674 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
6676 * modules/unicase/u16-toupper (Depends-on): Add
6677 unicase/empty-prefix-context, unicase/empty-suffix-context.
6679 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
6680 * modules/unicase/u8-toupper (Depends-on): Add
6681 unicase/empty-prefix-context, unicase/empty-suffix-context.
6683 New module 'unicase/u32-ct-casefold'.
6684 * lib/unicase/u32-ct-casefold.c: New file.
6685 * modules/unicase/u32-ct-casefold: New file.
6687 New module 'unicase/u16-ct-casefold'.
6688 * lib/unicase/u16-ct-casefold.c: New file.
6689 * modules/unicase/u16-ct-casefold: New file.
6691 New module 'unicase/u8-ct-casefold'.
6692 * lib/unicase/u8-ct-casefold.c: New file.
6693 * lib/unicase/u-ct-casefold.h: New file, derived from
6694 lib/unicase/u-casefold.h.
6695 * modules/unicase/u8-ct-casefold: New file.
6697 New module 'unicase/u32-ct-totitle'.
6698 * lib/unicase/u32-ct-totitle.c: New file.
6699 * modules/unicase/u32-ct-totitle: New file.
6701 New module 'unicase/u16-ct-totitle'.
6702 * lib/unicase/u16-ct-totitle.c: New file.
6703 * modules/unicase/u16-ct-totitle: New file.
6705 New module 'unicase/u8-ct-totitle'.
6706 * lib/unicase/u8-ct-totitle.c: New file.
6707 * lib/unicase/u-ct-totitle.h: New file, derived from
6708 lib/unicase/u-totitle.h.
6709 * modules/unicase/u8-ct-totitle: New file.
6711 New module 'unicase/u32-ct-tolower'.
6712 * lib/unicase/u32-ct-tolower.c: New file.
6713 * modules/unicase/u32-ct-tolower: New file.
6715 New module 'unicase/u16-ct-tolower'.
6716 * lib/unicase/u16-ct-tolower.c: New file.
6717 * modules/unicase/u16-ct-tolower: New file.
6719 New module 'unicase/u8-ct-tolower'.
6720 * lib/unicase/u8-ct-tolower.c: New file.
6721 * modules/unicase/u8-ct-tolower: New file.
6723 New module 'unicase/u32-ct-toupper'.
6724 * lib/unicase/u32-ct-toupper.c: New file.
6725 * modules/unicase/u32-ct-toupper: New file.
6727 New module 'unicase/u16-ct-toupper'.
6728 * lib/unicase/u16-ct-toupper.c: New file.
6729 * modules/unicase/u16-ct-toupper: New file.
6731 New module 'unicase/u8-ct-toupper'.
6732 * lib/unicase/u8-ct-toupper.c: New file.
6733 * modules/unicase/u8-ct-toupper: New file.
6735 Add context arguments to u*_casemap functions.
6736 * lib/unicase/unicasemap.h: Include unicase.h.
6737 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
6738 suffix_context arguments.
6739 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
6741 (FUNC): Add prefix_context and suffix_context arguments. Use
6742 uc_is_cased and uc_is_case_ignorable.
6743 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
6744 * lib/unicase/u16-casemap.c: Likewise.
6745 * lib/unicase/u32-casemap.c: Likewise.
6746 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
6747 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
6748 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
6749 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
6750 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
6751 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
6753 New module 'unicase/u32-suffix-context'.
6754 * lib/unicase/u32-suffix-context.c: New file.
6755 * modules/unicase/u32-suffix-context: New file.
6757 New module 'unicase/u16-suffix-context'.
6758 * lib/unicase/u16-suffix-context.c: New file.
6759 * modules/unicase/u16-suffix-context: New file.
6761 New module 'unicase/u8-suffix-context'.
6762 * lib/unicase/u8-suffix-context.c: New file.
6763 * lib/unicase/u-suffix-context.h: New file.
6764 * modules/unicase/u8-suffix-context: New file.
6766 New module 'unicase/empty-suffix-context'.
6767 * lib/unicase/empty-suffix-context.c: New file.
6768 * modules/unicase/empty-suffix-context: New file.
6770 New module 'unicase/u32-prefix-context'.
6771 * lib/unicase/u32-prefix-context.c: New file.
6772 * modules/unicase/u32-prefix-context: New file.
6774 New module 'unicase/u16-prefix-context'.
6775 * lib/unicase/u16-prefix-context.c: New file.
6776 * modules/unicase/u16-prefix-context: New file.
6778 New module 'unicase/u8-prefix-context'.
6779 * lib/unicase/u8-prefix-context.c: New file.
6780 * lib/unicase/u-prefix-context.h: New file.
6781 * lib/unicase/context.h: New file.
6782 * modules/unicase/u8-prefix-context: New file.
6784 New module 'unicase/empty-prefix-context'.
6785 * lib/unicase/empty-prefix-context.c: New file.
6786 * modules/unicase/empty-prefix-context: New file.
6788 New module 'unicase/ignorable'.
6789 * lib/unicase/ignorable.c: New file.
6790 * modules/unicase/ignorable: New file.
6792 New module 'unicase/cased'.
6793 * lib/unicase/caseprop.h: New file.
6794 * lib/unicase/cased.c: New file.
6795 * modules/unicase/cased: New file.
6797 New functions for case mapping of substrings.
6798 * lib/unicase.h (casing_prefix_context_t): New type.
6799 (unicase_empty_prefix_context): New variable.
6800 (u8_casing_prefix_context, u16_casing_prefix_context,
6801 u32_casing_prefix_context, u8_casing_prefixes_context,
6802 u16_casing_prefixes_context, u32_casing_prefixes_context): New
6804 (casing_suffix_context_t): New type.
6805 (unicase_empty_suffix_context): New variable.
6806 (u8_casing_suffix_context, u16_casing_suffix_context,
6807 u32_casing_suffix_context, u8_casing_suffixes_context,
6808 u16_casing_suffixes_context, u32_casing_suffixes_context,
6809 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
6810 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
6811 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
6814 2009-06-28 Jim Meyering <meyering@redhat.com>
6816 boostrap: indent only with spaces
6817 * build-aux/bootstrap: Indent only with spaces, never TABs.
6819 bootstrap: split long lines
6820 * build-aux/bootstrap: Keep line length < 80.
6822 bootstrap: sync from coreutils
6823 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
6824 just as autoreconf does. Verify a list of prerequisite
6825 package-name,version-number pairs if defined in bootstrap.conf.
6826 Refer to README-prereq, if prerequisites are not satisfied.
6828 2009-06-27 Eric Blake <ebb9@byu.net>
6830 tests: add test for bogus NULL definition
6831 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
6832 * tests/test-stdlib.c: Likewise.
6833 * tests/test-string.c: Likewise.
6834 * tests/test-locale.c: Likewise.
6835 * tests/test-unistd.c: Likewise.
6836 * modules/stdio-tests (Depends-on): Add verify.
6837 * modules/stdlib-tests (Depends-on): Likewise.
6838 * modules/string-tests (Depends-on): Likewise.
6839 * modules/locale-tests (Depends-on): Likewise.
6840 * modules/unistd-tests (Depends-on): Likewise.
6842 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
6844 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
6845 self-explaining comment.
6846 * m4/selinux-selinux-h: Update serial.
6847 (gl_LIBSELINUX): New macro, adding a warning for missing development
6848 packages to code extracted from...
6849 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
6850 Add warning for missing development packages here, too.
6852 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
6854 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
6856 2009-06-25 Eric Blake <ebb9@byu.net>
6858 version-etc: fix regression
6859 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
6861 (version_etc): Use it, to catch bugs with trailing NULL.
6862 * lib/version-etc.c (version_etc_arn): Delete unused argument.
6863 (version_etc_va): Fix logic bug.
6864 * modules/version-etc-tests: Add test.
6865 * tests/test-version-etc.c: New file.
6866 * tests/test-version-etc.sh: Likewise.
6868 2009-06-25 Sam Steingold <sds@gnu.org>
6870 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
6873 2009-06-25 Eric Blake <ebb9@byu.net>
6875 fpurge: migrate into <stdio.h>
6876 * lib/fpurge.h: Delete...
6877 * lib/stdio.in.h (fpurge): ...and declare here, instead.
6878 * lib/fpurge.c (fpurge): Change declaring header.
6879 * modules/fpurge (Files): Drop deleted file.
6880 (Depends-on): Add stdio.
6881 (configure.ac): Set witness.
6882 * modules/stdio (Makefile.am): Support fpurge macros.
6883 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
6884 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
6885 * lib/fflush.c: Update client.
6886 * tests/test-fpurge.c: Likewise.
6887 * NEWS: Mention the change.
6889 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
6891 * lib/argp-version-etc.c (program_authors): Add const
6893 * lib/version-etc.c: Fix typos in the comments.
6894 * modules/argp-version-etc: Depends on version-etc.
6896 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
6898 argp-version-etc: new module.
6900 * lib/argp-version-etc.c: New file.
6901 * lib/argp-version-etc.h: New file.
6902 * modules/argp-version-etc: New file.
6903 * modules/argp-version-etc-tests: New file.
6904 * tests/test-argp-version-etc.c: New test.
6905 * tests/test-argp-version-etc-1.sh: New test.
6907 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
6909 Provide additional interfaces and documentation for version-etc
6912 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
6914 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
6917 2009-06-24 Bruno Haible <bruno@clisp.org>
6919 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
6920 HAVE_LIB${NAME} macro.
6921 Reported by Sam Steingold <sds@gnu.org>.
6923 2009-06-23 Simon Josefsson <simon@josefsson.org>
6925 * modules/hash-tests (test_hash_LDADD): Link to libintl when
6928 2009-06-21 Bruno Haible <bruno@clisp.org>
6930 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
6932 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
6933 together with LIB${NAME}, LTLIB${NAME}.
6934 Reported by Sam Steingold <sds@gnu.org>.
6936 2009-06-20 Jim Meyering <meyering@redhat.com>
6938 tests: make sc_require_test_exit_idiom more generic
6939 * top/maint.mk (Exit_witness_file): New overridable variable.
6940 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
6941 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
6943 2009-06-19 Jim Meyering <meyering@redhat.com>
6945 hash: reverse order of src/dst parameters in an internal interface
6946 * lib/hash.c (transfer_entries): Reverse order of parameters to
6947 put DST before SRC. Adjust callers.
6949 tests: test-hash: avoid wholesale duplication
6950 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
6951 Instead, use a loop and add a single conditional.
6953 tests: test-hash: allow seed selection via a command line argument
6954 * tests/test-hash.c (get_seed): New function.
6957 2009-06-19 Eric Blake <ebb9@byu.net>
6959 hash: avoid memory leak on allocation failure
6960 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
6961 failure. Factor repeated algorithm...
6962 (transfer_entries): ...into new helper routine.
6963 (hash_delete): React to hash_rehash return value.
6965 hash: reduce memory pressure in hash_rehash no-op case
6966 * lib/hash.c (next_prime): Avoid overflow.
6967 (hash_initialize): Factor bucket size computation...
6968 (compute_bucket_size): ...into new helper function.
6969 (hash_rehash): Use new function and open coding to reduce memory
6970 pressure, and avoid a memory leak in USE_OBSTACK code.
6971 Reported by Jim Meyering.
6973 2009-06-18 Eric Blake <ebb9@byu.net>
6975 hash: make rotation more obvious
6976 * modules/hash (Depends-on): Add bitrotate and stdint.
6977 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
6978 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
6979 (SIZE_MAX): Rely on headers for definition.
6980 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
6981 (raw_hasher): Use rotr_sz.
6982 Suggested by Jim Meyering.
6984 hash: fix memory leak in last patch
6985 * lib/hash.c (hash_rehash): Avoid memory leak.
6987 hash: avoid no-op rehashing
6988 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
6990 hash: provide default callback functions
6991 * lib/hash.c (raw_hasher, raw_comparator): New functions.
6992 (hash_initialize): Use them as defaults.
6993 * tests/test-hash.c (main): Test this.
6995 hash: minor optimization
6996 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
6998 (hash_initialize): Document this promise.
6999 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
7000 * tests/test-hash.c (hash_compare_strings): Test this.
7002 2009-06-18 Bruno Haible <bruno@clisp.org>
7004 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
7005 going to be replaced anyway.
7007 2009-06-18 Bruno Haible <bruno@clisp.org>
7009 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
7011 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
7014 2009-06-18 Eric Blake <ebb9@byu.net>
7016 hash: check for resize before insertion
7017 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
7018 threshold before insertion, so that a pathological hash_rehash
7019 that fills every bucket can still trigger another rehash.
7021 2009-06-18 Jim Meyering <meyering@redhat.com>
7023 hash-tests: add a loop around the small tests
7024 * tests/test-hash.c (main): Repeat small tests with selected
7025 small initial table sizes.
7027 2009-06-17 Eric Blake <ebb9@byu.net>
7029 hash: minor cleanups
7030 * lib/hash.h (hash_entry): Make opaque, by moving...
7031 * lib/hash.c (hash_entry): ...here.
7032 (hash_insert): Clarify restrictions on what can be inserted.
7033 (hash_get_next): Clarify when it is safe to remove an element
7035 (check_tuning): Skip verification when tuning is known safe.
7036 (hash_initialize): Clarify restrictions on tuning.
7038 2009-06-17 Jim Meyering <jim@meyering.net>
7039 and Eric Blake <ebb9@byu.net>
7041 hash-tests: new module
7042 * modules/hash-tests: New file.
7043 * tests/test-hash.c: New file.
7045 2009-06-17 Eric Blake <ebb9@byu.net>
7047 strstr-simple: document new module
7048 * MODULES.html.sh: Document new module.
7050 strstr, strcasestr: replace on platforms with broken memchr
7051 * modules/strstr: Split into...
7052 * modules/strstr-simple: ...new module that does not care about
7053 performance, but does care about glibc bug.
7054 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
7055 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
7056 if platform memchr is broken, per Debian bug 521737.
7057 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
7059 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
7060 * doc/posix-functions/strstr.texi (strstr): Document the fix.
7061 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
7062 * modules/mountlist (Depends-on): Add strstr-simple.
7063 * modules/gen-uni-tables (Depends-on): Likewise.
7064 * modules/argz (Depends-on): Add strstr.
7066 2009-06-17 Bruno Haible <bruno@clisp.org>
7068 * modules/posix_spawn-internal (Depends-on): Add errno.
7070 2009-06-17 Bruno Haible <bruno@clisp.org>
7072 Define missing ESTALE on Interix 3.5.
7073 * lib/errno.in.h (ESTALE): Assign a value if missing.
7074 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
7075 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
7077 * doc/posix-headers/errno.texi: Mention the Interix bug.
7078 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
7080 2009-06-15 Eric Blake <ebb9@byu.net>
7082 memchr, memchr2: add valgrind exception
7083 * lib/memchr.valgrind: New file.
7084 * lib/memchr2.valgrind: New file.
7085 * modules/memchr (Files): Distribute valgrind file.
7086 * modules/memchr2 (Files): Likewise.
7088 docs: memchr is no longer obsolete
7089 * MODULES.html.sh: Move memchr from obsolete to string.h section.
7090 * lib/string.in.h (memchr): Simplify logic.
7092 2009-06-14 Jim Meyering <meyering@redhat.com>
7094 link-follow: fix the "checking..." message to not mention trailing slash
7095 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
7096 never considered trailing slashes.
7098 2009-06-14 Bruno Haible <bruno@clisp.org>
7100 * m4/memchr.m4: Mention also the bug on IA-64.
7101 * doc/posix-functions/memchr.texi: Likewise.
7103 2009-06-12 Eric Blake <ebb9@byu.net>
7105 memchr: detect broken x86_64 and alpha implementations
7106 * modules/memchr-tests (Depends-on): Move mmap detection...
7107 * modules/memchr (Depends-on): ...here.
7108 (configure.ac): Set indicator.
7109 * lib/string.in.h (memchr): Declare replacement.
7110 * modules/string (Makefile.am): Trigger replacement.
7111 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
7112 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
7114 * doc/posix-functions/memchr.texi (memchr): Document the bug.
7115 * modules/getpagesize (License): Relax license.
7117 2009-06-11 Bruno Haible <bruno@clisp.org>
7119 * lib/idpriv.h: Add more references.
7121 2009-06-08 Bruno Haible <bruno@clisp.org>
7123 Tests for module 'idpriv-droptemp'.
7124 * modules/idpriv-droptemp-tests: New file.
7125 * tests/test-idpriv-droptemp.sh: New file.
7126 * tests/test-idpriv-droptemp.su.sh: New file.
7127 * tests/test-idpriv-droptemp.c: New file.
7129 New module 'idpriv-droptemp'.
7130 * lib/idpriv-droptemp.c: New file.
7131 * modules/idpriv-droptemp: New file.
7133 2009-06-08 Bruno Haible <bruno@clisp.org>
7135 Tests for module 'idpriv-drop'.
7136 * modules/idpriv-drop-tests: New file.
7137 * tests/test-idpriv-drop.sh: New file.
7138 * tests/test-idpriv-drop.su.sh: New file.
7139 * tests/test-idpriv-drop.c: New file.
7141 New module 'idpriv-drop'.
7142 * lib/idpriv.h: New file.
7143 * lib-idpriv-drop.c: New file.
7144 * m4/idpriv.m4: New file.
7145 * modules/idpriv-drop: New file.
7147 2009-06-08 Bruno Haible <bruno@clisp.org>
7149 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
7150 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7151 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7152 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7153 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7154 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7155 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7157 2009-06-08 Eric Blake <ebb9@byu.net>
7159 test-strstr: use memory fence, when possible
7160 * tests/test-strstr.c (main): Use memory fence, in order to be
7161 more likely to trigger Debian bug 521737.
7162 * modules/strstr-tests (Files): Pull in additional files.
7164 memchr: no longer obsolete, for wider field testing
7165 * modules/memchr (Status, Notice): Delete, this module is no
7167 * modules/vasnprintf (Depends-on): Add memchr.
7169 2009-06-07 Jim Meyering <meyering@redhat.com>
7171 hash: declare some functions with the warn_unused_result attribute
7172 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
7174 2009-06-07 Bruno Haible <bruno@clisp.org>
7176 * tests/test-alignof.c: Don't test int64_t if it does not exist.
7177 Reported by Eric Blake.
7179 2009-06-06 Eric Blake <ebb9@byu.net>
7181 test-alignof: fix typo with long double
7182 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
7185 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
7187 Escape non-texinfo { and }s.
7188 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
7191 2009-06-04 Jim Meyering <meyering@redhat.com>
7193 gitlog-to-changelog: don't infloop on an empty commit log
7194 * build-aux/gitlog-to-changelog: Warn about an empty log message.
7195 Reported by Boris Petersen <transacid@centerim.org>.
7197 2009-06-03 Mike Frysinger <vapier@gentoo.org>
7199 version-etc: extend for packagers
7200 Add three new configure options, intended for packagers:
7201 --with-packager="packager name"
7202 --with-packager-version="packager-specific version"
7203 --with-packager-bug-reports="packager bug reporting"
7204 An example with coreutils:
7206 --with-packager=Gentoo \
7207 --with-packager-bug-report=http://bugs.gentoo.org/ \
7208 --with-packager-version="patchset 1.6"
7209 $ ./src/ls --version | head -n3
7210 ls (GNU coreutils) 7.1-dirty
7211 Packaged by Gentoo (patchset 1.6)
7212 Copyright (C) 2009 Free Software Foundation, Inc.
7213 Note that the bug reporting info via --help doesn't show up because
7214 coreutils uses its own custom emit_bug_reporting_address() implementation
7215 in src/system.h. If it didn't, it'd look like:
7216 $ ./src/ls --help | tail -n4
7217 Report bugs to <bug-coreutils@gnu.org>.
7218 Report Gentoo bugs to <http://bugs.gentoo.org/>.
7219 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
7220 General help using GNU software: <http://www.gnu.org/gethelp/>.
7221 * lib/version-etc.c: Print new information, if provided.
7222 * m4/version-etc.m4: New file.
7223 * modules/version-etc (Files): Add m4/version-etc.m4.
7224 (configure.ac): Add gl_VERSION_ETC.
7226 2009-05-31 Bruno Haible <bruno@clisp.org>
7228 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
7230 * modules/alignof-tests (Dependencies): Add stdint.
7231 Reported by Eric Blake.
7233 2009-05-31 Bruno Haible <bruno@clisp.org>
7235 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
7236 restriction due to compiler bugs.
7237 Reported by Eric Blake.
7239 2009-05-31 Simon Josefsson <simon@josefsson.org>
7240 Bruno Haible <bruno@clisp.org>
7242 Fix test-alignof failure.
7243 * lib/alignof.h (alignof_slot): New macro.
7244 (alignof_type): New macro, with the same semantics as the previous
7246 (alignof): Alias to alignof_slot.
7247 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
7248 check that the results are usable as constant expressions.
7250 2009-05-31 Bruno Haible <bruno@clisp.org>
7252 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
7253 * tests/test-memchr.c (main): Check that memchr does not read past the
7254 first occurrence of the byte.
7255 * tests/test-strstr.c (main): Update comment.
7256 Suggested by Eric Blake.
7258 2009-05-30 Bruno Haible <bruno@clisp.org>
7260 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
7261 detail how to use dumpbin.
7262 Reported by David Byron <dbyron@dbyron.com>.
7264 2009-06-02 Simon Josefsson <simon@josefsson.org>
7266 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
7268 2009-06-02 Simon Josefsson <simon@josefsson.org>
7270 * m4/manywarnings.m4: Add GCC 4.4 warnings.
7272 2009-05-28 Bruno Haible <bruno@clisp.org>
7274 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
7277 2009-05-28 Simon Josefsson <simon@josefsson.org>
7279 * gnulib-tool (func_import): Transform license on build-aux/ files too.
7281 2009-05-27 Simon Josefsson <simon@josefsson.org>
7283 * gnulib-tool (sed_transform_main_lib_file)
7284 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
7287 2009-05-26 Simon Josefsson <simon@josefsson.org>
7289 * tests/test-strstr.c: Add another self-test.
7290 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
7291 strdup. Suggested by Eric Blake <ebb9@byu.net>.
7293 2009-05-23 Bruno Haible <bruno@clisp.org>
7295 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
7298 2009-05-21 Bruno Haible <bruno@clisp.org>
7300 Simplify use of mode_t varargs.
7301 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
7302 uses 'mode_t' or 'int'.
7303 * lib/openat.c (openat): Likewise.
7304 * lib/open-safer.c (open_safer): Likewise.
7305 * m4/mode_t.m4: New file.
7306 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
7307 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
7308 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
7309 * modules/open (Files): Add m4/mode_t.m4.
7310 * modules/openat (Files): Likewise.
7311 * modules/fcntl-safer (Files): Likewise.
7312 Suggested by Eric Blake.
7314 2009-05-21 Pádraig Brady <P@draigbrady.com>
7316 * doc/glibc-functions/fallocate.texi: New file.
7317 * doc/gnulib.texi: Include it.
7319 2009-05-21 Eric Blake <ebb9@byu.net>
7320 Bruno Haible <bruno@clisp.org>
7322 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
7324 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
7326 2009-05-21 Eric Blake <ebb9@byu.net>
7327 Bruno Haible <bruno@clisp.org>
7329 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
7330 include_next. Fix of 2008-11-20 commit.
7331 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
7332 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
7333 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
7335 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
7336 instead of NEXT_MATH_H.
7338 2009-05-21 Bruno Haible <bruno@clisp.org>
7340 Avoid redefinition warnings for SIZE_MAX.
7341 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
7342 Reported by Simon Josefsson.
7344 2009-05-21 Bruno Haible <bruno@clisp.org>
7346 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
7349 2009-05-20 Bruno Haible <bruno@clisp.org>
7351 Make zeroptr.h work on mingw.
7352 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
7354 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
7355 * modules/memchr2-tests (configure.ac): Likewise.
7356 * modules/memcmp-tests (configure.ac): Likewise.
7357 * modules/memmem-tests (configure.ac): Likewise.
7358 * modules/memrchr-tests (configure.ac): Likewise.
7359 Reported by Simon Josefsson.
7361 2009-05-20 Simon Josefsson <simon@josefsson.org>
7363 * tests/test-glob.c: Include string.h for strcmp prototype.
7365 2009-05-20 Simon Josefsson <simon@josefsson.org>
7367 * modules/getdelim (Depends-on): Add explicit stdint, although it
7368 was implicitly already pulled in via realloc-posix.
7369 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
7371 2009-05-20 Simon Josefsson <simon@josefsson.org>
7373 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
7374 G. Christensen" <tgc@jupiterrise.com>.
7375 * m4/sys_socket_h.m4: Check for sa_family_t.
7376 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
7377 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
7378 * tests/test-sys_socket.c: Check that sa_family_t works.
7380 2009-05-18 Eric Blake <ebb9@byu.net>
7382 maint.mk: allow gnulib_dir in VPATH build
7383 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
7385 2009-05-15 Jim Meyering <meyering@redhat.com>
7387 maint.mk: Give gnulib_dir a default definition.
7388 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
7389 Thus, most packages no longer need to specify this variable in cfg.mk
7391 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
7393 rename.m4: fix typos that would make non-mingw cross-configure fail
7394 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
7396 2009-05-13 Eric Blake <ebb9@byu.net>
7398 mmap-anon: avoid out-of-order autoconf expansion
7399 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
7400 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
7401 * modules/memchr-tests (Depends-on): Add extensions.
7402 * modules/memchr2-tests (Depends-on): Add extensions.
7403 * modules/memcmp-tests (Depends-on): Add extensions.
7404 * modules/memmem-tests (Depends-on): Add extensions.
7405 * modules/memrchr-tests (Depends-on): Add extensions.
7407 2009-05-13 Bruno Haible <bruno@clisp.org>
7409 Make some tests ISO C 99 compliant.
7410 * tests/zerosize-ptr.h: New file.
7411 * tests/test-memchr.c: Include zerosize-ptr.h.
7412 (main): Use a zero-size object pointer instead of NULL.
7413 * tests/test-memchr2.c: Include zerosize-ptr.h.
7414 (main): Use a zero-size object pointer instead of NULL.
7415 * tests/test-memcmp.c: Include zerosize-ptr.h.
7416 (main): Use a zero-size object pointer instead of NULL.
7417 * tests/test-memmem.c: Include zerosize-ptr.h.
7418 (main): Use a zero-size object pointer instead of NULL.
7419 * tests/test-memrchr.c: Include zerosize-ptr.h.
7420 (main): Use a zero-size object pointer instead of NULL.
7421 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
7423 (Depends-on): Add getpagesize.
7424 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7425 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
7427 (Depends-on): Add getpagesize.
7428 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7429 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
7431 (Depends-on): Add getpagesize.
7432 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7433 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
7435 (Depends-on): Add getpagesize.
7436 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7437 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
7439 (Depends-on): Add getpagesize.
7440 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7442 2009-05-12 Bruno Haible <bruno@clisp.org>
7444 Tests for module 'alignof'.
7445 * modules/alignof-tests: New file.
7446 * tests/test-alignof.c: New file.
7448 2009-05-12 Bruno Haible <bruno@clisp.org>
7451 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
7452 vendor compilers that are always correct.
7454 2009-05-12 Bruno Haible <bruno@clisp.org>
7456 Make the MAP_ANONYMOUS detection work on HP-UX 11.
7457 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
7458 not whether its fully works.
7460 2009-05-12 Bruno Haible <bruno@clisp.org>
7462 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
7464 2009-05-12 Jim Meyering <meyering@redhat.com>
7466 * top/maint.mk: Adjust backslash alignment.
7468 2009-05-11 Simon Josefsson <simon@josefsson.org>
7470 * top/maint.mk: Make $(srcdir)/build-aux configurable.
7472 2009-05-11 Eric Blake <ebb9@byu.net>
7474 argp: avoid undefined behavior
7475 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
7478 2009-05-08 Simon Josefsson <simon@josefsson.org>
7480 * tests/test-vc-list-files-git.sh: Do git config of user.email and
7481 user.name to prevent git commit from complaining.
7483 2009-05-10 Bruno Haible <bruno@clisp.org>
7485 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
7486 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
7487 it rewrites every file name only once.
7488 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
7490 2009-05-08 Bruno Haible <bruno@clisp.org>
7492 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
7495 2009-05-08 Simon Josefsson <simon@josefsson.org>
7497 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
7498 sockaddr_storage test.
7500 2009-05-07 Simon Josefsson <simon@josefsson.org>
7502 * modules/sys_socket (Makefile.am): Substitute
7503 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
7504 * m4/sys_socket_h.m4: Check for sockaddr_storage.
7505 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
7506 * tests/test-sys_socket.c: Check sockaddr_storage.
7508 2009-05-08 Bruno Haible <bruno@clisp.org>
7510 New module 'alignof'.
7511 * lib/alignof.h: New file.
7512 * modules/alignof: New file.
7514 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
7515 Bruno Haible <bruno@clisp.org>
7517 Fix test-file-has-acl on FreeBSD.
7518 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
7519 mask is implicitly added.
7520 * tests/test-file-has-acl.c: Include <signal.h>.
7521 (main): Terminate the test after 5 seconds.
7522 * modules/acl-tests (configure.ac): Check for alarm function.
7524 2009-05-04 Bruno Haible <bruno@clisp.org>
7526 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
7527 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
7528 * modules/errno (configure.ac): Drop AC_REQUIRE.
7529 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
7530 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
7532 2009-05-04 Simon Josefsson <simon@josefsson.org>
7534 * modules/glob-tests: New module.
7535 * tests/test-glob.c: Add.
7537 2009-05-04 Simon Josefsson <simon@josefsson.org>
7539 * modules/fnmatch-tests: New module.
7540 * tests/test-fnmatch.c: Add.
7542 2009-05-04 Eric Blake <ebb9@byu.net>
7544 maint: make the new no-submodule-changes rule VPATH-safe
7545 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
7547 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
7548 Bruno Haible <bruno@clisp.org>
7550 acl: Fix infinite loop on FreeBSD.
7551 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
7552 of return value from acl_get_entry.
7553 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
7556 2009-05-03 Bruno Haible <bruno@clisp.org>
7558 * lib/acl-internal.h (acl_entries): Clarify return value.
7559 * lib/acl_entries.c (acl_entries): Likewise.
7561 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
7563 Bug fix in acl module.
7564 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
7566 2009-05-03 Bruno Haible <bruno@clisp.org>
7568 Create gperf-generated file in the source dir, not in the build dir.
7569 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
7570 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
7571 * modules/unicase/locale-language (unicase/locale-languages.h):
7573 * modules/unicase/special-casing (unicase/special-casing-table.h):
7575 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
7576 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
7577 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
7578 Reported by Ralf Wildenhues.
7580 2009-05-03 Bruno Haible <bruno@clisp.org>
7582 * modules/fnmatch (Description, configure.ac): Taken from
7584 * modules/fnmatch-posix: Turn into a symbolic reference to the
7585 'fnmatch' module, and deprecate.
7586 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
7588 2009-05-03 Bruno Haible <bruno@clisp.org>
7590 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
7591 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
7592 Reported by Ralf Wildenhues.
7594 2009-05-04 Simon Josefsson <simon@josefsson.org>
7596 * m4/fnmatch.m4: Fix fnmatch re-define.
7598 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
7600 priv-set: new module and tests; adapt write-any-file
7601 * lib/priv-set.c: New file.
7602 * lib/priv-set.h: New file.
7603 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
7604 * lib/write-any-file.c: Simplify by using priv-set module.
7605 * m4/priv-set.m4: New file.
7606 * modules/priv-set: New file.
7607 * modules/unlinkdir: Add dependency on priv-set module.
7608 * modules/write-any-file: Likewise.
7610 Tests for module 'priv-set'.
7611 * modules/priv-set-tests: New file.
7612 * tests/test-priv-set.c: New file.
7614 2009-05-03 Jim Meyering <meyering@redhat.com>
7615 Bruno Haible <bruno@clisp.org>
7617 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
7618 use the converted UTF-8 variant of the name instead.
7620 2009-05-03 Jim Meyering <meyering@redhat.com>
7622 tests: tighten some getdate tests
7623 * tests/test-getdate.c (main): Tighten tests: require equality,
7624 not just greater than. Set TZ envvar to UTC0.
7626 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
7628 getdate: correctly interpret "next monday" when run on a Monday
7629 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
7630 that e.g., "next tues" (when run on a tuesday) results in a date
7631 that is one week in the future, and not today's date.
7632 I.e., add a week when the wday is the same as the current one.
7633 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
7634 and earlier by Martin Bernreuther and Jan Minář.
7635 * tests/test-getdate.c (main): Check that "next DAY" is always in
7636 the future and that "last DAY" is always in the past.
7638 2009-05-02 Jim Meyering <meyering@redhat.com>
7640 build: ensure that a release build fails when a submodule is unclean
7641 * top/maint.mk (no-submodule-changes): New rule.
7642 (alpha beta major): Depend on it.
7644 2009-05-02 Bruno Haible <bruno@clisp.org>
7646 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
7647 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
7648 shell variable gl_fnmatch_required to detect which variant is
7650 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
7651 gl_FUNC_FNMATCH_POSIX.
7652 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
7653 exclude fnmatch-posix.
7655 2009-05-02 Bruno Haible <bruno@clisp.org>
7657 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
7658 * modules/mbsrtowcs (License): Change to LGPLv2+.
7659 * modules/strnlen1 (License): Likewise.
7660 Reported by Simon Josefsson.
7662 2009-05-02 Bruno Haible <bruno@clisp.org>
7664 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
7666 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
7667 gnulib-tool was called with option --source-base=lib.
7669 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7671 Use automake *-local hooks without commands, for extensibility.
7672 * modules/localcharset (Makefile.am): Rename install-exec-local
7673 rule to install-exec-localcharset, and make it a prerequisite of
7674 install-exec-local. Likewise, rename the uninstall-local rule to
7675 uninstall-localcharset, and make it a prerequisite of the former.
7677 2009-05-01 Bruno Haible <bruno@clisp.org>
7679 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
7680 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
7681 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
7682 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
7683 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
7684 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
7685 m4/locale-zh.m4, m4/codeset.m4.
7687 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
7688 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
7689 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
7692 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
7693 REPLACE_WCRTOMB if mbstate_t must be replaced.
7694 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
7695 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
7697 2009-05-01 Bruno Haible <bruno@clisp.org>
7699 Avoid compiler warnings when redefining macros defined by <libintl.h>.
7700 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
7701 dngettext, dcngettext, textdomain, bindtextdomain,
7702 bind_textdomain_codeset): Undefine before redefining.
7704 2009-04-30 Bruno Haible <bruno@clisp.org>
7706 Fix bug introduced on 2009-04-25.
7707 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
7708 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
7709 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
7711 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
7713 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
7715 Reported by Elbert_Pol <elbert.pol@gmail.com>.
7717 2009-04-28 Bruno Haible <bruno@clisp.org>
7720 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
7721 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
7722 * lib/unicase.h (u*_casexfrm): Likewise.
7723 Reported by Paolo Bonzini.
7725 2009-04-28 Bruno Haible <bruno@clisp.org>
7727 Fix a compilation error.
7728 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
7729 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
7730 Reported by Jim Meyering.
7732 2009-04-27 Bruno Haible <bruno@clisp.org>
7734 New module 'libunistring'.
7735 * modules/libunistring: New file.
7736 * m4/libunistring.m4: New file.
7737 * MODULES.html.sh (Unicode string functions): Add it.
7739 2009-04-27 Eric Blake <ebb9@byu.net>
7741 maint.mk: allow package-specific header to provide <config.h>
7742 * top/maint.mk (sc_require_config_h): New variable.
7743 (sc_require_config_h, sc_require_config_h_first): Use it.
7745 2009-04-27 Simon Josefsson <simon@josefsson.org>
7747 * top/maint.mk (sc_avoid_if_before_free): Except
7748 useless-if-before-free script.
7750 2009-04-27 Eric Blake <ebb9@byu.net>
7752 maintainer-makefile: depend on all required helper scripts
7753 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
7754 useless-if-before-free.
7755 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
7756 version, rather than assuming gnulib checkout is available.
7757 Reported by Simen Josefsson.
7759 2009-04-26 Bruno Haible <bruno@clisp.org>
7761 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
7762 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
7765 2009-04-26 Bruno Haible <bruno@clisp.org>
7767 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
7768 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
7769 AC_LIB_HAVE_LINKFLAGS.
7771 2009-04-26 Bruno Haible <bruno@clisp.org>
7773 Simplify calling convention of u*_conv_from_encoding.
7774 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
7775 u32_conv_from_encoding): Expect a resultbuf argument and return the
7776 result directly as a pointer.
7777 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
7778 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
7779 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
7780 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
7781 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
7782 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
7784 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
7785 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
7786 * lib/vasnprintf.c (VASNPRINTF): Update.
7787 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
7788 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
7789 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
7790 * NEWS: Mention the change.
7792 2009-04-26 Bruno Haible <bruno@clisp.org>
7794 Simplify calling convention of u*_conv_to_encoding.
7795 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
7796 u32_conv_to_encoding): Expect a resultbuf argument and return the
7797 result directly as a pointer.
7798 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
7799 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
7800 freeing scaled_offsets if mem_iconveha failed.
7801 * lib/unicase/u-casexfrm.h (FUNC): Update.
7802 * lib/uninorm/u-normxfrm.h (FUNC): Update.
7803 * lib/vasnprintf.c (VASNPRINTF): Update.
7804 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
7805 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
7806 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
7807 * NEWS: Mention the change.
7809 2009-04-26 Bruno Haible <bruno@clisp.org>
7811 Avoid test failures on AIX and OSF/1.
7812 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
7814 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
7815 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
7817 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
7818 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
7819 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
7820 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
7821 * doc/posix-functions/malloc.texi: Document the portability problem
7822 related to malloc(0).
7824 2009-04-26 Bruno Haible <bruno@clisp.org>
7826 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
7827 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
7828 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
7830 2009-04-25 Bruno Haible <bruno@clisp.org>
7832 Avoid link error when creating a namespace clean library.
7833 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
7834 as macro with arguments if already defined as an alias.
7835 * lib/signbitf.c (gl_signbitf): Don't undefine.
7836 * lib/signbitd.c (gl_signbitd): Don't undefine.
7837 * lib/signbitl.c (gl_signbitl): Don't undefine.
7839 2009-04-25 Jim Meyering <meyering@redhat.com>
7841 vc-list-files: fix another quoting bug
7842 * build-aux/vc-list-files: Avoid sed backslash expansion
7843 of pathological directory names.
7845 2009-04-25 Eric Blake <ebb9@byu.net>
7847 vc-list-files: fix shell quoting error
7848 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
7851 2009-04-25 Jim Meyering <meyering@redhat.com>
7853 vc-list-files: restore lost functionality with subdir argument
7854 * build-aux/vc-list-files: When given a non-"." sub-directory
7855 argument, substitute the $dir/ prefix back onto each resulting name.
7856 Otherwise, coreutils' root_tests check would fail.
7858 2009-04-24 Eric Blake <ebb9@byu.net>
7860 vc-list-files: ignore git symlinks
7861 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
7862 than ls-files, to ignore git symlinks.
7864 maint.mk: import improvements from m4
7865 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
7866 (move_if_change): Delete unused macro.
7867 (news-date-check, vc-diff-check): Support VPATH builds.
7868 (announcement): Likewise. Split --bootstrap-tools list...
7869 (boostrap-tools): ...into separate list, which can be overridden
7871 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
7872 requiring dependency on useless-if-before-free module.
7873 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
7874 Support VPATH builds.
7876 2009-04-24 Jim Meyering <meyering@redhat.com>
7878 maint.mk: remove coreutils-specific rules and variables
7879 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
7880 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
7881 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
7883 maint.mk: remove obsolete rule
7884 * top/maint.mk (rel-check): Remove rule.
7885 (WGET, WGETFLAGS): Remove now-unused variables.
7887 2009-04-24 Simon Josefsson <simon@josefsson.org>
7889 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
7892 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
7893 '$(PATH_SEPARATOR)' instead of ':'.
7895 2009-04-24 Simon Josefsson <simon@josefsson.org>
7897 * lib/getopt1.c (main): Use 'const' for static array.
7899 2009-04-24 Simon Josefsson <simon@josefsson.org>
7901 * top/maint.mk: Sync with coreutils.
7902 * NEWS: Explain incompatibilities.
7904 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7905 Bruno Haible <bruno@clisp.org>
7907 Fix cross-compilation results.
7908 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
7909 statement, as third argument of AC_TRY_RUN.
7910 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
7911 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
7913 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7914 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
7916 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
7917 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
7918 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
7920 2009-04-20 Bruno Haible <bruno@clisp.org>
7922 Avoid test failure on mingw.
7923 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
7925 2009-04-20 Bruno Haible <bruno@clisp.org>
7927 Avoid compilation error on mingw.
7928 * modules/localename-tests (Depends-on): Add locale.
7930 2009-04-19 Bruno Haible <bruno@clisp.org>
7932 Support for building a shared library on Windows platforms.
7933 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
7934 (main): Test the presence of UNINORM_NFC here.
7935 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
7936 (main): Test the presence of UNINORM_NFD here.
7937 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
7938 (main): Test the presence of UNINORM_NFKC here.
7939 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
7940 (main): Test the presence of UNINORM_NFKD here.
7942 2009-04-19 Bruno Haible <bruno@clisp.org>
7944 Avoid a compiler warning.
7945 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
7946 Change type of variable 'sequence'.
7948 2009-04-19 Bruno Haible <bruno@clisp.org>
7950 * modules/configmake (Makefile.am): When the contents of configmake.h
7951 does not change, arrange to preserve its modification time.
7953 2009-04-17 Simon Josefsson <simon@josefsson.org>
7955 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
7958 2009-04-16 Jim Meyering <meyering@redhat.com>
7960 useless-if-before-free: improve conversion code
7961 * build-aux/useless-if-before-free: Adjust code-in-comment to match
7962 "...!= 0" as well as "...!= NULL". emacs has one of the former.
7964 2009-04-14 Bruno Haible <bruno@clisp.org>
7966 * modules/fcntl (Depends-on): Add extensions.
7967 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
7969 2009-04-12 Ben Pfaff <blp@gnu.org>
7971 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
7972 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
7974 2009-03-20 Ben Pfaff <blp@gnu.org>
7976 Make rename replace existing destinations on Windows.
7977 * m4/rename.m4: Add test for Mingw.
7978 * lib/rename.c: Add rename replacement that uses MoveFileEx with
7979 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
7980 * doc/posix-functions/rename.texi: Document.
7982 2009-04-10 Bruno Haible <bruno@clisp.org>
7984 New include file "iconveh.h".
7985 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
7986 * lib/striconveh.h: Include it.
7987 (enum iconv_ilseq_handler): Remove definition.
7988 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
7990 * lib/striconveha.c: Include striconveh.h.
7991 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
7992 * modules/striconveh (Files): Add lib/iconveh.h.
7993 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
7996 2009-04-10 Bruno Haible <bruno@clisp.org>
7998 * lib/uniconv.h: Update comment.
8000 2009-04-10 Bruno Haible <bruno@clisp.org>
8002 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
8004 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
8005 * lib/unistr/u16-mbtouc-aux.c: Likewise.
8006 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
8007 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
8008 "unistring-notinline.h", so that the function gets defined always.
8009 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
8010 * lib/unistr/u8-uctomb.c: Likewise.
8011 * lib/unistr/u16-mbtouc.c: Likewise.
8012 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
8013 * lib/unistr/u16-uctomb.c: Likewise.
8014 * lib/unistr/u32-mbtouc.c: Likewise.
8015 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
8016 * lib/unistr/u32-uctomb.c: Likewise.
8018 2009-04-10 Bruno Haible <bruno@clisp.org>
8020 Mark 'utime' obsolete.
8021 * modules/utime (Status, Notice): New sections.
8022 Suggested by Jim Meyering.
8024 Fix cross-compile guess for utime test.
8025 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
8027 * doc/posix-functions/utime.texi: Give more precisions.
8028 Reported by Jan <ipif@ymail.com>.
8030 2009-04-09 Kamil Dudka <kdudka@redhat.com>
8032 filevercmp: correct today's change
8033 * lib/filevercmp.c: Also handle coreutils' test inputs.
8034 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
8036 Fix regression in 'filevercmp' module. Thanks Sven Joachim
8038 * lib/filevercmp.c: Special handle for "", "." and "..".
8039 * tests/test-filevercmp.c: Enlarge the set suite.
8041 2009-04-07 Jim Meyering <meyering@redhat.com>
8043 useless-if-before-free: show how to remove braced useless free, too
8044 * build-aux/useless-if-before-free: still only in a comment, though.
8046 2009-04-07 Reuben Thomas <rrt@sc3d.org>
8048 maint.mk: import changes to syntax-check macros from coreutils
8049 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
8050 Use them in the relevant macros.
8052 2009-04-06 Bruno Haible <bruno@clisp.org>
8054 Fix unportable use of bit-fields.
8055 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
8056 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
8057 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
8059 2009-04-06 Bruno Haible <bruno@clisp.org>
8061 Avoid test failures on AIX and OSF/1.
8062 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
8063 that malloc(0) = NULL.
8064 * tests/unicase/test-u8-tolower.c (check): Likewise.
8065 * tests/unicase/test-u8-totitle.c (check): Likewise.
8066 * tests/unicase/test-u8-toupper.c (check): Likewise.
8067 * tests/unicase/test-u16-casefold.c (check): Likewise.
8068 * tests/unicase/test-u16-tolower.c (check): Likewise.
8069 * tests/unicase/test-u16-totitle.c (check): Likewise.
8070 * tests/unicase/test-u16-toupper.c (check): Likewise.
8071 * tests/unicase/test-u32-casefold.c (check): Likewise.
8072 * tests/unicase/test-u32-tolower.c (check): Likewise.
8073 * tests/unicase/test-u32-totitle.c (check): Likewise.
8074 * tests/unicase/test-u32-toupper.c (check): Likewise.
8075 * tests/uninorm/test-u8-nfc.c (check): Likewise.
8076 * tests/uninorm/test-u8-nfd.c (check): Likewise.
8077 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
8078 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
8079 * tests/uninorm/test-u16-nfc.c (check): Likewise.
8080 * tests/uninorm/test-u16-nfd.c (check): Likewise.
8081 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
8082 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
8083 * tests/uninorm/test-u32-nfc.c (check): Likewise.
8084 * tests/uninorm/test-u32-nfd.c (check): Likewise.
8085 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
8086 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
8088 2009-04-05 Bruno Haible <bruno@clisp.org>
8090 Work around an autoconf limitation.
8091 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
8092 comment line if it would be longer than 3 KB.
8094 2009-04-05 Bruno Haible <bruno@clisp.org>
8096 Avoid test failure with libiconv-1.13.
8097 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
8098 of the expected test results.
8100 2009-04-05 Bruno Haible <bruno@clisp.org>
8102 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
8103 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
8104 that it should be installed.
8106 2009-04-05 Bruno Haible <bruno@clisp.org>
8108 * gnulib-tool: New option --copy-file.
8109 (func_usage): Document it.
8110 (func_dest_tmpfilename): Moved out of func_import.
8111 (func_add_file, func_update_file): New functions, extracted from
8113 (func_import): Update.
8115 2009-04-05 Karl Berry <karl@gnu.org>
8117 * README: prominently mention gnulib-tool.
8118 Rearrange sections so getting the code is near the top.
8120 2009-04-05 Bruno Haible <bruno@clisp.org>
8122 * lib/unicase.h: Mention u*_cmp2.
8123 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
8124 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
8125 * lib/unicase/ulc-casecmp.c: Likewise.
8126 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
8127 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
8128 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
8130 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
8131 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
8133 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
8136 * lib/uninorm.h: Mention u*_cmp2.
8137 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
8138 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
8139 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
8140 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
8141 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
8143 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
8145 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
8148 New module 'unistr/u32-cmp2'.
8149 * lib/unistr/u32-cmp2.c: New file.
8150 * modules/unistr/u32-cmp2: New file.
8152 New module 'unistr/u16-cmp2'.
8153 * lib/unistr/u16-cmp2.c: New file.
8154 * modules/unistr/u16-cmp2: New file.
8156 New module 'unistr/u8-cmp2'.
8157 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
8158 * lib/unistr/u8-cmp2.c: New file.
8159 * lib/unistr/u-cmp2.h: New file.
8160 * modules/unistr/u8-cmp2: New file.
8162 2009-04-05 Bruno Haible <bruno@clisp.org>
8164 * lib/unictype.h (uc_property_is_valid): New macro.
8165 * tests/unictype/test-pr_byname.c (main): Use it.
8167 * lib/unistr.h: Doc fixes.
8168 * lib/uniconv.h: Doc fixes.
8169 * lib/unictype.h: Doc fixes.
8171 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
8173 Port coreutils 7.2 to Solaris 8.
8175 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
8176 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
8177 for Solaris 8. This is a bit of a hack, as it means it's the
8178 caller's responsibility to add -lnsl if needed, but most likely it
8179 won't be needed since only getaddrinfo uses this and getaddrinfo
8180 isn't needed on Solaris 8.
8182 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
8183 problem to Solaris 8 encountered with coreutils 7.2, which
8184 resulted in a message "fnmatch.c:292: warning: passing argument 4
8185 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
8186 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
8188 2009-04-03 Simon Josefsson <simon@josefsson.org>
8190 * m4/ld-version-script.m4: Add FIXME comment.
8192 2009-04-02 Simon Josefsson <simon@josefsson.org>
8194 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
8197 2009-04-02 Bruno Haible <bruno@clisp.org>
8199 * Makefile (info, html, dvi, pdf): Combine the rules.
8200 Suggested by Jim Meyering.
8202 2009-04-01 Bruno Haible <bruno@clisp.org>
8204 * Makefile (info, html, dvi, pdf): New targets.
8205 Reported by Reuben Thomas <rrt@sc3d.org>.
8207 2009-04-01 Bruno Haible <bruno@clisp.org>
8209 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
8210 can be put into PATH.
8211 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
8213 2009-04-01 Bruno Haible <bruno@clisp.org>
8215 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
8217 2009-04-01 Bruno Haible <bruno@clisp.org>
8219 Rename module 'visibility'.
8220 * modules/lib-symbol-visibility: Renamed from modules/visibility.
8221 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
8222 * doc/gnulib.texi: Update.
8223 * MODULES.html.sh (Misc): Update.
8224 * NEWS: Mention the change.
8226 2009-04-01 Simon Josefsson <simon@josefsson.org>
8228 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
8229 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
8230 Eric Blake <ebb9@byu.net> for review.
8231 * MODULES.html.sh: Add lib-msvc-compat.
8232 * doc/gnulib.texi: Link to new section.
8233 * m4/ld-output-def.m4: New file.
8234 * doc/ld-output-def.texi: New file.
8236 2009-04-01 Simon Josefsson <simon@josefsson.org>
8238 Rename ld-version-script to lib-symbol-versions. Suggested by
8239 Bruno Haible <bruno@clisp.org>.
8240 * modules/ld-version-script: Renamed to lib-symbol-versions.
8241 * doc/ld-version-script.texi: Fix module name.
8242 * MODULES.html.sh: Add lib-symbol-versions.
8244 2009-03-31 Simon Josefsson <simon@josefsson.org>
8246 * modules/u64-tests: New file.
8247 * tests/test-u64.c: New file.
8249 2009-03-04 Simon Josefsson <simon@josefsson.org>
8251 * MODULES.html.sh: Mention u64.
8252 * modules/u64: New module.
8253 * modules/crypto/sha512: Depend on u64 module instead of providing
8256 2009-03-27 Eric Blake <ebb9@byu.net>
8258 test-strerror: make debugging EAI_SYSTEM easier
8259 * modules/getaddrinfo-tests (Depends-on): Add strerror.
8260 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
8261 failure was EAI_SYSTEM.
8263 2009-03-25 Bruno Haible <bruno@clisp.org>
8265 Fix a problem with --enable-relocatable on Solaris 7.
8266 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
8269 2009-03-25 Eric Blake <ebb9@byu.net>
8271 test-sockets: avoid gcc warning
8272 * tests/test-sockets.c (main): Silence compiler warning.
8274 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
8276 New modules nproc, pthread, contributed by Glen Lenker.
8278 * MODULES.html.sh: Add pthread, nproc.
8279 * lib/nproc.c: New file.
8280 * lib/nproc.h: New file.
8281 * lib/pthread.in.h: New file.
8282 * m4/pthread.m4: New file.
8283 * modules/nproc: New file.
8284 * modules/pthread: New file.
8286 2009-03-24 Simon Josefsson <simon@josefsson.org>
8288 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
8291 2009-03-24 Kamil Dudka <kdudka@redhat.com>
8293 filevercmp: handle simple~ and numbered.~3~ backup suffixes
8294 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
8295 * tests/test-filevercmp.c: Add tests for backup suffixes.
8297 2009-03-24 Simon Josefsson <simon@josefsson.org>
8299 * modules/stdlib (Depends-on): Add stdint, needed when defining
8300 struct random_data on, for example, HP-UX 10.20. Reported by
8301 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8303 2009-03-24 Simon Josefsson <simon@josefsson.org>
8305 * lib/readline.c (readline): Call fflush on stdout after printing
8308 2009-03-20 Bruno Haible <bruno@clisp.org>
8310 Remove dependency from 'close' module to -lws2_32 on native Windows.
8311 * lib/close-hook.h: New file.
8312 * lib/close-hook.c: New file.
8313 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
8315 (_gl_close_fd_maybe_socket): Remove function.
8316 (rpl_close): Invoke execute_all_close_hooks instead of
8317 _gl_close_fd_maybe_socket.
8318 * lib/sockets.c: Include close-hook.h, w32sock.h.
8319 (close_fd_maybe_socket): New function, essentially from lib/close.c.
8320 (close_sockets_hook): New variable.
8321 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
8322 (gl_sockets_cleanup): Unregister it.
8323 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
8324 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
8325 * modules/close-hook: New file.
8326 * modules/close (Files): Remove lib/w32sock.h.
8327 (Depends-on): Add close-hook.
8328 (Link): Remove section.
8329 * modules/sockets (Files): Add lib/w32sock.h.
8330 (Depends-on): Add close-hook.
8331 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
8333 * NEWS: Mention that LIB_CLOSE is gone.
8335 2009-03-23 Eric Blake <ebb9@byu.net>
8337 signal-tests: test previous patch
8338 * tests/test-signal.c: New file.
8339 * modules/signal-tests: Likewise.
8341 signal.h: always support 'volatile sig_atomic_t'
8342 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
8343 (gl_SIGNAL_H_DEFAULTS): Add a default.
8344 * modules/signal (Makefile.am): Substitute if needed.
8345 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
8346 users can blindly add volatile.
8347 * doc/posix-headers/signal.texi (signal.h): Document it.
8348 Reported by Matthew Woehlke.
8350 2009-03-23 Jim Meyering <meyering@redhat.com>
8352 pathmax: PATH_MAX: use pathconf only when available
8353 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
8354 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
8355 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
8356 This avoids a link failure in a PSP cross-compilation environment
8357 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
8359 * lib/vasnprintf.c (divide): Fix typo in comment.
8361 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8363 * gnulib-tool (func_filter_filelist): Fix comment.
8365 2009-03-20 Bruno Haible <bruno@clisp.org>
8367 Make sockets.h self-contained.
8368 * lib/sockets.c: Include sockets.h first.
8369 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
8371 2009-03-19 Eric Blake <ebb9@byu.net>
8373 doc: mention more functions added in cygwin 1.7.0
8374 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
8376 * doc/posix-functions/log2f.texi: Likewise.
8378 2009-03-19 Jim Meyering <meyering@redhat.com>
8380 fsusage: avoid syntax error due to statement-before-declaration
8381 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
8382 after all declarations. Reported by Matthew Woehlke in
8383 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
8385 2009-03-18 Eric Blake <ebb9@byu.net>
8387 build-aux/compile: sync from automake
8388 * build-aux/compile: New file, from automake.
8389 * config/srclist.txt: Mention build-aux/compile.
8391 2009-03-17 Bruno Haible <bruno@clisp.org>
8393 * lib/git-merge-changelog.c: Fix typo in comment.
8394 Reported by Reuben Thomas <rrt@sc3d.org>.
8396 2009-03-17 Reuben Thomas <rrt@sc3d.org>
8398 * m4/regex.m4: update and improve help for
8399 --without-included-regex.
8401 2009-03-17 Simon Josefsson <simon@josefsson.org>
8403 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
8404 failure on missing include files.
8406 2009-03-17 Eric Blake <ebb9@byu.net>
8408 doc: mention more functions added in cygwin 1.7.0
8409 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
8411 * doc/posix-functions/fwscanf.texi: Likewise.
8412 * doc/posix-functions/swprintf.texi: Likewise.
8413 * doc/posix-functions/swscanf.texi: Likewise.
8414 * doc/posix-functions/vfwprintf.texi: Likewise.
8415 * doc/posix-functions/vfwscanf.texi: Likewise.
8416 * doc/posix-functions/vswprintf.texi: Likewise.
8417 * doc/posix-functions/vswscanf.texi: Likewise.
8418 * doc/posix-functions/vwprintf.texi: Likewise.
8419 * doc/posix-functions/vwscanf.texi: Likewise.
8420 * doc/posix-functions/wcscasecmp.texi: Likewise.
8421 * doc/posix-functions/wcsdup.texi: Likewise.
8422 * doc/posix-functions/wcsftime.texi: Likewise.
8423 * doc/posix-functions/wcsncasecmp.texi: Likewise.
8424 * doc/posix-functions/wprintf.texi: Likewise.
8425 * doc/posix-functions/wscanf.texi: Likewise.
8426 * doc/glibc-functions/gethostbyname2.texi: Likewise.
8428 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8430 maint.mk: really add $(AM_MAKEFLAGS)
8431 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
8432 was inadvertently omitted in the last commit.
8433 Spotted by Bruno Haible.
8435 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
8436 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
8437 $(AM_MAKEFLAGS)' rather than plain `make'.
8439 gnulib-tool: execute $MAKE not make
8440 * gnulib-tool: Default $MAKE to 'make'.
8441 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
8442 than make. Initialize $MAKE in the do-autobuild script.
8444 gnulib-tool: use $MAKE not make in generated files
8445 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
8446 make, in generated files. Initialize $MAKE in the do-autobuild
8449 * top/GNUmakefile (_have-git-version-gen): Fix typo.
8451 GNUmakefile: disable parallelism only for multiple, recursive targets
8452 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
8453 additions in the Makefile.
8454 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
8456 (.NOTPARALLEL): Only disable parallel builds if multiple targets
8457 are listed on the command line and at least one of them is
8458 listed in $(ALL_RECURSIVE_TARGETS).
8460 2009-03-14 Bruno Haible <bruno@clisp.org>
8462 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
8463 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
8464 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
8465 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
8466 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
8467 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
8468 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
8470 * modules/unistr/u8-strchr (Depends-on): Likewise.
8471 * modules/unistr/u8-strrchr (Depends-on): Likewise.
8472 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
8474 * modules/unistr/u16-strchr (Depends-on): Likewise.
8475 * modules/unistr/u16-strrchr (Depends-on): Likewise.
8477 2009-03-12 Bruno Haible <bruno@clisp.org>
8479 Work around select() bug on Interix 3.5.
8480 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
8481 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
8482 * m4/select.m4: New file.
8483 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
8484 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
8485 * modules/select (Files): Add m4/select.m4.
8486 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
8487 * modules/nanosleep (Depends-on): Add select.
8488 * modules/poll (Depends-on): Likewise.
8489 * doc/posix-functions/select.texi: Mention the Interix bug.
8490 Reported by Markus Duft <mduft@gentoo.org>.
8492 * lib/select.c: Renamed from lib/winsock-select.c.
8493 * modules/select (Files): Add lib/select.c, remove
8494 lib/winsock-select.c.
8495 (configure.ac): Update.
8497 2009-03-12 Jim Meyering <meyering@redhat.com>
8499 avoid gcc warnings about unused macro definitions
8500 * lib/readtokens.c (STREQ): Remove unused definition.
8501 * lib/xmalloc.c (SIZE_MAX): Likewise.
8502 * lib/openat-die.c (N_): Likewise.
8503 * lib/mountlist.c (SIZE_MAX): Remove definition.
8504 Instead, include <stdint.h>.
8505 * lib/readutmp.c: Likewise.
8506 * modules/readutmp (Depends-on): Add stdint.
8507 * modules/mountlist (Depends-on): Add stdint.
8508 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
8510 2009-03-10 Bruno Haible <bruno@clisp.org>
8512 Tests for module 'mbmemcasecoll'.
8513 * modules/mbmemcasecoll-tests: New file.
8514 * tests/test-mbmemcasecoll1.sh: New file.
8515 * tests/test-mbmemcasecoll2.sh: New file.
8516 * tests/test-mbmemcasecoll3.sh: New file.
8517 * tests/test-mbmemcasecoll.c: New file.
8519 New module 'mbmemcasecoll'.
8520 * lib/mbmemcasecoll.h: New file.
8521 * lib/mbmemcasecoll.c: New file.
8522 * modules/mbmemcasecoll: New file.
8524 * tests/test-mbmemcasecmp.h: New file, extracted from
8525 tests/test-mbmemcasecmp.c.
8526 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
8527 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
8529 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
8531 2009-03-09 Bruno Haible <bruno@clisp.org>
8533 Tests for module 'mbmemcasecmp'.
8534 * modules/mbmemcasecmp-tests: New file.
8535 * tests/test-mbmemcasecmp1.sh: New file.
8536 * tests/test-mbmemcasecmp2.sh: New file.
8537 * tests/test-mbmemcasecmp3.sh: New file.
8538 * tests/test-mbmemcasecmp.c: New file.
8540 New module 'mbmemcasecmp'.
8541 * lib/mbmemcasecmp.h: New file.
8542 * lib/mbmemcasecmp.c: New file.
8543 * modules/mbmemcasecmp: New file.
8545 2009-03-09 Bruno Haible <bruno@clisp.org>
8547 Tests for module 'unicase/ulc-casecoll'.
8548 * modules/unicase/ulc-casecoll-tests: New file.
8549 * tests/unicase/test-ulc-casecoll1.sh: New file.
8550 * tests/unicase/test-ulc-casecoll2.sh: New file.
8551 * tests/unicase/test-ulc-casecoll.c: New file.
8553 New module 'unicase/ulc-casecoll'.
8554 * lib/unicase.h (ulc_casecoll): New declaration.
8555 * lib/unicase/ulc-casecoll.c: New file.
8556 * modules/unicase/ulc-casecoll: New file.
8558 New module 'unicase/ulc-casexfrm'.
8559 * lib/unicase.h (ulc_casexfrm): New declaration.
8560 * lib/unicase/ulc-casexfrm.c: New file.
8561 * modules/unicase/ulc-casexfrm: New file.
8563 2009-03-09 Bruno Haible <bruno@clisp.org>
8565 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
8568 * m4/mbscasecmp.m4: Remove file.
8569 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
8570 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
8572 * m4/mbscasestr.m4: Remove file.
8573 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
8574 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
8576 * m4/mbschr.m4: Remove file.
8577 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
8578 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
8580 * m4/mbscspn.m4: Remove file.
8581 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
8582 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
8584 * m4/mbslen.m4: Remove file.
8585 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
8586 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
8588 * m4/mbsncasecmp.m4: Remove file.
8589 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
8590 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
8592 * m4/mbsnlen.m4: Remove file.
8593 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
8594 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
8596 * m4/mbspbrk.m4: Remove file.
8597 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
8598 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
8600 * m4/mbspcasecmp.m4: Remove file.
8601 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
8602 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
8604 * m4/mbsrchr.m4: Remove file.
8605 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
8606 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
8608 * m4/mbssep.m4: Remove file.
8609 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
8610 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
8612 * m4/mbsspn.m4: Remove file.
8613 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
8614 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
8616 * m4/mbsstr.m4: Remove file.
8617 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
8618 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
8620 * m4/mbstok_r.m4: Remove file.
8621 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
8622 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
8624 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
8626 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
8627 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
8629 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
8631 2009-03-08 Bruno Haible <bruno@clisp.org>
8633 Tests for module 'unicase/ulc-casecmp'.
8634 * modules/unicase/ulc-casecmp-tests: New file.
8635 * tests/unicase/test-ulc-casecmp1.sh: New file.
8636 * tests/unicase/test-ulc-casecmp2.sh: New file.
8637 * tests/unicase/test-ulc-casecmp.c: New file.
8639 New module 'unicase/ulc-casecmp'.
8640 * lib/unicase.h (ulc_casecmp): New declaration.
8641 * lib/unicase/ulc-casecmp.c: New file.
8642 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
8644 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
8645 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
8646 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
8647 * modules/unicase/ulc-casecmp: New file.
8649 Tests for module 'unicase/u32-is-cased'.
8650 * modules/unicase/u32-is-cased-tests: New file.
8651 * tests/unicase/test-u32-is-cased.c: New file.
8653 Tests for module 'unicase/u16-is-cased'.
8654 * modules/unicase/u16-is-cased-tests: New file.
8655 * tests/unicase/test-u16-is-cased.c: New file.
8657 Tests for module 'unicase/u8-is-cased'.
8658 * modules/unicase/u8-is-cased-tests: New file.
8659 * tests/unicase/test-u8-is-cased.c: New file.
8660 * tests/unicase/test-is-cased.h: New file.
8662 New module 'unicase/u32-is-cased'.
8663 * lib/unicase/u32-is-cased.c: New file.
8664 * modules/unicase/u32-is-cased: New file.
8666 New module 'unicase/u16-is-cased'.
8667 * lib/unicase/u16-is-cased.c: New file.
8668 * modules/unicase/u16-is-cased: New file.
8670 New module 'unicase/u8-is-cased'.
8671 * lib/unicase/u8-is-cased.c: New file.
8672 * lib/unicase/u-is-cased.h: New file.
8673 * modules/unicase/u8-is-cased: New file.
8675 Tests for module 'unicase/u32-is-casefolded'.
8676 * modules/unicase/u32-is-casefolded-tests: New file.
8677 * tests/unicase/test-u32-is-casefolded.c: New file.
8679 Tests for module 'unicase/u16-is-casefolded'.
8680 * modules/unicase/u16-is-casefolded-tests: New file.
8681 * tests/unicase/test-u16-is-casefolded.c: New file.
8683 Tests for module 'unicase/u8-is-casefolded'.
8684 * modules/unicase/u8-is-casefolded-tests: New file.
8685 * tests/unicase/test-u8-is-casefolded.c: New file.
8686 * tests/unicase/test-is-casefolded.h: New file.
8688 New module 'unicase/u32-is-casefolded'.
8689 * lib/unicase/u32-is-casefolded.c: New file.
8690 * modules/unicase/u32-is-casefolded: New file.
8692 New module 'unicase/u16-is-casefolded'.
8693 * lib/unicase/u16-is-casefolded.c: New file.
8694 * modules/unicase/u16-is-casefolded: New file.
8696 New module 'unicase/u8-is-casefolded'.
8697 * lib/unicase/u8-is-casefolded.c: New file.
8698 * modules/unicase/u8-is-casefolded: New file.
8700 Tests for module 'unicase/u32-is-titlecase'.
8701 * modules/unicase/u32-is-titlecase-tests: New file.
8702 * tests/unicase/test-u32-is-titlecase.c: New file.
8704 Tests for module 'unicase/u16-is-titlecase'.
8705 * modules/unicase/u16-is-titlecase-tests: New file.
8706 * tests/unicase/test-u16-is-titlecase.c: New file.
8708 Tests for module 'unicase/u8-is-titlecase'.
8709 * modules/unicase/u8-is-titlecase-tests: New file.
8710 * tests/unicase/test-u8-is-titlecase.c: New file.
8711 * tests/unicase/test-is-titlecase.h: New file.
8713 New module 'unicase/u32-is-titlecase'.
8714 * lib/unicase/u32-is-titlecase.c: New file.
8715 * modules/unicase/u32-is-titlecase: New file.
8717 New module 'unicase/u16-is-titlecase'.
8718 * lib/unicase/u16-is-titlecase.c: New file.
8719 * modules/unicase/u16-is-titlecase: New file.
8721 New module 'unicase/u8-is-titlecase'.
8722 * lib/unicase/u8-is-titlecase.c: New file.
8723 * modules/unicase/u8-is-titlecase: New file.
8725 Tests for module 'unicase/u32-is-lowercase'.
8726 * modules/unicase/u32-is-lowercase-tests: New file.
8727 * tests/unicase/test-u32-is-lowercase.c: New file.
8729 Tests for module 'unicase/u16-is-lowercase'.
8730 * modules/unicase/u16-is-lowercase-tests: New file.
8731 * tests/unicase/test-u16-is-lowercase.c: New file.
8733 Tests for module 'unicase/u8-is-lowercase'.
8734 * modules/unicase/u8-is-lowercase-tests: New file.
8735 * tests/unicase/test-u8-is-lowercase.c: New file.
8736 * tests/unicase/test-is-lowercase.h: New file.
8738 New module 'unicase/u32-is-lowercase'.
8739 * lib/unicase/u32-is-lowercase.c: New file.
8740 * modules/unicase/u32-is-lowercase: New file.
8742 New module 'unicase/u16-is-lowercase'.
8743 * lib/unicase/u16-is-lowercase.c: New file.
8744 * modules/unicase/u16-is-lowercase: New file.
8746 New module 'unicase/u8-is-lowercase'.
8747 * lib/unicase/u8-is-lowercase.c: New file.
8748 * modules/unicase/u8-is-lowercase: New file.
8750 Tests for module 'unicase/u32-is-uppercase'.
8751 * modules/unicase/u32-is-uppercase-tests: New file.
8752 * tests/unicase/test-u32-is-uppercase.c: New file.
8754 Tests for module 'unicase/u16-is-uppercase'.
8755 * modules/unicase/u16-is-uppercase-tests: New file.
8756 * tests/unicase/test-u16-is-uppercase.c: New file.
8758 Tests for module 'unicase/u8-is-uppercase'.
8759 * modules/unicase/u8-is-uppercase-tests: New file.
8760 * tests/unicase/test-u8-is-uppercase.c: New file.
8761 * tests/unicase/test-is-uppercase.h: New file.
8763 New module 'unicase/u32-is-uppercase'.
8764 * lib/unicase/u32-is-uppercase.c: New file.
8765 * modules/unicase/u32-is-uppercase: New file.
8767 New module 'unicase/u16-is-uppercase'.
8768 * lib/unicase/u16-is-uppercase.c: New file.
8769 * modules/unicase/u16-is-uppercase: New file.
8771 New module 'unicase/u8-is-uppercase'.
8772 * lib/unicase/u8-is-uppercase.c: New file.
8773 * modules/unicase/u8-is-uppercase: New file.
8775 New module 'unicase/u32-is-invariant'.
8776 * lib/unicase/u32-is-invariant.c: New file.
8777 * modules/unicase/u32-is-invariant: New file.
8779 New module 'unicase/u16-is-invariant'.
8780 * lib/unicase/u16-is-invariant.c: New file.
8781 * modules/unicase/u16-is-invariant: New file.
8783 New module 'unicase/u8-is-invariant'.
8784 * lib/unicase/u8-is-invariant.c: New file.
8785 * lib/unicase/invariant.h: New file.
8786 * lib/unicase/u-is-invariant.h: New file.
8787 * modules/unicase/u8-is-invariant: New file.
8789 Tests for module 'unicase/u32-casecoll'.
8790 * modules/unicase/u32-casecoll-tests: New file.
8791 * tests/unicase/test-u32-casecoll.c: New file.
8793 Tests for module 'unicase/u16-casecoll'.
8794 * modules/unicase/u16-casecoll-tests: New file.
8795 * tests/unicase/test-u16-casecoll.c: New file.
8797 Tests for module 'unicase/u8-casecoll'.
8798 * modules/unicase/u8-casecoll-tests: New file.
8799 * tests/unicase/test-u8-casecoll.c: New file.
8801 New module 'unicase/u32-casecoll'.
8802 * lib/unicase/u32-casecoll.c: New file.
8803 * modules/unicase/u32-casecoll: New file.
8805 New module 'unicase/u16-casecoll'.
8806 * lib/unicase/u16-casecoll.c: New file.
8807 * modules/unicase/u16-casecoll: New file.
8809 New module 'unicase/u8-casecoll'.
8810 * lib/unicase/u8-casecoll.c: New file.
8811 * lib/unicase/u-casecoll.h: New file.
8812 * modules/unicase/u8-casecoll: New file.
8814 New module 'unicase/u32-casexfrm'.
8815 * lib/unicase/u32-casexfrm.c: New file.
8816 * modules/unicase/u32-casexfrm: New file.
8818 New module 'unicase/u16-casexfrm'.
8819 * lib/unicase/u16-casexfrm.c: New file.
8820 * modules/unicase/u16-casexfrm: New file.
8822 New module 'unicase/u8-casexfrm'.
8823 * lib/unicase/u8-casexfrm.c: New file.
8824 * lib/unicase/u-casexfrm.h: New file.
8825 * modules/unicase/u8-casexfrm: New file.
8827 Tests for module 'unicase/u32-casecmp'.
8828 * modules/unicase/u32-casecmp-tests: New file.
8829 * tests/unicase/test-u32-casecmp.c: New file.
8831 Tests for module 'unicase/u16-casecmp'.
8832 * modules/unicase/u16-casecmp-tests: New file.
8833 * tests/unicase/test-u16-casecmp.c: New file.
8835 Tests for module 'unicase/u8-casecmp'.
8836 * modules/unicase/u8-casecmp-tests: New file.
8837 * tests/unicase/test-u8-casecmp.c: New file.
8838 * tests/unicase/test-casecmp.h: New file.
8840 New module 'unicase/u32-casecmp'.
8841 * lib/unicase/u32-casecmp.c: New file.
8842 * modules/unicase/u32-casecmp: New file.
8844 New module 'unicase/u16-casecmp'.
8845 * lib/unicase/u16-casecmp.c: New file.
8846 * modules/unicase/u16-casecmp: New file.
8848 New module 'unicase/u8-casecmp'.
8849 * lib/unicase/u8-casecmp.c: New file.
8850 * lib/unicase/u-casecmp.h: New file.
8851 * modules/unicase/u8-casecmp: New file.
8853 Tests for module 'unicase/u32-casefold'.
8854 * modules/unicase/u32-casefold-tests: New file.
8855 * tests/unicase/test-u32-casefold.c: New file.
8857 Tests for module 'unicase/u16-casefold'.
8858 * modules/unicase/u16-casefold-tests: New file.
8859 * tests/unicase/test-u16-casefold.c: New file.
8861 Tests for module 'unicase/u8-casefold'.
8862 * modules/unicase/u8-casefold-tests: New file.
8863 * tests/unicase/test-u8-casefold.c: New file.
8865 New module 'unicase/u32-casefold'.
8866 * lib/unicase/u32-casefold.c: New file.
8867 * modules/unicase/u32-casefold: New file.
8869 New module 'unicase/u16-casefold'.
8870 * lib/unicase/u16-casefold.c: New file.
8871 * modules/unicase/u16-casefold: New file.
8873 New module 'unicase/u8-casefold'.
8874 * lib/unicase/u8-casefold.c: New file.
8875 * lib/unicase/u-casefold.h: New file.
8876 * modules/unicase/u8-casefold: New file.
8878 New module 'unicase/tocasefold'.
8879 * lib/unicase/casefold.h: New file.
8880 * lib/unicase/tocasefold.c: New file.
8881 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
8882 * modules/unicase/tocasefold: New file.
8884 Tests for module 'unicase/u32-totitle'.
8885 * modules/unicase/u32-totitle-tests: New file.
8886 * tests/unicase/test-u32-totitle.c: New file.
8888 Tests for module 'unicase/u16-totitle'.
8889 * modules/unicase/u16-totitle-tests: New file.
8890 * tests/unicase/test-u16-totitle.c: New file.
8892 Tests for module 'unicase/u8-totitle'.
8893 * modules/unicase/u8-totitle-tests: New file.
8894 * tests/unicase/test-u8-totitle.c: New file.
8896 New module 'unicase/u32-totitle'.
8897 * lib/unicase/u32-totitle.c: New file.
8898 * modules/unicase/u32-totitle: New file.
8900 New module 'unicase/u16-totitle'.
8901 * lib/unicase/u16-totitle.c: New file.
8902 * modules/unicase/u16-totitle: New file.
8904 New module 'unicase/u8-totitle'.
8905 * lib/unicase/u8-totitle.c: New file.
8906 * lib/unicase/u-totitle.h: New file.
8907 * modules/unicase/u8-totitle: New file.
8909 Tests for module 'unicase/u32-tolower'.
8910 * modules/unicase/u32-tolower-tests: New file.
8911 * tests/unicase/test-u32-tolower.c: New file.
8913 Tests for module 'unicase/u16-tolower'.
8914 * modules/unicase/u16-tolower-tests: New file.
8915 * tests/unicase/test-u16-tolower.c: New file.
8917 Tests for module 'unicase/u8-tolower'.
8918 * modules/unicase/u8-tolower-tests: New file.
8919 * tests/unicase/test-u8-tolower.c: New file.
8921 New module 'unicase/u32-tolower'.
8922 * lib/unicase/u32-tolower.c: New file.
8923 * modules/unicase/u32-tolower: New file.
8925 New module 'unicase/u16-tolower'.
8926 * lib/unicase/u16-tolower.c: New file.
8927 * modules/unicase/u16-tolower: New file.
8929 New module 'unicase/u8-tolower'.
8930 * lib/unicase/u8-tolower.c: New file.
8931 * modules/unicase/u8-tolower: New file.
8933 Tests for module 'unicase/u32-toupper'.
8934 * modules/unicase/u32-toupper-tests: New file.
8935 * tests/unicase/test-u32-toupper.c: New file.
8937 Tests for module 'unicase/u16-toupper'.
8938 * modules/unicase/u16-toupper-tests: New file.
8939 * tests/unicase/test-u16-toupper.c: New file.
8941 Tests for module 'unicase/u8-toupper'.
8942 * modules/unicase/u8-toupper-tests: New file.
8943 * tests/unicase/test-u8-toupper.c: New file.
8945 New module 'unicase/u32-toupper'.
8946 * lib/unicase/u32-toupper.c: New file.
8947 * modules/unicase/u32-toupper: New file.
8949 New module 'unicase/u16-toupper'.
8950 * lib/unicase/u16-toupper.c: New file.
8951 * modules/unicase/u16-toupper: New file.
8953 New module 'unicase/u8-toupper'.
8954 * lib/unicase/u8-toupper.c: New file.
8955 * modules/unicase/u8-toupper: New file.
8957 New module 'unicase/u32-casemap'.
8958 * lib/unicase/u32-casemap.c: New file.
8959 * modules/unicase/u32-casemap: New file.
8961 New module 'unicase/u16-casemap'.
8962 * lib/unicase/u16-casemap.c: New file.
8963 * modules/unicase/u16-casemap: New file.
8965 New module 'unicase/u8-casemap'.
8966 * lib/unicase/unicasemap.h: New file.
8967 * lib/unicase/u8-casemap.c: New file.
8968 * lib/unicase/u-casemap.h: New file.
8969 * modules/unicase/u8-casemap: New file.
8971 New module 'unicase/special-casing'.
8972 * lib/unicase/special-casing.h: New file.
8973 * lib/unicase/special-casing.c: New file.
8974 * lib/unicase/special-casing-table.gperf: New file, generated by
8976 * modules/unicase/special-casing: New file.
8978 Tests for module 'unicase/locale-language'.
8979 * modules/unicase/locale-language-tests: New file.
8980 * tests/unicase/test-locale-language.sh: New file.
8981 * tests/unicase/test-locale-language.c: New file.
8983 New module 'unicase/locale-language'.
8984 * lib/unicase/locale-language.c: New file.
8985 * lib/unicase/locale-languages.gperf: New file.
8986 * modules/unicase/locale-language: New file.
8988 Generate more tables for case conversion and case folding.
8989 * lib/gen-uni-tables.c (SCC_*): New enum items.
8990 (struct special_casing_rule): New type.
8991 (casing_rules, num_casing_rules, allocated_casing_rules): New
8993 (add_casing_rule, fill_casing_rules): New functions.
8994 (struct casefold_rule): New type.
8995 (casefolding_rules, num_casefolding_rules,
8996 allocated_casefolding_rules): New variables.
8997 (fill_casefolding_rules): New function.
8998 (unicode_casefold): New variable.
8999 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
9000 sort_casing_rules, output_casing_rules): New functions.
9001 (main): Accept to more arguments: SpecialCasing.txt and
9002 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
9003 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
9004 Output mapping for casefolding.
9006 * lib/unicase.h: Include stdbool.h, uninorm.h.
9007 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
9008 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
9009 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
9011 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
9013 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
9014 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
9016 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
9017 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
9018 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
9019 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
9021 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
9023 2009-03-08 Bruno Haible <bruno@clisp.org>
9025 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
9026 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
9027 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
9028 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
9030 2009-03-07 Bruno Haible <bruno@clisp.org>
9032 Adjust u*_normcmp, u*_normcoll API.
9033 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
9034 u16_normcoll, u32_normcoll): Change failure conventions.
9035 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
9036 errno and return -1.
9037 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
9039 2009-03-07 Bruno Haible <bruno@clisp.org>
9041 Tests for module 'uninorm/u32-normcoll'.
9042 * modules/uninorm/u32-normcoll-tests: New file.
9043 * tests/uninorm/test-u32-normcoll.c: New file.
9045 Tests for module 'uninorm/u16-normcoll'.
9046 * modules/uninorm/u16-normcoll-tests: New file.
9047 * tests/uninorm/test-u16-normcoll.c: New file.
9049 Tests for module 'uninorm/u8-normcoll'.
9050 * modules/uninorm/u8-normcoll-tests: New file.
9051 * tests/uninorm/test-u8-normcoll.c: New file.
9053 2009-03-07 Bruno Haible <bruno@clisp.org>
9055 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
9056 tests/uninorm/test-u32-normcmp.c.
9057 * tests/uninorm/test-u32-normcmp.c: Include it.
9058 (test_nonascii): New function, extracted from main. Add some more
9060 (main): Invoke test_ascii and test_nonascii.
9061 * modules/uninorm/u32-normcmp-tests (Files): Add
9062 tests/uninorm/test-u32-normcmp.h.
9063 (Depends-on): Remove uninorm/u32-normcmp.
9065 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
9066 tests/uninorm/test-u16-normcmp.c.
9067 * tests/uninorm/test-u16-normcmp.c: Include it.
9068 (test_nonascii): New function, extracted from main. Add some more
9070 (main): Invoke test_ascii and test_nonascii.
9071 * modules/uninorm/u16-normcmp-tests (Files): Add
9072 tests/uninorm/test-u16-normcmp.h.
9073 (Depends-on): Remove uninorm/u16-normcmp.
9075 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
9076 tests/uninorm/test-u8-normcmp.c.
9077 * tests/uninorm/test-u8-normcmp.c: Include it.
9078 (test_nonascii): New function, extracted from main. Add some more
9080 (main): Invoke test_ascii and test_nonascii.
9081 * modules/uninorm/u8-normcmp-tests (Files): Add
9082 tests/uninorm/test-u8-normcmp.h.
9083 (Depends-on): Remove uninorm/u8-normcmp.
9085 2009-03-07 Bruno Haible <bruno@clisp.org>
9087 New module 'uninorm/u32-normcoll'.
9088 * lib/uninorm/u32-normcoll.c: New file.
9089 * modules/uninorm/u32-normcoll: New file.
9091 New module 'uninorm/u16-normcoll'.
9092 * lib/uninorm/u16-normcoll.c: New file.
9093 * modules/uninorm/u16-normcoll: New file.
9095 New module 'uninorm/u8-normcoll'.
9096 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
9098 * lib/uninorm/u8-normcoll.c: New file.
9099 * lib/uninorm/u-normcoll.h: New file.
9100 * modules/uninorm/u8-normcoll: New file.
9102 New module 'uninorm/u32-normxfrm'.
9103 * lib/uninorm/u32-normxfrm.c: New file.
9104 * modules/uninorm/u32-normxfrm: New file.
9106 New module 'uninorm/u16-normxfrm'.
9107 * lib/uninorm/u16-normxfrm.c: New file.
9108 * modules/uninorm/u16-normxfrm: New file.
9110 New module 'uninorm/u8-normxfrm'.
9111 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
9113 * lib/uninorm/u8-normxfrm.c: New file.
9114 * lib/uninorm/u-normxfrm.h: New file.
9115 * modules/uninorm/u8-normxfrm: New file.
9117 2009-03-07 Bruno Haible <bruno@clisp.org>
9119 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
9120 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
9121 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
9123 2009-03-07 Bruno Haible <bruno@clisp.org>
9125 New module 'memxfrm'.
9126 * lib/memxfrm.h: New file.
9127 * lib/memxfrm.c: New file.
9128 * modules/memxfrm: New file.
9130 2009-03-07 Bruno Haible <bruno@clisp.org>
9132 New module 'memcmp2'.
9133 * lib/memcmp2.h: New file.
9134 * lib/memcmp2.c: New file.
9135 * modules/memcmp2: New file.
9137 2009-03-07 Bruno Haible <bruno@clisp.org>
9139 Tests for module 'uninorm/decomposing-form'.
9140 * modules/uninorm/decomposing-form-tests: New file.
9141 * tests/uninorm/test-decomposing-form.c: New file.
9143 New module 'uninorm/decomposing-form'.
9144 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
9145 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
9146 Add 'decomposing_variant' field.
9147 * lib/uninorm/decomposing-form.c: New file.
9148 * lib/uninorm/nfc.c (uninorm_nfc): Update.
9149 * lib/uninorm/nfd.c (uninorm_nfd): Update.
9150 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
9151 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
9152 * modules/uninorm/decomposing-form: New file.
9153 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
9154 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
9156 2009-03-07 Bruno Haible <bruno@clisp.org>
9158 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
9161 2009-03-06 Bruno Haible <bruno@clisp.org>
9163 Tests for module 'uninorm/u32-normcmp'.
9164 * tests/uninorm/test-u32-normcmp.c: New file.
9165 * modules/uninorm/u32-normcmp-tests: New file.
9167 Tests for module 'uninorm/u16-normcmp'.
9168 * tests/uninorm/test-u16-normcmp.c: New file.
9169 * modules/uninorm/u16-normcmp-tests: New file.
9171 Tests for module 'uninorm/u8-normcmp'.
9172 * tests/uninorm/test-u8-normcmp.c: New file.
9173 * modules/uninorm/u8-normcmp-tests: New file.
9175 New module 'uninorm/u32-normcmp'.
9176 * lib/uninorm/u32-normcmp.c: New file.
9177 * modules/uninorm/u32-normcmp: New file.
9179 New module 'uninorm/u16-normcmp'.
9180 * lib/uninorm/u16-normcmp.c: New file.
9181 * modules/uninorm/u16-normcmp: New file.
9183 New module 'uninorm/u8-normcmp'.
9184 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
9186 * lib/uninorm/u8-normcmp.c: New file.
9187 * lib/uninorm/u-normcmp.h: New file.
9188 * modules/uninorm/u8-normcmp: New file.
9190 2009-03-06 Bruno Haible <bruno@clisp.org>
9192 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
9193 Reported by Eric Blake.
9195 2009-03-06 Eric Blake <ebb9@byu.net>
9196 Bruno Haible <bruno@clisp.org>
9198 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
9199 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
9201 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
9202 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
9204 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
9206 2009-03-06 Eric Blake <ebb9@byu.net>
9208 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
9209 to avoid compiler warnings.
9210 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
9212 2009-03-05 Bruno Haible <bruno@clisp.org>
9214 * tests/test-ftell.c (main): Disable test beyond end of file on
9216 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
9218 2009-03-05 Kamil Dudka <kdudka@redhat.com>
9220 * lib/filevercmp.c: Move hidden files up in ordering.
9221 * tests/test-filevercmp.c: Add tests for hidden files.
9223 2009-03-04 Bruno Haible <bruno@clisp.org>
9225 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
9226 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
9228 Reported by Simon Josefsson.
9230 2009-03-03 Bruno Haible <bruno@clisp.org>
9232 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
9233 Reported by Simon Josefsson.
9235 * doc/ld-version-script.texi: Update node reference.
9237 2009-03-03 Bruno Haible <bruno@clisp.org>
9239 * modules/visibility (License): Change to 'unlimited'.
9240 Suggested by Simon Josefsson.
9242 2009-03-03 Jim Meyering <meyering@redhat.com>
9244 unlinkdir: cannot_unlink_dir may modify process state
9245 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
9246 it's neither thread-safe nor appropriate for use in a library.
9248 2009-03-03 Eric Blake <ebb9@byu.net>
9250 test-closein: silence test under Darwin
9251 * tests/test-closein.sh: Ignore stderr from cat, since we don't
9252 care if it dies from EPIPE or EBADF.
9254 2009-03-03 Bruno Haible <bruno@clisp.org>
9256 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
9258 * doc/visibility.texi: Fix @node and @section.
9260 2009-03-03 Simon Josefsson <simon@josefsson.org>
9262 * doc/gnulib.texi: Link to sections for ld version script and
9264 * doc/visibility.texi: Add @node and @section.
9265 * modules/ld-version-script: New module.
9266 * m4/ld-version-script.m4: New file.
9267 * doc/ld-version-script.texi: New file.
9269 2009-03-02 David Lutterkort <lutter@redhat.com>
9271 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
9272 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9274 2009-03-02 Bruno Haible <bruno@clisp.org>
9276 * doc/visibility.texi: Mention libtool's -export-symbols option.
9278 2009-03-02 Jim Meyering <meyering@redhat.com>
9280 announce-gen: new option: --no-print-checksums
9281 * build-aux/announce-gen (usage): Describe it.
9282 (print_checksums): Print a newline here, not in the [*] footnote.
9285 2009-03-01 Bruno Haible <bruno@clisp.org>
9287 Use socklen_t in the native Windows replacements prototypes.
9288 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
9290 * lib/getsockopt.c (rpl_getsockopt): Likewise.
9291 * lib/setsockopt.c (rpl_setsockopt): Likewise.
9292 * modules/getsockopt (Depends-on): Add socklen.
9293 * modules/setsockopt (Depends-on): Add socklen.
9295 2009-03-01 Bruno Haible <bruno@clisp.org>
9297 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
9300 2009-03-01 Eric Blake <ebb9@byu.net>
9301 Bruno Haible <bruno@clisp.org>
9303 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
9305 * lib/wait-process.c (wait_subprocess): Omit error message about
9306 deadly signal sent to the child of termsigp != NULL.
9308 2009-03-01 Eric Blake <ebb9@byu.net>
9310 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
9312 2009-03-01 Bruno Haible <bruno@clisp.org>
9314 Avoid a gcc warning.
9315 * tests/test-sched.c (b): Make global.
9316 Reported by Eric Blake.
9318 2009-01-19 Martin Lambers <marlam@marlam.de>
9320 Provide POSIX semantics for socket timeout options on W32.
9321 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
9322 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
9323 * modules/setsockopt: Depend on sys_time module for struct timeval.
9324 * modules/getsockopt: Depend on sys_time module for struct timeval.
9326 2009-03-01 Simon Josefsson <simon@josefsson.org>
9328 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
9329 __USE_GNU, for consistency with netdb.in.h.
9330 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9332 2009-03-01 Bruno Haible <bruno@clisp.org>
9334 More support for FreeMiNT.
9335 * lib/fseeko.c (rpl_fseeko): Complete last commit.
9336 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9338 2009-03-01 Bruno Haible <bruno@clisp.org>
9340 More support for FreeMiNT.
9341 * lib/fpurge.c (fpurge): Correct last commit.
9342 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9344 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9346 Fix unportable awk script in vc-list-files.
9347 * build-aux/vc-list-files: In the replacement awk script, use
9348 substr with a second argument of 1, not zero.
9349 Report by Simon Josefsson.
9351 2009-02-28 Bruno Haible <bruno@clisp.org>
9353 More support for FreeMiNT.
9354 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
9356 * lib/fwriting.c (fwriting): Likewise.
9357 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
9359 2009-02-28 Bruno Haible <bruno@clisp.org>
9361 * tests/test-freadseek.c (main): Disable test beyond end of file on
9363 * tests/test-ftello.c (main): Likewise.
9364 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
9366 2009-02-28 Bruno Haible <bruno@clisp.org>
9368 Add tentative support for FreeMiNT.
9369 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
9370 * lib/fpurge.c (fpurge): Likewise.
9371 * lib/freadable.c (freadable): Likewise.
9372 * lib/freading.c (freading): Likewise.
9373 * lib/freadptr.c (freadptr): Likewise.
9374 * lib/freadseek.c (freadptrinc): Likewise.
9375 * lib/fseeko.c (rpl_fseeko): Likewise.
9376 * lib/fseterr.c (fseterr): Likewise.
9377 * lib/fwritable.c (fwritable): Likewise.
9378 * lib/fwriting.c (fwriting): Likewise.
9379 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
9381 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9383 2009-02-28 Bruno Haible <bruno@clisp.org>
9385 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
9387 Reported by Jim Meyering.
9389 2009-02-28 Bruno Haible <bruno@clisp.org>
9391 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
9392 Mention the results of these tests on various platforms.
9393 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
9395 * doc/posix-functions/printf.texi: Likewise.
9396 * doc/posix-functions/snprintf.texi: Likewise.
9397 * doc/posix-functions/sprintf.texi: Likewise.
9398 * doc/posix-functions/vfprintf.texi: Likewise.
9399 * doc/posix-functions/vprintf.texi: Likewise.
9400 * doc/posix-functions/vsnprintf.texi: Likewise.
9401 * doc/posix-functions/vsprintf.texi: Likewise.
9402 * doc/glibc-functions/obstack_printf.texi: Likewise.
9403 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9405 2009-02-28 Bruno Haible <bruno@clisp.org>
9407 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
9408 Reported by Loïc Minier <lool@dooz.org>.
9410 2009-02-27 Bruno Haible <bruno@clisp.org>
9412 * gnulib-tool (func_import): Make the sed expression used to create the
9413 sed script for updating the .gitignore file POSIX compliant.
9414 Reported by Eric Blake.
9416 2009-02-27 Bruno Haible <bruno@clisp.org>
9418 * gnulib-tool (sed): Don't alias as "sed --posix".
9419 Reported by Eric Blake.
9421 2009-02-27 Bruno Haible <bruno@clisp.org>
9423 Avoid test link errors.
9424 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
9425 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
9426 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
9427 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
9428 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9430 2009-02-27 Bruno Haible <bruno@clisp.org>
9432 Avoid spurious "(cached)" in configure output.
9433 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
9434 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
9435 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9436 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9437 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9438 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
9439 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9440 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
9441 Reported by Eric Blake.
9443 2009-02-27 Eric Blake <ebb9@byu.net>
9445 printf: fix regression in previous patch
9446 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
9448 2009-02-27 Bruno Haible <bruno@clisp.org>
9450 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
9452 * lib/stdint.in.h: Likewise.
9453 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
9455 2009-02-27 Eric Blake <ebb9@byu.net>
9457 doc: mention more functions added in cygwin 1.7.0
9458 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
9460 * doc/posix-functions/open_wmemstream.texi: Likewise.
9461 * doc/posix-functions/wcsnlen.texi: Likewise.
9462 * doc/posix-functions/wcsnrtombs.texi: Likewise.
9463 * doc/posix-functions/wcstod.texi: Likewise.
9464 * doc/posix-functions/wcstof.texi: Likewise.
9465 * doc/posix-functions/wcstoimax.texi: Likewise.
9466 * doc/posix-functions/wcstok.texi: Likewise.
9467 * doc/posix-functions/wcstoumax.texi: Likewise.
9469 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
9470 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
9471 * doc/posix-functions/fprintf.texi: Update.
9472 * doc/posix-functions/printf.texi: Update.
9473 * doc/posix-functions/snprintf.texi: Update.
9474 * doc/posix-functions/sprintf.texi: Update.
9475 * doc/posix-functions/vfprintf.texi: Update.
9476 * doc/posix-functions/vprintf.texi: Update.
9477 * doc/posix-functions/vsnprintf.texi: Update.
9478 * doc/posix-functions/vsprintf.texi: Update.
9479 * doc/glibc-functions/obstack_printf.texi: Update.
9480 * doc/glibc-functions/obstack_vprintf.texi: Update.
9482 2009-02-26 Eric Blake <ebb9@byu.net>
9484 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
9485 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
9486 compilation bug by using runtime conversion.
9487 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9488 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
9489 * modules/ceill-tests (Files): Use nan.h.
9490 * modules/floorl-tests (Files): Likewise.
9491 * modules/frexpl-tests (Files): Likewise.
9492 * modules/isnanl-tests (Files): Likewise.
9493 * modules/ldexpl-tests (Files): Likewise.
9494 * modules/roundl-tests (Files): Likewise.
9495 * modules/truncl-tests (Files): Likewise.
9496 * tests/test-ceill.c (main): Use a working NaN.
9497 * tests/test-floorl.c (main): Likewise.
9498 * tests/test-frexpl.c (main): Likewise.
9499 * tests/test-isnan.c (test_long_double): Likewise.
9500 * tests/test-isnanl.h (main): Likewise.
9501 * tests/test-ldexpl.h (main): Likewise.
9502 * tests/test-roundl.h (main): Likewise.
9503 * tests/test-truncl.h (main): Likewise.
9504 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
9506 2009-02-26 Eric Blake <ebb9@byu.net>
9507 Bruno Haible <bruno@clisp.org>
9509 Work around a *printf bug with %ls on Solaris.
9510 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
9511 precision is specified, sprintf stops converting the wide string
9512 argument when the number of bytes that have been produced by this
9513 conversion equals or exceeds the precision.
9514 * doc/posix-functions/fprintf.texi: Update.
9515 * doc/posix-functions/printf.texi: Update.
9516 * doc/posix-functions/snprintf.texi: Update.
9517 * doc/posix-functions/sprintf.texi: Update.
9518 * doc/posix-functions/vfprintf.texi: Update.
9519 * doc/posix-functions/vprintf.texi: Update.
9520 * doc/posix-functions/vsnprintf.texi: Update.
9521 * doc/posix-functions/vsprintf.texi: Update.
9522 * doc/glibc-functions/obstack_printf.texi: Update.
9523 * doc/glibc-functions/obstack_vprintf.texi: Update.
9525 2009-02-26 Eric Blake <ebb9@byu.net>
9527 stdlib: favor compiler check of random.h
9528 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
9529 to avoid an ObjC random.h installed by Swarm.
9531 2009-02-26 Bruno Haible <bruno@clisp.org>
9533 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
9534 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
9535 Reported by Gary V. Vaughan <gary@gnu.org>.
9537 2009-02-26 Bruno Haible <bruno@clisp.org>
9539 Fix *printf behaviour regarding the %ls directive.
9540 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
9541 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
9542 NEED_PRINTF_DIRECTIVE_LS.
9543 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
9544 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
9545 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9546 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
9547 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
9548 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
9549 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
9550 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9551 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9552 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9553 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9554 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
9555 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9556 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9557 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9558 * doc/posix-functions/fprintf.texi: Update.
9559 * doc/posix-functions/printf.texi: Update.
9560 * doc/posix-functions/snprintf.texi: Update.
9561 * doc/posix-functions/sprintf.texi: Update.
9562 * doc/posix-functions/vfprintf.texi: Update.
9563 * doc/posix-functions/vprintf.texi: Update.
9564 * doc/posix-functions/vsnprintf.texi: Update.
9565 * doc/posix-functions/vsprintf.texi: Update.
9566 * doc/glibc-functions/obstack_printf.texi: Update.
9567 * doc/glibc-functions/obstack_vprintf.texi: Update.
9568 Reported by Eric Blake.
9570 2009-02-25 Bruno Haible <bruno@clisp.org>
9572 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
9574 Reported by Gary V. Vaughan <gary@gnu.org>.
9576 2009-02-25 Bruno Haible <bruno@clisp.org>
9578 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
9579 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
9580 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
9581 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
9582 Reported by Gary V. Vaughan <gary@gnu.org>.
9584 2009-02-25 Bruno Haible <bruno@clisp.org>
9586 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
9587 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
9588 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
9589 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
9590 Reported by Gary V. Vaughan <gary@gnu.org>.
9592 2009-02-25 Eric Blake <ebb9@byu.net>
9594 tests: skip fseek/ftell tests if ungetc is broken
9595 * m4/ungetc.m4: New file.
9596 * modules/fseek-tests: Split test, so ungetc dependency is
9597 separate from rest of test.
9598 * modules/fseeko-tests: Likewise.
9599 * modules/ftell-tests: Likewise.
9600 * modules/ftello-tests: Likewise.
9601 * tests/test-fseek.c (main): Isolate ungetc dependency.
9602 * tests/test-fseeko.c (main): Likewise.
9603 * tests/test-ftell.c (main): Likewise.
9604 * tests/test-ftello.c (main): Likewise.
9605 * tests/test-fseek2.sh: New file.
9606 * tests/test-fseeko2.sh: Likewise.
9607 * tests/test-ftell2.sh: Likewise.
9608 * tests/test-ftello2.sh: Likewise.
9610 2009-02-25 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
9612 test-getaddrinfo: fix usage of skip return code 77
9613 * tests/test-gettaddrinfo.c: Return skip code 77 only
9614 for first occurance of skip (4x77 is not 77)
9616 2009-02-25 Gary V. Vaughan <gary@gnu.org>
9618 strtod: avoid C99 decl-after-statement
9619 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
9621 2009-02-24 Eric Blake <ebb9@byu.net>
9623 strtod: detect HP-UX 11.31 bug
9624 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
9625 Reported by Gary V. Vaughan.
9627 2009-02-23 Bruno Haible <bruno@clisp.org>
9629 Fix invalid read past end of memory block.
9630 * lib/vasnprintf.c (DCHAR_SET): Define.
9631 (local_wcslen): Define only when needed.
9632 (local_strnlen, local_wcsnlen): New functions.
9633 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
9634 directives that involve a conversion ourselves.
9635 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
9636 wcsnlen, mbrtowc, wcrtomb.
9637 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
9638 * tests/test-vasprintf-posix.c (test_function): Likewise.
9639 * tests/test-snprintf-posix.h (test_function): Likewise.
9640 * tests/test-sprintf-posix.h (test_function): Likewise.
9641 Reported by Ben Pfaff <blp@cs.stanford.edu>.
9643 2009-02-22 Bruno Haible <bruno@clisp.org>
9645 Implement new clarified decomposition of Hangul syllables.
9646 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
9647 of type LTV, return only a pairwise decomposition.
9648 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
9650 * tests/uninorm/test-decomposition.c (main): Updated expected result.
9651 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
9652 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
9654 2009-02-22 Bruno Haible <bruno@clisp.org>
9656 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
9657 zero-length results and shrink excess allocated memory.
9658 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
9659 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
9660 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
9661 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
9662 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
9663 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
9664 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
9665 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
9666 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
9667 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
9668 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
9669 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
9671 2009-02-21 Bruno Haible <bruno@clisp.org>
9673 * doc/gnulib.texi: Include safe-alloc.texi earlier.
9674 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
9675 spaces after a period. Put a space between a macro name and its
9676 argument list. Trivial rewordings.
9677 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
9678 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
9679 (main): Return 0 explicitly.
9681 2009-02-21 Bruno Haible <bruno@clisp.org>
9683 Tests for module 'uninorm/filter'.
9684 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
9685 * modules/uninorm/filter-tests: New file.
9687 New module 'uninorm/filter'.
9688 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
9689 uninorm_filter_flush, uninorm_filter_free): New declarations.
9690 * lib/uninorm/uninorm-filter.c: New file.
9691 * modules/uninorm/filter: New file.
9693 2009-02-21 Bruno Haible <bruno@clisp.org>
9695 Tests for module 'uninorm/nfkc'.
9696 * tests/uninorm/test-nfkc.c: New file.
9697 * tests/uninorm/test-u8-nfkc.c: New file.
9698 * tests/uninorm/test-u16-nfkc.c: New file.
9699 * tests/uninorm/test-u32-nfkc.c: New file.
9700 * tests/uninorm/test-u32-nfkc-big.sh: New file.
9701 * tests/uninorm/test-u32-nfkc-big.c: New file.
9702 * modules/uninorm/nfkc-tests: New file.
9704 New module 'uninorm/nfkc'.
9705 * lib/uninorm/nfkc.c: New file.
9706 * modules/uninorm/nfkc: New file.
9708 Tests for module 'uninorm/nfkd'.
9709 * tests/uninorm/test-nfkd.c: New file.
9710 * tests/uninorm/test-u8-nfkd.c: New file.
9711 * tests/uninorm/test-u16-nfkd.c: New file.
9712 * tests/uninorm/test-u32-nfkd.c: New file.
9713 * tests/uninorm/test-u32-nfkd-big.sh: New file.
9714 * tests/uninorm/test-u32-nfkd-big.c: New file.
9715 * modules/uninorm/nfkd-tests: New file.
9717 New module 'uninorm/nfkd'.
9718 * lib/uninorm/nfkd.c: New file.
9719 * modules/uninorm/nfkd: New file.
9721 Tests for module 'uninorm/nfc'.
9722 * tests/uninorm/test-nfc.c: New file.
9723 * tests/uninorm/test-u8-nfc.c: New file.
9724 * tests/uninorm/test-u16-nfc.c: New file.
9725 * tests/uninorm/test-u32-nfc.c: New file.
9726 * tests/uninorm/test-u32-nfc-big.sh: New file.
9727 * tests/uninorm/test-u32-nfc-big.c: New file.
9728 * modules/uninorm/nfc-tests: New file.
9730 New module 'uninorm/nfc'.
9731 * lib/uninorm/nfc.c: New file.
9732 * modules/uninorm/nfc: New file.
9734 Tests for module 'uninorm/nfd'.
9735 * tests/uninorm/test-nfd.c: New file.
9736 * tests/uninorm/test-u8-nfd.c: New file.
9737 * tests/uninorm/test-u16-nfd.c: New file.
9738 * tests/uninorm/test-u32-nfd.c: New file.
9739 * tests/uninorm/test-u32-nfd-big.sh: New file.
9740 * tests/uninorm/test-u32-nfd-big.c: New file.
9741 * tests/uninorm/test-u32-normalize-big.h: New file.
9742 * tests/uninorm/test-u32-normalize-big.c: New file.
9743 * tests/uninorm/NormalizationTest.txt: New file, created from
9744 Unicode 5.1.0 NormalizationTest.txt.
9745 * modules/uninorm/nfd-tests: New file.
9747 New module 'uninorm/nfd'.
9748 * lib/uninorm/nfd.c: New file.
9749 * modules/uninorm/nfd: New file.
9751 New module 'uninorm/u32-normalize'.
9752 * lib/uninorm/u32-normalize.c: New file.
9753 * modules/uninorm/u32-normalize: New file.
9755 New module 'uninorm/u16-normalize'.
9756 * lib/uninorm/u16-normalize.c: New file.
9757 * modules/uninorm/u16-normalize: New file.
9759 New module 'uninorm/u8-normalize'.
9760 * lib/uninorm/u8-normalize.c: New file.
9761 * lib/uninorm/normalize-internal.h: New file.
9762 * lib/uninorm/u-normalize-internal.h: New file.
9763 * modules/uninorm/u8-normalize: New file.
9765 New module 'uninorm/decompose-internal'.
9766 * lib/uninorm/decompose-internal.c: New file.
9767 * modules/uninorm/decompose-internal: New file.
9769 Tests for module 'uninorm/composition'.
9770 * tests/uninorm/test-composition.c: New file.
9771 * modules/uninorm/composition-tests: New file.
9773 New module 'uninorm/composition'.
9774 * lib/uninorm/composition.c: New file.
9775 * lib/uninorm/composition-table.gperf: New file, generated by
9777 * modules/uninorm/composition: New file.
9779 Tests for module 'uninorm/compat-decomposition'.
9780 * tests/uninorm/test-compat-decomposition.c: New file.
9781 * modules/uninorm/compat-decomposition-tests: New file.
9783 New module 'uninorm/compat-decomposition'.
9784 * lib/uninorm/decompose-internal.h: New file.
9785 * lib/uninorm/compat-decomposition.c: New file.
9786 * modules/uninorm/compat-decomposition: New file.
9788 Tests for module 'uninorm/canonical-decomposition'.
9789 * tests/uninorm/test-canonical-decomposition.c: New file.
9790 * modules/uninorm/canonical-decomposition-tests: New file.
9792 New module 'uninorm/canonical-decomposition'.
9793 * lib/uninorm/canonical-decomposition.c: New file.
9794 * modules/uninorm/canonical-decomposition: New file.
9796 Tests for module 'uninorm/decomposition'.
9797 * tests/uninorm/test-decomposition.c: New file.
9798 * modules/uninorm/decomposition-tests: New file.
9800 New module 'uninorm/decomposition'.
9801 * lib/uninorm/decomposition.c: New file.
9802 * modules/uninorm/decomposition: New file.
9804 New module 'uninorm/decomposition-table'.
9805 * lib/uninorm/decomposition-table.h: New file.
9806 * lib/uninorm/decomposition-table.c: New file.
9807 * lib/uninorm/decomposition-table1.h: New file, generated by
9809 * lib/uninorm/decomposition-table2.h: New file, generated by
9811 * modules/uninorm/decomposition-table: New file.
9813 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
9814 (UC_DECOMP_*): New enumeration items.
9815 (get_decomposition): New function.
9816 (struct decomp_table): New type.
9817 (output_decomposition, output_decomposition_tables): New functions.
9818 (unicode_composition_exclusions): New variable.
9819 (fill_composition_exclusions, debug_output_composition_tables): New
9821 (main): Accept one more argument. Invoke fill_composition_exclusions.
9822 Output decomposition and composition tables.
9824 New module 'uninorm/base'.
9825 * lib/uninorm.h: New file.
9826 * lib/unictype.h: Update comment.
9827 * modules/uninorm/base: New file.
9829 2009-02-21 David Lutterkort <lutter@redhat.com>
9831 Tests for module 'safe-alloc'.
9832 * tests/test-safe-alloc.c: New file.
9833 * modules/safe-alloc-tests: New file.
9835 New module 'safe-alloc'.
9836 * lib/safe-alloc.h: New file.
9837 * lib/safe-alloc.c: New file.
9838 * m4/safe-alloc.m4: New file.
9839 * modules/safe-alloc: New file.
9840 * doc/safe-alloc.texi: New file.
9841 * doc/gnulib.texi: Include it.
9842 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
9845 2009-02-18 Bruno Haible <bruno@clisp.org>
9847 Fix link error on non-glibc systems.
9848 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
9850 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9852 2009-02-18 Jim Meyering <meyering@redhat.com>
9854 fts: avoid used-uninitialized error due to recent change
9855 * lib/fts.c (fts_read): Guard uses of the new member,
9856 parent->fts_n_dirs_remaining, since it's not relevant for
9857 the parent of a directory specified on the command-line.
9859 2009-02-17 James Youngman <jay@gnu.org>
9860 Bruno Haible <bruno@clisp.org>
9862 * m4/include_next.m4: Reformulate comment.
9864 2009-02-16 Jim Meyering <meyering@redhat.com>
9866 fts: add #if guards so that the fts_lgpl module still builds
9867 * lib/fts.c: Guard just-added hash-table-using parts with
9868 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
9869 Reported by Simon Josefsson.
9871 2009-02-15 Bruno Haible <bruno@clisp.org>
9873 * modules/array-mergesort-tests: New file.
9874 * tests/test-array-mergesort.c: New file.
9876 New module 'array-mergesort'.
9877 * modules/array-mergesort: New file.
9878 * lib/array-mergesort.h: New file.
9880 2009-02-15 Bruno Haible <bruno@clisp.org>
9882 Fix 2009-02-07 commit.
9883 * lib/gen-uni-tables.c (output_predicate, output_category,
9884 output_combclass, output_bidi_category, output_decimal_digit,
9885 output_digit, output_numeric, output_mirror, output_scripts,
9886 output_ident_category, output_simple_mapping): Fix format directives.
9887 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
9889 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
9891 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
9892 fixes are available from IBM.
9894 2009-02-13 Jim Meyering <meyering@redhat.com>
9896 fts: arrange not to stat non-directories in more cases
9897 This makes GNU find (when it doesn't need to stat each file)
9898 *much* more efficient at traversing reiserfs file systems.
9899 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
9900 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
9901 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
9902 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
9903 (leaf_optimization_applies): New function.
9904 (LCO_hash, LCO_compare): New helper functions.
9905 (link_count_optimize_ok): New function.
9906 (fts_stat): Initialize new member (if dir).
9907 (fts_read): Decrement parent's fts_n_dirs_remaining count if
9908 we've just stat'ed a directory. Skip the stat call when possible.
9910 Note this AFS-related exchange:
9911 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
9912 and note find's pioctl call in find/fstype.c.
9913 But that is necessary only if you want to enable the
9914 optimization for AFS, and for now, I don't.
9916 fts: move a function definition "up" (no semantic change)
9917 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
9918 "up" to precede upcoming use of a related function.
9920 2009-02-11 Jim Meyering <meyering@redhat.com>
9922 fts: correct internal computation of nlinks (optimization-related)
9923 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
9924 whether the current entry is a directory, so don't test it.
9926 2009-02-10 Bruno Haible <bruno@clisp.org>
9928 Tests for module 'uniwbrk/ulc-wordbreaks'.
9929 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
9930 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
9931 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
9933 Tests for module 'uniwbrk/u32-wordbreaks'.
9934 * modules/uniwbrk/u32-wordbreaks-tests: New file.
9935 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
9937 Tests for module 'uniwbrk/u16-wordbreaks'.
9938 * modules/uniwbrk/u16-wordbreaks-tests: New file.
9939 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
9941 Tests for module 'uniwbrk/u8-wordbreaks'.
9942 * modules/uniwbrk/u8-wordbreaks-tests: New file.
9943 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
9945 2009-02-10 Bruno Haible <bruno@clisp.org>
9947 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
9949 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
9950 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
9951 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
9953 2009-02-10 Simon Josefsson <simon@josefsson.org>
9955 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
9956 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
9958 2009-02-10 Bruno Haible <bruno@clisp.org>
9960 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
9961 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
9962 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
9963 * lib/unilbrk/u8-possible-linebreaks.c: Update.
9964 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
9965 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
9967 2009-02-09 Simon Josefsson <simon@josefsson.org>
9969 * lib/sockets.h (gl_fd_to_handle): New function.
9971 * tests/test-sockets.c: Call gl_fd_to_handle.
9973 2009-02-09 Bruno Haible <bruno@clisp.org>
9975 * doc/havelib.texi: Document the conventions on bi-arch systems.
9977 2009-02-08 Bruno Haible <bruno@clisp.org>
9979 Document the AC_LIB_LINKFLAGS macro.
9980 * doc/havelib.texi: New file, mostly written on 2005-05-24.
9981 * doc/gnulib.texi: Include it.
9983 2009-02-08 Bruno Haible <bruno@clisp.org>
9985 Fix wrong order of sections, compared to TOC.
9986 * doc/gnulib.texi: Include relocatable-maint.texi after the
9987 "Regular expressions" node, not before.
9989 2009-02-08 Bruno Haible <bruno@clisp.org>
9991 Tests for module 'unicase/totitle'.
9992 * modules/unicase/totitle-tests: New file.
9994 Tests for module 'unicase/tolower'.
9995 * modules/unicase/tolower-tests: New file.
9997 Tests for module 'unicase/toupper'.
9998 * modules/unicase/toupper-tests: New file.
9999 * tests/unicase/test-mapping-part1.h: New file.
10000 * tests/unicase/test-mapping-part2.h: New file.
10002 New module 'unicase/totitle'.
10003 * modules/unicase/totitle: New file.
10004 * lib/unicase/totitle.c: New file.
10006 New module 'unicase/tolower'.
10007 * modules/unicase/tolower: New file.
10008 * lib/unicase/tolower.c: New file.
10010 New module 'unicase/toupper'.
10011 * modules/unicase/toupper: New file.
10012 * lib/unicase/toupper.c: New file.
10013 * lib/unicase/simple-mapping.h: New file.
10015 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
10016 (mapping_table): New structure.
10017 (output_simple_mapping): New function.
10018 (main): Invoke output_simple_mapping_test and output_simple_mapping.
10019 * modules/gen-uni-tables (Description): Update.
10020 * lib/unicase/toupper.h: New file, automatically generated by
10022 * lib/unicase/tolower.h: New file, automatically generated by
10024 * lib/unicase/totitle.h: New file, automatically generated by
10026 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
10028 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
10030 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
10033 New module 'unicase/base'.
10034 * modules/unicase/base: New file.
10035 * lib/unicase.h: New file.
10037 2009-02-08 Bruno Haible <bruno@clisp.org>
10039 New module 'uniwbrk/ulc-wordbreaks'.
10040 * modules/uniwbrk/ulc-wordbreaks: New file.
10041 * lib/uniwbrk/ulc-wordbreaks.c: New file.
10043 New module 'uniwbrk/u32-wordbreaks'.
10044 * modules/uniwbrk/u32-wordbreaks: New file.
10045 * lib/uniwbrk/u32-wordbreaks.c: New file.
10047 New module 'uniwbrk/u16-wordbreaks'.
10048 * modules/uniwbrk/u16-wordbreaks: New file.
10049 * lib/uniwbrk/u16-wordbreaks.c: New file.
10051 New module 'uniwbrk/u8-wordbreaks'.
10052 * modules/uniwbrk/u8-wordbreaks: New file.
10053 * lib/uniwbrk/u8-wordbreaks.c: New file.
10054 * lib/uniwbrk/u-wordbreaks.h: New file.
10056 New module 'uniwbrk/table'.
10057 * modules/uniwbrk/table: New file.
10058 * lib/uniwbrk/wbrktable.h: New file.
10059 * lib/uniwbrk/wbrktable.c: New file.
10061 New module 'uniwbrk/wordbreak-property'.
10062 * modules/uniwbrk/wordbreak-property: New file.
10063 * lib/uniwbrk/wordbreak-property.c: New file.
10065 * lib/gen-uni-tables.c (WBP_*): New enum items.
10066 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
10067 (unicode_org_wbp): New variable.
10068 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
10070 (wbp_table): New structure.
10071 (output_wbp, output_wbrk_tables): New functions.
10072 (main): Accept additional argument. Invoke fill_org_wbp,
10073 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
10074 output_wbrk_tables.
10075 * modules/gen-uni-tables (Description): Update.
10076 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
10079 New module 'uniwbrk/base'.
10080 * modules/uniwbrk/base: New file.
10081 * lib/uniwbrk.h: New file.
10083 2009-02-08 Bruno Haible <bruno@clisp.org>
10085 Update to Unicode 5.1.0.
10086 * lib/gen-uni-tables.c (is_property_alphabetic): Include
10088 (is_property_default_ignorable_code_point): Don't include characters
10089 of category Cc or Cs and not-a-characters.
10090 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
10091 U+0D79, U+109E, U+109F, U+A60C.
10092 * lib/unictype/bidi_of.h: Regenerated.
10093 * lib/unictype/blocks.h: Regenerated.
10094 * lib/unictype/categ_C.h: Regenerated.
10095 * lib/unictype/categ_Cf.h: Regenerated.
10096 * lib/unictype/categ_Cn.h: Regenerated.
10097 * lib/unictype/categ_L.h: Regenerated.
10098 * lib/unictype/categ_Ll.h: Regenerated.
10099 * lib/unictype/categ_Lm.h: Regenerated.
10100 * lib/unictype/categ_Lo.h: Regenerated.
10101 * lib/unictype/categ_Lu.h: Regenerated.
10102 * lib/unictype/categ_M.h: Regenerated.
10103 * lib/unictype/categ_Mc.h: Regenerated.
10104 * lib/unictype/categ_Me.h: Regenerated.
10105 * lib/unictype/categ_Mn.h: Regenerated.
10106 * lib/unictype/categ_N.h: Regenerated.
10107 * lib/unictype/categ_Nd.h: Regenerated.
10108 * lib/unictype/categ_Nl.h: Regenerated.
10109 * lib/unictype/categ_No.h: Regenerated.
10110 * lib/unictype/categ_P.h: Regenerated.
10111 * lib/unictype/categ_Pd.h: Regenerated.
10112 * lib/unictype/categ_Pe.h: Regenerated.
10113 * lib/unictype/categ_Pf.h: Regenerated.
10114 * lib/unictype/categ_Pi.h: Regenerated.
10115 * lib/unictype/categ_Po.h: Regenerated.
10116 * lib/unictype/categ_Ps.h: Regenerated.
10117 * lib/unictype/categ_S.h: Regenerated.
10118 * lib/unictype/categ_Sk.h: Regenerated.
10119 * lib/unictype/categ_Sm.h: Regenerated.
10120 * lib/unictype/categ_So.h: Regenerated.
10121 * lib/unictype/categ_of.h: Regenerated.
10122 * lib/unictype/combining.h: Regenerated.
10123 * lib/unictype/ctype_alnum.h: Regenerated.
10124 * lib/unictype/ctype_alpha.h: Regenerated.
10125 * lib/unictype/ctype_graph.h: Regenerated.
10126 * lib/unictype/ctype_lower.h: Regenerated.
10127 * lib/unictype/ctype_print.h: Regenerated.
10128 * lib/unictype/ctype_punct.h: Regenerated.
10129 * lib/unictype/ctype_upper.h: Regenerated.
10130 * lib/unictype/decdigit.h: Regenerated.
10131 * lib/unictype/digit.h: Regenerated.
10132 * lib/unictype/mirror.h: Regenerated.
10133 * lib/unictype/numeric.h: Regenerated.
10134 * lib/unictype/pr_alphabetic.h: Regenerated.
10135 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
10136 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
10137 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
10138 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
10139 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
10140 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
10141 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
10142 * lib/unictype/pr_combining.h: Regenerated.
10143 * lib/unictype/pr_dash.h: Regenerated.
10144 * lib/unictype/pr_decimal_digit.h: Regenerated.
10145 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
10146 * lib/unictype/pr_deprecated.h: Regenerated.
10147 * lib/unictype/pr_diacritic.h: Regenerated.
10148 * lib/unictype/pr_extender.h: Regenerated.
10149 * lib/unictype/pr_format_control.h: Regenerated.
10150 * lib/unictype/pr_grapheme_base.h: Regenerated.
10151 * lib/unictype/pr_grapheme_extend.h: Regenerated.
10152 * lib/unictype/pr_grapheme_link.h: Regenerated.
10153 * lib/unictype/pr_id_continue.h: Regenerated.
10154 * lib/unictype/pr_id_start.h: Regenerated.
10155 * lib/unictype/pr_ideographic.h: Regenerated.
10156 * lib/unictype/pr_ignorable_control.h: Regenerated.
10157 * lib/unictype/pr_lowercase.h: Regenerated.
10158 * lib/unictype/pr_math.h: Regenerated.
10159 * lib/unictype/pr_numeric.h: Regenerated.
10160 * lib/unictype/pr_other_alphabetic.h: Regenerated.
10161 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
10162 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
10163 * lib/unictype/pr_other_id_continue.h: Regenerated.
10164 * lib/unictype/pr_other_lowercase.h: Regenerated.
10165 * lib/unictype/pr_other_math.h: Regenerated.
10166 * lib/unictype/pr_punctuation.h: Regenerated.
10167 * lib/unictype/pr_sentence_terminal.h: Regenerated.
10168 * lib/unictype/pr_soft_dotted.h: Regenerated.
10169 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
10170 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
10171 * lib/unictype/pr_unified_ideograph.h: Regenerated.
10172 * lib/unictype/pr_uppercase.h: Regenerated.
10173 * lib/unictype/pr_xid_continue.h: Regenerated.
10174 * lib/unictype/pr_xid_start.h: Regenerated.
10175 * lib/unictype/pr_zero_width.h: Regenerated.
10176 * lib/unictype/scripts.h: Regenerated.
10177 * lib/unictype/scripts_byname.gperf: Regenerated.
10178 * lib/unictype/sy_java_ident.h: Regenerated.
10179 * lib/unilbrk/lbrkprop1.h: Regenerated.
10180 * lib/unilbrk/lbrkprop2.h: Regenerated.
10181 * tests/unictype/test-categ_C.c: Regenerated.
10182 * tests/unictype/test-categ_Cf.c: Regenerated.
10183 * tests/unictype/test-categ_Cn.c: Regenerated.
10184 * tests/unictype/test-categ_L.c: Regenerated.
10185 * tests/unictype/test-categ_Ll.c: Regenerated.
10186 * tests/unictype/test-categ_Lm.c: Regenerated.
10187 * tests/unictype/test-categ_Lo.c: Regenerated.
10188 * tests/unictype/test-categ_Lu.c: Regenerated.
10189 * tests/unictype/test-categ_M.c: Regenerated.
10190 * tests/unictype/test-categ_Mc.c: Regenerated.
10191 * tests/unictype/test-categ_Me.c: Regenerated.
10192 * tests/unictype/test-categ_Mn.c: Regenerated.
10193 * tests/unictype/test-categ_N.c: Regenerated.
10194 * tests/unictype/test-categ_Nd.c: Regenerated.
10195 * tests/unictype/test-categ_Nl.c: Regenerated.
10196 * tests/unictype/test-categ_No.c: Regenerated.
10197 * tests/unictype/test-categ_P.c: Regenerated.
10198 * tests/unictype/test-categ_Pd.c: Regenerated.
10199 * tests/unictype/test-categ_Pe.c: Regenerated.
10200 * tests/unictype/test-categ_Pf.c: Regenerated.
10201 * tests/unictype/test-categ_Pi.c: Regenerated.
10202 * tests/unictype/test-categ_Po.c: Regenerated.
10203 * tests/unictype/test-categ_Ps.c: Regenerated.
10204 * tests/unictype/test-categ_S.c: Regenerated.
10205 * tests/unictype/test-categ_Sk.c: Regenerated.
10206 * tests/unictype/test-categ_Sm.c: Regenerated.
10207 * tests/unictype/test-categ_So.c: Regenerated.
10208 * tests/unictype/test-ctype_alnum.c: Regenerated.
10209 * tests/unictype/test-ctype_alpha.c: Regenerated.
10210 * tests/unictype/test-ctype_graph.c: Regenerated.
10211 * tests/unictype/test-ctype_lower.c: Regenerated.
10212 * tests/unictype/test-ctype_print.c: Regenerated.
10213 * tests/unictype/test-ctype_punct.c: Regenerated.
10214 * tests/unictype/test-ctype_upper.c: Regenerated.
10215 * tests/unictype/test-decdigit.h: Regenerated.
10216 * tests/unictype/test-digit.h: Regenerated.
10217 * tests/unictype/test-numeric.h: Regenerated.
10218 * tests/unictype/test-pr_alphabetic.c: Regenerated.
10219 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
10220 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
10221 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
10222 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
10223 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
10224 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
10225 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
10226 * tests/unictype/test-pr_combining.c: Regenerated.
10227 * tests/unictype/test-pr_dash.c: Regenerated.
10228 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
10229 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
10230 * tests/unictype/test-pr_deprecated.c: Regenerated.
10231 * tests/unictype/test-pr_diacritic.c: Regenerated.
10232 * tests/unictype/test-pr_extender.c: Regenerated.
10233 * tests/unictype/test-pr_format_control.c: Regenerated.
10234 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
10235 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
10236 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
10237 * tests/unictype/test-pr_id_continue.c: Regenerated.
10238 * tests/unictype/test-pr_id_start.c: Regenerated.
10239 * tests/unictype/test-pr_ideographic.c: Regenerated.
10240 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
10241 * tests/unictype/test-pr_lowercase.c: Regenerated.
10242 * tests/unictype/test-pr_math.c: Regenerated.
10243 * tests/unictype/test-pr_numeric.c: Regenerated.
10244 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
10245 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
10247 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
10248 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
10249 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
10250 * tests/unictype/test-pr_other_math.c: Regenerated.
10251 * tests/unictype/test-pr_punctuation.c: Regenerated.
10252 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
10253 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
10254 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
10255 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
10256 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
10257 * tests/unictype/test-pr_uppercase.c: Regenerated.
10258 * tests/unictype/test-pr_xid_continue.c: Regenerated.
10259 * tests/unictype/test-pr_xid_start.c: Regenerated.
10260 * tests/unictype/test-pr_zero_width.c: Regenerated.
10262 Update to Unicode 5.1.0.
10263 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
10264 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
10265 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
10266 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
10267 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
10268 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
10269 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
10270 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
10271 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
10272 (nonspacing_table_ind): Update.
10273 * tests/uniwidth/test-uc_width2.sh: Update expected result.
10275 Update to Unicode 5.1.0.
10276 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
10278 * lib/uniname/uniname.c (unicode_character_name,
10279 unicode_name_character): Add the range 0x1Fxxx to the code transform.
10280 * lib/uniname/uninames.h: Regenerated.
10281 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
10283 2009-02-07 Bruno Haible <bruno@clisp.org>
10285 Merge gen-ctype and gen-lbrk into a single program.
10286 * lib/gen-uni-tables.c: New file, incorporating
10287 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
10288 Add directory prefixes to the names of the generated files.
10289 * lib/unictype/gen-ctype.c: Remove file.
10290 * lib/unilbrk/gen-lbrk.c: Remove file.
10291 * modules/gen-uni-tables: New file.
10292 * modules/unictype/gen-ctype: Remove file.
10293 * modules/unilbrk/gen-lbrk: Remove file.
10295 2009-02-07 Bruno Haible <bruno@clisp.org>
10297 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
10299 New module 'unistr/u32-strcoll'.
10300 * modules/unistr/u32-strcoll: New file.
10301 * lib/unistr/u32-strcoll.c: New file.
10303 New module 'unistr/u16-strcoll'.
10304 * modules/unistr/u16-strcoll: New file.
10305 * lib/unistr/u16-strcoll.c: New file.
10307 New module 'unistr/u8-strcoll'.
10308 * modules/unistr/u8-strcoll: New file.
10309 * lib/unistr/u8-strcoll.c: New file.
10310 * lib/unistr/u-strcoll.h: New file.
10312 2009-02-07 Bruno Haible <bruno@clisp.org>
10314 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
10315 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
10316 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
10317 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
10318 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
10319 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
10321 2009-02-07 Bruno Haible <bruno@clisp.org>
10324 * lib/unictype/gen-ctype.c (output_predicate, output_category,
10325 output_combclass, output_bidi_category, output_decimal_digit,
10326 output_digit, output_numeric, output_mirror, output_scripts,
10327 output_ident_category): Use proper width specifier in format strings.
10329 2009-02-07 Bruno Haible <bruno@clisp.org>
10331 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
10334 2009-02-07 Jim Meyering <meyering@redhat.com>
10336 regex: avoid compilation failure with upcoming gcc-4.4
10337 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
10338 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
10339 "... error: integer overflow in preprocessor expression".
10341 2009-02-05 Ben Pfaff <blp@gnu.org>
10343 Fix link errors on Windows when close module is used.
10344 * modules/close: Add $(LIB_CLOSE) to Link section.
10345 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
10346 $(LIB_CLOSE) on Windows.
10348 2009-02-05 Jim Meyering <meyering@redhat.com>
10350 still avoid unused-parameter warnings, but do it cleanly
10351 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
10352 (get_fs_usage): Cast to void instead.
10353 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
10354 (dev_from_mount_options, read_file_system_list): Cast to void.
10355 Prompted by Bruno Haible.
10357 2009-02-04 Jim Meyering <meyering@redhat.com>
10359 fsusage.c: correct copyright year
10360 * lib/fsusage.c: Reflect year in which the change is pushed into
10362 avoid misc. warnings
10363 * lib/fsusage.c (UNUSED_PARAM): Define.
10364 (get_fs_usage): Mark parameter "disk" as unused.
10365 * lib/getugroups.c (getgrent): Use "void" in prototype.
10366 * lib/mountlist.c: Mark unused parameters.
10367 (read_file_system_list): Declare a local with "const".
10368 * lib/nanosleep.c (getnow): Declare static.
10369 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
10371 dirfd: set errno upon failure
10372 * lib/dirfd.c: Include <errno.h>.
10373 Set errno to ENOTSUP when returning -1.
10374 * modules/dirfd (Depends-on): Add errno.
10375 Suggested by John Kodis <kodis@comcast.net>.
10377 2009-02-01 Bruno Haible <bruno@clisp.org>
10379 Don't assume sizeof (long) >= sizeof (void *).
10380 * lib/memcmp.c: Include stdint.h.
10381 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
10382 srcp2 to 'const byte *'.
10383 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
10384 types to uintptr_t.
10385 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
10386 * modules/memcmp (Depends-on): Add stdint.
10387 Reported by Ozkan Sezer <sezeroz@gmail.com>.
10389 2009-01-30 Eric Blake <ebb9@byu.net>
10391 fix more require-before-expand issues
10392 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
10393 expand, AC_PROG_AWK.
10394 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
10396 2009-01-28 Eric Blake <ebb9@byu.net>
10398 version-etc: use consistent URL formatting
10399 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
10400 Improve formatting. Use fputs for string without %.
10402 2009-01-28 Jim Meyering <meyering@redhat.com>
10404 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
10405 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
10406 "underquoted definition of NAME" from autoconf-2.59.
10408 2009-01-28 Bruno Haible <bruno@clisp.org>
10410 * doc/gnulib.texi: Add "Obsolete modules" to index.
10412 2009-01-28 Jim Meyering <meyering@redhat.com>
10414 useless-if-before-free: recognize more variants
10415 * build-aux/useless-if-before-free: Also recognize e.g.,
10416 if (NULL != p) free (p);
10418 2009-01-27 Mark McLoughlin <markmc@redhat.com>
10420 test-getaddrinfo: skip (don't fail) this test when there's no network
10421 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
10422 on the presumption that it means you lack network access.
10424 2009-01-26 Jim Meyering <meyering@redhat.com>
10426 fflush: avoid warnings on modern systems
10427 * lib/fflush.c (rpl_fflush): Move declarations of locals,
10428 pos and result, into scopes where they're used.
10430 2009-01-26 Eric Blake <ebb9@byu.net>
10432 Silence warning reintroduced by recent extensions patch.
10433 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
10434 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
10437 Backport improved autoconf semantics of AC_DEFUN_ONCE.
10438 * m4/00gnulib.m4: New file.
10439 * gnulib-tool (func_get_filelist): Always use it.
10440 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
10441 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
10443 2009-01-25 Bruno Haible <bruno@clisp.org>
10445 Make test-quotearg work on MacOS X and AIX.
10446 * tests/test-quotearg.sh: New file.
10447 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
10448 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
10449 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
10450 include <libintl.h>.
10451 (fake_locale): Remove variable.
10452 (gettext, dgettext, dcgettext): Remove functions.
10453 (main): Instead of setting a fake locale, set a real locale. Call
10454 textdomain and bindtextdomain.
10455 * modules/quotearg-tests (Files): Add the new files.
10456 (Depends-on): Add gettext, setenv, unsetenv.
10457 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
10458 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
10459 Augment TESTS_ENVIRONMENT.
10461 2009-01-25 Bruno Haible <bruno@clisp.org>
10463 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
10464 fr_FR.ISO8859-1 locale on MacOS X.
10465 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
10466 ja_JP.eucJP locale on MacOS X.
10467 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
10468 zh_CN.GB18030 locale on MacOS X.
10470 2009-01-25 Bruno Haible <bruno@clisp.org>
10472 Avoid link errors on MacOS X 10.3.
10473 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
10474 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
10476 2009-01-25 Bruno Haible <bruno@clisp.org>
10478 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
10479 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
10480 * modules/pipe (Files): Remove m4/posix_spawn.m4.
10481 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
10482 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
10483 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
10484 posix_spawnattr_init, posix_spawnattr_setsigmask,
10485 posix_spawnattr_setflags, posix_spawnattr_destroy.
10487 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
10488 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
10489 * modules/execute (Files): Remove m4/posix_spawn.m4.
10490 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
10491 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
10492 posix_spawnattr_init, posix_spawnattr_setsigmask,
10493 posix_spawnattr_setflags, posix_spawnattr_destroy.
10495 2009-01-25 Bruno Haible <bruno@clisp.org>
10497 * lib/glthread/threadlib.c: Include <stdlib.h>.
10499 2009-01-25 Bruno Haible <bruno@clisp.org>
10501 * lib/glthread/threadlib.c (dummy): New declaration.
10503 2009-01-25 Bruno Haible <bruno@clisp.org>
10505 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
10506 multibyte characters also for the GB18030 encoding. Don't crash when
10507 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
10509 2009-01-25 Bruno Haible <bruno@clisp.org>
10511 Avoid redefining 'struct random_data' on OSF/1 5.1.
10512 * lib/stdlib.in.h: Include <random.h> if it exists.
10513 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
10514 HAVE_RANDOM_H. Include <random.h> when testing whether
10515 'struct random_data' exists.
10516 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
10518 2009-01-25 Bruno Haible <bruno@clisp.org>
10520 Don't install charset.alias on MacOS X >= 10.3.
10521 * lib/localcharset.c (DARWIN7): New macro.
10522 (get_charset_aliases): Hardcode the result for Darwin7.
10523 * modules/localcharset (install-exec-local): Don't install
10524 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
10526 2009-01-25 Bruno Haible <bruno@clisp.org>
10528 Don't install charset.alias on mingw and Cygwin.
10529 * modules/localcharset (install-exec-local): Don't install
10530 charset.alias on mingw and Cygwin, if the file does not yet exist.
10531 The result for these platforms is hardcoded in localcharset.c.
10533 2009-01-25 Bruno Haible <bruno@clisp.org>
10535 Make it possible again to use AC_GNU_SOURCE together with gnulib.
10536 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
10537 before requiring AC_USE_SYSTEM_EXTENSIONS.
10539 2009-01-25 Jim Meyering <meyering@redhat.com>
10541 c-strtod: avoid warnings
10542 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
10543 "assignment discards qualifiers from pointer target type" warnings.
10545 2009-01-24 Bruno Haible <bruno@clisp.org>
10547 Add support for non-UTF-8 locales on MacOS X.
10548 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
10549 canonical encodings. For Darwin 7 and newer, don't map traditional
10550 encodings to UTF-8.
10551 Reported by Vincent Lefevre <vincent@vinc17.org>
10552 at <http://savannah.gnu.org/bugs/?25235>.
10554 2009-01-24 Bruno Haible <bruno@clisp.org>
10556 * doc/gnulib.texi (Obsolete modules): New section.
10557 Reported by Mike Frysinger <vapier@gentoo.org>.
10559 2009-01-24 Bruno Haible <bruno@clisp.org>
10561 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
10564 2009-01-24 Bruno Haible <bruno@clisp.org>
10566 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
10567 Reported by Eric Blake.
10569 2009-01-24 Bruno Haible <bruno@clisp.org>
10571 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
10572 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
10573 Reported by Gary V. Vaughan <gary@gnu.org>.
10575 2009-01-24 Bruno Haible <bruno@clisp.org>
10577 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
10579 2009-01-23 Bruno Haible <bruno@clisp.org>
10581 Make c-strtod, c-strtold usable in libraries.
10582 * lib/c-strtod.c: Include string.h instead of xalloc.h.
10583 (C_STRTOD): Call strdup instead of xstrdup.
10584 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
10585 * modules/c-strtold (Depends-on): Likewise.
10586 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
10587 * NEWS: Mention the change.
10588 Reported by Michael Gold <mgold@ncf.ca>.
10590 2009-01-23 Jim Meyering <meyering@redhat.com>
10592 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
10593 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
10594 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
10596 2009-01-23 Simon Josefsson <simon@josefsson.org>
10598 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
10600 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
10601 * modules/version-etc (Description): Update.
10603 2009-01-22 Bruno Haible <bruno@clisp.org>
10605 Cache the C locale object.
10606 * lib/c-strtod.c (c_locale_cache): New variable.
10607 (c_locale): New function.
10608 (C_STRTOD): Use it, and don't call freelocale.
10609 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
10610 Suggested by Paolo Bonzini.
10612 2009-01-21 Bruno Haible <bruno@clisp.org>
10614 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
10615 conditions other than overflow.
10617 2009-01-21 Bruno Haible <bruno@clisp.org>
10619 * lib/c-strtod.c: Include errno.h.
10620 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
10621 value from STRTOD_L and STRTOD.
10623 2009-01-21 Bruno Haible <bruno@clisp.org>
10624 and Jim Meyering <meyering@redhat.com>
10626 nanosleep: skip configure test (fail it) for apple universal builds
10627 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
10628 universal builds, assume that nanosleep does not work.
10629 * modules/nanosleep (Depends-on): Add multiarch.
10631 mktime: skip configure test (fail it) for apple universal builds
10632 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
10633 universal builds, assume that mktime does not work.
10634 * modules/mktime (Depends-on): Add multiarch.
10636 2009-01-21 Eric Blake <ebb9@byu.net>
10638 multiarch: avoid expand-before-require warning
10639 * modules/multiarch (configure.ac): Require, rather than expand,
10641 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
10642 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
10643 enforce that all clients require it. Partial reversion of
10646 error: avoid expand-before-require warning
10647 * modules/errno (configure.ac): Require, rather than expand,
10649 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
10650 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
10651 enforce that all clients require it.
10653 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
10654 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
10655 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
10656 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
10658 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
10661 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
10663 regex: do not depend on obsolete modules.
10664 * modules/regex: Remove memcmp and memmove.
10666 2009-01-20 Bruno Haible <bruno@clisp.org>
10668 Make the 'link' module link on Windows NT 4.
10669 * lib/link.c (_WIN32_WINNT): Don't define.
10670 (CreateHardLinkFuncType): New type.
10671 (CreateHardLinkFunc, initialized): New variables.
10672 (initialize): New function.
10673 (link): Invoke CreateHardLink indirectly through the function pointer.
10675 2009-01-20 Bruno Haible <bruno@clisp.org>
10677 Fix compilation failure on mingw.
10678 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
10680 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
10682 * doc/c-strtod.texi: Mention a couple of restrictions.
10684 2009-01-20 Jim Meyering <meyering@redhat.com>
10686 gettimeofday: move more declarations out of functions
10687 * lib/gettimeofday.c: Move extern declarations of tzset and
10688 gmtime out of containing functions. Prompted by Bruno Haible.
10690 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
10692 regex: do not depend on obsolete modules.
10693 * modules/regex: Remove memcmp and memmove.
10695 2009-01-19 Bruno Haible <bruno@clisp.org>
10697 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
10698 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
10699 gl_BIGENDIAN, not AC_C_BIGENDIAN.
10700 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
10701 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
10703 2009-01-19 Bruno Haible <bruno@clisp.org>
10705 * tests/test-link.c: Include <errno.h>.
10706 (main): Exit with code 77 when a hard link cannot be created due to
10708 * tests/test-link.sh: Skip test when a hard link cannot be created due
10709 to the file system.
10710 Suggested by Eric Blake.
10712 2009-01-19 Martin Lambers <marlam@marlam.de>
10714 * modules/link-tests: New file.
10715 * tests/test-link.sh: New file.
10716 * tests/test-link.c: New file.
10718 2009-01-19 Eric Blake <ebb9@byu.net>
10720 doc: mention another function added in cygwin 1.7.0
10721 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
10722 Another new function in cygwin 1.7.
10724 2009-01-19 Bruno Haible <bruno@clisp.org>
10726 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
10727 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
10728 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
10729 gl_BIGENDIAN, not AC_C_BIGENDIAN.
10730 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10731 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
10732 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10733 * m4/md4.m4 (gl_MD4): Likewise.
10734 * m4/md5.m4 (gl_MD5): Likewise.
10735 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
10736 * m4/sha1.m4 (gl_SHA1): Likewise.
10737 * m4/sha256.m4 (gl_SHA256): Likewise.
10738 * m4/sha512.m4 (gl_SHA512): Likewise.
10740 2009-01-19 Bruno Haible <bruno@clisp.org>
10742 * modules/uniname/uniname-tests (Depends-on): Add progname.
10743 * tests/uniname/test-uninames.c: Include progname.h.
10744 (main): Call set_program_name.
10746 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
10747 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
10748 (main): Call set_program_name.
10750 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
10751 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
10752 (main): Call set_program_name.
10754 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
10755 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
10756 (main): Call set_program_name.
10758 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
10759 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
10760 (main): Call set_program_name.
10762 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
10763 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
10764 (main): Call set_program_name.
10766 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
10767 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
10768 (main): Call set_program_name.
10770 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
10771 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
10772 (main): Call set_program_name.
10774 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
10775 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
10776 (main): Call set_program_name.
10778 2009-01-19 Eric Blake <ebb9@byu.net>
10780 test-unistd: test previous patch
10781 * tests/test-unistd.c: Test *_FILENO macros.
10783 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
10784 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
10785 Guarantee a definition.
10786 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
10787 * modules/unistd-safer (Depends-on): Add dependency on unistd.
10788 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
10789 * lib/dup-safer.c (STDERR_FILENO): Likewise.
10790 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
10792 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
10793 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
10794 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
10796 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
10797 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
10798 (STDERR_FILENO): Likewise.
10799 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
10800 (STDERR_FILENO): Likewise.
10801 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
10802 (STDERR_FILENO): Likewise.
10803 Reported by Elbert Pol.
10805 2009-01-19 Eric Blake <ebb9@byu.net>
10807 doc: mention more functions added in cygwin 1.7.0
10808 * doc/posix-functions/abort.texi (abort): Update wording related
10810 * doc/posix-functions/daylight.texi (daylight): Likewise.
10811 * doc/posix-functions/optarg.texi (optarg): Likewise.
10812 * doc/posix-functions/optarg.texi (opterr): Likewise.
10813 * doc/posix-functions/optarg.texi (optind): Likewise.
10814 * doc/posix-functions/optarg.texi (optopt): Likewise.
10815 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
10816 worked in 1.5.x, and was withdrawn in 1.7.
10817 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
10818 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
10820 * doc/posix-functions/perror.texi (perror): Likewise.
10821 * doc/posix-functions/printf.texi (printf): Likewise.
10822 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
10823 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
10824 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10825 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10826 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
10827 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
10828 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
10830 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
10832 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
10834 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
10835 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
10837 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
10838 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
10839 * doc/posix-functions/confstr.texi (confstr): Likewise.
10840 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
10841 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
10842 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
10843 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
10844 * doc/posix-functions/fputws.texi (fputws): Likewise.
10845 * doc/posix-functions/fwide.texi (fwide): Likewise.
10846 * doc/posix-functions/getwc.texi (getwc): Likewise.
10847 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
10848 * doc/posix-functions/putwc.texi (putwc): Likewise.
10849 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
10850 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
10851 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
10852 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
10853 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
10854 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
10855 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
10856 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
10857 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
10858 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
10859 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
10861 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
10863 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
10864 * lib/ioctl.c: Include <sys/ioctl.h>.
10866 2009-01-19 Simon Josefsson <simon@josefsson.org>
10868 * modules/getdate-tests (Depends-on): Add progname.
10869 * tests/test-getdate.c: Use progname module, to avoid link errors
10870 on non-glibc systems.
10872 2009-01-18 Simon Josefsson <simon@josefsson.org>
10874 * modules/filenamecat-tests (Depends-on): Add progname.
10875 * modules/fstrcmp-tests (Depends-on): Likewise.
10877 * tests/test-filenamecat.c: Use progname module, to avoid link
10878 errors on non-glibc systems.
10879 * tests/test-fstrcmp.c: Likewise.
10881 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
10883 gettimeofday: avoid warning: nested extern declaration of 'localtime'
10884 * lib/gettimeofday.c: Move extern declaration out of function.
10886 2009-01-18 Bruno Haible <bruno@clisp.org>
10888 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
10889 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
10890 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
10892 2009-01-18 Bruno Haible <bruno@clisp.org>
10894 * lib/strftime.c (MEMPCPY): Remove unused macro.
10895 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
10897 2009-01-18 Martin Lambers <marlam@marlam.de>
10900 * lib/unistd.in.h (link): New declaration.
10901 * lib/link.c: New file.
10902 * m4/link.m4: New file.
10903 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
10905 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
10906 * modules/link: New file.
10907 * doc/posix-functions/link.texi: Mention the new module.
10909 2009-01-18 Bruno Haible <bruno@clisp.org>
10911 * tests/test-avltree_list.c (main): Call set_program_name.
10912 * tests/test-avltree_oset.c (main): Likewise.
10913 * tests/test-obstack-printf.c: Include progname.h.
10914 (main): Call set_program_name.
10915 * tests/test-quotearg.c: Include progname.h.
10916 (main): Call set_program_name.
10917 * tests/test-xmemdup0.c: Include progname.h.
10918 (main): Call set_program_name.
10920 2009-01-18 Bruno Haible <bruno@clisp.org>
10922 New module 'alphasort'.
10923 * lib/dirent.in.h (alphasort): New declaration.
10924 * lib/alphasort.c: New file, from glibc with modifications.
10925 * m4/alphasort.m4: New file.
10926 * modules/alphasort: New file.
10927 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
10929 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
10931 * doc/posix-functions/alphasort.texi: Mention the new module and the
10932 portability problems.
10934 2009-01-18 Bruno Haible <bruno@clisp.org>
10936 New module 'scandir'.
10937 * lib/dirent.in.h (scandir): New declaration.
10938 * lib/scandir.c: New file, from glibc with modifications.
10939 * m4/scandir.m4: New file.
10940 * modules/scandir: New file.
10941 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
10943 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
10945 * doc/posix-functions/scandir.texi: Mention the new module and the
10946 portability problems.
10948 2009-01-17 Bruno Haible <bruno@clisp.org>
10950 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
10951 Update documentation.
10952 (func_remove_suffix): Escape all dots in the suffix. Update
10954 (func_filter_filelist): Update documentation.
10955 Reported by Ralf Wildenhues.
10957 2009-01-17 Bruno Haible <bruno@clisp.org>
10959 * modules/dprintf-posix-tests: New file.
10960 * tests/test-dprintf-posix.sh: New file.
10961 * tests/test-dprintf-posix.c: New file.
10963 New modules 'dprintf', 'dprintf-posix'.
10964 * lib/stdio.in.h (dprintf): New declaration.
10965 * lib/dprintf.c: New file.
10966 * m4/dprintf.m4: New file.
10967 * m4/dprintf-posix.m4: New file.
10968 * modules/dprintf: New file.
10969 * modules/dprintf-posix: New file.
10970 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
10971 HAVE_DPRINTF, REPLACE_DPRINTF.
10972 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
10973 HAVE_DPRINTF, REPLACE_DPRINTF.
10974 * doc/posix-functions/dprintf.texi: Mention the new modules.
10976 2009-01-17 Bruno Haible <bruno@clisp.org>
10978 * modules/vdprintf-posix-tests: New file.
10979 * tests/test-vdprintf-posix.sh: New file.
10980 * tests/test-vdprintf-posix.c: New file.
10982 New modules 'vdprintf', 'vdprintf-posix'.
10983 * lib/stdio.in.h (vdprintf): New declaration.
10984 * lib/vdprintf.c: New file.
10985 * m4/vdprintf.m4: New file.
10986 * m4/vdprintf-posix.m4: New file.
10987 * modules/vdprintf: New file.
10988 * modules/vdprintf-posix: New file.
10989 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
10990 HAVE_VDPRINTF, REPLACE_VDPRINTF.
10991 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
10992 HAVE_VDPRINTF, REPLACE_VDPRINTF.
10993 * doc/posix-functions/vdprintf.texi: Mention the new modules.
10995 2009-01-17 Bruno Haible <bruno@clisp.org>
10997 Fix replacement of fopen on mingw.
10998 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
11001 2009-01-17 Bruno Haible <bruno@clisp.org>
11003 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
11004 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
11006 2009-01-17 Bruno Haible <bruno@clisp.org>
11008 Avoid test-fflush2.sh failure on mingw.
11009 * tests/test-fflush2.c: Include binary-io.h.
11010 (main): Put standard input into binary mode.
11011 * modules/fflush-tests (Depends-on): Add binary-io.
11013 2009-01-17 Bruno Haible <bruno@clisp.org>
11015 * lib/wchar.in.h: In another particular situation, include only the
11016 system's <wchar.h> file.
11017 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
11018 Reported by Albert Chin-A-Young <china@thewrittenword.com>
11019 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
11021 2009-01-17 Bruno Haible <bruno@clisp.org>
11023 Support for stripping executables in --enable-relocatable.
11024 * build-aux/install-reloc: Expect one more argument, or an environment
11025 variable RELOC_STRIP_PROG. If set, strip the destination program and
11027 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
11029 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
11030 to set RELOCATABLE_STRIP.
11031 * NEWS: Mention the new Makefile requirement.
11033 2009-01-17 Bruno Haible <bruno@clisp.org>
11035 * build-aux/install-reloc: Remove debugging information left over by
11036 C compiler on MacOS X.
11038 2009-01-17 Bruno Haible <bruno@clisp.org>
11040 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
11041 * lib/progreloc.c (find_executable): Fix type of pointer passed to
11042 _NSGetExecutablePath.
11044 2009-01-16 Jim Meyering <meyering@redhat.com>
11046 strerror: avoid warnings about discarding "const"
11047 * lib/strerror.c (rpl_strerror): Instead of returning a const
11048 string from each and every "case", use a variable, and add a single
11049 cast after the switch.
11051 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
11053 * lib/arpa_inet.in.h: Add extern "C" block for C++.
11055 2009-01-16 Bruno Haible <bruno@clisp.org>
11057 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
11058 array initializer syntax that also works in C++ mode.
11059 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11061 2009-01-16 Jim Meyering <meyering@redhat.com>
11063 poll: suppress a warning
11064 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
11065 to ignore "...unsigned expression < 0 is always false" warnings.
11067 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
11069 poll: remove declarations of unused variables
11070 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
11071 sockbuf and optlen.
11073 2009-01-15 Bruno Haible <bruno@clisp.org>
11075 Make fflush-after-ungetc POSIX compliant on BSD systems.
11076 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
11077 (clear_ungetc_buffer): Implement also for other systems.
11078 (rpl_fflush): On glibc systems, invoke
11079 clear_ungetc_buffer_preserving_position. Otherwise, invoke
11080 clear_ungetc_buffer after fetching the stream's position, not before.
11082 2009-01-15 Bruno Haible <bruno@clisp.org>
11084 Make fflush-after-ungetc POSIX compliant on glibc systems.
11085 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
11087 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
11088 (rpl_fflush): On glibc systems, simply call the system's fflush
11089 function after clearing the ungetc buffer.
11090 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
11091 Instead, lseek only to the end of file, then use the system's fseeko
11092 for the rest. On glibc systems, reset the EOF indicator bit.
11094 2009-01-15 Jim Meyering <meyering@redhat.com>
11096 openmp.m4: revert quote-adding change, for portability to older autoconf
11097 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
11098 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
11099 Simon Josefsson noticed the problem when using autoconf-2.61.
11101 2009-01-15 Bruno Haible <bruno@clisp.org>
11103 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
11104 * tests/test-fflush2.c (ASSERT): Always fail.
11105 (main): Add two tests for fflush() after ungetc(), taking into account
11106 the Austin Group's clarification.
11107 Suggested by Eric Blake.
11109 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
11111 mktime.m4: remove K&R-style function prototypes
11112 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
11113 for the Sun C++ compiler.
11115 2009-01-14 Bruno Haible <bruno@clisp.org>
11117 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
11118 while including <wchar.h>.
11119 * lib/wchar.in.h: In two particular situations on HP-UX, include only
11120 the system's <wchar.h> file.
11121 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11123 2009-01-14 Bruno Haible <bruno@clisp.org>
11125 * m4/csharp.m4: Don't mention gettext on the serial number line.
11126 * m4/csharpexec.m4: Likewise.
11127 * m4/eaccess.m4: Likewise.
11128 * m4/javaexec.m4: Likewise.
11129 * m4/sig_atomic_t.m4: Likewise.
11130 * m4/tmpdir.m4: Likewise.
11131 * m4/intldir.m4: Bump gettext version.
11132 * m4/lib-ld.m4: Likewise.
11134 2009-01-14 Bruno Haible <bruno@clisp.org>
11136 * lib/progname.c (set_program_name): Add more comments.
11137 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
11139 2009-01-14 Simon Josefsson <simon@josefsson.org>
11141 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
11142 were sys/stat.h does not define it.
11144 2009-01-14 Jim Meyering <meyering@redhat.com>
11146 many *.m4 files: improve m4 quoting
11147 99% of this change was performed by running the following commands:
11148 git ls-files | grep '\.m4$' | xargs perl -pi \
11149 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
11150 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
11151 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
11152 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
11153 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
11154 The remainder were to add Copyright dates, increment serial numbers,
11155 undo some changes in comments, exclude m4/intl.m4, and add quotes
11156 around the "1" in ",1" where the unusual spacing prohibited the
11157 above regexps from doing the job. For more details, see
11158 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
11159 * m4/acl.m4: Modified.
11160 * m4/afs.m4: Likewise.
11161 * m4/alloca.m4: Likewise.
11162 * m4/argp.m4: Likewise.
11163 * m4/argz.m4: Likewise.
11164 * m4/atexit.m4: Likewise.
11165 * m4/bison-i18n.m4: Likewise.
11166 * m4/bison.m4: Likewise.
11167 * m4/byteswap.m4: Likewise.
11168 * m4/c-stack.m4: Likewise.
11169 * m4/c-strtod.m4: Likewise.
11170 * m4/calloc.m4: Likewise.
11171 * m4/canonicalize-lgpl.m4: Likewise.
11172 * m4/chown.m4: Likewise.
11173 * m4/clock_time.m4: Likewise.
11174 * m4/codeset.m4: Likewise.
11175 * m4/copy-file.m4: Likewise.
11176 * m4/csharp.m4: Likewise.
11177 * m4/csharpcomp.m4: Likewise.
11178 * m4/csharpexec.m4: Likewise.
11179 * m4/d-ino.m4: Likewise.
11180 * m4/d-type.m4: Likewise.
11181 * m4/dirfd.m4: Likewise.
11182 * m4/double-slash-root.m4: Likewise.
11183 * m4/eaccess.m4: Likewise.
11184 * m4/eealloc.m4: Likewise.
11185 * m4/environ.m4: Likewise.
11186 * m4/errno_h.m4: Likewise.
11187 * m4/euidaccess.m4: Likewise.
11188 * m4/execute.m4: Likewise.
11189 * m4/fatal-signal.m4: Likewise.
11190 * m4/fchdir.m4: Likewise.
11191 * m4/fcntl_h.m4: Likewise.
11192 * m4/fileblocks.m4: Likewise.
11193 * m4/filenamecat.m4: Likewise.
11194 * m4/findprog.m4: Likewise.
11195 * m4/flexmember.m4: Likewise.
11196 * m4/fnmatch.m4: Likewise.
11197 * m4/fopen.m4: Likewise.
11198 * m4/fpending.m4: Likewise.
11199 * m4/fprintf-posix.m4: Likewise.
11200 * m4/free.m4: Likewise.
11201 * m4/frexp.m4: Likewise.
11202 * m4/frexpl.m4: Likewise.
11203 * m4/fsusage.m4: Likewise.
11204 * m4/ftruncate.m4: Likewise.
11205 * m4/gc-camellia.m4: Likewise.
11206 * m4/gc-random.m4: Likewise.
11207 * m4/gc.m4: Likewise.
11208 * m4/getaddrinfo.m4: Likewise.
11209 * m4/getcwd-abort-bug.m4: Likewise.
11210 * m4/getcwd-path-max.m4: Likewise.
11211 * m4/getdate.m4: Likewise.
11212 * m4/getdomainname.m4: Likewise.
11213 * m4/getgroups.m4: Likewise.
11214 * m4/gethostname.m4: Likewise.
11215 * m4/gethrxtime.m4: Likewise.
11216 * m4/getline.m4: Likewise.
11217 * m4/getloadavg.m4: Likewise.
11218 * m4/getndelim2.m4: Likewise.
11219 * m4/getpass.m4: Likewise.
11220 * m4/gettext.m4: Likewise.
11221 * m4/gettime.m4: Likewise.
11222 * m4/gettimeofday.m4: Likewise.
11223 * m4/gnulib-common.m4: Likewise.
11224 * m4/group-member.m4: Likewise.
11225 * m4/host-os.m4: Likewise.
11226 * m4/iconv.m4: Likewise.
11227 * m4/iconv_open.m4: Likewise.
11228 * m4/inet_ntop.m4: Likewise.
11229 * m4/inet_pton.m4: Likewise.
11230 * m4/inline.m4: Likewise.
11231 * m4/intldir.m4: Likewise.
11232 * m4/intlmacosx.m4: Likewise.
11233 * m4/intmax.m4: Likewise.
11234 * m4/intmax_t.m4: Likewise.
11235 * m4/inttypes.m4: Likewise.
11236 * m4/inttypes_h.m4: Likewise.
11237 * m4/inttypes-pri.m4: Likewise.
11238 * m4/isapipe.m4: Likewise.
11239 * m4/isnand.m4: Likewise.
11240 * m4/isnanf.m4: Likewise.
11241 * m4/isnanl.m4: Likewise.
11242 * m4/javacomp.m4: Likewise.
11243 * m4/javaexec.m4: Likewise.
11244 * m4/jm-winsz1.m4: Likewise.
11245 * m4/jm-winsz2.m4: Likewise.
11246 * m4/lchown.m4: Likewise.
11247 * m4/lcmessage.m4: Likewise.
11248 * m4/ldexpl.m4: Likewise.
11249 * m4/lib-ld.m4: Likewise.
11250 * m4/lib-link.m4: Likewise.
11251 * m4/libsigsegv.m4: Likewise.
11252 * m4/link-follow.m4: Likewise.
11253 * m4/localcharset.m4: Likewise.
11254 * m4/locale-fr.m4: Likewise.
11255 * m4/locale-ja.m4: Likewise.
11256 * m4/locale-tr.m4: Likewise.
11257 * m4/locale-zh.m4: Likewise.
11258 * m4/lock.m4: Likewise.
11259 * m4/longlong.m4: Likewise.
11260 * m4/ls-mntd-fs.m4: Likewise.
11261 * m4/lstat.m4: Likewise.
11262 * m4/malloc.m4: Likewise.
11263 * m4/mathl.m4: Likewise.
11264 * m4/mbrtowc.m4: Likewise.
11265 * m4/mbstate_t.m4: Likewise.
11266 * m4/mbswidth.m4: Likewise.
11267 * m4/memchr.m4: Likewise.
11268 * m4/memcmp.m4: Likewise.
11269 * m4/memcpy.m4: Likewise.
11270 * m4/memmem.m4: Likewise.
11271 * m4/memmove.m4: Likewise.
11272 * m4/mempcpy.m4: Likewise.
11273 * m4/memrchr.m4: Likewise.
11274 * m4/memset.m4: Likewise.
11275 * m4/minmax.m4: Likewise.
11276 * m4/mkdir-slash.m4: Likewise.
11277 * m4/mkdtemp.m4: Likewise.
11278 * m4/mktime.m4: Likewise.
11279 * m4/mmap-anon.m4: Likewise.
11280 * m4/mountlist.m4: Likewise.
11281 * m4/nanosleep.m4: Likewise.
11282 * m4/nls.m4: Likewise.
11283 * m4/nocrash.m4: Likewise.
11284 * m4/open.m4: Likewise.
11285 * m4/openat.m4: Likewise.
11286 * m4/openmp.m4: Likewise.
11287 * m4/pathmax.m4: Likewise.
11288 * m4/perl.m4: Likewise.
11289 * m4/physmem.m4: Likewise.
11290 * m4/pipe.m4: Likewise.
11291 * m4/po.m4: Likewise.
11292 * m4/poll.m4: Likewise.
11293 * m4/posixtm.m4: Likewise.
11294 * m4/posixver.m4: Likewise.
11295 * m4/printf-frexp.m4: Likewise.
11296 * m4/printf-frexpl.m4: Likewise.
11297 * m4/printf-posix.m4: Likewise.
11298 * m4/printf-posix-rpl.m4: Likewise.
11299 * m4/printf.m4: Likewise.
11300 * m4/progtest.m4: Likewise.
11301 * m4/putenv.m4: Likewise.
11302 * m4/readline.m4: Likewise.
11303 * m4/readlink.m4: Likewise.
11304 * m4/readutmp.m4: Likewise.
11305 * m4/realloc.m4: Likewise.
11306 * m4/regex.m4: Likewise.
11307 * m4/relocatable.m4: Likewise.
11308 * m4/relocatable-lib.m4: Likewise.
11309 * m4/rename-dest-slash.m4: Likewise.
11310 * m4/rename.m4: Likewise.
11311 * m4/rmdir-errno.m4: Likewise.
11312 * m4/rmdir.m4: Likewise.
11313 * m4/roundf.m4: Likewise.
11314 * m4/roundl.m4: Likewise.
11315 * m4/rpmatch.m4: Likewise.
11316 * m4/save-cwd.m4: Likewise.
11317 * m4/selinux-selinux-h.m4: Likewise.
11318 * m4/setenv.m4: Likewise.
11319 * m4/settime.m4: Likewise.
11320 * m4/sig2str.m4: Likewise.
11321 * m4/sig_atomic_t.m4: Likewise.
11322 * m4/signalblocking.m4: Likewise.
11323 * m4/signbit.m4: Likewise.
11324 * m4/sigpipe.m4: Likewise.
11325 * m4/sockets.m4: Likewise.
11326 * m4/sockpfaf.m4: Likewise.
11327 * m4/st_dm_mode.m4: Likewise.
11328 * m4/stat-time.m4: Likewise.
11329 * m4/stdbool.m4: Likewise.
11330 * m4/stdint.m4: Likewise.
11331 * m4/stdint_h.m4: Likewise.
11332 * m4/stpcpy.m4: Likewise.
11333 * m4/stpncpy.m4: Likewise.
11334 * m4/strcase.m4: Likewise.
11335 * m4/strchrnul.m4: Likewise.
11336 * m4/strcspn.m4: Likewise.
11337 * m4/strdup.m4: Likewise.
11338 * m4/strftime.m4: Likewise.
11339 * m4/strndup.m4: Likewise.
11340 * m4/strnlen.m4: Likewise.
11341 * m4/strpbrk.m4: Likewise.
11342 * m4/strptime.m4: Likewise.
11343 * m4/strsep.m4: Likewise.
11344 * m4/strtod.m4: Likewise.
11345 * m4/strtoimax.m4: Likewise.
11346 * m4/strtok_r.m4: Likewise.
11347 * m4/strtol.m4: Likewise.
11348 * m4/strtoll.m4: Likewise.
11349 * m4/strtoul.m4: Likewise.
11350 * m4/strtoull.m4: Likewise.
11351 * m4/strtoumax.m4: Likewise.
11352 * m4/strverscmp.m4: Likewise.
11353 * m4/threadlib.m4: Likewise.
11354 * m4/timegm.m4: Likewise.
11355 * m4/tm_gmtoff.m4: Likewise.
11356 * m4/tmpdir.m4: Likewise.
11357 * m4/tmpfile.m4: Likewise.
11358 * m4/tzset.m4: Likewise.
11359 * m4/uintmax_t.m4: Likewise.
11360 * m4/unlinkdir.m4: Likewise.
11361 * m4/unlocked-io.m4: Likewise.
11362 * m4/uptime.m4: Likewise.
11363 * m4/userspec.m4: Likewise.
11364 * m4/utimbuf.m4: Likewise.
11365 * m4/utime.m4: Likewise.
11366 * m4/utimes-null.m4: Likewise.
11367 * m4/utimes.m4: Likewise.
11368 * m4/vararrays.m4: Likewise.
11369 * m4/vasnprintf.m4: Likewise.
11370 * m4/vfprintf-posix.m4: Likewise.
11371 * m4/vprintf-posix.m4: Likewise.
11372 * m4/wait-process.m4: Likewise.
11373 * m4/wchar_t.m4: Likewise.
11374 * m4/wint_t.m4: Likewise.
11375 * m4/write-any-file.m4: Likewise.
11376 * m4/yield.m4: Likewise.
11378 2009-01-13 Bruno Haible <bruno@clisp.org>
11380 Avoid test-copy-file.sh failures when ACL support insufficient.
11381 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
11383 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
11384 Reported by Jim Meyering.
11386 2009-01-13 Bruno Haible <bruno@clisp.org>
11388 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
11389 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
11390 * modules/unistdio/u8-printf-parse (Files): Likewise.
11391 * modules/unistdio/u32-printf-parse (Files): Likewise.
11392 * modules/unistdio/ulc-printf-parse (Files): Likewise.
11394 2009-01-13 Simon Josefsson <simon@josefsson.org>
11396 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
11397 and m4/inttypes_h.m4 too.
11399 2009-01-12 Eric Blake <ebb9@byu.net>
11401 tests: IRIX 6.2 cc can't compile -0.0 into .data
11402 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
11403 rather than at compile-time.
11404 * tests/test-floorl.c (minus_zero): Likewise.
11405 * tests/test-frexpl.c (minus_zero): Likewise.
11406 * tests/test-isnan.c (minus_zerol): Likewise.
11407 * tests/test-isnanl.h (minus_zero): Likewise.
11408 * tests/test-ldexpl.c (minus_zero): Likewise.
11409 * tests/test-roundl.c (minus_zero): Likewise.
11410 * tests/test-signbit.c (minus_zerol): Likewise.
11411 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
11412 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
11413 * tests/test-truncl.c (minus_zero): Likewise.
11414 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
11415 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
11416 Reported by Tom G. Christensen and Nelson H. F. Beebe.
11418 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
11420 regex: fix glibc bug 9697
11421 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
11424 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
11426 regex: fix glibc bug 697
11427 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
11428 being NULL also if there are no backreferences.
11430 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
11432 regex: merge glibc changes
11433 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
11434 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
11435 re_string_skip_chars, re_string_reconstruct): Likewise.
11436 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
11438 2009-01-07 Jim Meyering <meyering@redhat.com>
11440 poll: filter through cppi
11441 * lib/poll.c: Indent cpp directives to reflect nesting.
11443 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
11445 poll: don't return uninitialized
11446 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
11448 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
11450 avoid compile failure on AIX 6.1
11451 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
11452 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
11454 2009-01-04 Jim Meyering <meyering@redhat.com>
11456 remove duplicate inclusion of <stdio.h>
11457 * tests/test-fprintf-posix.c: Likewise.
11458 * tests/test-printf-posix.c: Likewise.
11459 * tests/test-snprintf-posix.c: Likewise.
11460 * tests/test-sprintf-posix.c: Likewise.
11461 * tests/test-vasprintf-posix.c: Likewise.
11462 * tests/test-vfprintf-posix.c: Likewise.
11463 * tests/test-vprintf-posix.c: Likewise.
11464 * tests/test-vsnprintf-posix.c: Likewise.
11465 * tests/test-vsprintf-posix.c: Likewise.
11467 2009-01-03 Jim Meyering <meyering@redhat.com>
11469 gnulib-tool: fix sed-based filtering
11470 * gnulib-tool (func_filter_filelist): Remove extra backslash
11471 in sed_fff_filter definition.
11473 2009-01-02 Jim Meyering <meyering@redhat.com>
11475 strftime: avoid compilation failure on Solaris 2.6
11476 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
11477 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
11478 Don't #define mbrlen or mbsinit, since now they're guaranteed to
11479 be available. Reported by Tom G. Christensen. Details in
11480 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
11482 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11483 Bruno Haible <bruno@clisp.org>
11485 Speed up gnulib-tool by doing more string processing through shell
11487 * gnulib-tool (fast_func_append): New variable.
11488 (func_remove_prefix, func_remove_suffix): New functions.
11489 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
11490 (func_filter_filelist): New function.
11491 (func_get_dependencies): Use func_remove_suffix instead of sed.
11492 (func_get_automake_snippet): Use func_filter_filelist instead of a
11493 subshell and sed invocation.
11495 2009-01-01 Bruno Haible <bruno@clisp.org>
11497 Fix a security bug.
11498 * gnulib-tool (func_import, import, update): Don't allow the characters
11499 '"', '$', '`', '\' in macro arguments that become part of commands that
11502 2009-01-01 Bruno Haible <bruno@clisp.org>
11504 * gnulib-tool (func_reset_sigpipe): Add more comments.
11506 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11508 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
11509 func_emit_tests_Makefile_am, func_import): Abort loops early if we
11510 already know the answer.
11512 2009-01-01 Jim Meyering <meyering@redhat.com>
11514 * lib/version-etc.c (version_etc_va): Update copyright year.
11516 2008-12-30 Bruno Haible <bruno@clisp.org>
11518 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
11519 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
11520 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
11522 2008-12-29 Eric Blake <ebb9@byu.net>
11524 multiarch: avoid autoconf AC_REQUIRE bug
11525 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
11526 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
11528 Reported by Bruno Haible, and analyzed in
11529 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
11531 2008-12-29 Bruno Haible <bruno@clisp.org>
11533 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
11534 files in subdirectories correctly.
11535 Reported by Ralf Wildenhues.
11537 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11539 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
11540 rather than 'join FILE -', for Solaris join.
11542 2008-12-29 Bruno Haible <bruno@clisp.org>
11544 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
11546 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
11547 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
11548 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
11549 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
11550 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11551 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
11552 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
11553 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
11554 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11555 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
11556 * m4/nls.m4 (AM_NLS): Likewise.
11557 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
11558 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
11559 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11560 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
11561 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
11562 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11563 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
11564 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
11565 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
11566 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
11567 * m4/xsize.m4 (gl_XSIZE): Likewise.
11568 Suggested by Jim Meyering.
11570 2008-11-17 Bruce Korb <bkorb@gnu.org>
11572 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
11573 * lib/parse-duration.c: use a switch instead of cascading if's.
11575 2008-12-29 Eric Blake <ebb9@byu.net>
11577 wchar.h: supply WEOF on Irix 5.3
11578 * lib/wchar.in.h (wint_t): Also supply WEOF.
11579 * lib/wctype.in.h (wint_t): Likewise.
11580 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
11581 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
11582 Reported by Tom G. Christensen.
11584 2008-12-26 Bruno Haible <bruno@clisp.org>
11586 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
11589 2008-12-26 Bruno Haible <bruno@clisp.org>
11591 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
11593 2008-12-26 Bruno Haible <bruno@clisp.org>
11595 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
11596 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
11597 not __STDC_CONSTANT_MACROS.
11598 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
11600 2008-12-25 Bruno Haible <bruno@clisp.org>
11602 Add support for universal builds to vasnprintf.
11603 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
11604 universal builds, guess no.
11605 * modules/vasnprintf-posix (Depends-on): Add multiarch.
11606 * modules/vasprintf-posix (Depends-on): Likewise.
11607 * modules/fprintf-posix (Depends-on): Likewise.
11608 * modules/vfprintf-posix (Depends-on): Likewise.
11609 * modules/snprintf-posix (Depends-on): Likewise.
11610 * modules/vsnprintf-posix (Depends-on): Likewise.
11611 * modules/sprintf-posix (Depends-on): Likewise.
11612 * modules/vsprintf-posix (Depends-on): Likewise.
11613 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
11614 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11615 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11616 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11617 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11618 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11619 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11621 Add support for universal builds to <inttypes.h>.
11622 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
11623 _SCNu64_PREFIX): In Apple
11624 universal builds, define directly, using _LP64.
11625 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
11626 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
11627 * modules/inttypes (Depends-on): Add multiarch.
11628 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
11630 Add support for universal builds to <stdint.h>.
11631 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
11632 universal builds, define directly, using _LP64.
11633 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
11634 Apple universal builds, don't test for the size and suffix of ptrdiff_t
11636 * modules/stdint (Depends-on): Add multiarch.
11637 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
11639 New module 'multiarch'.
11640 * modules/multiarch: New file.
11641 * m4/multiarch.m4: New file.
11643 2008-12-25 Bruno Haible <bruno@clisp.org>
11645 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
11647 2008-12-25 Bruno Haible <bruno@clisp.org>
11649 * modules/btowc (License): Relicense under LGPLv2+.
11650 * modules/mbsinit (License): Likewise.
11651 * modules/mbrtowc (License): Likewise.
11652 * modules/wcrtomb (License): Likewise.
11653 * modules/streq (License): Likewise.
11654 Reported by David Lutterkort <lutter@redhat.com>.
11656 2008-12-23 Bruno Haible <bruno@clisp.org>
11658 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
11660 2008-12-23 Bruno Haible <bruno@clisp.org>
11662 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
11663 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
11664 GETADDRINFO_LIB, not in LIBS.
11665 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
11666 * modules/canon-host (Link): Likewise.
11667 * NEWS: Mention the change.
11668 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
11671 2008-12-22 Bruno Haible <bruno@clisp.org>
11673 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
11674 * doc/posix-functions/iswalpha_l.texi: Likewise.
11675 * doc/posix-functions/iswblank_l.texi: Likewise.
11676 * doc/posix-functions/iswcntrl_l.texi: Likewise.
11677 * doc/posix-functions/iswctype_l.texi: Likewise.
11678 * doc/posix-functions/iswdigit_l.texi: Likewise.
11679 * doc/posix-functions/iswgraph_l.texi: Likewise.
11680 * doc/posix-functions/iswlower_l.texi: Likewise.
11681 * doc/posix-functions/iswprint_l.texi: Likewise.
11682 * doc/posix-functions/iswpunct_l.texi: Likewise.
11683 * doc/posix-functions/iswspace_l.texi: Likewise.
11684 * doc/posix-functions/iswupper_l.texi: Likewise.
11685 * doc/posix-functions/iswxdigit_l.texi: Likewise.
11686 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
11687 * doc/posix-functions/open_wmemstream.texi: Likewise.
11688 * doc/posix-functions/swscanf.texi: Likewise.
11689 * doc/posix-functions/towctrans_l.texi: Likewise.
11690 * doc/posix-functions/towlower.texi: Likewise.
11691 * doc/posix-functions/towlower_l.texi: Likewise.
11692 * doc/posix-functions/towupper.texi: Likewise.
11693 * doc/posix-functions/towupper_l.texi: Likewise.
11694 * doc/posix-functions/vfwprintf.texi: Likewise.
11695 * doc/posix-functions/vfwscanf.texi: Likewise.
11696 * doc/posix-functions/vswscanf.texi: Likewise.
11697 * doc/posix-functions/vwprintf.texi: Likewise.
11698 * doc/posix-functions/vwscanf.texi: Likewise.
11699 * doc/posix-functions/wcpcpy.texi: Likewise.
11700 * doc/posix-functions/wcpncpy.texi: Likewise.
11701 * doc/posix-functions/wcscasecmp.texi: Likewise.
11702 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
11703 * doc/posix-functions/wcscoll_l.texi: Likewise.
11704 * doc/posix-functions/wcsdup.texi: Likewise.
11705 * doc/posix-functions/wcsncasecmp.texi: Likewise.
11706 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
11707 * doc/posix-functions/wcsnlen.texi: Likewise.
11708 * doc/posix-functions/wcsnrtombs.texi: Likewise.
11709 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
11710 * doc/posix-functions/wctrans_l.texi: Likewise.
11711 * doc/posix-functions/wctype_l.texi: Likewise.
11712 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
11713 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
11714 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
11715 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
11716 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
11717 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
11718 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
11719 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
11720 * doc/glibc-functions/wcschrnul.texi: Likewise.
11721 * doc/glibc-functions/wcsftime_l.texi: Likewise.
11722 * doc/glibc-functions/wcstod_l.texi: Likewise.
11723 * doc/glibc-functions/wcstof_l.texi: Likewise.
11724 * doc/glibc-functions/wcstol_l.texi: Likewise.
11725 * doc/glibc-functions/wcstold_l.texi: Likewise.
11726 * doc/glibc-functions/wcstoll_l.texi: Likewise.
11727 * doc/glibc-functions/wcstoq.texi: Likewise.
11728 * doc/glibc-functions/wcstoul_l.texi: Likewise.
11729 * doc/glibc-functions/wcstoull_l.texi: Likewise.
11730 * doc/glibc-functions/wcstouq.texi: Likewise.
11731 * doc/glibc-functions/wmempcpy.texi: Likewise.
11733 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
11734 Eric Blake <ebb9@byu.net>
11735 Paolo Bonzini <bonzini@gnu.org>
11736 Bruno Haible <bruno@clisp.org>
11738 Make c-stack work on Haiku.
11739 * lib/c-stack.c (SA_ONSTACK): Define fallback.
11740 (c_stack_action): Use SA_ONSTACK flag.
11742 2008-12-22 Bruno Haible <bruno@clisp.org>
11744 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
11746 2008-12-22 Bruno Haible <bruno@clisp.org>
11748 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
11749 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
11751 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
11753 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
11754 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
11755 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
11756 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
11758 2008-12-22 Bruno Haible <bruno@clisp.org>
11760 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
11763 2008-12-22 Eric Blake <ebb9@byu.net>
11765 Avoid gcc warnings on cygwin.
11766 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
11767 Avoid unused variable.
11768 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
11771 2008-12-22 Bruno Haible <bruno@clisp.org>
11773 Remove HAVE_MBRTOWC conditionals.
11774 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
11775 (mbscasecmp): Assume mbrtowc function.
11776 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
11777 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
11778 * lib/mbschr.c: Include mbuiter.h unconditionally.
11779 (mbschr): Assume mbrtowc function.
11780 * lib/mbscspn.c: Include mbuiter.h unconditionally.
11781 (mbscspn): Assume mbrtowc function.
11782 * lib/mbslen.c: Include mbuiter.h unconditionally.
11783 (mbslen): Assume mbrtowc function.
11784 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
11785 (mbsncasecmp): Assume mbrtowc function.
11786 * lib/mbsnlen.c: Include mbiter.h unconditionally.
11787 (mbsnlen): Assume mbrtowc function.
11788 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
11789 (mbspbrk): Assume mbrtowc function.
11790 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
11791 (mbspcasecmp): Assume mbrtowc function.
11792 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
11793 (mbsrchr): Assume mbrtowc function.
11794 * lib/mbssep.c: Include mbuiter.h unconditionally.
11795 (mbssep): Assume mbrtowc function.
11796 * lib/mbsspn.c: Include mbuiter.h unconditionally.
11797 (mbsspn): Assume mbrtowc function.
11798 * lib/mbsstr.c: Include mbuiter.h unconditionally.
11799 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
11800 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
11801 (mbstok_r): Assume mbrtowc function.
11802 * lib/propername.c: Include mbuiter.h unconditionally.
11803 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
11804 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
11805 (trim2): Assume mbrtowc function.
11806 * lib/mbswidth.c (mbsinit): Remove fallback definition.
11807 (mbsnwidth): Assume mbrtowc function.
11808 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
11809 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
11810 fallback definitions.
11811 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
11813 2008-12-22 Bruno Haible <bruno@clisp.org>
11815 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
11817 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
11819 * modules/regex: Request emulations for the mb*/wc* functions we need.
11820 * m4/regex.m4: Don't look for those functions here.
11821 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
11823 2008-12-22 Bruno Haible <bruno@clisp.org>
11825 * modules/fnmatch (Depends-on): Remove duplicated dependency.
11827 2008-12-21 Bruno Haible <bruno@clisp.org>
11829 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
11830 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
11831 (Include): Remove conditionalization.
11832 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
11833 (Include): Remove conditionalization.
11834 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
11835 (Include): Remove conditionalization.
11836 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
11837 * m4/mbfile.m4 (gl_MBFILE): Likewise.
11838 * NEWS: Mention the change.
11839 Reported by Alan Hourihane <alanh@fairlite.co.uk>
11840 via Sergey Poznyakoff <gray@gnu.org.ua>.
11842 2008-12-21 Bruno Haible <bruno@clisp.org>
11844 * MODULES.html.sh (Extended multibyte and wide character utilities
11845 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
11846 wcrtomb, wcsrtombs.
11847 (Support for systems lacking POSIX:2008): Add accept, bind, close,
11848 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
11849 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
11850 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
11852 2008-12-21 Bruno Haible <bruno@clisp.org>
11854 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
11856 2008-12-21 Bruno Haible <bruno@clisp.org>
11858 * modules/wcsnrtombs-tests: New file.
11859 * tests/test-wcsnrtombs1.sh: New file.
11860 * tests/test-wcsnrtombs2.sh: New file.
11861 * tests/test-wcsnrtombs3.sh: New file.
11862 * tests/test-wcsnrtombs4.sh: New file.
11863 * tests/test-wcsnrtombs.c: New file.
11865 New module 'wcsnrtombs'.
11866 * lib/wchar.in.h (wcsnrtombs): New declaration.
11867 * lib/wcsnrtombs.c: New file.
11868 * lib/wcsrtombs-state.c: New file.
11869 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
11870 (internal_state): Remove variable.
11871 * m4/wcsnrtombs.m4: New file.
11872 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
11874 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
11876 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
11878 * modules/wcsnrtombs: New file.
11879 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
11880 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
11882 2008-12-21 Bruno Haible <bruno@clisp.org>
11884 * modules/wcsrtombs-tests: New file.
11885 * tests/test-wcsrtombs1.sh: New file.
11886 * tests/test-wcsrtombs2.sh: New file.
11887 * tests/test-wcsrtombs3.sh: New file.
11888 * tests/test-wcsrtombs4.sh: New file.
11889 * tests/test-wcsrtombs.c: New file.
11891 New module 'wcsrtombs'.
11892 * lib/wchar.in.h (wcsrtombs): New declaration.
11893 * lib/wcsrtombs.c: New file.
11894 * m4/wcsrtombs.m4: New file.
11895 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
11896 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
11897 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
11898 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
11899 * modules/wcsrtombs: New file.
11900 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
11903 2008-12-21 Bruno Haible <bruno@clisp.org>
11905 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
11906 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
11907 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
11908 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
11910 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
11911 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
11912 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
11913 m4/locale-zh.m4, m4/codeset.m4.
11914 * doc/posix-functions/wcrtomb.texi: Document the bug.
11916 2008-12-21 Bruno Haible <bruno@clisp.org>
11918 Work around a btowc() bug on IRIX 6.5.
11919 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
11920 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
11921 REPLACE_WTOBC if not.
11922 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
11923 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
11924 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
11926 2008-12-21 Bruno Haible <bruno@clisp.org>
11928 * modules/wcrtomb-tests: New file.
11929 * tests/test-wcrtomb.sh: New file.
11930 * tests/test-wcrtomb.c: New file.
11932 New module 'wcrtomb'.
11933 * lib/wchar.in.h (wcrtomb): New declaration.
11934 * lib/wcrtomb.c: New file.
11935 * m4/wcrtomb.m4: New file.
11936 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
11938 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
11940 * modules/wcrtomb: New file.
11941 * doc/posix-functions/wcrtomb.texi: Mention the new module.
11943 2008-12-21 Bruno Haible <bruno@clisp.org>
11945 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
11946 * modules/mbsrtowcs (Files): Likewise.
11947 * modules/wctob (Files): Likewise.
11948 * modules/c-strcase-tests (Files): Likewise.
11949 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
11950 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
11951 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
11952 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
11953 * modules/vasnprintf-posix-tests (Files): Likewise.
11955 2008-12-21 William Pursell <bill.pursell@gmail.com>
11957 gitlog-to-changelog: pass all command-line arguments to git-log
11958 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
11959 it is sometimes convenient to filter the commits in various ways.
11960 gitlog-to-changelog only allows --since to specify a start date,
11961 but git-log itself supports many other filtering mechanisms.
11962 At the moment, I want to filter by branch name. Rather than
11963 adding a --branch option to gitlog-to-changelog, it seems more
11964 flexible to simply pass all options directly to git-log and let
11965 git do the work. Notice that this effectively makes --since a
11966 redundant option for gitlog-to-changelog, but removing it would
11967 require current usage to change since calls would then require
11968 an additional '--'.
11970 2008-12-21 Bruno Haible <bruno@clisp.org>
11972 * modules/mbsnrtowcs-tests: New file.
11973 * tests/test-mbsnrtowcs1.sh: New file.
11974 * tests/test-mbsnrtowcs2.sh: New file.
11975 * tests/test-mbsnrtowcs3.sh: New file.
11976 * tests/test-mbsnrtowcs4.sh: New file.
11977 * tests/test-mbsnrtowcs.c: New file.
11979 New module 'mbsnrtowcs'.
11980 * lib/wchar.in.h (mbsnrtowcs): New declaration.
11981 * lib/mbsnrtowcs.c: New file.
11982 * lib/mbsrtowcs-state.c: New file.
11983 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
11984 (internal_state): Remove variable.
11985 * m4/mbsnrtowcs.m4: New file.
11986 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
11988 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
11989 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
11990 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
11991 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
11992 * modules/mbsnrtowcs: New file.
11993 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
11994 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
11995 portability problem.
11997 2008-12-21 Bruno Haible <bruno@clisp.org>
11999 Work around mbsrtowcs bug.
12000 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
12001 (gl_FUNC_MBSRTOWCS): Invoke it.
12002 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
12004 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
12006 2008-12-21 Bruno Haible <bruno@clisp.org>
12008 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
12010 2008-12-21 Bruno Haible <bruno@clisp.org>
12012 Update doc for AIX.
12013 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
12014 16-bit wchar_t type.
12015 * doc/posix-functions/btowc.texi: Likewise.
12016 * doc/posix-functions/fgetwc.texi: Likewise.
12017 * doc/posix-functions/fgetws.texi: Likewise.
12018 * doc/posix-functions/fputwc.texi: Likewise.
12019 * doc/posix-functions/fputws.texi: Likewise.
12020 * doc/posix-functions/fwide.texi: Likewise.
12021 * doc/posix-functions/fwprintf.texi: Likewise.
12022 * doc/posix-functions/fwscanf.texi: Likewise.
12023 * doc/posix-functions/getwchar.texi: Likewise.
12024 * doc/posix-functions/getwc.texi: Likewise.
12025 * doc/posix-functions/iswalnum.texi: Likewise.
12026 * doc/posix-functions/iswalpha.texi: Likewise.
12027 * doc/posix-functions/iswblank.texi: Likewise.
12028 * doc/posix-functions/iswcntrl.texi: Likewise.
12029 * doc/posix-functions/iswctype.texi: Likewise.
12030 * doc/posix-functions/iswdigit.texi: Likewise.
12031 * doc/posix-functions/iswgraph.texi: Likewise.
12032 * doc/posix-functions/iswlower.texi: Likewise.
12033 * doc/posix-functions/iswprint.texi: Likewise.
12034 * doc/posix-functions/iswpunct.texi: Likewise.
12035 * doc/posix-functions/iswspace.texi: Likewise.
12036 * doc/posix-functions/iswupper.texi: Likewise.
12037 * doc/posix-functions/iswxdigit.texi: Likewise.
12038 * doc/posix-functions/mbrtowc.texi: Likewise.
12039 * doc/posix-functions/mbsrtowcs.texi: Likewise.
12040 * doc/posix-functions/mbstowcs.texi: Likewise.
12041 * doc/posix-functions/mbtowc.texi: Likewise.
12042 * doc/posix-functions/putwchar.texi: Likewise.
12043 * doc/posix-functions/putwc.texi: Likewise.
12044 * doc/posix-functions/swprintf.texi: Likewise.
12045 * doc/posix-functions/tolower.texi: Likewise.
12046 * doc/posix-functions/toupper.texi: Likewise.
12047 * doc/posix-functions/towctrans.texi: Likewise.
12048 * doc/posix-functions/ungetwc.texi: Likewise.
12049 * doc/posix-functions/vswprintf.texi: Likewise.
12050 * doc/posix-functions/wcrtomb.texi: Likewise.
12051 * doc/posix-functions/wcscat.texi: Likewise.
12052 * doc/posix-functions/wcschr.texi: Likewise.
12053 * doc/posix-functions/wcscmp.texi: Likewise.
12054 * doc/posix-functions/wcscoll.texi: Likewise.
12055 * doc/posix-functions/wcscpy.texi: Likewise.
12056 * doc/posix-functions/wcscspn.texi: Likewise.
12057 * doc/posix-functions/wcsftime.texi: Likewise.
12058 * doc/posix-functions/wcslen.texi: Likewise.
12059 * doc/posix-functions/wcsncat.texi: Likewise.
12060 * doc/posix-functions/wcsncmp.texi: Likewise.
12061 * doc/posix-functions/wcsncpy.texi: Likewise.
12062 * doc/posix-functions/wcspbrk.texi: Likewise.
12063 * doc/posix-functions/wcsrchr.texi: Likewise.
12064 * doc/posix-functions/wcsrtombs.texi: Likewise.
12065 * doc/posix-functions/wcsspn.texi: Likewise.
12066 * doc/posix-functions/wcsstr.texi: Likewise.
12067 * doc/posix-functions/wcstod.texi: Likewise.
12068 * doc/posix-functions/wcstof.texi: Likewise.
12069 * doc/posix-functions/wcstoimax.texi: Likewise.
12070 * doc/posix-functions/wcstok.texi: Likewise.
12071 * doc/posix-functions/wcstold.texi: Likewise.
12072 * doc/posix-functions/wcstoll.texi: Likewise.
12073 * doc/posix-functions/wcstol.texi: Likewise.
12074 * doc/posix-functions/wcstombs.texi: Likewise.
12075 * doc/posix-functions/wcstoull.texi: Likewise.
12076 * doc/posix-functions/wcstoul.texi: Likewise.
12077 * doc/posix-functions/wcstoumax.texi: Likewise.
12078 * doc/posix-functions/wcswidth.texi: Likewise.
12079 * doc/posix-functions/wcsxfrm.texi: Likewise.
12080 * doc/posix-functions/wctob.texi: Likewise.
12081 * doc/posix-functions/wctomb.texi: Likewise.
12082 * doc/posix-functions/wctrans.texi: Likewise.
12083 * doc/posix-functions/wctype.texi: Likewise.
12084 * doc/posix-functions/wcwidth.texi: Likewise.
12085 * doc/posix-functions/wmemchr.texi: Likewise.
12086 * doc/posix-functions/wmemcmp.texi: Likewise.
12087 * doc/posix-functions/wmemcpy.texi: Likewise.
12088 * doc/posix-functions/wmemmove.texi: Likewise.
12089 * doc/posix-functions/wmemset.texi: Likewise.
12090 * doc/posix-functions/wprintf.texi: Likewise.
12091 * doc/posix-functions/wscanf.texi: Likewise.
12093 2008-12-21 Bruno Haible <bruno@clisp.org>
12095 Update doc for HP-UX 11.11.
12096 * doc/posix-functions/btowc.texi: Clarify that the function is missing
12097 in HP-UX version 11.00, not in all versions of HP-UX 11.
12098 * doc/posix-functions/fwide.texi: Likewise.
12099 * doc/posix-functions/fwprintf.texi: Likewise.
12100 * doc/posix-functions/fwscanf.texi: Likewise.
12101 * doc/posix-functions/inet_ntop.texi: Likewise.
12102 * doc/posix-functions/inet_pton.texi: Likewise.
12103 * doc/posix-functions/mbrlen.texi: Likewise.
12104 * doc/posix-functions/mbrtowc.texi: Likewise.
12105 * doc/posix-functions/mbsinit.texi: Likewise.
12106 * doc/posix-functions/mbsrtowcs.texi: Likewise.
12107 * doc/posix-functions/swprintf.texi: Likewise.
12108 * doc/posix-functions/swscanf.texi: Likewise.
12109 * doc/posix-functions/towctrans.texi: Likewise.
12110 * doc/posix-functions/vfwprintf.texi: Likewise.
12111 * doc/posix-functions/vswprintf.texi: Likewise.
12112 * doc/posix-functions/vwprintf.texi: Likewise.
12113 * doc/posix-functions/wcrtomb.texi: Likewise.
12114 * doc/posix-functions/wcsrtombs.texi: Likewise.
12115 * doc/posix-functions/wcsstr.texi: Likewise.
12116 * doc/posix-functions/wctob.texi: Likewise.
12117 * doc/posix-functions/wctrans.texi: Likewise.
12118 * doc/posix-functions/wmemchr.texi: Likewise.
12119 * doc/posix-functions/wmemcmp.texi: Likewise.
12120 * doc/posix-functions/wmemcpy.texi: Likewise.
12121 * doc/posix-functions/wmemmove.texi: Likewise.
12122 * doc/posix-functions/wmemset.texi: Likewise.
12123 * doc/posix-functions/wprintf.texi: Likewise.
12124 * doc/posix-functions/wscanf.texi: Likewise.
12126 2008-12-21 Bruno Haible <bruno@clisp.org>
12128 Work around a portability problem.
12129 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
12130 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
12132 2008-12-20 Bruno Haible <bruno@clisp.org>
12134 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
12135 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
12136 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
12137 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
12138 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
12140 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
12141 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
12143 (GNULIB_defined_mbstate_t): New macro.
12144 (mbsinit): Redefine if REPLACE_MBSINIT is set.
12145 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
12146 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
12147 reuses the system's mbrtowc function but works around the bugs.
12148 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
12149 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
12151 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
12152 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
12153 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
12154 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
12155 REPLACE_MBSINIT if mbsinit needs to be overridden.
12156 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
12157 REPLACE_MBSINIT, REPLACE_MBRTOWC.
12158 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
12159 REPLACE_MBSINIT, REPLACE_MBRTOWC.
12160 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
12162 (Depends): Add mbsinit.
12163 * modules/mbsinit (Depends): Add mbrtowc.
12164 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
12166 2008-12-20 Bruno Haible <bruno@clisp.org>
12168 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
12169 so that there are no conversion errors on AIX.
12170 * tests/test-mbsrtowcs.c (main): LIkewise.
12172 2008-12-20 Bruno Haible <bruno@clisp.org>
12174 Work around wctob bug on Solaris <= 9.
12175 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
12176 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
12177 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
12178 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
12179 * modules/wctob (Files): Add m4/locale-fr.m4.
12180 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
12182 2008-12-20 Bruno Haible <bruno@clisp.org>
12184 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
12186 * tests/test-select-in.sh: Likewise.
12187 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12189 2008-12-20 Bruno Haible <bruno@clisp.org>
12191 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
12192 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
12195 2008-12-20 Bruno Haible <bruno@clisp.org>
12197 Ensure mbstate_t is defined on HP-UX 11.11.
12198 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
12199 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
12200 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
12201 AC_USE_SYSTEM_EXTENSIONS.
12202 * modules/fnmatch (Depends-on): Add extensions.
12203 * modules/mbrlen (Depends-on): Likewise.
12204 * modules/mbrtowc (Depends-on): Likewise.
12205 * modules/mbsinit (Depends-on): Likewise.
12206 * modules/mbsrtowcs (Depends-on): Likewise.
12207 * modules/mbswidth (Depends-on): Likewise.
12208 * modules/quotearg (Depends-on): Likewise.
12209 * modules/strftime (Depends-on): Likewise.
12211 2008-12-20 Bruno Haible <bruno@clisp.org>
12213 Ensure wctob is declared on IRIX 6.5.
12214 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
12215 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
12216 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
12217 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
12219 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
12221 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
12223 2008-12-19 Bruno Haible <bruno@clisp.org>
12225 * modules/mbsrtowcs-tests: New file.
12226 * tests/test-mbsrtowcs1.sh: New file.
12227 * tests/test-mbsrtowcs2.sh: New file.
12228 * tests/test-mbsrtowcs3.sh: New file.
12229 * tests/test-mbsrtowcs4.sh: New file.
12230 * tests/test-mbsrtowcs.c: New file.
12232 New module 'mbsrtowcs'.
12233 * lib/wchar.in.h (mbsrtowcs): New declaration.
12234 * lib/mbsrtowcs.c: New file.
12235 * m4/mbsrtowcs.m4: New file.
12236 * modules/mbsrtowcs: New file.
12237 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
12239 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
12241 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
12243 2008-12-19 Bruno Haible <bruno@clisp.org>
12245 New module 'mbrlen'.
12246 * lib/wchar.in.h (mbrlen): New declaration.
12247 * lib/mbrlen.c: New file.
12248 * m4/mbrlen.m4: New file.
12249 * modules/mbrlen: New file.
12250 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
12252 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
12254 * doc/posix-functions/mbrlen.texi: Document the new module.
12256 2008-12-19 Bruno Haible <bruno@clisp.org>
12258 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
12259 * modules/mbrtowc (Depends-on): Add verify.
12260 Suggested by Paul Eggert.
12262 2008-12-18 Bruno Haible <bruno@clisp.org>
12264 * modules/mbsinit-tests: New file.
12265 * tests/test-mbsinit.sh: New file.
12266 * tests/test-mbsinit.c: New file.
12268 2008-12-18 Bruno Haible <bruno@clisp.org>
12270 * modules/mbrtowc-tests: New file.
12271 * tests/test-mbrtowc1.sh: New file.
12272 * tests/test-mbrtowc2.sh: New file.
12273 * tests/test-mbrtowc3.sh: New file.
12274 * tests/test-mbrtowc4.sh: New file.
12275 * tests/test-mbrtowc.c: New file.
12277 New module 'mbrtowc'.
12278 * lib/wchar.in.h (mbstate_t): Override when the system does not have
12279 mbsinit and mbrtowc.
12280 (mbrtowc): New declaration.
12281 * lib/mbrtowc.c: New file.
12282 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
12283 * modules/mbrtowc: New file.
12284 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
12286 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
12288 * doc/posix-functions/mbrtowc.texi: Document the new module.
12290 2008-12-18 Bruno Haible <bruno@clisp.org>
12292 New module 'wctob'.
12293 * lib/wchar.in.h (wctob): New declaration.
12294 * lib/wctob.c: New file.
12295 * m4/wctob.m4: New file.
12296 * modules/wctob: New file.
12297 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
12299 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
12300 * doc/posix-functions/wctob.texi: Document the new module.
12302 2008-12-18 Bruno Haible <bruno@clisp.org>
12304 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
12305 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
12307 2008-12-18 Simon Josefsson <simon@josefsson.org>
12309 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
12310 G. Christensen" <tgc@jupiterrise.com>.
12312 * lib/flock.c: Need to include errno.h. Reported by "Tom
12313 G. Christensen" <tgc@jupiterrise.com>.
12315 * lib/flock.c: Need to include string.h. Reported by "Tom
12316 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
12319 2008-12-18 Bruno Haible <bruno@clisp.org>
12321 * m4/locale-ja.m4: New file, from GNU gettext.
12323 2008-12-17 Bruno Haible <bruno@clisp.org>
12325 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
12326 Suggested by Eric Blake.
12328 2008-12-17 Bruno Haible <bruno@clisp.org>
12330 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
12332 2008-12-17 Bruno Haible <bruno@clisp.org>
12334 * lib/mbsinit.c: Include verify.h. Verify an assumption.
12335 * modules/mbsinit (Depends-on): Add verify.
12336 Suggested by Paul Eggert.
12338 2008-12-17 Bruno Haible <bruno@clisp.org>
12340 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
12341 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
12343 * m4/mbiter.m4 (gl_MBITER): LIkewise.
12344 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
12345 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
12346 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
12347 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
12348 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
12349 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
12350 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
12351 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
12352 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
12353 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
12354 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
12355 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
12356 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
12357 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
12358 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
12359 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
12360 * modules/trim (configure.ac): Likewise.
12362 2008-12-17 Bruno Haible <bruno@clisp.org>
12364 * modules/btowc-tests: New file.
12365 * tests/test-btowc1.sh: New file.
12366 * tests/test-btowc2.sh: New file.
12367 * tests/test-btowc.c: New file.
12369 New module 'btowc'.
12370 * lib/wchar.in.h (btowc): New declaration.
12371 * lib/btowc.c: New file.
12372 * m4/btowc.m4: New file.
12373 * modules/btowc: New file.
12374 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
12376 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
12377 * doc/posix-functions/btowc.texi: Document the new module.
12379 2008-12-17 Bruno Haible <bruno@clisp.org>
12381 New module 'mbsinit'.
12382 * lib/wchar.in.h (mbsinit): New declaration.
12383 * lib/mbsinit.c: New file.
12384 * m4/mbsinit.m4: New file.
12385 * modules/mbsinit: New file.
12386 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
12388 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
12390 * doc/posix-functions/mbsinit.texi: Document the new module.
12392 2008-12-16 Bruno Haible <bruno@clisp.org>
12394 * lib/unistd.in.h: Add comment.
12395 * tests/test-environ.c: Don't include <stdlib.h>.
12397 2008-12-16 Bruno Haible <bruno@clisp.org>
12399 * lib/parse-duration.h (parse_duration): Document return value
12401 * lib/parse-duration.c: Include specification header first. Add
12404 (parse_year_month_day, parse_hour_minute_second): Move side effects
12405 outside of strchr call.
12406 (parse_non_iso8601): Move side effects outside of isspace call.
12407 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
12410 2008-12-16 Bruno Haible <bruno@clisp.org>
12412 * tests/test-parse-duration.sh: Produce no output when the test
12415 2008-12-16 Bruno Haible <bruno@clisp.org>
12417 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
12420 2008-12-15 Bruno Haible <bruno@clisp.org>
12422 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
12423 * doc/glibc-functions/flistxattr.texi: Likewise.
12424 * doc/glibc-functions/fopencookie.texi: Likewise.
12425 * doc/glibc-functions/fremovexattr.texi: Likewise.
12426 * doc/glibc-functions/fsetxattr.texi: Likewise.
12427 * doc/glibc-functions/getxattr.texi: Likewise.
12428 * doc/glibc-functions/lgetxattr.texi: Likewise.
12429 * doc/glibc-functions/listxattr.texi: Likewise.
12430 * doc/glibc-functions/llistxattr.texi: Likewise.
12431 * doc/glibc-functions/lremovexattr.texi: Likewise.
12432 * doc/glibc-functions/lsetxattr.texi: Likewise.
12433 * doc/glibc-functions/removexattr.texi: Likewise.
12434 * doc/glibc-functions/setxattr.texi: Likewise.
12435 * doc/posix-functions/open_memstream.texi: Likewise.
12437 2008-12-15 Eric Blake <ebb9@byu.net>
12439 Update doc for cygwin 1.7.
12440 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
12442 * doc/posix-functions/fchmodat.texi: Likewise.
12443 * doc/posix-functions/fchownat.texi: Likewise.
12444 * doc/posix-functions/fdopendir.texi: Likewise.
12445 * doc/posix-functions/fmemopen.texi: Likewise.
12446 * doc/posix-functions/freeaddrinfo.texi: Likewise.
12447 * doc/posix-functions/fstatat.texi: Likewise.
12448 * doc/posix-functions/futimens.texi: Likewise.
12449 * doc/posix-functions/gai_strerror.texi: Likewise.
12450 * doc/posix-functions/getaddrinfo.texi: Likewise.
12451 * doc/posix-functions/getnameinfo.texi: Likewise.
12452 * doc/posix-functions/if_freenameindex.texi: Likewise.
12453 * doc/posix-functions/if_indextoname.texi: Likewise.
12454 * doc/posix-functions/if_nameindex.texi: Likewise.
12455 * doc/posix-functions/if_nametoindex.texi: Likewise.
12456 * doc/posix-functions/insque.texi: Likewise.
12457 * doc/posix-functions/linkat.texi: Likewise.
12458 * doc/posix-functions/llrint.texi: Likewise.
12459 * doc/posix-functions/llrintf.texi: Likewise.
12460 * doc/posix-functions/llrintl.texi: Likewise.
12461 * doc/posix-functions/lockf.texi: Likewise.
12462 * doc/posix-functions/lrintl.texi: Likewise.
12463 * doc/posix-functions/mkdirat.texi: Likewise.
12464 * doc/posix-functions/mkfifoat.texi: Likewise.
12465 * doc/posix-functions/mknodat.texi: Likewise.
12466 * doc/posix-functions/mq_close.texi: Likewise.
12467 * doc/posix-functions/mq_getattr.texi: Likewise.
12468 * doc/posix-functions/mq_notify.texi: Likewise.
12469 * doc/posix-functions/mq_open.texi: Likewise.
12470 * doc/posix-functions/mq_receive.texi: Likewise.
12471 * doc/posix-functions/mq_send.texi: Likewise.
12472 * doc/posix-functions/mq_setattr.texi: Likewise.
12473 * doc/posix-functions/mq_timedreceive.texi: Likewise.
12474 * doc/posix-functions/mq_timedsend.texi: Likewise.
12475 * doc/posix-functions/mq_unlink.texi: Likewise.
12476 * doc/posix-functions/open_memstream.texi: Likewise.
12477 * doc/posix-functions/openat.texi: Likewise.
12478 * doc/posix-functions/posix_fadvise.texi: Likewise.
12479 * doc/posix-functions/posix_fallocate.texi: Likewise.
12480 * doc/posix-functions/posix_madvise.texi: Likewise.
12481 * doc/posix-functions/posix_memalign.texi: Likewise.
12482 * doc/posix-functions/posix_openpt.texi: Likewise.
12483 * doc/posix-functions/readlinkat.texi: Likewise.
12484 * doc/posix-functions/remque.texi: Likewise.
12485 * doc/posix-functions/renameat.texi: Likewise.
12486 * doc/posix-functions/rintl.texi: Likewise.
12487 * doc/posix-functions/sem_unlink.texi: Likewise.
12488 * doc/posix-functions/shm_open.texi: Likewise.
12489 * doc/posix-functions/shm_unlink.texi: Likewise.
12490 * doc/posix-functions/signgam.texi: Likewise.
12491 * doc/posix-functions/sigset.texi: Likewise.
12492 * doc/posix-functions/stpcpy.texi: Likewise.
12493 * doc/posix-functions/stpncpy.texi: Likewise.
12494 * doc/posix-functions/strerror.texi: Likewise.
12495 * doc/posix-functions/strtod.texi: Likewise.
12496 * doc/posix-functions/symlinkat.texi: Likewise.
12497 * doc/posix-functions/unlinkat.texi: Likewise.
12498 * doc/posix-functions/utimensat.texi: Likewise.
12499 * doc/glibc-functions/bindresvport.texi: Likewise.
12500 * doc/glibc-functions/dn_expand.texi: Likewise.
12501 * doc/glibc-functions/exp10.texi: Likewise.
12502 * doc/glibc-functions/exp10f.texi: Likewise.
12503 * doc/glibc-functions/fgetxattr.texi: Likewise.
12504 * doc/glibc-functions/flistxattr.texi: Likewise.
12505 * doc/glibc-functions/fopencookie.texi: Likewise.
12506 * doc/glibc-functions/freeifaddrs.texi: Likewise.
12507 * doc/glibc-functions/fremovexattr.texi: Likewise.
12508 * doc/glibc-functions/fsetxattr.texi: Likewise.
12509 * doc/glibc-functions/getifaddrs.texi: Likewise.
12510 * doc/glibc-functions/getxattr.texi: Likewise.
12511 * doc/glibc-functions/lgetxattr.texi: Likewise.
12512 * doc/glibc-functions/listxattr.texi: Likewise.
12513 * doc/glibc-functions/llistxattr.texi: Likewise.
12514 * doc/glibc-functions/lremovexattr.texi: Likewise.
12515 * doc/glibc-functions/lsetxattr.texi: Likewise.
12516 * doc/glibc-functions/pow10.texi: Likewise.
12517 * doc/glibc-functions/pow10f.texi: Likewise.
12518 * doc/glibc-functions/rcmd_af.texi: Likewise.
12519 * doc/glibc-functions/removexattr.texi: Likewise.
12520 * doc/glibc-functions/res_init.texi: Likewise.
12521 * doc/glibc-functions/res_mkquery.texi: Likewise.
12522 * doc/glibc-functions/res_query.texi: Likewise.
12523 * doc/glibc-functions/res_querydomain.texi: Likewise.
12524 * doc/glibc-functions/res_send.texi: Likewise.
12525 * doc/glibc-functions/rresvport_af.texi: Likewise.
12526 * doc/glibc-functions/setxattr.texi: Likewise.
12527 * doc/glibc-functions/strcasestr.texi: Likewise.
12529 2008-12-15 Bruno Haible <bruno@clisp.org>
12531 Fix compilation error on OSF/1 4.0.
12532 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
12533 <sys/time.h>, simply delegate to the system header.
12534 Reported by Daniel Richard G. <oss@teragram.com>.
12536 2008-12-15 Bruno Haible <bruno@clisp.org>
12538 * doc/posix-functions/openat.texi: Mention the 'openat' module.
12539 * doc/posix-functions/fchmodat.texi: Likewise.
12540 * doc/posix-functions/fchownat.texi: Likewise.
12541 * doc/posix-functions/fdopendir.texi: Likewise.
12542 * doc/posix-functions/fstatat.texi: Likewise.
12543 * doc/posix-functions/mkdirat.texi: Likewise.
12544 * doc/posix-functions/unlinkat.texi: Likewise.
12546 2008-12-14 Bruno Haible <bruno@clisp.org>
12548 Update doc for POSIX:2008.
12549 * doc/posix-functions/faccessat.texi: New file.
12550 * doc/posix-functions/fchmodat.texi: New file.
12551 * doc/posix-functions/fchownat.texi: New file.
12552 * doc/posix-functions/fdopendir.texi: New file.
12553 * doc/posix-functions/fstatat.texi: New file.
12554 * doc/posix-functions/futimens.texi: New file.
12555 * doc/posix-functions/linkat.texi: New file.
12556 * doc/posix-functions/mkdirat.texi: New file.
12557 * doc/posix-functions/mkfifoat.texi: New file.
12558 * doc/posix-functions/mknodat.texi: New file.
12559 * doc/posix-functions/open_wmemstream.texi: New file.
12560 * doc/posix-functions/openat.texi: New file.
12561 * doc/posix-functions/psiginfo.texi: New file.
12562 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
12563 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
12564 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
12565 * doc/posix-functions/readlinkat.texi: New file.
12566 * doc/posix-functions/renameat.texi: New file.
12567 * doc/posix-functions/strerror_l.texi: New file.
12568 * doc/posix-functions/symlinkat.texi: New file.
12569 * doc/posix-functions/unlinkat.texi: New file.
12570 * doc/posix-functions/utimensat.texi: New file.
12571 * doc/gnulib.texi (Function Substitutes): Add these subsections.
12573 2008-12-14 Bruno Haible <bruno@clisp.org>
12575 Update doc for POSIX:2008.
12576 * doc/posix-functions/alphasort.texi: Renamed from
12577 doc/glibc-functions/alphasort.texi.
12578 * doc/posix-functions/dirfd.texi: Renamed from
12579 doc/glibc-functions/dirfd.texi.
12580 * doc/posix-functions/dprintf.texi: Renamed from
12581 doc/glibc-functions/dprintf.texi.
12582 * doc/posix-functions/duplocale.texi: Renamed from
12583 doc/glibc-functions/duplocale.texi.
12584 * doc/posix-functions/fexecve.texi: Renamed from
12585 doc/glibc-functions/fexecve.texi.
12586 * doc/posix-functions/fmemopen.texi: Renamed from
12587 doc/glibc-functions/fmemopen.texi.
12588 * doc/posix-functions/freelocale.texi: Renamed from
12589 doc/glibc-functions/freelocale.texi.
12590 * doc/posix-functions/getdate_err.texi: Renamed from
12591 doc/glibc-functions/getdate_err.texi.
12592 * doc/posix-functions/isalnum_l.texi: Renamed from
12593 doc/glibc-functions/isalnum_l.texi.
12594 * doc/posix-functions/isalpha_l.texi: Renamed from
12595 doc/glibc-functions/isalpha_l.texi.
12596 * doc/posix-functions/isblank_l.texi: Renamed from
12597 doc/glibc-functions/isblank_l.texi.
12598 * doc/posix-functions/iscntrl_l.texi: Renamed from
12599 doc/glibc-functions/iscntrl_l.texi.
12600 * doc/posix-functions/isdigit_l.texi: Renamed from
12601 doc/glibc-functions/isdigit_l.texi.
12602 * doc/posix-functions/isgraph_l.texi: Renamed from
12603 doc/glibc-functions/isgraph_l.texi.
12604 * doc/posix-functions/islower_l.texi: Renamed from
12605 doc/glibc-functions/islower_l.texi.
12606 * doc/posix-functions/isprint_l.texi: Renamed from
12607 doc/glibc-functions/isprint_l.texi.
12608 * doc/posix-functions/ispunct_l.texi: Renamed from
12609 doc/glibc-functions/ispunct_l.texi.
12610 * doc/posix-functions/isspace_l.texi: Renamed from
12611 doc/glibc-functions/isspace_l.texi.
12612 * doc/posix-functions/isupper_l.texi: Renamed from
12613 doc/glibc-functions/isupper_l.texi.
12614 * doc/posix-functions/iswalnum_l.texi: Renamed from
12615 doc/glibc-functions/iswalnum_l.texi.
12616 * doc/posix-functions/iswalpha_l.texi: Renamed from
12617 doc/glibc-functions/iswalpha_l.texi.
12618 * doc/posix-functions/iswblank_l.texi: Renamed from
12619 doc/glibc-functions/iswblank_l.texi.
12620 * doc/posix-functions/iswcntrl_l.texi: Renamed from
12621 doc/glibc-functions/iswcntrl_l.texi.
12622 * doc/posix-functions/iswctype_l.texi: Renamed from
12623 doc/glibc-functions/iswctype_l.texi.
12624 * doc/posix-functions/iswdigit_l.texi: Renamed from
12625 doc/glibc-functions/iswdigit_l.texi.
12626 * doc/posix-functions/iswgraph_l.texi: Renamed from
12627 doc/glibc-functions/iswgraph_l.texi.
12628 * doc/posix-functions/iswlower_l.texi: Renamed from
12629 doc/glibc-functions/iswlower_l.texi.
12630 * doc/posix-functions/iswprint_l.texi: Renamed from
12631 doc/glibc-functions/iswprint_l.texi.
12632 * doc/posix-functions/iswpunct_l.texi: Renamed from
12633 doc/glibc-functions/iswpunct_l.texi.
12634 * doc/posix-functions/iswspace_l.texi: Renamed from
12635 doc/glibc-functions/iswspace_l.texi.
12636 * doc/posix-functions/iswupper_l.texi: Renamed from
12637 doc/glibc-functions/iswupper_l.texi.
12638 * doc/posix-functions/iswxdigit_l.texi: Renamed from
12639 doc/glibc-functions/iswxdigit_l.texi.
12640 * doc/posix-functions/isxdigit_l.texi: Renamed from
12641 doc/glibc-functions/isxdigit_l.texi.
12642 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
12643 doc/glibc-functions/mbsnrtowcs.texi.
12644 * doc/posix-functions/mkdtemp.texi: Renamed from
12645 doc/glibc-functions/mkdtemp.texi.
12646 * doc/posix-functions/newlocale.texi: Renamed from
12647 doc/glibc-functions/newlocale.texi.
12648 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
12649 doc/glibc-functions/nl_langinfo_l.texi.
12650 * doc/posix-functions/open_memstream.texi: Renamed from
12651 doc/glibc-functions/open_memstream.texi.
12652 * doc/posix-functions/opterr.texi: Renamed from
12653 doc/glibc-functions/opterr.texi.
12654 * doc/posix-functions/optind.texi: Renamed from
12655 doc/glibc-functions/optind.texi.
12656 * doc/posix-functions/optopt.texi: Renamed from
12657 doc/glibc-functions/optopt.texi.
12658 * doc/posix-functions/psignal.texi: Renamed from
12659 doc/glibc-functions/psignal.texi.
12660 * doc/posix-functions/scandir.texi: Renamed from
12661 doc/glibc-functions/scandir.texi.
12662 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
12663 doc/glibc-functions/sched_get_priority_min.texi.
12664 * doc/posix-functions/signgam.texi: Renamed from
12665 doc/glibc-functions/signgam.texi.
12666 * doc/posix-functions/stpcpy.texi: Renamed from
12667 doc/glibc-functions/stpcpy.texi.
12668 * doc/posix-functions/stpncpy.texi: Renamed from
12669 doc/glibc-functions/stpncpy.texi.
12670 * doc/posix-functions/strcasecmp_l.texi: Renamed from
12671 doc/glibc-functions/strcasecmp_l.texi.
12672 * doc/posix-functions/strcoll_l.texi: Renamed from
12673 doc/glibc-functions/strcoll_l.texi.
12674 * doc/posix-functions/strfmon_l.texi: Renamed from
12675 doc/glibc-functions/strfmon_l.texi.
12676 * doc/posix-functions/strftime_l.texi: Renamed from
12677 doc/glibc-functions/strftime_l.texi.
12678 * doc/posix-functions/strncasecmp_l.texi: Renamed from
12679 doc/glibc-functions/strncasecmp_l.texi.
12680 * doc/posix-functions/strndup.texi: Renamed from
12681 doc/glibc-functions/strndup.texi.
12682 * doc/posix-functions/strnlen.texi: Renamed from
12683 doc/glibc-functions/strnlen.texi.
12684 * doc/posix-functions/strsignal.texi: Renamed from
12685 doc/glibc-functions/strsignal.texi.
12686 * doc/posix-functions/strxfrm_l.texi: Renamed from
12687 doc/glibc-functions/strxfrm_l.texi.
12688 * doc/posix-functions/timer_gettime.texi: Renamed from
12689 doc/glibc-functions/timer_gettime.texi.
12690 * doc/posix-functions/tolower_l.texi: Renamed from
12691 doc/glibc-functions/tolower_l.texi.
12692 * doc/posix-functions/toupper_l.texi: Renamed from
12693 doc/glibc-functions/toupper_l.texi.
12694 * doc/posix-functions/towctrans_l.texi: Renamed from
12695 doc/glibc-functions/towctrans_l.texi.
12696 * doc/posix-functions/towlower_l.texi: Renamed from
12697 doc/glibc-functions/towlower_l.texi.
12698 * doc/posix-functions/towupper_l.texi: Renamed from
12699 doc/glibc-functions/towupper_l.texi.
12700 * doc/posix-functions/uselocale.texi: Renamed from
12701 doc/glibc-functions/uselocale.texi.
12702 * doc/posix-functions/vdprintf.texi: Renamed from
12703 doc/glibc-functions/vdprintf.texi.
12704 * doc/posix-functions/wcpcpy.texi:
12705 Renamed from doc/glibc-functions/wcpcpy.texi.
12706 * doc/posix-functions/wcpncpy.texi: Renamed from
12707 doc/glibc-functions/wcpncpy.texi.
12708 * doc/posix-functions/wcscasecmp.texi: Renamed from
12709 doc/glibc-functions/wcscasecmp.texi.
12710 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
12711 doc/glibc-functions/wcscasecmp_l.texi.
12712 * doc/posix-functions/wcscoll_l.texi: Renamed from
12713 doc/glibc-functions/wcscoll_l.texi.
12714 * doc/posix-functions/wcsdup.texi: Renamed from
12715 doc/glibc-functions/wcsdup.texi.
12716 * doc/posix-functions/wcsncasecmp.texi: Renamed from
12717 doc/glibc-functions/wcsncasecmp.texi.
12718 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
12719 doc/glibc-functions/wcsncasecmp_l.texi.
12720 * doc/posix-functions/wcsnlen.texi: Renamed from
12721 doc/glibc-functions/wcsnlen.texi.
12722 * doc/posix-functions/wcsnrtombs.texi: Renamed from
12723 doc/glibc-functions/wcsnrtombs.texi.
12724 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
12725 doc/glibc-functions/wcsxfrm_l.texi.
12726 * doc/posix-functions/wctrans_l.texi: Renamed from
12727 doc/glibc-functions/wctrans_l.texi.
12728 * doc/posix-functions/wctype_l.texi: Renamed from
12729 doc/glibc-functions/wctype_l.texi.
12730 * doc/gnulib.texi (Function Substitutes): Add these subsections.
12731 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
12732 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
12733 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
12735 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
12738 2008-12-14 Bruno Haible <bruno@clisp.org>
12740 Update doc for POSIX:2008.
12741 * doc/posix-functions/*.texi: Update URL of POSIX specification.
12743 2008-12-14 Bruno Haible <bruno@clisp.org>
12745 Update doc for POSIX:2008.
12746 * doc/pastposix-functions/bcmp.texi: Renamed from
12747 doc/posix-functions/bcmp.texi.
12748 * doc/pastposix-functions/bcopy.texi: Renamed from
12749 doc/posix-functions/bcopy.texi.
12750 * doc/pastposix-functions/bsd_signal.texi: Renamed from
12751 doc/posix-functions/bsd_signal.texi.
12752 * doc/pastposix-functions/bzero.texi: Renamed from
12753 doc/posix-functions/bzero.texi.
12754 * doc/pastposix-functions/ecvt.texi: Renamed from
12755 doc/posix-functions/ecvt.texi.
12756 * doc/pastposix-functions/fcvt.texi: Renamed from
12757 doc/posix-functions/fcvt.texi.
12758 * doc/pastposix-functions/ftime.texi: Renamed from
12759 doc/posix-functions/ftime.texi.
12760 * doc/pastposix-functions/gcvt.texi: Renamed from
12761 doc/posix-functions/gcvt.texi.
12762 * doc/pastposix-functions/getcontext.texi: Renamed from
12763 doc/posix-functions/getcontext.texi.
12764 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
12765 doc/posix-functions/gethostbyaddr.texi.
12766 * doc/pastposix-functions/gethostbyname.texi: Renamed from
12767 doc/posix-functions/gethostbyname.texi.
12768 * doc/pastposix-functions/getwd.texi: Renamed from
12769 doc/posix-functions/getwd.texi.
12770 * doc/pastposix-functions/h_errno.texi: Renamed from
12771 doc/posix-functions/h_errno.texi.
12772 * doc/pastposix-functions/index.texi: Renamed from
12773 doc/posix-functions/index.texi.
12774 * doc/pastposix-functions/makecontext.texi: Renamed from
12775 doc/posix-functions/makecontext.texi.
12776 * doc/pastposix-functions/mktemp.texi: Renamed from
12777 doc/posix-functions/mktemp.texi.
12778 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
12779 doc/posix-functions/pthread_attr_getstackaddr.texi.
12780 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
12781 doc/posix-functions/pthread_attr_setstackaddr.texi.
12782 * doc/pastposix-functions/rindex.texi: Renamed from
12783 doc/posix-functions/rindex.texi.
12784 * doc/pastposix-functions/scalb.texi: Renamed from
12785 doc/posix-functions/scalb.texi.
12786 * doc/pastposix-functions/setcontext.texi: Renamed from
12787 doc/posix-functions/setcontext.texi.
12788 * doc/pastposix-functions/swapcontext.texi: Renamed from
12789 doc/posix-functions/swapcontext.texi.
12790 * doc/pastposix-functions/ualarm.texi: Renamed from
12791 doc/posix-functions/ualarm.texi.
12792 * doc/pastposix-functions/usleep.texi: Renamed from
12793 doc/posix-functions/usleep.texi.
12794 * doc/pastposix-functions/vfork.texi: Renamed from
12795 doc/posix-functions/vfork.texi.
12796 * doc/pastposix-functions/wcswcs.texi: Renamed from
12797 doc/posix-functions/wcswcs.texi.
12798 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
12799 (Function Substitutes): Update.
12801 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12803 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
12806 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12807 Bruno Haible <bruno@clisp.org>
12809 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
12811 2008-12-13 Bruno Haible <bruno@clisp.org>
12813 * modules/strtoull (Depends-on): Remove unistd.
12815 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12817 * modules/strtoull (Depends-on): Add stdlib.
12819 2008-12-11 Simon Josefsson <simon@josefsson.org>
12821 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
12823 2008-12-10 Jim Meyering <meyering@redhat.com>
12825 gl_ASSERT: don't say assertions are disabled when they're not
12826 * m4/assert.m4 (gl_ASSERT): Do not make configure report
12827 "checking whether to enable assertions... no", when they are in
12828 fact enabled. This is solely a bug in the output of configure.
12829 In spite of saying "no", NDEBUG was not defined in that case.
12830 Also, as noted by Eric Blake, leave assertions enabled upon
12831 --enable-assert=INVALID.
12833 2008-12-10 Bruno Haible <bruno@clisp.org>
12835 Change MODULES.html to refer to POSIX:2008 where possible.
12836 * MODULES.html.sh (POSIX2008_URL): New variable.
12837 (posix_headers): Remove sys/timeb, ucontext.
12838 (posix2001_headers): New variable.
12839 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
12840 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
12841 index, makecontext, mktemp, pthread_attr_getstackaddr,
12842 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
12843 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
12844 (posix2001_functions): New variable.
12845 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
12848 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12850 add missing include to parse-duration.c
12851 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
12852 * modules/parse-duration (Depends-on): Add xalloc.
12854 fix sed script reading maint.mk
12855 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
12856 (syntax-check-rules): Use it.
12858 2008-12-09 Bruno Haible <bruno@clisp.org>
12860 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
12861 MacOS X 10.4/PowerPC.
12862 Reported by Simon Josefsson.
12864 2008-12-08 Jim Meyering <meyering@redhat.com>
12866 work around mingw's lack of some S_IF definitions
12867 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
12868 Reported by Simon Josefsson.
12870 2008-12-08 Bruno Haible <bruno@clisp.org>
12872 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
12873 applied to variables. Needed on MacOS X 10.4/PowerPC.
12874 Reported by Simon Josefsson.
12876 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
12877 and Eric Blake <ebb9@byu.net>
12879 assert: honor --enable-assert
12880 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
12881 order to honor --enable-assert, rather than treating it as a
12882 synonym for --disable-assert.
12884 2008-12-08 Jim Meyering <meyering@redhat.com>
12886 * lib/posixtm.c: Remove now-useless declaration of mktime.
12888 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
12890 2008-12-07 Bruno Haible <bruno@clisp.org>
12892 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
12893 test_once): Mark functions as static.
12894 * tests/test-tls.c (test_tls): Likewise.
12896 2008-12-07 Bruno Haible <bruno@clisp.org>
12898 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
12899 iconv_register_autodetect.
12901 2008-12-07 Jim Meyering <meyering@redhat.com>
12903 posixtm.c: avoid a warning
12904 * lib/posixtm.c (posixtime): Don't initialize tm0.
12905 It's no longer needed to placate gcc4's -Wuninitialized,
12906 and the attempt to placate would elicit a new warning.
12908 unicodeio.c: mark unused parameters
12909 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
12910 (fallback_failure_callback): Likewise.
12912 2008-12-07 Bruno Haible <bruno@clisp.org>
12914 * gnulib-tool (func_create_testdir): When building the tests
12915 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
12916 Reported by Simon Josefsson.
12918 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12920 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
12922 2008-12-06 Bruno Haible <bruno@clisp.org>
12924 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
12925 Suggested by Eric Blake.
12927 2008-12-06 Bruno Haible <bruno@clisp.org>
12929 Fix a c-stack test failure on MacOS X.
12930 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
12931 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
12932 handler for SIGBUS as well.
12933 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
12934 install a signal handler for SIGBUS as well.
12935 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
12937 2008-12-06 Bruno Haible <bruno@clisp.org>
12939 Advocacy documentation.
12940 * doc/gnulib-intro.texi (Benefits): New section.
12941 * doc/gnulib.texi: Update.
12943 2008-12-06 Bruno Haible <bruno@clisp.org>
12945 Document the 'manywarnings' module.
12946 * doc/manywarnings.texi: New file.
12947 * doc/gnulib.texi: Include it.
12949 2008-12-05 Eric Blake <ebb9@byu.net>
12951 tests: silence some gcc warnings
12952 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
12953 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
12956 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12957 Bruno Haible <bruno@clisp.org>
12959 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
12961 2008-11-29 Jim Meyering <meyering@redhat.com>
12963 unicodeio.c: mark unused parameters
12964 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
12965 (fallback_failure_callback): Likewise.
12968 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
12969 (set_stat_type): Return S_IF*-valued "type" directly.
12970 Prompted by James Youngman's spotting a related bug.
12971 Confirmed by further testing through find.
12973 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
12974 * lib/fts.c (D_TYPE): Define.
12975 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
12976 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
12977 (s_ifmt_shift_bits): New function.
12978 (set_stat_type): New function.
12979 (fts_build): When not calling fts_stat, call set_stat_type
12980 to propagate dirent.d_type info to fts_read caller.
12981 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
12982 fts_statp->st_mode type information may be valid.
12984 2008-11-28 Simon Josefsson <simon@josefsson.org>
12986 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
12987 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
12990 2008-11-20 Bruno Haible <bruno@clisp.org>
12992 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
12993 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
12995 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
12996 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
12997 * modules/math (Makefile.am): Substitute
12998 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
12999 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13001 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
13002 Bruno Haible <bruno@clisp.org>
13004 * lib/stdint.in.h: Define all type macros so that their expansion is
13005 a single typedef'ed token. Fixes a compilation failure in Boost which
13006 does "using ::int8_t;".
13008 2008-11-18 Simon Josefsson <simon@josefsson.org>
13010 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
13011 gl_MANYWARN_ALL_GCC.
13012 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
13013 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
13014 * modules/manywarnings: New file.
13015 * MODULES.html.sh: Mention manywarnings module.
13017 2008-11-18 Bruno Haible <bruno@clisp.org>
13019 * doc/gnulib-tool.texi (Unit tests): New section.
13021 2008-11-18 Simon Josefsson <simon@josefsson.org>
13023 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
13024 paths like 'lib/po/foo.po'.
13026 2008-11-17 Simon Josefsson <simon@josefsson.org>
13028 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
13029 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
13031 2008-11-17 Simon Josefsson <simon@josefsson.org>
13033 * m4/warnings.m4: Use CPPFLAGS to really check whether the
13036 2008-11-17 Simon Josefsson <simon@josefsson.org>
13038 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
13040 2008-11-17 Bruce Korb <bkorb@gnu.org>
13042 * modules/parse-duration-tests: New file.
13043 * tests/test-parse-duration.sh: New file.
13044 * tests/test-parse-duration.c: New file.
13046 New module 'parse-duration'.
13047 * lib/parse-duration.h: New file.
13048 * lib/parse-duration.c: New file.
13049 * modules/parse-duration: New file.
13051 2008-11-17 Bruno Haible <bruno@clisp.org>
13053 * tests/test-select-out.sh: Comment out the first pipe test.
13054 Reported by Simon Josefsson.
13056 2008-11-17 Bruno Haible <bruno@clisp.org>
13058 * modules/getaddrinfo (Depends-on): Add servent, hostent.
13059 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
13062 2008-11-17 Bruno Haible <bruno@clisp.org>
13064 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
13065 -lnetwork and -lnet. Needed for Haiku and BeOS.
13067 2008-11-16 Bruno Haible <bruno@clisp.org>
13069 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
13071 2008-11-16 Bruno Haible <bruno@clisp.org>
13073 Avoid test failure on Haiku.
13074 * tests/test-fsync.c: Include <errno.h>.
13075 (main): Don't require that fsync (0) fails.
13077 2008-11-15 Bruno Haible <bruno@clisp.org>
13079 New module 'hostent'.
13080 * modules/hostent: New file.
13081 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
13083 2008-11-15 Bruno Haible <bruno@clisp.org>
13085 New module 'servent'.
13086 * modules/servent: New file.
13087 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
13089 2008-11-15 Bruno Haible <bruno@clisp.org>
13091 Avoid generating same test program with two different rules.
13092 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
13093 test-frexp to test-frexp-nolibm.
13094 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
13095 test-frexpl to test-frexpl-nolibm.
13097 2008-11-15 Bruno Haible <bruno@clisp.org>
13099 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
13102 2008-11-15 Bruno Haible <bruno@clisp.org>
13104 * lib/netdb.in.h: Activate the definitions also when the system's
13105 <netdb.h> has 'struct addrinfo'.
13106 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
13107 EAI_OVERFLOW or AI_NUMERICSERV.
13108 * doc/posix-headers/netdb.texi: Document the problem.
13110 2008-11-15 Bruno Haible <bruno@clisp.org>
13112 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
13114 Make the 'sched' module work on platforms where <sched.h> exists but
13115 is incomplete (such as Haiku).
13116 * lib/sched.in.h; Include the system's <sched.h> if it exists.
13117 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
13118 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
13119 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
13120 HAVE_STRUCT_SCHED_PARAM.
13121 * modules/sched (Depends-on): Add include_next.
13122 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
13123 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
13124 * doc/posix-headers/sched.texi: Document the issue.
13126 2008-11-13 Jim Meyering <meyering@redhat.com>
13128 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
13129 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
13130 test would fail due to the difference in the Report bugs to ...
13131 line. The expected address is empty, "<>", while the actual
13132 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
13134 2008-11-12 Bruno Haible <bruno@clisp.org>
13136 lstat: don't compile lstat.c on systems lacking lstat
13137 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
13138 which don't have lstat; this is handled by lib/sys_stat.in.h already.
13139 Reported by Daniel P. Berrange via Jim Meyering.
13141 2008-11-12 Jim Meyering <meyering@redhat.com>
13143 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
13145 2008-11-12 Simon Josefsson <simon@josefsson.org>
13147 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
13150 2008-11-12 Bruno Haible <bruno@clisp.org>
13152 * lib/unicodeio.c: Include unistr.h.
13153 (utf8_wctomb): Remove function.
13154 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
13156 2008-11-12 Simon Josefsson <simon@josefsson.org>
13158 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
13159 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
13161 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
13163 2008-11-12 Simon Josefsson <simon@josefsson.org>
13165 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
13166 * doc/gnulib.texi: Add section for warnings.
13168 2008-11-11 Bruno Haible <bruno@clisp.org>
13170 * lib/sockets.h: Add a comment.
13172 2008-11-11 Karl Berry <karl@gnu.org>
13174 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
13176 2008-11-11 Eric Blake <ebb9@byu.net>
13178 fdl.texi: avoid git symlinks
13179 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
13181 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
13183 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
13185 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
13187 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
13188 (gl_WARN_ADD): Substitute $2 if literal.
13190 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
13192 * m4/warning.m4: Remove.
13194 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
13196 * m4/warnings.m4: Almost complete rewrite. :-)
13198 2008-11-10 Simon Josefsson <simon@josefsson.org>
13200 * modules/warnings: New module.
13201 * m4/warnings.m4: New file.
13202 * MODULES.html.sh: Mention warnings module.
13203 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
13204 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13206 2008-11-10 Eric Blake <ebb9@byu.net>
13208 fdl.texi: make a symlink to the latest version
13209 * doc/standards.texi: Revert today's earlier change.
13210 * doc/fdl-1.2.texi: Rename from old fdl.texi...
13211 * doc/fdl.texi: ...and replace this with a symlink to the newer
13214 2008-11-10 Bruno Haible <bruno@clisp.org>
13216 * tests/test-select-fd.c (main): Accept the result file name as fourth
13218 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
13219 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
13221 2008-11-10 Bruno Haible <bruno@clisp.org>
13223 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
13224 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
13225 as autoconf-substituted macros.
13226 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
13227 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
13228 gl_NETDB_H_DEFAULTS. Set these variables.
13229 * modules/netdb (Makefile.am): Substitute these variables.
13231 2008-11-10 Eric Blake <ebb9@byu.net>
13233 standards.texi: include correct file for FDL 1.3
13234 * doc/standards.texi (GNU Free Documentation License): Change
13235 include file to pull in FDL 1.3, not 1.2.
13237 fdl.texi: revert accidental change to license
13238 * doc/fdl.texi: This is FDL 1.2, not 1.3.
13240 2008-11-10 Bruno Haible <bruno@clisp.org>
13242 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
13243 cross-compiling guesses also when the native compile gives no result.
13245 2008-11-10 Bruno Haible <bruno@clisp.org>
13247 * lib/spawni.c (__spawni): Force variable into the stack.
13249 2008-11-10 Bruno Haible <bruno@clisp.org>
13251 Add support for Haiku.
13252 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
13253 glibc and BeOS, but also on Haiku.
13254 * lib/fpurge.c (fpurge): Likewise.
13255 * lib/freadable.c (freadable): Likewise.
13256 * lib/freadahead.c (freadahead): Likewise.
13257 * lib/freading.c (freading): Likewise.
13258 * lib/freadptr.c (freadptr): Likewise.
13259 * lib/freadseek.c (freadptrinc): Likewise.
13260 * lib/fseeko.c (rpl_fseeko): Likewise.
13261 * lib/fseterr.c (fseterr): Likewise.
13262 * lib/fwritable.c (fwritable): Likewise.
13263 * lib/fwriting.c (fwriting): Likewise.
13264 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
13266 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
13268 * lib/config.charset: Treat Haiku like BeOS.
13270 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
13272 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
13273 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
13275 2008-11-08 Bruno Haible <bruno@clisp.org>
13277 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
13280 2008-11-08 Bruno Haible <bruno@clisp.org>
13282 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
13284 2008-11-08 Bruno Haible <bruno@clisp.org>
13286 * tests/test-select-fd.c: New file.
13287 * tests/test-select-in.sh: New file.
13288 * tests/test-select-out.sh: New file.
13289 * tests/test-select-stdin.c: New file.
13290 * modules/select-tests (Files): Add the new files.
13291 (Depends-on): Add gettimeofday.
13292 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
13293 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
13294 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
13296 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
13297 Bruno Haible <bruno@clisp.org>
13299 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
13301 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
13303 * build-aux/pmccabe2html: Added support for C++ source files.
13305 2008-11-05 Ben Pfaff <blp@gnu.org>
13307 Fix lib/close.c build on Windows.
13308 * modules/close (Files): Add lib/w32sock.h.
13310 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
13312 Accept Bison's NEWS format.
13313 * build-aux/announce-gen (print_news_deltas): Tweak
13316 2008-11-04 Bruno Haible <bruno@clisp.org>
13318 * modules/random_r (Maintainer): Add glibc.
13320 2008-11-04 Simon Josefsson <simon@josefsson.org>
13322 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
13323 by karl@freefriends.org (Karl Berry).
13324 * doc/alloca.texi: Likewise.
13325 * doc/c-ctype.texi: Likewise.
13326 * doc/c-strcase.texi: Likewise.
13327 * doc/c-strcaseeq.texi: Likewise.
13328 * doc/c-strcasestr.texi: Likewise.
13329 * doc/c-strstr.texi: Likewise.
13330 * doc/c-strtod.texi: Likewise.
13331 * doc/c-strtold.texi: Likewise.
13332 * doc/ctime.texi: Likewise.
13333 * doc/error.texi: Likewise.
13334 * doc/fdl.texi: Likewise.
13335 * doc/gcd.texi: Likewise.
13336 * doc/getdate.texi: Likewise.
13337 * doc/gnulib-intro.texi: Likewise.
13338 * doc/gnulib-tool.texi: Likewise.
13339 * doc/gnulib.texi: Likewise.
13340 * doc/inet_ntoa.texi: Likewise.
13341 * doc/maintain.texi: Likewise.
13342 * doc/make-stds.texi: Likewise.
13343 * doc/quote.texi: Likewise.
13344 * doc/regexprops-generic.texi: Likewise.
13345 * doc/standards.texi: Likewise.
13346 * doc/verify.texi: Likewise.
13347 * doc/visibility.texi: Likewise.
13348 * doc/gnulib.texi (GNU Free Documentation License): Include
13349 fdl-1.3.texi instead of fdl.texi.
13351 2008-11-04 Simon Josefsson <simon@josefsson.org>
13353 * doc/fdl-1.3.texi: New file, from
13354 <http://www.gnu.org/licenses/fdl-1.3.texi>.
13355 * modules/fdl-1.3: Add.
13356 * MODULES.html.sh: Add fdl-1.3.
13358 2008-11-03 Bruno Haible <bruno@clisp.org>
13360 Make determination of absolute name of header file work with AIX xlc.
13361 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
13362 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
13364 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13365 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
13367 2008-11-03 Simon Josefsson <simon@josefsson.org>
13369 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
13370 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
13373 2008-11-02 Bruno Haible <bruno@clisp.org>
13375 Mark 'strpbrk' obsolete.
13376 * modules/strpbrk (Status, Notice): New sections.
13377 * modules/strtok_r (Depends-on): Add strpbrk.
13379 2008-11-02 Bruno Haible <bruno@clisp.org>
13381 Mark 'strdup' obsolete.
13382 * modules/strdup (Status, Notice): New sections.
13383 * modules/findprog (Depends-on): Add strdup.
13384 * modules/getaddrinfo (Depends-on): Likewise.
13385 * modules/localename (Depends-on): Likewise.
13386 * modules/relocatable-lib (Depends-on): Likewise.
13387 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
13388 * modules/relocatable-prog (Depends-on): Likewise.
13389 * modules/trim (Depends-on): Likewise.
13390 * modules/unictype/gen-ctype (Depends-on): Likewise.
13391 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
13393 2008-11-02 Bruno Haible <bruno@clisp.org>
13395 Mark 'strcspn' obsolete.
13396 * modules/strcspn (Status, Notice): New sections.
13398 2008-11-02 Bruno Haible <bruno@clisp.org>
13400 Mark 'rmdir' obsolete.
13401 * modules/rmdir (Status, Notice): New sections.
13402 * modules/clean-temp (Depends-on): Add rmdir.
13403 * modules/openat (Depends-on): Likewise.
13405 2008-11-02 Bruno Haible <bruno@clisp.org>
13407 Mark 'raise' obsolete.
13408 * modules/raise (Status, Notice): New sections.
13409 (Include): Specify <signal.h>.
13410 * modules/stdio (Depends-on): Add raise.
13411 * modules/write (Depends-on): Likewise.
13413 2008-11-02 Bruno Haible <bruno@clisp.org>
13415 Mark 'memset' obsolete.
13416 * modules/memset (Status, Notice): New sections.
13418 2008-11-02 Bruno Haible <bruno@clisp.org>
13420 Mark 'memmove' obsolete.
13421 * modules/memmove (Status, Notice): New sections.
13422 * modules/argp (Depends-on): Add memmove.
13423 * modules/argz (Depends-on): Likewise.
13424 * modules/canonicalize (Depends-on): Likewise.
13425 * modules/canonicalize-lgpl (Depends-on): Likewise.
13426 * modules/fts (Depends-on): Likewise.
13427 * modules/getcwd (Depends-on): Likewise.
13428 * modules/human (Depends-on): Likewise.
13429 * modules/regex (Depends-on): Likewise.
13430 * modules/striconveh (Depends-on): Likewise.
13431 * modules/trim (Depends-on): Likewise.
13432 * modules/unistr/u8-move (Depends-on): Likewise.
13433 * modules/unistr/u16-move (Depends-on): Likewise.
13434 * modules/unistr/u32-move (Depends-on): Likewise.
13436 2008-11-02 Bruno Haible <bruno@clisp.org>
13438 Mark 'memcpy' obsolete.
13439 * modules/memcpy (Status, Notice): New sections.
13441 2008-11-02 Bruno Haible <bruno@clisp.org>
13443 Mark 'memcmp' obsolete.
13444 * modules/memcmp (Status, Notice): New sections.
13445 * modules/argmatch (Depends-on): Add memchr.
13446 * modules/backupfile (Depends-on): Likewise.
13447 * modules/c-strcasestr (Depends-on): Likewise.
13448 * modules/crypto/des (Depends-on): Likewise.
13449 * modules/csharpcomp (Depends-on): Likewise.
13450 * modules/fnmatch (Depends-on): Likewise.
13451 * modules/git-merge-changelog (Depends-on): Likewise.
13452 * modules/isnand (Depends-on): Likewise.
13453 * modules/isnand-nolibm (Depends-on): Likewise.
13454 * modules/isnanf (Depends-on): Likewise.
13455 * modules/isnanf-nolibm (Depends-on): Likewise.
13456 * modules/isnanl (Depends-on): Likewise.
13457 * modules/isnanl-nolibm (Depends-on): Likewise.
13458 * modules/mbchar (Depends-on): Likewise.
13459 * modules/memcoll (Depends-on): Likewise.
13460 * modules/quotearg (Depends-on): Likewise.
13461 * modules/regex (Depends-on): Likewise.
13462 * modules/relocatable-prog (Depends-on): Likewise.
13463 * modules/same (Depends-on): Likewise.
13464 * modules/signbit (Depends-on): Likewise.
13465 * modules/strcasestr-simple (Depends-on): Likewise.
13466 * modules/unictype/gen-ctype (Depends-on): Likewise.
13467 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
13468 * modules/uniname/uniname (Depends-on): Likewise.
13469 * modules/unistr/u8-cmp (Depends-on): Likewise.
13471 2008-11-02 Bruno Haible <bruno@clisp.org>
13473 Mark 'memchr' obsolete.
13474 * modules/memchr (Status, Notice): New sections.
13475 * modules/argp (Depends-on): Add memchr.
13476 * modules/base64 (Depends-on): Likewise.
13477 * modules/c-strcasestr (Depends-on): Likewise.
13478 * modules/chdir-long (Depends-on): Likewise.
13479 * modules/fnmatch (Depends-on): Likewise.
13480 * modules/getsubopt (Depends-on): Likewise.
13481 * modules/git-merge-changelog (Depends-on): Likewise.
13482 * modules/glob (Depends-on): Likewise.
13483 * modules/strcasestr-simple (Depends-on): Likewise.
13484 * modules/strnlen (Depends-on): Likewise.
13486 2008-11-02 Bruno Haible <bruno@clisp.org>
13488 Mark 'atexit' obsolete.
13489 * modules/atexit (Status, Notice): New sections.
13490 * modules/chdir-long (Depends-on): Add atexit.
13491 * modules/wait-process (Depends-on): Likewise.
13493 2008-11-02 Bruno Haible <bruno@clisp.org>
13495 * gnulib-tool: New option --with-obsolete.
13496 (func_usage): Document it.
13497 (func_modules_transitive_closure): Drop obsolete dependencies if
13498 incobsolete is not true.
13499 (func_import): Read and save the incobsolete variable to the cache.
13501 2008-11-02 Bruno Haible <bruno@clisp.org>
13503 * modules/TEMPLATE-EXTENDED: New field 'Status'.
13504 * gnulib-tool: New option --extract-status.
13505 (func_usage): Document it.
13506 (sed_extract_prog): Recognize it.
13507 (func_get_status): New function.
13509 2008-10-30 Simon Josefsson <simon@josefsson.org>
13511 * modules/sockets (License): Change from LGPL to LGPLv2+.
13513 2008-10-28 Simon Josefsson <simon@josefsson.org>
13515 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
13517 2008-10-28 Simon Josefsson <simon@josefsson.org>
13519 * MODULES.html.sh (Support for systems lacking POSIX:2001):
13520 Mention times and sys_times.
13521 * modules/sys_times, modules/sys_times-tests: New modules.
13522 * modules/times, modules/times-tests: Likewise
13523 * m4/sys_times_h.m4: New file.
13524 * lib/sys_times.in.h: Likewise
13525 * lib/times.c: Likewise.
13526 * tests/test-sys_times.c: Likewise.
13527 * tests/test-times.c: Likewise.
13528 * doc/posix-headers/sys_times.texi: Update.
13529 * doc/posix-functions/times.texi: Update.
13531 2008-10-28 Jim Meyering <meyering@redhat.com>
13533 * modules/tempname (Depends-on): Add lstat.
13535 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
13537 2008-10-28 Simon Josefsson <simon@josefsson.org>
13539 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
13540 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
13541 using idiom used elsewhere in gnulib.
13543 2008-10-27 Jim Meyering <meyering@redhat.com>
13545 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
13547 2008-10-27 Simon Josefsson <simon@josefsson.org>
13549 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
13550 TESTS_ENVIRONMENT, for shell scripts that needs to call built
13552 * tests/test-argp-2.sh: Use $EXEEXT when needed.
13554 2008-10-27 Simon Josefsson <simon@josefsson.org>
13556 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
13558 2008-10-27 Bruno Haible <bruno@clisp.org>
13560 * tests/test-lstat.c: Include <stdio.h>.
13562 2008-10-27 Simon Josefsson <simon@josefsson.org>
13564 * modules/lstat-tests: New module.
13565 * tests/test-lstat.c: New file.
13567 2008-10-26 Jim Meyering <meyering@redhat.com>
13569 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
13571 2008-10-26 Simon Josefsson <simon@josefsson.org>
13572 Bruno Haible <bruno@clisp.org>
13574 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
13575 * modules/configmake (Include): Add a note that the include must come
13576 after all system headers.
13577 * lib/javaversion.c: Include configmake.h after all other includes.
13579 2008-10-26 Bruno Haible <bruno@clisp.org>
13581 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
13582 HAVE_STRUCT_RANDOM_DATA to 1.
13583 (gl_STDLIB_H): Simplify.
13585 2008-10-26 Simon Josefsson <simon@josefsson.org>
13587 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
13588 substitute HAVE_STRUCT_RANDOM_DATA.
13589 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
13591 * modules/stdlib (Makefile.am): Substitute
13592 HAVE_STRUCT_RANDOM_DATA.
13594 2008-10-26 Simon Josefsson <simon@josefsson.org>
13596 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
13597 * doc/gnulib-intro.texi (Copyright): Likewise.
13599 2008-10-26 Simon Josefsson <simon@josefsson.org>
13601 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
13604 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
13605 Bruno Haible <bruno@clisp.org>
13607 * lib/unistd.in.h: Include <winsock2.h>.
13608 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
13609 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
13610 Provide dummy declarations.
13611 (gethostname): Override.
13612 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
13613 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
13614 gl_PREREQ_SYS_H_WINSOCK2.
13615 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
13616 * doc/posix-functions/gethostname.texi: More details.
13618 2008-10-25 Bruno Haible <bruno@clisp.org>
13620 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
13621 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
13622 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
13624 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
13626 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
13627 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
13628 gl_UNISTD_H_DEFAULTS.
13630 2008-10-25 Eric Blake <ebb9@byu.net>
13632 signbit: avoid spurious compiler failure
13633 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
13634 declarations inside function.
13636 2008-10-24 Simon Josefsson <simon@josefsson.org>
13637 Bruno Haible <bruno@clisp.org>
13639 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
13640 * modules/random_r (Depends-on): Add stdint.
13642 2008-10-24 Bruno Haible <bruno@clisp.org>
13644 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
13646 * modules/strerror (License): Likewise.
13648 2008-10-24 Jim Meyering <meyering@redhat.com>
13650 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
13651 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
13653 2008-10-24 Eric Blake <ebb9@byu.net>
13655 getgroups: fix compilation when getgroups is available
13656 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
13657 but with <config.h> override of getgroups disabled.
13659 2008-10-24 Simon Josefsson <simon@josefsson.org>
13661 * doc/gnulib.texi (Header files): Add note about C++ problems.
13662 Explained by Bruno Haible <bruno@clisp.org>.
13664 2008-10-23 Bruno Haible <bruno@clisp.org>
13666 Define a dummy SA_NODEFER macro on Interix.
13667 * lib/signal.in.h (SA_NODEFER): Define fallback.
13668 Reported by Aleksey Cheusov <cheusov@tut.by> via
13669 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
13671 2008-10-23 Bruno Haible <bruno@clisp.org>
13673 * modules/freadahead (License): Change to LGPLv2+.
13674 Suggested by Simon Josefsson.
13676 2008-10-23 Jim Meyering <meyering@redhat.com>
13678 random_r: new module
13679 * modules/random_r: New file.
13680 * m4/random_r.m4: New file.
13681 * lib/random_r.c: New file, from glibc.
13682 * modules/random_r-tests: New file.
13683 * tests/test-random_r.c: New file.
13684 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
13686 (RAND_MAX): Define.
13687 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
13688 * modules/stdlib: Substitute them, too.
13689 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
13690 * doc/glibc-functions/initstate_r.texi: Mention the new module.
13691 * doc/glibc-functions/random_r.texi: Likewise.
13692 * doc/glibc-functions/setstate_r.texi: Likewise.
13693 * doc/glibc-functions/srandom_r.texi: Likewise.
13694 * config/srclist.txt: Mention it.
13696 2008-10-23 David Lutterkort <lutter@redhat.com>
13698 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
13701 2008-10-23 Jim Meyering <meyering@redhat.com>
13703 selinux-h: mark parameters of stub functions as intentionally unused
13704 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
13705 * lib/se-context.in.h: Likewise.
13707 2008-10-22 Simon Josefsson <simon@josefsson.org>
13709 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
13711 2008-10-22 Simon Josefsson <simon@josefsson.org>
13713 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
13715 2008-10-22 Eric Blake <ebb9@byu.net>
13717 glthread/thread: avoid compiler warning
13718 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
13719 Add unreachable abort to silence compiler.
13721 2008-10-22 Eric Blake <ebb9@byu.net>
13723 netdb: also supply struct addrinfo for cygwin 1.5.x
13724 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
13726 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
13728 * doc/posix-headers/netdb.texi (netdb.h): Document this.
13730 2008-10-22 Bruno Haible <bruno@clisp.org>
13732 * users.txt: Update entry about pspp.
13734 2008-10-21 Bruno Haible <bruno@clisp.org>
13737 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
13738 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
13741 * lib/ioctl.c (ioctl): Don't undefine.
13742 * lib/socket.c (socket): Don't undefine.
13744 Remove unused module indicator macros.
13745 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
13746 GNULIB_$1 as a C macro.
13748 * doc/posix-functions/close.texi: Undo last change.
13749 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
13752 2008-10-21 Bruno Haible <bruno@clisp.org>
13754 Add gethostname() declaration to <unistd.h>.
13755 * lib/unistd.in.h (gethostname): New declaration.
13756 * lib/gethostname.c: Include <unistd.h>.
13757 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
13758 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
13759 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
13760 and HAVE_GETHOSTNAME.
13761 * modules/gethostname (Depends-on): Add unistd.
13762 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13763 (Include): Specify <unistd.h>.
13764 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
13766 * tests/test-gethostname.c: Include <unistd.h> first.
13768 2008-10-21 Bruno Haible <bruno@clisp.org>
13770 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
13771 * modules/select-tests (Depends-on): Likewise.
13772 Reported by Simon Josefsson.
13774 2008-10-21 Simon Josefsson <simon@josefsson.org>
13776 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
13777 * lib/accept.c: New file, based on winsock.c.
13778 * lib/bind.c: New file, based on winsock.c.
13779 * lib/connect.c: New file, based on winsock.c.
13780 * lib/getpeername.c: New file, based on winsock.c.
13781 * lib/getsockname.c: New file, based on winsock.c.
13782 * lib/getsockopt.c: New file, based on winsock.c.
13783 * lib/ioctl.c: New file, based on winsock.c.
13784 * lib/listen.c: New file, based on winsock.c.
13785 * lib/recv.c: New file, based on winsock.c.
13786 * lib/recvfrom.c: New file, based on winsock.c.
13787 * lib/send.c: New file, based on winsock.c.
13788 * lib/sendto.c: New file, based on winsock.c.
13789 * lib/setsockopt.c: New file, based on winsock.c.
13790 * lib/shutdown.c: New file, based on winsock.c.
13791 * lib/socket.c: New file, based on winsock.c.
13792 * lib/w32sock.h: New file, based on winsock.c.
13793 * lib/winsock.c: Remove file.
13794 * modules/accept: Likewise.
13795 * modules/bind: Likewise.
13796 * modules/connect: Likewise.
13797 * modules/getpeername: Likewise.
13798 * modules/getsockname: Likewise.
13799 * modules/getsockopt: Likewise.
13800 * modules/ioctl: Likewise.
13801 * modules/listen: Likewise.
13802 * modules/recv: Likewise.
13803 * modules/recvfrom: Likewise.
13804 * modules/send: Likewise.
13805 * modules/sendto: Likewise.
13806 * modules/setsockopt: Likewise.
13807 * modules/shutdown: Likewise.
13808 * modules/socket: Use socket.c instead of winsock.c.
13809 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
13810 * doc/posix-functions/accept.texi: Doc fix.
13811 * doc/posix-functions/bind.texi: Doc fix.
13812 * doc/posix-functions/close.texi: Doc fix.
13813 * doc/posix-functions/connect.texi: Doc fix.
13814 * doc/posix-functions/getpeername.texi: Doc fix.
13815 * doc/posix-functions/getsockname.texi: Doc fix.
13816 * doc/posix-functions/getsockopt.texi: Doc fix.
13817 * doc/posix-functions/ioctl.texi: Doc fix.
13818 * doc/posix-functions/listen.texi: Doc fix.
13819 * doc/posix-functions/recv.texi: Doc fix.
13820 * doc/posix-functions/recvfrom.texi: Doc fix.
13821 * doc/posix-functions/send.texi: Doc fix.
13822 * doc/posix-functions/sendto.texi: Doc fix.
13823 * doc/posix-functions/setsockopt.texi: Doc fix.
13824 * doc/posix-functions/shutdown.texi: Doc fix.
13825 * doc/posix-functions/socket.texi: Doc fix.
13827 2008-10-20 Bruno Haible <bruno@clisp.org>
13829 Take into account the role of SIGABRT_COMPAT on Windows 2008.
13830 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
13831 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
13832 as an alias for SIGABRT.
13833 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
13834 (sigaction): Map it to SIGABRT.
13835 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
13837 2008-10-20 Bruno Haible <bruno@clisp.org>
13839 * lib/fts.c: Don't include lstat.h.
13840 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
13842 Move the lstat() declaration to <sys/stat.h>.
13843 * lib/lstat.h: Remove file.
13844 * lib/sys_stat.in.h: Add special invocation convention.
13845 (lstat): New declaration.
13846 * lib/lstat.c (orig_lstat): New function.
13847 (rpl_lstat): Use orig_lstat instead of lstat.
13848 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
13849 AC_C_INLINE. Set REPLACE_LSTAT.
13850 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
13852 * modules/lstat (Files): Remove lib/lstat.h.
13853 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
13854 (Include): Specify <sys/stat.h> instead of lstat.h.
13855 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
13857 * NEWS: Mention the change.
13859 2008-10-20 Bruno Haible <bruno@clisp.org>
13861 * modules/posix_spawn-tests: New file.
13862 * tests/test-posix_spawn3.c: New file.
13864 2008-10-20 Bruno Haible <bruno@clisp.org>
13866 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
13867 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
13868 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
13869 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
13870 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
13872 2008-10-20 Bruno Haible <bruno@clisp.org>
13874 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
13875 of posix_spawn on AIX 5.3.
13877 2008-10-20 Bruno Haible <bruno@clisp.org>
13879 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
13881 2008-10-20 Bruno Haible <bruno@clisp.org>
13883 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
13884 of AC_LANG_PROGRAM.
13886 2008-10-20 Simon Josefsson <simon@josefsson.org>
13888 * lib/netdb.in.h: Don't define GNU specific constants until they
13889 are supported or needed. Reported by Bruno Haible
13892 2008-10-20 Simon Josefsson <simon@josefsson.org>
13894 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
13896 2008-10-20 Simon Josefsson <simon@josefsson.org>
13898 * lib/getaddrinfo.h: Remove file.
13899 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
13900 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
13901 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
13902 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
13903 * modules/netdb: Substitute GNULIB_GETADDRINFO.
13904 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
13905 * tests/test-getaddrinfo.c: Likewise.
13906 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
13907 * NEWS: Mention change.
13909 2008-10-19 Bruno Haible <bruno@clisp.org>
13911 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
13913 2008-10-19 Bruno Haible <bruno@clisp.org>
13915 * lib/wait-process.c: Include simply <sys/wait.h>.
13916 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
13917 WIFSTOPPED): Remove fallback definitions.
13918 * modules/wait-process (Depends-on): Add sys_wait.
13920 New module 'sys_wait'.
13921 * modules/sys_wait: New file.
13922 * lib/sys_wait.in.h: New file, partially copied from
13923 lib/wait-process.c.
13924 * m4/sys_wait_h.m4: New file.
13925 * doc/posix-headers/sys_wait.texi: Mention the new module.
13927 2008-10-19 Bruno Haible <bruno@clisp.org>
13929 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
13931 2008-10-19 Bruno Haible <bruno@clisp.org>
13933 Assume that waitpid() fills an 'int' status, not a 'union wait'.
13934 * lib/wait-process.c (WAIT_T): Remove type.
13935 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
13936 (wait_subprocess): Update.
13938 2008-10-19 Bruno Haible <bruno@clisp.org>
13940 New module 'atoll'.
13941 * modules/atoll: New file.
13942 * lib/stdlib.in.h (atoll): New declaration.
13943 * lib/atoll.c: New file, from glibc with modifications.
13944 * m4/atoll.m4: New file.
13945 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
13947 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
13948 * doc/posix-functions/atoll.texi: Mention the new module.
13950 2008-10-19 Bruno Haible <bruno@clisp.org>
13952 Add strtoull() declaration to <stdlib.h>.
13953 * lib/stdlib.in.h (strtoull): New declaration.
13954 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
13956 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
13958 * modules/strtoull (Depends-on): Add stdlib.
13959 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
13960 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
13963 2008-10-19 Bruno Haible <bruno@clisp.org>
13965 Add strtoll() declaration to <stdlib.h>.
13966 * lib/stdlib.in.h (strtoll): New declaration.
13967 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
13969 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
13971 * modules/strtoll (Depends-on): Add stdlib.
13972 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
13973 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
13975 2008-10-19 Bruno Haible <bruno@clisp.org>
13977 * modules/bcopy (Depends-on): Add strings.
13978 (Include): Specify <strings.h>.
13980 2008-10-19 Bruno Haible <bruno@clisp.org>
13982 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
13984 2008-10-19 Bruno Haible <bruno@clisp.org>
13986 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
13987 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
13990 2008-10-19 Bruno Haible <bruno@clisp.org>
13992 * lib/atanl.c: Don't include isnanl.h.
13993 * lib/cosl.c: Likewise.
13994 * lib/ldexpl.c: Likewise.
13995 * lib/logl.c: Likewise.
13996 * lib/sinl.c: Likewise.
13997 * lib/sqrtl.c: Likewise.
13998 * lib/tanl.c: Likewise.
14000 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
14001 * lib/isnanf.h: Remove file.
14002 * lib/isnand.h: Remove file.
14003 * lib/isnanl.h: Remove file.
14004 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
14005 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
14007 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
14008 HAVE_ISNANF, don't define it as a C macro.
14009 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
14010 HAVE_ISNAND, don't define it as a C macro.
14011 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
14012 HAVE_ISNANL, don't define it as a C macro.
14013 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
14015 * modules/isnanf (Files): Remove lib/isnanf.h.
14016 (Depends-on): Add math.
14017 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14018 (Include): Specify <math.h> instead of isnanf.h.
14019 * modules/isnand (Files): Remove lib/isnand.h.
14020 (Depends-on): Add math.
14021 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14022 (Include): Specify <math.h> instead of isnand.h.
14023 * modules/isnanl (Files): Remove lib/isnanl.h.
14024 (Depends-on): Add math.
14025 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14026 (Include): Specify <math.h> instead of isnanl.h.
14027 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
14029 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
14030 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
14031 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
14032 * NEWS: Mention the change.
14034 2008-10-18 Bruno Haible <bruno@clisp.org>
14036 Add getusershell(), setusershell(), endusershell() declarations to
14038 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
14040 * lib/getusershell.c: Include unistd.h.
14041 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
14042 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
14044 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
14045 and HAVE_GETUSERSHELL.
14046 * modules/getusershell (Depends-on): Add unistd, extensions.
14047 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14048 (Include): Specify <unistd.h>.
14049 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
14052 2008-10-18 Bruno Haible <bruno@clisp.org>
14054 Add a getloadavg() declaration to <stdlib.h>.
14055 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
14056 getloadavg declaration.
14057 (getloadavg): New declaration.
14058 * lib/getloadavg.c: Include <stdlib.h> first.
14059 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
14060 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
14061 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
14062 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
14063 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
14064 * modules/getloadavg (Depends-on): Add stdlib, extensions.
14065 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14066 (Include): Specify <stdlib.h>.
14067 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
14068 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
14070 2008-10-18 Bruno Haible <bruno@clisp.org>
14072 * lib/dirchownmod.c: Don't include lchmod.h.
14074 Move the lchmod() declaration to <sys/stat.h>.
14075 * lib/lchmod.h: Remove file.
14076 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
14077 (lchmod): New declaration, moved here from lib/lchown.h.
14078 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
14079 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
14080 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
14082 * modules/lchmod (Files): Remove lib/lchmod.h.
14083 (Depends-on): Add sys_stat, extensions.
14084 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
14085 (Include): Specify <sys/stat.h> instead of lchmod.h.
14086 * modules/sys_stat (Depends-on): Add link-warning.
14087 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
14088 definition of GL_LINK_WARNING.
14089 * NEWS: Mention the change.
14091 2008-10-18 Bruno Haible <bruno@clisp.org>
14093 * lib/fchdir.c: Don't include dirfd.h.
14094 * lib/fts.c: Likewise.
14095 * lib/getcwd.c: Likewise.
14096 * lib/glob.c: Likewise.
14098 Move the dirfd() declaration to <dirent.h>.
14099 * lib/dirfd.h: Remove file.
14100 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
14101 (dirfd): New declaration.
14102 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
14103 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
14104 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
14106 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
14108 * modules/dirfd (Files): Remove lib/dirfd.h.
14109 (Depends-on): Add dirent, extensions.
14110 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
14111 (Include): Specify <dirent.h> instead of dirfd.h.
14112 * modules/dirent (Depends-on): Add link-warning.
14113 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
14114 definition of GL_LINK_WARNING.
14115 * NEWS: Mention the change.
14117 2008-10-18 Bruno Haible <bruno@clisp.org>
14119 Move the euidaccess() declaration to <unistd.h>.
14120 * lib/euidaccess.h: Remove file.
14121 * lib/unistd.in.h (euidaccess): New declaration.
14122 * lib/euidaccess.c: Don't include euidaccess.h.
14123 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
14124 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
14125 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
14126 and HAVE_EUIDACCESS.
14127 * modules/euidaccess (Files): Remove lib/euidaccess.h.
14128 (Depends-on): Add unistd.
14129 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14130 (Include): Specify <unistd.h> instead of euidaccess.h.
14131 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
14133 * NEWS: Mention the change.
14135 2008-10-18 Bruno Haible <bruno@clisp.org>
14137 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
14139 Move the getdomainname() declaration to <unistd.h>.
14140 * lib/getdomainname.h: Remove file.
14141 * lib/unistd.in.h (getdomainname): New declaration.
14142 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
14143 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14144 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
14145 HAVE_GETDOMAINNAME.
14146 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14147 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
14148 * modules/getdomainname (Files): Remove lib/getdomainname.h.
14149 (Depends-on): Add unistd, extensions.
14150 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14151 (Includes): Specify <unistd.h> instead of getdomainname.h.
14152 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
14153 HAVE_GETDOMAINNAME.
14154 * NEWS: Mention the change.
14156 2008-10-18 Bruno Haible <bruno@clisp.org>
14158 * modules/dirent: New file.
14159 * m4/dirent_h.m4: New file.
14160 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
14161 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
14162 * modules/fchdir (Files): Remove lib/dirent.in.h.
14163 (Depends-on): Add dirent.
14164 (Makefile.am): Move rules to modules/dirent.
14165 * doc/posix-headers/dirent.texi: Mention the new module.
14167 2008-10-18 Bruno Haible <bruno@clisp.org>
14169 Avoid -Wunused-parameter warnings in public gnulib header files.
14170 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
14172 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
14174 2008-10-18 Bruno Haible <bruno@clisp.org>
14176 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
14177 * doc/glibc-functions/error.texi: Mention the module 'error'.
14178 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
14179 * doc/glibc-functions/getdomainname.texi: Mention the module
14181 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
14182 * doc/glibc-functions/getpagesize.texi: Mention the module
14184 * doc/glibc-functions/getusershell.texi: Mention the module
14186 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
14187 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
14188 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
14189 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
14190 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
14191 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
14192 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
14193 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
14194 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
14195 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
14196 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
14197 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
14198 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
14199 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
14201 2008-10-17 Bruno Haible <bruno@clisp.org>
14203 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
14204 HP-UX and IRIX, use -0.0L.
14205 * tests/test-ceill.c (minus_zero): Likewise.
14206 * tests/test-floorl.c (minus_zero): Likewise.
14207 * tests/test-frexpl.c (minus_zero): Likewise.
14208 * tests/test-isnan.c (minus_zerol): Likewise.
14209 * tests/test-isnanl.h (minus_zero): Likewise.
14210 * tests/test-ldexpl.c (minus_zero): Likewise.
14211 * tests/test-roundl.c (minus_zero): Likewise.
14212 * tests/test-signbit.c (minus_zerol): Likewise.
14213 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
14214 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
14215 * tests/test-truncl.c (minus_zero): Likewise.
14216 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
14217 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
14218 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
14219 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
14221 2008-10-17 Bruno Haible <bruno@clisp.org>
14223 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
14224 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
14225 that it gets activated only for gcc >= 3.0.
14226 * lib/dirent.in.h: Likewise.
14227 * lib/errno.in.h: Likewise.
14228 * lib/fcntl.in.h: Likewise.
14229 * lib/float.in.h: Likewise.
14230 * lib/iconv.in.h: Likewise.
14231 * lib/inttypes.in.h: Likewise.
14232 * lib/locale.in.h: Likewise.
14233 * lib/math.in.h: Likewise.
14234 * lib/netdb.in.h: Likewise.
14235 * lib/netinet_in.in.h: Likewise.
14236 * lib/search.in.h: Likewise.
14237 * lib/signal.in.h: Likewise.
14238 * lib/spawn.in.h: Likewise.
14239 * lib/stdarg.in.h: Likewise.
14240 * lib/stdint.in.h: Likewise.
14241 * lib/stdio.in.h: Likewise.
14242 * lib/stdlib.in.h: Likewise.
14243 * lib/string.in.h: Likewise.
14244 * lib/strings.in.h: Likewise.
14245 * lib/sys_file.in.h: Likewise.
14246 * lib/sys_ioctl.in.h: Likewise.
14247 * lib/sys_select.in.h: Likewise.
14248 * lib/sys_socket.in.h: Likewise.
14249 * lib/sys_stat.in.h: Likewise.
14250 * lib/sys_time.in.h: Likewise.
14251 * lib/sysexits.in.h: Likewise.
14252 * lib/time.in.h: Likewise.
14253 * lib/unistd.in.h: Likewise.
14254 * lib/wchar.in.h: Likewise.
14255 * lib/wctype.in.h: Likewise.
14256 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
14258 2008-10-17 Jim Meyering <meyering@redhat.com>
14260 ignore-value: don't depend on inline module
14261 * modules/ignore-value (Depends-on): Remove 'inline'.
14262 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
14263 Suggestion from Bruno Haible.
14265 2008-10-17 Bruno Haible <bruno@clisp.org>
14267 New implementation of condition variables for Win32.
14268 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
14269 (gl_linked_waitqueue_t): New type.
14270 (gl_cond_t): Use it.
14271 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
14272 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
14273 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
14274 (glthread_cond_init_func, glthread_cond_wait_func,
14275 glthread_cond_timedwait_func, glthread_cond_signal_func,
14276 glthread_cond_broadcast_func, glthread_cond_destroy_func):
14277 Reimplemented on the basis of gl_linked_waitqueue_t.
14278 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
14280 (gl_rwlock_t): Update.
14281 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
14283 2008-10-17 Simon Josefsson <simon@josefsson.org>
14285 * modules/recvfrom (Depends-on): Add dependency on getpeername.
14286 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
14288 2008-10-17 Jim Meyering <meyering@redhat.com>
14290 ignore-value: new module
14291 * modules/ignore-value: New file.
14292 * lib/ignore-value.h: New file.
14293 * MODULES.html.sh (Compiler warning management): New section,
14294 just for this module. More to come.
14296 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
14298 open-safer.c: avoid 'signed and unsigned in conditional...' warning
14299 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
14300 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
14302 2008-10-16 Jim Meyering <meyering@redhat.com>
14304 openat-die.c: avoid 'no previous prototype' warning
14305 * lib/openat-die.c: Include "openat.h".
14306 Reported by Reuben Thomas <rrt@sc3d.org>.
14308 2008-10-16 Simon Josefsson <simon@josefsson.org>
14310 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
14311 * lib/netdb.in.h: Fix typo.
14312 Reported by Bruno Haible <bruno@clisp.org>
14314 * lib/netdb.in.h: Include sys/socket.h for platforms without
14315 netdb.h, to get structures like hostent on MinGW.
14316 * modules/netdb (Depends-on): Add sys_socket.
14318 2008-10-15 Simon Josefsson <simon@josefsson.org>
14320 * modules/netdb, modules/netdb-tests: New file.
14321 * m4/netdb_h.m4: New file.
14322 * lib/netdb.in.h: Add, currently just an empty file pending
14324 * tests/test-netdb.c: New file.
14325 * doc/posix-headers/netdb.texi: Mention that we replace it if
14327 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14330 2008-10-15 Simon Josefsson <simon@josefsson.org>
14332 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
14335 2008-10-13 Bruno Haible <bruno@clisp.org>
14337 * lib/glthread/cond.c (glthread_cond_wait_func,
14338 glthread_cond_timedwait_func): Add a comment.
14340 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
14342 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
14343 * tests/test-select.c: Likewise,
14345 2008-10-13 Bruno Haible <bruno@clisp.org>
14347 * lib/glthread/cond.c (glthread_cond_wait_func,
14348 glthread_cond_timedwait_func): Fix variable name.
14349 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
14351 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
14353 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
14354 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
14355 struct sockaddr.sa_len.
14356 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
14358 2008-10-13 Simon Josefsson <simon@josefsson.org>
14360 * build-aux/pmccabe2html: Add css and css_url parameters.
14362 2008-10-12 Bruno Haible <bruno@clisp.org>
14364 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
14366 Reported by Rainer Tammer <tammer@tammer.net>.
14368 2008-10-12 Bruno Haible <bruno@clisp.org>
14370 Use msvcrt aware primitives for creation/termination of Win32 threads.
14371 * lib/glthread/thread.c: Include <process.h>.
14372 (glthread_create_func): Use _beginthreadex instead of CreateThread.
14373 (wrapper_func): Update signature.
14374 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
14376 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
14377 Bruno Haible <bruno@clisp.org>
14379 Provide a Win32 implementation of the 'cond' module.
14380 * lib/glthread/cond.h [USE_WIN32]: New implementation.
14381 * lib/glthread/cond.c (glthread_cond_init_func,
14382 glthread_cond_wait_func, glthread_cond_timedwait_func,
14383 glthread_cond_signal_func, glthread_cond_broadcast_func,
14384 glthread_cond_destroy_func) [USE_WIN32]: New functions.
14385 * modules/cond (Dependencies): Add gettimeofday.
14387 2008-10-11 Bruno Haible <bruno@clisp.org>
14389 Make sleep work on older versions of mingw.
14390 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
14391 only whether it exists.
14392 * doc/posix-functions/sleep.texi: Mention the problem with older
14395 2008-10-11 Bruno Haible <bruno@clisp.org>
14397 New module 'shutdown'.
14398 * modules/shutdown: New file.
14399 * lib/sys_socket.in.h (shutdown): New declaration.
14400 * lib/winsock.c (shutdown): New function.
14401 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14403 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
14404 * doc/posix-functions/shutdown.texi: Document the new module.
14406 2008-10-11 Jim Meyering <meyering@redhat.com>
14408 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
14410 2008-10-11 Bruno Haible <bruno@clisp.org>
14412 New module 'fclose'.
14413 * modules/fclose: New file.
14414 * lib/stdio.in.h (fclose): New declaration.
14415 * lib/fclose.c: New file.
14416 * m4/fclose.m4: New file.
14417 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
14419 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
14420 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
14422 * modules/close (Depends-on): fclose.
14423 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
14425 2008-10-11 Bruno Haible <bruno@clisp.org>
14427 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
14428 set errno and don't call _close.
14430 2008-10-10 Bruno Haible <bruno@clisp.org>
14432 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
14433 ACL, not afterwards. Fixes test failure on Cygwin.
14435 2008-10-09 Ben Pfaff <blp@gnu.org>
14437 * build-aux/announce-gen: Fix gnulib version related part of usage
14438 message. Die with a useful error message if no tarballs are
14441 2008-10-10 Jim Meyering <meyering@redhat.com>
14443 bootstrap: use git's --depth=N option only if it's supported
14444 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
14445 recognize the --depth option. Reported by Pádraig Brady.
14447 2008-10-09 Bruno Haible <bruno@clisp.org>
14449 New module 'ioctl'.
14450 * modules/ioctl: New file.
14451 * lib/sys_socket.in.h (ioctl): Remove declaration.
14452 * lib/winsock.c: Include <sys/ioctl.h>.
14453 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
14454 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
14455 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
14456 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
14457 * doc/posix-functions/ioctl.texi: Mention the new module.
14459 2008-10-09 Bruno Haible <bruno@clisp.org>
14461 New module 'sys_ioctl'.
14462 * lib/sys_ioctl.in.h: New file.
14463 * m4/sys_ioctl_h.m4: New file.
14464 * modules/sys_ioctl: New file.
14465 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
14467 2008-10-09 Bruno Haible <bruno@clisp.org>
14469 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
14470 * lib/winsock.c: Include <stdarg.h>.
14471 (rpl_ioctl): Change to second argument 'int' and then varargs.
14473 2008-10-09 Bruno Haible <bruno@clisp.org>
14475 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
14476 when the sys_socket module is present and the system has <winsock2.h>.
14478 2008-10-09 Bruno Haible <bruno@clisp.org>
14480 * doc/posix-functions/close.texi: Mention module 'close' instead of
14481 module 'sys_socket'.
14483 2008-10-09 Bruno Haible <bruno@clisp.org>
14485 * doc/glibc-headers/sys_ioctl.texi: New file.
14486 * doc/gnulib.texi: Include it.
14488 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
14489 Bruno Haible <bruno@clisp.org>
14491 Combine the two replacements of 'close'.
14492 * lib/sys_socket.in.h (close): Define to a reminder to include
14494 (_gl_close_fd_maybe_socket): New declaration.
14495 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
14496 * lib/winsock.c (close): Remove undefinition.
14497 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
14498 needed for the gnulib module 'close'.
14499 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
14500 define to an error symbol or to a warning, if suitable.
14501 * lib/close.c: Include <sys/socket.h>.
14502 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
14503 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
14504 UNISTD_H_HAVE_WINSOCK2_H.
14505 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
14506 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14507 UNISTD_H_HAVE_WINSOCK2_H.
14508 * modules/sys_socket (Files): Add m4/unistd_h.m4.
14509 (configure.ac): Set a module indicator.
14510 (Makefile.am): Substitute GNULIB_CLOSE.
14511 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
14512 * modules/poll-tests (Depends-on): Add close.
14513 * modules/select-tests (Depends-on): Likewise.
14515 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
14516 Bruno Haible <bruno@clisp.org>
14518 New module 'close'.
14519 * modules/close: New file.
14520 * lib/unistd.in.h (close): Move declaration out of the
14521 FCHDIR_REPLACEMENT scope.
14522 (_gl_unregister_fd): New declaration.
14523 * lib/close.c: New file.
14524 * lib/fchdir.c (rpl_close): Remove function.
14525 * m4/close.m4: New file.
14526 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
14528 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
14530 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
14532 * modules/fchdir (Depends-on): Add close.
14534 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
14535 Bruno Haible <bruno@clisp.org>
14537 * lib/fcntl.in.h (open): Simplify conditionals.
14538 (_gl_register_fd): New declaration.
14539 * lib/fchdir.c (rpl_open): Remove function.
14540 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
14542 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
14543 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
14546 2008-10-09 Jim Meyering <meyering@redhat.com>
14548 GNUmakefile: use the more name-space-friendly "_version"
14549 * top/GNUmakefile (_dummy): Update.
14550 (_version): Rename from "version".
14552 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
14553 Bruno Haible <bruno@clisp.org>
14555 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
14557 (_gl_register_fd): New function, extracted from rpl_open.
14558 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
14559 (rpl_open, rpl_opendir): Use _gl_register_fd.
14561 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
14563 Fix organization of 'open' replacement.
14564 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
14565 (gl_FUNC_OPEN): Use it.
14566 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
14568 2008-10-08 Bruno Haible <bruno@clisp.org>
14570 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
14572 2008-10-08 Simon Josefsson <simon@josefsson.org>
14574 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
14575 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
14578 2008-10-08 Eric Blake <ebb9@byu.net>
14580 GNUmakefile: add 'make version' target
14581 * top/GNUmakefile (_curr-ver): Split version update rules...
14582 (version): ...into a target.
14584 2008-10-07 Bruno Haible <bruno@clisp.org>
14586 Use a more portable replacement expression for -0.0L.
14587 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
14588 instead of -0.0L. Fix m4 quotation.
14590 * tests/test-signbit.c: Include <float.h>.
14591 (minus_zero): New variable.
14592 (test_signbitl): Use minus_zero instead of -zero.
14593 * modules/signbit-tests (Depends-on): Add float.
14595 * tests/test-ceill.c: Include <float.h>.
14596 (zero): Remove variable.
14597 (minus_zero): New variable.
14598 (main): Use minus_zero instead of -zero.
14599 * modules/ceill-tests (Depends-on): Add float.
14601 * tests/test-floorl.c: Include <float.h>.
14602 (zero): Remove variable.
14603 (minus_zero): New variable.
14604 (main): Use minus_zero instead of -zero.
14605 * modules/floorl-tests (Depends-on): Add float.
14607 * tests/test-roundl.c: Include <float.h>.
14608 (zero): Remove variable.
14609 (minus_zero): New variable.
14610 (main): Use minus_zero instead of -zero.
14611 * modules/roundl-tests (Depends-on): Add float.
14613 * tests/test-truncl.c: Include <float.h>.
14614 (zero): Remove variable.
14615 (minus_zero): New variable.
14616 (main): Use minus_zero instead of -zero.
14617 * modules/truncl-tests (Depends-on): Add float.
14619 * tests/test-frexpl.c (zero): Remove variable.
14620 (minus_zero): New variable.
14621 (main): Use minus_zero instead of -zero.
14622 * modules/frexpl-tests (Depends-on): Add float.
14624 * tests/test-isnan.c (zerol): Remove variable.
14625 (minus_zerol): New variable.
14626 (test_long_double): Use minus_zerol instead of -zerol.
14627 * modules/isnan-tests (Depends-on): Add float.
14629 * tests/test-isnanl.h (zero): Remove variable.
14630 (minus_zero): New variable.
14631 (main): Use minus_zero instead of -zero.
14632 * modules/isnanl-nolibm-tests (Depends-on): Add float.
14633 * modules/isnanl-tests (Depends-on): Add float.
14635 * tests/test-ldexpl.c (zero): Remove variable.
14636 (minus_zero): New variable.
14637 (main): Use minus_zero instead of -zero.
14638 * modules/ldexpl-tests (Depends-on): Add float.
14640 * tests/test-snprintf-posix.h (zerol): Remove variable.
14641 (minus_zerol): New variable.
14642 (test_function): Use minus_zerol instead of -zerol.
14643 * modules/snprintf-posix-tests (Depends-on): Add float.
14644 * modules/vsnprintf-posix-tests (Depends-on): Add float.
14646 * tests/test-sprintf-posix.h (zerol): Remove variable.
14647 (minus_zerol): New variable.
14648 (test_function): Use minus_zerol instead of -zerol.
14649 * modules/sprintf-posix-tests (Depends-on): Add float.
14650 * modules/vsprintf-posix-tests (Depends-on): Add float.
14652 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
14653 (minus_zerol): New variable.
14654 (test_function): Use minus_zerol instead of -zerol.
14655 * modules/vasnprintf-posix-tests (Depends-on): Add float.
14657 * tests/test-vasprintf-posix.c (zerol): Remove variable.
14658 (minus_zerol): New variable.
14659 (test_function): Use minus_zerol instead of -zerol.
14660 * modules/vasprintf-posix-tests (Depends-on): Add float.
14662 2008-10-07 Simon Josefsson <simon@josefsson.org>
14664 * MODULES.html.sh (Support for building documentation): Mention
14665 pmccabe2html. Sort entries.
14667 Add pmccabe2html module, from gnupdf.
14668 * build-aux/pmccabe.css: New file.
14669 * build-aux/pmccabe2html: New file.
14670 * m4/pmccabe2html.m4: New file.
14671 * modules/pmccabe2html: New file.
14673 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
14676 * MODULES.html.sh: Add to list of modules.
14677 * lib/flock.c: flock implementation for Windows and Unix systems
14679 * doc/glibc-functions/flock.texi: Update documentation.
14680 * lib/sys_file.in.h: <sys/file.h> header file.
14681 * m4/flock.m4: M4 macros.
14682 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
14683 * modules/flock: flock module.
14684 * modules/flock-tests: flock tests module.
14685 * modules/sys_file: sys/file.h module.
14686 * tests/test-flock.c: test suite for flock.
14688 2008-10-06 Jim Meyering <meyering@redhat.com>
14690 bootstrap: check for LT_INIT more portably still ;-)
14691 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
14692 Spotted by Bruno Haible.
14694 2008-10-06 Eric Blake <ebb9@byu.net>
14696 test-signbit: avoid tripping Irix cc bug on -0.0L
14697 * tests/test-signbit.c (minus_zerol): Delete, and replace with
14698 '-zerol'. This may break on HP-UX/hppa, but at least makes the
14699 entire testsuite consistent and avoids an Irix 6.2 bug.
14701 2008-10-05 Bruno Haible <bruno@clisp.org>
14702 Jim Meyering <jim@meyering.net>
14704 Add an option for ignoring EPIPE during close_stdout.
14705 * lib/closeout.h: Include <stdbool.h>.
14706 (close_stdout_set_ignore_EPIPE): New declaration.
14707 * lib/closeout.c: Include <stdbool.h>.
14708 (ignore_EPIPE): New variable.
14709 (close_stdout_set_ignore_EPIPE): New function.
14710 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
14711 * lib/close-stream.c (close_stream): Mention the possible EPIPE
14713 * modules/closeout (Depends-on): Add stdbool.
14715 2008-10-05 Bruno Haible <bruno@clisp.org>
14717 * modules/accept: New file.
14718 * modules/bind: New file.
14719 * modules/connect: New file.
14720 * modules/getpeername: New file.
14721 * modules/getsockname: New file.
14722 * modules/getsockopt: New file.
14723 * modules/listen: New file.
14724 * modules/recv: New file.
14725 * modules/recvfrom: New file.
14726 * modules/send: New file.
14727 * modules/sendto: New file.
14728 * modules/setsockopt: New file.
14729 * modules/socket: New file.
14730 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
14731 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14732 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
14733 the particular module is requested. Add a link warning when the
14734 particular module is not requested.
14735 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
14736 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
14737 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
14738 the particular module is requested.
14739 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
14740 gl_SYS_SOCKET_H_DEFAULTS): New macros.
14741 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
14742 * modules/sys_socket (Depends-on): Add link-warning.
14743 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
14744 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
14745 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
14746 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
14748 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
14749 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
14750 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
14751 * doc/posix-functions/getpeername.texi: Mention the new module
14753 * doc/posix-functions/getsockname.texi: Mention the new module
14755 * doc/posix-functions/getsockopt.texi: Mention the new module
14757 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
14758 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
14759 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
14760 * doc/posix-functions/send.texi: Mention the new module 'send'.
14761 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
14762 * doc/posix-functions/setsockopt.texi: Mention the new module
14764 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
14765 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
14766 listen, connect, accept.
14767 * modules/select-tests (Depends-on): Likewise.
14769 2008-10-05 Bruno Haible <bruno@clisp.org>
14771 * lib/winsock.c (strerror): Remove unused #undef.
14772 (rpl_close): Remove unused local variable.
14774 * modules/sys_socket (Depends-on); Add errno.
14776 2008-10-05 Bruno Haible <bruno@clisp.org>
14778 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
14779 (select): Add a link warning when the 'select' module is not used.
14780 * modules/sys_select (Depends-on): Add link-warning.
14781 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
14782 Suggested by Paolo Bonzini.
14784 2008-10-05 Jim Meyering <meyering@redhat.com>
14786 bootstrap: check for LT_INIT more portably
14787 * build-aux/bootstrap: Avoid using grep -E, since it's not
14788 portable enough. Suggestion from Bruno Haible.
14790 2008-10-05 Bruno Haible <bruno@clisp.org>
14792 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
14793 as being fixed by gnulib.
14795 2008-10-05 Bruno Haible <bruno@clisp.org>
14797 * modules/select-tests: New file, mostly copied from
14798 modules/sys_select-tests.
14799 * tests/test-select.c: New file, mostly copied from
14800 tests/test-sys_select.c.
14801 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
14802 * modules/sys_select-tests (Depends-on): Remove all dependencies.
14803 (Makefile.am): Remove test_sys_select_LDADD.
14805 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
14806 to an undefined symbol, for an error message.
14807 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
14808 (gl_SYS_SELECT_H_DEFAULTS): New macro.
14809 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
14810 winsock-select.c here.
14811 * modules/sys_select (Files): Remove lib/winsock-select.c.
14812 (Depends-on): Remove alloca.
14813 (Makefile.am): Substitute GNULIB_SELECT.
14814 * modules/select: New file.
14815 * doc/posix-functions/select.texi: Update.
14817 2008-10-05 Bruno Haible <bruno@clisp.org>
14819 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
14820 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
14821 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
14822 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
14824 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
14825 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
14827 2008-10-05 Bruno Haible <bruno@clisp.org>
14829 * modules/getdtablesize-tests: New file.
14830 * tests/test-getdtablesize.c: New file.
14832 New module 'getdtablesize'.
14833 * lib/unistd.in.h (getdtablesize): New declaration.
14834 * lib/getdtablesize.c: New file.
14835 * m4/getdtablesize.m4: New file.
14836 * modules/getdtablesize: New file.
14837 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14838 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
14839 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
14840 HAVE_GETDTABLESIZE.
14841 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
14843 2008-10-05 Bruno Haible <bruno@clisp.org>
14845 * modules/sched (Makefile.am): Fix typo.
14846 Reported by Simon Josefsson.
14848 2008-10-05 Jim Meyering <meyering@redhat.com>
14850 bootstrap: check for LT_INIT, too
14851 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
14852 are deprecated. Suggestion from Ralf Wildenhues.
14854 2008-10-05 Bruno Haible <bruno@clisp.org>
14856 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
14857 overriding them by ours.
14858 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
14860 2008-10-05 Jim Meyering <meyering@redhat.com>
14862 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
14863 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
14864 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
14866 2008-10-04 Bruno Haible <bruno@clisp.org>
14868 * modules/dup2 (License): Change to LGPLv2+.
14869 * modules/sleep (License): Likewise.
14870 * modules/perror (License): Likewise.
14871 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
14873 * modules/signal (License): Likewise.
14874 * modules/sigprocmask (License): Likewise.
14875 * modules/raise (License): Change to LGPLv2+, with approval by Jim
14878 2008-10-04 Bruno Haible <bruno@clisp.org>
14880 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
14881 Reported by Rainer Tammer <tammer@tammer.net>.
14883 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
14884 Bruno Haible <bruno@clisp.org>
14886 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
14887 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
14888 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
14890 2008-10-03 Kamil Dudka <kdudka@redhat.com>
14892 filevercmp: new module
14893 * lib/filevercmp.h: New function filevercmp comparing version strings.
14894 * lib/filevercmp.c: Implementation of filevercmp function.
14895 * modules/filevercmp: Module metadata.
14896 * tests/test-filevercmp.c: Unit test for new module.
14897 * modules/filevercmp-tests: Unit test metadata.
14898 * MODULES.html.sh: Add filevercmp module.
14900 2008-10-03 Bruno Haible <bruno@clisp.org>
14902 * lib/c-ctype.h: Add comment.
14903 Reported by Jim Meyering.
14905 2008-10-02 Bruno Haible <bruno@clisp.org>
14907 * modules/posix_spawn-internal (Depends-on): Add 'open'.
14909 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
14911 * build-aux/bootstrap: Allow renaming bootstrap, and change the
14912 name of bootstrap.conf accordingly.
14914 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
14916 * build-aux/bootstrap: Install git-merge-changelog configuration
14917 items into .gitconfig if needed.
14919 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
14921 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
14922 git repository, and initialize/update it accordingly.
14924 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
14926 * modules/fsync-tests: New file.
14927 * tests/test-fsync.c: New file.
14929 New module 'fsync'.
14930 * lib/fsync.c: New file.
14931 * m4/fsync.m4: New file.
14932 * modules/fsync: New file.
14933 * lib/unistd.in.h (fsync): New declaration.
14934 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
14935 GNULIB_FSYNC and HAVE_FSYNC.
14936 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
14937 * MODULES.html.sh (posix_functions): Add fsync.
14938 * doc/posix-functions/fsync.texi: Mention the new module.
14940 2008-10-02 Jim Meyering <meyering@redhat.com>
14942 fts.c: sync with similar code from coreutils' remove.c
14943 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
14944 Guard also with "#if defined __linux__", since for now at least,
14945 this code is Linux-kernel-specific.
14947 2008-10-02 Jim Meyering <meyering@redhat.com>
14950 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
14951 Include <sys/vfs.h>, not <sys/statfs.h>.
14953 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
14954 Include <sys/vfs.h>, not <sys/statfs.h>.
14956 2008-10-01 Bruno Haible <bruno@clisp.org>
14958 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
14959 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
14960 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
14961 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
14962 * doc/posix-functions/posix_spawnp.texi: Likewise.
14963 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
14964 whether posix_spawn actually works.
14965 * m4/pipe.m4 (gl_PIPE): Likewise.
14966 * modules/execute (Files): Add m4/posix_spawn.m4.
14967 * modules/pipe (Files): Add m4/posix_spawn.m4.
14968 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
14970 2008-10-01 Jim Meyering <meyering@redhat.com>
14972 remove trailing spaces
14974 * lib/poll.c (poll): Likewise.
14975 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
14976 * lib/winsock.c (rpl_close): Likewise.
14977 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
14978 * modules/yield: Likewise.
14979 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
14980 * tests/test-sys_select.c (connect_to_socket): Likewise.
14982 fts.c: adjust a new interface to be more generally useful
14983 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
14984 (fts_build): Adjust caller.
14986 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14988 * modules/cond-tests: New file.
14989 * tests/test-cond.c: New file.
14991 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14992 Bruno Haible <bruno@clisp.org>
14994 * modules/cond (Dependencies): Add errno, time.
14995 * lib/glthread/cond.h: Include <time.h>.
14996 (gl_cond_define, gl_cond_define_initialized): Use the same definition
14999 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15000 Bruno Haible <bruno@clisp.org>
15002 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
15004 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15005 Bruno Haible <bruno@clisp.org>
15007 * modules/tls-tests (Depends-on): Add thread, yield.
15008 (configure.ac): Remove all checks.
15009 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
15010 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
15011 gl_thread_self): Remove definitions. Include glthread/thread.h and
15012 glthread/yield.h instead.
15013 (test_tls): Pass an additional NULL argument to gl_thread_join.
15015 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15016 Bruno Haible <bruno@clisp.org>
15018 * modules/lock-tests (Depends-on): Add thread, yield.
15019 (configure.ac): Remove all checks.
15020 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
15021 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
15022 gl_thread_self): Remove definitions. Include glthread/thread.h and
15023 glthread/yield.h instead.
15024 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
15025 additional NULL argument to gl_thread_join.
15027 2008-09-30 Bruno Haible <bruno@clisp.org>
15029 Fix the Win32 implementation of the 'thread' module.
15030 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
15032 (gl_thread_self): Invoke gl_thread_self_func.
15033 (gl_thread_self_func): New declaration.
15034 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
15035 (do_init_self_key, init_self_key): New functions.
15036 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
15037 Remove some fields.
15038 (running_threads, running_lock): Remove variables.
15039 (get_current_thread_handle): New function.
15040 (gl_thread_self_func, wrapper_func, glthread_create_func,
15041 glthread_join_func, gl_thread_exit_func): Largely rewritten and
15044 2008-09-30 Bruno Haible <bruno@clisp.org>
15046 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
15049 2008-09-30 Jim Meyering <meyering@redhat.com>
15051 fts.m4: correct the test for statfs.f_type
15052 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
15053 when checking for statfs.f_type.
15055 2008-09-15 Simon Josefsson <simon@josefsson.org>
15057 tests: avoid some compiler warnings
15058 * tests/test-memchr.c (main): Pass NULL indirectly.
15059 * tests/test-getdate.c (main): Remove unused variable 'ret'.
15061 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
15063 getdate.y: disallow countable dayshifts like "4 yesterday ago"
15064 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
15065 exactly specified dayshifts.
15066 (dayshift): New rule.
15067 (rel): Add dayshift.
15068 (relative_time_table) [tomorrow, yesterday, today, now]:
15069 Use tDAY_SHIFT in place of tDAY_UNIT.
15070 * tests/test-getdate.c: Add tests for now-disallowed countable
15071 dayshifts, e.g., "4 yesterday ago".
15073 2008-09-29 Bruno Haible <bruno@clisp.org>
15075 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
15076 * tests/test-posix_spawn1.in.sh: Renamed from
15077 tests/test-posix_spawn.in.sh.
15078 * tests/test-posix_spawn2.c: New file.
15079 * tests/test-posix_spawn2.in.sh: New file.
15080 * modules/posix_spawnp-tests (Files): Update.
15081 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
15083 2008-09-29 Bruno Haible <bruno@clisp.org>
15085 Propagate effects of putenv/setenv/unsetenv to child processes.
15086 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
15087 * lib/pipe.c (create_pipe): Likewise.
15089 2008-09-29 Bruno Haible <bruno@clisp.org>
15091 Enable use of shell scripts as executables in mingw.
15092 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
15093 run the program as a shell script.
15094 * lib/pipe.c (create_pipe): Likewise.
15095 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
15098 2008-09-29 Eric Blake <ebb9@byu.net>
15100 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
15102 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
15104 * doc/posix-functions/accept.texi: Update mingw problems.
15105 * doc/posix-functions/bind.texi: Update mingw problems.
15106 * doc/posix-functions/close.texi: Update mingw problems.
15107 * doc/posix-functions/connect.texi: Update mingw problems.
15108 * doc/posix-functions/getpeername.texi: Update mingw problems.
15109 * doc/posix-functions/getsockname.texi: Update mingw problems.
15110 * doc/posix-functions/getsockopt.texi: Update mingw problems.
15111 * doc/posix-functions/ioctl.texi: Update mingw problems.
15112 * doc/posix-functions/listen.texi: Update mingw problems.
15113 * doc/posix-functions/recv.texi: Update mingw problems.
15114 * doc/posix-functions/recvfrom.texi: Update mingw problems.
15115 * doc/posix-functions/select.texi: Update mingw problems.
15116 * doc/posix-functions/send.texi: Update mingw problems.
15117 * doc/posix-functions/sendto.texi: Update mingw problems.
15118 * doc/posix-functions/setsockopt.texi: Update mingw problems.
15119 * doc/posix-functions/socket.texi: Update mingw problems.
15121 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
15122 Bruno Haible <bruno@clisp.org>
15124 * lib/sys_select.in.h: Include sys/time.h.
15125 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
15126 * modules/sys_select: Depend on sys_time.
15127 * tests/test-sys_select.c: Test that sys/select.h defines struct
15130 2008-09-29 Bruno Haible <bruno@clisp.org>
15132 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
15133 * lib/sys_select.in.h: Likewise.
15135 2008-09-29 Bruno Haible <bruno@clisp.org>
15137 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
15139 2008-09-29 Bruno Haible <bruno@clisp.org>
15141 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
15142 Set LIBSOCKET instead of augmenting LIBS.
15143 * modules/sockets (Link): New section.
15144 * modules/sockets-tests (test_sockets_LDADD): New variable.
15145 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
15146 * modules/poll-tests (test_poll_LDADD): New variable.
15147 * NEWS: Document the change.
15149 2008-09-29 Bruno Haible <bruno@clisp.org>
15151 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
15152 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
15153 ARPA_INET_H directly.
15154 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15156 2008-09-28 Bruno Haible <bruno@clisp.org>
15158 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
15159 from gl_HEADER_SYS_SOCKET.
15160 (gl_HEADER_SYS_SOCKET): Invoke it.
15161 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15163 2008-09-28 Bruno Haible <bruno@clisp.org>
15165 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
15166 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
15167 Needed on OSF/1 4.0.
15169 2008-09-28 Bruno Haible <bruno@clisp.org>
15171 Override open more carefully.
15172 * lib/open.c (orig_open): New function.
15173 (rpl_open): Use orig_open instead of open.
15174 * lib/fcntl.in.h: Add special invocation convention.
15175 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
15176 (gl_FUNC_OPEN): Invoke it.
15178 Override freopen more carefully.
15179 * lib/freopen.c (orig_freopen): New function.
15180 (rpl_freopen): Use orig_freopen instead of freopen.
15181 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
15182 (gl_FUNC_FREOPEN): Invoke it.
15184 Override fopen more carefully.
15185 * lib/fopen.c (orig_fopen): New function.
15186 (rpl_fopen): Use orig_fopen instead of fopen.
15187 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
15188 (gl_FUNC_FOPEN): Invoke it.
15189 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
15191 2008-09-28 Bruno Haible <bruno@clisp.org>
15193 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
15196 2008-09-28 Bruno Haible <bruno@clisp.org>
15198 * tests/test-sigaction.c (handler, main): Disable the check whether
15199 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
15200 glibc systems with LinuxThreads.
15202 2008-09-28 Bruno Haible <bruno@clisp.org>
15204 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
15206 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
15208 * lib/fcntl.in.h (open): Likewise.
15209 Reported by Rainer Tammer <tammer@tammer.net>.
15211 2008-09-28 Bruno Haible <bruno@clisp.org>
15213 * modules/posix_spawnp-tests: New file.
15214 * tests/test-posix_spawn.c: New file.
15215 * tests/test-posix_spawn.in.sh: New file.
15217 New module 'posix_spawnp'.
15218 * modules/posix_spawnp: New file.
15219 * lib/spawnp.c: New file, from GNU libc with modifications.
15220 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
15222 New module 'posix_spawn'.
15223 * modules/posix_spawn: New file.
15224 * lib/spawn.c: New file, from GNU libc with modifications.
15225 * doc/posix-functions/posix_spawn.texi: Mention the new module.
15227 New module 'posix_spawnattr_destroy'.
15228 * modules/posix_spawnattr_destroy: New file.
15229 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
15230 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
15233 New module 'posix_spawnattr_setsigmask'.
15234 * modules/posix_spawnattr_setsigmask: New file.
15235 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
15237 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
15240 New module 'posix_spawnattr_getsigmask'.
15241 * modules/posix_spawnattr_getsigmask: New file.
15242 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
15244 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
15247 New module 'posix_spawnattr_setsigdefault'.
15248 * modules/posix_spawnattr_setsigdefault: New file.
15249 * lib/spawnattr_setdefault.c: New file, from GNU libc with
15251 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
15254 New module 'posix_spawnattr_getsigdefault'.
15255 * modules/posix_spawnattr_getsigdefault: New file.
15256 * lib/spawnattr_getdefault.c: New file, from GNU libc with
15258 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
15261 New module 'posix_spawnattr_setschedpolicy'.
15262 * modules/posix_spawnattr_setschedpolicy: New file.
15263 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
15265 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
15268 New module 'posix_spawnattr_getschedpolicy'.
15269 * modules/posix_spawnattr_getschedpolicy: New file.
15270 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
15272 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
15275 New module 'posix_spawnattr_setschedparam'.
15276 * modules/posix_spawnattr_setschedparam: New file.
15277 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
15279 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
15282 New module 'posix_spawnattr_getschedparam'.
15283 * modules/posix_spawnattr_getschedparam: New file.
15284 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
15286 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
15289 New module 'posix_spawnattr_setpgroup'.
15290 * modules/posix_spawnattr_setpgroup: New file.
15291 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
15293 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
15296 New module 'posix_spawnattr_getpgroup'.
15297 * modules/posix_spawnattr_getpgroup: New file.
15298 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
15300 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
15303 New module 'posix_spawnattr_setflags'.
15304 * modules/posix_spawnattr_setflags: New file.
15305 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
15306 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
15309 New module 'posix_spawnattr_getflags'.
15310 * modules/posix_spawnattr_getflags: New file.
15311 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
15312 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
15315 New module 'posix_spawnattr_init'.
15316 * modules/posix_spawnattr_init: New file.
15317 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
15318 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
15321 New module 'posix_spawn_file_actions_destroy'.
15322 * modules/posix_spawn_file_actions_destroy: New file.
15323 * lib/spawn_faction_destroy.c: New file, from GNU libc with
15325 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
15328 New module 'posix_spawn_file_actions_addopen'.
15329 * modules/posix_spawn_file_actions_addopen: New file.
15330 * lib/spawn_faction_addopen.c: New file, from GNU libc with
15332 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
15335 New module 'posix_spawn_file_actions_adddup2'.
15336 * modules/posix_spawn_file_actions_adddup2: New file.
15337 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
15339 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
15342 New module 'posix_spawn_file_actions_addclose'.
15343 * modules/posix_spawn_file_actions_addclose: New file.
15344 * lib/spawn_faction_addclose.c: New file, from GNU libc with
15346 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
15349 New module 'posix_spawn_file_actions_init'.
15350 * modules/posix_spawn_file_actions_init: New file.
15351 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
15352 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
15355 New module 'posix_spawn-internal'.
15356 * modules/posix_spawn-internal: New file.
15357 * lib/spawn_int.h: New file, from GNU libc with modifications.
15358 * lib/spawni.c: New file, from GNU libc with modifications.
15359 * m4/posix_spawn.m4: New file.
15361 New module 'spawn'.
15362 * modules/spawn: New file.
15363 * lib/spawn.in.h: New file, from GNU libc with modifications.
15364 * m4/spawn_h.m4: New file.
15365 * doc/posix-headers/spawn.texi: Mention the new module.
15367 2008-09-28 Bruno Haible <bruno@clisp.org>
15369 * modules/sched-tests: New file.
15370 * tests/test-sched.c: New file.
15372 New module 'sched'.
15373 * modules/sched: New file.
15374 * lib/sched.in.h: New file.
15375 * m4/sched_h.m4: New file.
15376 * doc/posix-headers/sched.texi: Mention the new module.
15378 2008-09-27 Eric Blake <ebb9@byu.net>
15380 Fix previous patch, and tweak references to $0.
15381 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
15382 (func_version, func_gnulib_dir): Don't call this program
15384 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
15385 with using $0 in function.
15386 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
15387 (func_fatal_error): Reuse the name the user invoked us with.
15389 2008-09-27 Bruno Haible <bruno@clisp.org>
15391 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
15392 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
15393 (gl_ICONV_H): Not here.
15394 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
15395 instead of assigning ICONV_H directly.
15397 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
15398 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
15401 2008-09-27 Bruno Haible <bruno@clisp.org>
15403 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
15404 * modules/arpa_inet (Depends-on): Add link-warning.
15405 (Makefile.am): Insert the definition of GL_LINK-WARNING.
15406 * modules/unistd (Makefile.am): Likewise.
15408 2008-09-26 Bruno Haible <bruno@clisp.org>
15410 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
15412 (func_version): Essentially copied from gnulib-tool.
15413 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
15414 func_readlink): Copied from gnulib-tool.
15416 2008-09-26 Bruno Haible <bruno@clisp.org>
15418 * gnulib-tool (func_version): Change directory to $gnulib_dir before
15419 invoking git-version-gen.
15421 2008-09-26 Bruno Haible <bruno@clisp.org>
15423 * posix-modules: Update to directory names changed on 2008-01-19.
15424 Remove commas in output before splitting into words. No more need to
15425 avoid 'ftruncate' since 2007-02-19.
15427 2008-09-26 Bruno Haible <bruno@clisp.org>
15429 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
15431 2008-09-26 Bruno Haible <bruno@clisp.org>
15433 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
15434 * modules/fwriteerror (Depends-on): Add errno.
15436 2008-09-26 Bruno Haible <bruno@clisp.org>
15438 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
15439 * tests/test-vc-list-files-cvs.sh: Likewise.
15441 2008-09-26 Bruno Haible <bruno@clisp.org>
15443 * doc/posix-headers/sys_resource.texi: Reorder items.
15445 2008-09-26 Jim Meyering <meyering@redhat.com>
15447 fts: tweak inode comparison function
15448 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
15449 inode numbers, as documented.
15451 fts: sort dirent entries on inode number before traversing
15452 This avoids a quadratic, seek-related performance penalty when
15453 operating on a directory containing many entries (measurable at 10k;
15454 3.5 hours at 2 million entries with a cold cache) on certain types
15455 of file systems, including ext3 and ext4, but not tmpfs.
15456 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
15457 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
15458 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
15459 (fs_handles_readdir_ordered_dirents_efficiently): New function.
15460 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
15461 (fts_build): Set the stat.st_ino member from D_INO.
15462 If it is likely to be useful, sort dirent entries on inode number.
15464 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
15465 and the struct statfs.f_type member.
15466 * modules/fts (Depends-on): Add d-ino.
15468 2008-09-26 Bruno Haible <bruno@clisp.org>
15470 * modules/sigpipe-die (Depends-on): Add sigpipe.
15472 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
15473 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
15474 and GNULIB_STDIO_H_SIGPIPE are set.
15475 * lib/stdio-write.c: New file.
15476 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
15477 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
15478 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
15479 REPLACE_STDIO_WRITE_FUNCS.
15480 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
15481 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
15482 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
15483 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
15484 * modules/stdio (Files): Add lib/stdio-write.c.
15485 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
15486 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
15487 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
15488 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
15489 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
15490 REPLACE_FPRINTF_POSIX.
15491 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
15492 REPLACE_PRINTF_POSIX.
15493 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
15494 REPLACE_VFPRINTF_POSIX.
15495 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
15496 REPLACE_VPRINTF_POSIX.
15497 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
15499 * doc/posix-functions/fputc.texi: Likewise.
15500 * doc/posix-functions/fputs.texi: Likewise.
15501 * doc/posix-functions/fwrite.texi: Likewise.
15502 * doc/posix-functions/printf.texi: Likewise.
15503 * doc/posix-functions/putc.texi: Likewise.
15504 * doc/posix-functions/putchar.texi: Likewise.
15505 * doc/posix-functions/puts.texi: Likewise.
15506 * doc/posix-functions/vfprintf.texi: Likewise.
15507 * doc/posix-functions/vprintf.texi: Likewise.
15509 * modules/safe-write (Depends-on): Add write.
15511 * modules/sigpipe-tests: New file.
15512 * tests/test-sigpipe.c: New file.
15513 * tests/test-sigpipe.sh: New file.
15515 * modules/write: New file.
15516 * lib/unistd.in.h: Include <sys/types.h>.
15517 (write): New declaration.
15518 * lib/write.c: New file.
15519 * m4/write.m4: New file.
15520 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15521 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
15522 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
15523 GNULIB_WRITE, REPLACE_WRITE.
15524 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
15525 and the SIGPIPE issue.
15527 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
15528 (raise): New declaration.
15529 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
15530 (ext_signal): New function.
15531 (rpl_raise): New function.
15532 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15533 GNULIB_SIGNAL_H_SIGPIPE.
15534 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
15535 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
15537 * modules/sigpipe: New file.
15538 * m4/sigpipe.m4: New file.
15540 2008-09-25 Derek Price <derek@ximbiot.com>
15541 Bruno Haible <bruno@clisp.org>
15543 * gnulib-tool (func_import): Report all license incompatibilities, not
15544 just the first one.
15546 2008-09-25 Bruno Haible <bruno@clisp.org>
15548 * gnulib-tool (func_import): When computing the edits, consider not
15549 only the Makefile.ams that exist but also those that will be generated.
15551 2008-09-25 Simon Josefsson <simon@josefsson.org>
15553 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
15554 fixes gnulib-tool --test warning about duplicate dependency.
15556 2008-09-25 Bruno Haible <bruno@clisp.org>
15558 * gnulib-tool: Don't ask the user to perform edits in the generated
15560 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
15561 apply to the Makefile.am being generated.
15562 (func_emit_tests_Makefile_am): Execute edits that apply to the
15563 Makefile.am being generated.
15564 (func_import): Setup list of Makefile.am edits before emitting the
15565 Makefile.ams, not at the end.
15566 (func_create_testdir): Update.
15567 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
15569 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15571 * gnulib-tool (func_import): Store the --tests-base option in the
15572 comment in gnulib-cache.m4.
15574 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
15576 * NEWS: Document increased portability that sys_select now provides.
15578 * lib/sys_select.in.h: Install select wrapper.
15579 * lib/sys_socket.in.h: Use more descriptive name when there is no
15581 * lib/winsock-select.c: New.
15582 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
15583 Require gl_HEADER_SYS_SOCKET.
15584 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
15585 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
15586 * tests/test-sys_select.c: Add functional tests.
15588 2008-09-24 Eric Blake <ebb9@byu.net>
15590 open, fopen: close fd leak in last patch
15591 * lib/open.c (rpl_open): Close fd before returning error.
15592 * lib/fopen.c (rpl_fopen): Close fd before returning error.
15593 * doc/posix-functions/open.texi (open): Document that Irix also
15595 * doc/posix-functions/fopen.texi (fopen): Likewise.
15596 Reported by Paolo Bonzini.
15598 2008-09-24 Bruno Haible <bruno@clisp.org>
15600 Ensure that a filename ending in a slash cannot be used to access a
15602 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
15603 to check whether it's really a directory.
15604 * lib/fopen.c: Include fcntl.h, unistd.h.
15605 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
15607 * modules/fopen (Depends-on): Add unistd.
15608 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
15609 * tests/test-fopen.c (main): Likewise.
15610 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
15611 * doc/posix-functions/fopen.texi: Likewise.
15612 Reported by Eric Blake.
15614 2008-09-23 Eric Blake <ebb9@byu.net>
15616 c-stack: avoid compiler optimizations when provoking overflow
15617 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
15618 recursion harder to optimize, to ensure a stack overflow occurs.
15619 * tests/test-c-stack.c (recurse): Likewise.
15620 Borrowed from libsigsegv.
15622 c-stack: work around Irix sigaltstack bug
15623 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
15624 whether sigaltstack uses wrong end of stack_t (copied in part from
15626 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
15627 Irix bug, without requiring an over-allocation.
15628 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
15631 fopen: document mingw bug on directories
15632 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
15633 not allowing a stream visiting a directory, even though reading
15634 from such a stream is not portable.
15636 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
15638 * lib/poll.c: Rewrite.
15639 * modules/poll: Depend on alloca.
15641 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
15643 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
15644 instead define prototypes for a full set of wrappers. Ensure
15645 that Cygwin does not use the compatibility code, which is only
15647 * lib/winsock.c: New.
15648 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
15649 * modules/sys_socket: Add lib/winsock.c.
15651 * modules/poll-tests: Add errno and perror.
15652 * tests/test-poll.c: Use ioctl, not ioctlsocket.
15654 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
15656 * tests/test-poll.c: Downgrade minimum needed Winsock version.
15658 2008-09-23 Bruno Haible <bruno@clisp.org>
15660 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
15661 * doc/glibc-functions/*: Likewise.
15663 2008-09-23 Simon Josefsson <simon@josefsson.org>
15665 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
15668 2008-09-22 Eric Blake <ebb9@byu.net>
15669 Bruno Haible <bruno@clisp.org>
15671 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
15672 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
15673 supply %A but mishandle pseudo-NaN.
15674 Reported by Simon Josefsson.
15676 2008-09-21 Bruno Haible <bruno@clisp.org>
15678 * tests/test-lock.c (main): Tweak skip message.
15679 * tests/test-tls.c (main): Likewise.
15681 2008-09-21 Bruno Haible <bruno@clisp.org>
15683 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
15684 whether 'struct sigaction' has sa_sigaction here...
15685 (gl_PREREQ_SIG_HANDLER_H): ... not here.
15686 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
15688 2008-09-21 Bruno Haible <bruno@clisp.org>
15690 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
15692 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
15693 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
15695 (Support for obsolete systems lacking POSIX:2001): New section.
15696 (String handling <string.h>): Move strdup to the new section.
15697 Suggested by Simon Josefsson and Paolo Bonzini.
15699 2008-09-21 Bruno Haible <bruno@clisp.org>
15701 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
15702 exponents in %e and %g results on 'long double'. Needed for mingw's
15703 improved *printf functions.
15704 * tests/test-vasprintf-posix.c (test_function): Likewise.
15705 * tests/test-snprintf-posix.h (test_function): Likewise.
15706 * tests/test-sprintf-posix.h (test_function): Likewise.
15707 Reported by Eric Blake.
15709 2008-09-21 Bruno Haible <bruno@clisp.org>
15711 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
15712 * tests/test-sprintf-posix.h (test_function): Likewise.
15714 2008-09-21 Bruno Haible <bruno@clisp.org>
15716 * modules/getpass (Depends-on): Add strdup-posix.
15718 New module 'strdup-posix'.
15719 * modules/strdup-posix: New file.
15720 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
15721 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
15722 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15724 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
15725 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
15726 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15729 * modules/strdup (Depends-on): Remove malloc-posix.
15731 2008-09-20 Bruno Haible <bruno@clisp.org>
15733 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
15736 2008-09-20 Bruno Haible <bruno@clisp.org>
15738 Ensure that wint_t gets defined on IRIX 5.3.
15739 * lib/wchar.in.h (wint_t): Define if not defined by the system.
15740 * lib/wctype.in.h (wint_t): Likewise.
15741 (__wctype_wint_t): Remove type.
15742 (isw*): Use wint_t instead of __wctype_wint_t.
15743 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
15744 * modules/wchar (Files): Add m4/wint_t.m4.
15745 (Makefile.am): Substitute HAVE_WINT_T.
15746 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
15747 * tests/test-wctype.c: Check that wint_t is defined.
15748 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
15749 * doc/posix-headers/wctype.texi: Likewise.
15750 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15752 2008-09-18 Bruno Haible <bruno@clisp.org>
15754 * gnulib-tool (func_exit): Update comment.
15756 2008-09-18 Simon Josefsson <simon@josefsson.org>
15758 * modules/getaddrinfo (Depends-on): Remove strdup, this module
15759 assumes strdup exists and does not depend on strdup to return
15760 ENOMEM on out of memory conditions.
15762 2008-09-18 Bruno Haible <bruno@clisp.org>
15764 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
15765 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
15766 digits for the exponent.
15768 2008-09-18 Jim Meyering <meyering@redhat.com>
15769 Bruno Haible <bruno@clisp.org>
15771 * lib/vasnprintf.c (decimal_point_char): Define also if
15772 NEED_PRINTF_INFINITE_LONG_DOUBLE.
15774 2008-09-16 Bruno Haible <bruno@clisp.org>
15775 and Eric Blake <ebb9@byu.net>
15777 vasnprintf: support Irix 5.3
15778 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
15779 that mishandle long double infinity.
15780 Reported by Tom G. Christensen.
15782 2008-09-16 Bruno Haible <bruno@clisp.org>
15784 * doc/glibc-functions/scandir.texi: Mention the function is missing on
15786 * doc/glibc-functions/alphasort.texi: Likewise.
15787 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
15789 2008-09-16 Jim Meyering <meyering@redhat.com>
15791 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
15792 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
15793 a umask modification leak out of a subshell. Otherwise, the
15794 opensolaris /bin/sh would be accepted and thus cause unwarranted
15795 failures in the coreutils test suite.
15797 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
15799 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
15802 2008-09-16 Jim Meyering <meyering@redhat.com>
15804 avoid spurious test failure when library is built without ACL support
15805 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
15806 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
15807 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
15808 * tests/test-copy-acl.sh: Likewise.
15810 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15812 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
15813 based on character occurrence counts.
15815 2008-09-15 Eric Blake <ebb9@byu.net>
15817 tests: avoid some compiler warnings
15818 * tests/test-memchr.c (main): Pass NULL indirectly.
15819 * tests/test-closein.c (main): Avoid unused variable.
15821 2008-09-15 Bruno Haible <bruno@clisp.org>
15823 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
15824 are missing on OpenBSD 4.0 individually.
15825 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
15827 2008-09-15 Bruno Haible <bruno@clisp.org>
15829 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
15830 * doc/posix-functions/strerror.texi: Mention also Cygwin.
15831 * doc/posix-functions/perror.texi: Likewise.
15832 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
15834 Reported by Eric Blake.
15836 * lib/errno.in.h: Use replacement values >= 2000.
15837 Reported by Eric Blake.
15839 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15841 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
15842 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
15844 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
15845 compareseq was aborted.
15847 2008-09-14 Bruno Haible <bruno@clisp.org>
15849 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
15851 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
15852 (fstrcmp_bounded): Simplify result computation accordingly.
15854 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15856 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
15857 (fstrcmp): Define in terms of fstrcmp_bounded.
15858 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
15859 lower_bound argument.
15860 Return quickly if the result is certainly < lower_bound.
15861 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
15863 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15865 * lib/diffseq.h (EARLY_ABORT): New macro.
15866 (compareseq): Change return type to bool. Return true when EARLY_ABORT
15869 2008-09-14 Bruno Haible <bruno@clisp.org>
15871 * modules/perror-tests: New file.
15872 * tests/test-perror.sh: New file.
15873 * tests/test-perror.c: New file.
15875 New module 'perror'.
15876 * lib/stdio.in.h (perror): New declaration.
15877 * lib/perror.c: New file.
15878 * m4/perror.m4: New file.
15879 * modules/perror: New file.
15880 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
15881 * doc/posix-functions/perror.texi: Mention the perror module.
15882 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
15884 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
15887 2008-09-14 Bruno Haible <bruno@clisp.org>
15889 * modules/stdio (Makefile.am): Reorder to match the order in
15891 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15893 2008-09-13 Bruno Haible <bruno@clisp.org>
15895 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
15897 2008-09-13 Bruno Haible <bruno@clisp.org>
15899 Extend strerror to cover the added errno values.
15900 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
15901 (rpl_strerror): Provide error messages for the added errno values and
15902 for the WSA* values.
15903 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
15904 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
15906 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
15907 * modules/strerror (Depends-on): Add errno.
15908 * doc/posix-functions/strerror.texi: Document the change.
15909 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
15912 2008-09-13 Bruno Haible <bruno@clisp.org>
15914 * modules/EOVERFLOW: Remove file.
15915 * m4/eoverflow.m4: Remove file.
15916 * modules/EOVERFLOW-tests: Remove file.
15917 * tests/test-EOVERFLOW.c: Remove file.
15918 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
15919 * modules/ftell (Depends-on): Likewise.
15920 * modules/getdelim (Depends-on): Likewise.
15921 * modules/getugroups (Depends-on): Likewise.
15922 * modules/poll (Depends-on): Likewise.
15923 * modules/snprintf (Depends-on): Likewise.
15924 * modules/sprintf-posix (Depends-on): Likewise.
15925 * modules/vasnprintf (Depends-on): Likewise.
15926 * modules/vasprintf (Depends-on): Likewise.
15927 * modules/vfprintf-posix (Depends-on): Likewise.
15928 * modules/vsnprintf (Depends-on): Likewise.
15929 * modules/vsprintf-posix (Depends-on): Likewise.
15930 * modules/xvasprintf (Depends-on): Likewise.
15931 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15932 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
15933 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
15934 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
15935 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15936 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
15937 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
15938 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
15939 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15940 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
15941 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
15942 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
15943 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15944 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
15945 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
15946 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
15947 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15948 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
15949 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
15950 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
15951 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15952 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
15953 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
15954 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
15955 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
15956 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15957 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
15958 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
15959 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
15960 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
15961 * MODULES.html.sh: Remove EOVERFLOW.
15962 * NEWS: Mention the change.
15964 2008-09-13 Bruno Haible <bruno@clisp.org>
15966 * modules/errno-tests: New file.
15967 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
15969 * lib/errno.in.h: New file.
15970 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
15971 * modules/errno: New file.
15972 * doc/posix-headers/errno.texi: Update documentation.
15973 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
15975 2008-09-13 Bruno Haible <bruno@clisp.org>
15977 * tests/test-poll.c: Use #if for native Windows, rather than testing
15980 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15981 Bruno Haible <bruno@clisp.org>
15983 * lib/glob.c: Don't include <pwd.h> on native Windows.
15984 (WINDOWS32): New macro.
15985 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
15987 2008-09-13 Bruno Haible <bruno@clisp.org>
15989 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
15990 (ETIMEDOUT): Remove macro.
15991 (glthread_cond_timedwait_multithreaded): New declaration.
15992 (glthread_cond_timedwait): Use it.
15993 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
15994 (glthread_cond_timedwait_multithreaded): New function.
15996 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
15998 * modules/poll-tests: Do not check for io.h.
15999 * tests/test-poll.c: Check for __MSVCRT__ instead.
16001 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
16003 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
16004 * modules/poll-tests: Add inet_pton, stdbool, sockets.
16005 * tests/test-poll.c: Use them. Use _pipe on Windows.
16007 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
16009 * modules/poll-tests: New.
16010 * tests/test-poll.c: New.
16012 2008-09-12 Eric Blake <ebb9@byu.net>
16014 frexp: test for NetBSD failure on -0.0
16015 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
16016 not all, bugs from NetBSD 3.0 have been fixed.
16017 * doc/posix-functions/frexp.texi (frexp): Document bug.
16018 Reported by Thomas Klausner.
16020 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
16021 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
16023 Reported by Jonathan C. Patschke <jp@centtech.com>.
16025 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16027 * lib/glthread/cond.h: Use dummy implementation also if
16030 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16032 * modules/fnmatch-posix (License): Change to LGPLv2+.
16033 * modules/fnmatch-gnu (License): Likewise.
16035 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16037 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
16039 2008-09-11 Jim Meyering <meyering@redhat.com>
16041 * users.txt: Add gtk-vnc.
16043 2008-09-08 Simon Josefsson <simon@josefsson.org>
16045 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
16048 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
16049 required for 16-bit and 8-bit rotates.
16050 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
16051 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
16052 UINT8_MAX instead of hard-coded constants.
16053 Suggested by Paul Eggert.
16055 2008-09-07 Bruno Haible <bruno@clisp.org>
16057 * tests/test-striconveh.c (main): Check behaviour when converting from
16060 Make striconveh work better with stateful encodings.
16061 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
16062 that iconv does not increment the inptr when returning -1/EINVAL.
16064 2008-09-07 Bruno Haible <bruno@clisp.org>
16066 * build-aux/config.rpath: Update according to libtool-2.2.6.
16067 * build-aux/config.libpath: Likewise.
16069 2008-09-06 Bruno Haible <bruno@clisp.org>
16071 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
16072 * lib/freadptr.c (freadptr): Likewise.
16073 * lib/freadseek.c (freadptrinc): Likewise.
16074 Reported by Simon Josefsson.
16076 2008-09-06 Bruno Haible <bruno@clisp.org>
16078 * modules/freadptr (License): Change to LGPLv2+.
16079 * modules/freadseek (License): Likewise.
16080 Suggested by Eric Blake.
16082 * modules/memchr2 (License): Change to LGPLv2+.
16083 Approved by Eric Blake.
16085 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16086 Bruno Haible <bruno@clisp.org>
16088 Make gnulib-tool work with native 'sed' on AIX.
16089 * gnulib-tool (sed_noop): New variable.
16090 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
16091 func_add_or_update, func_create_testdir): Use it to initialize sed
16093 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16095 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
16096 Bruno Haible <bruno@clisp.org>
16098 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
16099 also works after #include directives.
16101 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
16103 getdate.y: reject an out-of-range timezone value
16104 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
16105 the range [-24...+24]. When specified with only one or two digits,
16106 * tests/test-getdate.c: Tests for the fix.
16107 * doc/getdate.texi: Document this change.
16109 2008-09-03 Bruno Haible <bruno@clisp.org>
16111 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
16113 2008-09-02 Simon Josefsson <simon@josefsson.org>
16115 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
16116 <bruce.korb@gmail.com> with ideas from Ben Pfaff
16117 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
16118 Blake <ebb9@byu.net>.
16120 * tests/test-bitrotate.c: Add more test vectors.
16122 2008-09-02 Eric Blake <ebb9@byu.net>
16124 vasnprintf-posix: handle large precision via %.*d
16125 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
16126 when handling it ourselves.
16127 * tests/test-vasnprintf-posix.c (test_function): Add test.
16128 * tests/test-snprintf-posix.h (test_function): Likewise.
16129 * tests/test-sprintf-posix.h (test_function): Likewise.
16130 * tests/test-vasprintf-posix.c (test_function): Likewise.
16131 Reported by Alain Guibert.
16133 2008-09-01 Eric Blake <ebb9@byu.net>
16135 c-stack: make configure-time check more robust
16136 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
16137 successful sigaction call.
16138 Reported by Tom G. Christensen.
16140 2008-09-01 Bruno Haible <bruno@clisp.org>
16142 New module 'findprog-lgpl'.
16143 * modules/findprog-lgpl: New file.
16144 * lib/findprog-lgpl.c: New file.
16145 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
16146 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
16147 to decide whether to use strdup or xstrdup, concatenated_filename or
16148 xconcatenated_filename.
16150 2008-09-01 Bruno Haible <bruno@clisp.org>
16152 Split module 'concat-filename' into 'concat-filename' (LGPL) and
16153 'xconcat-filename' (GPL).
16154 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
16155 (License): Change to LGPLv2+.
16156 * modules/xconcat-filename: New file.
16157 * lib/concat-filename.h (concatenated_filename): Change specification.
16158 (xconcatenated_filename): New declaration.
16159 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
16160 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
16162 * lib/xconcat-filename.c: New file.
16163 * NEWS: Mention the change.
16164 * lib/findprog.c: Include concat-filename.h, not filename.h.
16165 (find_in_path): Use xconcatenated_filename instead of
16166 concatenated_filename.
16167 * lib/javacomp.c: Include concat-filename.h, not filename.h.
16168 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
16169 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
16170 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
16171 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
16172 instead of concatenated_filename.
16173 * lib/javaexec.c: Include concat-filename.h, not filename.h.
16174 (execute_java_class): Use xconcatenated_filename instead of
16175 concatenated_filename.
16176 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
16177 * modules/javacomp (Depends-on): Likewise.
16178 * modules/javaexec (Depends-on): Likewise.
16180 2008-09-01 Bruno Haible <bruno@clisp.org>
16182 Split module 'filename' into 'filename' and 'concat-filename'.
16183 * modules/filename: Keep only lib/filename.h.
16184 (License): Change to LGPLv2+.
16185 * modules/concat-filename: New file, extracted from modules/filename.
16186 * lib/filename.h (concatenated_filename): Remove declaration.
16187 * lib/concat-filename.h: New file, extracted from lib/filename.h.
16188 * lib/concat-filename.c: Include concat-filename.h.
16189 * NEWS: Mention the change.
16191 2008-09-01 Simon Josefsson <simon@josefsson.org>
16193 * lib/bitrotate.h (rotl8, rotr8): Add.
16195 * modules/bitrotate (configure.ac): Need
16196 AC_REQUIRE([AC_C_INLINE]).
16197 (Description): Mention stdint.h. Reported by Bruno Haible
16200 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
16201 Paolo Bonzini <bonzini@gnu.org>.
16203 2008-08-31 Bruno Haible <bruno@clisp.org>
16205 Assume Solaris specific bi-arch conventions on Solaris systems.
16206 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
16207 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
16208 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
16209 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
16210 like acl_libdirstem.
16211 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
16213 * NEWS: Mention the change.
16214 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
16216 2008-08-31 Jim Meyering <meyering@redhat.com>
16218 * lib/strftime.h: Add comments describing the two added arguments.
16220 remove duplicate #include directives
16221 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
16222 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
16224 2008-08-31 Bruno Haible <bruno@clisp.org>
16226 New module 'sigpipe-die'.
16227 * modules/sigpipe-die: New file.
16228 * lib/sigpipe-die.h: New file.
16229 * lib/sigpipe-die.c: New file.
16230 * MODULES.html.sh (Signal handling): Add sigpipe-die.
16232 2008-08-31 Bruno Haible <bruno@clisp.org>
16234 Don't override previously installed signal handlers.
16235 * lib/fatal-signal.c (saved_sigactions): New variable.
16236 (uninstall_handlers): Reset the signal to the saved handler, not
16237 to SIG_DFL (except when ignored).
16238 (install_handlers): Save the previous handlers.
16240 2008-08-30 Bruno Haible <bruno@clisp.org>
16242 * gnulib-tool (func_reset_sigpipe): New function.
16243 (func_get_automake_snippet, func_modules_transitive_closure,
16244 func_import): Invoke it before a join command that reads from stdin,
16245 to avoid "echo: write error: Broken pipe" error messages on stderr.
16246 Reported by Sam Steingold <sds@gnu.org>.
16248 2008-08-30 Bruno Haible <bruno@clisp.org>
16250 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
16251 Code copied from m4/open.m4.
16252 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
16253 access and the filename ends in a slash. Code copied from lib/open.c.
16254 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
16255 * tests/test-fopen.c (main): Check against bug with trailing slash.
16257 2008-08-29 Bruno Haible <bruno@clisp.org>
16259 Avoid some "gcc -pedantic" warnings.
16260 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
16261 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
16262 * lib/dirent.in.h: Likewise.
16263 * lib/fcntl.in.h: Likewise.
16264 * lib/float.in.h: Likewise.
16265 * lib/iconv.in.h: Likewise.
16266 * lib/inttypes.in.h: Likewise.
16267 * lib/locale.in.h: Likewise.
16268 * lib/math.in.h: Likewise.
16269 * lib/netinet_in.in.h: Likewise.
16270 * lib/search.in.h: Likewise.
16271 * lib/signal.in.h: Likewise.
16272 * lib/stdarg.in.h: Likewise.
16273 * lib/stdint.in.h: Likewise.
16274 * lib/stdio.in.h: Likewise.
16275 * lib/stdlib.in.h: Likewise.
16276 * lib/string.in.h: Likewise.
16277 * lib/strings.in.h: Likewise.
16278 * lib/sys_select.in.h: Likewise.
16279 * lib/sys_socket.in.h: Likewise.
16280 * lib/sys_stat.in.h: Likewise.
16281 * lib/sys_time.in.h: Likewise.
16282 * lib/sysexits.in.h: Likewise.
16283 * lib/time.in.h: Likewise.
16284 * lib/unistd.in.h: Likewise.
16285 * lib/wchar.in.h: Likewise.
16286 * lib/wctype.in.h: Likewise.
16287 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
16288 * modules/fchdir (Makefile.am): Likewise.
16289 * modules/fcntl (Makefile.am): Likewise.
16290 * modules/float (Makefile.am): Likewise.
16291 * modules/iconv_open (Makefile.am): Likewise.
16292 * modules/inttypes (Makefile.am): Likewise.
16293 * modules/locale (Makefile.am): Likewise.
16294 * modules/math (Makefile.am): Likewise.
16295 * modules/netinet_in (Makefile.am): Likewise.
16296 * modules/search (Makefile.am): Likewise.
16297 * modules/signal (Makefile.am): Likewise.
16298 * modules/stdarg (Makefile.am): Likewise.
16299 * modules/stdint (Makefile.am): Likewise.
16300 * modules/stdio (Makefile.am): Likewise.
16301 * modules/stdlib (Makefile.am): Likewise.
16302 * modules/string (Makefile.am): Likewise.
16303 * modules/strings (Makefile.am): Likewise.
16304 * modules/sys_select (Makefile.am): Likewise.
16305 * modules/sys_socket (Makefile.am): Likewise.
16306 * modules/sys_stat (Makefile.am): Likewise.
16307 * modules/sys_time (Makefile.am): Likewise.
16308 * modules/sysexits (Makefile.am): Likewise.
16309 * modules/time (Makefile.am): Likewise.
16310 * modules/unistd (Makefile.am): Likewise.
16311 * modules/wchar (Makefile.am): Likewise.
16312 * modules/wctype (Makefile.am): Likewise.
16313 Reported by Reuben Thomas <rrt@sc3d.org>.
16315 2008-08-29 Bruno Haible <bruno@clisp.org>
16317 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
16320 2008-08-29 Simon Josefsson <simon@josefsson.org>
16322 * MODULES.html.sh (Misc): Add bitrotate.
16324 * modules/bitrotate: New file.
16326 * lib/bitrotate.h: New file.
16328 * modules/bitrotate-tests: New file.
16330 * tests/test-bitrotate.c: New file.
16332 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
16333 on the bitrotate module.
16335 * lib/arctwo.c: Use new bitrotate module.
16337 2008-08-29 Jim Meyering <meyering@redhat.com>
16339 bootstrap: merge changes from coreutils
16340 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
16341 of copied files. Remove a kludge, now that this is fixed.
16342 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
16343 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
16344 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
16346 2008-08-29 Bruno Haible <bruno@clisp.org>
16348 * MODULES.html.sh: Remove --cvs-urls option.
16350 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
16352 maint.mk: adjust to file name change
16353 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
16355 2008-08-28 Jim Meyering <meyering@redhat.com>
16357 * modules/getndelim2 (License): Relicense to LGPLv2+.
16358 Approved by Richard Stallman for the version of 1995, and by
16359 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
16361 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
16363 * lib/getdelim.c (flockfile, funlockfile): Make all of them
16364 dummy if one is not available. Do not touch them if
16365 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
16366 (getc_maybe_unlocked): New.
16367 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
16369 2008-08-26 Eric Blake <ebb9@byu.net>
16371 doc/INSTALL: resync from autoconf
16372 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
16373 (INSTALL_PRELUDE): Delete; this is done more efficiently by
16375 * install.texi [!autoconf]: ...here. Resync from autoconf.
16376 * INSTALL: Regenerate.
16377 * INSTALL.ISO: New file.
16378 * INSTALL.UTF-8: Likewise.
16380 2008-08-26 Jim Meyering <meyering@redhat.com>
16382 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
16383 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
16384 these definitions conditional, so that they may be overridden, too.
16386 2008-08-26 Bruno Haible <bruno@clisp.org>
16388 Generate INSTALL file variants with prettier quotes.
16389 * doc/Makefile (INSTALL_PRELUDE): New macro.
16391 (INSTALL.ISO, INSTALL.UTF-8): New rules.
16393 2008-08-26 Bruno Haible <bruno@clisp.org>
16395 Run makeinfo in an English locale.
16396 * doc/Makefile (MAKEINFO): New variable.
16398 2008-08-26 Bruno Haible <bruno@clisp.org>
16400 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
16401 Suggested by Eric Blake.
16403 2008-08-25 Bruno Haible <bruno@clisp.org>
16405 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
16407 2008-08-25 Eric Blake <ebb9@byu.net>
16409 c-stack: test that stack overflow can be caught
16410 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
16411 that platform allows handling stack overflow; at least OS/2 EMX
16412 has sigaltstack, but crashes before transferring control to
16413 handler on stack overflow.
16414 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
16415 check for HAVE_STACK_OVERFLOW_HANDLING.
16416 Reported by Elbert Pol.
16418 2008-08-25 Bruno Haible <bruno@clisp.org>
16420 * doc/posix-functions/strftime.texi: Fix description of strftime
16423 2008-08-24 Bruno Haible <bruno@clisp.org>
16425 * tests/uniwidth/test-uc_width2.c: New file.
16426 * tests/uniwidth/test-uc_width2.sh: New file.
16427 * modules/uniwidth/width-tests (Files): Add the new files.
16428 (TESTS): Add uniwidth/test-uc_width2.sh.
16429 (TESTS_ENVIRONMENT): New variable.
16430 (check_PROGRAMS): Add test-uc_width2.
16431 (test_uc_width2_SOURCES): New variable.
16433 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
16434 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
16436 Reported by Alexander V. Lukyanov <lav@netis.ru>.
16438 2008-08-22 Eric Blake <ebb9@byu.net>
16440 test-lock, test-tls: mention why a test is skipped
16441 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
16443 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
16445 count-one-bits: relax license
16446 * modules/count-one-bits (License): Relicense to LGPLv2+.
16447 Suggested by Ludovic Courtès, approved by Ben Pfaff.
16449 2008-08-22 Andreas Schwab <schwab@suse.de>
16451 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
16452 Remove spurious space in assignment.
16454 2008-08-21 Simon Josefsson <simon@josefsson.org>
16456 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
16457 Paul Eggert <eggert@CS.UCLA.EDU>.
16459 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
16461 * modules/gettext: Add m4/threadlib.m4.
16463 2008-08-19 Eric Blake <ebb9@byu.net>
16465 test-c-stack: fix compilation failure on FreeBSD 5.0
16466 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
16467 headers before <sys/resource.h>.
16468 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
16470 Reported by Nelson H. F. Beebe.
16472 strverscmp: migrate from "strverscmp.h" to <string.h>
16473 * modules/string (Makefile.am): Add new hooks.
16474 * modules/strverscmp (Files): Remove strverscmp.h.
16475 (Depends-on): Add string.
16476 (configure.ac): Add indicator.
16477 (Include): Mention new header.
16478 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
16480 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
16482 * lib/strverscmp.h: Delete.
16483 * lib/string.in.h (strverscmp): Provide declaration, when needed.
16484 * tests/test-strverscmp.c (includes): Adjust client.
16485 * lib/check-version.c (includes): Likewise.
16486 * NEWS: Document the change.
16488 strverscmp: add unit test
16489 * modules/strverscmp-tests: New file.
16490 * tests/test-strverscmp.c: Likewise.
16492 2008-08-19 Simon Josefsson <simon@josefsson.org>
16494 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
16495 regarding Windows crypto stuff, from Mono.
16497 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
16499 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
16500 if present, for intel RND. Return error on failures.
16502 2008-08-18 Ben Pfaff <blp@gnu.org>
16504 gitlog-to-changelog: give better diagnostic for failed pipe-open
16505 * build-aux/gitlog-to-changelog: Improve error message: suggest
16506 that the version of Git may be too old.
16508 2008-08-18 Simon Josefsson <simon@josefsson.org>
16510 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
16511 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
16513 2008-08-18 Bruno Haible <bruno@clisp.org>
16515 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
16518 2008-08-18 Bruno Haible <bruno@clisp.org>
16520 * lib/glthread/threadlib.c: Include <pthread.h>.
16522 2008-08-18 Bruno Haible <bruno@clisp.org>
16524 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
16525 glthread_recursive_lock_* macros.
16526 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
16529 2008-08-18 Bruno Haible <bruno@clisp.org>
16531 * lib/glthread/thread.c: Avoid forcing a context switch right after
16534 2008-08-17 Bruno Haible <bruno@clisp.org>
16536 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
16537 * lib/glthread/thread.h: Provide Win32 specific implementation.
16538 * modules/thread (Files): Add lib/glthread/thread.c.
16539 (Depends-on): Add lock.
16540 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
16542 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16544 New module 'yield'.
16545 * modules/yield: New file.
16546 * lib/glthread/yield.h: New file.
16547 * m4/yield.m4: New file.
16548 * MODULES.html.sh (Multithreading): Add yield.
16550 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16552 New module 'thread'.
16553 * modules/thread: New file.
16554 * lib/glthread/thread.h: New file.
16555 * m4/thread.m4: New file.
16556 * MODULES.html.sh (Multithreading): Add thread.
16558 2008-08-17 Bruno Haible <bruno@clisp.org>
16560 * lib/glthread/lock.h: Include <stdlib.h> always.
16561 * lib/glthread/tls.h: Likewise.
16562 * lib/glthread/cond.h: Likewise.
16564 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16567 * modules/cond: New file.
16568 * lib/glthread/cond.h: New file.
16569 * lib/glthread/cond.c: New file.
16570 * m4/cond.m4: New file.
16571 * MODULES.html.sh (Multithreading): Add cond.
16573 2008-08-16 Eric Blake <ebb9@byu.net>
16575 c-stack: fix regression on Irix 5.3 from 2008-06-21
16576 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
16578 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
16579 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
16580 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
16581 * modules/signal (Makefile.am): Use the value.
16582 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
16583 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
16584 * doc/posix-headers/signal.texi (signal.h): Document this
16586 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
16587 Reported by Tom G. Christensen.
16589 2008-08-17 Bruno Haible <bruno@clisp.org>
16591 New module 'threadlib'.
16592 * modules/threadlib: New file.
16593 * lib/glthread/threadlib.c: New file, extracted from
16594 lib/glthread/lock.c.
16595 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
16597 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
16598 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
16599 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
16601 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
16602 (gl_DISABLE_THREADS): Remove macro.
16603 * modules/lock (Files): Remove build-aux/config.rpath.
16604 (Depends-on): Remove havelib. Add threadlib.
16605 (configure.ac-early): Remove section.
16606 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
16607 * modules/tls (Depends-on): Remove lock. Add threadlib.
16608 (Link): New section, copied from threadlib.
16609 * MODULES.html.sh (Multithreading): Add threadlib.
16611 2008-08-14 Bruno Haible <bruno@clisp.org>
16613 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
16614 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
16615 glthread_rwlock_unlock, glthread_rwlock_destroy,
16616 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
16617 glthread_recursive_lock_destroy): Define as macros always.
16618 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
16619 glthread_lock_lock.
16620 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
16621 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
16622 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
16623 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
16624 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
16625 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
16626 (glthread_recursive_lock_lock_func): Renamed from
16627 glthread_recursive_lock_lock.
16628 (glthread_recursive_lock_unlock_func): Renamed from
16629 glthread_recursive_lock_unlock.
16630 (glthread_recursive_lock_destroy_func): Renamed from
16631 glthread_recursive_lock_destroy.
16633 2008-08-14 Bruno Haible <bruno@clisp.org>
16635 * lib/glthread/lock.h: Renamed from lib/lock.h.
16636 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
16637 * lib/glthread/tls.h: Renamed from lib/tls.h.
16638 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
16639 * lib/fstrcmp.c: Update includes.
16640 * lib/strsignal.c: Update includes.
16641 * modules/lock (Files, Makefile.am): Update.
16642 (Include): Change to "glthread/lock.h".
16643 * modules/tls (Files, Makefile.am): Update.
16644 (Include): Change to "glthread/tls.h".
16645 * tests/test-lock.c: Update includes.
16646 * tests/test-tls.c: Update includes.
16647 * NEWS: Mention the renamed header files.
16649 2008-08-11 Jim Meyering <meyering@redhat.com>
16651 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
16653 2008-08-11 Eric Blake <ebb9@byu.net>
16655 test-c-stack: avoid C99-ism
16656 * tests/test-c-stack.c (main): Fix whitespace, move declaration
16658 Reported by Alain Guibert.
16660 2008-08-10 Jim Meyering <meyering@redhat.com>
16662 ensure that return value of uinttostr et al are not ignored
16663 * lib/inttostr.h (__GNUC_PREREQ): Define.
16664 (__attribute_warn_unused_result__): Define.
16665 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
16667 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
16669 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
16670 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
16672 2008-08-07 Jim Meyering <meyering@redhat.com>
16674 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
16676 * modules/mkstemp (License): Relicense under LGPLv2+.
16677 * modules/tempname (License): Likewise.
16679 2008-08-06 Bruno Haible <bruno@clisp.org>
16681 * lib/poll.c (poll): Further micro-optimization.
16683 2008-08-06 Jim Meyering <meyering@redhat.com>
16685 inet_pton.c: use locale-independent tolower
16686 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
16687 (inet_pton6): Use c_tolower rather than tolower.
16688 * modules/inet_pton (Depends-on): Add c-ctype.
16690 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
16692 * lib/poll.c (poll): Avoid division when timeout is 0, cache
16693 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
16695 2008-08-06 Jim Meyering <meyering@redhat.com>
16697 * modules/inet_pton (License): Relicense under LGPLv2+.
16699 2008-08-03 Bruno Haible <bruno@clisp.org>
16701 Additional non-aborting API for lock and tls.
16702 * lib/lock.h: Include <errno.h>.
16703 (glthread_lock_init): New macro/function.
16704 (gl_lock_init): Define as wrapper around glthread_lock_init.
16705 (glthread_lock_lock): New macro/function.
16706 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
16707 (glthread_lock_unlock): New macro/function.
16708 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
16709 (glthread_lock_destroy): New macro/function.
16710 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
16711 (glthread_rwlock_init): New macro/function.
16712 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
16713 (glthread_rwlock_rdlock): New macro/function.
16714 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
16715 (glthread_rwlock_wrlock): New macro/function.
16716 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
16717 (glthread_rwlock_unlock): New macro/function.
16718 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
16719 (glthread_rwlock_destroy): New macro/function.
16720 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
16721 (glthread_recursive_lock_init): New macro/function.
16722 (gl_recursive_lock_init): Define as wrapper around
16723 glthread_recursive_lock_init.
16724 (glthread_recursive_lock_lock): New macro/function.
16725 (gl_recursive_lock_lock): Define as wrapper around
16726 glthread_recursive_lock_lock.
16727 (glthread_recursive_lock_unlock): New macro/function.
16728 (gl_recursive_lock_unlock): Define as wrapper around
16729 glthread_recursive_lock_unlock.
16730 (glthread_recursive_lock_destroy): New macro/function.
16731 (gl_recursive_lock_destroy): Define as wrapper around
16732 glthread_recursive_lock_destroy.
16733 (glthread_once): New macro/function.
16734 (gl_once): Define as wrapper around glthread_once.
16735 Update function declarations.
16736 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
16737 glthread_rwlock_init. Return error code.
16738 (glthread_rwlock_rdlock_multithreaded): Renamed from
16739 glthread_rwlock_rdlock. Return error code.
16740 (glthread_rwlock_wrlock_multithreaded): Renamed from
16741 glthread_rwlock_wrlock. Return error code.
16742 (glthread_rwlock_unlock_multithreaded): Renamed from
16743 glthread_rwlock_unlock. Return error code.
16744 (glthread_rwlock_destroy_multithreaded): Renamed from
16745 glthread_rwlock_destroy. Return error code.
16746 (glthread_recursive_lock_init_multithreaded): Renamed from
16747 glthread_recursive_lock_init. Return error code.
16748 (glthread_recursive_lock_lock_multithreaded): Renamed from
16749 glthread_recursive_lock_lock. Return error code.
16750 (glthread_recursive_lock_unlock_multithreaded): Renamed from
16751 glthread_recursive_lock_unlock. Return error code.
16752 (glthread_recursive_lock_destroy_multithreaded): Renamed from
16753 glthread_recursive_lock_destroy. Return error code.
16754 (glthread_once_call): Make static.
16755 (glthread_once_multithreaded): Renamed from glthread_once.
16756 * lib/tls.h: Include <errno.h>.
16757 (glthread_tls_key_init): New macro/function.
16758 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
16759 (glthread_tls_set): New macro/function.
16760 (gl_tls_set): Define as wrapper around glthread_tls_set.
16761 (glthread_tls_key_destroy): New macro/function.
16762 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
16763 Update function declarations.
16764 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
16766 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
16768 2008-08-04 Eric Blake <ebb9@byu.net>
16770 gnumakefile: use space, not TAB, outside of targets
16771 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
16773 2008-08-02 Jim Meyering <meyering@redhat.com>
16775 getdate.y: avoid locale-dependent date parsing failure
16776 In Turkish locales, getdate would fail to recognize keywords
16777 containing a lowercase "i". The solution is not to rely on
16778 locale-sensitive case-conversion.
16779 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
16780 (lookup_word): Use c_toupper in place of toupper.
16781 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
16782 Reported by Vefa Bicakci <bicave@superonline.com> in
16783 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
16784 * modules/getdate (Depends-on): Add c-ctype.
16786 2008-08-02 Bruno Haible <bruno@clisp.org>
16788 * gnulib-tool (func_import): When updating or creating a .gitignore
16789 file, prepend each added line with a slash, and ignore leading slashes
16790 from the existing lines.
16791 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
16793 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16795 Portability fix for GNU make 3.79.1.
16796 * top/GNUmakefile: Avoid 'else COND', which older GNU make
16797 versions do not understand.
16799 2008-08-01 Bruno Haible <bruno@clisp.org>
16801 Work around bug of HP-UX 10.20 cc with -0.0 literal.
16802 * tests/test-isnanf.h (zero): New variable.
16803 (main): Avoid literal -0.0f.
16804 * tests/test-isnand.h (zero): New variable.
16805 (main): Avoid literal -0.0.
16806 * tests/test-isnanl.h (zero): New variable.
16807 (main): Avoid literal -0.0L.
16808 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
16809 (test_float, test_double, test_long_double): Avoid literals -0.0f,
16811 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
16812 (test_signbitd): Avoid literal -0.0.
16813 (test_signbitl): Avoid literal -0.0L.
16814 * tests/test-ceilf1.c (zero): New variable.
16815 (main): Avoid literal -0.0f.
16816 * tests/test-ceill.c (zero): New variable.
16817 (main): Avoid literal -0.0L.
16818 * tests/test-floorf1.c (zero): New variable.
16819 (main): Avoid literal -0.0f.
16820 * tests/test-floorl.c (zero): New variable.
16821 (main): Avoid literal -0.0L.
16822 * tests/test-roundf1.c (zero): New variable.
16823 (main): Avoid literal -0.0f.
16824 * tests/test-round1.c (zero): New variable.
16825 (main): Avoid literal -0.0.
16826 * tests/test-roundl.c (zero): New variable.
16827 (main): Avoid literal -0.0L.
16828 * tests/test-truncf1.c (zero): New variable.
16829 (main): Avoid literal -0.0f.
16830 * tests/test-trunc1.c (zero): New variable.
16831 (main): Avoid literal -0.0.
16832 * tests/test-truncl.c (zero): New variable.
16833 (main): Avoid literal -0.0L.
16834 * tests/test-frexp.c (zero): New variable.
16835 (main): Avoid literal -0.0.
16836 * tests/test-frexpl.c (zero): New variable.
16837 (main): Avoid literal -0.0L.
16838 * tests/test-ldexpl.c (zero): New variable.
16839 (main): Avoid literal -0.0L.
16840 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
16841 (zerod, zerol): New variables.
16842 (test_function): Avoid literals -0.0, -0.0L.
16843 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
16844 (zerod, zerol): New variables.
16845 (test_function): Avoid literals -0.0, -0.0L.
16846 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
16847 (zerod, zerol): New variables.
16848 (test_function): Avoid literals -0.0, -0.0L.
16849 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
16850 (zerod, zerol): New variables.
16851 (test_function): Avoid literals -0.0, -0.0L.
16852 * tests/test-strtod.c (zero): New variable.
16853 (main): Avoid literal -0.0.
16854 Reported by Jonathan C. Patschke <jp@centtech.com>.
16856 2008-07-31 Jim Meyering <meyering@redhat.com>
16858 sha256.h: correct definition of SHA224_DIGEST_SIZE
16859 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
16860 Reported by Paulie Pena IV <paulie4@gmail.com>.
16861 Define as 224 / 8, rather than as a literal.
16862 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
16863 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
16864 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
16866 2008-07-31 Bruno Haible <bruno@clisp.org>
16868 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
16869 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
16870 Reported by Jonathan Patschke <jp@centtech.com>.
16872 2008-07-31 Bruno Haible <bruno@clisp.org>
16874 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
16875 Reported by Paolo Bonzini <bonzini@gnu.org>.
16877 2008-07-30 Eric Blake <ebb9@byu.net>
16879 test-strtod: allow compilation without -lm
16880 * tests/test-strtod.c (main): Avoid link dependence on fabs.
16881 Reported by Dennis Clarke <blastwave@gmail.com>.
16883 2008-07-28 Jim Meyering <meyering@redhat.com>
16885 bootstrap: work also when there are no .po files in po/
16886 * build-aux/bootstrap (update_po_files): Complete the change
16887 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
16889 2008-07-27 Jim Meyering <meyering@redhat.com>
16891 * users.txt: Add zile.
16893 2008-07-26 Ben Pfaff <blp@gnu.org>
16895 Add missing dependencies on new m4/exponent[fdl].m4 files.
16896 * modules/isnanf-nolibm: Add m4/exponentf.m4.
16897 * modules/isnand-nolibm: Add m4/exponentd.m4.
16898 * modules/isnanl-nolibm: Add m4/exponentl.m4.
16899 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
16900 m4/isnan[fdl].m4, because the macros actually used moved.
16901 Reported by Jim Meyering.
16903 2008-07-14 Ben Pfaff <blp@gnu.org>
16906 * lib/isinf.c: New file.
16907 * lib/math.in.h: Define isinf macro if we have decided to replace
16909 * m4/isinf.m4: New file.
16910 * m4/math_h.m4: Initialize and substitute variables for isinf
16912 * modules/isinf: New file.
16913 * modules/isinf-tests: New file.
16914 * modules/math: Add substitutions for new module.
16915 * tests/test-isinf.c: New file.
16916 * doc/posix-functions/isinf.texi: Mention new module.
16917 * MODULES.html.sh: Mention new module.
16919 2008-07-14 Ben Pfaff <blp@gnu.org>
16921 Factor out some macros for use by additional modules.
16922 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
16924 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
16926 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
16928 * m4/exponentf.m4: New file.
16929 * m4/exponentd.m4: New file.
16930 * m4/exponentl.m4: New file.
16931 * modules/isnanf: Use new file m4/exponentf.m4.
16932 * modules/isnand: Use new file m4/exponentd.m4.
16933 * modules/isnanl: Use new file m4/exponentl.m4.
16935 2008-07-23 Ulrich Drepper <drepper@redhat.com>
16937 mktime.c: normalize tp->tm_isdst value to -1/0/1.
16938 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
16939 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
16940 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
16942 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
16943 readlink on platforms without PATH_MAX.
16945 2008-07-21 Eric Blake <ebb9@byu.net>
16947 Warn, not fail, on stale version.
16948 * top/GNUmakefile (_curr-ver): Tone down previous patch.
16950 Don't allow installation with stale devel version number.
16951 * top/GNUmakefile (_is-install-target): New macro.
16952 (_curr-ver): Forbid installation with stale version number.
16954 2008-07-20 Bruno Haible <bruno@clisp.org>
16956 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
16958 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
16960 2008-07-20 Bruno Haible <bruno@clisp.org>
16962 * lib/c-stack.h (c_stack_action): Add documentation.
16963 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
16965 2008-07-20 Bruno Haible <bruno@clisp.org>
16967 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
16968 * modules/readlink (License): Likewise.
16970 2008-07-17 Eric Blake <ebb9@byu.net>
16972 * modules/c-stack (Link): Fix typo.
16974 Make c-stack use libsigsegv, when available.
16975 * modules/c-stack (Depends-on): Add libsigsegv.
16976 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
16978 * lib/c-stack.c (SIGSTKSZ): Define fallback.
16979 (segv_handler, overflow_handler, c_stack_action)
16980 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
16981 implementation when libsigsegv is available, but only when using
16982 the library is necessary.
16983 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
16984 comment, explaining why XSI check fails on Linux.
16985 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
16986 * tests/test-c-stack2.sh: Tweak skip message.
16987 * NEWS: Document new link-time requirements.
16989 2008-07-16 Eric Blake <ebb9@byu.net>
16991 c-stack: Expose false positives when not using libsigsegv.
16992 * modules/c-stack-tests (Files): Expand test.
16993 * tests/test-c-stack.c (main): Add means to conditionally trigger
16994 non-overflow SIGSEGV.
16995 * tests/test-c-stack2.sh: New file.
16997 2008-07-14 Bruno Haible <bruno@clisp.org>
16999 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
17000 Reported by Eric Blake.
17002 2008-07-14 Sam Steingold <sds@gnu.org>
17003 Bruno Haible <bruno@clisp.org>
17005 New module libsigsegv.
17006 * modules/libsigsegv: New file.
17007 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
17009 * MODULES.html.sh (Signal handling): New section.
17011 2008-07-14 Bruno Haible <bruno@clisp.org>
17013 * modules/unictype/ctype-* (Description): Add the word "function".
17014 Improves the resulting doc in MODULES.html.
17016 2008-07-12 Ben Pfaff <blp@gnu.org>
17018 Add longlong module.
17019 * modules/longlong: New file.
17021 2008-07-12 Bruno Haible <bruno@clisp.org>
17023 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
17026 2008-07-10 Ben Pfaff <blp@gnu.org>
17029 * doc/posix-functions/isnan.texi: Mention new module.
17030 * lib/math.in.h: Define isnan macro if we have decided to replace
17032 * m4/isnan.m4: New file.
17033 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
17034 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
17036 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
17038 * m4/math_h.m4: Initialize and substitute variables for isnan
17040 * modules/isnan: New file.
17041 * modules/isnan-tests: New file.
17042 * modules/math: Add substitutions for new module.
17043 * tests/test-isnan.c: New file.
17044 * MODULES.html.sh: Mention new module.
17046 2008-07-10 Ben Pfaff <blp@gnu.org>
17049 * lib/isnanf.m4: New file.
17050 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
17051 (gl_HAVE_ISNANF_IN_LIBM): New macro.
17052 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
17053 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
17054 * modules/isnanf: New file.
17055 * modules/isnanf-tests: New file.
17056 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
17058 * tests/test-isnanf-nolibm.c: factored most of its contents into
17059 new file tests/test-isnanf.h.
17060 * tests/test-isnanf.h: New file.
17061 * tests/test-isnanf.c: New file.
17062 * MODULES.html.sh: Mention new module.
17063 * doc/glibc-functions/isnanf.texi: Mention new module.
17065 2008-07-10 Ben Pfaff <blp@gnu.org>
17068 * lib/isnand.h: New file.
17069 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
17070 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
17071 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
17072 functionality also.
17073 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
17074 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
17075 (gl_HAVE_ISNAND_IN_LIBM): New macro.
17076 * modules/isnand: New file.
17077 * modules/isnand-tests: New file.
17078 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
17080 * tests/test-isnand-nolibm.c: factored most of its contents into
17081 new file tests/test-isnand.h.
17082 * tests/test-isnand.h: New file.
17083 * tests/test-isnand.c: New file.
17084 * MODULES.html.sh: Mention new module.
17086 2008-07-10 Ben Pfaff <blp@gnu.org>
17088 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
17089 * lib/isnand.h: Rename lib/isnand-nolibm.h.
17090 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
17091 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
17092 * modules/isnanf-nolibm: Update references to renamed files.
17093 * modules/isnand-nolibm: Likewise.
17094 * modules/isnanf-nolibm-tests: Likewise.
17095 * modules/isnand-nolibm-tests: Likewise.
17096 * lib/frexp.c: Likewise.
17097 * lib/isfinite.c: Likewise.
17098 * lib/signbitd.c: Likewise.
17099 * lib/signbitf.c: Likewise.
17100 * lib/vasnprintf.c: Likewise.
17101 * tests/test-ceilf1.c: Likewise.
17102 * tests/test-ceilf2.c: Likewise.
17103 * tests/test-floorf1.c: Likewise.
17104 * tests/test-floorf2.c: Likewise.
17105 * tests/test-frexp.c: Likewise.
17106 * tests/test-round1.c: Likewise.
17107 * tests/test-round2.c: Likewise.
17108 * tests/test-roundf1.c: Likewise.
17109 * tests/test-strtod.c: Likewise.
17110 * tests/test-trunc1.c: Likewise.
17111 * tests/test-trunc2.c: Likewise.
17112 * tests/test-truncf1.c: Likewise.
17113 * tests/test-truncf2.c: Likewise.
17114 * NEWS: Mention the renamed header files.
17116 2008-07-11 Jim Meyering <meyering@redhat.com>
17118 vc-list-files: make the last-resort awk code more portable
17119 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
17120 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
17121 does not support it.
17123 2008-07-10 Eric Blake <ebb9@byu.net>
17125 Work with tar's bootstrap.
17126 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
17127 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
17130 2008-07-09 Jim Meyering <meyering@redhat.com>
17132 posix-shell.m4: fix typo that made this test malfunction
17133 * m4/posix-shell.m4: Remove capitalization in variable name.
17135 2008-07-08 Bruno Haible <bruno@clisp.org>
17137 * m4/onceonly.m4: Update comments.
17138 Reported by Ben Pfaff <blp@cs.stanford.edu>.
17140 2008-07-04 Jim Meyering <meyering@redhat.com>
17142 * users.txt: Add vc-dwim.
17143 (bison, coreutils): Use the gitweb URL.
17145 2008-07-03 Jim Meyering <meyering@redhat.com>
17147 * users.txt: Add libffcall. From Sam Steingold.
17149 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
17151 getdate.y: do not ignore TZ with relative day, month or year offset
17152 * lib/getdate.y (get_date): Move the tz-handling block to follow the
17153 relative-date-handling, since otherwise, the latter would clobber the
17154 sole output (an updated Start value) of the tz-handling block.
17155 * tests/test-getdate.c: Tests for the fix
17157 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17159 Recognize 'foo_LIBRARIES += libgnu.a'.
17160 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
17161 makefile snippet has already specified an installation location,
17164 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
17166 getdate.y: factor out common actions
17167 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
17168 Use them in place of open-coded actions.
17170 2008-07-01 Simon Josefsson <simon@josefsson.org>
17172 Add self-test for getdate module.
17173 * modules/getdate-tests: New file.
17174 * tests/test-getdate.c: New file.
17176 2008-06-29 Bruno Haible <bruno@clisp.org>
17178 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
17180 Reported by Sylvain Beucler <beuc@beuc.net>.
17182 2008-06-29 Bruno Haible <bruno@clisp.org>
17184 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
17185 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
17187 2008-06-29 Bruno Haible <bruno@clisp.org>
17189 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
17191 Reported by Sylvain Beucler <beuc@beuc.net>.
17193 2008-06-26 Jim Meyering <meyering@redhat.com>
17195 make several modules depend on the "open" module
17196 This provides slightly increased consistency when opening-for-write
17197 the name of a non-directory spelled with a trailing slash.
17198 * modules/chdir-safer: Likewise.
17199 * modules/chown: Likewise.
17200 * modules/clean-temp: Likewise.
17201 * modules/copy-file: Likewise.
17202 * modules/fchdir: Likewise.
17203 * modules/fcntl-safer: Likewise.
17204 * modules/pipe: Likewise.
17205 * modules/utime: Likewise.
17206 Prompted by Eric Blake and Bruno Haible.
17208 2008-06-24 Andreas Schwab <schwab@suse.de>
17210 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
17211 literals can be used as initializers for global variables.
17213 2008-06-23 Eric Blake <ebb9@byu.net>
17215 Make gnulib-cache.m4 easier to diff.
17216 * gnulib-tool (func_import): Allow newlines when reading cached
17217 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
17219 2008-06-23 Bruno Haible <bruno@clisp.org>
17221 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
17222 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
17223 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
17224 m4/signalblocking.m4.
17225 (gl_PREREQ_SIGACTION): Don't invoke it.
17226 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
17227 gl_PREREQ_SIG_HANDLER_H.
17228 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
17229 Don't check for sigaction here.
17231 2008-06-23 Bruno Haible <bruno@clisp.org>
17233 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
17234 (install_handlers): Don't set the SA_RESETHAND flag.
17236 2008-06-23 Bruno Haible <bruno@clisp.org>
17238 * m4/sigaction.m4: Comment fixes.
17239 * lib/signal.in.h: Likewise.
17241 2008-06-23 Eric Blake <ebb9@byu.net>
17244 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
17246 Avoid SA_ namespace.
17247 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
17248 Reported by Ralf Wildenhues.
17250 Avoid test failure due to SA_RESTORER.
17251 * tests/test-sigaction.c (SA_MASK): New macro.
17252 (main): Avoid failing due to extension flags being set.
17253 Reported by Jim Meyering.
17255 Revert use of sig-handler.h in sigprocmask.c.
17256 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
17257 it requires the existence of struct sigaction.
17258 * lib/sigprocmask.c (handler_t): Restore typedef.
17259 (rpl_signal, old_handlers): Use local type.
17261 2008-06-22 Bruno Haible <bruno@clisp.org>
17263 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
17265 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17267 2008-06-22 Bruno Haible <bruno@clisp.org>
17269 * doc/posix-functions/siginterrupt.texi: Move note.
17271 * lib/signal.in.h (SA_RESTART): New macro.
17272 * lib/sigaction.c: Update comment.
17274 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
17276 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
17277 (gl_PREREQ_SIGPROCMASK): Invoke it.
17278 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
17280 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
17282 * lib/sigprocmask.c: Update a comment.
17284 2008-06-21 Eric Blake <ebb9@byu.net>
17286 Use sigaction module rather than signal().
17287 * modules/c-stack (Depends-on): Add sigaction.
17288 * modules/fatal-signal (Depends-on): Likewise.
17289 * modules/nanosleep (Depends-on): Likewise.
17290 * modules/sigprocmask (Files): Add sig-handler.h.
17291 * modules/sigaction (Files): Likewise.
17292 * lib/sig-handler.h (get_handler): New file, suggested by Paul
17294 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
17295 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
17296 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
17297 (init_fatal_signals): Likewise.
17298 * lib/nanosleep.c (rpl_nanosleep): Likewise.
17299 (siginterrupt): Delete fallback.
17300 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
17302 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
17305 New module sigaction, for mingw.
17306 * modules/sigaction: New module...
17307 * modules/sigaction-tests: ...and its test.
17308 * m4/sigaction.m4: New file.
17309 * lib/sigaction.c: Likewise.
17310 * tests/test-sigaction.c: Likewise.
17311 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
17312 * modules/signal (Makefile.am): Likewise.
17313 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
17315 * doc/posix-headers/signal.texi (signal.h): Mention provided
17317 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
17318 that sigaction is preferable.
17319 * doc/posix-functions/sigaction.texi (sigaction): Mention new
17321 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17324 Improve robustness of sigprocmask by overriding signal.
17325 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
17327 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
17328 (SIGKILL, SIGSTOP): Provide fallbacks.
17329 (rpl_signal): Implement.
17330 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
17331 signal can be called inside handlers.
17333 Fix nanosleep module on mingw.
17334 * modules/nanosleep (Depends-on): Add sys_select.
17335 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
17337 Fix licensing of sigprocmask.
17338 * modules/raise (License): Relicense as LGPL.
17340 2008-06-21 Bruno Haible <bruno@clisp.org>
17342 * lib/propername.c (proper_name_utf8): Don't use the transliterated
17343 result if it contains question marks.
17344 Reported by Michael Geng <linux@michaelgeng.de>.
17346 2008-06-19 Bruno Haible <bruno@clisp.org>
17349 * doc/gnulib.texi: Include updated-stamp.texi.
17350 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
17351 (updated-stamp.texi): New rule.
17352 (gnulib.info): Depend on it.
17353 * doc/.gitignore: Add updated-stamp.texi.
17354 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
17356 2008-06-19 Bruno Haible <bruno@clisp.org>
17358 * doc/Makefile (gnulib.info): Update and simplify dependencies.
17359 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17361 2008-06-19 Eric Blake <ebb9@byu.net>
17363 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
17364 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
17365 Reported by Stepan Kasal.
17367 2008-06-18 Bruno Haible <bruno@clisp.org>
17369 * lib/fatal-signal.c (init_fatal_signals): Add comment.
17370 Reported by Eric Blake.
17372 2008-06-18 Eric Blake <ebb9@byu.net>
17374 Work around cygwin 1.5.25 strsignal bug.
17375 * tests/test-strsignal.c: Allow for const char *.
17376 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
17378 2008-06-18 Simon Josefsson <simon@josefsson.org>
17380 * users.txt: Update URL to article and add author/date
17383 2008-06-17 Bruno Haible <bruno@clisp.org>
17385 New macro gl_DISABLE_THREADS.
17386 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
17387 if the user did not pass --enable-threads or --disable-threads option.
17388 (gl_DISABLE_THREADS): New macro.
17389 Reported by Eric Blake <ebb9@byu.net>.
17391 2008-06-17 Bruno Haible <bruno@clisp.org>
17393 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
17394 when the macro ignores it.
17395 Based on a patch by Eric Blake <ebb9@byu.net>.
17397 2008-06-17 Bruno Haible <bruno@clisp.org>
17399 * modules/tls (License): Change to LGPLv2+.
17400 Reported by Eric Blake.
17402 2008-06-17 Eric Blake <ebb9@byu.net>
17404 Simplify c-stack prerequisites.
17405 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
17406 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
17407 no longer requires <ucontext.h> to exist. Optimize setrlimit
17409 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
17412 Move c-stack test into testsuite.
17413 * modules/c-stack-tests: New file.
17414 * lib/c-stack.c [DEBUG]: Move test program...
17415 * tests/test-c-stack.c: ...into this new file. Skip rather than
17416 fail test if sigaltstack is lacking.
17417 * tests/test-c-stack.sh: New driver file.
17419 2008-06-16 Eric Blake <ebb9@byu.net>
17421 Use raise module consistently.
17422 * modules/fatal-signal (Depends-on): Add raise.
17423 * modules/sigprocmask (Depends-on): Likewise.
17424 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
17425 * lib/sigprocmask.c (sigprocmask): Likewise.
17426 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
17427 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
17429 Fix compliance bug in sigpending.
17430 * lib/sigprocmask.c (sigpending): Return pending array via
17431 parameter, not return value.
17433 2008-06-14 Eric Blake <ebb9@byu.net>
17435 Improve obstack-printf test code.
17436 * tests/test-obstack-printf.c (test_function): Fix comment, and
17437 simplify usage of obstack_* in macros. Add a test for coverage.
17438 Reported by Bruno Haible.
17440 2008-06-14 Bruno Haible <bruno@clisp.org>
17442 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
17443 array size as a constant, not as a const variable.
17444 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
17445 AC_USE_SYSTEM_EXTENSIONS.
17446 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
17447 Test whether the obstack_printf function actually exists.
17448 * modules/obstack-printf (Depends-on): Add extensions.
17449 (Include): Remove obstack.h.
17450 * modules/obstack-printf-posix (Depends-on): Add extensions.
17451 (Include): Remove obstack.h.
17453 2008-06-13 Eric Blake <ebb9@byu.net>
17455 Add obstack-printf and obstack-printf-posix modules.
17456 * modules/obstack-printf: New file.
17457 * modules/obstack-printf-posix: Likewise.
17458 * MODULES.html.sh (Misc): Mention them.
17459 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17461 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17463 * modules/stdio (Makefile.am): Accomodate new modules.
17464 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
17465 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
17467 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
17469 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
17470 (gl_REPLACE_OBSTACK_PRINTF): New macros
17471 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
17472 * tests/test-obstack-printf.c: New file.
17473 * modules/obstack-printf-tests: Likewise.
17474 * modules/obstack-printf-posix-tests: Likewise.
17476 2008-06-11 Bruno Haible <bruno@clisp.org>
17478 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
17479 * lib/open.c: Include errno.h.
17480 (open): Fail when attempting to write to a file that has a trailing
17482 * tests/test-open.c (main): Test against trailing slash bug.
17483 * doc/posix-functions/open.texi: Mention the trailing slash bug.
17485 2008-06-10 Bruno Haible <bruno@clisp.org>
17487 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
17488 for $? to work inside the trap command, with various /bin/sh-s.
17489 * tests/test-vc-list-files-cvs.sh: Likewise.
17491 2008-06-10 Bruno Haible <bruno@clisp.org>
17493 * lib/acl-internal.h: Don't include gettext.h here.
17494 * lib/set-mode-acl.c: Include gettext.h here.
17495 * lib/copy-acl.c: Likewise.
17497 2008-06-10 Bruno Haible <bruno@clisp.org>
17499 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
17500 * lib/wait-process.c (wait_subprocess): Likewise.
17501 * lib/execute.h (execute): Add termsigp argument.
17502 * lib/execute.c (execute): Likewise.
17503 * lib/csharpcomp.c (compile_csharp_using_pnet,
17504 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
17505 * lib/csharpexec.c (execute_csharp_using_pnet,
17506 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
17507 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
17508 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
17509 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
17510 is_jikes_present): Update.
17511 * lib/javaexec.c (execute_java_class): Update.
17512 * lib/javaversion.c (execute_and_read_line): Update.
17513 * NEWS: Document the changes.
17514 Reported by Eric Blake.
17516 2008-06-10 Eric Blake <ebb9@byu.net>
17518 Add missing include.
17519 * tests/test-strstr.c (includes): Add <signal.h>.
17520 * tests/test-strcasestr.c (includes): Likewise.
17521 * tests/test-memmem.c (includes): Likewise.
17523 2008-06-10 Bruno Haible <bruno@clisp.org>
17525 * lib/wait-process.c (wait_subprocess): Add an assertion.
17527 2008-06-10 Bruno Haible <bruno@clisp.org>
17529 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
17531 2008-06-10 Bruno Haible <bruno@clisp.org>
17533 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
17535 * tests/test-strcasestr.c (main): Likewise.
17536 * tests/test-strstr.c (main): Likewise.
17538 2008-06-09 Bruno Haible <bruno@clisp.org>
17540 Work around the Solaris 10 ACE ACLs ABI change.
17541 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
17542 declare if ACL_NO_TRIVIAL is present.
17543 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
17544 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
17545 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
17546 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
17547 define if ACL_NO_TRIVIAL is present.
17548 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
17549 and use the current ABI.
17550 (file_has_acl): Use same #if condition as elsewhere.
17551 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
17552 in use, and use the current ABI.
17553 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
17554 Reported by Jim Meyering.
17556 2008-06-09 Eric Blake <ebb9@byu.net>
17558 Work around environments that (stupidly) ignore SIGALRM.
17559 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
17560 before using alarm().
17561 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17562 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17563 Reported by Ian Beckwith <ianb@erislabs.net>.
17565 Produce autobuild blurb earlier in log.
17566 * modules/autobuild (configure.ac-early): Move AB_INIT here.
17568 2008-06-09 Jim Meyering <meyering@redhat.com>
17569 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
17571 utimens.c: correct kernel bug work-around
17572 OndÅ™ej VaÅ¡Ãk found that the invalid return value of 280 indicates
17573 failure, not success, and the kernel bug we're trying to work
17574 around affects not just the utimensat call, but also the fallback
17576 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
17578 [HAVE_FUTIMENS]: Use the same work-around, here.
17580 2008-06-09 Jim Meyering <meyering@redhat.com>
17582 add more guards around definition of ACE_-related code
17583 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
17584 ALLOW and ACE_OWNER are also defined.
17586 2008-06-08 Bruno Haible <bruno@clisp.org>
17588 * lib/acl-internal.h: Add me as co-author.
17589 * lib/file-has-acl.c: Likewise.
17590 * lib/set-mode-acl.c: Likewise.
17591 * lib/copy-acl.c: Likewise.
17593 2008-06-08 Bruno Haible <bruno@clisp.org>
17595 Add support for AIX ACLs.
17596 * lib/acl-internal.h (acl_nontrivial): New declaration.
17597 * lib/file-has-acl.c (acl_nontrivial): New function.
17598 (file_has_acl): Add implementation using AIX 4 ACL API.
17599 * lib/set-mode-acl.c (qset_acl): Likewise.
17600 * lib/copy-acl.c (qcopy_acl): Likewise.
17602 2008-06-08 Bruno Haible <bruno@clisp.org>
17604 Add support for HP-UX ACLs.
17605 * lib/acl-internal.h (acl_nontrivial): New declaration.
17606 * lib/file-has-acl.c (acl_nontrivial): New function.
17607 (file_has_acl): Add implementation using HP-UX 11 ACL API.
17608 * lib/set-mode-acl.c (qset_acl): Likewise.
17609 * lib/copy-acl.c (qcopy_acl): Likewise.
17611 2008-06-08 Bruno Haible <bruno@clisp.org>
17613 Add support for Cygwin ACLs.
17614 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
17615 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
17616 the chmod_or_fchmod call.
17617 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
17619 2008-06-08 Bruno Haible <bruno@clisp.org>
17621 Fix bug with setuid modes in Solaris 10+ code.
17622 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
17623 succeeded, when the mode contains some special bits.
17625 2008-06-08 Bruno Haible <bruno@clisp.org>
17627 Add support for Solaris 7..10 ACLs.
17628 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
17630 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
17632 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
17633 * lib/set-mode-acl.c (qset_acl): Likewise.
17634 * lib/copy-acl.c (qcopy_acl): Likewise.
17636 2008-06-08 Bruno Haible <bruno@clisp.org>
17638 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
17640 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
17641 (acl_access_nontrivial): Remove MacOS X case.
17642 (file_has_acl): Use acl_extended_nontrivial.
17643 * lib/copy-acl.c (qcopy_acl): Likewise.
17645 2008-06-08 Bruno Haible <bruno@clisp.org>
17647 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
17649 2008-06-08 Jim Meyering <meyering@redhat.com>
17651 * modules/acl (Maintainer): Add Bruno Haible.
17653 2008-06-07 Bruno Haible <bruno@clisp.org>
17655 Improve support for Tru64 ACLs.
17656 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
17659 2008-06-07 Bruno Haible <bruno@clisp.org>
17661 Add support for MacOS X ACLs.
17662 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
17663 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
17664 * lib/set-mode-acl.c (qset_acl): Likewise.
17665 * lib/copy-acl.c (qcopy_acl): Likewise.
17667 2008-06-07 Bruno Haible <bruno@clisp.org>
17669 Fix memory leak introduced on 2008-05-22.
17670 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
17673 2008-06-07 Bruno Haible <bruno@clisp.org>
17675 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
17676 to construct an empty ACL.
17678 2008-06-07 Bruno Haible <bruno@clisp.org>
17680 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
17682 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
17684 2008-06-07 Bruno Haible <bruno@clisp.org>
17686 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
17687 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
17689 2008-06-07 Bruno Haible <bruno@clisp.org>
17691 * doc/posix-functions/_setjmp.texi: Explain the use of this function
17692 regardless of POSIX.
17693 * doc/posix-functions/_longjmp.texi: Likewise.
17694 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
17695 SystemV platform in this case.
17697 2008-06-06 Eric Blake <ebb9@byu.net>
17699 Document abort() bugs.
17700 * doc/posix-functions/abort.texi (abort): Mention anomalies.
17702 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
17703 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
17705 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
17706 siglongjmp, but only as a macro.
17707 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
17709 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
17711 Tweak documentation to cover cygwin argz bugs.
17712 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
17713 argz bug fix; no code change needed since no cygwin releases
17714 occurred between the last fix and the bug being tested.
17715 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
17716 module and recently fixed cygwin bugs.
17717 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
17718 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
17719 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
17720 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
17721 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
17723 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
17724 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
17725 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
17726 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
17727 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
17728 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
17731 Avoid gcc warning on cygwin.
17732 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
17733 !ACL_NO_TRIVIAL]: Avoid unused variable.
17735 2008-06-05 Eric Blake <ebb9@byu.net>
17737 Be tolerant of UNKNOWN version in gnulib-tool test dir.
17738 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
17739 git-version-gen fails to come up with a version.
17740 Reported by Simon Josefsson.
17742 2008-06-05 Jim Meyering <meyering@redhat.com>
17743 Paul Eggert <eggert@cs.ucla.edu>
17745 utimens.c: work around a probable Linux kernel bug
17746 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
17747 appears to be a kernel bug that causes utimensat to return 280
17748 instead of 0, indicating success.
17750 2008-06-04 Bruno Haible <bruno@clisp.org>
17752 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
17755 2008-06-04 Bruno Haible <bruno@clisp.org>
17757 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
17758 * lib/file-has-acl.c (acl_access_nontrivial): New function.
17759 (file_has_acl): Use it. Save errno afterwards.
17760 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
17762 2008-06-03 Bruno Haible <bruno@clisp.org>
17764 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
17765 draft code. Simplify #ifs.
17766 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
17767 Put Solaris code after POSIX-draft code. Fix comments regarding
17768 Solaris 10, HP-UX. Mention Cygwin.
17769 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
17771 2008-06-03 Eric Blake <ebb9@byu.net>
17773 Provide fallback for older kernels.
17774 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
17775 Provide runtime fallback if kernel lacks support.
17776 Reported by Mike Frysinger.
17778 2008-06-02 Bruno Haible <bruno@clisp.org>
17780 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
17783 2008-06-02 Bruno Haible <bruno@clisp.org>
17785 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
17786 * lib/copy-acl.c (qcopy_acl): Update comment.
17788 2008-06-02 Bruno Haible <bruno@clisp.org>
17790 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
17793 2008-06-02 Bruno Haible <bruno@clisp.org>
17795 * tests/test-file-has-acl.sh: Use different code for Cygwin.
17796 * tests/test-set-mode-acl.sh: Likewise.
17797 * tests/test-copy-acl.sh: Likewise.
17798 * tests/test-copy-file.sh: Likewise.
17800 2008-06-02 Bruno Haible <bruno@clisp.org>
17802 * tests/test-file-has-acl.sh: Remove unused code.
17804 2008-06-01 Bruno Haible <bruno@clisp.org>
17806 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
17807 (copy_acl): Just a wrapper around qcopy_acl that emits the error
17809 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
17811 2008-06-01 Bruno Haible <bruno@clisp.org>
17813 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
17814 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
17815 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
17817 * modules/acl-tests (configure.ac): Remove tests now contained in
17820 2008-06-02 Jim Meyering <meyering@redhat.com>
17822 announce-gen: use a better key-server host name
17823 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
17824 it may be more consistently reliable. Suggested by Werner Koch
17825 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
17827 2008-06-01 Bruno Haible <bruno@clisp.org>
17829 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
17830 Reported by Voroskoi Andras <voroskoi@gmail.com>.
17832 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
17834 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
17836 2008-06-01 Bruno Haible <bruno@clisp.org>
17839 * tests/test-file-has-acl.sh: New file.
17840 * tests/test-file-has-acl.c: New file.
17841 * tests/test-set-mode-acl.sh: New file.
17842 * tests/test-set-mode-acl.c: New file.
17843 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
17844 * tests/test-copy-acl.c: New file.
17845 * modules/acl-tests: New file, based on modules/copy-file-tests.
17846 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
17847 (Depends-on): Add acl-tests.
17848 (configure.ac): Remove checks.
17849 (Makefile.am): Don't create test-sameacls program here any more.
17851 2008-06-01 Bruno Haible <bruno@clisp.org>
17853 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
17854 * tests/test-sameacls.c: Include progname.h.
17855 (main): Invoke set_program_name. Portability fixes for MacOS X,
17858 2008-06-01 Bruno Haible <bruno@clisp.org>
17860 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
17862 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
17864 2008-06-01 Bruno Haible <bruno@clisp.org>
17866 * modules/rpmatch (Depends-on): Add strdup.
17868 2008-06-01 Bruno Haible <bruno@clisp.org>
17870 * lib/pipe.c: Include unistd-safer.h.
17871 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
17872 * modules/pipe (Depends-on): Add unistd-safer.
17874 2008-05-30 Simon Josefsson <simon@josefsson.org>
17876 * modules/autobuild (configure.ac): Call AB_INIT.
17878 2008-05-30 Simon Josefsson <simon@josefsson.org>
17880 * tests/test-getaddrinfo.c: Don't print debug messages by default.
17881 Suggested by Bruno Haible <bruno@clisp.org>.
17883 2008-05-30 Simon Josefsson <simon@josefsson.org>
17885 * tests/test-base64.c: Cast size_t to unsigned long when invoking
17886 printf. Use %lu instead of %d. Reported by Bruno Haible
17889 2008-05-29 Eric Blake <ebb9@byu.net>
17891 Prefer new POSIX 200x interfaces over futimesat.
17892 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
17893 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
17895 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
17897 2008-05-28 Bruno Haible <bruno@clisp.org>
17899 * modules/stpcpy (License): Change to LGPLv2+.
17900 Requested by David Lutterkort <dlutter@redhat.com>.
17902 2008-05-27 Bruno Haible <bruno@clisp.org>
17904 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
17906 Reported by Jose E. Marchesi <jemarch@gnu.org>.
17908 2008-05-27 Bruno Haible <bruno@clisp.org>
17910 * modules/iconv_open (Link): New section, from module 'iconv'.
17911 * modules/striconv (Link): Likewise.
17912 * modules/striconveh (Link): Likewise.
17913 * modules/xstriconv (Link): Likewise.
17914 * modules/unicodeio (Link): Likewise.
17915 * modules/propername (Link): Likewise.
17916 Reported by Jim Meyering.
17918 2008-05-26 Jim Meyering <meyering@redhat.com>
17920 sha256: do not artificially restrict buffer length to be < 2^32
17921 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
17922 uint32_t to size_t.
17923 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
17926 avoid unaligned access errors, e.g., on sparc
17927 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
17928 direct access through a possibly-unaligned uint64* pointer.
17929 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
17930 direct access through a possibly-unaligned uint32* pointer.
17931 Prompted by this patch from Tom "spot" Callaway:
17932 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
17934 sha512.c: fix typo in comment
17935 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
17937 2008-05-25 Bruno Haible <bruno@clisp.org>
17939 * lib/set-mode-acl.c: Renamed from lib/acl.c.
17940 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
17941 (Makefile.am): Update lib_SOURCES.
17943 2008-05-25 Bruno Haible <bruno@clisp.org>
17945 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
17947 2008-05-25 Jim Meyering <meyering@redhat.com>
17949 useless-if-before-free: freed expr may have white-space differences
17950 * build-aux/useless-if-before-free: Recognize cases in which the
17951 freed expression differs from the tested one in embedded white
17952 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
17953 $1 was used, so we can't make any regexp shy. Improved tests now
17956 useless-if-before-free: accept white space in the expression.
17957 * build-aux/useless-if-before-free: For now, any white space
17958 in the expression must be identical in the free argument.
17960 useless-if-before-free: efficiency tweak
17961 * build-aux/useless-if-before-free: Make the expression-matching
17963 Make the *outer* regexp shy, not the expr-matching one.
17965 update code-in-comment to accept cast of free arg
17966 * build-aux/useless-if-before-free: Update regexp.
17968 2008-05-25 Bruno Haible <bruno@clisp.org>
17970 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
17971 * modules/copy-file-tests (Files, Makefile.am): Update.
17972 * tests/test-copy-file.c (func_test_copy): Update.
17974 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
17976 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
17978 2008-05-23 Bruno Haible <bruno@clisp.org>
17980 Improve support for ACLs on OSF/1.
17981 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
17982 Remove fallback for unknown flavors of ACLs.
17984 2008-05-22 Bruno Haible <bruno@clisp.org>
17986 Add support for ACLs on OSF/1.
17987 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
17989 (acl_free_text): New macro fallback.
17990 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
17992 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
17993 acl_free_text function. Require AC_C_INLINE.
17995 2008-05-22 Bruno Haible <bruno@clisp.org>
17997 Make copy_acl work on MacOS X 10.5.
17998 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
17999 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
18000 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
18001 If MODE_INSIDE_ACL, don't assume that every system has the same text
18002 representation for ACLs as FreeBSD.
18003 * lib/copy-acl.c (copy_acl): Add support for platforms with
18005 * lib/file-has-acl.c (file_has_acl): Likewise.
18006 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
18007 FreeBSD, MacOS X, or IRIX, respectively.
18009 2008-05-22 Bruno Haible <bruno@clisp.org>
18011 * lib/acl.h: Don't include <sys/acl.h>.
18012 (GETACLCNT): Move fallback to lib/acl-internal.h.
18013 * lib/acl-internal.h: Include <sys/acl.h> here.
18014 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
18016 2008-05-22 Bruno Haible <bruno@clisp.org>
18018 Split off copy_acl function to separate file.
18019 * lib/copy-acl.c: New file, extracted from lib/acl.c.
18020 * lib/acl.c (copy_acl): Moved function to separate file.
18021 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
18022 * modules/acl (Files): Add lib/copy-acl.c.
18023 (Makefiles.am): Augment lib_SOURCES.
18025 2008-05-22 Bruno Haible <bruno@clisp.org>
18027 * modules/copy-file-tests: New file.
18028 * tests/test-copy-file.sh: New file.
18029 * tests/test-copy-file.c: New file.
18030 * tests/test-copy-file-sameacls.c: New file.
18032 2008-05-22 Eric Blake <ebb9@byu.net>
18035 * tests/test-memcmp.c (main): Pass NULL indirectly.
18037 2008-05-21 Bruno Haible <bruno@clisp.org>
18039 Add reference doc about ACLs.
18040 * doc/acl-resources.txt: New file.
18041 * doc/acl-cygwin.txt: New file.
18043 2008-05-21 Bruno Haible <bruno@clisp.org>
18045 Avoid one more warning from gcc.
18046 * lib/vasnprintf.c (IF_LINT): Update comments.
18047 (VASNPRINTF): Use it also for the 'prefix' array initializer.
18049 2008-05-21 Jim Meyering <meyering@redhat.com>
18051 avoid a warning from gcc
18052 * lib/vasnprintf.c (IF_LINT): Define.
18053 (scale10_round_decimal_long_double):
18054 Use it to avoid a "may be used uninitialized" warning.
18055 (scale10_round_decimal_double): Likewise.
18057 2008-05-21 Simon Josefsson <simon@josefsson.org>
18059 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
18062 2008-05-20 Bruno Haible <bruno@clisp.org>
18064 * tests/test-memcmp.c (main): Test also the sign of the result. Test
18065 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
18067 2008-05-20 Simon Josefsson <simon@josefsson.org>
18069 * modules/memcmp-tests: New file.
18070 * tests/test-memcmp.c: New file.
18072 2008-05-19 Bruno Haible <bruno@clisp.org>
18074 * modules/propername (Notice, configure.ac): Put quoted "..." into
18076 * lib/propername.h: Update comments accordingly.
18077 Reported by Eric Blake.
18079 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
18081 * modules/getpass-gnu (Depends-on): Add fseeko.
18083 2008-05-19 Simon Josefsson <simon@josefsson.org>
18085 * modules/base64-tests: New file.
18087 2008-05-19 Bo Borgerson <gigabo@gmail.com>
18089 * lib/base64.c (base64_decode_ctx): If a decode context structure
18090 was passed in use it to ignore newlines. If a context structure
18091 was _not_ passed in, continue to treat newlines as garbage (this
18092 is the historical behavior). Formerly base64_decode.
18093 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
18094 takes a decode context structure.
18095 * lib/base64.h (base64_decode): Macro for four-argument calls.
18096 (base64_decode_alloc): Likewise.
18097 * lib/base64.c (base64_decode_ctx): If a decode context structure
18098 was passed in use it to ignore newlines. If a context structure
18099 was _not_ passed in, continue to treat newlines as garbage (this
18100 is the historical behavior). Formerly base64_decode.
18101 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
18102 takes a decode context structure.
18103 * lib/base64.h (base64_decode): Macro for four-argument calls.
18104 (base64_decode_alloc): Likewise.
18106 2008-05-19 Jim Meyering <meyering@redhat.com>
18108 avoid a warning from gcc
18109 * lib/trim.c (IF_LINT): Define.
18110 (trim2): Use it to avoid a "may be used uninitialized" warning.
18113 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
18115 2008-05-19 Bruno Haible <bruno@clisp.org>
18117 * doc/glibc-functions/getpass.texi: Document limits of other
18120 2008-05-19 Simon Josefsson <simon@josefsson.org>
18121 Bruno Haible <bruno@clisp.org>
18123 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
18125 2008-05-18 Bruno Haible <bruno@clisp.org>
18127 * modules/propername: New file, from GNU gettext.
18128 * lib/propername.h: New file, from GNU gettext.
18129 * lib/propername.c: New file, from GNU gettext.
18130 * MODULES.html.sh (Internationalization functions): Add propername.
18132 2008-05-16 Jim Meyering <meyering@redhat.com>
18133 Bruno Haible <bruno@clisp.org>
18135 Avoid some warnings from "gcc -Wshadow".
18136 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
18138 2008-05-15 Eric Blake <ebb9@byu.net>
18140 Extend previous patch to cygwin 1.7.0.
18141 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
18142 fast implementation in cygwin >= 1.7.0.
18143 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18144 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18146 2008-05-15 Bruno Haible <bruno@clisp.org>
18148 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
18149 implementation in glibc >= 2.9.
18150 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18151 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18153 2008-05-15 Bruno Haible <bruno@clisp.org>
18155 * MODULES.html.sh (Internationalization functions): Remove linebreak.
18156 (Unicode string functions): Add unilbrk/*.
18157 Reported by Karl Berry.
18159 2008-05-15 Eric Blake <ebb9@byu.net>
18161 Fix violation of <stdbool.h> replacement in regex.
18162 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
18163 * lib/regexec.c (re_search_internal): Likewise.
18164 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
18166 2008-05-15 Jim Meyering <meyering@redhat.com>
18168 avoid distracting test output when git or cvs is not found
18169 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
18170 * tests/test-vc-list-files-git.sh: Likewise.
18172 2008-05-15 Eric Blake <ebb9@byu.net>
18174 Glibc finally accepted the memmem speedup code, bugzilla #5514.
18175 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
18177 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18178 * doc/posix-functions/strstr.texi (strstr): Likewise.
18179 * lib/str-two-way.h (MAX): Sychronize with glibc.
18181 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
18183 * lib/regcomp.c (optimize_utf8): Add a note on why we test
18185 (calc_first): Initialize constraint field.
18186 (duplicate_node_closure): Use it instead of special casing ANCHORS.
18188 (duplicate_node): Merge constraint field for all node types.
18189 (calc_eclosure_iter): Look at constraint field for all node types.
18190 * lib/regex_internal.c (create_cd_newstate): Don't look at
18193 2008-05-14 Bruno Haible <bruno@clisp.org>
18195 Help GCC to do better code generation.
18196 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
18197 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18198 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
18199 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
18200 Declare with attribute 'malloc' if supported.
18202 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
18204 use "echo STR|wc -c" rather than unportable "expr length STR"
18205 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
18206 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
18208 2008-05-14 Jim Meyering <meyering@redhat.com>
18210 use dd ibs=$n count=1 ... rather than less-portable head -c$n
18211 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
18212 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
18213 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
18216 2008-05-14 Eric Blake <ebb9@byu.net>
18218 Avoid quadratic growth in gl_LIBSOURCES.
18219 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
18220 Suggested by Bruno Haible.
18223 * modules/xmemdup0-tests: New file.
18224 * tests/test-xmemdup0.c: Likewise.
18226 2008-05-13 Eric Blake <ebb9@byu.net>
18228 Split xmemdup0 into its own module.
18229 * modules/xmemdup0: New file.
18230 * lib/xmemdup0.h: Likewise.
18231 * lib/xmemdup0.c: Likewise.
18232 * MODULES.html.sh (Memory management functions): Add xmemdup0.
18233 * lib/xalloc.h (xmemdup0): Remove.
18234 * lib/xmalloc.c (xmemdup0): Likewise.
18236 2008-05-13 Eric Blake <ebb9@byu.net>
18237 Bruno Haible <bruno@clisp.org>
18239 Reduce number of forks required during autoconf.
18240 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
18241 and gl_LIBSOURCES_DIR.
18242 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
18243 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
18244 m4_syscmd per file.
18245 <m4_foreach_w>: Move...
18246 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
18248 2008-05-13 Eric Blake <ebb9@byu.net>
18250 * gnulib-tool: Fix various comment typos.
18252 2008-05-12 Bruno Haible <bruno@clisp.org>
18254 Tailor the linebreaking algorithm.
18255 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
18257 2008-05-12 Bruno Haible <bruno@clisp.org>
18259 Update to Unicode 5.0.0.
18260 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
18261 LBP_JV, LBP_JT. Redistribute values.
18262 (unilbrk_table): Change size.
18263 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
18264 Unicode TR#14 rev. 22.
18265 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
18266 LBP_JV, LBP_JT. Redistribute values.
18267 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
18268 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
18270 * lib/unilbrk/lbrkprop1.h: Regenerated.
18271 * lib/unilbrk/lbrkprop2.h: Regenerated.
18272 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
18273 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
18274 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
18276 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
18278 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
18280 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18281 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18282 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
18283 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
18284 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
18285 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
18287 2008-05-11 Bruno Haible <bruno@clisp.org>
18289 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
18291 2008-05-11 Bruno Haible <bruno@clisp.org>
18293 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
18294 * modules/unilbrk/gen-lbrk: New file.
18296 2008-05-11 Bruno Haible <bruno@clisp.org>
18298 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
18299 * m4/sha512.m4 (gl_SHA512): Likewise.
18301 2008-05-11 Jim Meyering <meyering@redhat.com>
18303 New modules: crypto/sha256, crypto/sha512 (from coreutils)
18304 * modules/crypto/sha256: New file.
18305 * modules/crypto/sha512: Likewise.
18306 * lib/sha256.c: Likewise.
18307 * lib/sha256.h: Likewise.
18308 * lib/sha512.c: Likewise.
18309 * lib/sha512.h: Likewise.
18310 * lib/u64.h: Likewise.
18311 * m4/sha256.m4: Likewise.
18312 * m4/sha512.m4: Likewise.
18313 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
18315 2008-05-10 Bruno Haible <bruno@clisp.org>
18317 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
18318 (Input/Output <stdio.h>): Add xprintf.
18319 (Signal handling <signal.h>): Add strsignal.
18320 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
18321 (Core language properties): Add func.
18322 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
18323 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
18325 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
18326 (Input/output): New section.
18327 (File system functions): Add openat-die, stat-macros.
18328 (Networking functions): Add sockets.
18329 (Unicode string functions): Add unictype/*.
18330 (Support for building libraries and executables): Add gperf.
18331 (Support for building documentation): Add agpl-3.0.
18332 (Misc): Add nocrash.
18334 2008-05-10 Bruno Haible <bruno@clisp.org>
18336 * modules/unictype/gen-ctype: New file.
18338 2008-05-10 Jim Meyering <meyering@redhat.com>
18340 Make chdir-safer.c more efficient on a system with no symlinks.
18341 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
18342 also if ELOOP is zero. Suggested by Bruno Haible.
18344 Make chdir-safer.c slightly safer.
18345 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
18346 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
18348 Avoid compile failure on systems without ELOOP (like mingw).
18349 * lib/chdir-safer.c (ELOOP): Define if not already defined.
18350 Reported by Bruno Haible.
18352 2008-05-10 Bruno Haible <bruno@clisp.org>
18354 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
18355 (is_utf8_encoding): Use a case-insensitive comparison.
18356 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
18359 2008-05-10 Bruno Haible <bruno@clisp.org>
18361 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
18362 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
18363 * lib/unilbrk/ulc-common.h (iconv_string_length,
18364 iconv_string_keeping_offsets): Remove declarations.
18365 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
18366 Don't include <iconv.h>, streq.h, xsize.h.
18367 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
18369 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
18370 <iconv.h>, streq.h, xsize.h.
18371 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
18373 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
18374 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
18375 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
18376 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
18378 2008-05-10 Bruno Haible <bruno@clisp.org>
18380 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
18381 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
18383 * modules/unilbrk/u32-width-linebreaks-tests: New file.
18384 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
18386 * modules/unilbrk/u16-width-linebreaks-tests: New file.
18387 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
18389 * modules/unilbrk/u8-width-linebreaks-tests: New file.
18390 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
18392 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
18393 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
18395 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
18396 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
18398 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
18399 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
18401 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
18402 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
18404 2008-05-10 Bruno Haible <bruno@clisp.org>
18406 Split up 'linebreak' module.
18407 * lib/unilbrk.h: New file, based on lib/linebreak.h.
18408 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
18409 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
18411 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
18412 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
18413 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
18415 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
18417 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
18419 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
18420 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
18421 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
18423 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
18425 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
18427 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
18429 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
18431 * modules/unilbrk/base: New file.
18432 * modules/unilbrk/tables: New file.
18433 * modules/unilbrk/u8-possible-linebreaks: New file.
18434 * modules/unilbrk/u16-possible-linebreaks: New file.
18435 * modules/unilbrk/u32-possible-linebreaks: New file.
18436 * modules/unilbrk/ulc-common: New file.
18437 * modules/unilbrk/ulc-possible-linebreaks: New file.
18438 * modules/unilbrk/u8-width-linebreaks: New file.
18439 * modules/unilbrk/u16-width-linebreaks: New file.
18440 * modules/unilbrk/u32-width-linebreaks: New file.
18441 * modules/unilbrk/ulc-width-linebreaks: New file.
18442 * lib/linebreak.h: Remove file.
18443 * lib/linebreak.c: Remove file.
18444 * m4/linebreak.m4: Remove file.
18445 * modules/linebreak: Remove file.
18446 * NEWS: Mention the changes.
18448 2008-05-09 Eric Blake <ebb9@byu.net>
18451 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
18453 * lib/xmalloc.c (xmemdup0): New C implementation.
18455 2008-05-08 Bruno Haible <bruno@clisp.org>
18457 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
18459 2008-05-07 Eric Blake <ebb9@byu.net>
18461 Support cross-compilation of <wctype.h>.
18462 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
18465 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
18467 * build-aux/vc-list-files: Add support for bzr.
18469 2008-05-03 Jim Meyering <meyering@redhat.com>
18471 avoid failed assertion with tight malloc
18472 * tests/test-getndelim2.c: Correct an off-by-one assertion.
18474 2008-05-03 Simon Josefsson <simon@josefsson.org>
18476 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
18477 are needed from arpa/inet.h.
18478 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
18479 Reported by Bruno Haible.
18481 2008-05-02 Jim Meyering <meyering@redhat.com>
18483 avoid compilation error on FreeBSD 6
18484 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
18486 2008-05-01 Jim Meyering <meyering@redhat.com>
18488 useless-if-before-free: correct --help's exit status description
18489 * build-aux/useless-if-before-free (usage): Like grep, exit 0
18490 for one or more matches, etc. Reported by Bruno Haible.
18492 vc-list-files: make the stand-alone gnulib test work
18493 * modules/vc-list-files-tests (configure.ac):
18494 Define and AC_SUBST abs_aux_dir.
18495 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
18496 $(abs_top_srcdir) to each script and having each of them
18497 duplicate the work of setting PATH, set PATH here, using
18498 the new variable, abs_aux_dir instead.
18499 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
18500 * tests/test-vc-list-files-git.sh: Likewise.
18501 Reported by Bruno Haible.
18503 2008-05-01 Bruno Haible <bruno@clisp.org>
18505 * lib/getndelim2.c (getndelim2): Fix newsize computation during
18506 reallocation. Rename 'done' to 'found_delimiter'.
18508 2008-05-01 Jim Meyering <meyering@redhat.com>
18510 vc-list-files: accommodate /bin/sh like the one from Solaris 10
18511 * build-aux/vc-list-files: Use `...`, not $(...).
18513 2008-04-30 Jim Meyering <meyering@redhat.com>
18515 add tests for vc-list-files
18516 * modules/vc-list-files-tests: New module.
18517 * tests/test-vc-list-files-cvs.sh: New file.
18518 * tests/test-vc-list-files-git.sh: New file.
18520 avoid a warning from gcc
18521 * lib/getndelim2.c (IF_LINT): Define.
18522 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
18524 vc-list-files: work properly with build-aux/cvsu, too
18525 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
18526 to all cvs-based clauses.
18528 vc-list-files: work properly in the CVS+awk case, too
18529 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
18531 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
18532 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
18533 take more than one file argument, so . Add quotes, just in case $dir
18534 ever contains a shell meta-character. Prompted by Soren Hansen in
18535 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
18537 2008-04-29 Eric Blake <ebb9@byu.net>
18539 Optimize getndelim2 to use block operations when possible.
18540 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
18541 freadseek, and memchr2.
18542 * lib/getndelim2.c (getndelim2): Use them for block reads.
18544 2008-04-29 Bruno Haible <bruno@clisp.org>
18546 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
18547 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18548 * modules/inet_ntop (Depends-on): Add extensions.
18549 * modules/inet_pton (Depends-on): Likewise.
18550 Reported by Simon Josefsson.
18552 2008-04-29 Jim Meyering <meyering@redhat.com>
18554 When the is more than one match in a block, match all of them.
18555 * build-aux/useless-if-before-free: Iterate through each block
18556 until there are no more matches.
18558 Fix broken useless-if-before-free script.
18559 * build-aux/useless-if-before-free: Fix typo: missing "?" after
18560 the expression to match cast of argument to free-like function.
18562 2008-04-29 Eric Blake <ebb9@byu.net>
18565 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
18567 2008-04-29 Jim Meyering <meyering@redhat.com>
18569 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
18570 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
18571 by gnulib to exist and to declare e.g., inet_ntop.
18572 Don't include "inet_ntop.h", now removed.
18574 * m4/arpa_inet_h.m4: Remove trailing blanks.
18576 2008-04-29 Eric Blake <ebb9@byu.net>
18578 Silence valgrind on safe reads beyond potential array bounds.
18579 * lib/rawmemchr.valgrind: New file.
18580 * lib/strchrnul.valgrind: Likewise.
18581 * modules/rawmemchr (Files): Distribute new file.
18582 * modules/strchrnul (Files): Likewise.
18583 Suggested by Bruno Haible.
18585 2008-04-29 Bruno Haible <bruno@clisp.org>
18587 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
18588 (inet_ntop, inet_pton): Change portability warning's wording.
18589 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
18590 Invoke gl_CHECK_NEXT_HEADERS.
18591 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
18592 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
18594 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18595 * modules/arpa_inet (Description): No longer only for systems that
18597 (Depends-on): Add include_next.
18598 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
18601 2008-04-29 Jim Meyering <meyering@redhat.com>
18603 * modules/mkdir (License): Re-license as LGPLv2+.
18605 2008-04-29 Bruno Haible <bruno@clisp.org>
18607 * modules/rawmemchr (Maintainer): Set to Eric.
18608 * modules/strchrnul (Maintainer): Likewise.
18610 2008-04-29 Simon Josefsson <simon@josefsson.org>
18612 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
18613 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
18615 * modules/arpa_inet (arpa/inet.h): Use them.
18617 2008-04-28 Eric Blake <ebb9@byu.net>
18620 * modules/getndelim2-tests: New file.
18621 * tests/test-getndelim2.c: Likewise.
18622 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
18624 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
18626 * MODULES.html.sh: Document new module.
18628 2008-04-20 Bruno Haible <bruno@clisp.org>
18630 * lib/c-stack.c (die): Use raise.
18631 * modules/c-stack (Depends-on): Add raise.
18633 2008-04-28 Bruno Haible <bruno@clisp.org>
18635 Expect rpmatch to be declared.
18636 * lib/yesno.c (rpmatch): Remove declaration.
18639 * lib/stdlib.in.h (rpmatch): New declaration.
18640 * lib/rpmatch.c: Include <stdlib.h> first.
18641 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
18642 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
18643 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
18645 * modules/rpmatch (Depends-on): Add stdlib, extensions.
18646 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18647 (Include): Set to <stdlib.h>.
18648 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
18650 * NEWS: Document the change.
18652 2008-04-28 Bruno Haible <bruno@clisp.org>
18654 Change rpmatch to use nl_langinfo when appropriate.
18655 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
18657 (localized_pattern): New function/macro.
18658 (try): Remove match, nomatch arguments. Copy the pattern into safe
18659 memory before caching it.
18660 (rpmatch): Use localized_pattern. Add translator comments.
18661 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
18662 Suggested by Eric Blake.
18663 * modules/rpmatch (Depends-on): Add stdbool.
18665 2008-04-28 Eric Blake <ebb9@byu.net>
18667 Add rawmemchr module, matching glibc.
18668 * modules/string (Makefile.am): New indicator.
18669 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
18670 * lib/string.in.h (rawmemchr): Declare when appropriate.
18671 * modules/rawmemchr: New file.
18672 * m4/rawmemchr.m4: Likewise.
18673 * lib/rawmemchr.c: Likewise.
18674 * modules/rawmemchr-tests: Likewise.
18675 * tests/test-rawmemchr.c: Likewise.
18676 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
18678 * modules/strchrnul (Depends-on): Add rawmemchr.
18679 * lib/strchrnul.c (strchrnul): Optimize a corner case.
18681 Whitespace cleanup.
18682 * tests/test-strchrnul.c: Reindent.
18683 * lib/strchrnul.c: Likewise.
18685 Optimize and test strchrnul.
18686 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
18687 * modules/strchrnul-tests: New file.
18688 * tests/test-strchrnul.c: Likewise.
18690 Remove intprops dependency.
18691 * modules/memchr (Depends-on): Remove intprops.
18692 * modules/memrchr (Depends-on): Likewise.
18693 * modules/memchr2 (Depends-on): Likewise.
18694 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
18695 * lib/memrchr.c (__memrchr): Likewise.
18696 * lib/memrchr2.c (memchr2): Likewise.
18697 Reported by Simon Josefsson.
18699 2008-04-28 Simon Josefsson <simon@josefsson.org>
18701 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
18702 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18704 2008-04-28 Simon Josefsson <simon@josefsson.org>
18706 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
18708 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
18710 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
18712 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
18714 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
18716 * m4/inet_pton.m4: Don't check for header files.
18718 * m4/inet_ntop.m4: Don't check for header files.
18720 2008-04-28 Simon Josefsson <simon@josefsson.org>
18722 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
18723 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
18724 trigger for cygwin).
18725 Reported by Bruno Haible <bruno@clisp.org>.
18727 2008-04-28 Bruno Haible <bruno@clisp.org>
18729 * doc/posix-functions/strdup.texi: Mention mingw problem.
18731 2008-04-27 Bruno Haible <bruno@clisp.org>
18733 * modules/stat-time-tests (Depends-on): Add sleep.
18734 * tests/test-stat-time.c (force_unlink): New function.
18736 (test_mtime): Remove the ctime related tests.
18737 (test_ctime): New function, containing the ctime related tests.
18738 (main): Call test_ctime, except on native Windows platforms.
18740 2008-04-27 Bruno Haible <bruno@clisp.org>
18742 * lib/rpmatch.c (rpmatch): Add some comments.
18743 Reported by James Youngman <jay@gnu.org>.
18745 2008-04-27 Bruno Haible <bruno@clisp.org>
18747 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
18750 2008-04-27 Bruno Haible <bruno@clisp.org>
18752 Make test-yesno.sh work on mingw.
18753 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
18754 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
18755 (main): Set stdin to binary mode.
18756 * modules/yesno-tests (Depends-on): Add binary-io.
18758 2008-04-27 Bruno Haible <bruno@clisp.org>
18760 Fix 'isfinite' on x86, x86_64, ia64 platforms.
18761 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
18762 argument that lie outside the IEEE 854 domain.
18763 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
18764 (gl_ISFINITE): Use it.
18765 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
18767 2008-04-27 Bruno Haible <bruno@clisp.org>
18769 Allow local renaming in config.h.
18770 * lib/memrchr.c (memrchr): Don't undefine outside libc.
18772 2008-04-27 Bruno Haible <bruno@clisp.org>
18774 * lib/memchr.c (__memchr): Change type of 'i'.
18775 * lib/memchr2.c (memchr2): Likewise.
18777 2008-04-26 Eric Blake <ebb9@byu.net>
18778 and Bruno Haible <bruno@clisp.org>
18780 Optimize and test memrchr.
18781 * modules/memrchr (Depends-on): Add intprops.
18782 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
18783 * modules/memrchr-tests: New file.
18784 * tests/test-memrchr.c: New file.
18786 2008-04-26 Bruno Haible <bruno@clisp.org>
18788 Add tentative support for DragonFly BSD.
18789 * lib/stdio-impl.h: Add macros for DragonFly BSD.
18790 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
18792 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
18793 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
18794 * lib/fpurge.c (fpurge): Likewise.
18795 * lib/freadable.c (freaadable): Likewise.
18796 * lib/freadahead.c (freadahead): Likewise.
18797 * lib/freading.c (freading): Likewise.
18798 * lib/freadptr.c (freadptr): Likewise.
18799 * lib/freadseek.c (freadptrinc): Likewise.
18800 * lib/fseeko.c (fseeko): Likewise.
18801 * lib/fseterr.c (fseterr): Likewise.
18802 * lib/fwritable.c (fwritable): Likewise.
18803 * lib/fwriting.c (fwriting): Likewise.
18805 2008-04-26 Bruno Haible <bruno@clisp.org>
18807 * lib/stdio-impl.h: New file.
18808 * lib/fbufmode.c: Include stdio-impl.h.
18809 (fbufmode): Use fp_, remove redundant #defines.
18810 * lib/fflush.c: Include stdio-impl.h.
18811 (clear_ungetc_buffer): Remove redundant #defines.
18812 * lib/fpurge.c: Include stdio-impl.h.
18813 (fpurge): Remove redundant #defines.
18814 * lib/freadable.c: Include stdio-impl.h.
18815 (freadable): Remove redundant #defines.
18816 * lib/freadahead.c: Include stdio-impl.h.
18817 (freadahead): Remove redundant #defines.
18818 * lib/freading.c: Include stdio-impl.h.
18819 (freading): Remove redundant #defines.
18820 * lib/freadptr.c: Include stdio-impl.h.
18821 (freadptr): Remove redundant #defines.
18822 * lib/freadseek.c: Include stdio-impl.h.
18823 (freadptrinc): Remove redundant #defines.
18824 * lib/fseeko.c: Include stdio-impl.h.
18825 (rpl_fseeko): Remove redundant #defines.
18826 * lib/fseterr.c: Include stdio-impl.h.
18827 (fseterr): Remove redundant #defines.
18828 * lib/fwritable.c: Include stdio-impl.h.
18829 (fwritable: Remove redundant #defines.
18830 * lib/fwriting.c: Include stdio-impl.h.
18831 (fwriting): Remove redundant #defines.
18832 * modules/fbufmode (Files): Add lib/stdio-impl.h.
18833 * modules/fflush (Files): Likewise.
18834 * modules/fpurge (Files): Likewise.
18835 * modules/freadable (Files): Likewise.
18836 * modules/freadahead (Files): Likewise.
18837 * modules/freading (Files): Likewise.
18838 * modules/freadptr (Files): Likewise.
18839 * modules/freadseek (Files): Likewise.
18840 * modules/fseeko (Files): Likewise.
18841 * modules/fseterr (Files): Likewise.
18842 * modules/fwritable (Files): Likewise.
18843 * modules/fwriting (Files): Likewise.
18845 2008-04-26 Bruno Haible <bruno@clisp.org>
18847 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
18848 restore_seek_optimization, update_fpos_cache): New functions, extracted
18850 (rpl_fflush): Use them.
18851 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
18852 (gl_REPLACE_FFLUSH): Use it.
18854 2008-04-26 Bruno Haible <bruno@clisp.org>
18856 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
18858 * tests/test-xstrtoimax.sh: Likewise.
18859 * tests/test-xstrtoumax.sh: Likewise.
18860 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18862 2008-04-26 Bruno Haible <bruno@clisp.org>
18864 * modules/memchr-tests: New file.
18865 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
18867 2008-04-26 Eric Blake <ebb9@byu.net>
18868 Bruno Haible <bruno@clisp.org>
18870 * lib/memchr.c: Include intprops.h.
18871 (__memchr): Optimize parallel detection of matching bytes. Rename local
18872 variables. Add explanatory comments.
18874 2008-04-26 Bruno Haible <bruno@clisp.org>
18876 Fix module 'memchr', broken since 2000-10-28.
18877 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
18879 2008-04-26 Bruno Haible <bruno@clisp.org>
18881 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
18884 2008-04-25 Eric Blake <ebb9@byu.net>
18886 Use native fstatat on cygwin 1.7.0.
18887 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
18890 2008-04-23 Eric Blake <ebb9@byu.net>
18892 Improve memchr2 performance.
18893 * lib/memchr2.c (memchr2): Further optimize parallel detection of
18895 * modules/memchr2 (Depends-on): Use intprops.h.
18897 2008-04-23 Simon Josefsson <simon@josefsson.org>
18899 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
18900 an inline function instead of a CPP macro. Patch by Ben Pfaff
18901 <blp@cs.stanford.edu>.
18903 2008-04-23 Simon Josefsson <simon@josefsson.org>
18905 * lib/arpa_inet.in.h: New file.
18907 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
18908 (Makefile.am): Sed in substitute header file.
18910 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
18911 gl_ARPA_INET_MODULE_INDICATOR. Use them.
18913 * modules/inet_ntop (configure.ac): Use
18914 gl_ARPA_INET_MODULE_INDICATOR.
18916 * modules/inet_pton (configure.ac): Use
18917 gl_ARPA_INET_MODULE_INDICATOR.
18919 2008-04-22 Jim Meyering <meyering@redhat.com>
18921 * modules/verify (License): Re-license as LGPLv2+.
18923 2008-04-22 Simon Josefsson <simon@josefsson.org>
18925 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
18926 parameter to void* as per POSIX standard (MinGW uses char*).
18928 2008-04-21 Bruno Haible <bruno@clisp.org>
18930 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
18931 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
18932 Define to replacements if REPLACE_ISWCNTRL is 1.
18933 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
18934 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
18935 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
18936 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
18938 * doc/posix-functions/iswalpha.texi: Likewise.
18939 * doc/posix-functions/iswblank.texi: Likewise.
18940 * doc/posix-functions/iswcntrl.texi: Likewise.
18941 * doc/posix-functions/iswdigit.texi: Likewise.
18942 * doc/posix-functions/iswgraph.texi: Likewise.
18943 * doc/posix-functions/iswlower.texi: Likewise.
18944 * doc/posix-functions/iswprint.texi: Likewise.
18945 * doc/posix-functions/iswpunct.texi: Likewise.
18946 * doc/posix-functions/iswspace.texi: Likewise.
18947 * doc/posix-functions/iswupper.texi: Likewise.
18948 * doc/posix-functions/iswxdigit.texi: Likewise.
18949 Reported by Alain Guibert.
18951 2008-04-21 Bruno Haible <bruno@clisp.org>
18953 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
18954 Patch by Alain Guibert.
18956 2008-04-21 Bruno Haible <bruno@clisp.org>
18958 Fix test failures on mingw.
18959 * tests/test-xstrtol.c (print_no_progname): New function.
18960 (main): Install it in error_print_progname hook.
18961 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
18962 * tests/test-xstrtoimax.sh: Likewise.
18963 * tests/test-xstrtoumax.sh: Likewise.
18965 2008-04-21 Bruno Haible <bruno@clisp.org>
18967 Fix test failure on mingw.
18968 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
18970 2008-04-21 Bruno Haible <bruno@clisp.org>
18972 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
18973 Actually assign a value.
18975 2008-04-20 Bruno Haible <bruno@clisp.org>
18977 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
18979 * lib/canonicalize.c (canonicalize_file_name): Elide if the
18980 'canonicalize-lgpl' module is also used.
18981 * lib/canonicalize-lgpl.c: Undo last change.
18982 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
18984 2008-04-20 Bruno Haible <bruno@clisp.org>
18986 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
18987 config.h. Provide _mkdir based fallback for mingw.
18988 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
18989 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
18990 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
18991 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
18992 rather than defining mkdir in config.h.
18993 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
18994 (gl_SYS_STAT_H_DEFAULTS): New macro.
18995 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
18996 HAVE_IO_H any more.
18997 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
18998 HAVE_DECL_MKDIR and HAVE_IO_H.
19000 2008-04-20 Bruno Haible <bruno@clisp.org>
19002 * lib/isapipe.c: Port to native Windows platforms.
19004 2008-04-20 Bruno Haible <bruno@clisp.org>
19006 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
19008 2008-04-21 Eric Blake <ebb9@byu.net>
19010 Work around preprocessors that don't handle UINTMAX_MAX.
19011 * lib/memchr2.c (memchr2): Avoid embedded #if.
19012 Reported by Alain Guibert, fix suggested by Bruno Haible.
19014 2008-04-21 Simon Josefsson <simon@josefsson.org>
19016 * doc/posix-functions/strftime.texi (strftime): Explain better
19017 Windows incompatibility. Suggested by Micah Cowan
19018 <micah@cowan.name>.
19020 2008-04-20 Bruno Haible <bruno@clisp.org>
19022 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
19025 2008-04-20 Bruno Haible <bruno@clisp.org>
19027 Fix test failure on platforms with non-GNU iconv.
19028 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
19029 (U_TO_U8): Use it, rather than u16_to_u8.
19030 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
19031 units at the end of the input string.
19032 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
19034 2008-04-20 Bruno Haible <bruno@clisp.org>
19036 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
19037 when the resulting length is 0.
19038 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
19040 2008-04-20 Bruno Haible <bruno@clisp.org>
19042 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
19044 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
19046 2008-04-20 Bruno Haible <bruno@clisp.org>
19048 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
19049 * modules/tsearch-tests (configure.ac): Test for initstate function.
19051 2008-04-20 Bruno Haible <bruno@clisp.org>
19053 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
19054 for nlink_t if missing.
19055 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
19057 2008-04-19 Bruno Haible <bruno@clisp.org>
19059 Work around snprintf bug on Linux libc5.
19060 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
19061 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
19063 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19064 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
19066 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
19067 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
19068 * modules/snprintf (Files): Add m4/printf.m4.
19069 * modules/vsnprintf (Files): Likewise.
19070 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
19071 * doc/posix-functions/vsnprintf.texi: Likewise.
19073 2008-04-19 Bruno Haible <bruno@clisp.org>
19075 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
19076 from 0.0058 to less than 10^-7.
19078 2008-04-19 Bruno Haible <bruno@clisp.org>
19080 Fix rounding when a precision is given.
19081 * lib/vasnprintf.c (is_borderline): New function.
19082 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
19084 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
19086 * tests/test-vasprintf-posix.c (test_function): Likewise.
19087 * tests/test-snprintf-posix.h (test_function): Likewise.
19088 * tests/test-sprintf-posix.h (test_function): Likewise.
19089 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
19090 * tests/test-printf-posix.h (test_function): Likewise.
19091 * tests/test-printf-posix.output: Update.
19092 Reported by John Darrington <john@darrington.wattle.id.au> via
19093 Ben Pfaff <blp@cs.stanford.edu>.
19095 2008-04-18 Simon Josefsson <simon@josefsson.org>
19097 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
19098 Suggested by Bruno Haible <bruno@clisp.org>.
19100 2008-04-17 Bruno Haible <bruno@clisp.org>
19102 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
19103 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
19105 Patch by Bruce Merry <bmerry@gmail.com>.
19107 2008-04-17 Simon Josefsson <simon@josefsson.org>
19109 * doc/posix-functions/strftime.texi (strftime): Mention that %e
19110 doesn't work under Windows.
19112 2008-04-16 Bruno Haible <bruno@clisp.org>
19114 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
19116 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
19117 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
19118 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
19119 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
19120 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
19121 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
19122 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
19124 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
19125 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
19126 Northern Sotho, Uighur.
19128 2008-04-16 Bruno Haible <bruno@clisp.org>
19130 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
19131 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
19132 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
19133 Reported by Daniel Bergström <daniel@octocode.com>.
19135 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
19136 Bruno Haible <bruno@clisp.org>
19138 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
19140 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
19141 New functions, mostly extracted from gl_locale_name_default.
19142 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
19144 2008-04-16 Eric Blake <ebb9@byu.net>
19146 Adjust strtod detection to catch glibc 2.7 bug.
19147 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
19148 Reported by John Gatewood Ham.
19150 2008-04-16 Bruno Haible <bruno@clisp.org>
19152 Add tentative support for Linux libc5.
19153 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
19154 * lib/fpurge.c (fpurge): Likewise.
19155 * lib/freadable.c (freadable): Likewise.
19156 * lib/freadahead.c (freadahead): Likewise.
19157 * lib/freading.c (freading): Likewise.
19158 * lib/freadptr.c (freadptr): Likewise.
19159 * lib/freadseek.c (freadptrinc): Likewise.
19160 * lib/fseeko.c (rpl_fseeko): Likewise.
19161 * lib/fseterr.c (fseterr): Likewise.
19162 * lib/fwritable.c (fwritable): Likewise.
19163 * lib/fwriting.c (fwriting): Likewise.
19164 Reported by Alain Guibert <alguibert+bts@free.fr>.
19166 2008-04-15 Bruno Haible <bruno@clisp.org>
19168 * modules/mathl (configure.ac): Define module indicator.
19170 2008-04-15 Bruno Haible <bruno@clisp.org>
19172 * lib/logl.c (logl): Remove unused variables.
19174 2008-04-15 Bruno Haible <bruno@clisp.org>
19176 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
19179 2008-04-15 Bruno Haible <bruno@clisp.org>
19181 * lib/trim.c (trim2): Fix argument of isspace() macro.
19183 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
19185 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
19187 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
19189 2008-04-14 Bruno Haible <bruno@clisp.org>
19191 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
19192 AC_LANG_PROGRAM argument.
19193 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
19194 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
19195 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19196 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19197 * m4/math_h.m4 (gl_MATH_H): Likewise.
19198 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
19199 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19200 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
19201 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
19202 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19203 * m4/regex.m4 (gl_REGEX): Likewise.
19204 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
19205 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
19206 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19207 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
19208 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
19209 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19210 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19211 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19213 2008-04-14 Jim Meyering <meyering@redhat.com>
19215 test-strtod: fix typos: s/abs/fabs/
19216 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
19218 2008-04-13 Bruno Haible <bruno@clisp.org>
19220 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
19221 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
19222 module is also used and while not building the reloc-wrapper.
19224 2008-04-13 Bruno Haible <bruno@clisp.org>
19226 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
19228 2008-04-13 Bruno Haible <bruno@clisp.org>
19230 Fix AIX compilation failure introduced on 2008-04-02.
19231 * tests/test-frexp.c (exp): Undefine before redefining.
19232 * tests/test-frexpl.c (exp): Likewise.
19234 2008-04-13 Bruno Haible <bruno@clisp.org>
19236 Work around a HP-UX stdio bug.
19237 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
19238 * tests/test-ftello.c (main): Likewise.
19239 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
19240 * doc/posix-functions/ftello.texi: Likewise.
19242 2008-04-13 Bruno Haible <bruno@clisp.org>
19244 Make test-signbit pass on HP-UX/hppa.
19245 * tests/test-signbit.c (minus_zerol): New variable.
19246 (test_signbitl): Use it.
19248 2008-04-13 Bruno Haible <bruno@clisp.org>
19250 Make truncl work on OSF/1 4.0.
19251 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
19252 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
19253 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
19254 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
19256 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
19258 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
19260 2008-04-13 Bruno Haible <bruno@clisp.org>
19262 * lib/unictype.h: Remove trailing comma from enumeration definitions.
19264 2008-04-13 Bruno Haible <bruno@clisp.org>
19266 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
19267 expression, so as to avoid HP-UX 11 cc compiler bug.
19269 2008-04-13 Bruno Haible <bruno@clisp.org>
19271 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
19273 2008-04-13 Bruno Haible <bruno@clisp.org>
19275 * lib/git-merge-changelog.c: Remove empty declaration outside of
19278 2008-04-13 Bruno Haible <bruno@clisp.org>
19280 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
19282 2008-04-13 Bruno Haible <bruno@clisp.org>
19284 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
19285 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
19286 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
19287 also if it exists but lacks definitions of the SHUT_* macros.
19288 * modules/sys_socket (Description): Update.
19289 Reported by Elbert Pol <e.pol@chello.nl>.
19291 2008-04-13 Bruno Haible <bruno@clisp.org>
19293 * lib/localcharset.c (OS2): Don't redefine if already defined.
19294 Reported by Elbert Pol <e.pol@chello.nl>.
19296 2008-04-13 Bruno Haible <bruno@clisp.org>
19298 * lib/binary-io.h [__EMX__]: Include <io.h>.
19299 Reported by Elbert Pol <e.pol@chello.nl>.
19301 2008-04-12 Bruno Haible <bruno@clisp.org>
19303 * lib/fpucw.h: Enable the definitions also for x86_64.
19304 Needed for NetBSD/x86_64.
19305 Reported by Thomas Klausner <tk@giga.or.at>.
19307 2008-04-12 Bruno Haible <bruno@clisp.org>
19309 * tests/test-strtod.c: Include isnand.h.
19310 (main): Use isnand instead of isnan.
19311 Reported by Jim Meyering.
19313 2008-04-12 Bruno Haible <bruno@clisp.org>
19315 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
19316 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19318 2008-04-12 Jim Meyering <meyering@redhat.com>
19320 * m4/math_h.m4 (gl_MATH_H): Fix typos.
19322 2008-04-12 Bruno Haible <bruno@clisp.org>
19324 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
19325 Reported by Elbert Pol <e.pol@chello.nl>.
19327 2008-04-12 Eric Blake <ebb9@byu.net>
19329 Work around Solaris 10 math.h bug.
19330 * m4/math_h.m4 (gl_MATH_H): Check for bug.
19331 (gl_MATH_H_DEFAULTS): Set up default.
19332 * modules/math (Makefile.am): Replace new indicators.
19333 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
19334 * tests/test-math.c (main): Test this.
19335 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
19336 * doc/posix-headers/math.texi (math.h): Mention bug.
19337 Reported by Nelson H. F. Beebe and Jim Meyering.
19339 2008-04-11 Bruno Haible <bruno@clisp.org>
19341 Adapt to future versions of Apple GCC.
19342 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
19343 Reported by Peter O'Gorman <peter@pogma.com>.
19345 2008-04-11 Bruno Haible <bruno@clisp.org>
19347 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
19349 2008-04-11 Bruno Haible <bruno@clisp.org>
19351 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
19353 * modules/getaddrinfo-tests (Makefile.am): Define
19354 test_getaddrinfo_LDADD.
19356 2008-04-11 Bruno Haible <bruno@clisp.org>
19358 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
19359 (init): Fix syntax error.
19360 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
19363 2008-04-11 Bruno Haible <bruno@clisp.org>
19365 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
19366 * modules/glob (Depends-on): Add stdbool.
19368 2008-04-11 Bruno Haible <bruno@clisp.org>
19370 * lib/trim.c: Include <string.h>.
19372 2008-04-11 Eric Blake <ebb9@byu.net>
19374 Avoid compile failure on OS/2.
19375 * lib/regex_internal.h (internal_function): Disable optimization
19376 on OS/2 (__EMX__), where it caused compiler error.
19377 Reported by Elbert Pol.
19379 2008-04-11 Bruno Haible <bruno@clisp.org>
19381 Flush the standard error stream before aborting. Needed on mingw.
19382 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
19383 * tests/test-array_list.c (ASSERT): Likewise.
19384 * tests/test-array_oset.c (ASSERT): Likewise.
19385 * tests/test-avltree_list.c (ASSERT): Likewise.
19386 * tests/test-avltree_oset.c (ASSERT): Likewise.
19387 * tests/test-avltreehash_list.c (ASSERT): Likewise.
19388 * tests/test-binary-io.c (ASSERT): Likewise.
19389 * tests/test-byteswap.c (ASSERT): Likewise.
19390 * tests/test-c-ctype.c (ASSERT): Likewise.
19391 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
19392 * tests/test-c-strcasestr.c (ASSERT): Likewise.
19393 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
19394 * tests/test-c-strstr.c (ASSERT): Likewise.
19395 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
19396 * tests/test-canonicalize.c (ASSERT): Likewise.
19397 * tests/test-carray_list.c (ASSERT): Likewise.
19398 * tests/test-ceilf1.c (ASSERT): Likewise.
19399 * tests/test-ceilf2.c (ASSERT): Likewise.
19400 * tests/test-ceill.c (ASSERT): Likewise.
19401 * tests/test-count-one-bits.c (ASSERT): Likewise.
19402 * tests/test-fbufmode.c (ASSERT): Likewise.
19403 * tests/test-fflush2.c (ASSERT): Likewise.
19404 * tests/test-floorf1.c (ASSERT): Likewise.
19405 * tests/test-floorf2.c (ASSERT): Likewise.
19406 * tests/test-floorl.c (ASSERT): Likewise.
19407 * tests/test-fopen.c (ASSERT): Likewise.
19408 * tests/test-fpending.c (ASSERT): Likewise.
19409 * tests/test-fprintf-posix.c (ASSERT): Likewise.
19410 * tests/test-fpurge.c (ASSERT): Likewise.
19411 * tests/test-freadable.c (ASSERT): Likewise.
19412 * tests/test-freadahead.c (ASSERT): Likewise.
19413 * tests/test-freading.c (ASSERT): Likewise.
19414 * tests/test-freadptr.c (ASSERT): Likewise.
19415 * tests/test-freadptr2.c (ASSERT): Likewise.
19416 * tests/test-freadseek.c (ASSERT): Likewise.
19417 * tests/test-freopen.c (ASSERT): Likewise.
19418 * tests/test-frexp.c (ASSERT): Likewise.
19419 * tests/test-frexpl.c (ASSERT): Likewise.
19420 * tests/test-fseek.c (ASSERT): Likewise.
19421 * tests/test-fseeko.c (ASSERT): Likewise.
19422 * tests/test-fstrcmp.c (ASSERT): Likewise.
19423 * tests/test-ftell.c (ASSERT): Likewise.
19424 * tests/test-ftello.c (ASSERT): Likewise.
19425 * tests/test-func.c (ASSERT): Likewise.
19426 * tests/test-fwritable.c (ASSERT): Likewise.
19427 * tests/test-fwriting.c (ASSERT): Likewise.
19428 * tests/test-getdelim.c (ASSERT): Likewise.
19429 * tests/test-getline.c (ASSERT): Likewise.
19430 * tests/test-i-ring.c (ASSERT): Likewise.
19431 * tests/test-iconv-utf.c (ASSERT): Likewise.
19432 * tests/test-iconv.c (ASSERT): Likewise.
19433 * tests/test-isfinite.c (ASSERT): Likewise.
19434 * tests/test-isnand.c (ASSERT): Likewise.
19435 * tests/test-isnanf.c (ASSERT): Likewise.
19436 * tests/test-isnanl.h (ASSERT): Likewise.
19437 * tests/test-ldexpl.c (ASSERT): Likewise.
19438 * tests/test-linked_list.c (ASSERT): Likewise.
19439 * tests/test-linkedhash_list.c (ASSERT): Likewise.
19440 * tests/test-localename.c (ASSERT): Likewise.
19441 * tests/test-lseek.c (ASSERT): Likewise.
19442 * tests/test-mbscasecmp.c (ASSERT): Likewise.
19443 * tests/test-mbscasestr1.c (ASSERT): Likewise.
19444 * tests/test-mbscasestr2.c (ASSERT): Likewise.
19445 * tests/test-mbscasestr3.c (ASSERT): Likewise.
19446 * tests/test-mbscasestr4.c (ASSERT): Likewise.
19447 * tests/test-mbschr.c (ASSERT): Likewise.
19448 * tests/test-mbscspn.c (ASSERT): Likewise.
19449 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
19450 * tests/test-mbspbrk.c (ASSERT): Likewise.
19451 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
19452 * tests/test-mbsrchr.c (ASSERT): Likewise.
19453 * tests/test-mbsspn.c (ASSERT): Likewise.
19454 * tests/test-mbsstr1.c (ASSERT): Likewise.
19455 * tests/test-mbsstr2.c (ASSERT): Likewise.
19456 * tests/test-mbsstr3.c (ASSERT): Likewise.
19457 * tests/test-memchr2.c (ASSERT): Likewise.
19458 * tests/test-memmem.c (ASSERT): Likewise.
19459 * tests/test-open.c (ASSERT): Likewise.
19460 * tests/test-printf-frexp.c (ASSERT): Likewise.
19461 * tests/test-printf-frexpl.c (ASSERT): Likewise.
19462 * tests/test-printf-posix.c (ASSERT): Likewise.
19463 * tests/test-quotearg.c (ASSERT): Likewise.
19464 * tests/test-rbtree_list.c (ASSERT): Likewise.
19465 * tests/test-rbtree_oset.c (ASSERT): Likewise.
19466 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
19467 * tests/test-round1.c (ASSERT): Likewise.
19468 * tests/test-roundf1.c (ASSERT): Likewise.
19469 * tests/test-roundl.c (ASSERT): Likewise.
19470 * tests/test-signbit.c (ASSERT): Likewise.
19471 * tests/test-sleep.c (ASSERT): Likewise.
19472 * tests/test-snprintf-posix.c (ASSERT): Likewise.
19473 * tests/test-snprintf.c (ASSERT): Likewise.
19474 * tests/test-sprintf-posix.c (ASSERT): Likewise.
19475 * tests/test-stat-time.c (ASSERT): Likewise.
19476 * tests/test-strcasestr.c (ASSERT): Likewise.
19477 * tests/test-strerror.c (ASSERT): Likewise.
19478 * tests/test-striconv.c (ASSERT): Likewise.
19479 * tests/test-striconveh.c (ASSERT): Likewise.
19480 * tests/test-striconveha.c (ASSERT): Likewise.
19481 * tests/test-strsignal.c (ASSERT): Likewise.
19482 * tests/test-strstr.c (ASSERT): Likewise.
19483 * tests/test-strtod.c (ASSERT): Likewise.
19484 * tests/test-trunc1.c (ASSERT): Likewise.
19485 * tests/test-trunc2.c (ASSERT): Likewise.
19486 * tests/test-truncf1.c (ASSERT): Likewise.
19487 * tests/test-truncf2.c (ASSERT): Likewise.
19488 * tests/test-truncl.c (ASSERT): Likewise.
19489 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
19490 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
19491 * tests/test-vasnprintf.c (ASSERT): Likewise.
19492 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
19493 * tests/test-vasprintf.c (ASSERT): Likewise.
19494 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
19495 * tests/test-vprintf-posix.c (ASSERT): Likewise.
19496 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
19497 * tests/test-vsnprintf.c (ASSERT): Likewise.
19498 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
19499 * tests/test-wcwidth.c (ASSERT): Likewise.
19500 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
19501 * tests/test-xprintf-posix.c (ASSERT): Likewise.
19502 * tests/test-xvasprintf.c (ASSERT): Likewise.
19503 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
19504 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
19505 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
19506 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
19507 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
19508 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
19509 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
19510 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
19511 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
19512 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
19513 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
19514 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
19515 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
19516 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
19517 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
19518 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
19519 * tests/unictype/test-block_list.c (ASSERT): Likewise.
19520 * tests/unictype/test-block_of.c (ASSERT): Likewise.
19521 * tests/unictype/test-block_test.c (ASSERT): Likewise.
19522 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
19523 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
19524 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
19525 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
19526 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
19527 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
19528 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
19529 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
19530 * tests/unictype/test-combining.c (ASSERT): Likewise.
19531 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
19532 * tests/unictype/test-digit.c (ASSERT): Likewise.
19533 * tests/unictype/test-mirror.c (ASSERT): Likewise.
19534 * tests/unictype/test-numeric.c (ASSERT): Likewise.
19535 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
19536 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
19537 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
19538 * tests/unictype/test-scripts.c (ASSERT): Likewise.
19539 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
19540 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
19541 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
19542 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
19543 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
19544 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
19545 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
19546 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
19547 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
19548 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
19549 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
19550 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
19551 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
19552 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
19553 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
19554 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
19555 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
19556 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
19557 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
19558 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
19559 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
19560 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
19561 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
19562 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
19563 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
19564 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
19565 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
19566 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
19567 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
19568 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
19569 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
19570 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
19571 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
19572 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
19573 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
19574 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
19575 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
19576 Reported by Eric Blake.
19578 2008-04-11 Bruno Haible <bruno@clisp.org>
19580 * lib/wchar.in.h: Tweak comment.
19582 2008-04-11 Bruno Haible <bruno@clisp.org>
19584 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
19585 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
19587 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
19589 2008-04-11 Bruno Haible <bruno@clisp.org>
19591 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
19593 2008-04-11 Simon Josefsson <simon@josefsson.org>
19595 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
19596 of attempting to use non-existing /dev/*random. Based on patch
19597 from Adam Strzelecki <ono@java.pl> in
19598 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
19600 2008-04-08 Bruno Haible <bruno@clisp.org>
19602 Add tentative support for emx+gcc.
19603 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
19604 * lib/fpurge.c (fpurge): Likewise.
19605 * lib/freadable.c (freadable): Likewise.
19606 * lib/freadahead.c (freadahead): Likewise.
19607 * lib/freading.c (freading): Likewise.
19608 * lib/freadptr.c (freadptr): Likewise.
19609 * lib/freadseek.c (freadptrinc): Likewise.
19610 * lib/fseeko.c (rpl_fseeko): Likewise.
19611 * lib/fseterr.c (fseterr): Likewise.
19612 * lib/fwritable.c (fwritable): Likewise.
19613 * lib/fwriting.c (fwriting): Likewise.
19614 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
19616 2008-04-09 Eric Blake <ebb9@byu.net>
19618 Avoid some autoconf warnings.
19619 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
19620 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
19621 * m4/afs.m4 (gl_AFS): Likewise.
19622 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
19623 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
19624 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19625 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
19626 (gl_INTEGER_TYPE_SUFFIX): Likewise.
19627 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
19628 (AC_CHECK_DECLS_ONCE): Likewise.
19630 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
19631 gnulib-tool requires autoconf 2.59 or better.
19632 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
19634 2008-04-08 Eric Blake <ebb9@byu.net>
19636 Use 'git describe --match' if present (added in git 1.5.5).
19637 * build-aux/git-version-gen: Limit result to tags that match 'v*'
19640 2008-04-08 Bruno Haible <bruno@clisp.org>
19642 Add tentative support for OpenServer.
19643 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
19645 * lib/fpurge.c (fpurge): Likewise.
19646 * lib/freadable.c (freadable): Likewise.
19647 * lib/freadahead.c (freadahead): Likewise.
19648 * lib/freading.c (freading): Likewise.
19649 * lib/freadptr.c (freadptr): Likewise.
19650 * lib/freadseek.c (freadptrinc): Likewise.
19651 * lib/fseeko.c (rpl_fseeko): Likewise.
19652 * lib/fseterr.c (fseterr): Likewise.
19653 * lib/fwritable.c (fwritable): Likewise.
19654 * lib/fwriting.c (fwriting): Likewise.
19655 Reported by Roger Cornelius <rac@tenzing.org> and
19656 Brian K. White <brian@aljex.com>.
19658 2008-04-06 Jim Meyering <meyering@redhat.com>
19660 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
19662 2008-04-06 Bruno Haible <bruno@clisp.org>
19664 Avoid possible error with non-ASCII bytes in UTF-8 locales.
19665 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
19666 * tests/test-printf-posix.sh: Likewise.
19667 * tests/test-vfprintf-posix.sh: Likewise.
19668 * tests/test-vprintf-posix.sh: Likewise.
19669 * tests/test-xprintf-posix.sh: Likewise.
19671 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19673 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
19674 hide error from 'ls', needed on OS/2.
19675 Report by Elbert Pol <elbert.pol@gmail.com>.
19677 2008-04-04 Eric Blake <ebb9@byu.net>
19679 Make test-fseeko.c failures meaningful.
19680 * tests/test-fseeko.c: Print line number on failure.
19681 * tests/test-fseek.c: Likewise.
19682 Reported by Nelson H. F. Beebe.
19684 Improve strtod bug detection check.
19685 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
19686 required for Solaris 10.
19687 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
19689 2008-04-04 Bruno Haible <bruno@clisp.org>
19691 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
19694 2008-04-03 Eric Blake <ebb9@byu.net>
19696 Ensure sane .version contents.
19697 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
19699 * build-aux/git-version-gen: Improve documentation.
19701 Make GNU make output nicer.
19702 * top/GNUmakefile [!_have-Makefile]: Add dependency on
19703 MAKECMDGOALS to enforce message for all command line targets. Set
19704 srcdir for use in maint.mk.
19706 Another maintainer tweak.
19707 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
19708 a target that regenerates version.
19710 2008-04-03 Jim Meyering <meyering@redhat.com>
19712 vc-list-files: don't cause coreutils "make po-check" failure
19713 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
19715 2008-04-03 Eric Blake <ebb9@byu.net>
19717 Allow VPATH usage of vc-list-files.
19718 * build-aux/vc-list-files (scriptversion): Add timestamp.
19719 (options): Add --help, --version, -C.
19720 (CVS): Support installed cvsu.
19722 2008-04-02 Bruno Haible <bruno@clisp.org>
19724 Avoid some "statement with no effect" warnings from gcc.
19725 * tests/test-wctype.c (main): Explicitly ignore unused values.
19726 Reported by Jim Meyering.
19728 2008-04-02 Jim Meyering <meyering@redhat.com>
19730 Avoid some warnings from "gcc -Wshadow".
19731 * tests/test-frexp.c (exp): Define to a different identifier.
19732 * tests/test-frexpl.c (exp): Likewise.
19734 2008-04-03 Jim Meyering <meyering@redhat.com>
19736 bootstrap: remove dangling *.[ch] symlinks from lib
19737 * build-aux/bootstrap [dangling symlink removal]: Move find's
19738 -depth option to precede all others, to avoid a warning.
19739 Remove *.[ch] files too, and from "$source_base" (usually lib/).
19741 2008-04-02 Bruno Haible <bruno@clisp.org>
19743 Avoid some warnings from "gcc -Wshadow".
19744 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
19745 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
19746 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
19747 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
19748 Reported by Jim Meyering.
19750 2008-04-01 Bruno Haible <bruno@clisp.org>
19752 Fix test to work on IRIX 6.5 with cc.
19753 * tests/test-math.c (numeric_equal): New function.
19756 2008-04-01 Bruno Haible <bruno@clisp.org>
19758 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
19760 2008-04-01 Bruno Haible <bruno@clisp.org>
19762 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
19763 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
19764 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
19765 (Depends-on): Remove math.
19767 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
19768 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
19769 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
19770 (Depends-on): Remove math.
19772 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
19773 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
19774 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
19775 (Depends-on): Remove math.
19776 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
19777 (Depends-on): Remove math.
19779 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
19780 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
19781 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
19782 (Depends-on): Remove math.
19783 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
19784 (Depends-on): Remove math.
19786 * tests/test-round1.c: Include nan.h.
19787 (main): Use NaNd instead of NAN.
19788 * modules/round-tests (Files): Add tests/nan.h.
19790 * tests/test-trunc1.c: Include nan.h.
19791 (main): Use NaNd instead of NAN.
19792 * modules/trunc-tests (Files): Add tests/nan.h.
19794 * tests/test-roundf1.c: Include nan.h.
19795 (main): Use NaNf instead of NAN.
19796 * modules/roundf-tests (Files): Add tests/nan.h.
19798 * tests/test-truncf1.c: Include nan.h.
19799 (main): Use NaNf instead of NAN.
19800 * modules/truncf-tests (Files): Add tests/nan.h.
19802 * tests/test-ceilf1.c: Include nan.h.
19803 (main): Use NaNf instead of NAN.
19804 * modules/ceilf-tests (Files): Add tests/nan.h.
19806 * tests/test-floorf1.c: Include nan.h.
19807 (main): Use NaNf instead of NAN.
19808 * modules/floorf-tests (Files): Add tests/nan.h.
19810 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
19811 (main): Use NaNf instead of NAN.
19812 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
19814 * tests/test-isnand.c: Include nan.h instead of <math.h>.
19815 (main): Use NaNd instead of NAN.
19816 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
19818 * tests/test-frexp.c: Include nan.h.
19819 (main): Use NaNd instead of NAN.
19820 * modules/frexp-tests (Files): Add tests/nan.h.
19822 * lib/isnan.c: Don't include <math.h>.
19823 (FUNC): Don't use NAN macro.
19824 * modules/isnand-nolibm (Depends-on): Remove math.
19825 * modules/isnanf-nolibm (Depends-on): Remove math.
19826 * modules/isnanl (Depends-on): Remove math.
19827 * modules/isnanl-nolibm (Depends-on): Remove math.
19829 * tests/nan.h: New file.
19831 2008-04-01 Eric Blake <ebb9@byu.net>
19834 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
19835 values to be the right type.
19837 For now, cater to gnulib strtod inaccuracies.
19838 * tests/test-strtod.c (main): Allow 1-ulp error on expected
19839 fractional results. While not as nice from a QoI perspective, it
19840 is a quicker patch than correctly implementing decimal to binary
19843 2008-03-31 Eric Blake <ebb9@byu.net>
19845 Guarantee a definition of NAN.
19846 * lib/math.in.h (NAN): Define if missing.
19847 * tests/test-math.c (main): Test it.
19848 * doc/posix-headers/math.texi (math.h): Document this.
19849 * lib/isnan.c (rpl_isnand): Use it.
19850 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
19851 * tests/test-floorf1.c (NaN): Likewise.
19852 * tests/test-frexp.c (NaN): Likewise.
19853 * tests/test-isnand.c (NaN): Likewise.
19854 * tests/test-isnanf.c (NaN): Likewise.
19855 * tests/test-round1.c (NaN): Likewise.
19856 * tests/test-roundf1.c (NaN): Likewise.
19857 * tests/test-snprintf-posix.h (NaN): Likewise.
19858 * tests/test-sprintf-posix.h (NaN): Likewise.
19859 * tests/test-trunc1.c (NaN): Likewise.
19860 * tests/test-truncf1.c (NaN): Likewise.
19861 * tests/test-vasnprintf-posix.c (NaN): Likewise.
19862 * tests/test-vasprintf-posix.c (NaN): Likewise.
19863 * modules/isnand-nolibm (Depends-on): Add math.
19864 * modules/isnanf-nolibm (Depends-on): Likewise.
19865 * modules/isnanl (Depends-on): Likewise.
19866 * modules/isnanl-nolibm (Depends-on): Likewise.
19867 * modules/snprintf-posix-tests (Depends-on): Likewise.
19868 * modules/sprintf-posix-tests (Depends-on): Likewise.
19869 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
19870 * modules/vsprintf-posix-tests (Depends-on): Likewise.
19871 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
19872 * modules/vasprintf-posix-tests (Depends-on): Likewise.
19874 2008-03-31 Bruno Haible <bruno@clisp.org>
19876 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
19877 * doc/posix-functions/strtod.texi: Likewise.
19879 2008-03-31 Bruno Haible <bruno@clisp.org>
19881 * tests/test-strtod.c (main): Don't use C99 syntax.
19883 2008-03-31 Bruno Haible <bruno@clisp.org>
19885 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
19886 Reported by Eric Blake.
19888 2008-03-31 Jim Meyering <meyering@redhat.com>
19890 Don't compare actual signbit return values.
19891 * tests/test-strtod.c (main): Rather, compare only their
19892 zero/non-zero nature.
19894 2008-03-31 Eric Blake <ebb9@byu.net>
19896 More strtod documentation.
19897 * doc/posix-functions/strtod.texi (strtod): Interpret more test
19898 failures as distinct bugs.
19900 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
19902 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
19903 Problem reported by Erik Benada in
19904 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
19906 2008-03-30 Bruno Haible <bruno@clisp.org>
19908 * tests/test-strtod.c: Add comments about which assertion fails on which
19910 * doc/posix-functions/strtod.texi: Add info about many more platforms.
19912 2008-03-30 Eric Blake <ebb9@byu.net>
19914 Test signbit behavior on zeros.
19915 * tests/test-signbit.c (test_signbitf): Add tests for zero.
19916 (test_signbitd, test_signbitl): Likewise.
19918 More strtod touchups.
19919 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
19920 sign of negative underflow, for now. Use .5, not .1.
19921 * doc/posix-functions/strtod.texi (strtod): Mention these
19923 Reported by Jim Meyering.
19925 2008-03-30 Bruno Haible <bruno@clisp.org>
19927 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
19928 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
19930 2008-03-30 Bruno Haible <bruno@clisp.org>
19932 Avoid failure when attempting to return empty iconv results on some
19934 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
19935 allocation, don't report ENOMEM when the resulting string is empty.
19937 2008-03-30 Bruno Haible <bruno@clisp.org>
19939 Fix buffer overrun.
19940 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
19941 Don't consider the width for tmp_length. Check count against tmp_length
19942 before doing the padding. Ensure enough allocation during padding.
19944 2008-03-30 Eric Blake <ebb9@byu.net>
19947 * lib/strtod.c (strtod): Avoid compiler warnings.
19948 Reported by Jim Meyering.
19950 2008-03-30 Bruno Haible <bruno@clisp.org>
19952 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
19953 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
19954 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
19955 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
19956 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
19957 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
19958 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
19959 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
19961 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
19962 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
19963 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
19964 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
19965 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
19966 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
19967 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
19968 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
19970 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
19971 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
19972 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
19973 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
19974 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
19975 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
19976 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
19977 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
19979 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
19980 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
19982 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
19983 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
19985 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
19986 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
19988 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
19989 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
19990 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
19992 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
19993 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
19994 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
19996 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
19997 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
19998 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
20000 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
20001 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
20002 * modules/vasprintf (Depends-on): Add EOVERFLOW.
20004 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
20005 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
20006 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
20007 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
20008 (Depends-on): Add EOVERFLOW.
20009 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
20010 (Depends-on): Add EOVERFLOW.
20011 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
20012 (Depends-on): Add EOVERFLOW.
20013 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
20014 (Depends-on): Add EOVERFLOW.
20015 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
20016 (Depends-on): Add EOVERFLOW.
20017 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
20018 (Depends-on): Add EOVERFLOW.
20019 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
20020 (Depends-on): Add EOVERFLOW.
20021 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
20022 (Depends-on): Add EOVERFLOW.
20024 * lib/sprintf.c (EOVERFLOW): Remove fallback.
20025 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
20026 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
20028 * lib/snprintf.c (EOVERFLOW): Remove fallback.
20029 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
20030 * modules/snprintf (Depends-on): Add EOVERFLOW.
20032 * lib/poll.c (EOVERFLOW): Remove fallback.
20033 * modules/poll (Depends-on): Add EOVERFLOW.
20035 * lib/getugroups.c (EOVERFLOW): Remove fallback.
20036 * modules/getugroups (Depends-on): Add EOVERFLOW.
20038 * lib/getdelim.c (EOVERFLOW): Remove fallback.
20039 * modules/getdelim (Depends-on): Add EOVERFLOW.
20041 * lib/ftell.c (EOVERFLOW): Remove fallback.
20042 * modules/ftell (Depends-on): Add EOVERFLOW.
20044 * lib/fprintf.c (EOVERFLOW): Remove fallback.
20045 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
20046 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
20048 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
20050 * modules/EOVERFLOW-tests: New file.
20051 * tests/test-EOVERFLOW.c: New file.
20053 * modules/EOVERFLOW: New file.
20054 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
20056 2008-03-30 Bruno Haible <bruno@clisp.org>
20058 Fix bug introduced on 2007-06-10.
20059 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
20060 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
20062 2008-03-30 Bruno Haible <bruno@clisp.org>
20064 Improve freadseek's efficiency after ungetc.
20065 * lib/freadseek.c: Include freadahead.h.
20066 (freadptrinc): New function, extracted from freadseek.
20067 (freadseek): Use it in a loop. Use freadahead to determine the number
20068 of loop iterations.
20069 * modules/freadseek (Depends-on): Add freadahead.
20070 (configure.ac): Require AC_C_INLINE.
20072 2008-03-30 Bruno Haible <bruno@clisp.org>
20074 * lib/freadseek.c (freadseek): Don't ignore the return value of
20077 2008-03-29 Eric Blake <ebb9@byu.net>
20079 Add hex float support.
20080 * modules/strtod (Depends-on): Add c-ctype.
20081 (Link): Mention POW_LIB.
20082 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
20083 whitespace between 'e' and exponent.
20084 * tests/test-strtod.c (main): Enable hex float tests.
20085 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
20088 Document various strtod bugs, with some fixes.
20089 * doc/posix-functions/strtod.texi (strtod): Document bugs with
20090 "-0x", "inf", "nan", and hex constants.
20091 * doc/posix-functions/atof.texi (atof): Likewise.
20092 * modules/stdlib (Makefile.am): Support strtod.
20093 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
20094 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
20095 detect additional strtod bugs.
20096 * lib/stdlib.in.h (rpl_strtod): Add declarations.
20097 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
20098 bool where appropriate. Parse 'inf' and 'nan'.
20099 * tests/test-strtod.c: New file.
20100 * modules/strtod (Depends-on): Add stdbool, stdlib.
20101 (configure.ac): Turn on module indicator.
20102 * modules/strtod-tests: New module.
20104 2008-03-29 Eric Blake <ebb9@byu.net>
20106 Fix ftell on mingw.
20107 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
20108 * modules/ftell-tests (Depends-on): Add binary-io.
20109 * modules/ftello-tests (Depends-on): Likewise.
20110 * tests/test-ftell.c (main): Enhance test to cover behavior after
20111 ungetc. Enforce binary mode.
20112 * tests/test-ftello.c (main): Likewise.
20114 Pass test-freadseek on cygwin.
20115 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
20116 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
20119 * tests/test-fflush2.c (main): Fix typo.
20121 2008-03-29 Bruno Haible <bruno@clisp.org>
20123 * tests/test-fflush2.c (main): Temporarily disable the contents of
20125 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
20126 Reported by Eric Blake.
20128 2008-03-28 Simon Josefsson <simon@josefsson.org>
20130 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
20131 (GC_SHA224_DIGEST_SIZE): Add.
20133 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
20134 (gc_hash_digest_length): Likewise.
20135 (gc_hash_buffer): Likewise.
20137 2008-03-25 Bruno Haible <bruno@clisp.org>
20139 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
20140 detail which gettext release to use.
20141 Reported by Simon Josefsson.
20143 2008-03-26 Jim Meyering <meyering@redhat.com>
20145 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
20146 * modules/gnumakefile (clean-GNUmakefile): Also, use
20147 test ... && ... || : syntax rather than if-then ... fi.
20149 gnumakefile: Don't double-quote-expand $(VPATH) value.
20150 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
20152 2008-03-24 Eric Blake <ebb9@byu.net>
20154 Alter GNUmakefile to install into top directory.
20155 * modules/maintainer-makefile: Split, and add dependency...
20156 * modules/gnumakefile: to this new module.
20157 * build-aux/GNUmakefile: Move...
20158 * top/GNUmakefile: ...here.
20159 * build-aux/maint.mk: Move...
20160 * top/maint.mk: ...here.
20161 * MODULES.html.sh (Support for maintaining...): Document new
20164 2008-03-23 Bruno Haible <bruno@clisp.org>
20166 * gnulib-tool: New options --vc-files, --no-vc-files.
20167 (func_usage): Document them.
20168 (vc_files): New variable.
20169 (func_import): Consider vc_files.
20170 (func_create_testdir): Set vc_files to empty.
20171 Suggested by Jim Meyering and Karl Berry.
20173 2008-03-23 Bruno Haible <bruno@clisp.org>
20175 Fix regex compilation error on HP-UX 11.
20176 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
20177 * modules/regex (Files): Add m4/mbstate_t.m4.
20178 Reported by Ton Voon <ton.voon@altinity.com>.
20180 2008-03-23 Bruno Haible <bruno@clisp.org>
20182 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
20184 2008-03-23 Eric Blake <ebb9@byu.net>
20185 Bruno Haible <bruno@clisp.org>
20187 Install files from top/ in the destination directory.
20188 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
20189 augmentation also for the files from top/.
20190 (func_import, func_create_testdir): Rewrite file names:
20191 top/filename -> filename.
20193 2008-03-23 Bruno Haible <bruno@clisp.org>
20195 Tweak "gnulib --version" output.
20196 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
20198 2008-03-23 Bruno Haible <bruno@clisp.org>
20200 Tweak "gnulib --version" output.
20201 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
20202 rather than contents of ChangeLog, when possible.
20204 2008-03-21 Eric Blake <ebb9@byu.net>
20206 More --version tweaks.
20207 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
20208 date of last ChangeLog entry.
20210 2008-03-21 Jim Meyering <meyering@redhat.com>
20212 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
20214 2008-03-20 Eric Blake <ebb9@byu.net>
20217 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
20219 2008-03-20 Simon Josefsson <simon@josefsson.org>
20221 * build-aux/GNUmakefile: Make git-version-gen optional. Add
20222 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
20224 2008-03-20 Eric Blake <ebb9@byu.net>
20226 Sync GNUmakefile with coreutils.
20227 * build-aux/GNUmakefile (have-Makefile): Rename...
20228 (_have-Makefile): ...to this, for namespace consideration.
20229 (GNUmakefile.cfg): Include, if present.
20230 (_autoreconf): Define a default.
20231 (_is-dist-target): New rule for rebuilds to pick up intra-release
20233 (maint-cfg.mk): Rename...
20234 (cfg.mk): ...to this.
20236 2008-03-18 Jim Meyering <meyering@redhat.com>
20238 New script and module: mktempd
20239 * MODULES.html.sh (maint+release support): Add mktempd.
20240 * build-aux/mktempd: New file.
20241 * modules/mktempd: New file.
20243 2008-03-15 Jim Meyering <meyering@redhat.com>
20246 * lib/sha1.c, lib/md5.c: 63 != ~63.
20247 Reported by Andreas Schwab.
20249 sha1.c, md5.c: Hoist a redundant expression.
20250 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
20251 "ctx->buflen" only once, before calling *_process_block.
20252 * lib/md5.c (md5_process_bytes): Likewise.
20254 2008-03-14 Eric Blake <ebb9@byu.net>
20256 Bump copyright year in files generated by gnulib-tool.
20257 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
20258 gnulib-tool, rather than hard-coding it.
20260 Fix 'gnulib-tool --version' output to work with git.
20261 * gnulib-tool (func_gnulib_dir): New function, extracted from...
20262 (startup): ...here.
20263 (func_version): Use it to invoke git-version-gen, rather than
20264 relying on CVS keyword expansion. Modernize wording.
20265 (cvsdatestamp, last_checkin_date, version): Kill unused
20268 2008-03-12 Jim Meyering <meyering@redhat.com>
20270 Recognize optional cast of the argument to free.
20271 * build-aux/useless-if-before-free: Update regexps.
20273 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
20275 2008-03-11 Bruno Haible <bruno@clisp.org>
20277 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
20278 by a single package.
20279 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
20280 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
20281 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
20282 Reported by Sam Steingold <sds@gnu.org>.
20284 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
20286 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
20289 2008-03-11 Bruno Haible <bruno@clisp.org>
20291 Avoid conflicts between local macro definitions.
20292 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20293 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
20295 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
20296 Bruno Haible <bruno@clisp.org>
20298 Make va_copy work with some version of xlc on AIX 5.1.
20299 * lib/stdarg.in.h: New file.
20300 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
20301 On AIX, use a <stdarg.h> file substitute.
20302 * modules/stdarg (Files): Add lib/stdarg.in.h.
20303 (Depends-on): Add include_next.
20304 (Makefile.am): Build a stdarg.h substitute if requested.
20305 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
20307 2008-03-10 Bruno Haible <bruno@clisp.org>
20309 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
20310 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20311 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
20313 2008-03-10 Bruno Haible <bruno@clisp.org>
20315 * modules/stdlib (Depends-on): Add include_next, remove
20318 2008-03-09 Bruno Haible <bruno@clisp.org>
20320 * lib/freadahead.h (freadahead): Document more precisely.
20321 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
20322 the sum of both buffer sizes.
20323 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
20324 * NEWS: Document the change.
20326 2008-03-09 Bruno Haible <bruno@clisp.org>
20328 Extend freadptr to return also the buffer size.
20329 * lib/freadptr.h (freadptr): Add sizep argument.
20330 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
20331 (freadptr): Add sizep argument. Determine buffer size like freadahead
20333 * tests/test-freadptr.c: Don't include freadahead.h.
20334 (main): Adapt for new calling convention of freadptr.
20335 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
20336 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
20337 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
20338 tests/test-freadptr2.sh.
20339 (Depends): Remove freadahead.
20340 (TESTS): Add test-freadptr2.sh.
20341 (check_PROGRAMS): Add test-freadptr2.
20343 2008-03-09 Bruno Haible <bruno@clisp.org>
20345 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
20346 Report and solution by Simon Josefsson.
20348 2008-03-06 Bruno Haible <bruno@clisp.org>
20350 Make fflush after ungetc work on BSD platforms.
20351 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
20352 * tests/test-fflush2.c: New file.
20353 * tests/test-fflush2.sh: New file.
20354 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
20355 tests/test-fflush2.c.
20356 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
20357 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
20359 2008-03-06 Eric Blake <ebb9@byu.net>
20361 Likewise for ftello.
20362 * modules/ftello (Dependencies): Add extensions.
20363 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
20365 2008-03-06 Bruno Haible <bruno@clisp.org>
20367 * modules/fseeko (Dependencies): Add extensions.
20368 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
20369 Needed on glibc systems.
20371 2008-03-06 Bruno Haible <bruno@clisp.org>
20373 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
20375 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20377 2008-03-06 Bruno Haible <bruno@clisp.org>
20379 * users.txt: Add libgnupdf.
20381 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
20383 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
20384 (Header File Substitutes, Function Substitutes,
20385 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
20386 (Build robot for gnulib): Fix typo.
20388 2008-03-06 Bruno Haible <bruno@clisp.org>
20390 * doc/gnulib-tool.texi (VCS Issues): Small updates.
20391 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20393 2008-03-06 Bruno Haible <bruno@clisp.org>
20395 * doc/func.texi: New file, extracted from doc/gnulib.texi.
20396 * doc/gnulib.texi: Include it.
20398 2008-03-06 Simon Josefsson <simon@josefsson.org>
20400 * modules/func (License): Change license to unlimited; there was
20401 no LGPL parts in the module anyway.
20403 2008-03-06 Simon Josefsson <simon@josefsson.org>
20405 * modules/__func__: Renamed to modules/func.
20406 * modules/__func__-tests: Renamed to modules/func-tests.
20407 * tests/test-__func__.c: Renamed to tests/test-func.c.
20408 * m4/__func__.m4: Renamed to m4/func.m4.
20409 * doc/gnulib.texi (__func__): Section renamed to func.
20410 Suggested by Eric Blake <ebb9@byu.net>.
20412 2008-03-06 Simon Josefsson <simon@josefsson.org>
20414 * doc/gnulib.texi (__func__): Use C99 terminology when talking
20415 about __func__. Make example self-contained. Suggested by Eric
20416 Blake <ebb9@byu.net>.
20418 * tests/test-__func__.c (main): Avoid extraneous () around __func.
20419 Suggested by Eric Blake <ebb9@byu.net>.
20421 2008-03-06 Simon Josefsson <simon@josefsson.org>
20423 * modules/__func__: New file.
20424 * modules/__func__-tests: New file.
20425 * tests/test-__func__.c: New file.
20426 * m4/__func__.m4: New file.
20427 * doc/gnulib.texi (__func__): Document __func__ module.
20429 2008-03-05 Simon Josefsson <simon@josefsson.org>
20431 * modules/byteswap (License): Re-license as LGPLv2+.
20433 2008-03-05 Simon Josefsson <simon@josefsson.org>
20435 * doc/Makefile: Add pdf target.
20437 2008-03-05 Simon Josefsson <simon@josefsson.org>
20439 * modules/inline (License): Use 'unlimited', since there are only
20440 *.m4 files in this module.
20442 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
20443 Bruno Haible <bruno@clisp.org>
20445 Add support for HP C 7.1 on OpenVMS 8.3.
20446 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
20448 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
20450 Update VMS specifics.
20451 * lib/getopt.c [VMS]: Remove include of unixlib.h.
20453 2008-03-02 Jim Meyering <meyering@redhat.com>
20455 Remove the last dependency on the "free" module.
20456 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
20457 Reported by Bob Proulx.
20459 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
20461 Remove useless "if" tests before free. Deprecate "free" module.
20462 * doc/posix-functions/free.texi: Mention that this
20463 module is no longer useful.
20464 * modules/free (Notice): Say this module is obsolete.
20465 * modules/readutmp (Depends-on): Remove free.
20466 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
20467 * lib/putenv.c (putenv): Likewise.
20468 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
20469 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
20470 * tests/test-c-strcasestr.c (main): Likewise.
20471 * tests/test-c-strstr.c (main): Likewise.
20472 * tests/test-mbscasestr1.c (main): Likewise.
20473 * tests/test-mbscasestr2.c (main): Likewise.
20474 * tests/test-mbsstr1.c (main): Likewise.
20475 * tests/test-mbsstr2.c (main): Likewise.
20476 * tests/test-memmem.c (main): Likewise.
20477 * tests/test-strcasestr.c (main): Likewise.
20478 * tests/test-striconv.c (main): Likewise.
20479 * tests/test-striconveh.c (main): Likewise.
20480 * tests/test-striconveha.c (main): Likewise.
20481 * tests/test-strstr.c (main): Likewise.
20483 * build-aux/git-version-gen: Adjust a comment and the Usage string.
20485 bootstrap: sync from coreutils again
20486 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
20488 2008-03-01 Jim Meyering <meyering@redhat.com>
20490 bootstrap: sync from coreutils
20491 * build-aux/bootstrap (update_po_files): Copy a .po file into place
20492 also when the target doesn't exist.
20494 2008-03-01 Eric Blake <ebb9@byu.net>
20496 Fix bugs in last patch.
20497 * lib/memchr2.c (memchr2): Fix typo.
20498 * tests/test-memchr2.c: Test previous bug, and don't use GNU
20500 Reported by Bruce Korb.
20502 New module 'memchr2'.
20503 * modules/memchr2: New file.
20504 * modules/memchr2-tests: Likewise.
20505 * lib/memchr2.h: Likewise.
20506 * lib/memchr2.c: Likewise, based on memchr.c.
20507 * tests/test-memchr2.c: New test.
20508 * MODULES.html.sh (String handling): Add memchr2.
20510 2008-02-29 Bruno Haible <bruno@clisp.org>
20512 * modules/freadseek-tests: New file.
20513 * tests/test-freadseek.sh: New file.
20514 * tests/test-freadseek.c: New file.
20516 New module 'freadseek'.
20517 * modules/freadseek: New file.
20518 * lib/freadseek.h: New file.
20519 * lib/freadseek.c: New file.
20520 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
20522 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
20524 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
20527 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
20528 program_invocation_name and program_invocation_short_name are
20531 2008-02-28 Bruno Haible <bruno@clisp.org>
20533 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
20534 * tests/test-freadptr.sh: Also test non-seekable stdin.
20536 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
20538 * build-aux/bootstrap (source_base, m4_base)
20539 (doc_base, tests_base): New variables.
20540 (gnulib_tool_options): Do not hardcode base directories, use
20541 the above variables instead.
20543 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
20545 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
20547 2008-02-28 Bruno Haible <bruno@clisp.org>
20549 * modules/freadptr-tests: New file.
20550 * tests/test-freadptr.sh: New file.
20551 * tests/test-freadptr.c: New file.
20553 New module 'freadptr'.
20554 * modules/freadptr: New file.
20555 * lib/freadptr.h: New file.
20556 * lib/freadptr.c: New file.
20557 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
20559 2008-02-26 Karl Berry <karl@freefriends.org>
20562 * libltdl/argz.c (argz_add, argz_count): New functions.
20563 * libltdl/argz.in.h: Declare them.
20564 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
20566 2008-02-22 Bruno Haible <bruno@clisp.org>
20568 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
20569 is a pointer type. Needed for HP-UX 10.
20570 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
20571 * doc/posix-functions/gmtime_r.texi: Likewise.
20572 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
20574 2008-02-24 Bruno Haible <bruno@clisp.org>
20576 * modules/environ-tests: New file.
20577 * tests/test-environ.c: New file.
20579 New module 'environ'.
20580 * modules/environ: New file.
20581 * lib/unistd.in.h (environ): New declaration.
20582 * m4/environ.m4: New file.
20583 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
20585 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
20587 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
20589 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
20590 wrong claim that 'environ' is missing on some systems.
20591 * modules/execute (Depends-on): Add environ.
20592 * lib/execute.c (environ): Remove fallback declaration.
20593 * modules/pipe (Depends-on): Add environ.
20594 * lib/pipe.c (environ): Remove fallback declaration.
20595 * modules/setenv (Depends-on): Add environ.
20596 * lib/setenv.c (environ): Remove fallback declaration.
20597 * modules/unsetenv (Depends-on): Add environ.
20598 * lib/unsetenv.c (environ): Remove fallback declaration.
20599 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
20601 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
20602 (gl_PREREQ_UNSETENV): Likewise.
20604 2008-02-24 Bruno Haible <bruno@clisp.org>
20606 * doc/posix-functions/environ.texi: Document the MacOS X problem.
20608 2008-02-20 Bob Proulx <bob@proulx.com>
20610 Enable use of older two part flavor 'git describe'.
20611 * build-aux/git-version-gen: If using the older two part flavor of
20612 git version then recreate the third part now present in the
20613 newer three part flavor of git describe.
20615 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
20617 * lib/fts.c (fts_build): Typo correction to comment.
20619 2008-02-17 Bruno Haible <bruno@clisp.org>
20621 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
20622 generating no-op conflicts.
20624 2008-02-17 Bruno Haible <bruno@clisp.org>
20627 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
20628 result_entries, rather than an index-based loop.
20630 2008-02-17 Bruno Haible <bruno@clisp.org>
20633 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
20635 (entry_create): New function.
20636 (entry_hashcode): Use the cached hashcode if possible.
20637 (read_changelog_file, try_split_merged_entry): Use entry_create.
20639 2008-02-17 Bruno Haible <bruno@clisp.org>
20641 Speed up from O(n^2) to O(n) for long ChangeLog files.
20642 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
20643 (read_changelog_file): Change implementation of entries_reversed list
20645 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
20647 2008-02-17 Bruno Haible <bruno@clisp.org>
20649 New option --split-merged-entry.
20650 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
20651 (find_paragraph_end, try_split_merged_entry): New functions.
20652 (long_options): Add option --split-merged-entry.
20653 (usage): Document option --split-merged-entry.
20654 (main): Implement option --split-merged-entry.
20655 Reported by Eric Blake.
20657 2008-02-17 Bruno Haible <bruno@clisp.org>
20659 * lib/git-merge-changelog.c: Include c-strstr.h.
20660 (main): Support the "git pull --rebase" situation.
20661 * modules/git-merge-changelog (Depends-on): Add c-strstr.
20662 Reported by Eric Blake.
20664 2008-02-16 Eric Blake <ebb9@byu.net>
20666 Avoid doubling \ in common case of "c-maybe" quoting style.
20667 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
20668 eliding outer quotes.
20669 * lib/quotearg.h: Document this.
20670 * tests/test-quotearg.c (result_strings, inputs, results_g)
20671 (flag_results, locale_results): Test it by adding a new string to
20673 (compare_strings): Test new string.
20675 2008-02-13 Eric Blake <ebb9@byu.net>
20677 Avoid trigraph quoting in default output.
20678 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
20679 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
20680 unless explicitly requested.
20681 * tests/test-quotearg.c (flag_results, main): Add additional tests.
20683 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
20685 Don't rely on signed integer overflowing to negative value.
20686 * lib/getugroups.c (getugroups): Include <limits.h>.
20687 Instead, compare against INT_MAX, and increment only if the test passes.
20689 2008-02-13 Jim Meyering <meyering@redhat.com>
20690 and Eric Blake <ebb9@byu.net>
20692 Avoid shadowing warning and compile errors on Linux.
20693 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
20694 forwarding macros on Linux.
20695 (dcgettext): Define a stub, for Linux.
20696 (results_g, main): Avoid warnings.
20698 2008-02-12 Eric Blake <ebb9@byu.net>
20700 Silence warning in last patch.
20701 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
20703 Quotearg part 4: add tests, fix c-maybe colon quoting.
20704 * lib/quotearg.h: Improve documentation.
20705 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
20706 escapes when adding outer quotes. When quoting trigraphs, use
20707 valid C notation. When quoting NUL, omit extra characters if next
20708 character is not digit. Alter prototype.
20709 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
20711 * modules/quotearg-tests: New module.
20712 * tests/test-quotearg.c: New test.
20714 2008-02-07 Eric Blake <ebb9@byu.net>
20716 Quotearg part 3: add flag to control outer quote elision.
20717 * lib/quotearg.h (c_maybe_quoting_style): New style.
20718 (enum quoting_flags): Better documentation of flags.
20719 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
20721 (quotearg_buffer_restyled): Handle new flag to elide outer
20724 Quotearg part 2: add flag that can control NUL elision.
20725 * lib/quotearg.h (set_quoting_flags): New prototype.
20726 * lib/quotearg.c (struct quoting_options): Add flag field.
20727 (set_quoting_flags): New function.
20728 (quotearg_buffer_restyled): Add flags parameter.
20729 (quotearg_alloc_mem): Set the flag if length cannot be returned.
20730 (quotearg_n_options): Set the flag, since length cannot be
20732 (quoting_options_from_style): Default flags correctly.
20734 Quotearg part 1: more wrappers, restore quotearg_char state.
20735 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
20736 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
20737 (quotearg_colon_mem): New wrappers.
20738 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
20739 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
20741 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
20742 (quotearg_colon_mem): New functions.
20744 2008-02-11 Bruno Haible <bruno@clisp.org>
20746 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
20747 library in the current directory: it does not work with parallel make.
20748 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20750 2008-02-11 Bruno Haible <bruno@clisp.org>
20752 * .gitattributes: New file.
20754 2008-02-11 Jim Meyering <meyering@redhat.com>
20756 useless-if-before-free: Fix reversed exit values.
20757 * build-aux/useless-if-before-free: Use correct values
20758 for EXIT_MATCH and EXIT_NO_MATCH.
20760 * build-aux/useless-if-before-free: Close stdout carefully.
20762 2008-02-10 Bruno Haible <bruno@clisp.org>
20764 New module 'git-merge-changelog'.
20765 * modules/git-merge-changelog: New file.
20766 * lib/git-merge-changelog.c: New file.
20768 2008-02-10 Jim Meyering <meyering@redhat.com>
20770 useless-if-before-free: New option: --list (-l).
20772 useless-if-before-free: Don't exit immediately upon open failure.
20773 * build-aux/useless-if-before-free: Exit 2 for errors.
20774 Upon failure to open a file, don't exit immediately.
20775 Rather, just warn and continue with any remaining files.
20777 2008-02-10 Bruno Haible <bruno@clisp.org>
20779 New abstract list operation 'node_set_value'.
20780 * lib/gl_list.h (gl_list_node_set_value): New function.
20781 (struct gl_list_implementation): New field node_set_value.
20782 * lib/gl_list.c (gl_list_node_set_value): New function.
20783 * lib/gl_array_list.c (gl_array_node_set_value): New function.
20784 (gl_array_list_implementation): Update.
20785 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
20786 (gl_carray_list_implementation): Update.
20787 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
20788 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
20789 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
20790 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
20791 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
20792 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
20793 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
20795 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
20796 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
20797 (gl_sublist_list_implementation): Update.
20799 2008-02-10 Bruno Haible <bruno@clisp.org>
20801 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
20802 Needed when ELEMENT is #defined to 'some_type *'.
20804 2008-02-10 Jim Meyering <meyering@redhat.com>
20806 New script and module: useless-if-before-free
20807 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
20808 * build-aux/useless-if-before-free: New file.
20809 * modules/useless-if-before-free: New file.
20811 * build-aux/gitlog-to-changelog: Use committer date, not author date.
20813 xstrtol_error: Fix typo.
20814 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
20815 s/exit_failure/exit_status/.
20817 2008-02-09 Jim Meyering <meyering@redhat.com>
20819 New script and module: gitlog-to-changelog
20820 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
20821 * modules/gitlog-to-changelog: New file.
20822 * build-aux/gitlog-to-changelog: New file.
20824 2008-02-08 Jim Meyering <meyering@redhat.com>
20826 Avoid two "parameter unused" warnings.
20827 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
20830 Use "git COMMAND", not "git-COMMAND".
20831 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
20832 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
20833 * build-aux/git-version-gen: Use "git status", not "git-status".
20835 2008-02-07 Bruno Haible <bruno@clisp.org>
20837 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
20838 Avoids a crash on Windows Vista.
20839 Reported by Adam Strzelecki <ono@java.pl> via
20840 Simon Josefsson <simon@josefsson.org>.
20842 2008-02-06 Bruno Haible <bruno@clisp.org>
20844 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
20845 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
20846 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
20847 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
20848 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20849 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20850 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
20851 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
20852 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20853 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20854 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20855 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20856 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20857 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20858 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20859 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
20861 * tests/test-snprintf-posix.h (test_function): Likewise.
20862 * tests/test-sprintf-posix.h (test_function): Likewise.
20863 * tests/test-vasprintf-posix.c (test_function): Likewise.
20864 * doc/posix-functions/fprintf.texi: Update.
20865 * doc/posix-functions/printf.texi: Update.
20866 * doc/posix-functions/snprintf.texi: Update.
20867 * doc/posix-functions/sprintf.texi: Update.
20868 * doc/posix-functions/vfprintf.texi: Update.
20869 * doc/posix-functions/vprintf.texi: Update.
20870 * doc/posix-functions/vsnprintf.texi: Update.
20871 * doc/posix-functions/vsprintf.texi: Update.
20872 Reported by Peter Fales <psfales@alcatel-lucent.com>.
20874 2008-02-06 Bruno Haible <bruno@clisp.org>
20876 Fix bug introduced on 2008-01-26.
20877 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
20879 2008-02-06 Bruno Haible <bruno@clisp.org>
20881 Fix bug introduced on 2007-06-10.
20882 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
20883 !NEED_PRINTF_FLAG_ZERO.
20885 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
20887 getloadavg: use libperfstat on AIX5
20888 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
20890 2008-02-03 Bruno Haible <bruno@clisp.org>
20892 * lib/diffseq.h: Add comments about required #includes.
20893 Reported by Michael Biggs <gnulib@doubleplum.net>.
20895 2008-02-01 Bruno Haible <bruno@clisp.org>
20897 * users.txt: Add gnuit.
20899 2008-01-31 Bruno Haible <bruno@clisp.org>
20901 * lib/md4.c (set_uint32): Mark as inline.
20902 * lib/md5.c (set_uint32): Likewise.
20903 * lib/sha1.c (set_uint32): Likewise.
20904 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
20905 * m4/md5.m4 (gl_MD5): Likewise.
20906 * m4/sha1.m4 (gl_SHA1): Likewise.
20908 2008-01-31 Jim Meyering <meyering@redhat.com>
20910 Use "sizeof VAR", rather than a literal "4".
20911 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
20912 * lib/md4.c (md4_read_ctx): Likewise.
20913 * lib/sha1.c (sha1_read_ctx): Likewise.
20915 2008-01-31 Simon Josefsson <simon@josefsson.org>
20917 * tests/test-sha1.c: New file, based on test-md5.c.
20919 * modules/crypto/sha1-tests: New file.
20921 2008-01-31 Simon Josefsson <simon@josefsson.org>
20923 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
20925 2008-01-31 Jim Meyering <meyering@redhat.com>
20927 Prefer "sizeof v" over the equivalent "4".
20928 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
20929 * lib/md5.c (set_uint32): Likewise.
20930 * lib/sha1.c (set_uint32): Likewise.
20932 2008-01-31 Simon Josefsson <simon@josefsson.org>
20934 * lib/sha1.c (set_uint32): Mark function as static.
20936 2008-01-31 Simon Josefsson <simon@josefsson.org>
20938 md2: clarify comments to say that alignment is not required.
20939 * lib/md2.h: Remove warning about alignment in comment.
20940 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
20941 never been required.
20943 2008-01-31 Simon Josefsson <simon@josefsson.org>
20945 md4: adapt alignment constraint fix from sha1.
20946 * lib/md4.c (set_uint32): New function, from sha1.c
20947 (md4_read_ctx): Use it.
20948 (md4_finish_ctx): Doc fix.
20949 * lib/md4.h: Doc fix.
20951 2008-01-31 Simon Josefsson <simon@josefsson.org>
20953 md5: adapt alignment constraint fix from sha1.
20954 * lib/md5.c (set_uint32): New function, from sha1.c
20955 (md5_read_ctx): Use it.
20956 (md5_finish_ctx): Doc fix.
20957 * lib/md5.h: Doc fix.
20959 2008-01-30 Peter Palfrader <weasel@debian.org>
20961 sha1: remove the result buffer alignment constraint
20962 * lib/sha1.c (set_uint32): New function.
20963 (sha1_read_ctx): Rewrite to remove the result buffer alignment
20965 (sha1_finish_ctx): Remove comment warning about alignment constraint.
20966 * lib/sha1.h: Likewise.
20968 2008-01-30 Andreas Schwab <schwab@suse.de>
20969 Bruno Haible <bruno@clisp.org>
20971 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
20972 correct definition of LDBL_MIN_EXP.
20974 2008-01-30 Karl Berry <karl@gnu.org>
20976 * config/srclist-update: try to preserve x bit on updates.
20977 * config/srclistvars.sh: update for karl.
20979 2008-01-29 Jim Meyering <meyering@redhat.com>
20981 vasnprintf.c: Avoid warning about unused label
20982 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
20983 "overflow" label definition and associated code with the
20984 same cpp condition that guards the sole use of that label.
20986 2008-01-26 Bruno Haible <bruno@clisp.org>
20988 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
20989 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
20990 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
20991 * lib/isnanl-nolibm.h (isnanl): Likewise.
20992 Reported by Paul Eggert <eggert@cs.ucla.edu>.
20994 2008-01-26 Bruno Haible <bruno@clisp.org>
20996 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
20997 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
20999 2008-01-26 Bruno Haible <bruno@clisp.org>
21001 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
21002 GCC >= 4.0 built-in.
21003 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
21005 2008-01-26 Bruno Haible <bruno@clisp.org>
21007 Rename isnan, applicable to 'double' only, to isnand.
21008 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
21009 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
21010 (configure.ac): Update.
21011 (Include): Replace "isnan.h" with "isnand.h".
21012 * m4/isnand.m4: Renamed from m4/isnan.m4.
21013 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
21014 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
21015 instead of isnan.c.
21016 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
21017 instead of HAVE_ISNAN_IN_LIBC.
21018 (isnand): Renamed from isnan.
21019 * lib/isnand.c: New file.
21020 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
21021 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
21022 (Makefile.am): Update.
21023 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
21024 Include isnand.h instead of isnan.h.
21025 (main): Test isnand instead of isnan.
21026 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
21028 * modules/frexp (Depends-on): Likewise.
21029 * modules/frexp-tests (Depends-on): Likewise.
21030 * modules/frexp-nolibm (Depends-on): Likewise.
21031 * modules/frexp-nolibm-tests (Depends-on): Likewise.
21032 * modules/isfinite (Depends-on): Likewise.
21033 * modules/round-tests (Depends-on): Likewise.
21034 * modules/signbit (Depends-on): Likewise.
21035 * modules/signbit-tests (Depends-on): Likewise.
21036 * modules/snprintf-posix (Depends-on): Likewise.
21037 * modules/sprintf-posix (Depends-on): Likewise.
21038 * modules/trunc-tests (Depends-on): Likewise.
21039 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21040 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21041 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21042 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21043 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21044 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21045 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21046 * modules/vasnprintf-posix (Depends-on): Likewise.
21047 * modules/vasprintf-posix (Depends-on): Likewise.
21048 * modules/vfprintf-posix (Depends-on): Likewise.
21049 * modules/vsnprintf-posix (Depends-on): Likewise.
21050 * modules/vsprintf-posix (Depends-on): Likewise.
21051 * lib/frexp.c: Include isnand.h instead of isnan.h.
21052 (ISNAN): Set to isnand instead of isnan.
21053 * lib/isfinite.c: Include isnand.h instead of isnan.h.
21054 (gl_isfinited): Use isnand instead of isnan.
21055 * lib/signbitd.c: Include isnand.h instead of isnan.h.
21056 (gl_signbitd): Use isnand instead of isnan.
21057 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
21058 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
21059 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
21060 (main): Use isnand instead of isnan.
21061 * tests/test-round1.c: Include isnand.h.
21062 (main): Use isnand instead of isnan.
21063 * tests/test-round2.c: Include isnand.h instead of isnan.h.
21064 (ISNAN): Set to isnand instead of isnan.
21065 * tests/test-trunc1.c: Include isnand.h.
21066 (main): Use isnand instead of isnan.
21067 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
21068 (equal): Use isnand instead of isnan.
21069 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
21071 * NEWS: Mention the change.
21073 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
21074 Bruno Haible <bruno@clisp.org>
21076 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
21077 the GCC builtins for signbits are present and set
21078 REPLACE_SIGNBIT_USING_GCC if so.
21079 * lib/math.in.h (signbit): Define using GCC builtins if
21080 REPLACE_SIGNBIT_USING_GCC is set.
21081 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
21082 REPLACE_SIGNBIT_USING_GCC.
21083 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
21085 2008-01-25 Jim Meyering <meyering@redhat.com>
21087 Prefer <config.h> over "config.h". See autoconf doc for explanation.
21088 * lib/poll.c: Include <config.h>, not "config.h".
21089 * tests/test-getaddrinfo.c: Likewise.
21091 2008-01-25 Simon Josefsson <simon@josefsson.org>
21093 * modules/sockets-tests: New file.
21095 2008-01-24 Simon Josefsson <simon@josefsson.org>
21097 * modules/sockets: New module, can be used to call WSA_Startup and
21098 WSA_Cleanup when needed.
21100 * lib/sockets.h, lib/sockets.c: New files.
21102 * m4/sockets.m4: New file.
21104 * tests/test-sockets.c: New file.
21106 2008-01-19 Bruno Haible <bruno@clisp.org>
21108 * doc/posix-headers: Renamed from doc/headers.
21109 * doc/posix-functions: Renamed from doc/functions.
21110 * doc/gnulib.texi: Update.
21112 2008-01-19 Bruno Haible <bruno@clisp.org>
21114 * doc/glibc-functions/strcasestr.texi: Include contents of
21115 doc/functions/strcasestr.texi, fixing the list of platforms.
21116 * doc/functions/strcasestr.texi: Remove file.
21118 2008-01-19 Bruno Haible <bruno@clisp.org>
21120 * doc/glibc-functions/memmem.texi: Include contents of
21121 doc/functions/memmem.texi.
21122 * doc/functions/memmem.texi: Remove file.
21124 2008-01-18 Bruno Haible <bruno@clisp.org>
21126 * doc/glibc-functions/*.texi: New files.
21127 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
21128 to use the new files.
21130 2008-01-17 Bruno Haible <bruno@clisp.org>
21132 * tests/test-gethostname.c (main): Fix printf statement.
21134 2008-01-17 Simon Josefsson <simon@josefsson.org>
21136 * modules/gethostname-tests: New file.
21138 * tests/test-gethostname.c: New file.
21140 2008-01-17 Simon Josefsson <simon@josefsson.org>
21142 * lib/gethostname.c: Include string.h unconditionally, strncpy is
21143 used by the UNAME case. Reported by Bruno Haible
21146 2008-01-17 Eric Blake <ebb9@byu.net>
21148 Convert c-strcasestr to be more efficient.
21149 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
21150 (Depends-on): Add c-strcase, remove malloca, strnlen.
21151 * tests/test-c-strcasestr.c (main): Enhance test.
21152 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
21154 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
21156 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
21157 Use it in creating po/Makevars.
21159 2008-01-15 Simon Josefsson <simon@josefsson.org>
21161 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
21162 Applications that requires it should initialize libgcrypt
21165 2008-01-16 Simon Josefsson <simon@josefsson.org>
21167 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
21169 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
21171 Fix problem with getdate on mingw32 reported by Simon Josefsson
21172 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
21173 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
21174 tzname", when deciding whether to declare tzname.
21175 * lib/strftime.c (tzname): Likewise.
21177 2008-01-15 Bruno Haible <bruno@clisp.org>
21179 Work around a MacOS X 10.5 bug in frexpl().
21180 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
21181 * doc/functions/frexpl.texi: Document the bug.
21182 Reported by Elias Pipping <pipping@gentoo.org>.
21184 2008-01-14 Eric Blake <ebb9@byu.net>
21186 Touch up previous patch.
21187 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
21188 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
21190 Convert strcasestr module to use Two-Way algorithm.
21191 * modules/strcasestr-simple: New module, based on the old
21192 strcasestr, but with Two-Way rather than KMP.
21193 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
21194 * lib/string.in.h (rpl_strcasestr): Declare.
21195 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
21197 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
21198 * modules/string (Makefile.am): Support strcasestr.
21199 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
21200 * modules/strcasestr-tests (Depends-on): Check for alarm.
21201 * tests/test-strcasestr.c: Augment test.
21202 * lib/str-two-way.h: Clean up stray macro.
21203 * NEWS: Document new module.
21204 * MODULES.html.sh (string handling): Likewise.
21205 * doc/functions/strcasestr.texi: New file.
21206 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
21207 here, since it is not a POSIX function.
21209 2008-01-14 Colin Watson <cjwatson@debian.org>
21210 Bruno Haible <bruno@clisp.org>
21212 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
21213 works fine; if not, set REPLACE_STRSIGNAL.
21214 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
21215 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21217 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
21218 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
21219 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
21221 2008-01-14 Bruno Haible <bruno@clisp.org>
21223 * modules/strsignal (Include): Change to <string.h>.
21225 2008-01-14 Colin Watson <cjwatson@debian.org>
21227 * modules/argp (Notice): Add a notice recommending to change
21229 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
21231 2008-01-13 Colin Watson <cjwatson@debian.org>
21233 * modules/strsignal-tests: New file.
21234 * tests/test-strsignal.c: New file.
21236 * lib/strsignal.c: New file, from glibc with modifications.
21237 * lib/siglist.h: New file, from glibc with modifications.
21238 * lib/string.in.h (strsignal): New declaration.
21239 * m4/strsignal.m4: New file.
21240 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21241 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
21242 * modules/strsignal: New file.
21243 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
21244 HAVE_DECL_STRSIGNAL.
21246 2008-01-13 Bruno Haible <bruno@clisp.org>
21248 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
21249 locale encoding is not ASCII. Needed for OpenBSD 4.0.
21250 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
21251 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21253 2008-01-13 Bruno Haible <bruno@clisp.org>
21255 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
21256 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
21257 * lib/argp.h (__attribute__): Likewise.
21258 * lib/c-stack.c (__attribute__): Likewise.
21259 * lib/error.h (__attribute__): Likewise.
21260 * lib/fts.c (__attribute__): Likewise.
21261 * lib/openat.h (__attribute__): Likewise.
21262 * lib/stdio.in.h (__attribute__): Likewise.
21263 * lib/string.in.h (__attribute__): Likewise.
21264 * lib/utimens.c (__attribute__): Likewise.
21265 * lib/vasnprintf.h (__attribute__): Likewise.
21266 * lib/xalloc.h (__attribute__): Likewise.
21267 * lib/xprintf.h (__attribute__): Likewise.
21268 * lib/xstrtol.h (__attribute__): Likewise.
21269 * lib/xvasprintf.h (__attribute__): Likewise.
21271 2008-01-12 Bruno Haible <bruno@clisp.org>
21273 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
21274 * doc/glibc-headers/a.out.texi: New file.
21275 * doc/glibc-headers/aliases.texi: New file.
21276 * doc/glibc-headers/alloca.texi: New file.
21277 * doc/glibc-headers/ar.texi: New file.
21278 * doc/glibc-headers/argp.texi: New file.
21279 * doc/glibc-headers/argz.texi: New file.
21280 * doc/glibc-headers/byteswap.texi: New file.
21281 * doc/glibc-headers/crypt.texi: New file.
21282 * doc/glibc-headers/endian.texi: New file.
21283 * doc/glibc-headers/envz.texi: New file.
21284 * doc/glibc-headers/err.texi: New file.
21285 * doc/glibc-headers/error.texi: New file.
21286 * doc/glibc-headers/execinfo.texi: New file.
21287 * doc/glibc-headers/fpu_control.texi: New file.
21288 * doc/glibc-headers/fstab.texi: New file.
21289 * doc/glibc-headers/fts.texi: New file.
21290 * doc/glibc-headers/getopt.texi: New file.
21291 * doc/glibc-headers/ieee754.texi: New file.
21292 * doc/glibc-headers/ifaddrs.texi: New file.
21293 * doc/glibc-headers/libintl.texi: New file.
21294 * doc/glibc-headers/mcheck.texi: New file.
21295 * doc/glibc-headers/mntent.texi: New file.
21296 * doc/glibc-headers/obstack.texi: New file.
21297 * doc/glibc-headers/paths.texi: New file.
21298 * doc/glibc-headers/printf.texi: New file.
21299 * doc/glibc-headers/pty.texi: New file.
21300 * doc/glibc-headers/resolv.texi: New file.
21301 * doc/glibc-headers/shadow.texi: New file.
21302 * doc/glibc-headers/sysexits.texi: New file.
21303 * doc/glibc-headers/ttyent.texi: New file.
21305 2008-01-12 Jim Meyering <meyering@redhat.com>
21307 announce-gen: emit Gnulib's git-based version string.
21308 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
21309 New option --gnulib-version=V, where V is expected to be
21310 the output of running git describe in the gnulib directory.
21311 (get_tool_versions): Request feedback on xdelta. I suspect it's
21312 not useful, and plan to stop publishing an xdelta file with each
21315 * build-aux/announce-gen: Also check for lzma-compressed files.
21317 2008-01-11 Bruno Haible <bruno@clisp.org>
21319 * tests/test-memmem.c (main): Increase maximum allowed time.
21320 * tests/test-strstr.c (main): Likewise.
21322 2008-01-11 Bruno Haible <bruno@clisp.org>
21324 * doc/functions/memmem.texi: Add more precisions about platforms.
21325 * doc/functions/strstr.texi: Likewise.
21327 2008-01-10 Eric Blake <ebb9@byu.net>
21329 * m4/strstr.m4: Delete cruft from copy-n-paste.
21330 Reported by Bruno Haible.
21332 2008-01-10 Bruno Haible <bruno@clisp.org>
21334 Make c-strstr rely on strstr.
21335 * lib/c-strstr.c: Don't include str-kmp.h.
21336 (c_strstr): Define in terms of strstr.
21337 * modules/c-strstr (Files): Remove lib/str-kmp.h.
21338 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
21340 2008-01-10 Bruno Haible <bruno@clisp.org>
21342 * doc/gnulib.texi (String Functions in C Locale): New section.
21343 * doc/c-ctype.texi: New file.
21344 * doc/c-strcase.texi: New file.
21345 * doc/c-strcaseeq.texi: New file.
21346 * doc/c-strcasestr.texi: New file.
21347 * doc/c-strstr.texi: New file.
21348 * doc/c-strtod.texi: New file.
21349 * doc/c-strtold.texi: New file.
21351 2008-01-10 Eric Blake <ebb9@byu.net>
21353 * lib/relocatable.h: Fix a comment.
21355 2008-01-10 Eric Blake <ebb9@byu.net>
21357 Share two-way algorithm.
21358 * lib/str-two-way.h: New file, merged from...
21359 * lib/memmem.c: ...here...
21360 * lib/strstr.c: ...and here.
21361 * modules/memmem (Files): Use it.
21362 * modules/strstr (Files): Likewise.
21364 Avoid quadratic strstr implementations.
21365 * lib/strstr.c: New file.
21366 * m4/strstr.m4: Likewise.
21367 * modules/strstr: Likewise.
21368 * modules/strstr-tests: Likewise.
21369 * tests/test-strstr.c: Likewise.
21370 * lib/string.in.h (rpl_strstr): Declare.
21371 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
21372 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
21373 * modules/string (Makefile.am): Likewise.
21374 * MODULES.html.sh (string handling): Mention new module.
21375 * doc/functions/strstr.texi (strstr): Document the bug.
21377 2008-01-10 Bruno Haible <bruno@clisp.org>
21379 * lib/relocatable.h (relocate): State whether result is freshly
21381 * lib/relocatable.c (relocate): Return a freshly allocated string
21382 instead of a pointer to a privately held string.
21383 Reported by Sylvain Beucler <beuc@gnu.org>.
21385 2008-01-10 Colin Watson <cjwatson@debian.org>
21387 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
21388 s/S_ISNLK/S_ISLNK/.
21390 2008-01-09 Bruno Haible <bruno@clisp.org>
21392 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
21394 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
21395 if it's only a guess.
21396 * modules/memmem: Simplify by depending on memmem-simple.
21398 2008-01-09 Bruno Haible <bruno@clisp.org>
21400 Work around OpenBSD 4.0 tdelete() bug.
21401 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
21402 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
21403 macros and don't redefine the enum values.
21404 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
21405 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
21406 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
21408 2008-01-09 Bruno Haible <bruno@clisp.org>
21410 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
21411 (main): Don't perform the tests if setlocale did not install a UTF-8
21412 locale. Needed on OpenBSD 4.0.
21413 * modules/wcwidth-tests (Depends-on): Add localcharset.
21415 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
21417 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
21418 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
21419 * NEWS: announce this.
21420 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
21422 2008-01-09 Simon Josefsson <simon@josefsson.org>
21423 and Eric Blake <ebb9@byu.net>
21425 Add memmem-simple module.
21426 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
21427 (gl_FUNC_MEMMEM): Separate performance from presence checks.
21428 * modules/memmem-simple: New file.
21429 * modules/memmem (Description): Tweak.
21430 * MODULES.html.sh (string handling): Mention new module.
21431 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
21432 addressed by memmem-simple.
21433 * NEWS: Document the difference.
21435 2008-01-09 Eric Blake <ebb9@byu.net>
21437 Give gcc some memmem optimization hints.
21438 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
21439 (strcasestr): Declare as pure.
21440 * modules/memmem (Maintainer): Claim my implementation.
21442 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21444 Support AIX 6.1 and higher.
21445 * build-aux/config.libpath: Likewise.
21446 * build-aux/config.rpath: Likewise.
21448 2008-01-08 Jim Meyering <meyering@redhat.com>
21449 Bruno Haible <bruno@clisp.org>
21451 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
21452 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
21453 Reported by Peter Fales in
21454 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
21456 2008-01-08 Bruno Haible <bruno@clisp.org>
21458 * modules/unictype/category-of (Depends-on): Add
21459 unictype/category-none.
21460 * modules/unictype/category-and-tests (Depends-on): Add
21461 unictype/category-{L,N,Lu,Nd}.
21462 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
21463 * modules/unictype/category-or-tests (Depends-on): Add
21464 unictype/category-{L,N}.
21465 * modules/unictype/category-name-tests (Depends-on): Add
21466 unictype/category-{Z,Nl}.
21467 Reported by Simon Josefsson.
21469 2008-01-08 Bruno Haible <bruno@clisp.org>
21471 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
21473 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
21474 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
21475 Reported by Peter Miller <millerp@canb.auug.org.au>.
21477 2008-01-08 Eric Blake <ebb9@byu.net>
21479 Rewrite memmem to guarantee linear complexity without malloc.
21480 * lib/memmem.c (memmem): Use Two-Way rather than
21481 Knuth-Morris-Pratt, to allow O(1) space usage.
21482 (critical_factorization, two_way_short_needle)
21483 (two_way_long_needle): New functions.
21484 (knuth_morris_pratt): Delete.
21485 * modules/memmem (Depends-on): No longer need malloca or stdbool.
21487 * tests/test-memmem.c (main): Add tests for periodic needle and
21488 sublinear performance.
21489 * doc/functions/memmem.texi (memmem): Document other deficiencies
21490 in cygwin and older glibc.
21492 2008-01-08 Bruno Haible <bruno@clisp.org>
21494 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
21497 2008-01-08 Mike Frysinger <vapier@gentoo.org>
21499 Add a configure time option: --disable-acl.
21500 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
21501 AC_ARG_ENABLE(acl).
21503 2008-01-06 Simon Josefsson <simon@josefsson.org>
21505 * tests/test-localename.c: Don't include obsolete "setenv.h".
21507 * modules/localename-tests (Depends-on): Need unsetenv.
21509 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21511 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
21513 2008-01-06 Colin Watson <cjwatson@debian.org>
21515 * users.txt: Add man-db.
21517 2008-01-07 Bruno Haible <bruno@clisp.org>
21519 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
21520 previous section name.
21522 2008-01-07 Bruno Haible <bruno@clisp.org>
21524 * lib/progname.c (set_program_name): Don't strip off a leading
21525 "lt-" prefix outside a .libs directory.
21526 Suggested by Paul Eggert.
21528 2008-01-01 Sylvain Beucler <beuc@gnu.org>
21529 Bruno Haible <bruno@clisp.org>
21531 Improve memory cleanup in 'relocatable' module.
21532 * lib/relocatable.h (compute_curr_prefix): Change return type to
21534 * lib/relocatable.c (compute_curr_prefix): Change return type to
21535 'char *'. Free curr_installdir after use.
21536 (relocate): Free curr_prefix_better after use.
21537 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
21539 2008-01-01 Bruno Haible <bruno@clisp.org>
21541 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
21542 failure on older glibc systems.
21543 Reported by Peter Fales <psfales@alcatel-lucent.com>.
21545 2008-01-05 Eric Blake <ebb9@byu.net>
21547 Avoid quadratic system memmem.
21548 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
21549 Reported by Ralf Wildenhues.
21551 Fix memmem test for mingw.
21552 * modules/memmem-tests (configure.ac): Check for alarm.
21553 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
21555 * doc/functions/memmem.texi: New file.
21556 * doc/gnulib.texi (Function Substitutes): Add memmem.
21557 Reported by Bruno Haible.
21559 2008-01-04 Bruno Haible <bruno@clisp.org>
21561 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
21562 Require gl_HEADER_STRINGS_H_DEFAULTS, not
21563 gl_HEADER_STRING_H_DEFAULTS.
21565 2008-01-04 Eric Blake <ebb9@byu.net>
21567 Shorten duration of memmem test.
21568 * tests/test-memmem.c (main): Use alarm to declare failure if test
21569 is taking too long.
21570 Reported by Ralf Wildenhues.
21572 2007-12-21 Simon Josefsson <simon@josefsson.org>
21574 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
21575 string, needed by strerror.
21577 2008-01-03 Colin Watson <cjwatson@debian.org>
21578 Bruno Haible <bruno@clisp.org>
21580 * doc/gnulib-tool.texi (Localization): New section.
21582 2008-01-02 Bruno Haible <bruno@clisp.org>
21584 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
21585 variables to 'unsigned char *' type.
21586 Reported by Paul Eggert.
21588 2008-01-02 Jim Meyering <jim@meyering.net>
21590 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
21592 2007-12-31 Jim Meyering <jim@meyering.net>
21594 Avoid use of private FTS type name.
21595 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
21597 2007-12-30 Karl Berry <karl@gnu.org>
21599 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
21600 work around defect in Texinfo and/or the standalone Info browser.
21602 2007-12-30 Bruno Haible <bruno@clisp.org>
21604 Unify 5 copies of the KMP code.
21605 * lib/str-kmp.h: New file.
21606 * lib/c-strcasestr.c: Include str-kmp.h.
21607 (knuth_morris_pratt): Remove function.
21608 (c_strcasestr): Update.
21609 * lib/c-strstr.c: Include str-kmp.h.
21610 (knuth_morris_pratt): Remove function.
21611 (c_strcasestr): Update.
21612 * lib/mbscasestr.c: Include str-kmp.h.
21613 (knuth_morris_pratt_unibyte): Remove function.
21614 * lib/mbsstr.c: Include str-kmp.h.
21615 (knuth_morris_pratt_unibyte): Remove function.
21616 * lib/strcasestr.c: Include str-kmp.h.
21617 (knuth_morris_pratt): Remove function.
21618 (strcasestr): Update.
21619 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
21620 * modules/c-strstr (Files): Likewise.
21621 * modules/mbscasestr (Files): Likewise.
21622 * modules/mbsstr (Files): Likewise.
21623 * modules/strcasestr (Files): Likewise.
21624 Suggested by Paul Eggert.
21626 2007-12-30 Bruno Haible <bruno@clisp.org>
21628 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
21631 2007-12-30 Bruno Haible <bruno@clisp.org>
21633 * lib/xmalloca.h: Include xalloc.h.
21634 (xnmalloca): New macro.
21636 2007-12-30 Bruno Haible <bruno@clisp.org>
21638 * lib/malloca.h (nmalloca): New macro.
21639 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
21640 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
21641 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
21642 knuth_morris_pratt_multibyte): Likewise.
21643 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
21644 knuth_morris_pratt_multibyte): Likewise.
21645 * lib/memmem.c (knuth_morris_pratt): Likewise.
21646 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
21648 2007-12-25 Bruno Haible <bruno@clisp.org>
21650 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
21651 * lib/glob.c: Don't include openat.h.
21652 (link_exists2_p): Add back the code that deals with the
21653 !GLOB_ALTDIRFUNC case.
21654 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
21655 let it do the filename concatenation.
21656 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
21657 * modules/glob (Depends-on): Remove openat.
21659 2007-12-31 Bruno Haible <bruno@clisp.org>
21661 * modules/dirfd (License): Change to LGPLv2+.
21662 Approved by Jim Meyering.
21664 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
21666 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
21667 when multiplying M by sizeof (size_t).
21669 2007-12-10 Martin Lambers <marlam@marlam.de>
21671 Override getpagesize on mingw.
21672 * lib/getpagesize.c: New file.
21673 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
21674 * modules/getpagesize (Files): Add lib/getpagesize.c.
21675 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
21676 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21677 REPLACE_GETPAGESIZE.
21678 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
21680 2007-12-25 Bruno Haible <bruno@clisp.org>
21682 * modules/localcharset (Notice): New field.
21683 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
21684 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
21686 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
21687 Bruno Haible <bruno@clisp.org>
21689 Avoid using the syntax symbol() in formatted documentation.
21690 * MODULES.html.sh (func_module): When replacing symbol() with a
21691 hyperlink, remove the parentheses. Show an error if some remain.
21692 Recognize and render the '...' syntax.
21693 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
21694 Rework. Add paragraph about GCC's inlining.
21695 * doc/alloca.texi: Likewise.
21696 * doc/error.texi: Remove parentheses from symbol reference.
21697 * doc/gnulib-intro.texi: Likewise.
21698 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
21699 * modules/fnmatch (Description): Reword to say "the ... function".
21700 * modules/full-read (Description): Likewise.
21701 * modules/full-write (Description): Likewise.
21702 * modules/safe-read (Description): Likewise.
21703 * modules/safe-write (Description): Likewise.
21704 * modules/strchrnul (Description): Likewise.
21705 * modules/trim (Description): Likewise.
21706 * modules/error (Description): Remove parentheses from symbol
21708 * modules/verror (Description): Likewise.
21709 Reported by Karl Berry.
21711 2007-12-25 Bruno Haible <bruno@clisp.org>
21713 Fixup after 2007-10-16 commit.
21714 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
21716 2007-12-24 Bruno Haible <bruno@clisp.org>
21718 Make --enable-relocatable work with DESTDIR.
21719 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
21720 to compute installdir from destprog.
21721 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
21722 also set the RELOC_DESTDIR variable.
21723 Reported by Левашев Иван <octagram@bluebottle.com>.
21725 2007-12-24 Bruno Haible <bruno@clisp.org>
21727 Fix link error due to xalloc_die().
21728 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
21730 * lib/relocwrapper.c: Update comments.
21731 * build-aux/install-reloc: Remove xreadlink.c from file list.
21732 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
21734 Reported by Левашев Иван <octagram@bluebottle.com>.
21736 2007-12-24 Bruno Haible <bruno@clisp.org>
21738 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
21739 * lib/setenv.h: Remove file.
21740 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
21742 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
21743 (Depends-on): Add stdlib.
21744 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
21746 (Include): Replace setenv.h with <stdlib.h>.
21747 * modules/unsetenv: New file.
21748 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
21749 * lib/unsetenv.c: Include <stdlib.h> first.
21750 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
21751 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
21752 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
21753 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
21754 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
21755 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
21756 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
21757 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
21758 * doc/functions/unsetenv.texi: Update.
21759 * modules/xsetenv (Depends-on): Add unsetenv.
21760 * modules/getdate (Depends-on): Likewise.
21761 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
21762 * lib/xsetenv.c: Don't include setenv.h.
21763 * lib/getdate.y: Likewise.
21764 * lib/relocwrapper.c: Likewise.
21765 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
21766 (Depends-on): Add stdlib.
21767 * NEWS: Mention the changes.
21768 Reported by Левашев Иван <octagram@bluebottle.com>.
21770 2007-12-23 Bruno Haible <bruno@clisp.org>
21772 * lib/memmem.c (memmem): Use lowercase variable names. Tab
21775 2007-12-23 Bruno Haible <bruno@clisp.org>
21777 * lib/c-strcasestr.c: Add more comments.
21778 * lib/c-strstr.c: Likewise.
21779 * lib/mbscasestr.c: Likewise.
21780 * lib/mbsstr.c: Likewise.
21781 * lib/strcasestr.c: Likewise.
21782 * lib/memmem.c: Likewise.
21784 2007-12-23 Bruno Haible <bruno@clisp.org>
21786 * tests/test-memmem.c: Include <string.h> first.
21788 2007-12-22 Bruno Haible <bruno@clisp.org>
21790 * gnulib-tool (func_create_testdir): Change $auxdir while generating
21791 the contents of $testsbase.
21792 Reported by Ralf Wildenhues.
21794 2007-12-22 Bruno Haible <bruno@clisp.org>
21796 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
21797 two variables local_ldadd_before, local_ldadd_last.
21799 2007-12-20 Eric Blake <ebb9@byu.net>
21801 Work around circular library issue when cross-compiling.
21802 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
21803 that progname.o does not need to pull in rpl_memcmp.
21805 2007-12-19 Eric Blake <ebb9@byu.net>
21807 Fix memmem to avoid O(n^2) worst-case complexity.
21808 * lib/memmem.c (knuth_morris_pratt): New function.
21809 (memmem): Use it if first few naive iterations fail.
21810 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
21811 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
21812 * modules/memchr (License): Likewise.
21813 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
21815 * tests/test-memmem.c: Rewrite, borrowing ideas from
21816 test-mbsstr1.c; the old version wouldn't even compile!
21817 * modules/memmem-tests: New file.
21818 * lib/string.in.h (rpl_memmem): Add declaration.
21819 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
21820 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
21823 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
21825 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
21826 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
21827 before any system include files, and undef after them all. This
21828 should fix a problem on VMS reported by John E. Malmberg in
21829 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
21831 2007-12-17 Eric Blake <ebb9@byu.net>
21833 Revert addition of verify, for BSD/OS.
21834 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
21835 can't handle large files, for the sake of obsolete platforms.
21836 * modules/fseeko (Depends-on): Remove verify.
21837 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
21838 * doc/functions/ftello.texi (ftello): Likewise.
21839 * doc/functions/fgetpos.texi (fgetpos): Likewise.
21840 Reported by Larry Jones.
21842 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
21844 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
21845 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
21847 2007-12-17 Jim Meyering <meyering@redhat.com>
21849 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
21850 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
21851 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
21852 * modules/getcwd (Depends-on): Add openat.
21853 Reported by Petr Salinger.
21855 2007-12-17 Bruno Haible <bruno@clisp.org>
21857 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
21858 avoid a segmentation fault of the configure test on x86_64 systems.
21860 2007-12-15 Jim Meyering <meyering@redhat.com>
21862 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
21864 2007-12-13 Eric Blake <ebb9@byu.net>
21866 Another fseek test.
21867 * tests/test-fseek.c (main): Also test ungetc handling.
21868 * tests/test-fseeko.c (main): Likewise.
21869 * modules/fseeko (Depends-on): Add verify.
21870 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
21872 Reported by Larry Jones.
21874 Fix fseeko on mingw.
21875 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
21878 Beef up fseek tests.
21879 * tests/test-fseek.c (main): Also test eof handling.
21880 * tests/test-fseeko.c (main): Likewise.
21881 Reported by Larry Jones.
21883 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
21885 Fix fseeko on BSD-based platforms.
21886 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
21889 2007-12-12 Eric Blake <ebb9@byu.net>
21891 Allow circular dependency of separate libtests.a
21892 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
21895 2007-12-11 Eric Blake <ebb9@byu.net>
21897 Fix bug with -0.0L in previous patch.
21898 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
21899 * tests/test-isnan.c (main): Also test on zeroes.
21900 * tests/test-isnanf.c (main): Likewise.
21901 * tests/test-isnanl.h (main): Likewise.
21903 Detect pseudo-denormals on x86 even when cross-compiling.
21904 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
21905 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
21906 invalid bit patterns that happen to satisfy ==.
21908 Avoid link failures with separate libtests.a.
21909 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
21910 last, to satisfy circular dependencies.
21912 2007-12-11 Eric Blake <ebb9@byu.net>
21913 and Bruno Haible <bruno@clisp.org>
21915 Fix OpenBSD 4.0 <float.h> handling of long double.
21916 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
21917 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
21918 * doc/headers/float.texi (float.h): Document OpenBSD bug.
21920 2007-12-11 Jim Meyering <meyering@redhat.com>
21922 * users.txt: Add libvirt.
21924 Support versions of autoconf prior to 2.59c.
21925 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
21926 if it is not already defined.
21928 2007-12-09 Bruno Haible <bruno@clisp.org>
21930 Let 'gnulib-tool --import' collect sources needed for the tests in
21931 tests/ rather than in lib/.
21932 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
21933 argument. If true, add rules to generate libtests.a, and put libtests.a
21934 into $(LDADD). Consider source files in subdirectories and set
21936 (func_emit_initmacro_start, func_emit_initmacro_end,
21937 func_emit_initmacro_done): Pass all arguments explicitly.
21938 (func_import): Determine two module lists main_modules,
21939 testsrelated_modules. Determine use_libtests. Determine two variables
21940 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
21941 instead of just sed_transform_lib_file. Determine two variables
21942 main_files and testsrelated_files. Compute 'files' as the union of
21943 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
21944 func_add_or_update. In the generated gnulib-comp.m4, collect the
21945 object files for tests/ in different variables than those for lib/.
21946 Substitute LIBTESTS_LIBDEPS.
21947 (func_create_testdir): Combine the uses_subdirs results from
21948 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
21950 2007-12-09 Bruno Haible <bruno@clisp.org>
21952 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
21953 the build-aux directory.
21955 2007-12-09 Bruno Haible <bruno@clisp.org>
21957 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
21958 introduced on 2006-09-09.
21960 2007-12-07 Jim Meyering <meyering@redhat.com>
21962 Let these macros work also with autoconf-2.59.
21963 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
21964 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
21965 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
21967 2007-12-06 Jim Meyering <meyering@redhat.com>
21969 Avoid a configure-time syntax error in gl_FUNC_ACL.
21970 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
21971 function in each branch, before testing the cache variable.
21973 2007-12-04 Eric Blake <ebb9@byu.net>
21975 Make scripts executable.
21976 * build-aux/config.guess: Add execute permissions.
21977 * build-aux/config.sub: Likewise.
21978 * build-aux/gendocs.sh: Likewise.
21980 Fix frexp on mingw.
21981 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
21983 * doc/functions/frexp.texi (frexp): Document the bug.
21985 Make cygwin fseeko check more reliable.
21986 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
21987 version numbers, rather than unrelated feature check.
21988 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
21989 * doc/functions/ftello.texi (ftello): Likewise.
21990 Reported by Bruno Haible.
21992 * m4/strerror.m4: Bump version number.
21994 2007-12-03 Bruno Haible <bruno@clisp.org>
21996 * doc/functions/mprotect.texi: Mention the mingw problem.
21998 2007-12-03 Eric Blake <ebb9@byu.net>
22000 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
22001 REPLACE_STRERROR is initialized before this macro.
22003 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
22005 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
22006 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
22007 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
22008 put -lsec in even for programs other than 'ls'. This fixes a problem
22009 for gettext reported by Bruno Haible in
22010 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
22011 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
22012 Add support for Solaris 10. This isn't efficient, but should get the
22015 2007-12-03 James Youngman <jay@gnu.org>
22017 * doc/regexprops-generic.texi: change "an close-group" to "a
22018 close-group" and "illegal" to "not allowed".
22020 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22022 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
22023 pr_byname.h. Needed for the rare case when the maintainer has done
22024 "make maintainer-clean" in the source directory and then attempts a
22025 build outside the source directory.
22026 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
22029 2007-12-02 Martin Lambers <marlam@marlam.de>
22030 Bruno Haible <bruno@clisp.org>
22032 * lib/getpagesize.h: Remove file.
22033 * lib/unistd.in.h: Include declaration of getpagesize here.
22034 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
22035 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
22037 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
22038 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
22039 * modules/getpagesize (Files): Remove lib/getpagesize.h.
22040 (Depends-on): Add unistd.
22041 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
22042 (Include): Use <unistd.h> instead of getpagesize.h.
22043 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
22044 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
22045 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
22046 gl_GETPAGESIZE invocation, already handled by module dependency.
22047 * lib/pagealign_alloc.c: Don't include getpagesize.h.
22049 2007-12-02 Bruno Haible <bruno@clisp.org>
22051 * modules/strings-tests: New file.
22052 * tests/test-strings.c: New file.
22054 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
22055 * lib/strings.in.h: New file.
22056 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
22057 * m4/strings_h.m4: New file.
22058 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
22059 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
22060 * modules/strings: New file.
22061 * modules/string (Makefile.am): Update.
22062 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
22063 Reported by Karl Berry.
22065 2007-12-01 Eric Blake <ebb9@byu.net>
22067 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
22068 accomodate fix in cygwin 1.5.25.
22070 2007-12-01 Jim Meyering <meyering@redhat.com>
22072 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
22073 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
22074 that would inhibit utf8-optimization of a regexp containing line-
22075 or buffer-anchors, e.g., `^', `$'.
22077 2007-11-30 Bruno Haible <bruno@clisp.org>
22079 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
22080 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
22081 glthread_recursive_lock_init.
22082 * lib/lock.c (glthread_recursive_lock_init)
22083 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
22084 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22086 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
22088 New function qset_acl, like set_acl but with syscall semantics.
22089 * lib/acl.h (qset_acl): New decl.
22090 * lib/acl.c (qset_acl): New function.
22091 (set_acl): Use new function. Use more-consistent diagnostics.
22093 2007-11-28 Jim Meyering <meyering@redhat.com>
22095 * modules/physmem (License): Change from GPL to LGPLv2+.
22097 2007-11-26 Bruno Haible <bruno@clisp.org>
22099 * lib/vasnprintf.c (decode_long_double): Don't abort if the
22100 'long double' type has excess precision.
22101 Reported by Jim Meyering in
22102 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
22104 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22106 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
22107 Sync from <http://gnu.org/licenses>.
22108 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
22109 with license text from same location.
22110 * doc/maintain.texi, doc/standards.texi: Sync from
22111 <http://savannah.gnu.org/projects/gnustandards>.
22113 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
22114 and Jim Meyering <meyering@redhat.com>
22116 Adjust getdate' grammar to accept a slightly more regular language.
22117 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
22118 Before, the former was rejected.
22119 * lib/getdate.y (digits_to_date_time): New function, factored
22121 (number): ...here. Just call digits_to_date_time.
22122 (hybrid): New non-terminal to handle an <unsigned number,
22123 signed relative offset> sequence consistently.
22125 2007-11-18 Jim Meyering <meyering@redhat.com>
22127 Pull my changes from coreutils:
22128 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
22129 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
22130 use of $gnulib_tool_option_extras, so that it's separated from the
22131 preceding argument.
22133 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
22134 * build-aux/bootstrap (cp_mark_as_generated): Create any required
22135 parent destination directories before copying a file into place.
22137 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
22139 bootstrap: work also with 4-argument variant of AC_INIT
22140 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
22142 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
22144 Port test-getaddrinfo to Solaris.
22145 Problem reported by Bruno Haible in
22146 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
22147 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
22148 explanation of setting 'hints'.
22149 Don't reject an implementation merely because it returns EAI_SERVICE.
22150 (EAI_SERVICE): Define to 0 if not defined.
22152 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
22154 The license of gnu-make and posix-shell is now "GPLed build tool".
22155 * modules/gnu-make (License): Likewise.
22156 * modules/posix-shell (License): Likewise.
22158 New module posix-shell, for determining a POSIX shell
22159 or perhaps something that is close enough to a POSIX shell.
22160 * m4/posix-shell.m4: New file.
22161 * modules/posix-shell: New file.
22163 * MODULES.html.sh: Mention new module.
22165 New module gnu-make, for determining whether we're using GNU Make.
22166 * m4/gnu-make.m4: New file.
22167 * modules/gnu-make: New file.
22168 * MODULES.html.sh: Mention new module.
22170 2007-11-14 Jim Meyering <meyering@redhat.com>
22172 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
22173 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
22174 use this macro to create a function _definition_.
22175 Remove useless "#undef ARGMATCH_DIE".
22177 2007-11-14 Bruno Haible <bruno@clisp.org>
22179 * lib/config.charset: Update for OpenBSD 4.1.
22180 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
22182 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
22184 Document 64-bit #if problems in stdint.texi.
22185 * doc/headers/stdint.texi (stdint.h): Mention problems with
22186 64-bit-#if, and how to work around them.
22188 Don't insist on 'long long int' support in the preprocessor. It
22189 breaks too many things. For example, PRIdMAX still uses a 'long
22190 long int' format with the latest Sun compiler, even though
22191 HAVE_LONG_LONG_INT isn't defined due to that compiler's
22192 preprocessor problem. This causes the latest coreutils to dump
22193 core on Solaris 10 sparc with the Sun C compiler.
22194 Instead, fix the 2007-10-16 problem in a different way, by evaluating
22195 the troublesome expressions at configure-time, not at #if-time.
22196 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
22198 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
22199 compile-time C checks, done at 'configure'-time.
22200 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
22201 * modules/inttypes (Makefile): Substitute the new symbols that
22202 gl_INTTYPES_H now generates.
22203 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
22205 2007-11-12 Bruno Haible <bruno@clisp.org>
22207 Tests for Unicode character classification functions.
22209 * modules/unictype/bidicategory-byname-tests: New file.
22210 * modules/unictype/bidicategory-name-tests: New file.
22211 * modules/unictype/bidicategory-of-tests: New file.
22212 * modules/unictype/bidicategory-test-tests: New file.
22213 * modules/unictype/block-list-tests: New file.
22214 * modules/unictype/block-of-tests: New file.
22215 * modules/unictype/block-test-tests: New file.
22216 * modules/unictype/category-C-tests: New file.
22217 * modules/unictype/category-Cc-tests: New file.
22218 * modules/unictype/category-Cf-tests: New file.
22219 * modules/unictype/category-Cn-tests: New file.
22220 * modules/unictype/category-Co-tests: New file.
22221 * modules/unictype/category-Cs-tests: New file.
22222 * modules/unictype/category-L-tests: New file.
22223 * modules/unictype/category-Ll-tests: New file.
22224 * modules/unictype/category-Lm-tests: New file.
22225 * modules/unictype/category-Lo-tests: New file.
22226 * modules/unictype/category-Lt-tests: New file.
22227 * modules/unictype/category-Lu-tests: New file.
22228 * modules/unictype/category-M-tests: New file.
22229 * modules/unictype/category-Mc-tests: New file.
22230 * modules/unictype/category-Me-tests: New file.
22231 * modules/unictype/category-Mn-tests: New file.
22232 * modules/unictype/category-N-tests: New file.
22233 * modules/unictype/category-Nd-tests: New file.
22234 * modules/unictype/category-Nl-tests: New file.
22235 * modules/unictype/category-No-tests: New file.
22236 * modules/unictype/category-P-tests: New file.
22237 * modules/unictype/category-Pc-tests: New file.
22238 * modules/unictype/category-Pd-tests: New file.
22239 * modules/unictype/category-Pe-tests: New file.
22240 * modules/unictype/category-Pf-tests: New file.
22241 * modules/unictype/category-Pi-tests: New file.
22242 * modules/unictype/category-Po-tests: New file.
22243 * modules/unictype/category-Ps-tests: New file.
22244 * modules/unictype/category-S-tests: New file.
22245 * modules/unictype/category-Sc-tests: New file.
22246 * modules/unictype/category-Sk-tests: New file.
22247 * modules/unictype/category-Sm-tests: New file.
22248 * modules/unictype/category-So-tests: New file.
22249 * modules/unictype/category-Z-tests: New file.
22250 * modules/unictype/category-Zl-tests: New file.
22251 * modules/unictype/category-Zp-tests: New file.
22252 * modules/unictype/category-Zs-tests: New file.
22253 * modules/unictype/category-and-not-tests: New file.
22254 * modules/unictype/category-and-tests: New file.
22255 * modules/unictype/category-byname-tests: New file.
22256 * modules/unictype/category-name-tests: New file.
22257 * modules/unictype/category-none-tests: New file.
22258 * modules/unictype/category-of-tests: New file.
22259 * modules/unictype/category-or-tests: New file.
22260 * modules/unictype/category-test-withtable-tests: New file.
22261 * modules/unictype/combining-class-tests: New file.
22262 * modules/unictype/ctype-alnum-tests: New file.
22263 * modules/unictype/ctype-alpha-tests: New file.
22264 * modules/unictype/ctype-blank-tests: New file.
22265 * modules/unictype/ctype-cntrl-tests: New file.
22266 * modules/unictype/ctype-digit-tests: New file.
22267 * modules/unictype/ctype-graph-tests: New file.
22268 * modules/unictype/ctype-lower-tests: New file.
22269 * modules/unictype/ctype-print-tests: New file.
22270 * modules/unictype/ctype-punct-tests: New file.
22271 * modules/unictype/ctype-space-tests: New file.
22272 * modules/unictype/ctype-upper-tests: New file.
22273 * modules/unictype/ctype-xdigit-tests: New file.
22274 * modules/unictype/decimal-digit-tests: New file.
22275 * modules/unictype/digit-tests: New file.
22276 * modules/unictype/mirror-tests: New file.
22277 * modules/unictype/numeric-tests: New file.
22278 * modules/unictype/property-alphabetic-tests: New file.
22279 * modules/unictype/property-ascii-hex-digit-tests: New file.
22280 * modules/unictype/property-bidi-arabic-digit-tests: New file.
22281 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
22282 * modules/unictype/property-bidi-block-separator-tests: New file.
22283 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
22284 * modules/unictype/property-bidi-common-separator-tests: New file.
22285 * modules/unictype/property-bidi-control-tests: New file.
22286 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
22287 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
22288 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
22289 * modules/unictype/property-bidi-european-digit-tests: New file.
22290 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
22291 * modules/unictype/property-bidi-left-to-right-tests: New file.
22292 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
22293 * modules/unictype/property-bidi-other-neutral-tests: New file.
22294 * modules/unictype/property-bidi-pdf-tests: New file.
22295 * modules/unictype/property-bidi-segment-separator-tests: New file.
22296 * modules/unictype/property-bidi-whitespace-tests: New file.
22297 * modules/unictype/property-byname-tests: New file.
22298 * modules/unictype/property-combining-tests: New file.
22299 * modules/unictype/property-composite-tests: New file.
22300 * modules/unictype/property-currency-symbol-tests: New file.
22301 * modules/unictype/property-dash-tests: New file.
22302 * modules/unictype/property-decimal-digit-tests: New file.
22303 * modules/unictype/property-default-ignorable-code-point-tests: New file.
22304 * modules/unictype/property-deprecated-tests: New file.
22305 * modules/unictype/property-diacritic-tests: New file.
22306 * modules/unictype/property-extender-tests: New file.
22307 * modules/unictype/property-format-control-tests: New file.
22308 * modules/unictype/property-grapheme-base-tests: New file.
22309 * modules/unictype/property-grapheme-extend-tests: New file.
22310 * modules/unictype/property-grapheme-link-tests: New file.
22311 * modules/unictype/property-hex-digit-tests: New file.
22312 * modules/unictype/property-hyphen-tests: New file.
22313 * modules/unictype/property-id-continue-tests: New file.
22314 * modules/unictype/property-id-start-tests: New file.
22315 * modules/unictype/property-ideographic-tests: New file.
22316 * modules/unictype/property-ids-binary-operator-tests: New file.
22317 * modules/unictype/property-ids-trinary-operator-tests: New file.
22318 * modules/unictype/property-ignorable-control-tests: New file.
22319 * modules/unictype/property-iso-control-tests: New file.
22320 * modules/unictype/property-join-control-tests: New file.
22321 * modules/unictype/property-left-of-pair-tests: New file.
22322 * modules/unictype/property-line-separator-tests: New file.
22323 * modules/unictype/property-logical-order-exception-tests: New file.
22324 * modules/unictype/property-lowercase-tests: New file.
22325 * modules/unictype/property-math-tests: New file.
22326 * modules/unictype/property-non-break-tests: New file.
22327 * modules/unictype/property-not-a-character-tests: New file.
22328 * modules/unictype/property-numeric-tests: New file.
22329 * modules/unictype/property-other-alphabetic-tests: New file.
22330 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
22331 * modules/unictype/property-other-grapheme-extend-tests: New file.
22332 * modules/unictype/property-other-id-continue-tests: New file.
22333 * modules/unictype/property-other-id-start-tests: New file.
22334 * modules/unictype/property-other-lowercase-tests: New file.
22335 * modules/unictype/property-other-math-tests: New file.
22336 * modules/unictype/property-other-uppercase-tests: New file.
22337 * modules/unictype/property-paired-punctuation-tests: New file.
22338 * modules/unictype/property-paragraph-separator-tests: New file.
22339 * modules/unictype/property-pattern-syntax-tests: New file.
22340 * modules/unictype/property-pattern-white-space-tests: New file.
22341 * modules/unictype/property-private-use-tests: New file.
22342 * modules/unictype/property-punctuation-tests: New file.
22343 * modules/unictype/property-quotation-mark-tests: New file.
22344 * modules/unictype/property-radical-tests: New file.
22345 * modules/unictype/property-sentence-terminal-tests: New file.
22346 * modules/unictype/property-soft-dotted-tests: New file.
22347 * modules/unictype/property-space-tests: New file.
22348 * modules/unictype/property-terminal-punctuation-tests: New file.
22349 * modules/unictype/property-test-tests: New file.
22350 * modules/unictype/property-titlecase-tests: New file.
22351 * modules/unictype/property-unassigned-code-value-tests: New file.
22352 * modules/unictype/property-unified-ideograph-tests: New file.
22353 * modules/unictype/property-uppercase-tests: New file.
22354 * modules/unictype/property-variation-selector-tests: New file.
22355 * modules/unictype/property-white-space-tests: New file.
22356 * modules/unictype/property-xid-continue-tests: New file.
22357 * modules/unictype/property-xid-start-tests: New file.
22358 * modules/unictype/property-zero-width-tests: New file.
22359 * modules/unictype/scripts-tests: New file.
22360 * modules/unictype/syntax-c-ident-tests: New file.
22361 * modules/unictype/syntax-c-whitespace-tests: New file.
22362 * modules/unictype/syntax-java-ident-tests: New file.
22363 * modules/unictype/syntax-java-whitespace-tests: New file.
22364 * tests/unictype/test-bidi_byname.c: New file.
22365 * tests/unictype/test-bidi_name.c: New file.
22366 * tests/unictype/test-bidi_of.c: New file.
22367 * tests/unictype/test-bidi_test.c: New file.
22368 * tests/unictype/test-block_list.c: New file.
22369 * tests/unictype/test-block_of.c: New file.
22370 * tests/unictype/test-block_test.c: New file.
22371 * tests/unictype/test-categ_and.c: New file.
22372 * tests/unictype/test-categ_and_not.c: New file.
22373 * tests/unictype/test-categ_byname.c: New file.
22374 * tests/unictype/test-categ_name.c: New file.
22375 * tests/unictype/test-categ_none.c: New file.
22376 * tests/unictype/test-categ_of.c: New file.
22377 * tests/unictype/test-categ_or.c: New file.
22378 * tests/unictype/test-categ_test_withtable.c: New file.
22379 * tests/unictype/test-combining.c: New file.
22380 * tests/unictype/test-decdigit.c: New file.
22381 * tests/unictype/test-digit.c: New file.
22382 * tests/unictype/test-mirror.c: New file.
22383 * tests/unictype/test-numeric.c: New file.
22384 * tests/unictype/test-pr_byname.c: New file.
22385 * tests/unictype/test-pr_test.c: New file.
22386 * tests/unictype/test-predicate-part1.h: New file.
22387 * tests/unictype/test-predicate-part2.h: New file.
22388 * tests/unictype/test-scripts.c: New file.
22389 * tests/unictype/test-sy_c_ident.c: New file.
22390 * tests/unictype/test-sy_java_ident.c: New file.
22392 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
22394 * tests/unictype/test-categ_Cc.c: Likewise.
22395 * tests/unictype/test-categ_Cf.c: Likewise.
22396 * tests/unictype/test-categ_Cn.c: Likewise.
22397 * tests/unictype/test-categ_Co.c: Likewise.
22398 * tests/unictype/test-categ_Cs.c: Likewise.
22399 * tests/unictype/test-categ_L.c: Likewise.
22400 * tests/unictype/test-categ_Ll.c: Likewise.
22401 * tests/unictype/test-categ_Lm.c: Likewise.
22402 * tests/unictype/test-categ_Lo.c: Likewise.
22403 * tests/unictype/test-categ_Lt.c: Likewise.
22404 * tests/unictype/test-categ_Lu.c: Likewise.
22405 * tests/unictype/test-categ_M.c: Likewise.
22406 * tests/unictype/test-categ_Mc.c: Likewise.
22407 * tests/unictype/test-categ_Me.c: Likewise.
22408 * tests/unictype/test-categ_Mn.c: Likewise.
22409 * tests/unictype/test-categ_N.c: Likewise.
22410 * tests/unictype/test-categ_Nd.c: Likewise.
22411 * tests/unictype/test-categ_Nl.c: Likewise.
22412 * tests/unictype/test-categ_No.c: Likewise.
22413 * tests/unictype/test-categ_P.c: Likewise.
22414 * tests/unictype/test-categ_Pc.c: Likewise.
22415 * tests/unictype/test-categ_Pd.c: Likewise.
22416 * tests/unictype/test-categ_Pe.c: Likewise.
22417 * tests/unictype/test-categ_Pf.c: Likewise.
22418 * tests/unictype/test-categ_Pi.c: Likewise.
22419 * tests/unictype/test-categ_Po.c: Likewise.
22420 * tests/unictype/test-categ_Ps.c: Likewise.
22421 * tests/unictype/test-categ_S.c: Likewise.
22422 * tests/unictype/test-categ_Sc.c: Likewise.
22423 * tests/unictype/test-categ_Sk.c: Likewise.
22424 * tests/unictype/test-categ_Sm.c: Likewise.
22425 * tests/unictype/test-categ_So.c: Likewise.
22426 * tests/unictype/test-categ_Z.c: Likewise.
22427 * tests/unictype/test-categ_Zl.c: Likewise.
22428 * tests/unictype/test-categ_Zp.c: Likewise.
22429 * tests/unictype/test-categ_Zs.c: Likewise.
22430 * tests/unictype/test-ctype_alnum.c: Likewise.
22431 * tests/unictype/test-ctype_alpha.c: Likewise.
22432 * tests/unictype/test-ctype_blank.c: Likewise.
22433 * tests/unictype/test-ctype_cntrl.c: Likewise.
22434 * tests/unictype/test-ctype_digit.c: Likewise.
22435 * tests/unictype/test-ctype_graph.c: Likewise.
22436 * tests/unictype/test-ctype_lower.c: Likewise.
22437 * tests/unictype/test-ctype_print.c: Likewise.
22438 * tests/unictype/test-ctype_punct.c: Likewise.
22439 * tests/unictype/test-ctype_space.c: Likewise.
22440 * tests/unictype/test-ctype_upper.c: Likewise.
22441 * tests/unictype/test-ctype_xdigit.c: Likewise.
22442 * tests/unictype/test-decdigit.h: Likewise.
22443 * tests/unictype/test-digit.h: Likewise.
22444 * tests/unictype/test-numeric.h: Likewise.
22445 * tests/unictype/test-pr_alphabetic.c: Likewise.
22446 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
22447 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22448 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
22449 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
22450 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
22451 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
22452 * tests/unictype/test-pr_bidi_control.c: Likewise.
22453 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
22454 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
22455 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22456 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22457 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22458 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22459 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22460 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22461 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
22462 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
22463 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
22464 * tests/unictype/test-pr_combining.c: Likewise.
22465 * tests/unictype/test-pr_composite.c: Likewise.
22466 * tests/unictype/test-pr_currency_symbol.c: Likewise.
22467 * tests/unictype/test-pr_dash.c: Likewise.
22468 * tests/unictype/test-pr_decimal_digit.c: Likewise.
22469 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
22470 * tests/unictype/test-pr_deprecated.c: Likewise.
22471 * tests/unictype/test-pr_diacritic.c: Likewise.
22472 * tests/unictype/test-pr_extender.c: Likewise.
22473 * tests/unictype/test-pr_format_control.c: Likewise.
22474 * tests/unictype/test-pr_grapheme_base.c: Likewise.
22475 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22476 * tests/unictype/test-pr_grapheme_link.c: Likewise.
22477 * tests/unictype/test-pr_hex_digit.c: Likewise.
22478 * tests/unictype/test-pr_hyphen.c: Likewise.
22479 * tests/unictype/test-pr_id_continue.c: Likewise.
22480 * tests/unictype/test-pr_id_start.c: Likewise.
22481 * tests/unictype/test-pr_ideographic.c: Likewise.
22482 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
22483 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
22484 * tests/unictype/test-pr_ignorable_control.c: Likewise.
22485 * tests/unictype/test-pr_iso_control.c: Likewise.
22486 * tests/unictype/test-pr_join_control.c: Likewise.
22487 * tests/unictype/test-pr_left_of_pair.c: Likewise.
22488 * tests/unictype/test-pr_line_separator.c: Likewise.
22489 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22490 * tests/unictype/test-pr_lowercase.c: Likewise.
22491 * tests/unictype/test-pr_math.c: Likewise.
22492 * tests/unictype/test-pr_non_break.c: Likewise.
22493 * tests/unictype/test-pr_not_a_character.c: Likewise.
22494 * tests/unictype/test-pr_numeric.c: Likewise.
22495 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22496 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
22497 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
22498 * tests/unictype/test-pr_other_id_continue.c: Likewise.
22499 * tests/unictype/test-pr_other_id_start.c: Likewise.
22500 * tests/unictype/test-pr_other_lowercase.c: Likewise.
22501 * tests/unictype/test-pr_other_math.c: Likewise.
22502 * tests/unictype/test-pr_other_uppercase.c: Likewise.
22503 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
22504 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
22505 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
22506 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
22507 * tests/unictype/test-pr_private_use.c: Likewise.
22508 * tests/unictype/test-pr_punctuation.c: Likewise.
22509 * tests/unictype/test-pr_quotation_mark.c: Likewise.
22510 * tests/unictype/test-pr_radical.c: Likewise.
22511 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22512 * tests/unictype/test-pr_soft_dotted.c: Likewise.
22513 * tests/unictype/test-pr_space.c: Likewise.
22514 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22515 * tests/unictype/test-pr_titlecase.c: Likewise.
22516 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22517 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22518 * tests/unictype/test-pr_uppercase.c: Likewise.
22519 * tests/unictype/test-pr_variation_selector.c: Likewise.
22520 * tests/unictype/test-pr_white_space.c: Likewise.
22521 * tests/unictype/test-pr_xid_continue.c: Likewise.
22522 * tests/unictype/test-pr_xid_start.c: Likewise.
22523 * tests/unictype/test-pr_zero_width.c: Likewise.
22524 * tests/unictype/test-sy_c_whitespace.c: Likewise.
22525 * tests/unictype/test-sy_java_whitespace.c: Likewise.
22527 2007-11-12 Bruno Haible <bruno@clisp.org>
22529 Unicode character classification functions.
22530 * lib/unictype.h: New file.
22531 * modules/unictype/base: New file.
22532 * modules/unictype/category-L: New file.
22533 * modules/unictype/category-Lu: New file.
22534 * modules/unictype/category-Ll: New file.
22535 * modules/unictype/category-Lt: New file.
22536 * modules/unictype/category-Lm: New file.
22537 * modules/unictype/category-Lo: New file.
22538 * modules/unictype/category-M: New file.
22539 * modules/unictype/category-Mn: New file.
22540 * modules/unictype/category-Mc: New file.
22541 * modules/unictype/category-Me: New file.
22542 * modules/unictype/category-N: New file.
22543 * modules/unictype/category-Nd: New file.
22544 * modules/unictype/category-Nl: New file.
22545 * modules/unictype/category-No: New file.
22546 * modules/unictype/category-P: New file.
22547 * modules/unictype/category-Pc: New file.
22548 * modules/unictype/category-Pd: New file.
22549 * modules/unictype/category-Ps: New file.
22550 * modules/unictype/category-Pe: New file.
22551 * modules/unictype/category-Pi: New file.
22552 * modules/unictype/category-Pf: New file.
22553 * modules/unictype/category-Po: New file.
22554 * modules/unictype/category-S: New file.
22555 * modules/unictype/category-Sm: New file.
22556 * modules/unictype/category-Sc: New file.
22557 * modules/unictype/category-Sk: New file.
22558 * modules/unictype/category-So: New file.
22559 * modules/unictype/category-Z: New file.
22560 * modules/unictype/category-Zs: New file.
22561 * modules/unictype/category-Zl: New file.
22562 * modules/unictype/category-Zp: New file.
22563 * modules/unictype/category-C: New file.
22564 * modules/unictype/category-Cc: New file.
22565 * modules/unictype/category-Cf: New file.
22566 * modules/unictype/category-Cs: New file.
22567 * modules/unictype/category-Co: New file.
22568 * modules/unictype/category-Cn: New file.
22569 * modules/unictype/category-or: New file.
22570 * modules/unictype/category-of: New file.
22571 * modules/unictype/category-test: New file.
22572 * modules/unictype/category-test-withtable: New file.
22573 * modules/unictype/category-byname: New file.
22574 * modules/unictype/category-none: New file.
22575 * modules/unictype/category-and: New file.
22576 * modules/unictype/category-and-not: New file.
22577 * modules/unictype/category-name: New file.
22578 * modules/unictype/combining-class: New file.
22579 * modules/unictype/category-all: New file.
22580 * modules/unictype/bidicategory-all: New file.
22581 * modules/unictype/bidicategory-byname: New file.
22582 * modules/unictype/bidicategory-name: New file.
22583 * modules/unictype/bidicategory-of: New file.
22584 * modules/unictype/bidicategory-test: New file.
22585 * modules/unictype/decimal-digit: New file.
22586 * modules/unictype/digit: New file.
22587 * modules/unictype/numeric: New file.
22588 * modules/unictype/mirror: New file.
22589 * modules/unictype/property-white-space: New file.
22590 * modules/unictype/property-alphabetic: New file.
22591 * modules/unictype/property-other-alphabetic: New file.
22592 * modules/unictype/property-not-a-character: New file.
22593 * modules/unictype/property-default-ignorable-code-point: New file.
22594 * modules/unictype/property-other-default-ignorable-code-point: New
22596 * modules/unictype/property-deprecated: New file.
22597 * modules/unictype/property-logical-order-exception: New file.
22598 * modules/unictype/property-variation-selector: New file.
22599 * modules/unictype/property-private-use: New file.
22600 * modules/unictype/property-unassigned-code-value: New file.
22601 * modules/unictype/property-uppercase: New file.
22602 * modules/unictype/property-other-uppercase: New file.
22603 * modules/unictype/property-lowercase: New file.
22604 * modules/unictype/property-other-lowercase: New file.
22605 * modules/unictype/property-titlecase: New file.
22606 * modules/unictype/property-soft-dotted: New file.
22607 * modules/unictype/property-id-start: New file.
22608 * modules/unictype/property-other-id-start: New file.
22609 * modules/unictype/property-id-continue: New file.
22610 * modules/unictype/property-other-id-continue: New file.
22611 * modules/unictype/property-xid-start: New file.
22612 * modules/unictype/property-xid-continue: New file.
22613 * modules/unictype/property-pattern-white-space: New file.
22614 * modules/unictype/property-pattern-syntax: New file.
22615 * modules/unictype/property-join-control: New file.
22616 * modules/unictype/property-grapheme-base: New file.
22617 * modules/unictype/property-grapheme-extend: New file.
22618 * modules/unictype/property-other-grapheme-extend: New file.
22619 * modules/unictype/property-grapheme-link: New file.
22620 * modules/unictype/property-bidi-control: New file.
22621 * modules/unictype/property-bidi-left-to-right: New file.
22622 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
22623 * modules/unictype/property-bidi-arabic-right-to-left: New file.
22624 * modules/unictype/property-bidi-european-digit: New file.
22625 * modules/unictype/property-bidi-eur-num-separator: New file.
22626 * modules/unictype/property-bidi-eur-num-terminator: New file.
22627 * modules/unictype/property-bidi-arabic-digit: New file.
22628 * modules/unictype/property-bidi-common-separator: New file.
22629 * modules/unictype/property-bidi-block-separator: New file.
22630 * modules/unictype/property-bidi-segment-separator: New file.
22631 * modules/unictype/property-bidi-whitespace: New file.
22632 * modules/unictype/property-bidi-non-spacing-mark: New file.
22633 * modules/unictype/property-bidi-boundary-neutral: New file.
22634 * modules/unictype/property-bidi-pdf: New file.
22635 * modules/unictype/property-bidi-embedding-or-override: New file.
22636 * modules/unictype/property-bidi-other-neutral: New file.
22637 * modules/unictype/property-hex-digit: New file.
22638 * modules/unictype/property-ascii-hex-digit: New file.
22639 * modules/unictype/property-ideographic: New file.
22640 * modules/unictype/property-unified-ideograph: New file.
22641 * modules/unictype/property-radical: New file.
22642 * modules/unictype/property-ids-binary-operator: New file.
22643 * modules/unictype/property-ids-trinary-operator: New file.
22644 * modules/unictype/property-zero-width: New file.
22645 * modules/unictype/property-space: New file.
22646 * modules/unictype/property-non-break: New file.
22647 * modules/unictype/property-iso-control: New file.
22648 * modules/unictype/property-format-control: New file.
22649 * modules/unictype/property-dash: New file.
22650 * modules/unictype/property-hyphen: New file.
22651 * modules/unictype/property-punctuation: New file.
22652 * modules/unictype/property-line-separator: New file.
22653 * modules/unictype/property-paragraph-separator: New file.
22654 * modules/unictype/property-quotation-mark: New file.
22655 * modules/unictype/property-sentence-terminal: New file.
22656 * modules/unictype/property-terminal-punctuation: New file.
22657 * modules/unictype/property-currency-symbol: New file.
22658 * modules/unictype/property-math: New file.
22659 * modules/unictype/property-other-math: New file.
22660 * modules/unictype/property-paired-punctuation: New file.
22661 * modules/unictype/property-left-of-pair: New file.
22662 * modules/unictype/property-combining: New file.
22663 * modules/unictype/property-composite: New file.
22664 * modules/unictype/property-decimal-digit: New file.
22665 * modules/unictype/property-numeric: New file.
22666 * modules/unictype/property-diacritic: New file.
22667 * modules/unictype/property-extender: New file.
22668 * modules/unictype/property-ignorable-control: New file.
22669 * modules/unictype/property-test: New file.
22670 * modules/unictype/property-byname: New file.
22671 * modules/unictype/property-all: New file.
22672 * modules/unictype/scripts: New file.
22673 * modules/unictype/scripts-all: New file.
22674 * modules/unictype/block-of: New file.
22675 * modules/unictype/block-test: New file.
22676 * modules/unictype/block-list: New file.
22677 * modules/unictype/block-all: New file.
22678 * modules/unictype/syntax-c-whitespace: New file.
22679 * modules/unictype/syntax-java-whitespace: New file.
22680 * modules/unictype/syntax-c-ident: New file.
22681 * modules/unictype/syntax-java-ident: New file.
22682 * modules/unictype/ctype-alnum: New file.
22683 * modules/unictype/ctype-alpha: New file.
22684 * modules/unictype/ctype-cntrl: New file.
22685 * modules/unictype/ctype-digit: New file.
22686 * modules/unictype/ctype-graph: New file.
22687 * modules/unictype/ctype-lower: New file.
22688 * modules/unictype/ctype-print: New file.
22689 * modules/unictype/ctype-punct: New file.
22690 * modules/unictype/ctype-space: New file.
22691 * modules/unictype/ctype-upper: New file.
22692 * modules/unictype/ctype-xdigit: New file.
22693 * modules/unictype/ctype-blank: New file.
22694 * lib/unictype/bidi_byname.c: New file.
22695 * lib/unictype/bidi_name.c: New file.
22696 * lib/unictype/bidi_of.c: New file.
22697 * lib/unictype/bidi_test.c: New file.
22698 * lib/unictype/bitmap.h: New file.
22699 * lib/unictype/block_test.c: New file.
22700 * lib/unictype/blocks.c: New file.
22701 * lib/unictype/categ_C.c: New file.
22702 * lib/unictype/categ_Cc.c: New file.
22703 * lib/unictype/categ_Cf.c: New file.
22704 * lib/unictype/categ_Cn.c: New file.
22705 * lib/unictype/categ_Co.c: New file.
22706 * lib/unictype/categ_Cs.c: New file.
22707 * lib/unictype/categ_L.c: New file.
22708 * lib/unictype/categ_Ll.c: New file.
22709 * lib/unictype/categ_Lm.c: New file.
22710 * lib/unictype/categ_Lo.c: New file.
22711 * lib/unictype/categ_Lt.c: New file.
22712 * lib/unictype/categ_Lu.c: New file.
22713 * lib/unictype/categ_M.c: New file.
22714 * lib/unictype/categ_Mc.c: New file.
22715 * lib/unictype/categ_Me.c: New file.
22716 * lib/unictype/categ_Mn.c: New file.
22717 * lib/unictype/categ_N.c: New file.
22718 * lib/unictype/categ_Nd.c: New file.
22719 * lib/unictype/categ_Nl.c: New file.
22720 * lib/unictype/categ_No.c: New file.
22721 * lib/unictype/categ_P.c: New file.
22722 * lib/unictype/categ_Pc.c: New file.
22723 * lib/unictype/categ_Pd.c: New file.
22724 * lib/unictype/categ_Pe.c: New file.
22725 * lib/unictype/categ_Pf.c: New file.
22726 * lib/unictype/categ_Pi.c: New file.
22727 * lib/unictype/categ_Po.c: New file.
22728 * lib/unictype/categ_Ps.c: New file.
22729 * lib/unictype/categ_S.c: New file.
22730 * lib/unictype/categ_Sc.c: New file.
22731 * lib/unictype/categ_Sk.c: New file.
22732 * lib/unictype/categ_Sm.c: New file.
22733 * lib/unictype/categ_So.c: New file.
22734 * lib/unictype/categ_Z.c: New file.
22735 * lib/unictype/categ_Zl.c: New file.
22736 * lib/unictype/categ_Zp.c: New file.
22737 * lib/unictype/categ_Zs.c: New file.
22738 * lib/unictype/categ_and.c: New file.
22739 * lib/unictype/categ_and_not.c: New file.
22740 * lib/unictype/categ_byname.c: New file.
22741 * lib/unictype/categ_name.c: New file.
22742 * lib/unictype/categ_none.c: New file.
22743 * lib/unictype/categ_of.c: New file.
22744 * lib/unictype/categ_or.c: New file.
22745 * lib/unictype/categ_test.c: New file.
22746 * lib/unictype/combining.c: New file.
22747 * lib/unictype/ctype_alnum.c: New file.
22748 * lib/unictype/ctype_alpha.c: New file.
22749 * lib/unictype/ctype_blank.c: New file.
22750 * lib/unictype/ctype_cntrl.c: New file.
22751 * lib/unictype/ctype_digit.c: New file.
22752 * lib/unictype/ctype_graph.c: New file.
22753 * lib/unictype/ctype_lower.c: New file.
22754 * lib/unictype/ctype_print.c: New file.
22755 * lib/unictype/ctype_punct.c: New file.
22756 * lib/unictype/ctype_space.c: New file.
22757 * lib/unictype/ctype_upper.c: New file.
22758 * lib/unictype/ctype_xdigit.c: New file.
22759 * lib/unictype/decdigit.c: New file.
22760 * lib/unictype/digit.c: New file.
22761 * lib/unictype/identsyntaxmap.h: New file.
22762 * lib/unictype/mirror.c: New file.
22763 * lib/unictype/numeric.c: New file.
22764 * lib/unictype/pr_alphabetic.c: New file.
22765 * lib/unictype/pr_ascii_hex_digit.c: New file.
22766 * lib/unictype/pr_bidi_arabic_digit.c: New file.
22767 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
22768 * lib/unictype/pr_bidi_block_separator.c: New file.
22769 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
22770 * lib/unictype/pr_bidi_common_separator.c: New file.
22771 * lib/unictype/pr_bidi_control.c: New file.
22772 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
22773 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
22774 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
22775 * lib/unictype/pr_bidi_european_digit.c: New file.
22776 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
22777 * lib/unictype/pr_bidi_left_to_right.c: New file.
22778 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
22779 * lib/unictype/pr_bidi_other_neutral.c: New file.
22780 * lib/unictype/pr_bidi_pdf.c: New file.
22781 * lib/unictype/pr_bidi_segment_separator.c: New file.
22782 * lib/unictype/pr_bidi_whitespace.c: New file.
22783 * lib/unictype/pr_byname.c: New file.
22784 * lib/unictype/pr_byname.gperf: New file.
22785 * lib/unictype/pr_combining.c: New file.
22786 * lib/unictype/pr_composite.c: New file.
22787 * lib/unictype/pr_currency_symbol.c: New file.
22788 * lib/unictype/pr_dash.c: New file.
22789 * lib/unictype/pr_decimal_digit.c: New file.
22790 * lib/unictype/pr_default_ignorable_code_point.c: New file.
22791 * lib/unictype/pr_deprecated.c: New file.
22792 * lib/unictype/pr_diacritic.c: New file.
22793 * lib/unictype/pr_extender.c: New file.
22794 * lib/unictype/pr_format_control.c: New file.
22795 * lib/unictype/pr_grapheme_base.c: New file.
22796 * lib/unictype/pr_grapheme_extend.c: New file.
22797 * lib/unictype/pr_grapheme_link.c: New file.
22798 * lib/unictype/pr_hex_digit.c: New file.
22799 * lib/unictype/pr_hyphen.c: New file.
22800 * lib/unictype/pr_id_continue.c: New file.
22801 * lib/unictype/pr_id_start.c: New file.
22802 * lib/unictype/pr_ideographic.c: New file.
22803 * lib/unictype/pr_ids_binary_operator.c: New file.
22804 * lib/unictype/pr_ids_trinary_operator.c: New file.
22805 * lib/unictype/pr_ignorable_control.c: New file.
22806 * lib/unictype/pr_iso_control.c: New file.
22807 * lib/unictype/pr_join_control.c: New file.
22808 * lib/unictype/pr_left_of_pair.c: New file.
22809 * lib/unictype/pr_line_separator.c: New file.
22810 * lib/unictype/pr_logical_order_exception.c: New file.
22811 * lib/unictype/pr_lowercase.c: New file.
22812 * lib/unictype/pr_math.c: New file.
22813 * lib/unictype/pr_non_break.c: New file.
22814 * lib/unictype/pr_not_a_character.c: New file.
22815 * lib/unictype/pr_numeric.c: New file.
22816 * lib/unictype/pr_other_alphabetic.c: New file.
22817 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
22818 * lib/unictype/pr_other_grapheme_extend.c: New file.
22819 * lib/unictype/pr_other_id_continue.c: New file.
22820 * lib/unictype/pr_other_id_start.c: New file.
22821 * lib/unictype/pr_other_lowercase.c: New file.
22822 * lib/unictype/pr_other_math.c: New file.
22823 * lib/unictype/pr_other_uppercase.c: New file.
22824 * lib/unictype/pr_paired_punctuation.c: New file.
22825 * lib/unictype/pr_paragraph_separator.c: New file.
22826 * lib/unictype/pr_pattern_syntax.c: New file.
22827 * lib/unictype/pr_pattern_white_space.c: New file.
22828 * lib/unictype/pr_private_use.c: New file.
22829 * lib/unictype/pr_punctuation.c: New file.
22830 * lib/unictype/pr_quotation_mark.c: New file.
22831 * lib/unictype/pr_radical.c: New file.
22832 * lib/unictype/pr_sentence_terminal.c: New file.
22833 * lib/unictype/pr_soft_dotted.c: New file.
22834 * lib/unictype/pr_space.c: New file.
22835 * lib/unictype/pr_terminal_punctuation.c: New file.
22836 * lib/unictype/pr_test.c: New file.
22837 * lib/unictype/pr_titlecase.c: New file.
22838 * lib/unictype/pr_unassigned_code_value.c: New file.
22839 * lib/unictype/pr_unified_ideograph.c: New file.
22840 * lib/unictype/pr_uppercase.c: New file.
22841 * lib/unictype/pr_variation_selector.c: New file.
22842 * lib/unictype/pr_white_space.c: New file.
22843 * lib/unictype/pr_xid_continue.c: New file.
22844 * lib/unictype/pr_xid_start.c: New file.
22845 * lib/unictype/pr_zero_width.c: New file.
22846 * lib/unictype/scripts.c: New file.
22847 * lib/unictype/sy_c_ident.c: New file.
22848 * lib/unictype/sy_c_whitespace.c: New file.
22849 * lib/unictype/sy_java_ident.c: New file.
22850 * lib/unictype/sy_java_whitespace.c: New file.
22852 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
22854 * lib/unictype/blocks.h: Likewise.
22855 * lib/unictype/categ_C.h: Likewise.
22856 * lib/unictype/categ_Cc.h: Likewise.
22857 * lib/unictype/categ_Cf.h: Likewise.
22858 * lib/unictype/categ_Cn.h: Likewise.
22859 * lib/unictype/categ_Co.h: Likewise.
22860 * lib/unictype/categ_Cs.h: Likewise.
22861 * lib/unictype/categ_L.h: Likewise.
22862 * lib/unictype/categ_Ll.h: Likewise.
22863 * lib/unictype/categ_Lm.h: Likewise.
22864 * lib/unictype/categ_Lo.h: Likewise.
22865 * lib/unictype/categ_Lt.h: Likewise.
22866 * lib/unictype/categ_Lu.h: Likewise.
22867 * lib/unictype/categ_M.h: Likewise.
22868 * lib/unictype/categ_Mc.h: Likewise.
22869 * lib/unictype/categ_Me.h: Likewise.
22870 * lib/unictype/categ_Mn.h: Likewise.
22871 * lib/unictype/categ_N.h: Likewise.
22872 * lib/unictype/categ_Nd.h: Likewise.
22873 * lib/unictype/categ_Nl.h: Likewise.
22874 * lib/unictype/categ_No.h: Likewise.
22875 * lib/unictype/categ_P.h: Likewise.
22876 * lib/unictype/categ_Pc.h: Likewise.
22877 * lib/unictype/categ_Pd.h: Likewise.
22878 * lib/unictype/categ_Pe.h: Likewise.
22879 * lib/unictype/categ_Pf.h: Likewise.
22880 * lib/unictype/categ_Pi.h: Likewise.
22881 * lib/unictype/categ_Po.h: Likewise.
22882 * lib/unictype/categ_Ps.h: Likewise.
22883 * lib/unictype/categ_S.h: Likewise.
22884 * lib/unictype/categ_Sc.h: Likewise.
22885 * lib/unictype/categ_Sk.h: Likewise.
22886 * lib/unictype/categ_Sm.h: Likewise.
22887 * lib/unictype/categ_So.h: Likewise.
22888 * lib/unictype/categ_Z.h: Likewise.
22889 * lib/unictype/categ_Zl.h: Likewise.
22890 * lib/unictype/categ_Zp.h: Likewise.
22891 * lib/unictype/categ_Zs.h: Likewise.
22892 * lib/unictype/categ_of.h: Likewise.
22893 * lib/unictype/combining.h: Likewise.
22894 * lib/unictype/ctype_alnum.h: Likewise.
22895 * lib/unictype/ctype_alpha.h: Likewise.
22896 * lib/unictype/ctype_blank.h: Likewise.
22897 * lib/unictype/ctype_cntrl.h: Likewise.
22898 * lib/unictype/ctype_digit.h: Likewise.
22899 * lib/unictype/ctype_graph.h: Likewise.
22900 * lib/unictype/ctype_lower.h: Likewise.
22901 * lib/unictype/ctype_print.h: Likewise.
22902 * lib/unictype/ctype_punct.h: Likewise.
22903 * lib/unictype/ctype_space.h: Likewise.
22904 * lib/unictype/ctype_upper.h: Likewise.
22905 * lib/unictype/ctype_xdigit.h: Likewise.
22906 * lib/unictype/decdigit.h: Likewise.
22907 * lib/unictype/digit.h: Likewise.
22908 * lib/unictype/mirror.h: Likewise.
22909 * lib/unictype/numeric.h: Likewise.
22910 * lib/unictype/pr_alphabetic.h: Likewise.
22911 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22912 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22913 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22914 * lib/unictype/pr_bidi_block_separator.h: Likewise.
22915 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22916 * lib/unictype/pr_bidi_common_separator.h: Likewise.
22917 * lib/unictype/pr_bidi_control.h: Likewise.
22918 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22919 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22920 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22921 * lib/unictype/pr_bidi_european_digit.h: Likewise.
22922 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22923 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22924 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22925 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22926 * lib/unictype/pr_bidi_pdf.h: Likewise.
22927 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22928 * lib/unictype/pr_bidi_whitespace.h: Likewise.
22929 * lib/unictype/pr_combining.h: Likewise.
22930 * lib/unictype/pr_composite.h: Likewise.
22931 * lib/unictype/pr_currency_symbol.h: Likewise.
22932 * lib/unictype/pr_dash.h: Likewise.
22933 * lib/unictype/pr_decimal_digit.h: Likewise.
22934 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22935 * lib/unictype/pr_deprecated.h: Likewise.
22936 * lib/unictype/pr_diacritic.h: Likewise.
22937 * lib/unictype/pr_extender.h: Likewise.
22938 * lib/unictype/pr_format_control.h: Likewise.
22939 * lib/unictype/pr_grapheme_base.h: Likewise.
22940 * lib/unictype/pr_grapheme_extend.h: Likewise.
22941 * lib/unictype/pr_grapheme_link.h: Likewise.
22942 * lib/unictype/pr_hex_digit.h: Likewise.
22943 * lib/unictype/pr_hyphen.h: Likewise.
22944 * lib/unictype/pr_id_continue.h: Likewise.
22945 * lib/unictype/pr_id_start.h: Likewise.
22946 * lib/unictype/pr_ideographic.h: Likewise.
22947 * lib/unictype/pr_ids_binary_operator.h: Likewise.
22948 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22949 * lib/unictype/pr_ignorable_control.h: Likewise.
22950 * lib/unictype/pr_iso_control.h: Likewise.
22951 * lib/unictype/pr_join_control.h: Likewise.
22952 * lib/unictype/pr_left_of_pair.h: Likewise.
22953 * lib/unictype/pr_line_separator.h: Likewise.
22954 * lib/unictype/pr_logical_order_exception.h: Likewise.
22955 * lib/unictype/pr_lowercase.h: Likewise.
22956 * lib/unictype/pr_math.h: Likewise.
22957 * lib/unictype/pr_non_break.h: Likewise.
22958 * lib/unictype/pr_not_a_character.h: Likewise.
22959 * lib/unictype/pr_numeric.h: Likewise.
22960 * lib/unictype/pr_other_alphabetic.h: Likewise.
22961 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22962 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22963 * lib/unictype/pr_other_id_continue.h: Likewise.
22964 * lib/unictype/pr_other_id_start.h: Likewise.
22965 * lib/unictype/pr_other_lowercase.h: Likewise.
22966 * lib/unictype/pr_other_math.h: Likewise.
22967 * lib/unictype/pr_other_uppercase.h: Likewise.
22968 * lib/unictype/pr_paired_punctuation.h: Likewise.
22969 * lib/unictype/pr_paragraph_separator.h: Likewise.
22970 * lib/unictype/pr_pattern_syntax.h: Likewise.
22971 * lib/unictype/pr_pattern_white_space.h: Likewise.
22972 * lib/unictype/pr_private_use.h: Likewise.
22973 * lib/unictype/pr_punctuation.h: Likewise.
22974 * lib/unictype/pr_quotation_mark.h: Likewise.
22975 * lib/unictype/pr_radical.h: Likewise.
22976 * lib/unictype/pr_sentence_terminal.h: Likewise.
22977 * lib/unictype/pr_soft_dotted.h: Likewise.
22978 * lib/unictype/pr_space.h: Likewise.
22979 * lib/unictype/pr_terminal_punctuation.h: Likewise.
22980 * lib/unictype/pr_titlecase.h: Likewise.
22981 * lib/unictype/pr_unassigned_code_value.h: Likewise.
22982 * lib/unictype/pr_unified_ideograph.h: Likewise.
22983 * lib/unictype/pr_uppercase.h: Likewise.
22984 * lib/unictype/pr_variation_selector.h: Likewise.
22985 * lib/unictype/pr_white_space.h: Likewise.
22986 * lib/unictype/pr_xid_continue.h: Likewise.
22987 * lib/unictype/pr_xid_start.h: Likewise.
22988 * lib/unictype/pr_zero_width.h: Likewise.
22989 * lib/unictype/scripts.h: Likewise.
22990 * lib/unictype/scripts_byname.gperf: Likewise.
22991 * lib/unictype/sy_c_ident.h: Likewise.
22992 * lib/unictype/sy_c_whitespace.h: Likewise.
22993 * lib/unictype/sy_java_ident.h: Likewise.
22994 * lib/unictype/sy_java_whitespace.h: Likewise.
22996 * lib/unictype/Makefile: New file.
22997 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
22999 * lib/unictype/3level.h: New file, copied from glibc.
23000 * lib/unictype/3levelbit.h: New file.
23002 2007-11-11 Bruno Haible <bruno@clisp.org>
23004 * modules/gperf: New file.
23005 * modules/iconv_open (Depends-on): Add it.
23006 (Makefile.am): Remove the GPERF definition.
23008 2007-11-11 Bruno Haible <bruno@clisp.org>
23010 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
23011 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
23013 2007-11-11 Bruno Haible <bruno@clisp.org>
23015 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
23016 (usage): Remove function.
23018 2007-11-11 Bruno Haible <bruno@clisp.org>
23020 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
23021 gl_FUNC_CEILF_LIBS.
23022 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
23024 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
23025 gl_FUNC_CEILL_LIBS.
23026 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
23027 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
23028 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
23030 2007-11-11 Bruno Haible <bruno@clisp.org>
23032 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
23033 roundf were declared but do not exist on functions.
23034 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
23035 roundl were declared but do not exist on functions.
23036 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
23037 HAVE_FLOORL_AND_CEILL, respectively.
23038 Needed for Sun C on Solaris 10.
23040 2007-11-11 Bruno Haible <bruno@clisp.org>
23042 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
23043 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
23044 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
23045 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
23046 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
23047 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
23048 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
23050 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
23051 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
23052 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
23053 of HAVE_DECL_ROUND*.
23054 * modules/math (Makefile.am): Update.
23056 2007-11-10 Bruno Haible <bruno@clisp.org>
23058 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
23059 ptrdiff_t as m4/intl.m4.
23061 2007-11-10 Jim Meyering <meyering@redhat.com>
23063 Avoid link failure for the argmatch test.
23064 * tests/test-argmatch.c (usage): Define function to avoid a link
23065 failure: argmatch_die requires a usage function.
23067 2007-11-09 Bruno Haible <bruno@clisp.org>
23069 * doc/functions/snprintf.texi: Mention BeOS deficiency.
23070 * doc/functions/vsnprintf.texi: Likewise.
23071 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
23072 with a size argument < 2.
23074 2007-11-09 Bruno Haible <bruno@clisp.org>
23076 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
23077 buffer. Fixes an inefficiency introduced on 2007-11-03.
23079 2007-11-09 Bruno Haible <bruno@clisp.org>
23081 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
23082 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
23084 2007-11-08 Jim Meyering <meyering@redhat.com>
23086 Change cache variable name prefix "jm_" to "gl_" everywhere.
23087 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
23088 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
23089 * m4/uptime.m4: s/gl_/jm_/
23091 2007-11-07 Bruno Haible <bruno@clisp.org>
23093 Update to GNU gettext 0.17.
23094 * m4/intl.m4: Update to GNU gettext 0.17.
23095 * m4/po.m4: Likewise.
23096 * modules/gettext (Files): Remove m4/ulonglong.m4.
23097 (configure.ac): Require gettext infrastructure from version 0.17.
23099 2007-11-06 Bruno Haible <bruno@clisp.org>
23101 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
23102 symbolic values are not defined in a public header.
23103 * lib/freadable.c (freadable) [QNX]: Likewise.
23104 * lib/freadahead.c (freadahead) [QNX]: Likewise.
23105 * lib/freading.c (freading) [QNX]: Likewise.
23106 * lib/fseterr.c (fseterr) [QNX]: Likewise.
23107 * lib/fwritable.c (fwritable) [QNX]: Likewise.
23108 * lib/fwriting.c (fwriting) [QNX]: Likewise.
23109 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
23110 Reported by Alain Magloire.
23112 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
23114 2007-11-05 Bruno Haible <bruno@clisp.org>
23116 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
23117 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
23118 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
23119 Reported by Eric Blake.
23121 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23122 Bruno Haible <bruno@clisp.org>
23124 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
23125 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
23126 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
23127 (malloc): Undefine also before including <stdlib.h>.
23128 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
23129 Needed on OSF/1 4.0.
23131 2007-11-05 Jim Meyering <meyering@redhat.com>
23133 git-version-gen: sync from coreutils.
23134 * build-aux/git-version-gen: Add comments.
23135 Change the first '-' to '.' in the snapshot version string,
23136 e.g., 6.9-377-08144 -> 6.9.377-08144
23137 Remove first parameter.
23138 Don't declare a version "-dirty" merely because a time
23141 2007-11-04 Bruno Haible <bruno@clisp.org>
23143 * lib/lock.h: Protect all macro definitions containing an 'if'
23144 statement through a "do { ... } while (0)".
23145 * lib/tls.h: Likewise.
23147 2007-11-04 Bruno Haible <bruno@clisp.org>
23149 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
23151 2007-11-04 Bruno Haible <bruno@clisp.org>
23153 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
23154 * modules/fprintf-posix (Depends-on): Add nocrash.
23155 * modules/snprintf-posix (Depends-on): Likewise.
23156 * modules/sprintf-posix (Depends-on): Likewise.
23157 * modules/vasnprintf-posix (Depends-on): Likewise.
23158 * modules/vasprintf-posix (Depends-on): Likewise.
23159 * modules/vfprintf-posix (Depends-on): Likewise.
23160 * modules/vsnprintf-posix (Depends-on): Likewise.
23161 * modules/vsprintf-posix (Depends-on): Likewise.
23162 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23163 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23164 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23165 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23166 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23167 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23168 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23170 2007-11-04 Bruno Haible <bruno@clisp.org>
23172 * modules/nocrash: New file.
23173 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
23174 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
23176 2007-11-04 Bruno Haible <bruno@clisp.org>
23178 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
23179 precision handling.
23180 * tests/test-vasprintf-posix.c (test_function): Likewise.
23181 * tests/test-snprintf-posix.h (test_function): Likewise.
23182 * tests/test-sprintf-posix.h (test_function): Likewise.
23184 Fix *printf behaviour for large precisions on mingw and BeOS.
23185 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
23186 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
23187 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
23188 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23189 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23190 gl_PRINTF_PRECISION and test its result. Invoke
23191 gl_PREREQ_VASNPRINTF_PRECISION.
23192 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23193 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23194 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23195 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23196 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23197 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23198 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23199 * doc/functions/fprintf.texi: Update.
23200 * doc/functions/printf.texi: Update.
23201 * doc/functions/snprintf.texi: Update.
23202 * doc/functions/sprintf.texi: Update.
23203 * doc/functions/vfprintf.texi: Update.
23204 * doc/functions/vprintf.texi: Update.
23205 * doc/functions/vsnprintf.texi: Update.
23206 * doc/functions/vsprintf.texi: Update.
23208 2007-11-04 Bruno Haible <bruno@clisp.org>
23210 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
23212 2007-11-04 Bruno Haible <bruno@clisp.org>
23214 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
23215 Reported by Sylvain Beucler <beuc@gnu.org>.
23217 2007-11-03 Bruno Haible <bruno@clisp.org>
23219 * tests/test-fprintf-posix2.sh: New file.
23220 * tests/test-fprintf-posix2.c: New file.
23221 * modules/fprintf-posix-tests (Files): Add them.
23222 (TESTS): Add test-fprintf-posix2.sh.
23223 (configure.ac): Check for getrlimit and setrlimit.
23224 (check_PROGRAMS): Add test-fprintf-posix2.
23226 * tests/test-printf-posix2.sh: New file.
23227 * tests/test-printf-posix2.c: New file.
23228 * modules/printf-posix-tests (Files): Add them.
23229 (TESTS): Add test-printf-posix2.sh.
23230 (configure.ac): Check for getrlimit and setrlimit.
23231 (check_PROGRAMS): Add test-printf-posix2.
23233 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
23234 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
23235 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
23236 (decode_double): New function, copied from decode_long_double.
23237 (scale10_round_decimal_decoded): New function, extracted from
23238 scale10_round_decimal_long_double.
23239 (scale10_round_decimal_long_double): Use it.
23240 (scale10_round_decimal_double): New function.
23241 (floorlog10): New function.
23242 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
23243 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
23244 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23245 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23246 gl_PRINTF_ENOMEM and test its result. Invoke
23247 gl_PREREQ_VASNPRINTF_ENOMEM.
23248 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23249 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23250 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23251 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23252 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23253 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23254 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23255 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
23256 * modules/snprintf-posix (Depends-on): Likewise.
23257 * modules/sprintf-posix (Depends-on): Likewise.
23258 * modules/vasnprintf-posix (Depends-on): Likewise.
23259 * modules/vasprintf-posix (Depends-on): Likewise.
23260 * modules/vfprintf-posix (Depends-on): Likewise.
23261 * modules/vsnprintf-posix (Depends-on): Likewise.
23262 * modules/vsprintf-posix (Depends-on): Likewise.
23263 * doc/functions/fprintf.texi: Update.
23264 * doc/functions/printf.texi: Update.
23265 * doc/functions/snprintf.texi: Update.
23266 * doc/functions/sprintf.texi: Update.
23267 * doc/functions/vfprintf.texi: Update.
23268 * doc/functions/vprintf.texi: Update.
23269 * doc/functions/vsnprintf.texi: Update.
23270 * doc/functions/vsprintf.texi: Update.
23272 2007-11-03 Bruno Haible <bruno@clisp.org>
23274 * modules/frexp-nolibm-tests: New file.
23276 * modules/frexp-nolibm: New file.
23277 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
23279 2007-11-03 Bruno Haible <bruno@clisp.org>
23281 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
23282 value is C99 compliant.
23283 Needed for OSF/1 5.1.
23285 2007-11-03 Bruno Haible <bruno@clisp.org>
23287 Fix out-of-memory handling of vasnprintf.
23288 * lib/printf-parse.c: Include <errno.h>.
23289 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
23290 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
23293 2007-11-02 Eric Blake <ebb9@byu.net>
23295 Fix tests on cygwin.
23296 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
23298 2007-11-01 Bruno Haible <bruno@clisp.org>
23300 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
23302 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
23303 needed for POSIX compatibility.
23305 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
23307 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
23308 for compatibility with GNU.
23310 2007-11-01 Bruno Haible <bruno@clisp.org>
23312 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
23313 (putenv): Renamed from rpl_putenv. Change argument type from
23314 'const char *' to 'char *'.
23315 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
23316 of defining putenv in config.h, just set REPLACE_PUTENV.
23317 * modules/putenv (Depends-on): Add stdlib.
23318 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23319 (Include): Use <stdlib.h>.
23320 * lib/stdlib.in.h (putenv): New declaration.
23321 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
23323 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
23325 Needed for MacOS X 10.5.0.
23326 Reported by Peter O'Gorman <peter@pogma.com>.
23328 2007-11-01 Jim Meyering <meyering@redhat.com>
23330 Treat an empty date string exactly like "0".
23331 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
23332 if the remaining date string (to be parsed) is empty, use "0".
23333 Reported by Mischa Molhoek and discussed in this thread:
23334 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
23336 2007-10-31 Bruno Haible <bruno@clisp.org>
23338 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
23339 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
23340 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
23341 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
23342 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
23343 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
23345 2007-10-31 Bruno Haible <bruno@clisp.org>
23347 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
23348 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
23349 (AC_TYPE_LONG_LONG_INT): Use it.
23350 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
23352 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
23354 * modules/stdint (Files): Remove m4/ulonglong.m4.
23355 * modules/strtoull (Files): Use m4/longlong.m4 instead of
23357 * modules/strtoumax (Files): Likewise.
23359 2007-10-30 Bruno Haible <bruno@clisp.org>
23361 * modules/xvasprintf-posix: New file.
23362 Suggested by Eric Blake.
23364 2007-10-30 Bruno Haible <bruno@clisp.org>
23366 * modules/xprintf-posix-tests: New file.
23367 * tests/test-xprintf-posix.sh: New file.
23368 * tests/test-xprintf-posix.c: New file.
23369 * tests/test-xfprintf-posix.c: New file.
23371 * modules/xprintf-posix: New file.
23373 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23375 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
23376 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
23377 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
23379 2007-10-29 Bruno Haible <bruno@clisp.org>
23381 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
23382 contain the special marker '_cv_'.
23383 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23384 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23385 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23386 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
23387 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23388 Reported by Ralf Wildenhues.
23390 2007-10-29 Bruno Haible <bruno@clisp.org>
23392 * gnulib-tool (func_import): When --lgpl is not specified, set
23393 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
23395 Reported by Simon Josefsson.
23397 2007-10-28 Bruno Haible <bruno@clisp.org>
23399 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
23400 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
23401 HAVE_DECL_ISFINITE.
23402 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
23403 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
23404 HAVE_DECL_ISFINITE.
23406 2007-10-28 Bruno Haible <bruno@clisp.org>
23408 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
23409 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
23411 2007-10-28 Bruno Haible <bruno@clisp.org>
23413 Fix link errors with Sun C 5.0 on Solaris 10.
23414 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
23415 function is declared but not present in the compiler's libm.
23416 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
23417 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
23418 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
23419 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
23420 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
23421 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
23422 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
23423 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
23424 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
23425 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
23426 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
23429 2007-10-28 Bruno Haible <bruno@clisp.org>
23431 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
23432 gl_FUNC_FLOORL. Cache the result.
23433 (gl_FUNC_FLOORL): Use it.
23434 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
23435 gl_FUNC_CEILL. Cache the result.
23436 (gl_FUNC_CEILL): Use it.
23438 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
23439 gl_FUNC_FLOOR. Cache the result.
23440 (gl_FUNC_FLOOR): Use it.
23441 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
23442 gl_FUNC_CEIL. Cache the result.
23443 (gl_FUNC_CEIL): Use it.
23445 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
23446 gl_FUNC_FLOORF. Cache the result.
23447 (gl_FUNC_FLOORF): Use it.
23448 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
23449 gl_FUNC_CEILF. Cache the result.
23450 (gl_FUNC_CEILF): Use it.
23452 2007-10-28 Bruno Haible <bruno@clisp.org>
23454 * gnulib-tool: Allow specifying the LGPL version number through
23455 --lgpl=2 or --lgpl=3.
23456 (func_usage): Document --lgpl with argument.
23457 Handle --lgpl=... arguments.
23458 (func_import): Recognize also gl_LGPL calls with an argument. When
23459 --lgpl=2 is used and the module's license is just LGPL, report an
23460 error. Set sed_transform_lib_file according to the lgpl variable. In
23461 the generated files, use --lgpl or gl_LGPL invocations with argument,
23463 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
23465 * doc/gnulib-tool.texi (Modified imports): Update explanation of
23468 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23469 Bruno Haible <bruno@clisp.org>
23471 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
23472 (u16_uctomb_aux): Likewise.
23473 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
23475 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
23477 2007-10-28 Bruno Haible <bruno@clisp.org>
23479 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
23480 Invoke AM_GETTEXT_OPTION if it exists.
23481 * modules/vasprintf: Likewise.
23482 * modules/verror: Likewise.
23483 * modules/xprintf: Likewise.
23484 * modules/xvasprintf: Likewise.
23486 2007-10-27 Ben Pfaff <blp@gnu.org>
23488 * lib/math.in.h: Define isfinite macro and prototypes for
23489 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
23491 * m4/math_h.m4: New substitutions for isfinite module.
23492 * lib/isfinite.c: New file.
23493 * m4/isfinite.m4: New file.
23494 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
23495 * modules/isfinite: New file.
23496 * modules/isfinite-tests: New file.
23497 * tests/tests-isfinite.c: New file.
23498 * doc/functions/isfinite.texi: Mention isfinite module.
23499 * MODULES.html.sh: Mention new module.
23501 2007-10-27 Ben Pfaff <blp@gnu.org>
23503 Ralf Wildenhues reported that Tru64 4.0D declares the round
23504 functions but does not have definitions.
23505 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
23506 cannot be found in any library, set the output variable to
23507 "missing" instead of "".
23508 * m4/round.m4: Also use our substitute if we cannot find round in
23509 any library, even if it is declared.
23510 * m4/roundf.m4: Likewise for roundf.
23511 * m4/roundl.m4: Likewise for roundl.
23512 * lib/math.in.h: Undefine roundf, round, roundl before defining
23513 their replacements, to allow for hypothetical systems where these
23514 may be defined as macros but not available in libraries.
23516 2007-10-27 Bruno Haible <bruno@clisp.org>
23518 * doc/gnulib.texi: Invoke @firstparagraphindent.
23519 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
23521 (Source changes): New section.
23523 2007-10-26 Bruno Haible <bruno@clisp.org>
23525 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
23526 borrowed from autoconf.
23528 2007-10-26 Bruno Haible <bruno@clisp.org>
23530 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
23531 strerror returned the empty string. Needed on HP-UX 11.00.
23533 2007-10-24 Micah Cowan <micah@cowan.name>
23535 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
23536 * build-aux/bootstrap: Remove support for now-unnecessary option,
23537 --cvs-user, and envvars CVS_USER, CVS_RSH.
23539 2007-10-24 Jim Meyering <meyering@redhat.com>
23541 Avoid diagnostics from sha1sum when there is no cached checksum.
23542 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
23543 if the po.s1 file hasn't been created yet.
23545 * build-aux/bootstrap: Sync from coreutils:
23546 2007-10-24 Jim Meyering <meyering@redhat.com>
23547 Get gnulib from the git repository, not from an obsolete cvs one.
23548 * build-aux/bootstrap: Suggestion from Micah Cowan.
23549 2007-10-04 Jim Meyering <jim@meyering.net>
23550 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
23551 (update_po_files): Work also when there are no .po files in po/.
23553 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
23555 * README: Append ".git" to git and cg examples.
23556 Problem reported by Benoit Sigoure.
23558 2007-10-23 Micah Cowan <micah@cowan.name>
23560 * users.txt: Add wget.
23562 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23564 Fix linking of some unistdio tests on FreeBSD.
23565 * modules/unistdio/u16-vsnprintf-tests
23566 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
23567 * modules/unistdio/u16-vsprintf-tests
23568 (test_u16_vsnprintf1_LDADD): Likewise.
23569 * modules/unistdio/u32-vsnprintf-tests
23570 (test_u32_vsnprintf1_LDADD): Likewise.
23571 * modules/unistdio/u32-vsprintf-tests
23572 (test_u32_vsprintf1_LDADD): Likewise.
23573 * modules/unistdio/u8-vsnprintf-tests
23574 (test_u8_vsnprintf1_LDADD): Likewise.
23575 * modules/unistdio/u8-vsprintf-tests
23576 (test_u8_vsprintf1_LDADD): Likewise.
23577 * modules/unistdio/ulc-vsnprintf-tests
23578 (test_ulc_vsnprintf1_LDADD): Likewise.
23579 * modules/unistdio/ulc-vsprintf-tests
23580 (test_ulc_vsprintf1_LDADD): Likewise.
23582 Fix linking of some uniconv tests on FreeBSD.
23583 * modules/uniconv/u16-conv-from-enc-tests
23584 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
23585 * modules/uniconv/u16-conv-to-enc-tests
23586 (test_u16_conv_to_enc_LDADD): Likewise.
23587 * modules/uniconv/u16-strconv-from-enc-tests
23588 (test_u16_strconv_from_enc_LDADD): Likewise.
23589 * modules/uniconv/u16-strconv-to-enc-tests
23590 (test_u16_strconv_to_enc_LDADD): Likewise.
23591 * modules/uniconv/u32-conv-from-enc-tests
23592 (test_u32_conv_from_enc_LDADD): Likewise.
23593 * modules/uniconv/u32-conv-to-enc-tests
23594 (test_u32_conv_to_enc_LDADD): Likewise.
23595 * modules/uniconv/u32-strconv-from-enc-tests
23596 (test_u32_strconv_from_enc_LDADD): Likewise.
23597 * modules/uniconv/u32-strconv-to-enc-tests
23598 (test_u32_strconv_to_enc_LDADD): Likewise.
23599 * modules/uniconv/u8-conv-from-enc-tests
23600 (test_u8_conv_from_enc_LDADD): Likewise.
23601 * modules/uniconv/u8-conv-to-enc-tests
23602 (test_u8_conv_to_enc_LDADD): Likewise.
23603 * modules/uniconv/u8-strconv-from-enc-tests
23604 (test_u8_strconv_from_enc_LDADD): Likewise.
23605 * modules/uniconv/u8-strconv-to-enc-tests
23606 (test_u8_strconv_to_enc_LDADD): Likewise.
23608 2007-10-22 Bruno Haible <bruno@clisp.org>
23610 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
23613 2007-10-22 Eric Blake <ebb9@byu.net>
23615 Tweak x*printf documentation.
23616 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
23617 variable name and comments.
23618 Suggested by Bruno Haible.
23620 2007-10-22 Bruno Haible <bruno@clisp.org>
23622 * lib/acl.c (copy_acl): Fix file name in comment.
23624 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
23626 Fix Tru64 problem with stdbool.h.
23627 * lib/stdbool.in.h (false, true):
23628 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
23629 Don't declare as an enum in this situation; it runs afoul of Tru64.
23630 Problem reported by Steven M. Schweda in
23631 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
23633 2007-10-22 Eric Blake <ebb9@byu.net>
23635 Also wrap vf?printf.
23636 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
23637 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
23638 (xvprintf, xvfprintf): New functions.
23640 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23642 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
23643 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
23645 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
23646 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
23648 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
23650 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
23653 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23656 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
23657 Undef `sys' after including sys/table.h, for Tru64 4.0D.
23659 * tests/test-i-ring.c: Work for C89.
23661 2007-10-22 Bruno Haible <bruno@clisp.org>
23663 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
23664 -1u, in preprocessor expression, so that we don't test for the bug
23665 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
23666 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
23668 2007-10-22 Eric Blake <ebb9@byu.net>
23670 * tests/test-yesno.sh: Silence stderr during test.
23672 2007-10-22 Simon Josefsson <simon@josefsson.org>
23674 * modules/crypto/gc-camellia: New file.
23676 * m4/gc-camellia.m4: New file.
23678 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
23680 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
23682 2007-10-22 Simon Josefsson <simon@josefsson.org>
23684 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
23685 --help to stdout. Reported by sms@antinode.org (Steven
23688 2007-10-22 Simon Josefsson <simon@josefsson.org>
23690 * users.txt: Fix link to libksba.
23692 2007-10-21 Ben Pfaff <blp@gnu.org>
23694 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
23695 round.c roundf implementation that depends on floorf and ceilf to
23696 be tested unconditionally.
23698 2007-10-21 Ben Pfaff <blp@gnu.org>
23700 * m4/check-libm-func.m4: Removed.
23701 * m4/check-math-lib.m4: New file.
23702 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
23703 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
23704 definition and lack of AC_LIBOBJ([roundf]).
23705 * m4/roundl.m4: Ditto, and similarly for roundl.
23706 * modules/round: Reference new m4 file.
23707 * modules/roundf: Ditto.
23708 * modules/roundl: Ditto.
23709 * tests/test-round2.c (main): Use ROUND instead of round.
23710 Bug report from Bruno Haible.
23712 2007-10-21 Bruno Haible <bruno@clisp.org>
23714 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
23717 2007-10-21 Bruno Haible <bruno@clisp.org>
23719 * tests/test-wcwidth.c (main): Allow negative result for some control
23722 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
23723 Needed on OSF/1 5.1.
23725 2007-10-21 Bruno Haible <bruno@clisp.org>
23727 * tests/test-floorf1.c: Include isnanf.h.
23728 (main): Use isnanf() instead of isnan().
23729 * tests/test-ceilf1.c: Include isnanf.h.
23730 (main): Use isnanf() instead of isnan().
23731 * tests/test-truncf1.c: Include isnanf.h.
23732 (main): Use isnanf() instead of isnan().
23733 * tests/test-roundf1.c: Include isnanf.h.
23734 (main): Use isnanf() instead of isnan().
23736 2007-10-21 Eric Blake <ebb9@byu.net>
23738 * users.txt: Update URL for m4.
23740 2007-10-21 Bruno Haible <bruno@clisp.org>
23742 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
23744 2007-10-21 Bruno Haible <bruno@clisp.org>
23746 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
23747 Git's management files if the CVS files are not present.
23749 2007-10-20 Bruno Haible <bruno@clisp.org>
23751 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
23754 2007-10-20 Ben Pfaff <blp@gnu.org>
23756 * lib/math.in.h: Declare round, roundf, roundl if we are providing
23758 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
23759 * lib/round.c: New file.
23760 * lib/roundf.c: New file.
23761 * lib/roundl.c: New file.
23762 * m4/round.m4: New file.
23763 * m4/roundf.m4: New file.
23764 * m4/roundl.m4: New file.
23765 * m4/check-libm-func-m4: New file.
23766 * modules/math: Replace round, roundf, roundl related @VARS@ in
23768 * modules/round: New file.
23769 * modules/round-tests: New file.
23770 * modules/roundf: New file.
23771 * modules/roundf-tests: New file.
23772 * modules/roundl: New file.
23773 * modules/roundl-tests: New file.
23774 * tests/test-round1.c: New file.
23775 * tests/test-round2.c: New file.
23776 * tests/test-roundf1.c: New file.
23777 * tests/test-roundf2.c: New file.
23778 * tests/test-roundl.c: New file.
23779 * doc/functions/round.texi: Mention round module.
23780 * doc/functions/roundf.texi: Mention roundf module.
23781 * doc/functions/roundl.texi: Mention roundl module.
23782 * MODULES.html.sh: Mention new modules.
23783 Thanks to Bruno Haible for suggestions.
23785 2007-10-20 Jim Meyering <meyering@redhat.com>
23787 * lib/xprintf.c: Include <config.h> unconditionally.
23789 Change xprintf's license to GPL.
23790 * modules/xprintf (License): s/LGPL/GPL/, since this module
23791 depends on modules (exit and exitfail) which are GPL.
23792 Suggestion from Bruno Haible.
23795 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
23796 Use a clearer diagnostic.
23797 Patch from Bruno Haible.
23799 2007-10-20 Bruno Haible <bruno@clisp.org>
23801 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
23802 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
23803 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23805 2007-10-20 Bruno Haible <bruno@clisp.org>
23807 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
23808 precision in the comparison result > x - 1 or similar.
23809 * tests/test-ceilf2.c (correct_result_p): Likewise.
23810 * tests/test-truncf2.c (correct_result_p): Likewise.
23811 * tests/test-trunc2.c (correct_result_p): Likewise.
23812 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23814 2007-10-20 Bruno Haible <bruno@clisp.org>
23816 * modules/ceil: New file.
23817 * m4/ceil.m4: New file.
23818 * doc/functions/ceil.texi: Mention the 'ceil' module.
23820 2007-10-20 Bruno Haible <bruno@clisp.org>
23822 * modules/floor: New file.
23823 * m4/floor.m4: New file.
23824 * doc/functions/floor.texi: Mention the 'floor' module.
23826 2007-10-20 Bruno Haible <bruno@clisp.org>
23828 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
23830 * modules/floorf-tests (Depends-on): Likewise.
23831 * modules/truncf-tests (Depends-on): Likewise.
23832 * modules/trunc-tests (Depends-on): Likewise.
23833 Reported by Ben Pfaff.
23835 2007-10-19 Jim Meyering <meyering@redhat.com>
23837 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
23838 Don't bother testing specific errno values. Just test ferror.
23840 New module: xprintf
23841 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
23843 2007-10-19 Bruno Haible <bruno@clisp.org>
23845 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
23847 * modules/javaexec (Makefile.am): Likewise.
23848 * modules/relocatable-prog (Makefile.am): Likewise.
23849 Suggested by Jim Meyering.
23851 2007-10-18 Bruno Haible <bruno@clisp.org>
23853 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
23854 Reported by Jim Meyering.
23856 2007-10-18 Eric Blake <ebb9@byu.net>
23858 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
23860 2007-10-18 Bruno Haible <bruno@clisp.org>
23862 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
23863 the format string into writable memory. Needed in Fortify conditions.
23865 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
23866 Bruno Haible <bruno@clisp.org>
23868 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
23869 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
23870 * modules/trim (Depends-on): Add mbchar.
23871 (configure.ac): Add gl_FUNC_MBRTOWC.
23872 (Makefile.am): Augment lib_SOURCES.
23874 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
23876 Modify glob.c to use fstatat and dirfd, to simplify it.
23877 Suggested by Eric Blake.
23878 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
23879 Don't include <stdbool.h>; not used.
23880 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
23881 (link_exists_p): Simplify implementation, since we can now assume
23883 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
23885 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23887 * gnulib-tool (func_get_dependencies): Fix sed script to
23890 2007-10-17 Bruno Haible <bruno@clisp.org>
23892 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
23893 allow locale names without encoding suffix.
23894 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23895 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23897 2007-10-16 Bruno Haible <bruno@clisp.org>
23899 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
23900 * lib/getgroups.c (getgroups): Likewise.
23901 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
23903 2007-10-16 Bruno Haible <bruno@clisp.org>
23905 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
23906 * modules/malloc-posix (License): Likewise.
23907 * modules/realloc-posix (License): Likewise.
23908 * modules/calloc-posix (License): Likewise.
23909 * modules/intprops (License): Change from GPL to LGPL, with
23910 Paul Eggert's approval.
23912 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
23914 Merge glibc changes into lib/glob.c.
23916 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
23917 2007-10-15 04:59:03 UTC. Here are the changes:
23919 2007-10-14 Ulrich Drepper <drepper@redhat.com>
23921 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
23923 * lib/glob.c: Add some branch prediction throughout.
23925 2007-10-07 Ulrich Drepper <drepper@redhat.com>
23928 * lib/glob.c (glob): Recognize patterns starting \/.
23930 2007-02-14 Jakub Jelinek <jakub@redhat.com>
23933 * lib/glob.c (attribute_hidden): Define if not defined.
23934 (glob): Unescape dirname, filename or username when needed and not
23935 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
23936 is NULL. Handle unescaped [ in pattern without closing ].
23937 Don't pass GLOB_CHECK down to recursive glob for directories.
23938 (__glob_pattern_type): New function.
23939 (__glob_pattern_p): Implement using __glob_pattern_type.
23940 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
23941 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
23942 Remove unreachable code.
23944 2006-09-30 Ulrich Drepper <drepper@redhat.com>
23946 * lib/glob.c (glob_in_dir): Add some comments and asserts to
23947 explain why there are no leaks.
23949 2006-09-25 Jakub Jelinek <jakub@redhat.com>
23952 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
23953 time, rather allocate increasingly bigger arrays of pointers, if
23954 possible with alloca, if too large with malloc.
23956 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
23958 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
23959 Problem reported by H.Merijn Brand in
23960 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
23961 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
23962 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
23964 2007-10-15 Bruno Haible <bruno@clisp.org>
23966 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
23967 with explicit rpl_ prefix.
23968 * lib/fopen.c (fopen): Likewise.
23969 * lib/freopen.c (freopen): Likewise.
23970 * lib/iconv.c (iconv): Likewise.
23971 * lib/iconv_close.c (iconv_close): Likewise.
23973 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23975 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
23977 2007-10-15 Bruno Haible <bruno@clisp.org>
23979 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
23980 <stddef.h> instead of <stdlib.h> since we only need NULL.
23981 Reported by Ben Pfaff <blp@cs.stanford.edu>.
23983 2007-10-15 Bruno Haible <bruno@clisp.org>
23985 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
23986 Replace paragraph talking about LIBOBJS.
23987 Reported by Colin Watson <cjwatson@debian.org>.
23989 2007-10-15 Bruno Haible <bruno@clisp.org>
23991 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
23992 <stdlib.h> before using NULL.
23994 2007-10-15 Simon Josefsson <simon@josefsson.org>
23996 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
23997 Reported by Albert Chin <china@thewrittenword.com>.
23999 2007-10-14 Bruno Haible <bruno@clisp.org>
24001 * modules/iconv_open-utf-tests: New file.
24002 * tests/test-iconv-utf.c: New file.
24004 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
24005 * modules/iconv_open-utf: New file.
24006 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
24007 (iconv, iconv_close): New declarations.
24008 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
24010 (iconv_open): Add special handling of conversion between UTF-8 and
24011 UTF-{16,32}{BE,LE}.
24012 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
24013 * lib/iconv_close.c: New file.
24014 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
24015 gl_FUNC_ICONV_OPEN.
24016 (gl_FUNC_ICONV_OPEN): Use it.
24017 (gl_FUNC_ICONV_OPEN_UTF): New macro.
24018 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
24019 and REPLACE_ICONV_UTF.
24020 * modules/iconv_open (Depends-on): Add c-strcase.
24021 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
24023 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
24025 2007-10-13 Albert Chin <china@thewrittenword.com>
24026 Bruno Haible <bruno@clisp.org>
24028 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
24029 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
24031 2007-10-13 Bruno Haible <bruno@clisp.org>
24033 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
24034 defined, use the ISO C99 inline semantics.
24035 * lib/argp.h (ARGP_EI): Likewise.
24037 2007-10-13 Bruno Haible <bruno@clisp.org>
24039 Handle 'inline' change in gcc 4.3.0.
24040 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
24041 argp_fmtstream_write, argp_fmtstream_set_lmargin,
24042 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
24043 argp_fmtstream_point): Disable 'extern' declaration if the function
24044 definition is going to be provided inline.
24045 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
24046 semantics, not the ISO C99 inline semantics.
24047 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
24048 'extern' declaration if the function definition is going to be provided
24050 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
24051 the GNU C inline semantics, not the ISO C99 inline semantics. With
24052 GCC 4.2, avoid a warning.
24054 2007-10-13 Bruno Haible <bruno@clisp.org>
24056 * lib/freading.h (freading): Enable the use of __freading for
24058 * lib/freading.c (freading): Likewise.
24060 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
24062 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
24063 "warning: C99 inline functions are not supported; using GNU89".
24065 2007-10-12 Bruno Haible <bruno@clisp.org>
24067 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
24069 * tests/test-ceilf2.c: New file.
24070 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
24072 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
24073 * modules/ceilf-tests: Update.
24075 2007-10-12 Bruno Haible <bruno@clisp.org>
24077 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
24079 * tests/test-floorf2.c: New file.
24080 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
24082 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
24083 * modules/floorf-tests: Update.
24085 2007-10-12 Bruno Haible <bruno@clisp.org>
24087 * tests/test-trunc2.c: New file.
24088 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
24090 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
24091 * modules/trunc-tests: Update.
24093 2007-10-12 Bruno Haible <bruno@clisp.org>
24095 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
24097 * tests/test-truncf2.c: New file.
24098 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
24100 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
24101 * modules/truncf-tests: Update.
24103 2007-10-11 Eric Blake <ebb9@byu.net>
24105 Don't claim strerror is broken on Interix.
24106 * doc/functions/strerror.texi (strerror): Known broken systems are
24107 now Solaris 8, and not Interix.
24108 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
24109 Interix on cross-compile.
24110 Reported by Martin Koeppe in
24111 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
24113 2007-10-11 Bruno Haible <bruno@clisp.org>
24115 * modules/i-ring-tests: New file.
24116 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
24119 2007-10-11 Bruno Haible <bruno@clisp.org>
24121 * modules/filenamecat-tests: New file.
24122 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
24123 * lib/filenamecat.c: Remove test code.
24125 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
24127 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
24129 * lib/strerror.c: Include <string.h> always, to test interface,
24130 and to remove the need for the dummy.
24131 Include intprops.h to compute width instead of doing it ourselves
24132 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
24133 (strerror): Define it to return NULL if there's no system strerror.
24134 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
24135 Omit !HAVE_STRERROR code. We don't need to worry about supporting
24136 ancient pre-strerror Unix systems well any more. Saying "unknown
24137 system error" is enough.
24138 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
24139 simpler strerror.c implementation.
24140 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
24141 Simplify the tests to reflect the simpler strerror implementation.
24142 * modules/strerror (Depends-on): Add intprops.
24144 2007-10-09 Eric Blake <ebb9@byu.net>
24146 Silence test-fpending.
24147 * modules/fpending-tests (Files): Add wrapper script.
24148 * tests/test-fpending.sh: New file.
24150 2007-10-09 Bruno Haible <bruno@clisp.org>
24152 * MODULES.html.sh (func_module): Don't create a hyperlink for
24153 function names like 'printf_frexp'.
24154 (Misc): Add crc, memxor.
24155 (Characteristics of floating types): New section.
24156 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
24157 isnanf-nolibm, signbit, trunc, truncf, truncl.
24158 (Enhancements for ISO C 99 functions): New subsection Input/output.
24159 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
24160 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
24161 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
24162 (Compatibility checks for POSIX:2001 functions): Add clock-time.
24163 (Enhancements for POSIX:2001 functions): Add chdir-long.
24164 (File system functions): Add areadlink, chdir-safer, read-file.
24165 Remove cycle-check.
24166 (File system as inode set): New section.
24167 (Date and time): Add gethrxtime.
24168 (Multithreading): Add openmp.
24169 (Internationalization functions): Add localename.
24170 (Unicode string functions): Add unistr/u*-mbsnlen.
24171 (Support for maintaining and releasing projects): Add git-version-gen.
24172 (Lone files): Remove directories.
24174 2007-10-08 Ben Pfaff <blp@gnu.org>
24176 * lib/xmalloca.h: Fix typo in comment.
24178 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
24180 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
24181 when avoiding problems with integer overflow. Use a portable test
24184 2007-10-08 Simon Josefsson <simon@josefsson.org>
24186 * modules/dummy (License): Change to LGPLv2+.
24187 * modules/float (License): Likewise
24188 * modules/realloc (License): Likewise
24189 * modules/stdlib (License): Likewise
24191 2007-10-07 Bruno Haible <bruno@clisp.org>
24193 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
24194 * floor.c (TWO_MANT_DIG): Likewise.
24195 * ceil.c (TWO_MANT_DIG): Likewise.
24196 Reported by Ben Pfaff.
24198 2007-10-07 Bruno Haible <bruno@clisp.org>
24200 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
24201 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
24202 * lib/frexp.c (FUNC): Likewise.
24203 * lib/printf-frexp.h (printf_frexp): Likewise.
24204 * lib/printf-frexpl.h (printf_frexpl): Likewise.
24205 * lib/printf-frexp.c (FUNC): Likewise.
24206 Suggested by Jim Meyering.
24208 2007-10-07 Jim Meyering <meyering@redhat.com>
24210 Make xnanosleep's integer overflow test more robust.
24211 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
24212 so that gcc-4.3.0 doesn't optimize away this test for overflow.
24214 2007-10-07 Bruno Haible <bruno@clisp.org>
24216 * NEWS: Mention the license change.
24218 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
24219 abbreviations in the modules files.
24221 Change copyright notice from GPLv2+ to GPLv3+.
24222 * README: Change copyright notice.
24223 * MODULES.html.sh: Likewise.
24224 * build-aux/bootstrap.conf: Likewise.
24225 * build-aux/config.libpath: Likewise.
24226 * build-aux/csharpcomp.sh.in: Likewise.
24227 * build-aux/csharpexec.sh.in: Likewise.
24228 * build-aux/install-reloc: Likewise.
24229 * build-aux/javacomp.sh.in: Likewise.
24230 * build-aux/javaexec.sh.in: Likewise.
24231 * build-aux/ldd.sh.in: Likewise.
24232 * build-aux/reloc-ldflags: Likewise.
24233 * build-aux/relocatable.sh.in: Likewise.
24234 * build-aux/x-to-1.in: Likewise.
24235 * check-module: Likewise.
24236 * config/srclistvars.sh: Likewise.
24237 * gnulib-tool: Likewise.
24238 * lib/acl-internal.h: Likewise.
24239 * lib/acl.c: Likewise.
24240 * lib/acl.h: Likewise.
24241 * lib/acl_entries.c: Likewise.
24242 * lib/areadlink-with-size.c: Likewise.
24243 * lib/areadlink.c: Likewise.
24244 * lib/areadlink.h: Likewise.
24245 * lib/argmatch.c: Likewise.
24246 * lib/argmatch.h: Likewise.
24247 * lib/argp-ba.c: Likewise.
24248 * lib/argp-eexst.c: Likewise.
24249 * lib/argp-fmtstream.c: Likewise.
24250 * lib/argp-fmtstream.h: Likewise.
24251 * lib/argp-fs-xinl.c: Likewise.
24252 * lib/argp-help.c: Likewise.
24253 * lib/argp-namefrob.h: Likewise.
24254 * lib/argp-parse.c: Likewise.
24255 * lib/argp-pin.c: Likewise.
24256 * lib/argp-pv.c: Likewise.
24257 * lib/argp-pvh.c: Likewise.
24258 * lib/argp-xinl.c: Likewise.
24259 * lib/argp.h: Likewise.
24260 * lib/at-func.c: Likewise.
24261 * lib/atanl.c: Likewise.
24262 * lib/backupfile.c: Likewise.
24263 * lib/backupfile.h: Likewise.
24264 * lib/basename.c: Likewise.
24265 * lib/binary-io.h: Likewise.
24266 * lib/byteswap.in.h: Likewise.
24267 * lib/c-stack.c: Likewise.
24268 * lib/c-stack.h: Likewise.
24269 * lib/c-strcasestr.c: Likewise.
24270 * lib/c-strcasestr.h: Likewise.
24271 * lib/c-strstr.c: Likewise.
24272 * lib/c-strstr.h: Likewise.
24273 * lib/c-strtod.c: Likewise.
24274 * lib/calloc.c: Likewise.
24275 * lib/canon-host.c: Likewise.
24276 * lib/canon-host.h: Likewise.
24277 * lib/canonicalize-lgpl.c: Likewise.
24278 * lib/canonicalize.c: Likewise.
24279 * lib/canonicalize.h: Likewise.
24280 * lib/ceil.c: Likewise.
24281 * lib/ceilf.c: Likewise.
24282 * lib/ceill.c: Likewise.
24283 * lib/chdir-long.c: Likewise.
24284 * lib/chdir-long.h: Likewise.
24285 * lib/chdir-safer.c: Likewise.
24286 * lib/chdir-safer.h: Likewise.
24287 * lib/chown.c: Likewise.
24288 * lib/classpath.c: Likewise.
24289 * lib/classpath.h: Likewise.
24290 * lib/clean-temp.c: Likewise.
24291 * lib/clean-temp.h: Likewise.
24292 * lib/cloexec.c: Likewise.
24293 * lib/close-stream.c: Likewise.
24294 * lib/closein.c: Likewise.
24295 * lib/closein.h: Likewise.
24296 * lib/closeout.c: Likewise.
24297 * lib/closeout.h: Likewise.
24298 * lib/concat-filename.c: Likewise.
24299 * lib/copy-file.c: Likewise.
24300 * lib/copy-file.h: Likewise.
24301 * lib/count-one-bits.h: Likewise.
24302 * lib/crc.c: Likewise.
24303 * lib/crc.h: Likewise.
24304 * lib/creat-safer.c: Likewise.
24305 * lib/csharpcomp.c: Likewise.
24306 * lib/csharpcomp.h: Likewise.
24307 * lib/csharpexec.c: Likewise.
24308 * lib/csharpexec.h: Likewise.
24309 * lib/cycle-check.c: Likewise.
24310 * lib/cycle-check.h: Likewise.
24311 * lib/diacrit.c: Likewise.
24312 * lib/diacrit.h: Likewise.
24313 * lib/diffseq.h: Likewise.
24314 * lib/dirchownmod.c: Likewise.
24315 * lib/dirent.in.h: Likewise.
24316 * lib/dirfd.c: Likewise.
24317 * lib/dirfd.h: Likewise.
24318 * lib/dirname.c: Likewise.
24319 * lib/dirname.h: Likewise.
24320 * lib/dummy.c: Likewise.
24321 * lib/dup-safer.c: Likewise.
24322 * lib/dup2.c: Likewise.
24323 * lib/eealloc.h: Likewise.
24324 * lib/error.c: Likewise.
24325 * lib/error.h: Likewise.
24326 * lib/euidaccess.c: Likewise.
24327 * lib/exclude.c: Likewise.
24328 * lib/exclude.h: Likewise.
24329 * lib/execute.c: Likewise.
24330 * lib/execute.h: Likewise.
24331 * lib/exitfail.c: Likewise.
24332 * lib/exitfail.h: Likewise.
24333 * lib/expl.c: Likewise.
24334 * lib/fatal-signal.c: Likewise.
24335 * lib/fatal-signal.h: Likewise.
24336 * lib/fbufmode.c: Likewise.
24337 * lib/fbufmode.h: Likewise.
24338 * lib/fchdir.c: Likewise.
24339 * lib/fchmodat.c: Likewise.
24340 * lib/fchownat.c: Likewise.
24341 * lib/fcntl--.h: Likewise.
24342 * lib/fcntl-safer.h: Likewise.
24343 * lib/fcntl.in.h: Likewise.
24344 * lib/fd-safer.c: Likewise.
24345 * lib/fflush.c: Likewise.
24346 * lib/file-has-acl.c: Likewise.
24347 * lib/file-set.c: Likewise.
24348 * lib/file-type.c: Likewise.
24349 * lib/file-type.h: Likewise.
24350 * lib/fileblocks.c: Likewise.
24351 * lib/filemode.c: Likewise.
24352 * lib/filemode.h: Likewise.
24353 * lib/filename.h: Likewise.
24354 * lib/filenamecat.c: Likewise.
24355 * lib/filenamecat.h: Likewise.
24356 * lib/findprog.c: Likewise.
24357 * lib/findprog.h: Likewise.
24358 * lib/float.in.h: Likewise.
24359 * lib/floor.c: Likewise.
24360 * lib/floorf.c: Likewise.
24361 * lib/floorl.c: Likewise.
24362 * lib/fopen-safer.c: Likewise.
24363 * lib/fopen.c: Likewise.
24364 * lib/fpending.c: Likewise.
24365 * lib/fpending.h: Likewise.
24366 * lib/fprintf.c: Likewise.
24367 * lib/fprintftime.h: Likewise.
24368 * lib/fpucw.h: Likewise.
24369 * lib/fpurge.c: Likewise.
24370 * lib/fpurge.h: Likewise.
24371 * lib/freadable.c: Likewise.
24372 * lib/freadable.h: Likewise.
24373 * lib/freadahead.c: Likewise.
24374 * lib/freadahead.h: Likewise.
24375 * lib/freading.c: Likewise.
24376 * lib/freading.h: Likewise.
24377 * lib/free.c: Likewise.
24378 * lib/freopen.c: Likewise.
24379 * lib/frexp.c: Likewise.
24380 * lib/frexpl.c: Likewise.
24381 * lib/fseek.c: Likewise.
24382 * lib/fseterr.c: Likewise.
24383 * lib/fseterr.h: Likewise.
24384 * lib/fstatat.c: Likewise.
24385 * lib/fstrcmp.c: Likewise.
24386 * lib/fstrcmp.h: Likewise.
24387 * lib/fsusage.c: Likewise.
24388 * lib/fsusage.h: Likewise.
24389 * lib/ftell.c: Likewise.
24390 * lib/ftello.c: Likewise.
24391 * lib/fts-cycle.c: Likewise.
24392 * lib/fts.c: Likewise.
24393 * lib/fts_.h: Likewise.
24394 * lib/full-read.c: Likewise.
24395 * lib/full-read.h: Likewise.
24396 * lib/full-write.c: Likewise.
24397 * lib/full-write.h: Likewise.
24398 * lib/fwritable.c: Likewise.
24399 * lib/fwritable.h: Likewise.
24400 * lib/fwriteerror.c: Likewise.
24401 * lib/fwriteerror.h: Likewise.
24402 * lib/fwriting.c: Likewise.
24403 * lib/fwriting.h: Likewise.
24404 * lib/gcd.c: Likewise.
24405 * lib/gcd.h: Likewise.
24406 * lib/getcwd.c: Likewise.
24407 * lib/getdate.h: Likewise.
24408 * lib/getdate.y: Likewise.
24409 * lib/getdomainname.c: Likewise.
24410 * lib/getdomainname.h: Likewise.
24411 * lib/getgroups.c: Likewise.
24412 * lib/gethostname.c: Likewise.
24413 * lib/gethrxtime.c: Likewise.
24414 * lib/gethrxtime.h: Likewise.
24415 * lib/getloadavg.c: Likewise.
24416 * lib/getndelim2.c: Likewise.
24417 * lib/getndelim2.h: Likewise.
24418 * lib/getnline.c: Likewise.
24419 * lib/getnline.h: Likewise.
24420 * lib/getopt.c: Likewise.
24421 * lib/getopt.in.h: Likewise.
24422 * lib/getopt1.c: Likewise.
24423 * lib/getopt_int.h: Likewise.
24424 * lib/getpagesize.h: Likewise.
24425 * lib/getsubopt.c: Likewise.
24426 * lib/gettime.c: Likewise.
24427 * lib/getugroups.c: Likewise.
24428 * lib/getugroups.h: Likewise.
24429 * lib/getusershell.c: Likewise.
24430 * lib/gl_anyavltree_list1.h: Likewise.
24431 * lib/gl_anyavltree_list2.h: Likewise.
24432 * lib/gl_anyhash_list1.h: Likewise.
24433 * lib/gl_anyhash_list2.h: Likewise.
24434 * lib/gl_anylinked_list1.h: Likewise.
24435 * lib/gl_anylinked_list2.h: Likewise.
24436 * lib/gl_anyrbtree_list1.h: Likewise.
24437 * lib/gl_anyrbtree_list2.h: Likewise.
24438 * lib/gl_anytree_list1.h: Likewise.
24439 * lib/gl_anytree_list2.h: Likewise.
24440 * lib/gl_anytree_oset.h: Likewise.
24441 * lib/gl_anytreehash_list1.h: Likewise.
24442 * lib/gl_anytreehash_list2.h: Likewise.
24443 * lib/gl_array_list.c: Likewise.
24444 * lib/gl_array_list.h: Likewise.
24445 * lib/gl_array_oset.c: Likewise.
24446 * lib/gl_array_oset.h: Likewise.
24447 * lib/gl_avltree_list.c: Likewise.
24448 * lib/gl_avltree_list.h: Likewise.
24449 * lib/gl_avltree_oset.c: Likewise.
24450 * lib/gl_avltree_oset.h: Likewise.
24451 * lib/gl_avltreehash_list.c: Likewise.
24452 * lib/gl_avltreehash_list.h: Likewise.
24453 * lib/gl_carray_list.c: Likewise.
24454 * lib/gl_carray_list.h: Likewise.
24455 * lib/gl_linked_list.c: Likewise.
24456 * lib/gl_linked_list.h: Likewise.
24457 * lib/gl_linkedhash_list.c: Likewise.
24458 * lib/gl_linkedhash_list.h: Likewise.
24459 * lib/gl_list.c: Likewise.
24460 * lib/gl_list.h: Likewise.
24461 * lib/gl_oset.c: Likewise.
24462 * lib/gl_oset.h: Likewise.
24463 * lib/gl_rbtree_list.c: Likewise.
24464 * lib/gl_rbtree_list.h: Likewise.
24465 * lib/gl_rbtree_oset.c: Likewise.
24466 * lib/gl_rbtree_oset.h: Likewise.
24467 * lib/gl_rbtreehash_list.c: Likewise.
24468 * lib/gl_rbtreehash_list.h: Likewise.
24469 * lib/gl_sublist.c: Likewise.
24470 * lib/gl_sublist.h: Likewise.
24471 * lib/group-member.c: Likewise.
24472 * lib/group-member.h: Likewise.
24473 * lib/hard-locale.c: Likewise.
24474 * lib/hard-locale.h: Likewise.
24475 * lib/hash-pjw.c: Likewise.
24476 * lib/hash-pjw.h: Likewise.
24477 * lib/hash-triple.c: Likewise.
24478 * lib/hash.c: Likewise.
24479 * lib/hash.h: Likewise.
24480 * lib/human.c: Likewise.
24481 * lib/human.h: Likewise.
24482 * lib/i-ring.c: Likewise.
24483 * lib/i-ring.h: Likewise.
24484 * lib/idcache.c: Likewise.
24485 * lib/imaxabs.c: Likewise.
24486 * lib/imaxdiv.c: Likewise.
24487 * lib/inet_pton.c: Likewise.
24488 * lib/inet_pton.h: Likewise.
24489 * lib/intprops.h: Likewise.
24490 * lib/inttostr.c: Likewise.
24491 * lib/inttostr.h: Likewise.
24492 * lib/inttypes.in.h: Likewise.
24493 * lib/isapipe.c: Likewise.
24494 * lib/isdir.c: Likewise.
24495 * lib/isnan.c: Likewise.
24496 * lib/isnan.h: Likewise.
24497 * lib/isnanf.c: Likewise.
24498 * lib/isnanf.h: Likewise.
24499 * lib/isnanl-nolibm.h: Likewise.
24500 * lib/isnanl.c: Likewise.
24501 * lib/isnanl.h: Likewise.
24502 * lib/javacomp.c: Likewise.
24503 * lib/javacomp.h: Likewise.
24504 * lib/javaexec.c: Likewise.
24505 * lib/javaexec.h: Likewise.
24506 * lib/javaversion.c: Likewise.
24507 * lib/javaversion.h: Likewise.
24508 * lib/javaversion.java: Likewise.
24509 * lib/lbrkprop.h: Likewise.
24510 * lib/lchmod.h: Likewise.
24511 * lib/lchown.c: Likewise.
24512 * lib/ldexpl.c: Likewise.
24513 * lib/linebreak.c: Likewise.
24514 * lib/linebreak.h: Likewise.
24515 * lib/linebuffer.c: Likewise.
24516 * lib/linebuffer.h: Likewise.
24517 * lib/locale.in.h: Likewise.
24518 * lib/logl.c: Likewise.
24519 * lib/long-options.c: Likewise.
24520 * lib/long-options.h: Likewise.
24521 * lib/lstat.c: Likewise.
24522 * lib/lstat.h: Likewise.
24523 * lib/math.in.h: Likewise.
24524 * lib/mbchar.c: Likewise.
24525 * lib/mbchar.h: Likewise.
24526 * lib/mbfile.h: Likewise.
24527 * lib/mbiter.h: Likewise.
24528 * lib/mbscasecmp.c: Likewise.
24529 * lib/mbscasestr.c: Likewise.
24530 * lib/mbschr.c: Likewise.
24531 * lib/mbscspn.c: Likewise.
24532 * lib/mbslen.c: Likewise.
24533 * lib/mbsncasecmp.c: Likewise.
24534 * lib/mbsnlen.c: Likewise.
24535 * lib/mbspbrk.c: Likewise.
24536 * lib/mbspcasecmp.c: Likewise.
24537 * lib/mbsrchr.c: Likewise.
24538 * lib/mbssep.c: Likewise.
24539 * lib/mbsspn.c: Likewise.
24540 * lib/mbsstr.c: Likewise.
24541 * lib/mbstok_r.c: Likewise.
24542 * lib/mbswidth.c: Likewise.
24543 * lib/mbswidth.h: Likewise.
24544 * lib/mbuiter.h: Likewise.
24545 * lib/memcasecmp.c: Likewise.
24546 * lib/memcasecmp.h: Likewise.
24547 * lib/memchr.c: Likewise.
24548 * lib/memcmp.c: Likewise.
24549 * lib/memcoll.c: Likewise.
24550 * lib/memcoll.h: Likewise.
24551 * lib/memcpy.c: Likewise.
24552 * lib/memrchr.c: Likewise.
24553 * lib/mkancesdirs.c: Likewise.
24554 * lib/mkdir-p.c: Likewise.
24555 * lib/mkdir-p.h: Likewise.
24556 * lib/mkdir.c: Likewise.
24557 * lib/mkdirat.c: Likewise.
24558 * lib/mkdtemp.c: Likewise.
24559 * lib/mkstemp-safer.c: Likewise.
24560 * lib/mkstemp.c: Likewise.
24561 * lib/modechange.c: Likewise.
24562 * lib/modechange.h: Likewise.
24563 * lib/mountlist.c: Likewise.
24564 * lib/mountlist.h: Likewise.
24565 * lib/mpsort.c: Likewise.
24566 * lib/nanosleep.c: Likewise.
24567 * lib/obstack.c: Likewise.
24568 * lib/obstack.h: Likewise.
24569 * lib/open-safer.c: Likewise.
24570 * lib/open.c: Likewise.
24571 * lib/openat-die.c: Likewise.
24572 * lib/openat-priv.h: Likewise.
24573 * lib/openat-proc.c: Likewise.
24574 * lib/openat.c: Likewise.
24575 * lib/openat.h: Likewise.
24576 * lib/pagealign_alloc.c: Likewise.
24577 * lib/pagealign_alloc.h: Likewise.
24578 * lib/physmem.c: Likewise.
24579 * lib/physmem.h: Likewise.
24580 * lib/pipe-safer.c: Likewise.
24581 * lib/pipe.c: Likewise.
24582 * lib/pipe.h: Likewise.
24583 * lib/posixtm.c: Likewise.
24584 * lib/posixtm.h: Likewise.
24585 * lib/posixver.c: Likewise.
24586 * lib/printf-frexp.c: Likewise.
24587 * lib/printf-frexp.h: Likewise.
24588 * lib/printf-frexpl.c: Likewise.
24589 * lib/printf-frexpl.h: Likewise.
24590 * lib/printf.c: Likewise.
24591 * lib/progname.c: Likewise.
24592 * lib/progname.h: Likewise.
24593 * lib/progreloc.c: Likewise.
24594 * lib/putenv.c: Likewise.
24595 * lib/quote.c: Likewise.
24596 * lib/quote.h: Likewise.
24597 * lib/quotearg.c: Likewise.
24598 * lib/quotearg.h: Likewise.
24599 * lib/raise.c: Likewise.
24600 * lib/readline.c: Likewise.
24601 * lib/readline.h: Likewise.
24602 * lib/readlink.c: Likewise.
24603 * lib/readtokens.c: Likewise.
24604 * lib/readtokens.h: Likewise.
24605 * lib/readtokens0.c: Likewise.
24606 * lib/readtokens0.h: Likewise.
24607 * lib/readutmp.c: Likewise.
24608 * lib/readutmp.h: Likewise.
24609 * lib/realloc.c: Likewise.
24610 * lib/relocwrapper.c: Likewise.
24611 * lib/rename-dest-slash.c: Likewise.
24612 * lib/rename.c: Likewise.
24613 * lib/rmdir.c: Likewise.
24614 * lib/rpmatch.c: Likewise.
24615 * lib/safe-read.c: Likewise.
24616 * lib/safe-read.h: Likewise.
24617 * lib/safe-write.c: Likewise.
24618 * lib/safe-write.h: Likewise.
24619 * lib/same-inode.h: Likewise.
24620 * lib/same.c: Likewise.
24621 * lib/same.h: Likewise.
24622 * lib/save-cwd.c: Likewise.
24623 * lib/save-cwd.h: Likewise.
24624 * lib/savedir.c: Likewise.
24625 * lib/savedir.h: Likewise.
24626 * lib/savewd.c: Likewise.
24627 * lib/savewd.h: Likewise.
24628 * lib/search.in.h: Likewise.
24629 * lib/setenv.c: Likewise.
24630 * lib/setenv.h: Likewise.
24631 * lib/settime.c: Likewise.
24632 * lib/sh-quote.c: Likewise.
24633 * lib/sh-quote.h: Likewise.
24634 * lib/sig2str.c: Likewise.
24635 * lib/sig2str.h: Likewise.
24636 * lib/signal.in.h: Likewise.
24637 * lib/signbitd.c: Likewise.
24638 * lib/signbitf.c: Likewise.
24639 * lib/signbitl.c: Likewise.
24640 * lib/sigprocmask.c: Likewise.
24641 * lib/sincosl.c: Likewise.
24642 * lib/sleep.c: Likewise.
24643 * lib/sprintf.c: Likewise.
24644 * lib/sqrtl.c: Likewise.
24645 * lib/stat-time.h: Likewise.
24646 * lib/stdio--.h: Likewise.
24647 * lib/stdio-safer.h: Likewise.
24648 * lib/stdlib--.h: Likewise.
24649 * lib/stdlib-safer.h: Likewise.
24650 * lib/stdlib.in.h: Likewise.
24651 * lib/stpcpy.c: Likewise.
24652 * lib/stpncpy.c: Likewise.
24653 * lib/strchrnul.c: Likewise.
24654 * lib/strcspn.c: Likewise.
24655 * lib/strerror.c: Likewise.
24656 * lib/strftime.c: Likewise.
24657 * lib/strftime.h: Likewise.
24658 * lib/striconveh.c: Likewise.
24659 * lib/striconveh.h: Likewise.
24660 * lib/striconveha.c: Likewise.
24661 * lib/striconveha.h: Likewise.
24662 * lib/stripslash.c: Likewise.
24663 * lib/strnlen1.c: Likewise.
24664 * lib/strnlen1.h: Likewise.
24665 * lib/strtod.c: Likewise.
24666 * lib/strtoimax.c: Likewise.
24667 * lib/strtok_r.c: Likewise.
24668 * lib/strtol.c: Likewise.
24669 * lib/strtoll.c: Likewise.
24670 * lib/strtoul.c: Likewise.
24671 * lib/strtoull.c: Likewise.
24672 * lib/sysexits.in.h: Likewise.
24673 * lib/tempname.c: Likewise.
24674 * lib/tempname.h: Likewise.
24675 * lib/timespec.h: Likewise.
24676 * lib/tls.c: Likewise.
24677 * lib/tls.h: Likewise.
24678 * lib/tmpdir.c: Likewise.
24679 * lib/tmpdir.h: Likewise.
24680 * lib/tmpfile-safer.c: Likewise.
24681 * lib/tmpfile.c: Likewise.
24682 * lib/trigl.c: Likewise.
24683 * lib/trigl.h: Likewise.
24684 * lib/trim.c: Likewise.
24685 * lib/trim.h: Likewise.
24686 * lib/trunc.c: Likewise.
24687 * lib/truncf.c: Likewise.
24688 * lib/truncl.c: Likewise.
24689 * lib/tsearch.c: Likewise.
24690 * lib/unicodeio.c: Likewise.
24691 * lib/unicodeio.h: Likewise.
24692 * lib/unistd--.h: Likewise.
24693 * lib/unistd-safer.h: Likewise.
24694 * lib/unistdio/ulc-fprintf.c: Likewise.
24695 * lib/unistdio/ulc-vfprintf.c: Likewise.
24696 * lib/unlinkdir.c: Likewise.
24697 * lib/unlinkdir.h: Likewise.
24698 * lib/unlocked-io.h: Likewise.
24699 * lib/unsetenv.c: Likewise.
24700 * lib/userspec.c: Likewise.
24701 * lib/utime.c: Likewise.
24702 * lib/utimecmp.c: Likewise.
24703 * lib/utimecmp.h: Likewise.
24704 * lib/utimens.c: Likewise.
24705 * lib/verify.h: Likewise.
24706 * lib/verror.c: Likewise.
24707 * lib/verror.h: Likewise.
24708 * lib/version-etc-fsf.c: Likewise.
24709 * lib/version-etc.c: Likewise.
24710 * lib/version-etc.h: Likewise.
24711 * lib/vfprintf.c: Likewise.
24712 * lib/vprintf.c: Likewise.
24713 * lib/vsprintf.c: Likewise.
24714 * lib/w32spawn.h: Likewise.
24715 * lib/wait-process.c: Likewise.
24716 * lib/wait-process.h: Likewise.
24717 * lib/wcwidth.c: Likewise.
24718 * lib/write-any-file.c: Likewise.
24719 * lib/xalloc-die.c: Likewise.
24720 * lib/xalloc.h: Likewise.
24721 * lib/xasprintf.c: Likewise.
24722 * lib/xgetcwd.c: Likewise.
24723 * lib/xgetcwd.h: Likewise.
24724 * lib/xgetdomainname.c: Likewise.
24725 * lib/xgetdomainname.h: Likewise.
24726 * lib/xgethostname.c: Likewise.
24727 * lib/xmalloc.c: Likewise.
24728 * lib/xmalloca.c: Likewise.
24729 * lib/xmalloca.h: Likewise.
24730 * lib/xmemcoll.c: Likewise.
24731 * lib/xnanosleep.c: Likewise.
24732 * lib/xreadlink.c: Likewise.
24733 * lib/xreadlink.h: Likewise.
24734 * lib/xsetenv.c: Likewise.
24735 * lib/xsetenv.h: Likewise.
24736 * lib/xstriconv.c: Likewise.
24737 * lib/xstriconv.h: Likewise.
24738 * lib/xstrndup.c: Likewise.
24739 * lib/xstrndup.h: Likewise.
24740 * lib/xstrtod.c: Likewise.
24741 * lib/xstrtod.h: Likewise.
24742 * lib/xstrtol-error.c: Likewise.
24743 * lib/xstrtol.c: Likewise.
24744 * lib/xstrtol.h: Likewise.
24745 * lib/xtime.h: Likewise.
24746 * lib/xvasprintf.c: Likewise.
24747 * lib/xvasprintf.h: Likewise.
24748 * lib/yesno.c: Likewise.
24749 * lib/yesno.h: Likewise.
24750 * posix-modules: Likewise.
24751 * tests/test-alloca-opt.c: Likewise.
24752 * tests/test-arcfour.c: Likewise.
24753 * tests/test-arctwo.c: Likewise.
24754 * tests/test-argmatch.c: Likewise.
24755 * tests/test-argp-2.sh: Likewise.
24756 * tests/test-argp.c: Likewise.
24757 * tests/test-arpa_inet.c: Likewise.
24758 * tests/test-array_list.c: Likewise.
24759 * tests/test-array_oset.c: Likewise.
24760 * tests/test-atexit.c: Likewise.
24761 * tests/test-avltree_list.c: Likewise.
24762 * tests/test-avltree_oset.c: Likewise.
24763 * tests/test-avltreehash_list.c: Likewise.
24764 * tests/test-base64.c: Likewise.
24765 * tests/test-binary-io.c: Likewise.
24766 * tests/test-byteswap.c: Likewise.
24767 * tests/test-c-ctype.c: Likewise.
24768 * tests/test-c-strcasecmp.c: Likewise.
24769 * tests/test-c-strcasestr.c: Likewise.
24770 * tests/test-c-strncasecmp.c: Likewise.
24771 * tests/test-c-strstr.c: Likewise.
24772 * tests/test-canonicalize-lgpl.c: Likewise.
24773 * tests/test-canonicalize.c: Likewise.
24774 * tests/test-carray_list.c: Likewise.
24775 * tests/test-ceilf.c: Likewise.
24776 * tests/test-ceill.c: Likewise.
24777 * tests/test-count-one-bits.c: Likewise.
24778 * tests/test-crc.c: Likewise.
24779 * tests/test-dirname.c: Likewise.
24780 * tests/test-fbufmode.c: Likewise.
24781 * tests/test-fcntl.c: Likewise.
24782 * tests/test-fflush.c: Likewise.
24783 * tests/test-floorf.c: Likewise.
24784 * tests/test-floorl.c: Likewise.
24785 * tests/test-fopen.c: Likewise.
24786 * tests/test-fprintf-posix.c: Likewise.
24787 * tests/test-fprintf-posix.h: Likewise.
24788 * tests/test-fpurge.c: Likewise.
24789 * tests/test-freadable.c: Likewise.
24790 * tests/test-freadahead.c: Likewise.
24791 * tests/test-freading.c: Likewise.
24792 * tests/test-freopen.c: Likewise.
24793 * tests/test-frexp.c: Likewise.
24794 * tests/test-frexpl.c: Likewise.
24795 * tests/test-fseek.c: Likewise.
24796 * tests/test-fseeko.c: Likewise.
24797 * tests/test-fseterr.c: Likewise.
24798 * tests/test-fstrcmp.c: Likewise.
24799 * tests/test-ftell.c: Likewise.
24800 * tests/test-ftello.c: Likewise.
24801 * tests/test-fwritable.c: Likewise.
24802 * tests/test-fwriting.c: Likewise.
24803 * tests/test-getaddrinfo.c: Likewise.
24804 * tests/test-getpass.c: Likewise.
24805 * tests/test-gettimeofday.c: Likewise.
24806 * tests/test-hmac-md5.c: Likewise.
24807 * tests/test-hmac-sha1.c: Likewise.
24808 * tests/test-iconv.c: Likewise.
24809 * tests/test-iconvme.c: Likewise.
24810 * tests/test-inttypes.c: Likewise.
24811 * tests/test-isnan.c: Likewise.
24812 * tests/test-isnanf.c: Likewise.
24813 * tests/test-isnanl-nolibm.c: Likewise.
24814 * tests/test-isnanl.c: Likewise.
24815 * tests/test-isnanl.h: Likewise.
24816 * tests/test-ldexpl.c: Likewise.
24817 * tests/test-linked_list.c: Likewise.
24818 * tests/test-linkedhash_list.c: Likewise.
24819 * tests/test-locale.c: Likewise.
24820 * tests/test-localename.c: Likewise.
24821 * tests/test-lock.c: Likewise.
24822 * tests/test-lseek.c: Likewise.
24823 * tests/test-malloca.c: Likewise.
24824 * tests/test-math.c: Likewise.
24825 * tests/test-mbscasecmp.c: Likewise.
24826 * tests/test-mbscasestr1.c: Likewise.
24827 * tests/test-mbscasestr2.c: Likewise.
24828 * tests/test-mbscasestr3.c: Likewise.
24829 * tests/test-mbscasestr4.c: Likewise.
24830 * tests/test-mbschr.c: Likewise.
24831 * tests/test-mbscspn.c: Likewise.
24832 * tests/test-mbsncasecmp.c: Likewise.
24833 * tests/test-mbspbrk.c: Likewise.
24834 * tests/test-mbspcasecmp.c: Likewise.
24835 * tests/test-mbsrchr.c: Likewise.
24836 * tests/test-mbsspn.c: Likewise.
24837 * tests/test-mbsstr1.c: Likewise.
24838 * tests/test-mbsstr2.c: Likewise.
24839 * tests/test-mbsstr3.c: Likewise.
24840 * tests/test-md5.c: Likewise.
24841 * tests/test-memmem.c: Likewise.
24842 * tests/test-netinet_in.c: Likewise.
24843 * tests/test-open.c: Likewise.
24844 * tests/test-printf-frexp.c: Likewise.
24845 * tests/test-printf-frexpl.c: Likewise.
24846 * tests/test-printf-posix.c: Likewise.
24847 * tests/test-printf-posix.h: Likewise.
24848 * tests/test-rbtree_list.c: Likewise.
24849 * tests/test-rbtree_oset.c: Likewise.
24850 * tests/test-rbtreehash_list.c: Likewise.
24851 * tests/test-read-file.c: Likewise.
24852 * tests/test-rijndael.c: Likewise.
24853 * tests/test-search.c: Likewise.
24854 * tests/test-signbit.c: Likewise.
24855 * tests/test-sleep.c: Likewise.
24856 * tests/test-snprintf-posix.c: Likewise.
24857 * tests/test-snprintf-posix.h: Likewise.
24858 * tests/test-snprintf.c: Likewise.
24859 * tests/test-sprintf-posix.c: Likewise.
24860 * tests/test-sprintf-posix.h: Likewise.
24861 * tests/test-stat-time.c: Likewise.
24862 * tests/test-stdbool.c: Likewise.
24863 * tests/test-stdint.c: Likewise.
24864 * tests/test-stdio.c: Likewise.
24865 * tests/test-stdlib.c: Likewise.
24866 * tests/test-stpncpy.c: Likewise.
24867 * tests/test-strcasestr.c: Likewise.
24868 * tests/test-striconv.c: Likewise.
24869 * tests/test-striconveh.c: Likewise.
24870 * tests/test-striconveha.c: Likewise.
24871 * tests/test-string.c: Likewise.
24872 * tests/test-sys_select.c: Likewise.
24873 * tests/test-sys_socket.c: Likewise.
24874 * tests/test-sys_stat.c: Likewise.
24875 * tests/test-sys_time.c: Likewise.
24876 * tests/test-sysexits.c: Likewise.
24877 * tests/test-time.c: Likewise.
24878 * tests/test-tls.c: Likewise.
24879 * tests/test-trunc.c: Likewise.
24880 * tests/test-truncf.c: Likewise.
24881 * tests/test-truncl.c: Likewise.
24882 * tests/test-unistd.c: Likewise.
24883 * tests/test-vasnprintf-posix.c: Likewise.
24884 * tests/test-vasnprintf-posix2.c: Likewise.
24885 * tests/test-vasnprintf.c: Likewise.
24886 * tests/test-vasprintf-posix.c: Likewise.
24887 * tests/test-vasprintf.c: Likewise.
24888 * tests/test-verify.c: Likewise.
24889 * tests/test-vfprintf-posix.c: Likewise.
24890 * tests/test-vprintf-posix.c: Likewise.
24891 * tests/test-vsnprintf-posix.c: Likewise.
24892 * tests/test-vsnprintf.c: Likewise.
24893 * tests/test-vsprintf-posix.c: Likewise.
24894 * tests/test-wchar.c: Likewise.
24895 * tests/test-wctype.c: Likewise.
24896 * tests/test-wcwidth.c: Likewise.
24897 * tests/test-xstrtol.c: Likewise.
24898 * tests/test-xvasprintf.c: Likewise.
24899 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
24900 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
24901 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24902 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24903 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24904 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
24905 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24906 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24907 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24908 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
24909 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24910 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24911 * tests/uniname/test-uninames.c: Likewise.
24912 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
24913 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
24914 * tests/unistdio/test-u16-printf1.h: Likewise.
24915 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
24916 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
24917 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
24918 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
24919 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24920 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24921 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
24922 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
24923 * tests/unistdio/test-u32-printf1.h: Likewise.
24924 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
24925 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
24926 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
24927 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
24928 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24929 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24930 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
24931 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
24932 * tests/unistdio/test-u8-printf1.h: Likewise.
24933 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
24934 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
24935 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
24936 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
24937 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24938 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24939 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
24940 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
24941 * tests/unistdio/test-ulc-printf1.h: Likewise.
24942 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
24943 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
24944 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
24945 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
24946 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24947 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24948 * tests/uniwidth/test-u16-strwidth.c: Likewise.
24949 * tests/uniwidth/test-u16-width.c: Likewise.
24950 * tests/uniwidth/test-u32-strwidth.c: Likewise.
24951 * tests/uniwidth/test-u32-width.c: Likewise.
24952 * tests/uniwidth/test-u8-strwidth.c: Likewise.
24953 * tests/uniwidth/test-u8-width.c: Likewise.
24954 * tests/uniwidth/test-uc_width.c: Likewise.
24955 * config/srclist-update: Likewise.
24956 (fixlicense): Update to GPLv3+.
24958 Change copyright notice from LGPLv2.1+ to LGPLv3+.
24959 * tests/test-tsearch.c: Change copyright notice.
24961 Change copyright notice from LGPLv2.0+ to LGPLv3+.
24962 * lib/c-strcaseeq.h: Change copyright notice.
24963 * lib/streq.h: Likewise.
24964 * lib/uniconv.h: Likewise.
24965 * lib/uniconv/u-conv-from-enc.h: Likewise.
24966 * lib/uniconv/u-conv-to-enc.h: Likewise.
24967 * lib/uniconv/u-strconv-from-enc.h: Likewise.
24968 * lib/uniconv/u-strconv-to-enc.h: Likewise.
24969 * lib/uniconv/u16-conv-from-enc.c: Likewise.
24970 * lib/uniconv/u16-conv-to-enc.c: Likewise.
24971 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
24972 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
24973 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
24974 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
24975 * lib/uniconv/u32-conv-from-enc.c: Likewise.
24976 * lib/uniconv/u32-conv-to-enc.c: Likewise.
24977 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
24978 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
24979 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
24980 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
24981 * lib/uniconv/u8-conv-from-enc.c: Likewise.
24982 * lib/uniconv/u8-conv-to-enc.c: Likewise.
24983 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
24984 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
24985 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
24986 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
24987 * lib/uniname.h: Likewise.
24988 * lib/uniname/uniname.c: Likewise.
24989 * lib/unistdio.h: Likewise.
24990 * lib/unistdio/u-asnprintf.h: Likewise.
24991 * lib/unistdio/u-asprintf.h: Likewise.
24992 * lib/unistdio/u-printf-args.c: Likewise.
24993 * lib/unistdio/u-printf-args.h: Likewise.
24994 * lib/unistdio/u-printf-parse.h: Likewise.
24995 * lib/unistdio/u-snprintf.h: Likewise.
24996 * lib/unistdio/u-sprintf.h: Likewise.
24997 * lib/unistdio/u-vasprintf.h: Likewise.
24998 * lib/unistdio/u-vsnprintf.h: Likewise.
24999 * lib/unistdio/u-vsprintf.h: Likewise.
25000 * lib/unistdio/u16-asnprintf.c: Likewise.
25001 * lib/unistdio/u16-asprintf.c: Likewise.
25002 * lib/unistdio/u16-printf-parse.c: Likewise.
25003 * lib/unistdio/u16-snprintf.c: Likewise.
25004 * lib/unistdio/u16-sprintf.c: Likewise.
25005 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
25006 * lib/unistdio/u16-u16-asprintf.c: Likewise.
25007 * lib/unistdio/u16-u16-snprintf.c: Likewise.
25008 * lib/unistdio/u16-u16-sprintf.c: Likewise.
25009 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
25010 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
25011 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
25012 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
25013 * lib/unistdio/u16-vasnprintf.c: Likewise.
25014 * lib/unistdio/u16-vasprintf.c: Likewise.
25015 * lib/unistdio/u16-vsnprintf.c: Likewise.
25016 * lib/unistdio/u16-vsprintf.c: Likewise.
25017 * lib/unistdio/u32-asnprintf.c: Likewise.
25018 * lib/unistdio/u32-asprintf.c: Likewise.
25019 * lib/unistdio/u32-printf-parse.c: Likewise.
25020 * lib/unistdio/u32-snprintf.c: Likewise.
25021 * lib/unistdio/u32-sprintf.c: Likewise.
25022 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
25023 * lib/unistdio/u32-u32-asprintf.c: Likewise.
25024 * lib/unistdio/u32-u32-snprintf.c: Likewise.
25025 * lib/unistdio/u32-u32-sprintf.c: Likewise.
25026 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
25027 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
25028 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
25029 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
25030 * lib/unistdio/u32-vasnprintf.c: Likewise.
25031 * lib/unistdio/u32-vasprintf.c: Likewise.
25032 * lib/unistdio/u32-vsnprintf.c: Likewise.
25033 * lib/unistdio/u32-vsprintf.c: Likewise.
25034 * lib/unistdio/u8-asnprintf.c: Likewise.
25035 * lib/unistdio/u8-asprintf.c: Likewise.
25036 * lib/unistdio/u8-printf-parse.c: Likewise.
25037 * lib/unistdio/u8-snprintf.c: Likewise.
25038 * lib/unistdio/u8-sprintf.c: Likewise.
25039 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
25040 * lib/unistdio/u8-u8-asprintf.c: Likewise.
25041 * lib/unistdio/u8-u8-snprintf.c: Likewise.
25042 * lib/unistdio/u8-u8-sprintf.c: Likewise.
25043 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
25044 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
25045 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
25046 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
25047 * lib/unistdio/u8-vasnprintf.c: Likewise.
25048 * lib/unistdio/u8-vasprintf.c: Likewise.
25049 * lib/unistdio/u8-vsnprintf.c: Likewise.
25050 * lib/unistdio/u8-vsprintf.c: Likewise.
25051 * lib/unistdio/ulc-asnprintf.c: Likewise.
25052 * lib/unistdio/ulc-asprintf.c: Likewise.
25053 * lib/unistdio/ulc-printf-parse.c: Likewise.
25054 * lib/unistdio/ulc-snprintf.c: Likewise.
25055 * lib/unistdio/ulc-sprintf.c: Likewise.
25056 * lib/unistdio/ulc-vasnprintf.c: Likewise.
25057 * lib/unistdio/ulc-vasprintf.c: Likewise.
25058 * lib/unistdio/ulc-vsnprintf.c: Likewise.
25059 * lib/unistdio/ulc-vsprintf.c: Likewise.
25060 * lib/unistr.h: Likewise.
25061 * lib/unistr/u-cpy-alloc.h: Likewise.
25062 * lib/unistr/u-cpy.h: Likewise.
25063 * lib/unistr/u-endswith.h: Likewise.
25064 * lib/unistr/u-move.h: Likewise.
25065 * lib/unistr/u-set.h: Likewise.
25066 * lib/unistr/u-startswith.h: Likewise.
25067 * lib/unistr/u-stpcpy.h: Likewise.
25068 * lib/unistr/u-stpncpy.h: Likewise.
25069 * lib/unistr/u-strcat.h: Likewise.
25070 * lib/unistr/u-strcpy.h: Likewise.
25071 * lib/unistr/u-strcspn.h: Likewise.
25072 * lib/unistr/u-strdup.h: Likewise.
25073 * lib/unistr/u-strlen.h: Likewise.
25074 * lib/unistr/u-strncat.h: Likewise.
25075 * lib/unistr/u-strncpy.h: Likewise.
25076 * lib/unistr/u-strnlen.h: Likewise.
25077 * lib/unistr/u-strpbrk.h: Likewise.
25078 * lib/unistr/u-strspn.h: Likewise.
25079 * lib/unistr/u-strstr.h: Likewise.
25080 * lib/unistr/u-strtok.h: Likewise.
25081 * lib/unistr/u16-check.c: Likewise.
25082 * lib/unistr/u16-chr.c: Likewise.
25083 * lib/unistr/u16-cmp.c: Likewise.
25084 * lib/unistr/u16-cpy-alloc.c: Likewise.
25085 * lib/unistr/u16-cpy.c: Likewise.
25086 * lib/unistr/u16-endswith.c: Likewise.
25087 * lib/unistr/u16-mblen.c: Likewise.
25088 * lib/unistr/u16-mbsnlen.c: Likewise.
25089 * lib/unistr/u16-mbtouc-aux.c: Likewise.
25090 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
25091 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
25092 * lib/unistr/u16-mbtouc.c: Likewise.
25093 * lib/unistr/u16-mbtoucr.c: Likewise.
25094 * lib/unistr/u16-move.c: Likewise.
25095 * lib/unistr/u16-next.c: Likewise.
25096 * lib/unistr/u16-prev.c: Likewise.
25097 * lib/unistr/u16-set.c: Likewise.
25098 * lib/unistr/u16-startswith.c: Likewise.
25099 * lib/unistr/u16-stpcpy.c: Likewise.
25100 * lib/unistr/u16-stpncpy.c: Likewise.
25101 * lib/unistr/u16-strcat.c: Likewise.
25102 * lib/unistr/u16-strchr.c: Likewise.
25103 * lib/unistr/u16-strcmp.c: Likewise.
25104 * lib/unistr/u16-strcpy.c: Likewise.
25105 * lib/unistr/u16-strcspn.c: Likewise.
25106 * lib/unistr/u16-strdup.c: Likewise.
25107 * lib/unistr/u16-strlen.c: Likewise.
25108 * lib/unistr/u16-strmblen.c: Likewise.
25109 * lib/unistr/u16-strmbtouc.c: Likewise.
25110 * lib/unistr/u16-strncat.c: Likewise.
25111 * lib/unistr/u16-strncmp.c: Likewise.
25112 * lib/unistr/u16-strncpy.c: Likewise.
25113 * lib/unistr/u16-strnlen.c: Likewise.
25114 * lib/unistr/u16-strpbrk.c: Likewise.
25115 * lib/unistr/u16-strrchr.c: Likewise.
25116 * lib/unistr/u16-strspn.c: Likewise.
25117 * lib/unistr/u16-strstr.c: Likewise.
25118 * lib/unistr/u16-strtok.c: Likewise.
25119 * lib/unistr/u16-to-u32.c: Likewise.
25120 * lib/unistr/u16-to-u8.c: Likewise.
25121 * lib/unistr/u16-uctomb-aux.c: Likewise.
25122 * lib/unistr/u16-uctomb.c: Likewise.
25123 * lib/unistr/u32-check.c: Likewise.
25124 * lib/unistr/u32-chr.c: Likewise.
25125 * lib/unistr/u32-cmp.c: Likewise.
25126 * lib/unistr/u32-cpy-alloc.c: Likewise.
25127 * lib/unistr/u32-cpy.c: Likewise.
25128 * lib/unistr/u32-endswith.c: Likewise.
25129 * lib/unistr/u32-mblen.c: Likewise.
25130 * lib/unistr/u32-mbsnlen.c: Likewise.
25131 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
25132 * lib/unistr/u32-mbtouc.c: Likewise.
25133 * lib/unistr/u32-mbtoucr.c: Likewise.
25134 * lib/unistr/u32-move.c: Likewise.
25135 * lib/unistr/u32-next.c: Likewise.
25136 * lib/unistr/u32-prev.c: Likewise.
25137 * lib/unistr/u32-set.c: Likewise.
25138 * lib/unistr/u32-startswith.c: Likewise.
25139 * lib/unistr/u32-stpcpy.c: Likewise.
25140 * lib/unistr/u32-stpncpy.c: Likewise.
25141 * lib/unistr/u32-strcat.c: Likewise.
25142 * lib/unistr/u32-strchr.c: Likewise.
25143 * lib/unistr/u32-strcmp.c: Likewise.
25144 * lib/unistr/u32-strcpy.c: Likewise.
25145 * lib/unistr/u32-strcspn.c: Likewise.
25146 * lib/unistr/u32-strdup.c: Likewise.
25147 * lib/unistr/u32-strlen.c: Likewise.
25148 * lib/unistr/u32-strmblen.c: Likewise.
25149 * lib/unistr/u32-strmbtouc.c: Likewise.
25150 * lib/unistr/u32-strncat.c: Likewise.
25151 * lib/unistr/u32-strncmp.c: Likewise.
25152 * lib/unistr/u32-strncpy.c: Likewise.
25153 * lib/unistr/u32-strnlen.c: Likewise.
25154 * lib/unistr/u32-strpbrk.c: Likewise.
25155 * lib/unistr/u32-strrchr.c: Likewise.
25156 * lib/unistr/u32-strspn.c: Likewise.
25157 * lib/unistr/u32-strstr.c: Likewise.
25158 * lib/unistr/u32-strtok.c: Likewise.
25159 * lib/unistr/u32-to-u16.c: Likewise.
25160 * lib/unistr/u32-to-u8.c: Likewise.
25161 * lib/unistr/u32-uctomb.c: Likewise.
25162 * lib/unistr/u8-check.c: Likewise.
25163 * lib/unistr/u8-chr.c: Likewise.
25164 * lib/unistr/u8-cmp.c: Likewise.
25165 * lib/unistr/u8-cpy-alloc.c: Likewise.
25166 * lib/unistr/u8-cpy.c: Likewise.
25167 * lib/unistr/u8-endswith.c: Likewise.
25168 * lib/unistr/u8-mblen.c: Likewise.
25169 * lib/unistr/u8-mbsnlen.c: Likewise.
25170 * lib/unistr/u8-mbtouc-aux.c: Likewise.
25171 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
25172 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
25173 * lib/unistr/u8-mbtouc.c: Likewise.
25174 * lib/unistr/u8-mbtoucr.c: Likewise.
25175 * lib/unistr/u8-move.c: Likewise.
25176 * lib/unistr/u8-next.c: Likewise.
25177 * lib/unistr/u8-prev.c: Likewise.
25178 * lib/unistr/u8-set.c: Likewise.
25179 * lib/unistr/u8-startswith.c: Likewise.
25180 * lib/unistr/u8-stpcpy.c: Likewise.
25181 * lib/unistr/u8-stpncpy.c: Likewise.
25182 * lib/unistr/u8-strcat.c: Likewise.
25183 * lib/unistr/u8-strchr.c: Likewise.
25184 * lib/unistr/u8-strcmp.c: Likewise.
25185 * lib/unistr/u8-strcpy.c: Likewise.
25186 * lib/unistr/u8-strcspn.c: Likewise.
25187 * lib/unistr/u8-strdup.c: Likewise.
25188 * lib/unistr/u8-strlen.c: Likewise.
25189 * lib/unistr/u8-strmblen.c: Likewise.
25190 * lib/unistr/u8-strmbtouc.c: Likewise.
25191 * lib/unistr/u8-strncat.c: Likewise.
25192 * lib/unistr/u8-strncmp.c: Likewise.
25193 * lib/unistr/u8-strncpy.c: Likewise.
25194 * lib/unistr/u8-strnlen.c: Likewise.
25195 * lib/unistr/u8-strpbrk.c: Likewise.
25196 * lib/unistr/u8-strrchr.c: Likewise.
25197 * lib/unistr/u8-strspn.c: Likewise.
25198 * lib/unistr/u8-strstr.c: Likewise.
25199 * lib/unistr/u8-strtok.c: Likewise.
25200 * lib/unistr/u8-to-u16.c: Likewise.
25201 * lib/unistr/u8-to-u32.c: Likewise.
25202 * lib/unistr/u8-uctomb-aux.c: Likewise.
25203 * lib/unistr/u8-uctomb.c: Likewise.
25204 * lib/unitypes.h: Likewise.
25205 * lib/uniwidth.h: Likewise.
25206 * lib/uniwidth/cjk.h: Likewise.
25207 * lib/uniwidth/u16-strwidth.c: Likewise.
25208 * lib/uniwidth/u16-width.c: Likewise.
25209 * lib/uniwidth/u32-strwidth.c: Likewise.
25210 * lib/uniwidth/u32-width.c: Likewise.
25211 * lib/uniwidth/u8-strwidth.c: Likewise.
25212 * lib/uniwidth/u8-width.c: Likewise.
25213 * lib/uniwidth/width.c: Likewise.
25215 2007-10-07 Bruno Haible <bruno@clisp.org>
25217 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
25218 The file is still under LGPL (see modules/inttypes).
25220 2007-10-06 Bruno Haible <bruno@clisp.org>
25222 * modules/trunc (Dependencies): Add 'extensions'.
25223 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
25224 Reported by Ben Pfaff <blp@gnu.org>.
25226 2007-10-06 Bruno Haible <bruno@clisp.org>
25228 * modules/freopen-tests: New file.
25229 * tests/test-freopen.c: New file.
25231 * modules/fopen-tests: New file.
25232 * tests/test-fopen.c: New file.
25234 * modules/fopen: New file.
25235 * lib/fopen.c: New file.
25236 * m4/fopen.m4: New file.
25237 * modules/freopen: New file.
25238 * lib/freopen.c: New file.
25239 * m4/freopen.m4: New file.
25240 * lib/stdio.in.h (fopen, freopen): New declarations.
25241 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
25242 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
25243 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
25244 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
25245 * doc/functions/fopen.texi: Mention the 'fopen' module.
25246 * doc/functions/freopen.texi: Mention the 'freopen' module.
25248 2007-10-06 Bruno Haible <bruno@clisp.org>
25250 * modules/open-tests: New file.
25251 * tests/test-open.c: New file.
25253 * modules/open: New file.
25254 * lib/open.c: New file.
25255 * m4/open.m4: New file.
25256 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
25258 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
25259 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
25261 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
25262 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
25264 * doc/functions/open.texi: Mention the 'open' module.
25266 2007-10-04 Bruno Haible <bruno@clisp.org>
25268 * modules/ceill-tests: New file.
25269 * tests/test-ceill.c: New file.
25271 * modules/ceill: New file.
25272 * lib/ceill.c: Replace entire file.
25273 * m4/ceill.m4: New file.
25274 * lib/math.in.h (ceill): Replace declaration.
25275 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
25276 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
25277 * doc/functions/ceill.texi: Mention the 'ceill' module.
25278 * modules/mathl (Files): Remove lib/ceill.c.
25279 (Depends-on): Add ceill.
25281 2007-10-04 Bruno Haible <bruno@clisp.org>
25283 * modules/ceilf-tests: New file.
25284 * tests/test-ceilf.c: New file.
25286 * modules/ceilf: New file.
25287 * lib/ceil.c: New file.
25288 * lib/ceilf.c: New file.
25289 * m4/ceilf.m4: New file.
25290 * lib/math.in.h (ceilf): New declaration.
25291 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
25293 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
25295 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
25297 2007-10-04 Bruno Haible <bruno@clisp.org>
25299 * modules/floorl-tests: New file.
25300 * tests/test-floorl.c: New file.
25302 * modules/floorl: New file.
25303 * lib/floorl.c: Replace entire file.
25304 * m4/floorl.m4: New file.
25305 * lib/math.in.h (floorl): Replace declaration.
25306 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
25307 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
25308 * doc/functions/floorl.texi: Mention the 'floorl' module.
25309 * modules/mathl (Files): Remove lib/floorl.c.
25310 (Depends-on): Add floorl.
25312 2007-10-04 Bruno Haible <bruno@clisp.org>
25314 * modules/floorf-tests: New file.
25315 * tests/test-floorf.c: New file.
25317 * modules/floorf: New file.
25318 * lib/floor.c: New file.
25319 * lib/floorf.c: New file.
25320 * m4/floorf.m4: New file.
25321 * lib/math.in.h (floorf): New declaration.
25322 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
25324 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
25326 * doc/functions/floorf.texi: Mention the 'floorf' module.
25328 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
25329 Bruno Haible <bruno@clisp.org>
25331 Advertise for the Git server instead of the CVS server.
25332 * doc/gnulib-intro.texi (Steady Development): Mention the Git
25333 repository instead of the CVS one.
25334 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
25335 about all VCS systems generically.
25336 * doc/gnulib.texi (Introduction): Capitalize `Git'.
25338 2007-10-04 Bruno Haible <bruno@clisp.org>
25340 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
25342 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
25344 2007-10-04 Bruno Haible <bruno@clisp.org>
25346 * modules/truncl-tests: New file.
25347 * tests/test-truncl.c: New file.
25349 * modules/truncl: New file.
25350 * lib/truncl.c: New file.
25351 * m4/truncl.m4: New file.
25352 * lib/math.in.h (truncl): New declaration.
25353 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
25355 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
25357 * doc/functions/truncl.texi: Mention the 'truncl' module.
25359 2007-10-04 Bruno Haible <bruno@clisp.org>
25361 * modules/truncf-tests: New file.
25362 * tests/test-truncf.c: New file.
25364 * modules/truncf: New file.
25365 * lib/trunc.c: Make paramerizable through USE_* macros.
25366 * lib/truncf.c: New file.
25367 * m4/truncf.m4: New file.
25368 * lib/math.in.h (truncf): New declaration.
25369 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
25371 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
25373 * doc/functions/truncf.texi: Mention the 'truncf' module.
25375 2007-10-03 Bruno Haible <bruno@clisp.org>
25377 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
25378 augmentation also for tests modules.
25379 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
25380 * modules/atexit-tests (Makefile.am): Likewise.
25381 * modules/binary-io-tests (Makefile.am): Likewise.
25382 * modules/c-strcase-tests (Makefile.am): Likewise.
25383 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
25384 * modules/canonicalize-tests (Makefile.am): Likewise.
25385 * modules/closein-tests (Makefile.am): Likewise.
25386 * modules/fprintf-posix-tests (Makefile.am): Likewise.
25387 * modules/freadahead-tests (Makefile.am): Likewise.
25388 * modules/fseek-tests (Makefile.am): Likewise.
25389 * modules/fseeko-tests (Makefile.am): Likewise.
25390 * modules/ftell-tests (Makefile.am): Likewise.
25391 * modules/ftello-tests (Makefile.am): Likewise.
25392 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
25393 * modules/isnanl-tests (Makefile.am): Likewise.
25394 * modules/lseek-tests (Makefile.am): Likewise.
25395 * modules/mbscasecmp-tests (Makefile.am): Likewise.
25396 * modules/mbscasestr-tests (Makefile.am): Likewise.
25397 * modules/mbschr-tests (Makefile.am): Likewise.
25398 * modules/mbscspn-tests (Makefile.am): Likewise.
25399 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
25400 * modules/mbspbrk-tests (Makefile.am): Likewise.
25401 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
25402 * modules/mbsrchr-tests (Makefile.am): Likewise.
25403 * modules/mbsspn-tests (Makefile.am): Likewise.
25404 * modules/mbsstr-tests (Makefile.am): Likewise.
25405 * modules/printf-posix-tests (Makefile.am): Likewise.
25406 * modules/snprintf-posix-tests (Makefile.am): Likewise.
25407 * modules/sprintf-posix-tests (Makefile.am): Likewise.
25408 * modules/tsearch-tests (Makefile.am): Likewise.
25409 * modules/uniname/uniname-tests (Makefile.am): Likewise.
25410 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
25411 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
25412 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
25413 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
25414 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
25415 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
25416 * modules/vprintf-posix-tests (Makefile.am): Likewise.
25417 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
25418 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
25419 * modules/xstrtoimax-tests (Makefile.am): Likewise.
25420 * modules/xstrtol-tests (Makefile.am): Likewise.
25421 * modules/xstrtoumax-tests (Makefile.am): Likewise.
25422 * modules/yesno-tests (Makefile.am): Likewise.
25424 2007-10-03 Bruno Haible <bruno@clisp.org>
25426 * modules/trunc-tests: New file.
25427 * tests/test-trunc.c: New file.
25429 * modules/trunc: New file.
25430 * lib/trunc.c: New file.
25431 * m4/trunc.m4: New file.
25432 * lib/math.in.h (trunc): New declaration.
25433 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
25435 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
25437 * doc/functions/trunc.texi: Mention the 'trunc' module.
25439 2007-10-03 Bruno Haible <bruno@clisp.org>
25441 * tests/test-fpending.c: New file, mostly copied
25442 from coreutils/lib/t-fpending.c.
25443 * modules/fpending-tests: New file.
25445 2007-10-03 Bruno Haible <bruno@clisp.org>
25447 Port the stdio extensions to QNX (untested).
25448 * lib/fseterr.c (fseterr): Add support for QNX.
25449 * lib/fbufmode.c (fbufmode): Likewise.
25450 * lib/freadable.c (freadable): Likewise.
25451 * lib/fwritable.c (fwritable): Likewise.
25452 * lib/freading.c (freading): Likewise.
25453 * lib/fwriting.c (fwriting): Likewise.
25454 * lib/freadahead.c (freadahed): Likewise.
25455 * lib/fpurge.c (fpurge): Likewise.
25456 * lib/fseeko.c (rpl_fseeko): Likewise.
25458 2007-10-03 Bruno Haible <bruno@clisp.org>
25459 Jim Meyering <jim@meyering.net>
25460 Eric Blake <ebb9@byu.net>
25462 * doc/relocatable.texi: Use @command instead of @program.
25464 2007-10-02 Jim Meyering <jim@meyering.net>
25466 Perform one more "_.h" -> ".in.h" substitution.
25467 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
25468 instead of unistd_.h here, too.
25470 2007-10-01 Bruno Haible <bruno@clisp.org>
25472 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
25473 Needed for the alloca-opt module.
25475 2007-09-30 Bruno Haible <bruno@clisp.org>
25477 * lib/alloca.in.h: Renamed from lib/alloca_.h.
25478 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
25480 * lib/argz.in.h: Renamed from lib/argz_.h.
25481 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
25482 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
25483 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
25485 * lib/dirent.in.h: Renamed from lib/dirent_.h.
25486 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
25488 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
25489 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
25491 * lib/float.in.h: Renamed from lib/float_.h.
25492 * modules/float (Files, Makefile.am): Use float.in.h instead of
25494 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
25495 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
25497 * lib/getopt.in.h: Renamed from lib/getopt_.h.
25498 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
25500 * lib/glob.in.h: Renamed from lib/glob_.h.
25501 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
25502 * lib/iconv.in.h: Renamed from lib/iconv_.h.
25503 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
25505 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
25506 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
25508 * lib/locale.in.h: Renamed from lib/locale_.h.
25509 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
25511 * lib/math.in.h: Renamed from lib/math_.h.
25512 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
25513 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
25514 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
25515 of netinet_in_.h. Add dependency.
25516 * lib/poll.in.h: Renamed from lib/poll_.h.
25517 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
25518 * lib/search.in.h: Renamed from lib/search_.h.
25519 * modules/search (Files, Makefile.am): Use search.in.h instead of
25521 * lib/signal.in.h: Renamed from lib/signal_.h.
25522 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
25524 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
25525 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
25527 * lib/stdint.in.h: Renamed from lib/stdint_.h.
25528 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
25530 * lib/stdio.in.h: Renamed from lib/stdio_.h.
25531 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
25533 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
25534 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
25536 * lib/string.in.h: Renamed from lib/string_.h.
25537 * modules/string (Files, Makefile.am): Use string.in.h instead of
25539 * doc/gnulib-tool.texi (Initial import): Update.
25540 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
25541 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
25542 of sys_select_.h. Add dependency.
25543 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
25544 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
25546 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
25547 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
25549 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
25550 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
25552 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
25553 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
25555 * lib/time.in.h: Renamed from lib/time_.h.
25556 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
25557 * lib/unistd.in.h: Renamed from lib/unistd_.h.
25558 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
25560 * lib/wchar.in.h: Renamed from lib/wchar_.h.
25561 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
25563 * lib/wctype.in.h: Renamed from lib/wctype_.h.
25564 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
25566 * build-aux/bootstrap (slurp): Update.
25567 * lib/.cppi-disable: Update.
25569 2007-09-30 Bruno Haible <bruno@clisp.org>
25571 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
25574 2007-09-30 Bruno Haible <bruno@clisp.org>
25576 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
25578 2007-09-29 Bruno Haible <bruno@clisp.org>
25580 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
25582 2007-09-29 Bruno Haible <bruno@clisp.org>
25584 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
25585 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
25586 * build-aux/install-reloc: Compile also areadlink.c.
25587 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
25589 2007-09-29 Bruno Haible <bruno@clisp.org>
25591 * gnulib-tool (func_emit_initmacro_done): Indentation.
25593 2007-09-29 Bruno Haible <bruno@clisp.org>
25595 * README: Add CVS checkout update instructions.
25596 Info from Bob Proulx <bob@proulx.com>.
25598 2007-09-28 Eric Blake <ebb9@byu.net>
25600 Provide move-if-change.
25601 * build-aux/move-if-change: New file, based on best practice
25602 rather than any canonical upstream location.
25604 2007-09-28 Jim Meyering <jim@meyering.net>
25606 Fix canonicalize loop-detection corner case.
25607 Do not attempt to stat the symlink values stored via seen_triple.
25608 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
25609 on linux-2.6.18, (but not 2.6.22).
25610 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
25611 triple_compare. The former compares dev,ino,filename, while the latter
25612 would actually stat dirname(filename) when dev and ino were equal.
25613 * lib/hash-triple.c: Install <string.h>.
25615 (triple_compare_ino_str): New function.
25616 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
25618 2007-09-28 Eric Blake <ebb9@byu.net>
25620 Enforce that AC_REPLACE_FUNCS files exist.
25621 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
25622 override check for typos.
25624 Fix test-closein on Solaris 10.
25625 * tests/test-closein.c (main): Don't assume stdin can be inherited
25626 closed on all systems.
25627 * tests/test-closein.sh: Likewise.
25628 Reported by Piotr Tarnowski.
25630 2007-09-28 Jim Meyering <jim@meyering.net>
25632 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
25634 2007-09-27 Jim Meyering <jim@meyering.net>
25636 canonicalize: Avoid a false-positive cycle failure.
25637 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
25638 Sort. Remove cycle-check.
25639 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
25641 (seen_triple): New function.
25642 (canonicalize_filename_mode): Use it instead of cycle-check.
25643 * tests/test-canonicalize.c: Add a test for this bug.
25644 * tests/test-canonicalize.sh: Set up and run the test.
25646 New module, file-set, from coreutils.
25647 * modules/file-set: Define it.
25648 * lib/file-set.c, lib/file-set.h: Implement.
25650 New module, hash-triple, from coreutils.
25651 * modules/hash-triple: Define it.
25652 * lib/hash-triple.c, lib/hash-triple.h: Implement.
25654 2007-09-25 Eric Blake <ebb9@byu.net>
25656 Fix strerror on Interix.
25657 * lib/string_.h (strerror): Declare replacement.
25658 * doc/functions/strerror.texi (strerror): Document the Interix
25660 * modules/string (Makefile.am): Support new hooks.
25661 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
25662 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
25663 gl_FUNC_STRERROR_SEPARATE.
25664 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
25665 * lib/strerror.c (rpl_strerror): Provide replacement.
25666 * modules/strerror (Depends-on): Add string.
25667 (configure.ac): Detect use of module.
25668 * tests/test-strerror.c: New file.
25669 * modules/strerror-tests: New test module.
25670 * modules/argp (Depends-on): Add strerror.
25671 * modules/error (Depends-on): Likewise.
25672 Reported by Martin Koeppe.
25674 2007-09-24 Bruno Haible <bruno@clisp.org>
25676 * README: Update git instructions.
25678 2007-09-24 Eric Blake <ebb9@byu.net>
25680 Revert fpending breakage from 2007-09-08.
25681 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
25684 2007-09-24 Jim Meyering <jim@meyering.net>
25686 filenamecat.c: Add a test.
25687 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
25688 showing how the function works when DIR is the empty string.
25690 2007-09-21 Simon Josefsson <simon@josefsson.org>
25692 * tests/test-canonicalize.sh: Turn on executable bit.
25694 2007-09-19 Eric Blake <ebb9@byu.net>
25696 * README: Update CVS instructions.
25698 2007-09-18 Bruno Haible <bruno@clisp.org>
25700 * modules/areadlink: New file.
25701 * lib/areadlink.h (areadlink): New declaration.
25702 * lib/areadlink.c: New file, based on lib/xreadlink.c.
25704 2007-09-17 Jim Meyering <jim@meyering.net>
25706 * lib/savewd.c (ESTALE) [!defined]: Define.
25707 Reported to be required on Interix by Martin Koeppe.
25709 2007-09-17 Bruno Haible <bruno@clisp.org>
25711 * gnulib-tool (func_version): Use $version.
25713 2007-09-16 Bruno Haible <bruno@clisp.org>
25715 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
25716 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
25717 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
25718 Reported by Greg Schafer <gschafer@zip.com.au>.
25720 2007-09-15 Bruno Haible <bruno@clisp.org>
25722 * gnulib-tool (sed): Try a little harder to make bash understand the
25724 Reported by Bruce Korb <bruce.korb@gmail.com>.
25726 2007-09-13 Eric Blake <ebb9@byu.net>
25728 * ChangeLog: Remove conflict markers.
25730 2007-09-13 Simon Josefsson <simon@josefsson.org>
25732 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
25733 Reported by Bruno Haible <bruno@clisp.org>.
25735 2007-09-12 Bruno Haible <bruno@clisp.org>
25737 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
25738 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
25741 2007-09-12 Eric Blake <ebb9@byu.net>
25743 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
25744 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
25745 Autoconf definition.
25746 * modules/euidaccess (Depends-on): Add extensions, for
25747 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
25748 * modules/fnmatch (Depends-on): Likewise.
25749 * modules/getaddrinfo (Depends-on): Likewise.
25750 * modules/getdelim (Depends-on): Likewise.
25751 * modules/getline (Depends-on): Likewise.
25752 * modules/getsubopt (Depends-on): Likewise.
25753 * modules/gettext (Depends-on): Likewise.
25754 * modules/group-member (Depends-on): Likewise.
25755 * modules/mbchar (Depends-on): Likewise.
25756 * modules/memmem (Depends-on): Likewise.
25757 * modules/mempcpy (Depends-on): Likewise.
25758 * modules/memrchr (Depends-on): Likewise.
25759 * modules/pagealign_alloc (Depends-on): Likewise.
25760 * modules/readutmp (Depends-on): Likewise.
25761 * modules/stpcpy (Depends-on): Likewise.
25762 * modules/stpncpy (Depends-on): Likewise.
25763 * modules/strchrnul (Depends-on): Likewise.
25764 * modules/strndup (Depends-on): Likewise.
25765 * modules/strsep (Depends-on): Likewise.
25766 * modules/strverscmp (Depends-on): Likewise.
25767 * modules/vasprintf (Depends-on): Likewise.
25768 * modules/wcwidth (Depends-on): Likewise.
25769 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
25770 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
25771 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
25772 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
25773 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25774 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25775 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
25776 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
25777 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
25778 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25779 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25780 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
25781 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
25782 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
25783 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
25784 * m4/readutmp.m4 (gl_READUTMP): Likewise.
25785 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25786 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
25787 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25788 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
25789 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25790 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
25791 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
25792 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
25793 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
25794 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25795 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
25796 so that lock.m4 can be used in gettext without extensions module.
25798 2007-09-11 Bruno Haible <bruno@clisp.org>
25800 * m4/isc-posix.m4: Remove file.
25801 Suggested by Eric Blake.
25803 2007-09-11 Eric Blake <ebb9@byu.net>
25805 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
25807 2007-09-10 Bruno Haible <bruno@clisp.org>
25809 * posix-modules: Fix typo in error message.
25810 Reported by Matt <mkraai@beckman.com>.
25812 2007-09-09 Bruno Haible <bruno@clisp.org>
25814 * doc/functions/getdelim.texi: Update list of platforms lacking the
25816 * doc/functions/getline.texi: Likewise.
25818 2007-09-09 Jim Meyering <jim@meyering.net>
25820 * lib/hash.c (hash_initialize): Detect calloc failure.
25821 Reported by Bruno Haible.
25823 2007-09-09 Bruno Haible <bruno@clisp.org>
25825 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
25826 malloc or realloc fails.
25828 2007-09-09 Bruno Haible <bruno@clisp.org>
25830 * modules/getcwd (Depends-on): Add malloc-posix.
25831 * modules/glob (Depends-on): Likewise.
25832 * modules/putenv (Depends-on): Likewise.
25833 * modules/strdup (Depends-on): Likewise.
25834 * modules/getdelim (Depends-on): Add realloc-posix.
25835 * modules/read-file (Depends-on): Likewise.
25837 2007-09-09 Bruno Haible <bruno@clisp.org>
25839 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
25840 (gl_FUNC_MALLOC_POSIX): Require it.
25841 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
25842 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
25843 * modules/realloc (Files): Add m4/malloc.m4.
25844 * modules/calloc (Files): Likewise.
25846 2007-09-09 Bruno Haible <bruno@clisp.org>
25848 * modules/malloc-posix: New file.
25849 * modules/malloc (Depends-on): Add malloc-posix.
25850 * lib/malloc.c: Include errno.h.
25851 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
25852 and a POSIX-compatible malloc into a single function. Set ENOMEM
25853 when returning NULL.
25854 * m4/malloc.m4: New file.
25855 * doc/functions/malloc.texi: Mention the malloc-posix module.
25856 * lib/stdlib_.h (malloc): New declaration.
25857 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25858 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
25859 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
25860 and HAVE_MALLOC_POSIX.
25862 2007-09-09 Bruno Haible <bruno@clisp.org>
25864 * modules/realloc-posix: New file.
25865 * modules/realloc (Depends-on): Add realloc-posix.
25866 * lib/realloc.c: Include errno.h.
25867 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
25868 and a POSIX-compatible realloc into a single function. Set ENOMEM
25869 when returning NULL.
25870 * m4/realloc.m4: New file.
25871 * doc/functions/realloc.texi: Mention the realloc-posix module.
25872 * lib/stdlib_.h (realloc): New declaration.
25873 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25874 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
25875 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
25876 and HAVE_REALLOC_POSIX.
25878 2007-09-09 Bruno Haible <bruno@clisp.org>
25880 * modules/calloc-posix: New file.
25881 * modules/calloc (Depends-on): Add calloc-posix.
25882 * lib/calloc.c: Include errno.h.
25883 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
25884 and a POSIX-compatible calloc into a single function. Set ENOMEM
25885 when returning NULL.
25886 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
25887 * doc/functions/calloc.texi: Mention the calloc-posix module.
25888 * lib/stdlib_.h (calloc): New declaration.
25889 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25890 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
25891 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
25892 and HAVE_CALLOC_POSIX.
25894 2007-09-09 Bruno Haible <bruno@clisp.org>
25896 Allow for modules to show an arbitrary notice.
25897 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
25898 * gnulib-tool: New option --extract-notice.
25899 (func_usage): Document it.
25900 (sed_extract_prog): Update.
25901 (func_get_notice): New function.
25902 (func_modules_notice): New function.
25903 (func_import, func_create_testdir): Invoke it.
25904 Suggested by Jim Meyering.
25906 2007-09-09 Bruno Haible <bruno@clisp.org>
25908 * gnulib-tool: New options --verbose, --quiet.
25909 (func_usage): Document them.
25910 (verbose): New variable.
25911 (func_execute_command): New function.
25912 (func_import): Don't show the module list and the file list if
25914 (func_create_testdir): Likewise. Use func_execute_command.
25915 (func_create_megatestdir): Use func_execute_command.
25917 2007-09-08 Bruno Haible <bruno@clisp.org>
25919 * gnulib-tool (func_import): Prefer rsync over wget when available,
25920 for fetching the PO files.
25922 2007-09-08 Bruno Haible <bruno@clisp.org>
25924 * posix-modules: New file. Portions copied from gnulib-tool.
25925 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
25927 2007-09-08 Jim Meyering <jim@meyering.net>
25929 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
25930 * lib/fpending.h: Rename from __fpending.h.
25931 * lib/fpending.c: Rename from __fpending.c.
25932 Include "fpending.h", not "__fpending.h".
25933 * lib/__fpending.h, lib/__fpending.c: Remove files.
25934 * modules/fpending (Files): Reflect new file names.
25935 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
25937 2007-09-08 Bruno Haible <bruno@clisp.org>
25939 * m4/inttypes-h.m4: Remove stub file.
25941 2007-09-07 Simon Josefsson <simon@josefsson.org>
25943 * doc/headers/stdint.texi: Discuss #include_next issue.
25945 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
25947 * build-aux/bootstrap: Remove obsolete comment about wget --help.
25949 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
25951 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
25954 2007-09-03 Jim Meyering <jim@meyering.net>
25956 New module: git-version-gen.
25957 * modules/git-version-gen: New file.
25959 Import changes from coreutils for bootstrap script.
25961 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
25963 bootstrap: uses rsync to download the .po files
25964 * build-aux/bootstrap (po_download_command_format): New global.
25965 (download_po_files): Use rsync.
25966 (update_po_files): Don't remove .po files after download,
25967 so future rsync runs can take advantage of the copies.
25969 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
25971 Solve the unnecessary-.po-file-regeneration problem once and for all.
25972 * build-aux/bootstrap (download_po_files): New function, renamed from
25973 get_translations. Now, downloads, but doesn't update LINGUAS.
25974 (update_po_files): New function.
25976 bootstrap: Ignore more.
25977 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
25978 uniwidth to e.g., lib/.gitignore.
25979 (slurp): Handle the sys_stat_.h -> sys mapping, too.
25981 * build-aux/bootstrap: New setting: vc_ignore.
25982 (insert_sorted_if_absent): Create $file if absent.
25983 Adapt to new, possibly empty, list: $vc_ignore.
25985 bootstrap: generate more ignorable names
25986 * build-aux/bootstrap (slurp): When generating ignorable names,
25987 also map .sin to .sed, .gperf to .c, and .y to .c.
25989 2007-09-03 Jim Meyering <jim@meyering.net>
25991 * build-aux/git-version-gen: New file, from coreutils. For details, see
25992 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
25994 2007-09-02 Bruno Haible <bruno@clisp.org>
25996 Fix mis-recognition of 'mcs' on QNX 6.
25997 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
25998 output contains the string "Mono".
25999 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
26000 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
26002 2007-09-01 Bruno Haible <bruno@clisp.org>
26004 Fix collision between uniwidth/* and linebreak modules.
26005 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
26006 u32_width): Remove declarations.
26007 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
26008 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
26009 streq3, streq2, streq1, streq0): Remove functions.
26010 (STREQ): Remove macro.
26011 (is_cjk_encoding): Remove function.
26012 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
26013 (uc_width, u8_width, u16_width, u32_width): Remove functions.
26014 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
26015 * NEWS: Document the change.
26017 2007-09-01 Bruno Haible <bruno@clisp.org>
26019 * lib/streq.h: Add double-inclusion guard.
26021 2007-09-01 Karl Berry <karl@gnu.org>
26023 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
26025 2007-08-28 Jim Meyering <jim@meyering.net>
26027 Rename mreadlink_with_size to areadlink_with_size.
26028 * NEWS: Document the change.
26029 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
26030 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
26031 * lib/mreadlink.h: Rename this to...
26032 * lib/areadlink.h: ...this.
26033 * modules/mreadlink-with-size: Rename this to...
26034 * modules/areadlink-with-size: ...this.
26035 * lib/canonicalize.c: Reflect the renaming.
26036 * modules/canonicalize: Likewise.
26038 2007-08-26 Bruno Haible <bruno@clisp.org>
26040 * gnulib-tool (func_import): When deciding which files to remove,
26041 consider also dangling symbolic links.
26042 Reported by Eric Blake.
26044 2007-08-26 Bruno Haible <bruno@clisp.org>
26046 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
26048 2007-08-23 Simon Josefsson <simon@josefsson.org>
26050 * lib/readline.c: Don't include getline.h, the prototype is now
26053 2007-08-23 Jim Meyering <jim@meyering.net>
26056 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
26057 around the funlockfile call, since funlockfile never sets errno.
26058 Don't set errno upon failed realloc.
26060 2007-08-22 Eric Blake <ebb9@byu.net>
26063 * lib/getdelim.c (getdelim): Revert regression that required *n to
26064 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
26065 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
26066 getdelim, rather than whether implementation is missing.
26067 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
26068 * lib/stdio_.h (getline): Also declare if replacement is
26070 * doc/functions/getdelim.texi: New file.
26071 * doc/functions/getline.texi: Likewise.
26072 * doc/gnulib.texi (Function Substitutes): Add new files.
26073 Reported by Bruno Haible.
26075 2007-08-22 Ludovic Courtès <ludo@gnu.org>
26077 * users.txt: Add Guile.
26079 2007-08-22 Eric Blake <ebb9@byu.net>
26081 * tests/test-getdelim.c (main): Use remove, not unlink.
26082 * tests/test-getline.c (main): Likewise.
26084 Move getline and getdelim into stdio.h, per POSIX 200x.
26085 * modules/getline (Files): Remove getline.h.
26086 (Depends-on): Add stdio.
26087 (configure.ac): Add module indicator.
26088 * modules/getdelim (Files): Remove getdelim.h.
26089 (Depends-on): Add stdio.
26090 (configure.ac): Add module indicator.
26091 * modules/stdio (Makefile.am): Work with new indicators.
26092 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
26093 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
26094 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26095 * lib/getdelim.h: Delete.
26096 * lib/getline.h: Delete.
26097 * lib/stdio_.h (getdelim, getline): Declare.
26098 * modules/getdelim-tests: New module.
26099 * modules/getline-tests: Likewise.
26100 * tests/test-getdelim.c: New file.
26101 * tests/test-getline.c: Likewise.
26102 * NEWS: Document the change.
26103 * lib/getline.c: Update choice of header.
26104 * lib/csharpcomp.c: Likewise.
26105 * lib/getpass.c: Likewise.
26106 * lib/javacomp.c: Likewise.
26107 * lib/javaversion.c: Likewise.
26108 * lib/yesno.c: Likewise.
26109 * lib/getdelim.c: Likewise.
26110 (getdelim): Set errno on failure, and avoid memory leak.
26112 2007-08-19 Bruno Haible <bruno@clisp.org>
26114 * modules/closein (Depends-on): Add freadahead.
26115 * lib/closein.c: Include freadahead.h.
26116 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
26119 2007-08-19 Bruno Haible <bruno@clisp.org>
26121 * modules/freadahead-tests: New file.
26122 * tests/test-freadahead.sh: New file.
26123 * tests/test-freadahead.c: New file.
26125 * modules/freadahead: New file.
26126 * lib/freadahead.h: New file.
26127 * lib/freadahead.c: New file.
26128 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
26129 fbufmode, fpurge, freadable, fwritable.
26131 2007-08-19 Eric Blake <ebb9@byu.net>
26133 Test yesno in combination with closein.
26134 * lib/yesno.c (yesno): Document use of stdin.
26135 * modules/yesno-tests (Files): New module.
26136 * tests/test-yesno.c (main): New file.
26137 * tests/test-yesno.sh: Likewise.
26139 2007-08-19 Bruno Haible <bruno@clisp.org>
26141 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
26142 * lib/fseeko.c (rpl_fseeko): Likewise.
26143 * lib/fseterr.c (fseterr): Likewise.
26145 2007-08-19 Bruno Haible <bruno@clisp.org>
26147 * tests/test-lseek.c (main): Disable a test for BeOS.
26148 * doc/functions/lseek.texi: Document the BeOS bug.
26150 2007-08-19 Bruno Haible <bruno@clisp.org>
26151 Eric Blake <ebb9@byu.net>
26153 * lib/lseek.c: Include <sys/stat.h>.
26154 (rpl_lseek): Add workaround code also for Unix platforms.
26156 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
26157 * doc/functions/lseek.texi: Document BeOS definiency.
26159 2007-08-18 Bruno Haible <bruno@clisp.org>
26161 * modules/fstrcmp-tests: New file.
26162 * tests/test-fstrcmp.c: New file.
26164 2007-08-18 Bruno Haible <bruno@clisp.org>
26166 * modules/fstrcmp: New file, from GNU gettext with modifications.
26167 * lib/fstrcmp.h: New file, from GNU gettext.
26168 * lib/fstrcmp.c: New file, from GNU gettext.
26169 * MODULES.html.sh (String handling): Add fstrcmp.
26171 2007-08-18 Bruno Haible <bruno@clisp.org>
26173 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
26175 (diag, compareseq): Remove const from the ctxt argument.
26176 (USE_HEURISTIC): Undefine at the end.
26178 2007-08-18 Jim Meyering <jim@meyering.net>
26180 New file: lib/idcache.h
26181 * NEWS: Mention the addition.
26182 * modules/idcache (Files): Add lib/idcache.h
26183 * lib/idcache.c: Include "idcache.h".
26184 Don't include <sys/types.h>.
26185 Add a FIXME comment.
26186 Move file-scoped "static" declarations to the top.
26187 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
26189 2007-08-17 Bruno Haible <bruno@clisp.org>
26190 and Paul Eggert <eggert@cs.ucla.edu>
26192 * MODULES.html.sh: Add diffseq.
26193 * modules/diffseq: New file.
26194 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
26195 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
26197 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
26199 Import changes from coreutils for bootstrap script.
26201 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
26203 * build-aux/bootstrap (slurp): Work even in environments where
26204 "ls" defaults to "ls -A". Put in a FIXME, though, since the
26205 current code does not slurp files whose names start with ".", and
26206 this looks like it might be a troublesome area.
26208 2007-07-11 Jim Meyering <jim@meyering.net>
26210 If there's a GPL vN copyright comment, require that N == 3.
26212 2007-07-08 Jim Meyering <jim@meyering.net>
26214 Run the coreutils-specific code only if tests/Makefile.am.in exists.
26215 * build-aux/bootstrap (mam_template): Move definition out of loop.
26217 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
26219 * build-aux/bootstrap (symlink_to_dir): Rename function from
26220 symlink_to_gnulib. Add a directory parameter. Update all
26222 (cp_mark_as_generated): Also check for -- and link to -- files in
26225 2007-07-08 Jim Meyering <jim@meyering.net>
26227 Adapt to deeper hierarchy in gnulib.
26228 * build-aux/bootstrap (symlink_to_dir): If the destination
26229 directory doesn't exist, create it. This is required at least for
26230 "lib/uniwidth/cjk.h".
26232 2007-05-15 Jim Meyering <jim@meyering.net>
26234 * build-aux/bootstrap: Now that generated Makefile.am files
26235 are no longer under version control, they must be created at
26238 2007-08-14 Ben Pfaff <blp@gnu.org>
26240 * lib/count-one-bits.h: Add comments. From Bruno Haible.
26242 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
26244 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
26245 given the changes below.
26246 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
26247 even on hosts that have padding bits beyond the supported 64.
26249 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
26251 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
26252 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
26253 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
26255 (xstrtol_error): Remove.
26256 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
26257 but with a different signature.
26258 (ATTRIBUTE_NORETURN, __attribute__): New macros.
26259 * lib/xstrtol-error.c: Include exitfail.h.
26260 (xstrtol_fatal): New function, with a different signature from the
26261 old xstrtol_error, so that the caller need not worry about passing
26262 in an exit status, or about storage management of the option argument.
26263 (xstrtol_error): Now a static function. Redo signature to
26264 implement xstrtol_fatal. Output the correct number of hyphens in
26265 front of the option so that the caller need not worry about
26266 storage management.
26268 (_): Remove; not used now.
26269 * modules/xstrtol: Depend on getopt.
26270 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
26271 of old STRTOL_FATAL_ERROR macro.
26272 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
26274 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
26275 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
26277 2007-08-08 Eric Blake <ebb9@byu.net>
26279 * lib/xstrtol-error.c: Add missing include.
26281 Move xstrtol messages into gnulib domain, when --pobase is used.
26282 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
26283 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
26284 * modules/xstrtol (Files): Distribute new file.
26285 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
26286 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
26287 * tests/test-xstrtol.c: ...into new file.
26288 * tests/test-xstrtoul.c: Also test xstrtoul.
26289 * tests/test-xstrtoimax.c: Also test xstrtoimax.
26290 * tests/test-xstrtoumax.c: Also test xstrtoumax.
26291 * tests/test-xstrtol.sh: Drive the tests.
26292 * tests/test-xstrtoimax.sh: Likewise.
26293 * tests/test-xstrtoumax.sh: Likewise.
26294 * modules/xstrtol-tests: New module.
26295 * modules/xstrtoimax-tests: Likewise.
26296 * modules/xstrtoumax-tests: Likewise.
26298 2007-08-08 Jim Meyering <jim@meyering.net>
26300 New function: mfile_name_concat.
26301 * lib/filenamecat.c (mfile_name_concat): New function, just like
26302 file_name_concat, but return NULL upon failure rather than exiting
26304 * lib/filenamecat.h: Declare it.
26306 2007-08-07 Bruno Haible <bruno@clisp.org>
26308 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
26309 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
26311 Reported by Eric Blake.
26313 2007-08-07 Simon Josefsson <simon@josefsson.org>
26315 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
26316 * modules/crypto/arcfour (License): Likewise.
26317 * modules/crypto/des-tests (License): Likewise.
26318 * modules/crypto/gc-arctwo-tests (License): Likewise.
26319 * modules/crypto/gc-des-tests (License): Likewise.
26320 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
26321 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
26322 * modules/crypto/gc-md2-tests (License): Likewise.
26323 * modules/crypto/gc-md4-tests (License): Likewise.
26324 * modules/crypto/gc-md5-tests (License): Likewise.
26325 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
26326 * modules/crypto/gc-rijndael-tests (License): Likewise.
26327 * modules/crypto/gc-sha1-tests (License): Likewise.
26328 * modules/crypto/gc-tests (License): Likewise.
26329 * modules/crypto/hmac-md5 (License): Likewise.
26330 * modules/crypto/hmac-sha1 (License): Likewise.
26331 * modules/crypto/md2-tests (License): Likewise.
26332 * modules/crypto/md4-tests (License): Likewise.
26333 * modules/crypto/md5 (License): Likewise.
26334 * modules/crypto/rijndael (License): Likewise.
26335 * modules/crypto/sha1 (License): Likewise.
26336 * modules/memxor (License): Likewise.
26338 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
26339 and Bruno Haible <bruno@clisp.org>
26341 * NEWS: Describe interface changes to human, xstrtol.
26342 * lib/human.h: Include <xstrtol.h>.
26343 (human_options): Return enum strtol_error, not int. Remove
26344 bool arg; take int * instead.
26345 * lib/human.c: Don't include "gettext.h".
26346 (_): Remove; no longer used.
26347 Don't include <xstrtol.h>, since human.h does it.
26348 (human_options): Adjust to abovementioned interface changes.
26349 Do not report error to stderr; that's now the caller's
26351 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
26353 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
26354 Str, Argument_type_string. All uses changed. Put " argument"
26355 in diagnostics to make them clearer. Change wording of suffix
26356 message for clarity.
26357 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
26358 Argument_type_string.
26359 (STRTOL_FATAL_WARN): Remove; no longer used.
26360 * modules/human (Depends-on): Remove gettext-h.
26362 2007-08-06 Simon Josefsson <simon@josefsson.org>
26364 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
26366 2007-07-31 Bruno Haible <bruno@clisp.org>
26368 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
26369 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
26370 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
26372 2007-07-31 Bruno Haible <bruno@clisp.org>
26374 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
26375 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
26377 2007-07-30 Bruno Haible <bruno@clisp.org>
26379 * modules/base64 (License): Use the synonymous term "LGPLv2+".
26380 * modules/c-ctype (License): Likewise.
26381 * modules/c-strcase (License): Likewise.
26382 * modules/check-version (License): Likewise.
26383 * modules/iconv (License): Likewise.
26384 * modules/iconv_open (License): Likewise.
26385 * modules/read-file (License): Likewise.
26386 * modules/striconv (License): Likewise.
26387 * modules/strverscmp (License): Likewise.
26388 * modules/vasprintf (License): Likewise.
26389 * modules/crypto/des (License): Likewise.
26390 * modules/crypto/gc (License): Likewise.
26391 * modules/crypto/gc-arcfour (License): Likewise.
26392 * modules/crypto/gc-arctwo (License): Likewise.
26393 * modules/crypto/gc-des (License): Likewise.
26394 * modules/crypto/gc-hmac-md5 (License): Likewise.
26395 * modules/crypto/gc-hmac-sha1 (License): Likewise.
26396 * modules/crypto/gc-md2 (License): Likewise.
26397 * modules/crypto/gc-md4 (License): Likewise.
26398 * modules/crypto/gc-md5 (License): Likewise.
26399 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
26400 * modules/crypto/gc-random (License): Likewise.
26401 * modules/crypto/gc-rijndael (License): Likewise.
26402 * modules/crypto/gc-sha1 (License): Likewise.
26403 * modules/crypto/md2 (License): Likewise.
26404 * modules/crypto/md4 (License): Likewise.
26406 2007-07-30 Jim Meyering <jim@meyering.net>
26408 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
26409 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
26410 it has valid stat data. This bug would cause du not to count the
26411 sizes of inaccessible directories.
26412 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
26413 in <http://bugzilla.redhat.com/250077>.
26415 2007-07-25 Peter O'Gorman <peter@pogma.com>
26416 Bruno Haible <bruno@clisp.org>
26418 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
26419 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
26420 #include_next, gives a diagnostic about it, but reports no error in
26422 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
26424 2007-07-24 Ben Pfaff <blp@gnu.org>
26426 Improve name: "count-one-bits" is better than "popcount".
26427 * MODULES.html.sh: Update name.
26428 * lib/popcount.h: Renamed lib/count-one-bits.h.
26429 (popcount): Renamed count_one_bits.
26430 (popcountl): Renamed count_one_bits_l.
26431 (popcountll): Renamed count_one_bits_ll.
26432 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
26433 * modules/popcount: Renamed module/count-one-bits.
26434 * modules/popcount-tests: Renamed module/count-one-bits-tests.
26435 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
26437 2007-07-23 Ben Pfaff <blp@gnu.org>
26439 * lib/popcount.h (popcount32): Reduce size of constants, to allow
26440 better code generation, and add U to large constants to avoid
26441 warnings, in non-GCC case.
26442 Suggested by Bruno Haible.
26444 2007-07-23 Ben Pfaff <blp@gnu.org>
26446 * lib/popcount.h: Use verify_true instead of if...abort.
26447 * modules/popcount: Depend on verify module.
26448 Suggested by Jim Meyering.
26450 2007-07-23 Bruno Haible <bruno@clisp.org>
26452 * gnulib-tool (func_import): Create a .cvsignore file also when the
26453 directory is not yet in CVS but the toplevel directory is. When
26454 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
26455 Reported by Karl Berry.
26457 2007-07-22 Ben Pfaff <blp@gnu.org>
26459 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
26461 Suggested by Eric Blake.
26463 2007-07-22 Ben Pfaff <blp@gnu.org>
26465 New module: popcount.
26466 * MODULES.html.sh: Add popcount.
26467 * modules/popcount: New file.
26468 * modules/popcount-tests: New file.
26469 * tests/test-popcount.c: New file.
26470 * lib/popcount.h: New file.
26471 * m4/popcount.m4: New file.
26473 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
26475 * build-aux/announce-gen: Update to GPLv3.
26477 * build-aux/config.guess: Update from config.
26479 2007-07-21 Bruno Haible <bruno@clisp.org>
26481 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
26482 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
26484 2007-07-20 Jim Meyering <jim@meyering.net>
26486 * check-module: Diagnose a self-dependency.
26488 2007-07-19 Bruno Haible <bruno@clisp.org>
26490 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
26492 Reported by Eric Blake.
26494 2007-07-18 Bruno Haible <bruno@clisp.org>
26496 * gnulib-tool: New options --po-base, --po-domain.
26497 (func_usage): Document them.
26498 (pobase, po_domain): New variables.
26499 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
26500 DEFAULT_TEXT_DOMAIN.
26501 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
26502 (func_import): Consider pobase and po_domain. Create a po/ directory.
26503 (func_create_testdir): Set pobase and po_domain to empty.
26504 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
26505 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
26507 2007-07-18 Bruno Haible <bruno@clisp.org>
26509 * gnulib-tool (func_get_automake_snippet): Synthesize also an
26510 EXTRA_DIST augmentation for files in build-aux/.
26512 2007-07-16 Bruno Haible <bruno@clisp.org>
26514 * modules/lseek (License): Use the synonymous term "LGPLv2+".
26515 * modules/getdelim (License): Likewise.
26517 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26519 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
26520 * modules/d-type (License): Likewise.
26521 * modules/extensions (License): Likewise.
26522 * modules/fnmatch (License): Likewise.
26523 * modules/fseeko (License): Likewise.
26524 * modules/getaddrinfo (License): Likewise.
26525 * modules/getline (License): Likewise.
26526 * modules/getlogin_r (License): Likewise.
26527 * modules/getpass (License): Likewise.
26528 * modules/gettimeofday (License): Likewise.
26529 * modules/glob (License): Likewise.
26530 * modules/inet_ntop (License): Likewise.
26531 * modules/malloc (License): Likewise.
26532 * modules/malloca (License): Likewise.
26533 * modules/memmem (License): Likewise.
26534 * modules/mempcpy (License): Likewise.
26535 * modules/memset (License): Likewise.
26536 * modules/minmax (License): Likewise.
26537 * modules/mktime (License): Likewise.
26538 * modules/netinet_in (License): Likewise.
26539 * modules/pathmax (License): Likewise.
26540 * modules/poll (License): Likewise.
26541 * modules/regex (License): Likewise.
26542 * modules/snprintf (License): Likewise.
26543 * modules/stdbool (License): Likewise.
26544 * modules/stdint (License): Likewise.
26545 * modules/stdio (License): Likewise.
26546 * modules/strcase (License): Likewise.
26547 * modules/strcasestr (License): Likewise.
26548 * modules/strdup (License): Likewise.
26549 * modules/string (License): Likewise.
26550 * modules/strndup (License): Likewise.
26551 * modules/strnlen (License): Likewise.
26552 * modules/strpbrk (License): Likewise.
26553 * modules/strptime (License): Likewise.
26554 * modules/strsep (License): Likewise.
26555 * modules/sys_select (License): Likewise.
26556 * modules/sys_socket (License): Likewise.
26557 * modules/sys_stat (License): Likewise.
26558 * modules/sys_time (License): Likewise.
26559 * modules/time (License): Likewise.
26560 * modules/time_r (License): Likewise.
26561 * modules/timegm (License): Likewise.
26562 * modules/unistd (License): Likewise.
26563 * modules/vsnprintf (License): Likewise.
26564 * modules/wctype (License): Likewise.
26566 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26568 * modules/argz (License): LGPLv2+.
26570 2007-07-15 Karl Berry <karl@gnu.org>
26572 * doc/gnulib.texi: revise node structure per new fdl.texi.
26574 2007-07-14 Bruno Haible <bruno@clisp.org>
26576 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
26578 * lib/uniname/uninames.h: Regenerated.
26580 2007-07-14 Karl Berry <karl@gnu.org>
26582 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
26583 omitting sectioning and index commands.
26585 2007-07-13 Bruno Haible <bruno@clisp.org>
26587 New gnulib-tool option --more-symlinks.
26588 * gnulib-tool (func_usage): Document --more-symlinks.
26589 (do_copyrights): New variable.
26590 Recognize option --more-symlinks.
26591 (func_import): Don't add a copyright notice transform to
26592 sed_transform_lib_file if do_copyrights is empty.
26594 2007-07-13 Bruno Haible <bruno@clisp.org>
26596 * lib/vasnprintf.c (decimal_point_char): Define also if
26597 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
26598 && !NEED_PRINTF_DIRECTIVE_A.
26599 Reported by Clemens Koller <clemens.koller@anagramm.de> via
26600 Gary V. Vaughan <gary@gnu.org>.
26602 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
26604 * lib/inttypes_.h: Undo previous change, since it was fixed
26605 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
26607 2007-07-13 Bruno Haible <bruno@clisp.org>
26609 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
26610 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
26612 2007-07-13 Jim Meyering <jim@meyering.net>
26614 df: Don't fail for Tru64's "file-on-file mount".
26615 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
26616 so we fall through and use statfs instead. Details here:
26617 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
26618 Reported by Albert Chin.
26620 2007-07-13 Bruno Haible <bruno@clisp.org>
26622 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
26623 * modules/configmake (License): Likewise.
26624 * modules/gettext (License): Likewise.
26625 * modules/gettext-h (License): Likewise.
26626 * modules/include_next (License): Likewise.
26627 * modules/link-warning (License): Likewise.
26628 * modules/localcharset (License): Likewise.
26629 * modules/localename (License): Likewise.
26630 * modules/lock (License): Likewise.
26631 * modules/relocatable-lib-lgpl (License): Likewise.
26632 * modules/size_max (License): Likewise.
26633 * modules/vasnprintf (License): Likewise.
26634 * modules/wchar (License): Likewise.
26635 * modules/xsize (License): Likewise.
26637 2007-07-13 Bruno Haible <bruno@clisp.org>
26639 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
26640 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
26642 2007-07-12 Bruno Haible <bruno@clisp.org>
26644 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
26645 in the modules files.
26647 2007-07-11 Karl Berry <karl@gnu.org>
26649 * MODULES.html.sh (func_module): use
26650 sed -e '\|^'"${includefile}"'$|d'
26651 instead of /.../d, to avoid errors on $includefile's containing /.
26653 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
26655 * gnulib-tool (func_import): Avoid duplication of --avoid
26657 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
26658 names to `_' in variable names.
26660 2007-07-10 Eric Blake <ebb9@byu.net>
26662 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
26663 * NEWS: Document this change.
26665 2007-07-08 Bruno Haible <bruno@clisp.org>
26667 Update to Unicode 5.0.
26668 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
26669 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
26670 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
26671 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
26672 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
26673 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
26674 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
26675 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
26676 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
26677 U+10A3F, U+1D242..U+1D244.
26678 (nonspacing_table_ind): Update.
26679 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
26680 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
26682 2007-07-08 Bruno Haible <bruno@clisp.org>
26684 Update to Unicode 5.0.
26685 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
26686 code transform. Extend the name index field of unicode_name_to_code and
26687 unicode_code_to_name from 16 to 24 bits.
26688 * lib/uniname/uniname.c (unicode_character_name,
26689 unicode_name_character): Add the range 0x12xxx to the code transform.
26690 * lib/uniname/uninames.h: Regenerated.
26691 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
26693 2007-07-07 Bruno Haible <bruno@clisp.org>
26695 * modules/wcwidth-tests: New file.
26696 * tests/test-wcwidth.c: New file.
26698 Work around MacOS X wcwidth() bug.
26699 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
26700 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
26701 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
26702 original wcwidth in non-UTF-8 locales.
26703 * modules/wcwidth (Depends-on): Add localcharset, streq,
26705 * doc/functions/wcwidth.texi: Update.
26707 2007-07-07 Bruno Haible <bruno@clisp.org>
26709 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
26710 (wcwidth): New declaration.
26711 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
26713 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
26714 here. Prepare for creating <wchar.h> unconditionally.
26715 * modules/wchar (Depends-on): Add link-warning.
26716 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
26717 REPLACE_WCWIDTH, and GL_LINK_WARNING.
26718 * lib/wcwidth.h: Remove file.
26719 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
26720 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
26721 * modules/wcwidth (Files): Remove lib/wcwidth.h.
26722 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
26723 (Include): Replace wcwidth.h with <wchar.h>.
26724 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
26725 * lib/mbchar.h: Don't include wcwidth.h.
26726 * lib/mbswidth.c: Likewise.
26727 * NEWS: Mention the change.
26729 2007-07-07 Bruno Haible <bruno@clisp.org>
26731 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
26732 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
26733 definition with an external declaration.
26734 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
26735 defined as a function. Remove AC_C_INLINE requirement.
26736 * modules/wcwidth (Files): Add lib/wcwidth.c.
26737 (Makefile.am): Remove redundant statement.
26739 2007-07-07 Bruno Haible <bruno@clisp.org>
26741 * MODULES.html.sh (Unicode string functions): Add the new modules.
26743 * tests/uniwidth/test-u32-strwidth.c: New file.
26744 * modules/uniwidth/u32-strwidth-tests: New file.
26746 * lib/uniwidth/u32-strwidth.c: New file.
26747 * modules/uniwidth/u32-strwidth: New file.
26749 * tests/uniwidth/test-u16-strwidth.c: New file.
26750 * modules/uniwidth/u16-strwidth-tests: New file.
26752 * lib/uniwidth/u16-strwidth.c: New file.
26753 * modules/uniwidth/u16-strwidth: New file.
26755 * tests/uniwidth/test-u8-strwidth.c: New file.
26756 * modules/uniwidth/u8-strwidth-tests: New file.
26758 * lib/uniwidth/u8-strwidth.c: New file.
26759 * modules/uniwidth/u8-strwidth: New file.
26761 * tests/uniwidth/test-u32-width.c: New file.
26762 * modules/uniwidth/u32-width-tests: New file.
26764 * lib/uniwidth/u32-width.c: New file.
26765 * modules/uniwidth/u32-width: New file.
26767 * tests/uniwidth/test-u16-width.c: New file.
26768 * modules/uniwidth/u16-width-tests: New file.
26770 * lib/uniwidth/u16-width.c: New file.
26771 * modules/uniwidth/u16-width: New file.
26773 * tests/uniwidth/test-u8-width.c: New file.
26774 * modules/uniwidth/u8-width-tests: New file.
26776 * lib/uniwidth/u8-width.c: New file.
26777 * modules/uniwidth/u8-width: New file.
26779 * tests/uniwidth/test-uc_width.c: New file.
26780 * modules/uniwidth/width-tests: New file.
26782 * lib/uniwidth/width.c: New file, from GNU libiconv.
26783 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
26784 * modules/uniwidth/width: New file.
26786 * lib/uniwidth.h: New file, from GNU libiconv.
26787 * modules/uniwidth/base: New file.
26789 2007-07-07 Bruno Haible <bruno@clisp.org>
26791 * lib/uniname.h: New file, from GNU gettext.
26792 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
26793 * lib/uniname/uninames.h: New file, from GNU gettext.
26794 * lib/uniname/uniname.c: New file, from GNU gettext.
26795 * tests/uniname/test-uninames.sh: New file.
26796 * tests/uniname/test-uninames.c: New file, from GNU gettext.
26797 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
26798 * modules/uniname/base: New file.
26799 * modules/uniname/uniname: New file.
26800 * modules/uniname/uniname-tests: New file.
26801 * MODULES.html.sh (Unicode string functions): Add the new modules.
26803 2007-07-06 Bruno Haible <bruno@clisp.org>
26805 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
26807 2007-07-06 Bruno Haible <bruno@clisp.org>
26809 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
26810 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
26811 includes <cygwin/sys_time.h> which includes <sys/select.h> which
26812 include <sys/time.h>.
26813 Reported by Eric Blake.
26815 2007-07-06 Eric Blake <ebb9@byu.net>
26817 Fix testing canonicalize on cygwin.
26818 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
26819 Revert patch from 2007-06-19.
26820 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
26821 canonicalize module is also in use.
26822 * tests/test-canonicalize.c: New file.
26823 * tests/test-canonicalize.sh: Likewise.
26824 * modules/canonicalize-tests: Likewise.
26826 2007-07-06 Jim Meyering <jim@meyering.net>
26828 * lib/getugroups.c (getugroups): Detect getgrent failure.
26829 Adjust comment to reflect reality: this function may return -1.
26831 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
26833 * build-aux/bootstrap (TP_URL,get_translations): Update to use
26834 the new TP address.
26836 (gnulib_mk): New variable.
26838 2007-07-05 Jim Meyering <jim@meyering.net>
26840 Don't let endgrent clobber errno, no matter how improbable.
26841 * lib/getugroups.c (getugroups): Save and restore errno around
26844 Close the group DB even when failing with 2^31 or more members.
26845 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
26847 2007-07-04 Jim Meyering <jim@meyering.net>
26849 * lib/getugroups.h: New file.
26850 * lib/getugroups.c: Include "getugroups.h".
26851 Remove uses of "register" keyword.
26852 Move local variable, "cp", down into scope where used.
26853 Give "username" parameter the "const" attribute.
26854 * modules/getugroups (Files): Add lib/getugroups.h
26856 2007-07-04 Karl Berry <karl@gnu.org>
26858 * MODULES.html.sh (func_all_modules): Complete rename of
26859 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
26861 2007-07-02 Bruno Haible <bruno@clisp.org>
26863 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
26864 mode, when inttypes.h comes from gnulib.
26865 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
26867 2007-07-02 Simon Josefsson <simon@josefsson.org>
26869 * NEWS: Mention lgpl module name change.
26871 * modules/lgpl-2.1: Renamed from lgpl.
26873 * NEWS: Mention gpl module name change.
26875 * modules/gpl-3.0: New file, based on gpl-2.0.
26877 * modules/gpl-2.0: Renamed from gpl.
26879 * modules/gpl: Fix filename, doc/gpl.texi is now found at
26882 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
26884 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
26885 #define __STDC_LIMIT_MACROS temporarily while including
26886 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
26887 Problem reported by Joel E. Denny in
26888 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
26890 2007-07-01 Bruno Haible <bruno@clisp.org>
26892 * lib/unistdio.h: New file.
26893 * lib/unistdio/u-asnprintf.h: New file.
26894 * lib/unistdio/u-asprintf.h: New file.
26895 * lib/unistdio/u-printf-args.c: New file.
26896 * lib/unistdio/u-printf-args.h: New file.
26897 * lib/unistdio/u-printf-parse.h: New file.
26898 * lib/unistdio/u-snprintf.h: New file.
26899 * lib/unistdio/u-sprintf.h: New file.
26900 * lib/unistdio/u-vasprintf.h: New file.
26901 * lib/unistdio/u-vsnprintf.h: New file.
26902 * lib/unistdio/u-vsprintf.h: New file.
26903 * lib/unistdio/ulc-asnprintf.c: New file.
26904 * lib/unistdio/ulc-asprintf.c: New file.
26905 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
26906 * lib/unistdio/ulc-printf-parse.c: New file.
26907 * lib/unistdio/ulc-snprintf.c: New file.
26908 * lib/unistdio/ulc-sprintf.c: New file.
26909 * lib/unistdio/ulc-vasnprintf.c: New file.
26910 * lib/unistdio/ulc-vasprintf.c: New file.
26911 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
26912 * lib/unistdio/ulc-vsnprintf.c: New file.
26913 * lib/unistdio/ulc-vsprintf.c: New file.
26914 * lib/unistdio/u8-asnprintf.c: New file.
26915 * lib/unistdio/u8-asprintf.c: New file.
26916 * lib/unistdio/u8-printf-parse.c: New file.
26917 * lib/unistdio/u8-snprintf.c: New file.
26918 * lib/unistdio/u8-sprintf.c: New file.
26919 * lib/unistdio/u8-vasnprintf.c: New file.
26920 * lib/unistdio/u8-vasprintf.c: New file.
26921 * lib/unistdio/u8-vsnprintf.c: New file.
26922 * lib/unistdio/u8-vsprintf.c: New file.
26923 * lib/unistdio/u8-u8-asnprintf.c: New file.
26924 * lib/unistdio/u8-u8-asprintf.c: New file.
26925 * lib/unistdio/u8-u8-snprintf.c: New file.
26926 * lib/unistdio/u8-u8-sprintf.c: New file.
26927 * lib/unistdio/u8-u8-vasnprintf.c: New file.
26928 * lib/unistdio/u8-u8-vasprintf.c: New file.
26929 * lib/unistdio/u8-u8-vsnprintf.c: New file.
26930 * lib/unistdio/u8-u8-vsprintf.c: New file.
26931 * lib/unistdio/u16-asnprintf.c: New file.
26932 * lib/unistdio/u16-asprintf.c: New file.
26933 * lib/unistdio/u16-printf-parse.c: New file.
26934 * lib/unistdio/u16-snprintf.c: New file.
26935 * lib/unistdio/u16-sprintf.c: New file.
26936 * lib/unistdio/u16-vasnprintf.c: New file.
26937 * lib/unistdio/u16-vasprintf.c: New file.
26938 * lib/unistdio/u16-vsnprintf.c: New file.
26939 * lib/unistdio/u16-vsprintf.c: New file.
26940 * lib/unistdio/u16-u16-asnprintf.c: New file.
26941 * lib/unistdio/u16-u16-asprintf.c: New file.
26942 * lib/unistdio/u16-u16-snprintf.c: New file.
26943 * lib/unistdio/u16-u16-sprintf.c: New file.
26944 * lib/unistdio/u16-u16-vasnprintf.c: New file.
26945 * lib/unistdio/u16-u16-vasprintf.c: New file.
26946 * lib/unistdio/u16-u16-vsnprintf.c: New file.
26947 * lib/unistdio/u16-u16-vsprintf.c: New file.
26948 * lib/unistdio/u32-asnprintf.c: New file.
26949 * lib/unistdio/u32-asprintf.c: New file.
26950 * lib/unistdio/u32-printf-parse.c: New file.
26951 * lib/unistdio/u32-snprintf.c: New file.
26952 * lib/unistdio/u32-sprintf.c: New file.
26953 * lib/unistdio/u32-vasnprintf.c: New file.
26954 * lib/unistdio/u32-vasprintf.c: New file.
26955 * lib/unistdio/u32-vsnprintf.c: New file.
26956 * lib/unistdio/u32-vsprintf.c: New file.
26957 * lib/unistdio/u32-u32-asnprintf.c: New file.
26958 * lib/unistdio/u32-u32-asprintf.c: New file.
26959 * lib/unistdio/u32-u32-snprintf.c: New file.
26960 * lib/unistdio/u32-u32-sprintf.c: New file.
26961 * lib/unistdio/u32-u32-vasnprintf.c: New file.
26962 * lib/unistdio/u32-u32-vasprintf.c: New file.
26963 * lib/unistdio/u32-u32-vsnprintf.c: New file.
26964 * lib/unistdio/u32-u32-vsprintf.c: New file.
26965 * tests/unistdio/test-ulc-asnprintf1.c: New file.
26966 * tests/unistdio/test-ulc-asnprintf1.h: New file.
26967 * tests/unistdio/test-ulc-printf1.h: New file.
26968 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
26969 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
26970 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
26971 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
26972 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
26973 * tests/unistdio/test-ulc-vasprintf1.c: New file.
26974 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
26975 * tests/unistdio/test-ulc-vsprintf1.c: New file.
26976 * tests/unistdio/test-u8-asnprintf1.c: New file.
26977 * tests/unistdio/test-u8-asnprintf1.h: New file.
26978 * tests/unistdio/test-u8-printf1.h: New file.
26979 * tests/unistdio/test-u8-vasnprintf1.c: New file.
26980 * tests/unistdio/test-u8-vasnprintf2.c: New file.
26981 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
26982 * tests/unistdio/test-u8-vasnprintf3.c: New file.
26983 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
26984 * tests/unistdio/test-u8-vasprintf1.c: New file.
26985 * tests/unistdio/test-u8-vsnprintf1.c: New file.
26986 * tests/unistdio/test-u8-vsprintf1.c: New file.
26987 * tests/unistdio/test-u16-asnprintf1.c: New file.
26988 * tests/unistdio/test-u16-asnprintf1.h: New file.
26989 * tests/unistdio/test-u16-printf1.h: New file.
26990 * tests/unistdio/test-u16-vasnprintf1.c: New file.
26991 * tests/unistdio/test-u16-vasnprintf2.c: New file.
26992 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
26993 * tests/unistdio/test-u16-vasnprintf3.c: New file.
26994 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
26995 * tests/unistdio/test-u16-vasprintf1.c: New file.
26996 * tests/unistdio/test-u16-vsnprintf1.c: New file.
26997 * tests/unistdio/test-u16-vsprintf1.c: New file.
26998 * tests/unistdio/test-u32-asnprintf1.c: New file.
26999 * tests/unistdio/test-u32-asnprintf1.h: New file.
27000 * tests/unistdio/test-u32-printf1.h: New file.
27001 * tests/unistdio/test-u32-vasnprintf1.c: New file.
27002 * tests/unistdio/test-u32-vasnprintf2.c: New file.
27003 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
27004 * tests/unistdio/test-u32-vasnprintf3.c: New file.
27005 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
27006 * tests/unistdio/test-u32-vasprintf1.c: New file.
27007 * tests/unistdio/test-u32-vsnprintf1.c: New file.
27008 * tests/unistdio/test-u32-vsprintf1.c: New file.
27009 * modules/unistdio/base: New file.
27010 * modules/unistdio/u-printf-args: New file.
27011 * modules/unistdio/ulc-asnprintf: New file.
27012 * modules/unistdio/ulc-asprintf: New file.
27013 * modules/unistdio/ulc-fprintf: New file.
27014 * modules/unistdio/ulc-printf-parse: New file.
27015 * modules/unistdio/ulc-snprintf: New file.
27016 * modules/unistdio/ulc-sprintf: New file.
27017 * modules/unistdio/ulc-vasnprintf: New file.
27018 * modules/unistdio/ulc-vasprintf: New file.
27019 * modules/unistdio/ulc-vfprintf: New file.
27020 * modules/unistdio/ulc-vsnprintf: New file.
27021 * modules/unistdio/ulc-vsprintf: New file.
27022 * modules/unistdio/u8-asnprintf: New file.
27023 * modules/unistdio/u8-asprintf: New file.
27024 * modules/unistdio/u8-printf-parse: New file.
27025 * modules/unistdio/u8-snprintf: New file.
27026 * modules/unistdio/u8-sprintf: New file.
27027 * modules/unistdio/u8-vasnprintf: New file.
27028 * modules/unistdio/u8-vasprintf: New file.
27029 * modules/unistdio/u8-vsnprintf: New file.
27030 * modules/unistdio/u8-vsprintf: New file.
27031 * modules/unistdio/u8-u8-asnprintf: New file.
27032 * modules/unistdio/u8-u8-asprintf: New file.
27033 * modules/unistdio/u8-u8-snprintf: New file.
27034 * modules/unistdio/u8-u8-sprintf: New file.
27035 * modules/unistdio/u8-u8-vasnprintf: New file.
27036 * modules/unistdio/u8-u8-vasprintf: New file.
27037 * modules/unistdio/u8-u8-vsnprintf: New file.
27038 * modules/unistdio/u8-u8-vsprintf: New file.
27039 * modules/unistdio/u16-asnprintf: New file.
27040 * modules/unistdio/u16-asprintf: New file.
27041 * modules/unistdio/u16-printf-parse: New file.
27042 * modules/unistdio/u16-snprintf: New file.
27043 * modules/unistdio/u16-sprintf: New file.
27044 * modules/unistdio/u16-vasnprintf: New file.
27045 * modules/unistdio/u16-vasprintf: New file.
27046 * modules/unistdio/u16-vsnprintf: New file.
27047 * modules/unistdio/u16-vsprintf: New file.
27048 * modules/unistdio/u16-u16-asnprintf: New file.
27049 * modules/unistdio/u16-u16-asprintf: New file.
27050 * modules/unistdio/u16-u16-snprintf: New file.
27051 * modules/unistdio/u16-u16-sprintf: New file.
27052 * modules/unistdio/u16-u16-vasnprintf: New file.
27053 * modules/unistdio/u16-u16-vasprintf: New file.
27054 * modules/unistdio/u16-u16-vsnprintf: New file.
27055 * modules/unistdio/u16-u16-vsprintf: New file.
27056 * modules/unistdio/u32-asnprintf: New file.
27057 * modules/unistdio/u32-asprintf: New file.
27058 * modules/unistdio/u32-printf-parse: New file.
27059 * modules/unistdio/u32-snprintf: New file.
27060 * modules/unistdio/u32-sprintf: New file.
27061 * modules/unistdio/u32-vasnprintf: New file.
27062 * modules/unistdio/u32-vasprintf: New file.
27063 * modules/unistdio/u32-vsnprintf: New file.
27064 * modules/unistdio/u32-vsprintf: New file.
27065 * modules/unistdio/u32-u32-asnprintf: New file.
27066 * modules/unistdio/u32-u32-asprintf: New file.
27067 * modules/unistdio/u32-u32-snprintf: New file.
27068 * modules/unistdio/u32-u32-sprintf: New file.
27069 * modules/unistdio/u32-u32-vasnprintf: New file.
27070 * modules/unistdio/u32-u32-vasprintf: New file.
27071 * modules/unistdio/u32-u32-vsnprintf: New file.
27072 * modules/unistdio/u32-u32-vsprintf: New file.
27073 * modules/unistdio/ulc-asnprintf-tests: New file.
27074 * modules/unistdio/ulc-vasnprintf-tests: New file.
27075 * modules/unistdio/ulc-vasprintf-tests: New file.
27076 * modules/unistdio/ulc-vsnprintf-tests: New file.
27077 * modules/unistdio/ulc-vsprintf-tests: New file.
27078 * modules/unistdio/u8-asnprintf-tests: New file.
27079 * modules/unistdio/u8-vasnprintf-tests: New file.
27080 * modules/unistdio/u8-vasprintf-tests: New file.
27081 * modules/unistdio/u8-vsnprintf-tests: New file.
27082 * modules/unistdio/u8-vsprintf-tests: New file.
27083 * modules/unistdio/u16-asnprintf-tests: New file.
27084 * modules/unistdio/u16-vasnprintf-tests: New file.
27085 * modules/unistdio/u16-vasprintf-tests: New file.
27086 * modules/unistdio/u16-vsnprintf-tests: New file.
27087 * modules/unistdio/u16-vsprintf-tests: New file.
27088 * modules/unistdio/u32-asnprintf-tests: New file.
27089 * modules/unistdio/u32-vasnprintf-tests: New file.
27090 * modules/unistdio/u32-vasprintf-tests: New file.
27091 * modules/unistdio/u32-vsnprintf-tests: New file.
27092 * modules/unistdio/u32-vsprintf-tests: New file.
27093 * MODULES.html.sh (Unicode string functions): Add the new modules.
27095 2007-07-01 Bruno Haible <bruno@clisp.org>
27097 * lib/sprintf.c (sprintf): Limit the available length estimation,
27098 to avoid address wraparound.
27099 * lib/vsprintf.c (vsprintf): Likewise.
27100 * modules/sprintf-posix (Dependencies): Add stdint.
27101 * modules/vsprintf-posix (Dependencies): Likewise.
27103 2007-07-01 Bruno Haible <bruno@clisp.org>
27105 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
27106 Windows PATH as well. Conservative double-quoting. Comments.
27108 2007-07-01 Bruno Haible <bruno@clisp.org>
27109 Eric Blake <ebb9@byu.net>
27110 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27112 * gnulib-tool (self_abspathname): Fix algorithm to cope with
27113 empty components in $PATH, denoting '.'.
27115 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27117 * gnulib-tool: Fix indentation.
27118 (func_create_megatestdir): Likewise.
27119 Report by Bruno Haible.
27121 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27123 Sync from Automake.
27124 * build-aux/gnupload: Fix shell portability issues with for loops.
27125 Report by Karl Berry.
27127 2007-06-29 Simon Josefsson <simon@josefsson.org>
27129 * build-aux/maint.mk (POURL): Use translationproject.org.
27131 2007-06-27 Simon Josefsson <simon@josefsson.org>
27132 Bruno Haible <bruno@clisp.org>
27134 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
27135 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
27136 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
27137 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
27138 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
27140 2007-06-27 Bruno Haible <bruno@clisp.org>
27142 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
27143 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
27145 2007-06-26 Karl Berry <karl@gnu.org>
27147 * MODULES.html.sh: remove xreadlink-with-size.
27149 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
27151 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
27152 method that I hope also handles the double-include problem noted
27154 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
27156 2007-06-23 Bruno Haible <bruno@clisp.org>
27158 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27159 Don't let the 'mostlyclean' target fail if the last subdirectory could
27161 Reported by Karl Berry.
27163 2007-06-23 Bruno Haible <bruno@clisp.org>
27165 * gnulib-tool (echo): Add a speedier workaround for ksh.
27166 * tests/test-echo.sh: Likewise.
27168 2007-06-23 Bruno Haible <bruno@clisp.org>
27170 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
27171 * tests/test-echo.sh: Likewise.
27173 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27175 * gnulib-tool (IFS): Initialize early, so we don't set it to
27177 (self_abspathname): Rewrite algorithm to set it, reindent.
27178 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
27179 (func_create_megatestdir): Merge some sed scripts.
27181 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
27183 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
27184 exposed by Sun Studio 11 cc on Solaris 8.
27186 2007-06-22 Bruno Haible <bruno@clisp.org>
27188 * gnulib-tool (echo): Ensure the echo primitive does not interpret
27190 * tests/test-echo.sh: New file.
27192 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27194 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
27195 simplify `sed_replace_build_aux' scripts, they are portable but
27196 echoing them with `echo' is not.
27197 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
27199 2007-06-21 Karl Berry <karl@gnu.org>
27201 * config/srclist.txt: guess we can't handle the licenses via
27202 srclist at the moment.
27204 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
27206 * MODULES.html.sh: Add include_next.
27207 * modules/include_next: New file.
27209 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
27211 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
27213 (gl_CHECK_NEXT_HEADERS): New macro.
27214 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
27215 the obsolescent gl_ABSOLUTE_HEADER.
27216 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
27217 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
27218 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
27219 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27220 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27221 * m4/math_h.m4 (gl_MATH_H): Likewise.
27222 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
27223 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27224 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27225 * m4/stdint.m4 (gl_STDINT_H): Likewise.
27226 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27227 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27228 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27229 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27230 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27231 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27232 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
27233 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
27234 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
27235 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27236 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27237 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
27238 * m4/inttypes.m4 (gl_INTTYPES_H): Define
27239 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
27240 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
27241 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
27242 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
27243 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
27244 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
27245 * lib/float_.h: Likewise.
27246 * lib/inttypes_.h: Likewise.
27247 * lib/math_.h: Likewise.
27248 * lib/search_.h: Likewise.
27249 * lib/signal_.h: Likewise.
27250 * lib/stdint_.h: Likewise.
27251 * lib/stdio_.h: Likewise.
27252 * lib/stdlib_.h: Likewise.
27253 * lib/string_.h: Likewise.
27254 * lib/sys_stat_.h: Likewise.
27255 * lib/sys_time_.h: Likewise.
27256 * lib/time_.h: Likewise.
27257 * lib/unistd_.h: Likewise.
27258 * lib/wchar_.h: Likewise.
27259 * lib/wctype_.h: Likewise.
27260 * lib/dirent_.h: Likewise.
27261 * lib/iconv_.h: Likewise.
27262 * lib/locale_.h: Likewise.
27263 * lib/netinet_in_.h: Likewise.
27264 * lib/sys_select_.h: Likewise.
27265 * lib/sys_socket_.h: Likewise.
27266 * lib/sysexits_.h: Likewise.
27267 * modules/fcntl (Depends-on): Depend on include_next, not
27269 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
27270 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
27271 * modules/fchdir: Likewise.
27272 * modules/float: Likewise.
27273 * modules/iconv_open: Likewise.
27274 * modules/inttypes: Likewise.
27275 * modules/locale: Likewise.
27276 * modules/math: Likewise.
27277 * modules/netinet_in: Likewise.
27278 * modules/search: Likewise.
27279 * modules/signal: Likewise.
27280 * modules/stdint: Likewise.
27281 * modules/stdio: Likewise.
27282 * modules/stdlib: Likewise.
27283 * modules/string: Likewise.
27284 * modules/sys_select: Likewise.
27285 * modules/sys_socket: Likewise.
27286 * modules/sys_stat: Likewise.
27287 * modules/sys_time: Likewise.
27288 * modules/sysexits: Likewise.
27289 * modules/time: Likewise.
27290 * modules/unistd: Likewise.
27291 * modules/wchar: Likewise.
27292 * modules/wctype: Likewise.
27293 * modules/sys_stat: Change maintainer to "all".
27294 * modules/unistd: Likewise.
27296 2007-06-20 Karl Berry <karl@gnu.org>
27298 * config/srclist.txt: track www changes in license files.
27300 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
27302 * build-aux/bootstrap: Remove stray dot.
27303 Make sure build_aux settings are honored when linking
27304 gnulib_extra_files.
27306 2007-06-19 Eric Blake <ebb9@byu.net>
27308 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
27309 Allow compilation on cygwin.
27311 2007-06-19 Jim Meyering <jim@meyering.net>
27313 xreadlink-with-size: Remove module. No longer used.
27314 Ex-callers now use xreadlink or mreadlink-with-size.
27315 * modules/xreadlink-with-size: Remove module.
27316 * lib/xreadlink-with-size.c: Remove file.
27317 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
27318 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
27319 just before the function definition *is* accurate.
27321 Eliminate one way canonicalize_filename_mode could exit.
27322 * lib/canonicalize.c (canonicalize_filename_mode):
27323 Use mreadlink_with_size, not xreadlink_with_size.
27325 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
27327 Detect porting problems to FreeBSD/arm, which has time_t wider than
27328 long int. Original problem reported for GNU diff by Xin Li in
27329 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
27330 * modules/getdate (Depends-on): Add intprops, verify.
27331 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
27332 is an integer type no wider than long int.
27334 2007-06-18 Jim Meyering <jim@meyering.net>
27336 New module: mreadlink-with-size.
27337 * MODULES.html.sh: Add mreadlink-with-size.
27338 * modules/mreadlink-with-size: New module
27339 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
27340 not xreadlink-with-size.
27341 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
27343 2007-06-16 Bruno Haible <bruno@clisp.org>
27345 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
27346 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
27347 Reported by Gary V. Vaughan <gary@gnu.org>.
27349 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
27351 Revamp lchown so that it lives in unistd.h where it belongs.
27352 * lib/lchown.h: Remove.
27353 * lib/dirchownmod.c: Don't include lib/lchown.h.
27354 * lib/fchownat.c: Likewise.
27355 * lib/openat.c: Likewise.
27356 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
27357 does not follow symlinks.
27358 (EOPNOTSUPP): Define if not defined.
27359 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
27361 (lchown): New decl.
27362 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
27363 Do not check for lchown decl.
27364 Set REPLACE_LCHOWN.
27365 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
27367 * modules/chown: Make it clear it follows symlinks.
27368 * modules/lchown: Make it clear it doesn't follow symlinks.
27369 (Files): Remove lib/lchown.h
27370 (Depends-on): Add unistd.
27371 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
27372 (Include): Include <unistd.h>, not "lchown.h".
27373 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
27376 2007-06-15 Jim Meyering <jim@meyering.net>
27378 Change license (GPL to LGPL) of fsusage and dependents.
27379 * modules/fsusage (License): Change to LGPL.
27380 * modules/full-read (License): Likewise.
27381 * modules/full-write (License): Likewise.
27382 * modules/safe-read (License): Likewise.
27383 * modules/safe-write (License): Likewise.
27385 2007-06-14 Ben Pfaff <blp@gnu.org>
27387 Missing part of allocsa -> malloca transition.
27388 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
27391 2007-06-12 Bruno Haible <bruno@clisp.org>
27393 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
27394 to ia64, x86_64, i386.
27395 Reported by Eric Blake.
27397 2007-06-12 Bruno Haible <bruno@clisp.org>
27399 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
27400 cross-compiling to x86_64.
27402 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
27404 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
27405 glitch reported by Ralf Wildenhues in
27406 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
27408 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
27411 2007-06-11 Bruno Haible <bruno@clisp.org>
27413 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
27414 replacement string.
27415 Reported by Eric Blake.
27417 2007-06-10 Bruno Haible <bruno@clisp.org>
27419 Prepare vasnprintf code for use with Unicode strings.
27420 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
27421 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
27423 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
27424 a_u32_string variants.
27425 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
27426 * lib/printf-args.c: Don't include config.h and the specification
27427 header if PRINTF_FETCHARGS is already defined.
27428 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
27429 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
27430 TYPE_U16_STRING, TYPE_U32_STRING.
27431 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
27432 u16_directive, u16_directives, u32_directive, u32_directives): New
27434 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
27436 * lib/printf-parse.c: Don't include config.h and the specification
27437 header if PRINTF_PARSE is already defined. Eliminate the set of
27438 parameters for WIDE_CHAR_VERSION; the user of this file must provide
27439 them now. Include c-ctype.h.
27440 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
27441 directive and CHAR_T_ONLY_ASCII.
27442 * lib/vasnprintf.c: Don't include config.h and the specification header
27443 if VASNPRINTF is already defined.
27444 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
27445 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
27446 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
27447 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
27448 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
27449 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
27451 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
27452 pad_ourselves also in this case, with the 'c' and 's' directives, and
27453 with a different notion of "width".
27454 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
27456 2007-06-10 Bruno Haible <bruno@clisp.org>
27458 * modules/unistr/u32-mbsnlen: New file.
27459 * lib/unistr/u32-mbsnlen.c: New file.
27461 * modules/unistr/u16-mbsnlen: New file.
27462 * lib/unistr/u16-mbsnlen.c: New file.
27464 * modules/unistr/u8-mbsnlen: New file.
27465 * lib/unistr/u8-mbsnlen.c: New file.
27467 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
27470 2007-06-10 Bruno Haible <bruno@clisp.org>
27472 * lib/string_.h (mbsnlen): New declaration.
27473 * lib/mbsnlen.c: New file.
27474 * m4/mbsnlen.m4: New file.
27475 * modules/mbsnlen: New file.
27476 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
27477 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
27478 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
27480 2007-06-10 Bruno Haible <bruno@clisp.org>
27482 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
27484 2007-06-10 Bruno Haible <bruno@clisp.org>
27486 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
27487 * lib/mbuiter.h: Likewise.
27489 2007-06-10 Bruno Haible <bruno@clisp.org>
27491 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
27494 2007-06-10 Karl Berry <karl@gnu.org>
27496 * config/srclist.txt: remove gettext entries, Bruno prefers
27497 to update individually.
27499 2007-06-10 Bruno Haible <bruno@clisp.org>
27501 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
27502 'maxlen'. Ensure only length + width bytes are allocated, not
27503 length + 1 + width.
27505 2007-06-09 Bruno Haible <bruno@clisp.org>
27507 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
27508 (CHAR_T): Remove macro.
27509 (VASNPRINTF): Update.
27511 2007-06-09 Bruno Haible <bruno@clisp.org>
27513 * MODULES.html.sh (Unicode string functions): Add the new modules.
27515 * modules/uniconv/u32-conv-to-enc: New file.
27516 * lib/uniconv/u32-conv-to-enc.c: New file.
27517 * modules/uniconv/u32-conv-to-enc-tests: New file.
27518 * tests/uniconv/test-u32-conv-to-enc.c: New file.
27520 * modules/uniconv/u16-conv-to-enc: New file.
27521 * lib/uniconv/u16-conv-to-enc.c: New file.
27522 * lib/uniconv/u-conv-to-enc.h: New file.
27523 * modules/uniconv/u16-conv-to-enc-tests: New file.
27524 * tests/uniconv/test-u16-conv-to-enc.c: New file.
27526 * modules/uniconv/u8-conv-to-enc: New file.
27527 * lib/uniconv/u8-conv-to-enc.c: New file.
27528 * modules/uniconv/u8-conv-to-enc-tests: New file.
27529 * tests/uniconv/test-u8-conv-to-enc.c: New file.
27531 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
27532 u32_conv_to_encoding): New declarations.
27534 2007-06-09 Bruno Haible <bruno@clisp.org>
27536 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
27538 2007-06-09 Bruno Haible <bruno@clisp.org>
27540 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
27541 * modules/malloca: Renamed from modules/allocsa, updated.
27542 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
27543 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
27544 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
27545 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
27546 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
27547 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
27548 * modules/xmalloca: Renamed from modules/xallocsa, updated.
27549 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
27550 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
27551 * modules/c-strcasestr (Depends-on): Update.
27552 * lib/c-strcasestr.c: Update.
27553 * modules/c-strstr (Depends-on): Update.
27554 * lib/c-strstr.c: Update.
27555 * modules/canonicalize-lgpl (Depends-on): Update.
27556 * lib/canonicalize-lgpl.c: Update.
27557 * modules/clean-temp (Depends-on): Update.
27558 * lib/clean-temp.c: Update.
27559 * modules/csharpcomp (Depends-on): Update.
27560 * lib/csharpcomp.c: Update.
27561 * modules/csharpexec (Depends-on): Update.
27562 * lib/csharpexec.c: Update.
27563 * modules/javacomp (Depends-on): Update.
27564 * lib/javacomp.c: Update.
27565 * modules/javaexec (Depends-on): Update.
27566 * lib/javaexec.c: Update.
27567 * modules/mbscasestr (Depends-on): Update.
27568 * lib/mbscasestr.c: Update.
27569 * modules/mbsstr (Depends-on): Update.
27570 * lib/mbsstr.c: Update.
27571 * modules/setenv (Depends-on): Update.
27572 * lib/setenv.c: Update.
27573 * modules/strcasestr (Depends-on): Update.
27574 * lib/strcasestr.c: Update.
27575 * modules/striconveha (Depends-on): Update.
27576 * lib/striconveha.c: Update.
27577 * modules/relocatable-prog-wrapper (Files): Update.
27578 * lib/relocwrapper.c: Update.
27579 * build-aux/install-reloc: Update.
27580 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
27582 2007-06-08 Bruno Haible <bruno@clisp.org>
27585 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
27586 * lib/fpurge.c (fpurge): Likewise.
27587 * lib/freading.c (freading): Likewise.
27588 * lib/fseeko.c (rpl_fseeko): Likewise.
27589 * lib/fseterr.c (fseterr): Likewise.
27590 * lib/fwriting.c (fwriting): Likewise.
27591 * tests/test-fflush.c (main): Avoid a failure on uClibc.
27593 2007-06-08 Bruno Haible <bruno@clisp.org>
27595 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
27596 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
27597 * modules/gettext (Files): Add m4/intlmacosx.m4.
27599 2007-06-07 Bruno Haible <bruno@clisp.org>
27601 * modules/localename-tests: New file.
27602 * tests/test-localename.c: New file.
27604 New module 'localename'.
27605 * lib/localename.h: New file.
27606 * lib/localename.c: New file, from GNU gettext.
27607 * m4/localename.m4: New file.
27608 * modules/localename: New file.
27610 2007-06-07 Bruno Haible <bruno@clisp.org>
27612 Work around the lack of <wchar.h> on some builds of uClibc.
27613 * doc/headers/wchar.texi: Update.
27614 * lib/wchar_.h: Include <wchar.h> only if it exists.
27615 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
27616 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
27617 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
27619 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
27620 * modules/mbfile (Depends-on): Add wchar.
27621 * modules/mbiter (Depends-on): Likewise.
27622 * modules/mbuiter (Depends-on): Likewise.
27623 Reported by Simon Josefsson.
27625 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
27627 Work around problem reported by Steven M. Schweda in
27628 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
27629 Tru64 5.1B with the Compaq compiler environment installed declares
27630 an 'isblank' function but does not define it in the C library.
27631 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
27632 * lib/regex_internal.h (isblank): Likewise.
27633 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
27634 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
27636 2007-06-05 Bruno Haible <bruno@clisp.org>
27638 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
27640 * modules/printf-safe: New file.
27641 * modules/fprintf-posix (Depends-on): Add printf-safe.
27642 * modules/printf-posix (Depends-on): Likewise.
27643 * modules/snprintf-posix (Depends-on): Likewise.
27644 * modules/sprintf-posix (Depends-on): Likewise.
27645 * modules/vasnprintf-posix (Depends-on): Likewise.
27646 * modules/vasprintf-posix (Depends-on): Likewise.
27647 * modules/vfprintf-posix (Depends-on): Likewise.
27648 * modules/vprintf-posix (Depends-on): Likewise.
27649 * modules/vsnprintf-posix (Depends-on): Likewise.
27650 * modules/vsprintf-posix (Depends-on): Likewise.
27651 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
27652 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
27653 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
27654 "no" on i386, x86_64, ia64.
27655 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
27656 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
27657 on i386, x86_64, ia64.
27658 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
27659 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
27660 on i386, x86_64, ia64.
27661 * tests/test-vasnprintf-posix.c: Include float.h.
27662 (LDBL80_WORDS): New macro.
27663 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
27664 on i386, x86_64, ia64.
27665 * tests/test-vasprintf-posix.c: Include float.h.
27666 (LDBL80_WORDS): New macro.
27667 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
27668 on i386, x86_64, ia64.
27669 * tests/test-snprintf-posix.c: Include float.h.
27670 * tests/test-sprintf-posix.c: Likewise.
27671 * tests/test-vsnprintf-posix.c: Likewise.
27672 * tests/test-vsprintf-posix.c: Likewise.
27674 2007-06-05 Bruno Haible <bruno@clisp.org>
27676 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
27677 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
27678 non-IEEE numbers on i386, x86_64, ia64.
27679 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
27680 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
27681 * tests/test-isnanl.h: Include float.h.
27682 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
27684 2007-06-05 Bruno Haible <bruno@clisp.org>
27686 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
27687 also the %a / %A. Handle the %a / %A code before this extra handling.
27689 2007-06-05 Bruno Haible <bruno@clisp.org>
27691 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
27692 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
27694 2007-06-05 Bruno Haible <bruno@clisp.org>
27696 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
27697 typo in variable name.
27699 2007-06-05 Eric Blake <ebb9@byu.net>
27701 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
27702 Reported by Simon Josefsson.
27704 2007-06-04 Bruno Haible <bruno@clisp.org>
27706 Avoid test failures on some PowerPC platforms.
27707 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
27708 Define differently for PowerPC.
27709 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
27710 Reported by Gary V. Vaughan <gary@gnu.org>.
27712 2007-06-02 Bruno Haible <bruno@clisp.org>
27714 Fix test-stdint failure on FreeBSD/ia64.
27715 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
27716 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
27717 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
27718 * doc/headers/stdint.texi: Update.
27720 2007-06-01 Bruno Haible <bruno@clisp.org>
27722 * tests/test-binary-io.c (main): Pass a third argument to open().
27723 Reported by Gary V. Vaughan <gary@gnu.org>.
27725 2007-06-01 Bruno Haible <bruno@clisp.org>
27727 * doc/functions/frexpl.texi: Update for mingw.
27729 2007-06-01 Bruno Haible <bruno@clisp.org>
27731 * tests/test-lseek.c (main): Disable test of errno for invalid third
27733 * doc/functions/lseek.texi: Update.
27734 Reported by Gary V. Vaughan <gary@gnu.org>.
27736 2007-05-28 Bruno Haible <bruno@clisp.org>
27738 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
27740 2007-05-31 Eric Blake <ebb9@byu.net>
27742 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
27745 2007-05-30 Eric Blake <ebb9@byu.net>
27746 and Bruno Haible <bruno@clisp.org>
27748 Work around mingw test failures exposed by m4-1.4.9b.
27749 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
27750 * tests/test-unistd.c: Disable uid_t and git_t tests for the
27753 2007-05-30 Bruno Haible <bruno@clisp.org>
27755 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
27756 assuming that they are closed. Needed on HP-UX 11.
27758 2007-05-29 Bruno Haible <bruno@clisp.org>
27760 Fix a problem with #include_next.
27761 * lib/dirent_.h: Split the double-inclusion guard.
27762 * lib/fcntl_.h: Likewise.
27763 * lib/float_.h: Likewise.
27764 * lib/iconv_.h: Likewise.
27765 * lib/inttypes_.h: Likewise.
27766 * lib/locale_.h: Likewise.
27767 * lib/math_.h: Likewise.
27768 * lib/netinet_in_.h: Likewise.
27769 * lib/search_.h: Likewise.
27770 * lib/signal_.h: Likewise.
27771 * lib/stdint_.h: Likewise.
27772 * lib/stdio_.h: Likewise.
27773 * lib/stdlib_.h: Likewise.
27774 * lib/string_.h: Likewise.
27775 * lib/sys_select_.h: Likewise.
27776 * lib/sys_socket_.h: Likewise.
27777 * lib/sys_stat_.h: Likewise.
27778 * lib/sys_time_.h: Likewise.
27779 * lib/sysexits_.h: Likewise.
27780 * lib/time_.h: Likewise.
27781 * lib/unistd_.h: Likewise.
27782 * lib/wchar_.h: Likewise.
27783 * lib/wctype_.h: Likewise.
27785 2007-05-29 Bruno Haible <bruno@clisp.org>
27787 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
27790 2007-05-29 Bruno Haible <bruno@clisp.org>
27792 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
27794 Reported by Eric Blake.
27796 2007-05-29 Bruno Haible <bruno@clisp.org>
27798 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
27801 2007-05-29 Eric Blake <ebb9@byu.net>
27802 Bruno Haible <bruno@clisp.org>
27804 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
27807 2007-05-28 Eric Blake <ebb9@byu.net>
27809 * modules/closein-tests (test_closein_LDADD): Support test on
27810 cygwin with libtool.
27812 2007-05-28 Bruno Haible <bruno@clisp.org>
27814 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
27815 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
27816 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
27817 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
27818 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
27819 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
27820 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
27821 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
27822 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
27824 2007-05-28 Eric Blake <ebb9@byu.net>
27826 Unconditionally include <config.h> in unit tests.
27827 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
27828 * tests/test-allocsa.c, tests/test-arcfour.c,
27829 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
27830 tests/test-array_list.c, tests/test-array_oset.c,
27831 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
27832 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
27833 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
27834 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
27835 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
27836 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
27837 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
27838 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
27839 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
27840 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
27841 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
27842 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
27843 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
27844 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
27845 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
27846 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
27847 test-md5.c, test-memmem.c, test-printf-posix.c,
27848 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
27849 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
27850 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
27851 test-strcasestr.c, test-striconv.c, test-striconveh.c,
27852 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
27853 test-vasnprintf-posix2.c, test-vasnprintf.c,
27854 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
27855 test-vfprintf-posix.c, test-vprintf-posix.c,
27856 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
27857 test-xvasprintf.c: Likewise.
27859 2007-05-28 Bruno Haible <bruno@clisp.org>
27861 * gnulib-tool (func_import): Remember the --with-tests command-line
27862 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
27863 Reported by Eric Blake.
27865 2007-05-28 Bruno Haible <bruno@clisp.org>
27867 * modules/ftell-tests: New file.
27868 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
27869 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
27871 * lib/ftell.c: New file.
27872 * modules/ftell: New file.
27873 * m4/ftell.m4: New file.
27874 * doc/functions/ftell.texi: Update.
27875 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
27877 * lib/stdio_.h (rpl_ftell): New declaration.
27878 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
27881 2007-05-28 Eric Blake <ebb9@byu.net>
27883 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
27885 2007-05-28 Bruno Haible <bruno@clisp.org>
27887 * modules/fseek-tests: New file.
27888 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
27889 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
27891 * lib/fseek.c: New file.
27892 * modules/fseek: New file.
27893 * m4/fseek.m4: New file.
27894 * doc/functions/fseek.texi: Update.
27895 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
27897 * lib/stdio_.h (rpl_fseek): New declaration.
27898 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
27901 2007-05-28 Bruno Haible <bruno@clisp.org>
27903 * lib/stdio_.h (fflush): More comments.
27905 2007-05-28 Bruno Haible <bruno@clisp.org>
27907 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
27910 2007-05-28 Eric Blake <ebb9@byu.net>
27912 Improve lseek module.
27913 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
27914 * lib/unistd_.h (lseek): Scale back link warning message.
27915 * tests/test-lseek.c: Beef up test.
27916 * tests/test-lseek.sh: Exercise more facets of lseek.
27917 Reported by Bruno Haible.
27919 2007-05-28 Bruno Haible <bruno@clisp.org>
27921 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
27924 2007-05-27 Bruno Haible <bruno@clisp.org>
27926 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
27928 2007-05-27 Bruno Haible <bruno@clisp.org>
27930 * modules/openmp: New file.
27931 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
27934 2007-05-26 Bruno Haible <bruno@clisp.org>
27936 * modules/chdir-long (Depends-on): Add fchdir.
27937 * modules/chdir-safer (Depends-on): Likewise.
27938 * modules/fts (Depends-on): Likewise.
27939 * modules/fts-lgpl (Depends-on): Likewise.
27940 * modules/openat (Depends-on): Likewise.
27941 * modules/savewd (Depends-on): Likewise.
27943 2007-05-24 Eric Blake <ebb9@byu.net>
27945 Fix lseek on mingw.
27946 * modules/lseek: New module.
27947 * m4/lseek.m4: New file.
27948 * lib/lseek.c: New file.
27949 * modules/lseek-tests: New file.
27950 * tests/test-lseek.c: New file.
27951 * tests/test-lseek.sh: New file.
27952 * MODULES.html.sh: Document lseek module.
27953 * modules/fflush (Depends-on): Add lseek, fseeko.
27954 * modules/fseeko (Depends-on): Likewise.
27955 * modules/ftello (Depends-on): Likewise.
27956 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
27958 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
27960 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
27961 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
27962 * lib/ftello.c (rpl_ftello): Likewise.
27963 * tests/test-fseeko.c (main): Test this.
27964 * tests/test-fseeko.sh: Likewise.
27965 * tests/test-ftello.c (main): Likewise.
27966 * tests/test-ftello.sh: Likewise.
27967 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
27968 implies replacing fseek.
27969 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
27971 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
27972 * modules/unistd (Makefile.am): Likewise.
27973 * lib/unistd_.h (lseek): Declare a replacement.
27974 * doc/functions/lseek.texi (lseek): Document this fix.
27975 * doc/functions/fseek.texi (fseek): Likewise.
27976 * doc/functions/ftell.texi (ftell): Likewise.
27978 2007-05-24 Bruno Haible <bruno@clisp.org>
27980 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
27981 in the printed representation of a NaN.
27982 * tests/test-vasprintf-posix.c (test_function): Likewise.
27983 * tests/test-snprintf-posix.h (test_function): Likewise.
27984 * tests/test-sprintf-posix.h (test_function): Likewise.
27985 Reported by Eric Blake.
27987 2007-05-23 Eric Blake <ebb9@byu.net>
27989 Fix fseeko/ftello on cygwin 1.5.24.
27990 * doc/functions/fseeko.texi (fseeko): Document the fix.
27991 * doc/functions/ftello.texi (ftello): Document the fix.
27992 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
27993 * doc/functions/stdout.text (stdout): New file.
27994 * doc/functions/stderr.text (stderr): New file.
27995 * doc/gnulib.texi (Function Substitutes): Use new files.
27996 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
27998 * tests/test-ftello.c (main): Likewise for ftello.
27999 * tests/test-fseeko.sh: New file.
28000 * tests/test-ftello.sh: New file.
28001 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
28002 with seekable stdin.
28003 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
28004 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
28005 (gl_REPLACE_FSEEKO): New macro.
28006 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
28007 * modules/fseeko (Files): Distribute fseeko.c.
28008 * modules/ftello (Files): Distribute ftello.c.
28009 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
28011 * lib/ftello.c (rpl_ftello): New file.
28012 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
28014 (gl_STDIN_LARGE_OFFSET): New macro.
28015 * modules/stdio (Makefile.am): Perform the replacement.
28016 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
28018 2007-05-23 Bruno Haible <bruno@clisp.org>
28020 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
28021 GNULIB_POSIXCHECK is defined.
28023 2007-05-21 Bruno Haible <bruno@clisp.org>
28025 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
28026 Check also the output for NaN arguments. When cross-compiling, guess
28028 * lib/vasnprintf.c: Update comments.
28029 * tests/test-vasnprintf-posix.c (strisnan): New function.
28030 (test_function): Use it.
28031 * tests/test-vasprintf-posix.c (strisnan): New function.
28032 (test_function): Use it.
28033 * tests/test-snprintf-posix.h (strisnan): New function.
28034 (test_function): Use it.
28035 * tests/test-sprintf-posix.h (strisnan): New function.
28036 (test_function): Use it.
28037 Reported by Eric Blake.
28039 2007-05-20 Bruno Haible <bruno@clisp.org>
28041 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
28042 numbers that fails on BeOS.
28043 * doc/functions/frexpl.texi: Update.
28045 2007-05-20 Jim Meyering <jim@meyering.net>
28047 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
28048 forced upon us by glibc-2.6.
28050 2007-05-20 Bruno Haible <bruno@clisp.org>
28052 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
28053 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
28054 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
28055 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
28056 NEED_PRINTF_INFINITE.
28057 (is_infinitel): New function.
28058 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
28059 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
28060 gl_PREREQ_VASNPRINTF_INFINITE.
28061 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
28062 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28063 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
28064 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
28065 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
28066 gl_PREREQ_VASNPRINTF_INFINITE.
28067 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28068 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28069 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28070 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28071 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28072 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28073 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28074 * doc/functions/fprintf.texi: Update.
28075 * doc/functions/printf.texi: Update.
28076 * doc/functions/snprintf.texi: Update.
28077 * doc/functions/sprintf.texi: Update.
28078 * doc/functions/vfprintf.texi: Update.
28079 * doc/functions/vprintf.texi: Update.
28080 * doc/functions/vsnprintf.texi: Update.
28081 * doc/functions/vsprintf.texi: Update.
28083 2007-05-20 Bruno Haible <bruno@clisp.org>
28085 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
28086 was not found in libc.
28087 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28089 2007-05-20 Bruno Haible <bruno@clisp.org>
28091 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
28092 printed as "-nan" instead of "nan".
28093 * tests/test-vasprintf-posix.c (test_function): Likewise.
28094 * tests/test-snprintf-posix.h (test_function): Likewise.
28095 * tests/test-sprintf-posix.h (test_function): Likewise.
28096 Needed for HP-UX 11.
28098 2007-05-20 Jim Meyering <jim@meyering.net>
28100 Fix buggy test for the fchownat-deref bug.
28101 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
28102 symlink required for the run-test. Without it, this test would
28103 always declare that fchownat doesn't work, and client code would
28104 unnecessarily use the replacement function with fixed libc.
28105 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
28106 Reported by Greg Schafer.
28108 2007-05-19 Bruno Haible <bruno@clisp.org>
28110 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
28111 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
28112 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
28113 Needed for IRIX 6.5 and Solaris 2.5.1.
28115 2007-05-19 Bruno Haible <bruno@clisp.org>
28117 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
28118 (test_function): Skip tests involving -0.0 on platforms where
28120 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
28121 (test_function): Skip tests involving -0.0 on platforms where
28123 * tests/test-snprintf-posix.h (have_minus_zero): New function.
28124 (test_function): Skip tests involving -0.0 on platforms where
28126 * tests/test-sprintf-posix.h (have_minus_zero): New function.
28127 (test_function): Skip tests involving -0.0 on platforms where
28129 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
28131 * tests/test-printf-posix.h (test_function): Likewise.
28132 * tests/test-printf-posix.output: Remove all -0.0 related results.
28133 Needed for IRIX 6.5.
28135 2007-05-19 Bruno Haible <bruno@clisp.org>
28137 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
28138 printed as "nan0x7fffffff" instead of "nan".
28139 * tests/test-vasprintf-posix.c (test_function): Likewise.
28140 * tests/test-snprintf-posix.h (test_function): Likewise.
28141 * tests/test-sprintf-posix.h (test_function): Likewise.
28142 * tests/test-fprintf-posix.h (NaN): Remove macro.
28143 (test_function): Remove all NaN related tests.
28144 * tests/test-printf-posix.h (NaN): Remove macro.
28145 (test_function): Remove all NaN related tests.
28146 * tests/test-printf-posix.output: Remove all NaN related results.
28147 Needed for IRIX 6.5.
28149 2007-05-19 Bruno Haible <bruno@clisp.org>
28151 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
28152 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28154 2007-05-19 Bruno Haible <bruno@clisp.org>
28156 * lib/float_.h: New file.
28157 * m4/float_h.m4: New file.
28158 * modules/float: New file.
28159 * modules/isnanl (Dependencies): Add float.
28160 * modules/isnanl-nolibm (Dependencies): Likewise.
28161 * modules/mathl (Dependencies): Likewise.
28162 * modules/printf-frexpl (Dependencies): Likewise.
28163 * modules/signbit (Dependencies): Likewise.
28164 * modules/vasnprintf (Dependencies): Likewise.
28165 * doc/headers/float.texi: Update.
28167 2007-05-19 Jim Meyering <jim@meyering.net>
28169 * lib/utimens.c (gl_futimens): Rename from futimens,
28170 now that glibc-2.6 declares futimens.
28171 * lib/utimens.h: Likewise.
28173 2007-05-19 Bruno Haible <bruno@clisp.org>
28175 Avoid test failures on mingw.
28176 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
28177 * tests/test-printf-posix.sh: Likewise.
28178 * tests/test-vfprintf-posix.sh: Likewise.
28179 * tests/test-vprintf-posix.sh: Likewise.
28181 2007-05-19 Bruno Haible <bruno@clisp.org>
28183 Fix *printf result for NaN, Inf, -0.0 on mingw.
28184 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
28185 * lib/vasnprintf.c: Include math.h and isnan.h.
28186 (is_infinite_or_zero): New function.
28187 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
28188 values in the %f, %F, %e, %E, %g, %G directives.
28189 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
28190 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28191 gl_PRINTF_INFINITE and test its result. Invoke
28192 gl_PREREQ_VASNPRINTF_INFINITE.
28193 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28194 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28195 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28196 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28197 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28198 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28199 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28200 * doc/functions/fprintf.texi: Update.
28201 * doc/functions/printf.texi: Update.
28202 * doc/functions/snprintf.texi: Update.
28203 * doc/functions/sprintf.texi: Update.
28204 * doc/functions/vfprintf.texi: Update.
28205 * doc/functions/vprintf.texi: Update.
28206 * doc/functions/vsnprintf.texi: Update.
28207 * doc/functions/vsprintf.texi: Update.
28209 2007-05-19 Bruno Haible <bruno@clisp.org>
28211 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
28212 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
28213 Instead of multiplying with 10^k, set extra_zeroes to k.
28214 (scale10_round_long_double): Remove function.
28216 2007-05-18 Bruno Haible <bruno@clisp.org>
28218 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
28219 introduced on 2007-05-06.
28221 2007-05-18 Bruno Haible <bruno@clisp.org>
28223 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
28225 * tests/test-vasprintf-posix.c (test_function): Likewise.
28226 * tests/test-snprintf-posix.h (test_function): Likewise.
28227 * tests/test-sprintf-posix.h (test_function): Likewise.
28229 2007-05-18 Bruno Haible <bruno@clisp.org>
28231 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
28232 (strmatch): New function.
28233 (test_function): Test the %f directive on numbers of various exponents.
28234 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
28235 (strmatch): New function.
28236 (test_function): Test the %f directive on numbers of various exponents.
28237 * tests/test-snprintf-posix.h (strmatch): New function.
28238 (test_function): Test the %f directive on numbers of various exponents.
28239 * tests/test-sprintf-posix.h (strmatch): New function.
28240 (test_function): Test the %f directive on numbers of various exponents.
28241 * tests/test-snprintf-posix.c (SIZEOF): New macro.
28242 * tests/test-sprintf-posix.c (SIZEOF): New macro.
28243 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
28244 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
28246 2007-05-18 Bruno Haible <bruno@clisp.org>
28248 Add support for 'long double' number output.
28249 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
28250 * lib/vasnprintf.c: Include math.h and float+.h.
28251 (mp_limb_t): New type.
28252 (GMP_LIMB_BITS): New macro.
28253 (mp_twolimb_t): New type.
28254 (GMP_TWOLIMB_BITS): New macro.
28256 (multiply, divide, convert_to_decimal, decode_long_double,
28257 scale10_round_long_double, scale10_round_decimal_long_double,
28258 floorlog10l): New functions.
28259 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
28260 for the %f, %F, %e, %E, %g, %G directives.
28261 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
28262 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28263 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
28264 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
28265 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28266 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28267 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28268 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28269 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28270 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28271 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28272 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
28273 * modules/snprintf-posix (Depends-on): Likewise.
28274 * modules/sprintf-posix (Depends-on): Likewise.
28275 * modules/vasnprintf-posix (Depends-on): Likewise.
28276 * modules/vasprintf-posix (Depends-on): Likewise.
28277 * modules/vfprintf-posix (Depends-on): Likewise.
28278 * modules/vsnprintf-posix (Depends-on): Likewise.
28279 * modules/vsprintf-posix (Depends-on): Likewise.
28280 * modules/vasnprintf (Files): Add lib/float+.h.
28281 * doc/functions/fprintf.texi: Update.
28282 * doc/functions/printf.texi: Update.
28283 * doc/functions/snprintf.texi: Update.
28284 * doc/functions/sprintf.texi: Update.
28285 * doc/functions/vfprintf.texi: Update.
28286 * doc/functions/vprintf.texi: Update.
28287 * doc/functions/vsnprintf.texi: Update.
28288 * doc/functions/vsprintf.texi: Update.
28290 2007-05-18 Bruno Haible <bruno@clisp.org>
28292 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
28294 2007-05-18 Bruno Haible <bruno@clisp.org>
28296 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
28297 for printing 64-bit integers. Needed for mingw.
28299 2007-05-18 Bruno Haible <bruno@clisp.org>
28301 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
28302 gl_FUNC_FREXPL_WORKS.
28303 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
28305 2007-05-18 Bruno Haible <bruno@clisp.org>
28307 * modules/frexpl-nolibm-tests: New file.
28309 * modules/frexpl-nolibm: New file.
28310 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
28312 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
28314 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
28315 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
28316 GCC 4.2, which otherwise issues a lot of warnings.
28317 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
28318 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
28320 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
28321 * modules/iconv_open (iconv.h): Likewise.
28322 * modules/locale (locale.h): Likewise.
28323 * modules/netinet_in (netinet/in.h): Likewise.
28324 * modules/sys_select (sys_select.h): Likewise.
28325 * modules/sys_socket (sys/socket.h): Likewise.
28326 * modules/sys_stat (sys/stat.h): Likewise.
28327 * modules/sysexits (sysexits.h): Likewise.
28328 * modules/unistd (unistd.h): Likewise.
28330 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28332 * modules/closein-tests (Makefile.am): Distribute
28335 2007-05-17 Bruno Haible <bruno@clisp.org>
28337 * tests/test-printf-posix.output: Renamed from
28338 tests/test-fprintf-posix.out.
28339 * modules/fprintf-posix-tests: Update.
28340 * modules/printf-posix-tests: Update.
28341 * modules/vfprintf-posix-tests: Update.
28342 * modules/vprintf-posix-tests: Update.
28343 * tests/test-fprintf-posix.sh: Update.
28344 * tests/test-printf-posix.sh: Update.
28345 * tests/test-vfprintf-posix.sh: Update.
28346 * tests/test-vprintf-posix.sh: Update.
28347 Reported by Ralf Wildenhues.
28349 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
28351 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
28352 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
28353 GCC 4.2, which otherwise issues a lot of warnings.
28354 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
28355 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
28356 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
28357 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
28358 it should no longer be needed.
28359 * lib/string_.h: Likewise.
28360 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
28361 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
28362 * modules/inttypes (inttypes.h): Likewise.
28363 * modules/math (math.h): Likewise.
28364 * modules/search (search.h): Likewise.
28365 * modules/signal (signal.h): Likewise.
28366 * modules/stdint (stdint.h): Likewise.
28367 * modules/stdio (stdio.h): Likewise.
28368 * modules/stdlib (stdlib.h): Likewise.
28369 * modules/string (string.h): Likewise.
28370 * modules/sys_time (sys/time.h): Likewise.
28371 * modules/time (time.h): Likewise.
28372 * modules/wchar (wchar.h): Likewise.
28373 * modules/wctype (wtype.h): Likewise.
28375 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
28377 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
28379 2007-05-13 Bruno Haible <bruno@clisp.org>
28381 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
28382 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28383 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
28384 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
28385 (gl_PREREQ_STRTOK_R): Don't require it here.
28387 2007-05-13 Bruno Haible <bruno@clisp.org>
28389 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
28390 when used in C++ mode.
28392 2007-05-12 Bruno Haible <bruno@clisp.org>
28394 * lib/linebuffer.h: Tweak doc.
28395 * lib/linebuffer.c: Likewise.
28397 2007-05-12 James Youngman <jay@gnu.org>
28399 * lib/linebuffer.c (readlinebuffer_delim): New function,
28400 like readlinebuffer, but use a caller-specified delimiter.
28401 (readlinebuffer): Just call readlinebuffer_delim with '\n'
28403 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
28405 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
28407 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
28408 * modules/openat (Files): Remove openat-die.c.
28409 (Depends-on): Add openat-die.
28410 * modules/openat-die: New module.
28412 2007-05-06 Bruno Haible <bruno@clisp.org>
28414 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
28415 Update with info about Cygwin.
28416 * doc/functions/fprintf.texi: Update.
28417 * doc/functions/printf.texi: Update.
28418 * doc/functions/snprintf.texi: Update.
28419 * doc/functions/sprintf.texi: Update.
28420 * doc/functions/vfprintf.texi: Update.
28421 * doc/functions/vprintf.texi: Update.
28422 * doc/functions/vsnprintf.texi: Update.
28423 * doc/functions/vsprintf.texi: Update.
28424 Reported by Eric Blake.
28426 2007-05-06 Bruno Haible <bruno@clisp.org>
28428 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
28429 padding ourselves for the floating-point directives.
28430 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
28431 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
28432 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
28433 gl_PRINTF_FLAG_ZERO and test its result. Invoke
28434 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
28435 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28436 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
28437 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28438 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28439 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28440 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28441 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28442 * tests/test-snprintf-posix.h (test_function): Also check the width
28443 and some flags in the %f directive.
28444 * tests/test-sprintf-posix.h (test_function): Likewise.
28445 * tests/test-vasnprintf-posix.c (test_function): Likewise.
28446 * tests/test-vasprintf-posix.c (test_function): Likewise.
28447 * doc/functions/fprintf.texi: Update.
28448 * doc/functions/printf.texi: Update.
28449 * doc/functions/snprintf.texi: Update.
28450 * doc/functions/sprintf.texi: Update.
28451 * doc/functions/vfprintf.texi: Update.
28452 * doc/functions/vprintf.texi: Update.
28453 * doc/functions/vsnprintf.texi: Update.
28454 * doc/functions/vsprintf.texi: Update.
28456 2007-05-06 Bruno Haible <bruno@clisp.org>
28458 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
28459 pass the ' flag character to sprintf or snprintf.
28460 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
28461 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
28462 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
28463 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
28464 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
28465 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28466 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
28467 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28468 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28469 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28470 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28471 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28472 * tests/test-snprintf-posix.h (test_function): Also check the grouping
28474 * tests/test-sprintf-posix.h (test_function): Likewise.
28475 * tests/test-vasnprintf-posix.c (test_function): Likewise.
28476 * tests/test-vasprintf-posix.c (test_function): Likewise.
28477 * doc/functions/fprintf.texi: Update.
28478 * doc/functions/printf.texi: Update.
28479 * doc/functions/snprintf.texi: Update.
28480 * doc/functions/sprintf.texi: Update.
28481 * doc/functions/vfprintf.texi: Update.
28482 * doc/functions/vprintf.texi: Update.
28483 * doc/functions/vsnprintf.texi: Update.
28484 * doc/functions/vsprintf.texi: Update.
28486 2007-05-01 Bruno Haible <bruno@clisp.org>
28488 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
28490 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
28492 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
28493 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
28495 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
28497 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
28498 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
28499 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
28501 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
28503 * lib/argp-help.c (struct hol_entry): New member `ord'.
28504 (HOL_ENTRY_PTRCMP): Use ord for comparison
28505 (hol_sort): Initialize ord.
28507 2007-05-01 Bruno Haible <bruno@clisp.org>
28509 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
28510 Reported by Eric Blake.
28511 * doc/gnulib.texi (Function Substitutes): Update.
28513 2007-05-01 Bruno Haible <bruno@clisp.org>
28515 * doc/functions.texi: Remove file, now redundant through
28516 doc/functions/*.texi.
28518 2007-05-01 Bruno Haible <bruno@clisp.org>
28520 * modules/argp (Depends-on): Add sleep.
28522 2007-05-01 Bruno Haible <bruno@clisp.org>
28524 * modules/sleep-tests: New file.
28525 * tests/test-sleep.c: New file.
28527 * modules/sleep: New file.
28528 * lib/sleep.c: New file.
28529 * m4/sleep.m4: New file.
28530 * lib/unistd_.h (sleep): New declaration.
28531 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
28533 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
28534 * doc/functions/sleep.texi: Document the sleep module.
28536 2007-05-01 Bruno Haible <bruno@clisp.org>
28538 * lib/sigprocmask.h: Remove file.
28539 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
28540 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
28541 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
28542 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
28543 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
28544 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
28545 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
28546 HAVE_SIGSET_T as a shell variable.
28547 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
28548 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
28549 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
28550 (Depends-on): Add signal. Remove verify.
28551 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
28552 (Include): Mention <signal.h> instead of sigprocmask.h.
28553 * NEWS: Mention the change.
28554 * lib/fatal-signal.c: Don't include sigprocmask.h.
28556 2007-05-01 Bruno Haible <bruno@clisp.org>
28558 * modules/signal: New file.
28559 * lib/signal_.h: New file.
28560 * m4/signal_h.m4: New file.
28562 2007-05-01 Bruno Haible <bruno@clisp.org>
28564 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
28565 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
28566 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
28567 HAVE_WCTYPE_CTMP_BUG into wctype.h.
28569 2007-05-01 Bruno Haible <bruno@clisp.org>
28571 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
28573 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
28574 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
28575 * modules/sys_stat (Makefile.am): Substitute their values into
28578 2007-05-01 Bruno Haible <bruno@clisp.org>
28580 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
28581 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
28582 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
28584 2007-05-01 Bruno Haible <bruno@clisp.org>
28586 * doc/header/assert.texi: Undo last change: don't mention the gnulib
28587 'assert' module here.
28589 2007-05-01 Bruno Haible <bruno@clisp.org>
28591 * doc/functions/*.texi: New files.
28592 * doc/functions/google-ranking.txt: New file.
28593 * doc/gnulib.texi (Function Substitutes): New chapter.
28594 (ctime, inet_ntoa): Remove sections.
28595 * doc/ctime.texi: Remove file.
28596 * doc/inet_ntoa.texi: Remove file.
28597 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
28599 (%.info): New rule, specifying a --reference-limit.
28601 2007-05-01 Bruno Haible <bruno@clisp.org>
28603 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
28605 2007-05-01 Bruno Haible <bruno@clisp.org>
28607 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
28608 the portability of 'mkdir' to mingw systems.
28610 2007-05-01 Bruno Haible <bruno@clisp.org>
28612 * doc/headers/google-ranking.txt: New file.
28614 2007-04-30 Eric Blake <ebb9@byu.net>
28616 Prefer fseeko to fseek.
28617 * modules/getpass (Depends-on): Add fseeko.
28618 * lib/getpass.c (getpass): Use fseeko, not fseek.
28620 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
28622 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
28623 assumes the sorting is stable, while most qsort implementations
28624 are not. Use argument addresses to ensure they never compare as
28627 * tests/test-argp-2.sh (usage-indent test): Fix output
28628 (func_compare): Restore diff options
28629 * tests/test-argp.c: Restore #include "progname.h"
28631 2007-04-29 Bruno Haible <bruno@clisp.org>
28633 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
28634 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
28635 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
28636 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28637 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
28638 (configure.ac): Define CHECK_SNPRINTF_POSIX.
28639 (TESTS, check_PROGRAMS): Add test-snprintf.
28640 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
28641 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
28642 (TESTS, check_PROGRAMS): Add test-vsnprintf.
28643 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
28644 assertions that fail on HP-UX, OSF/1, or IRIX.
28645 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
28647 2007-04-29 Bruno Haible <bruno@clisp.org>
28649 * MODULES.html.sh (posix_functions): Remove 'contents'.
28651 2007-04-29 Karl Berry <karl@gnu.org>
28653 * config/srclist.txt (gendocs_template_min): new entry.
28655 2007-04-29 Bruno Haible <bruno@clisp.org>
28657 Work around fpurge bug on BSD systems.
28658 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
28659 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
28660 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
28661 fpurge to rpl_fpurge if the system already has this function.
28662 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
28663 the case where the system already has this function. Correct invariants
28665 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
28668 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
28670 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
28671 proposed by Sven Verdoolaege.
28673 * tests/test-argp.c: Fix option ordering. Test deeply clustered
28675 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
28676 (usage and help tests): Update
28678 2007-04-29 Bruno Haible <bruno@clisp.org>
28680 * tests/test-fflush.c (main): Use a file of size 17, not 10.
28681 Print more information in case of failure. Disable a test on BeOS.
28683 2007-04-29 Bruno Haible <bruno@clisp.org>
28685 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
28686 This helps debugging on systems on which no gdb is available.
28688 2007-04-29 Bruno Haible <bruno@clisp.org>
28690 * lib/freading.h: Improve comments.
28691 * lib/fwriting.h: Likewise.
28692 * tests/test-freading.c (main): Don't check freading immediately after
28693 repositioning. Needed for glibc.
28695 2007-04-29 Bruno Haible <bruno@clisp.org>
28697 * lib/freading.c (freading): Trivial simplification.
28699 2007-04-28 Bruno Haible <bruno@clisp.org>
28701 * tests/test-fwriting.c (main): Also test the interaction between
28702 fflush and fwriting.
28703 * modules/fwriting-tests (Depends-on): Add fflush.
28705 * tests/test-freading.c (main): Also test the interaction between
28706 fflush and freading.
28707 * modules/freading-tests (Depends-on): Add fflush.
28709 2007-04-28 Bruno Haible <bruno@clisp.org>
28711 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
28713 Suggested by Eric Blake.
28715 2007-04-28 Jim Meyering <jim@meyering.net>
28717 Avoid false-negative in gl_STDINT_H's C99 conformance test.
28718 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
28719 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
28721 2007-04-27 Eric Blake <ebb9@byu.net>
28723 * doc/headers/assert.texi (assert.h): Document assert module use.
28725 2007-04-27 Bruno Haible <bruno@clisp.org>
28727 * doc/headers/*.texi: New files.
28728 * doc/gnulib.texi (Header File Substitutes): New chapter.
28729 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
28731 (standards.info ,standards.html, standards.dvi): Update dependencies.
28732 (mostlyclean, clean): New targets.
28734 2007-04-27 Bruno Haible <bruno@clisp.org>
28736 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
28737 * modules/sysexits (Files, Makefile.am): Update.
28739 * lib/sys_socket_.h: Renamed from lib/socket_.h.
28740 * modules/sys_socket (Files, Makefile.am): Update.
28742 * lib/sys_stat_.h: Renamed from lib/stat_.h.
28743 * modules/sys_stat (Files, Makefile.am): Update.
28745 2007-04-27 Eric Blake <ebb9@byu.net>
28747 * lib/freading.h: Improve comments.
28748 * lib/fwriting.h: Likewise.
28749 * lib/fflush.c: Likewise.
28751 Fix closein for mingw.
28752 * modules/closein-tests: Add tests for closein.
28753 * tests/test-closein.c: New file.
28754 * tests/test-closein.sh: Likewise.
28755 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
28756 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
28758 2007-04-27 Bruno Haible <bruno@clisp.org>
28760 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
28762 * lib/math_.h [__DECC]: Likewise.
28763 * lib/stdio_.h [__DECC]: Likewise.
28764 * lib/stdlib_.h [__DECC]: Likewise.
28765 * lib/string_.h [__DECC]: Likewise.
28766 * lib/time_.h [__DECC]: Likewise.
28767 * lib/wchar_.h [__DECC]: Likewise.
28768 * lib/wctype_.h [__DECC]: Likewise.
28770 2007-04-27 Bruno Haible <bruno@clisp.org>
28772 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
28774 2007-04-27 Bruno Haible <bruno@clisp.org>
28776 * lib/fflush.c: Add comments.
28777 * modules/fpurge-tests (Depends-on): Add fflush.
28778 * modules/freadable-tests (Depends-on): Likewise.
28779 * modules/fwritable-tests (Depends-on): Likewise.
28781 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
28783 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
28784 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
28785 Report by Bruno Haible <bruno@clisp.org>.
28787 2007-04-26 Eric Blake <ebb9@byu.net>
28789 Fix fflush on mingw.
28790 * modules/fflush (Depends-on): Add freading.
28791 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
28794 2007-04-26 Eric Blake <ebb9@byu.net>
28795 and Bruno Haible <bruno@clisp.org>
28797 Implement freading and fwriting.
28798 * lib/freading.c: New file.
28799 * lib/freading.h: Likewise.
28800 * m4/freading.m4: Likewise.
28801 * modules/freading: Likewise.
28802 * modules/freading-tests: Likewise.
28803 * tests/test-freading.c: Likewise.
28804 * lib/fwriting.c: New file.
28805 * lib/fwriting.h: Likewise.
28806 * m4/fwriting.m4: Likewise.
28807 * modules/fwriting: Likewise.
28808 * modules/fwriting-tests: Likewise.
28809 * tests/test-fwriting.c: Likewise.
28810 * MODULES.html.sh (File stream based Input/Output): Mention them.
28812 2007-04-26 Bruno Haible <bruno@clisp.org>
28814 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
28815 'long' when we assume it.
28816 Suggested by Eric Blake.
28818 2007-04-26 Bruno Haible <bruno@clisp.org>
28820 Ensure fseeko, ftello are declared on glibc systems.
28821 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
28822 * modules/fseeko (configure.ac-early): Likewise.
28823 * modules/ftello (configure.ac-early): Likewise.
28824 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
28825 AC_FUNC_FSEEKO for this.
28826 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
28827 (gl_CHECK_FSEEKO): Remove macro.
28829 2007-04-26 Bruno Haible <bruno@clisp.org>
28831 * tests/test-fflush.c (main): Also check the ftell result after
28832 fflush and fseek/fseeko.
28833 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
28834 file descriptor position cache in the stream.
28835 * lib/fseeko.c (rpl_fseeko): Likewise.
28837 2007-04-26 Bruno Haible <bruno@clisp.org>
28839 * modules/fflush-tests (Depends-on): Add fseeko.
28841 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
28842 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28844 * lib/argz_.h: ensure error_t definition is obtained in same
28845 mechanism system argz.h would have.
28846 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
28847 argz facilities are known bad. Err on the side of caution if
28850 2007-04-25 Eric Blake <ebb9@byu.net>
28852 * lib/fpurge.c (includes): Use stdlib.h for free.
28853 * tests/test-fflush.c (main): Also test fflush-fseeko.
28855 2007-04-25 Bruno Haible <bruno@clisp.org>
28857 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
28858 * lib/fseeko.c: New file.
28859 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
28860 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
28861 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
28863 (gl_FUNC_FSEEKO): Invoke it.
28864 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
28865 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
28866 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
28868 2007-04-25 Bruno Haible <bruno@clisp.org>
28870 * modules/fflush (Depends-on): Add ftello.
28872 2007-04-25 Bruno Haible <bruno@clisp.org>
28874 * modules/ftello-tests: New file.
28875 * tests/test-ftello.c: New file.
28877 * modules/ftello: New file.
28878 * m4/ftello.m4: New file.
28879 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
28881 * lib/stdio_.h (ftello): New declaration.
28882 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
28885 2007-04-25 Bruno Haible <bruno@clisp.org>
28887 * modules/fseeko-tests: New file.
28888 * tests/test-fseeko.c: New file.
28890 * modules/fseeko: New file.
28891 * m4/fseeko.m4: New file.
28892 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
28894 * lib/stdio_.h (fseeko): New declaration.
28895 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
28898 2007-04-25 Bruno Haible <bruno@clisp.org>
28900 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
28902 2007-04-25 Bruno Haible <bruno@clisp.org>
28904 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
28905 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
28906 * tests/test-unistd.c: Likewise.
28907 * tests/test-fcntl.c: Likewise.
28909 2007-04-23 Eric Blake <ebb9@byu.net>
28911 * lib/fflush.c: Fix missing include.
28912 Reported by Bruno Haible.
28914 2007-04-23 Bruno Haible <bruno@clisp.org>
28916 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
28917 Reported by Eric Blake.
28919 2007-04-23 Bruno Haible <bruno@clisp.org>
28921 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
28923 2007-04-23 Bruno Haible <bruno@clisp.org>
28925 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
28927 2007-04-23 Bruno Haible <bruno@clisp.org>
28929 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
28930 Needed on HP-UX 11.
28932 2007-04-16 Eric Blake <ebb9@byu.net>
28934 Make fflush rely on fpurge.
28935 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
28936 open coding all variants.
28937 * modules/fflush (Depends-on): Add fpurge and unistd.
28938 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
28939 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
28941 Fix --with-tests compilation on cygwin.
28942 * modules/argmatch-tests (Makefile.am): List gnulib library first
28944 * modules/argp-tests (Makefile.am): Likewise.
28945 * modules/array-list-tests (Makefile.am): Likewise.
28946 * modules/array-oset-tests (Makefile.am): Likewise.
28947 * modules/avltree-list-tests (Makefile.am): Likewise.
28948 * modules/avltree-oset-tests (Makefile.am): Likewise.
28949 * modules/avltreehash-list-tests (Makefile.am): Likewise.
28950 * modules/carray-list-tests (Makefile.am): Likewise.
28951 * modules/dirname-tests (Makefile.am): Likewise.
28952 * modules/frexp-tests (Makefile.am): Likewise.
28953 * modules/isnanl-tests (Makefile.am): Likewise.
28954 * modules/linked-list-tests (Makefile.am): Likewise.
28955 * modules/linkedhash-list-tests (Makefile.am): Likewise.
28956 * modules/lock-tests (Makefile.am): Likewise.
28957 * modules/rbtree-list-tests (Makefile.am): Likewise.
28958 * modules/rbtree-oset-tests (Makefile.am): Likewise.
28959 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
28960 * modules/tls-tests (Makefile.am): Likewise.
28961 * modules/tsearch-tests (Makefile.am): Likewise.
28962 * modules/xvasprintf-tests (Makefile.am): Likewise.
28964 Fix fpurge for cygwin.
28965 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
28967 * modules/fpurge-tests (Depends-on): Clean up trash.
28969 2007-04-16 Simon Josefsson <simon@josefsson.org>
28971 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
28973 * m4/autobuild.m4: Re-indent.
28975 2007-04-13 Bruno Haible <bruno@clisp.org>
28977 * modules/fpurge-tests: New file.
28978 * tests/test-fpurge.c: New file.
28980 * modules/fpurge: New file.
28981 * lib/fpurge.h: New file.
28982 * lib/fpurge.c: New file.
28983 * m4/fpurge.m4: New file.
28985 2007-04-13 Bruno Haible <bruno@clisp.org>
28987 * modules/fbufmode-tests: New file.
28988 * tests/test-fbufmode.c: New file.
28990 * modules/fbufmode: New file.
28991 * lib/fbufmode.h: New file.
28992 * lib/fbufmode.c: New file.
28993 * m4/fbufmode.m4: New file.
28995 2007-04-13 Bruno Haible <bruno@clisp.org>
28997 * modules/fwritable-tests: New file.
28998 * tests/test-fwritable.c: New file.
29000 * modules/fwritable: New file.
29001 * lib/fwritable.h: New file.
29002 * lib/fwritable.c: New file.
29003 * m4/fwritable.m4: New file.
29005 2007-04-13 Bruno Haible <bruno@clisp.org>
29007 * modules/freadable-tests: New file.
29008 * tests/test-freadable.c: New file.
29010 * modules/freadable: New file.
29011 * lib/freadable.h: New file.
29012 * lib/freadable.c: New file.
29013 * m4/freadable.m4: New file.
29015 2007-04-13 Bruno Haible <bruno@clisp.org>
29017 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
29020 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
29022 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
29023 gzip bootstrap.conf to avoid dragging in i18n machinery.
29024 (gnulib_tool_option): Use it.
29026 2007-04-13 Bruno Haible <bruno@clisp.org>
29028 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
29030 * tests/test-vasprintf-posix.c (test_function): Likewise.
29031 * tests/test-snprintf-posix.h (test_function): Likewise.
29032 * tests/test-sprintf-posix.h (test_function): Likewise.
29033 * tests/test-fprintf-posix.h (test_function): Likewise.
29034 * tests/test-printf-posix.h (test_function): Likewise.
29035 * tests/test-fprintf-posix.out: Likewise.
29037 2007-04-13 Bruno Haible <bruno@clisp.org>
29039 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
29040 * modules/tls-tests (configure.ac): Likewise.
29041 Reported by Arto C. Nirkko <anirkko@insel.ch>.
29043 2007-04-13 Bruno Haible <bruno@clisp.org>
29045 * lib/tls.c (glthread_tls_get): Fix return type.
29046 Patch by Arto C. Nirkko <anirkko@insel.ch>.
29048 2007-04-12 Eric Blake <ebb9@byu.net>
29050 * modules/gettime (Depends-on): Remove gettime.
29051 Reported by Dmitry V. Levin.
29053 2007-04-12 Bruno Haible <bruno@clisp.org>
29055 * modules/fflush (Include): Mention <stdio.h>.
29056 * modules/strtoimax (Include): Mention <inttypes.h>.
29057 * modules/strtoumax (Include): Likewise.
29059 2007-04-12 Eric Blake <ebb9@byu.net>
29061 * .cvsignore: New file.
29062 * .gitignore: Likewise.
29064 2007-04-12 Bruno Haible <bruno@clisp.org>
29066 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
29067 not before, since $(LDADD) often contains libgnu.a.
29068 * modules/striconv-tests (test_striconv_LDADD): Likewise.
29069 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
29070 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
29073 2007-04-12 Eric Blake <ebb9@byu.net>
29075 Work around glibc's failure to flush stdin on fclose.
29076 * lib/closein.c (close_stdin): Flush stdin before closing.
29078 Work around glibc's failure to reset seekable stdin on exit.
29079 * modules/closein: New module.
29080 * lib/closein.c: New file.
29081 * lib/closein.h: Likewise.
29082 * m4/closein.m4: Likewise.
29083 * MODULES.html.sh (File stream based Input/Output): Document it.
29085 2007-04-12 Simon Josefsson <simon@josefsson.org>
29087 * gnulib-tool: Rename generated 'autobuild' script to
29088 'do-autobuild' in --create-megatestdir output.
29090 * doc/gnulib.texi (Build robot for gnulib): Fix.
29092 2007-04-12 Simon Josefsson <simon@josefsson.org>
29094 * modules/sysexits (Depends-on): Add absolute-header.
29096 2007-04-12 Eric Blake <ebb9@byu.net>
29098 No need to preserve errno on success.
29099 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
29100 Reported by Bruno Haible.
29102 2007-04-12 Simon Josefsson <simon@josefsson.org>
29104 * MODULES.html.sh (Support for maintaining and releasing
29105 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
29107 2007-04-12 Simon Josefsson <simon@josefsson.org>
29109 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
29111 2007-04-12 Simon Josefsson <simon@josefsson.org>
29113 * modules/autobuild: New module.
29115 * m4/autobuild.m4: New file.
29117 2007-04-11 Bruno Haible <bruno@clisp.org>
29119 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
29120 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
29121 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
29122 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
29123 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29124 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29125 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29126 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
29127 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29128 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29129 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
29130 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29131 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29132 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
29133 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29134 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29135 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
29136 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29137 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29138 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
29139 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29140 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29141 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
29142 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29143 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29144 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
29145 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29146 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29147 Reported by Eric Blake.
29149 2007-04-11 Bruno Haible <bruno@clisp.org>
29151 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
29153 2007-04-10 Bruno Haible <bruno@clisp.org>
29155 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
29156 for NaN and Infinity. Needed on FreeBSD 6.1.
29157 * tests/test-vasnprintf-posix.c (test_function): Undo last change
29158 regarding results for "%010a" of Infinity and NaN.
29159 * tests/test-vasprintf-posix.c (test_function): Likewise.
29160 * tests/test-snprintf-posix.h (test_function): Likewise.
29161 * tests/test-sprintf-posix.h (test_function): Likewise.
29162 * tests/test-fprintf-posix.h (test_function): Likewise.
29163 * tests/test-printf-posix.h (test_function): Likewise.
29164 * tests/test-fprintf-posix.out: Likewise.
29166 2007-04-10 Bruno Haible <bruno@clisp.org>
29168 * modules/locale-tests: New file.
29169 * tests/test-locale.c: New file.
29171 * modules/locale: New file.
29172 * lib/locale_.h: New file.
29173 * m4/locale_h.m4: New file.
29175 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
29176 Bruno Haible <bruno@clisp.org>
29178 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
29179 be determined, test for availability of the copysignf, copysign,
29180 copysignl functions.
29181 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
29182 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
29183 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
29185 2007-04-09 Eric Blake <ebb9@byu.net>
29187 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
29188 * modules/stdio (Makefile.am): Support fflush.
29189 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29190 * modules/fflush: New file.
29191 * lib/fflush.c: Likewise.
29192 * m4/fflush.m4: Likewise.
29193 * modules/fflush-tests: New test.
29194 * tests/test-fflush.c: Likewise.
29195 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
29197 2007-04-06 Bruno Haible <bruno@clisp.org>
29199 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
29200 (VASNPRINTF): Use signbit for faster determination whether to print a
29202 * modules/vasnprintf (Files): Remove lib/float+.h.
29203 * modules/fprintf-posix (Depends-on): Add signbit.
29204 * modules/snprintf-posix (Depends-on): Likewise.
29205 * modules/sprintf-posix (Depends-on): Likewise.
29206 * modules/vasnprintf-posix (Depends-on): Likewise.
29207 * modules/vasprintf-posix (Depends-on): Likewise.
29208 * modules/vfprintf-posix (Depends-on): Likewise.
29209 * modules/vsnprintf-posix (Depends-on): Likewise.
29210 * modules/vsprintf-posix (Depends-on): Likewise.
29212 2007-04-06 Bruno Haible <bruno@clisp.org>
29214 * tests/test-frexp.c (main): Test also the sign bit of zero results.
29215 * tests/test-frexpl.c (main): Likewise.
29216 * tests/test-ldexpl.c (main): Likewise.
29217 * modules/frexp-tests (Depends-on): Add signbit.
29218 * modules/frexpl-tests (Depdends-on): Likewise.
29219 * modules/ldexpl-tests (Depdends-on): Likewise.
29221 2007-04-06 Bruno Haible <bruno@clisp.org>
29223 * modules/signbit-tests: New file.
29224 * tests/test-signbit.c: New file.
29226 * modules/signbit: New file.
29227 * lib/signbitf.c: New file.
29228 * lib/signbitd.c: New file.
29229 * lib/signbitl.c: New file.
29230 * m4/signbit.m4: New file.
29231 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
29232 (signbit): New macro.
29233 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
29235 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
29236 REPLACE_FREXPL into math.h.
29238 2007-04-06 Bruno Haible <bruno@clisp.org>
29240 * modules/isnanf-nolibm-tests: New file.
29241 * tests/test-isnanf.c: New file.
29243 * modules/isnanf-nolibm: New file.
29244 * lib/isnanf.h: New file.
29245 * lib/isnanf.c: New file.
29246 * lib/isnan.c: Consider the USE_FLOAT macro.
29247 * m4/isnanf.m4: New file.
29249 2007-04-06 Bruno Haible <bruno@clisp.org>
29251 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
29252 (Link): New section.
29254 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
29256 2007-04-06 Bruno Haible <bruno@clisp.org>
29258 Assume the 'long double' type.
29259 * m4/longdouble.m4: Remove file.
29260 * config/srclist.txt: Don't mention longdouble.m4.
29261 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
29262 * lib/float+.h: Likewise.
29263 * lib/frexp.c: Likewise.
29264 * lib/printf-args.h: Likewise.
29265 * lib/printf-args.c: Likewise.
29266 * lib/printf-frexp.c: Likewise.
29267 * lib/printf-parse.c: Likewise.
29268 * lib/vasnprintf.c: Likewise.
29269 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
29270 * m4/intl.m4: Likewise.
29271 * m4/isnanl.m4: Likewise.
29272 * m4/printf.m4: Likewise.
29273 * m4/printf-frexpl.m4: Likewise.
29274 * m4/vasnprintf.m4: Likewise.
29275 * modules/allocsa (Files): Remove m4/longdouble.m4.
29276 * modules/gettext (Files): Likewise.
29277 * modules/relocatable-prog-wrapper (Files): Likewise.
29278 * modules/vasnprintf (Files): Likewise.
29279 * modules/isnanl (Files): Likewise.
29280 (Include): Simplify.
29281 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
29282 (Include): Simplify.
29283 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
29284 (Include): Simplify.
29285 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
29286 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29287 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
29288 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29289 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
29290 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29291 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
29292 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29293 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
29294 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29295 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
29296 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29297 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
29298 * tests/test-isnanl.c: Likewise.
29299 * tests/test-snprintf-posix.h: Likewise.
29300 * tests/test-sprintf-posix.h: Likewise.
29301 * tests/test-vasnprintf-posix.c: Likewise.
29302 * tests/test-vasnprintf-posix2.c: Likewise.
29303 * tests/test-vasprintf-posix.c: Likewise.
29305 2007-04-06 Bruno Haible <bruno@clisp.org>
29307 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
29308 * lib/math_.h [__DECC]: Include the overridden include file through
29309 #include_next, outside the double-inclusion guard.
29310 * lib/stdio_.h [__DECC]: Likewise.
29311 * lib/stdlib_.h [__DECC]: Likewise.
29312 * lib/string_.h [__DECC]: Likewise.
29313 * lib/time_.h [__DECC]: Likewise.
29314 * lib/wchar_.h [__DECC]: Likewise.
29315 * lib/wctype_.h [__DECC]: Likewise.
29316 * lib/inttypes_.h [__DECC]: Likewise.
29317 Reported by Albert Chin <china@thewrittenword.com> in
29318 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
29320 2007-04-04 Eric Blake <ebb9@byu.net>
29322 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
29325 2007-04-04 Bruno Haible <bruno@clisp.org>
29327 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
29328 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
29330 2007-04-04 Bruno Haible <bruno@clisp.org>
29332 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
29333 results for "%010a" of Infinity and NaN.
29334 * tests/test-vasprintf-posix.c (test_function): Likewise.
29335 * tests/test-snprintf-posix.h (test_function): Likewise.
29336 * tests/test-sprintf-posix.h (test_function): Likewise.
29337 * tests/test-fprintf-posix.h (test_function): Remove these tests.
29338 * tests/test-printf-posix.h (test_function): Likewise.
29339 * tests/test-fprintf-posix.out: Update.
29340 Needed for FreeBSD 6.1.
29342 2007-04-04 Bruno Haible <bruno@clisp.org>
29344 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
29345 directly used by the gnulib modules nor by gnulib-tool.
29347 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
29349 * DEPENDENCIES: Give overall description of version dependency
29350 desirability. Use more-typical names for apps.
29351 Add shell, coreutils, diffutils, grep, tar, gzip.
29353 2007-04-04 Simon Josefsson <simon@josefsson.org>
29355 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
29357 2007-04-04 Karl Berry <karl@gnu.org>
29359 * MODULES.html.sh (func_module): missing '.
29361 2007-04-03 Bruno Haible <bruno@clisp.org>
29363 * modules/argmatch-tests (Makefile.am): New variable
29364 test_argmatch_LDADD.
29365 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
29366 * modules/array-list-tests (Makefile.am): New variable
29367 test_array_list_LDADD.
29368 * modules/array-oset-tests (Makefile.am): New variable
29369 test_array_oset_LDADD.
29370 * modules/avltree-list-tests (Makefile.am): New variable
29371 test_avltree_list_LDADD.
29372 * modules/avltree-oset-tests (Makefile.am): New variable
29373 test_avltree_oset_LDADD.
29374 * modules/avltreehash-list-tests (Makefile.am): New variable
29375 test_avltreehash_list_LDADD.
29376 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
29377 test_canonicalize_lgpl_LDADD.
29378 * modules/carray-list-tests (Makefile.am): New variable
29379 test_carray_list_LDADD.
29380 * modules/dirname-tests (Makefile.am): New variable
29381 test_dirname_LDADD.
29382 * modules/linked-list-tests (Makefile.am): New variable
29383 test_linked_list_LDADD.
29384 * modules/linkedhash-list-tests (Makefile.am): New variable
29385 test_linkedhash_list_LDADD.
29386 * modules/rbtree-list-tests (Makefile.am): New variable
29387 test_rbtree_list_LDADD.
29388 * modules/rbtree-oset-tests (Makefile.am): New variable
29389 test_rbtree_oset_LDADD.
29390 * modules/rbtreehash-list-tests (Makefile.am): New variable
29391 test_rbtreehash_list_LDADD.
29392 * modules/xvasprintf-tests (Makefile.am): New variable
29393 test_xvasprintf_LDADD.
29394 Reported by Eric Blake.
29396 2007-04-03 Eric Blake <ebb9@byu.net>
29398 * DEPENDENCIES: Weaken m4 requirements.
29400 2007-04-03 Bruno Haible <bruno@clisp.org>
29402 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
29403 * modules/isnanl-tests (configure.ac): Likewise.
29405 2007-04-03 Ben Pfaff <blp@gnu.org>
29407 * modules/iconv_open: Add $(srcdir)/ to source directory
29408 references in Makefile fragments that call gperf, to fix VPATH
29411 2007-04-03 Bruno Haible <bruno@clisp.org>
29413 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
29414 * lib/ldexpl.c: Undo last change.
29416 2007-04-03 Bruno Haible <bruno@clisp.org>
29418 * modules/printf-frexpl (Depends-on): Undo last change.
29419 (Files): Add m4/ldexpl.m4.
29421 2007-04-03 Bruno Haible <bruno@clisp.org>
29423 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
29424 * modules/isnanl (Link): New section.
29426 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
29427 * modules/frexp (Link): New section.
29429 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
29430 * modules/frexpl (Link): New section.
29432 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
29433 * modules/ldexpl (Link): New section.
29435 2007-04-03 Bruno Haible <bruno@clisp.org>
29437 * modules/TEMPLATE-EXTENDED: New file.
29438 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
29440 2007-04-03 Bruno Haible <bruno@clisp.org>
29442 * DEPENDENCIES: New file.
29443 Suggested by Simon Josefsson.
29445 2007-04-03 Bruno Haible <bruno@clisp.org>
29447 * doc/gnulib.texi: Escape @.
29449 2007-04-03 James Youngman <jay@gnu.org>
29450 and Paul Eggert <eggert@cs.ucla.edu>
29452 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
29453 birthtime on all systems that have birthtime, not just those which
29454 use st_birthtimensec rather than st_birthtim. Putting zero in
29455 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
29456 that the birth time is not available for files on an NFS mount.
29458 2007-04-03 Simon Josefsson <simon@josefsson.org>
29460 * modules/memxor: Move back from crypto/, suggested by Bruno.
29461 * modules/crypto/hmac-sha1: Fix memxor dependency.
29463 * modules/crypto/gc: Moved from ../.
29465 2007-04-02 Eric Blake <ebb9@byu.net>
29467 * lib/ldexpl.c (includes): Avoid libm.
29469 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
29471 2007-04-02 Bruno Haible <bruno@clisp.org>
29473 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
29476 2007-04-02 Bruno Haible <bruno@clisp.org>
29478 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
29479 x86 or x86_64 platforms running MacOS X.
29480 Reported by Ryan Schmidt <@ryandesign.com>.
29482 2007-04-02 Bruno Haible <bruno@clisp.org>
29484 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
29487 2007-04-01 Simon Josefsson <simon@josefsson.org>
29489 * modules/crypto/arcfour: Moved from ../.
29490 * modules/crypto/arcfour-tests: Moved from ../.
29491 * modules/crypto/arctwo: Moved from ../.
29492 * modules/crypto/arctwo-tests: Moved from ../.
29493 * modules/crypto/des: Moved from ../.
29494 * modules/crypto/des-tests: Moved from ../.
29495 * modules/crypto/gc-arcfour: Moved from ../.
29496 * modules/crypto/gc-arcfour-tests: Moved from ../.
29497 * modules/crypto/gc-arctwo: Moved from ../.
29498 * modules/crypto/gc-arctwo-tests: Moved from ../.
29499 * modules/crypto/gc-des: Moved from ../.
29500 * modules/crypto/gc-des-tests: Moved from ../.
29501 * modules/crypto/gc-hmac-md5: Moved from ../.
29502 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
29503 * modules/crypto/gc-hmac-sha1: Moved from ../.
29504 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
29505 * modules/crypto/gc-md2: Moved from ../.
29506 * modules/crypto/gc-md2-tests: Moved from ../.
29507 * modules/crypto/gc-md4: Moved from ../.
29508 * modules/crypto/gc-md4-tests: Moved from ../.
29509 * modules/crypto/gc-md5: Moved from ../.
29510 * modules/crypto/gc-md5-tests: Moved from ../.
29511 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
29512 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
29513 * modules/crypto/gc-random: Moved from ../.
29514 * modules/crypto/gc-rijndael: Moved from ../.
29515 * modules/crypto/gc-rijndael-tests: Moved from ../.
29516 * modules/crypto/gc-sha1: Moved from ../.
29517 * modules/crypto/gc-sha1-tests: Moved from ../.
29518 * modules/crypto/gc-tests: Moved from ../.
29519 * modules/crypto/hmac-md5: Moved from ../.
29520 * modules/crypto/hmac-md5-tests: Moved from ../.
29521 * modules/crypto/hmac-sha1: Moved from ../.
29522 * modules/crypto/hmac-sha1-tests: Moved from ../.
29523 * modules/crypto/md2: Moved from ../.
29524 * modules/crypto/md2-tests: Moved from ../.
29525 * modules/crypto/md4: Moved from ../.
29526 * modules/crypto/md4-tests: Moved from ../.
29527 * modules/crypto/md5: Moved from ../.
29528 * modules/crypto/md5-tests: Moved from ../.
29529 * modules/crypto/memxor: Moved from ../.
29530 * modules/crypto/rijndael: Moved from ../.
29531 * modules/crypto/rijndael-tests: Moved from ../.
29532 * modules/crypto/sha1: Moved from ../.
29534 2007-03-30 James Youngman <jay@gnu.org>
29536 * tests/test-stat-time.c (prepare_test): use chmod() rather than
29537 rename() to change the ctime of a file (because ctime is unaffected
29538 by rename on jfs2 on AIX 5.1).
29539 (main): Start by doing cleanup, in case a previous run failed leaving
29542 2007-03-31 Bruno Haible <bruno@clisp.org>
29544 Support old proprietary implementations of iconv.
29545 * modules/iconv_open: New file.
29546 * lib/iconv_.h: New file.
29547 * m4/iconv_h.m4: New file.
29548 * lib/iconv_open.c: New file.
29549 * lib/iconv_open-aix.gperf: New file.
29550 * lib/iconv_open-hpux.gperf: New file.
29551 * lib/iconv_open-irix.gperf: New file.
29552 * lib/iconv_open-osf.gperf: New file.
29553 * m4/iconv_open.m4: New file.
29554 * modules/linebreak (Depends-on): Add iconv_open.
29555 * modules/striconv (Depends-on): Likewise.
29556 * modules/striconveh (Depends-on): Likewise.
29557 * modules/unicodeio (Depends-on): Likewise.
29558 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
29560 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
29561 conversion if cd is (iconv_t)(-1).
29562 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
29565 2007-03-31 Bruno Haible <bruno@clisp.org>
29567 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
29568 work on Solaris either. Protect also second use of "autodetect_jp".
29570 2007-03-31 Bruno Haible <bruno@clisp.org>
29572 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
29573 the function is not present.
29575 2007-03-31 Bruno Haible <bruno@clisp.org>
29577 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
29578 the function is not present.
29580 2007-03-31 Bruno Haible <bruno@clisp.org>
29582 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
29583 a bug in HP-UX iconv_open().
29585 2007-03-31 Bruno Haible <bruno@clisp.org>
29587 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
29588 (Mathematics <math.h>): New section, add fpieee.
29589 (Input/output <stdio.h>): Add fseterr.
29590 (Mathematics <math.h>): New section, add printf-frexp.
29591 (Container data structures): Add sublist.
29592 (Core language properties): Add fpucw, inline.
29593 (Functions for greatest-width integer types <inttypes.h>): Add
29594 imaxabs, imaxdiv, inttypes.
29595 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
29596 isnanl-nolibm, ldexp.
29597 (Mathematics <math.h>): New section, add printf-frexpl.
29598 (Support for systems lacking POSIX:2001): Add fprintf-posix,
29599 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
29600 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
29601 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
29602 (Unicode string functions): Add unistr/u*-mbtoucr.
29603 (Java): Add javacomp-script, javaexec-script.
29604 (C#): Add csharpcomp-script, csharpexec-script.
29605 (Support for building libraries and executables): Add havelib,
29607 (Support for maintaining and releasing projects): Renamed from
29608 'Support for maintaining and release projects'. Add announce-gen.
29610 2007-03-31 Bruno Haible <bruno@clisp.org>
29612 * README: Talk primarily about git.
29613 (git and CVS): Renamed from CVS.
29614 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
29615 gnulib is available through git.
29616 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
29618 2007-03-30 Bruno Haible <bruno@clisp.org>
29620 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
29621 * lib/poll_.h: Likewise.
29622 * lib/stat_.h: Likewise.
29623 * lib/sys_time_.h: Likewise.
29624 * lib/sysexit_.h: Likewise.
29625 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
29626 * lib/stdbool_.h: Likewise.
29627 * lib/byteswap_.h: Add double-inclusion guard.
29629 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
29631 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
29633 2007-03-30 Karl Berry <karl@gnu.org>
29635 * config/srclist-update: double space after USA in the license
29636 substitution, since that's how it's usually (?) written.
29638 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
29640 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
29641 reported by Bruno Haible.
29643 2007-03-29 Bruno Haible <bruno@clisp.org>
29645 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
29646 a bug in AIX iconv().
29648 2007-03-29 Bruno Haible <bruno@clisp.org>
29650 * modules/ldexpl-tests: New file.
29651 * tests/test-ldexpl.c: New file.
29653 2007-03-29 Bruno Haible <bruno@clisp.org>
29655 * lib/ldexpl.c: Include fpucw.h.
29656 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
29658 * modules/ldexpl (Depends-on): Add fpucw.
29660 2007-03-29 Bruno Haible <bruno@clisp.org>
29662 * modules/ldexpl: New file.
29663 * m4/ldexpl.m4: New file.
29664 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
29666 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
29668 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
29670 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
29671 gl_FUNC_LDEXPL_WORKS.
29672 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
29673 * modules/mathl (Files): Remove lib/ldexpl.c.
29674 (Depends-on): Add ldexpl.
29676 2007-03-29 Bruno Haible <bruno@clisp.org>
29678 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
29680 2007-03-29 Bruno Haible <bruno@clisp.org>
29682 * tests/test-striconveh.c (main): Don't assume that a direct conversion
29683 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
29684 and possibly also HP-UX.
29685 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
29686 work on AIX, IRIX, HP-UX, OSF/1.
29687 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
29688 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
29689 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
29690 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
29691 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
29692 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
29694 2007-03-29 Bruno Haible <bruno@clisp.org>
29696 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
29698 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
29700 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
29701 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
29703 2007-03-29 Eric Blake <ebb9@byu.net>
29705 * lib/acl-internal.h: Remove redundant include.
29706 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
29707 Cygwin when a file is locked.
29709 2007-03-29 Bruno Haible <bruno@clisp.org>
29711 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
29713 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
29715 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
29717 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
29718 try to remove a parent directory if the child couldn't be removed
29719 (except for the first rmdir, which could fail because the child
29720 doesn't exist). Problem reported by Jeff Blaine in
29721 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
29723 2007-03-28 Bruno Haible <bruno@clisp.org>
29725 * lib/striconveh.c (utf8conv_carefully): New function.
29726 (mem_cd_iconveh_internal): Invoke it.
29728 2007-03-28 Bruno Haible <bruno@clisp.org>
29730 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
29731 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
29733 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
29734 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
29737 2007-03-28 Bruno Haible <bruno@clisp.org>
29739 * modules/unistr/u8-mbtoucr: New file.
29740 * lib/unistr/u8-mbtoucr.c: New file.
29741 * modules/unistr/u16-mbtoucr: New file.
29742 * lib/unistr/u16-mbtoucr.c: New file.
29743 * modules/unistr/u16-mbtoucr: New file.
29744 * lib/unistr/u16-mbtoucr.c: New file.
29745 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
29747 2007-03-27 Simon Josefsson <simon@josefsson.org>
29748 Bruno Haible <bruno@clisp.org>
29750 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
29751 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
29752 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
29754 * m4/stdio_h.m4: Add stubs for vasprintf too.
29756 * modules/stdio: Support vasprintf in sed command.
29758 * modules/vasprintf: Depend on stdio for prototypes. Remove
29759 vasprintf.h. Add stdio module indicator.
29761 * lib/stdio_.h: Declare asprintf and vasprintf, based on
29764 * lib/vasprintf.h: File removed.
29766 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
29767 * lib/vasprintf.c: Ditto.
29768 * lib/xvasprintf.c: Ditto.
29769 * tests/test-vasprintf-posix.c: Ditto.
29770 * tests/test-vasprintf.c: Ditto.
29772 2007-03-27 Bruno Haible <bruno@clisp.org>
29774 Make vasnprintf multithread-safe.
29775 * lib/vasnprintf.c (decimal_point_char): New function.
29776 (VASNPRINTF): Use it.
29777 Suggested by Simon Josefsson.
29779 2007-03-27 Eric Blake <ebb9@byu.net>
29781 Support sub-second birthtime on cygwin.
29782 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
29783 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
29784 (get_stat_birthtime): Also work with st_birthtim.
29786 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
29788 * lib/stat-time.h (USE_BIRTHTIME): Remove.
29789 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
29790 (get_stat_birthtime_ns): Do not try to use "spare" fields.
29791 (get_stat_birthtime_ns): Simplify compile-time tests.
29792 (get_stat_birthtime): Change the API to look like
29793 get_stat_mtime etc., except return a negative tv_nsec on error.
29794 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
29795 Don't check for "spare" fields.
29796 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
29797 or for struct stat.st_birthtime, as these tests aren't used.
29798 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
29800 2007-03-27 Bruno Haible <bruno@clisp.org>
29802 * lib/stat-time.h: Include <sys/stat.h>.
29804 2007-03-27 James Youngman <jay@gnu.org>
29806 * lib/stat-time.h (get_stat_birthtime): New function for
29807 retrieving st_birthtime as provided by UFS2 (hence *BSD).
29808 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
29810 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
29811 * modules/stat-time-test: New file.
29812 * tests/test-stat-time.c: New test, devised by Bruno Haible.
29814 2007-03-26 Bruno Haible <bruno@clisp.org>
29816 Better support of signalling NaNs.
29817 * lib/atanl.c: Include isnanl.h.
29818 (atanl): Perform test for NaN at the beginning of the function and
29819 through a call to isnanl.
29820 * lib/cosl.c: Include isnanl.h.
29821 (cosl): Perform test for NaN at the beginning of the function and
29822 through a call to isnanl.
29823 * lib/ldexpl.c: Include isnanl.h.
29824 (ldexpl): Perform test for NaN through a call to isnanl.
29825 * lib/logl.c: Include isnanl.h.
29826 (logl): Perform test for NaN at the beginning of the function and
29827 through a call to isnanl.
29828 * lib/sinl.c: Include isnanl.h.
29829 (sinl): Perform test for NaN at the beginning of the function and
29830 through a call to isnanl.
29831 * lib/sqrtl.c: Include isnanl.h.
29832 (sqrtl): Perform test for NaN at the beginning of the function and
29833 through a call to isnanl.
29834 * lib/tanl.c: Include isnanl.h.
29835 (tanl): Perform test for NaN at the beginning of the function and
29836 through a call to isnanl.
29837 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
29838 * modules/mathl (Depends-on): Add isnanl.
29840 2007-03-26 Eric Blake <ebb9@byu.net>
29842 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
29843 regression in logic sense of previous patch.
29845 2007-03-26 Bruno Haible <bruno@clisp.org>
29847 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
29848 unportable shell command "if ! ...".
29849 Reported by Ralf Wildenhues.
29851 2007-03-25 Bruno Haible <bruno@clisp.org>
29853 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
29854 <sysexits.h> file, and only add EX_CONFIG.
29855 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
29856 absolute file name and whether it is sufficient. Substitute also
29857 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
29858 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
29859 ABSOLUTE_SYSEXITS_H into sysexits.h.
29861 2007-03-25 Bruno Haible <bruno@clisp.org>
29863 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
29866 2007-03-25 Bruno Haible <bruno@clisp.org>
29868 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
29869 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
29871 2007-03-25 Bruno Haible <bruno@clisp.org>
29873 * lib/vasnprintf.c: Include langinfo.h.
29874 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
29876 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
29877 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
29878 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29879 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29880 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29881 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29882 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29883 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
29884 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29885 Reported by Simon Josefsson.
29887 2007-03-25 Bruno Haible <bruno@clisp.org>
29889 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
29890 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
29891 * modules/vasnprintf (Depends-on): Add stdint.
29893 2007-03-25 Bruno Haible <bruno@clisp.org>
29895 * modules/fpieee: New file.
29896 * m4/fpieee.m4: New file.
29897 * modules/isnan-nolibm (Depends-on): Add fpieee.
29898 * modules/isnanl-nolibm (Depends-on): Add fpieee.
29899 * modules/isnanl (Depends-on): Add fpieee.
29901 2007-03-25 Bruno Haible <bruno@clisp.org>
29903 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
29905 2007-03-25 Bruno Haible <bruno@clisp.org>
29907 Avoid test failures on IRIX 6.5.
29908 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
29910 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
29914 2007-03-25 Bruno Haible <bruno@clisp.org>
29916 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
29917 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
29918 exists but doesn't work.
29919 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
29920 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
29921 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
29922 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
29924 2007-03-25 Bruno Haible <bruno@clisp.org>
29926 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
29927 returns inf. Needed on IRIX 6.5.
29929 2007-03-25 Bruno Haible <bruno@clisp.org>
29931 * tests/test-frexpl.c: Include isnanl-nolibm.h.
29932 (main): Use isnanl instead of x != x idiom.
29933 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
29935 * tests/test-frexp.c: Include isnan.h.
29936 (main): Use isnan instead of x != x idiom.
29937 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
29939 2007-03-25 Bruno Haible <bruno@clisp.org>
29941 * tests/test-frexp.c (NaN): New function/macro.
29942 (main): Use it instead of 0.0 / 0.0.
29943 * tests/test-isnan.c (NaN): New function/macro.
29944 (main): Use it instead of 0.0 / 0.0.
29945 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
29946 (test_function): Use it instead of 0.0 / 0.0.
29947 * tests/test-vasprintf-posix.c (NaN): New function/macro.
29948 (test_function): Use it instead of 0.0 / 0.0.
29949 * tests/test-snprintf-posix.h (NaN): New function/macro.
29950 (test_function): Use it instead of 0.0 / 0.0.
29951 * tests/test-sprintf-posix.h (NaN): New function/macro.
29952 (test_function): Use it instead of 0.0 / 0.0.
29953 * tests/test-fprintf-posix.h (NaN): New function/macro.
29954 (test_function): Use it instead of 0.0 / 0.0.
29955 * tests/test-printf-posix.h (NaN): New function/macro.
29956 (test_function): Use it instead of 0.0 / 0.0.
29958 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
29960 2007-03-25 Bruno Haible <bruno@clisp.org>
29962 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
29964 2007-03-25 Bruno Haible <bruno@clisp.org>
29966 * lib/regexec.c (merge_state_with_log): Make static.
29968 2007-03-25 Bruno Haible <bruno@clisp.org>
29970 * lib/trigl.c (kernel_rem_pio2): Make static.
29972 2007-03-25 Bruno Haible <bruno@clisp.org>
29974 * lib/sincosl.c (sincosl_table): Make static.
29976 2007-03-25 Bruno Haible <bruno@clisp.org>
29978 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
29979 if the compiler does not support C99.
29981 2007-03-25 Bruno Haible <bruno@clisp.org>
29983 * modules/time (Makefile.am): Ensure all rule action lines start with a
29986 2007-03-24 Bruno Haible <bruno@clisp.org>
29988 * modules/tsearch-tests: New file.
29989 * tests/test-tsearch.sh: New file.
29990 * tests/test-tsearch.c: New file, mostly copied from glibc.
29992 * modules/search-tests: New file.
29993 * tests/test-search.c: New file.
29995 * modules/search: New file.
29996 * lib/search_.h: New file, incorporating lib/tsearch.h.
29997 * m4/search_h.m4: New file.
29998 * lib/tsearch.h: Remove file.
29999 * lib/tsearch.c: Include search.h instead of tsearch.h.
30000 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
30002 * modules/tsearch (Files): Remove lib/tsearch.h.
30003 (Depends-on): Add search.
30004 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
30005 (Include): Change tsearch.h into search.h.
30007 2007-03-24 Bruno Haible <bruno@clisp.org>
30009 * modules/fpucw: New file.
30010 * lib/fpucw.h: New file.
30011 * lib/frexp.c: Include fpucw.h.
30012 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
30014 * lib/printf-frexp.c: Include fpucw.h.
30015 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
30017 * lib/vasnprintf.c: Include fpucw.h.
30018 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
30019 'long double' calculations.
30020 * tests/test-frexpl.c: Include fpucw.h.
30021 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
30022 * tests/test-printf-frexpl.c: Include fpucw.h.
30023 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
30024 * modules/frexpl (Depends-on): Add fpucw.
30025 * modules/printf-frexpl (Depends-on): Likewise.
30026 * modules/fprintf-posix (Depends-on): Likewise.
30027 * modules/snprintf-posix (Depends-on): Likewise.
30028 * modules/sprintf-posix (Depends-on): Likewise.
30029 * modules/vasnprintf-posix (Depends-on): Likewise.
30030 * modules/vasprintf-posix (Depends-on): Likewise.
30031 * modules/vfprintf-posix (Depends-on): Likewise.
30032 * modules/vsnprintf-posix (Depends-on): Likewise.
30033 * modules/vsprintf-posix (Depends-on): Likewise.
30034 * modules/frexpl-tests (Depends-on): Likewise.
30035 * modules/printf-frexpl-tests (Depends-on): Likewise.
30037 2007-03-24 Bruno Haible <bruno@clisp.org>
30039 * lib/float+.h: New file.
30040 * lib/isnan.c: Include float+.h.
30042 (FUNC): Compare only SIZE bytes of the value.
30043 * lib/vasnprintf.c: Include float+.h.
30044 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
30045 SIZEOF_LDBL or SIZEOF_DBL bytes.
30046 * modules/isnan-nolibm (Files): Add lib/float+.h.
30047 * modules/isnanl-nolibm (Files): Add lib/float+.h.
30048 * modules/isnanl (Files): Add lib/float+.h.
30049 * modules/vasnprintf (Files): Add lib/float+.h.
30051 2007-03-24 Bruno Haible <bruno@clisp.org>
30053 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
30054 include isnanl-nolibm.h.
30056 2007-03-24 Bruno Haible <bruno@clisp.org>
30058 * tests/test-read-file.c (main): Don't produce spurious output for
30059 expected situations. Make the test fail if it encountered unexpected
30062 2007-03-24 Bruno Haible <bruno@clisp.org>
30064 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
30065 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
30067 2007-03-24 Bruno Haible <bruno@clisp.org>
30069 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
30071 2007-03-24 Bruno Haible <bruno@clisp.org>
30073 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
30074 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
30076 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
30077 * modules/utf8-ucs4: Turn into a symbolic link to module
30080 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
30082 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
30083 unistr/u8-mbtouc-unsafe.
30085 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
30086 * modules/utf16-ucs4: Turn into a symbolic link to module
30089 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
30091 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
30092 unistr/u16-mbtouc-unsafe.
30094 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
30095 * modules/ucs4-utf8: Turn into a symbolic link to module
30098 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
30099 * modules/ucs4-utf16: Turn into a symbolic link to module
30102 2007-03-24 Bruno Haible <bruno@clisp.org>
30104 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
30105 Enable the function only if HAVE_INLINE.
30106 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
30107 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
30108 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
30109 Enable the function only if HAVE_INLINE.
30110 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
30111 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
30112 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
30113 Enable the function only if HAVE_INLINE.
30114 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
30115 Enable the function only if HAVE_INLINE.
30116 * modules/utf8-ucs4: Update.
30117 * modules/utf8-ucs4-unsafe: Update.
30118 * modules/utf16-ucs4: Update.
30119 * modules/utf16-ucs4-unsafe: Update.
30120 * modules/ucs4-utf8: Update.
30121 * modules/ucs4-utf16: Update.
30123 2007-03-24 Bruno Haible <bruno@clisp.org>
30125 * lib/utf8-ucs4.h: Remove file.
30126 * lib/utf8-ucs4-unsafe.h: Remove file.
30127 * lib/utf16-ucs4.h: Remove file.
30128 * lib/utf16-ucs4-unsafe.h: Remove file.
30129 * lib/ucs4-utf8.h: Remove file.
30130 * lib/ucs4-utf16.h: Remove file.
30131 * lib/unistr.h: Include their previous contents.
30132 * m4/utf-ucs4.m4: Remove file.
30133 * m4/ucs4-utf.m4: Remove file.
30134 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
30135 (Depends-on): Add unistr/base.
30136 (configure.ac): Remove gl_UTF_UCS4.
30137 (Makefile.am): Update.
30138 (Include): Change to unistr.h.
30139 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
30140 (Depends-on): Add unistr/base.
30141 (configure.ac): Remove gl_UTF_UCS4.
30142 (Makefile.am): Update.
30143 (Include): Change to unistr.h.
30144 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
30145 (Depends-on): Add unistr/base.
30146 (configure.ac): Remove gl_UTF_UCS4.
30147 (Makefile.am): Update.
30148 (Include): Change to unistr.h.
30149 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
30150 (Depends-on): Add unistr/base.
30151 (configure.ac): Remove gl_UTF_UCS4.
30152 (Makefile.am): Update.
30153 (Include): Change to unistr.h.
30154 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
30155 (Depends-on): Add unistr/base.
30156 (configure.ac): Remove gl_UCS4_UTF.
30157 (Makefile.am): Update.
30158 (Include): Change to unistr.h.
30159 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
30160 (Depends-on): Add unistr/base.
30161 (configure.ac): Remove gl_UCS4_UTF.
30162 (Makefile.am): Update.
30163 (Include): Change to unistr.h.
30164 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
30165 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
30166 utf8-ucs4-unsafe.h.
30167 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
30168 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
30169 utf16-ucs4-unsafe.h.
30170 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
30171 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
30172 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
30173 * lib/unistr/u8-strchr.c: Likewise.
30174 * lib/unistr/u8-strrchr.c: Likewise.
30175 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
30176 * lib/unistr/u16-strchr.c: Likewise.
30177 * lib/unistr/u16-strrchr.c: Likewise.
30178 * lib/striconveh.c: Update.
30179 * lib/linebreak.c: Update.
30181 2007-03-24 Bruno Haible <bruno@clisp.org>
30183 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
30184 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
30186 2007-03-22 Bruno Haible <bruno@clisp.org>
30188 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
30190 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
30192 * MODULES.html.sh (File system functions): New module write-any-file.
30193 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
30194 * m4/write-any-file.m4: New files.
30196 2007-03-23 Eric Blake <ebb9@byu.net>
30198 * gnulib-tool: Rearrange space-tab sequences, since some editors
30201 2007-03-23 Eric Blake <ebb9@byu.net>
30203 * lib/version-etc.c (version_etc_va): Update license wording to
30204 be more concise. Recommended by Richard Stallman.
30206 2007-03-22 Bruno Haible <bruno@clisp.org>
30208 * lib/poll.c (MSG_PEEK): New fallback definition.
30210 2007-03-22 Bruno Haible <bruno@clisp.org>
30212 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
30213 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
30215 Fixes a compilation error on BeOS.
30217 2007-03-22 Bruno Haible <bruno@clisp.org>
30219 * modules/frexpl-tests: New file.
30220 * tests/test-frexpl.c: New file.
30222 * modules/frexpl: New file.
30223 * m4/frexpl.m4: New file.
30224 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
30225 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
30226 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
30227 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
30228 (Depends-on): Add frexpl. Remove isnanl-nolibm.
30229 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
30231 2007-03-22 Bruno Haible <bruno@clisp.org>
30233 * lib/frexpl.c: Share code with lib/frexp.c.
30234 * modules/mathl (Files): Add lib/frexp.c.
30235 (Depends-on): Add isnanl-nolibm.
30237 2007-03-22 Bruno Haible <bruno@clisp.org>
30239 * modules/printf-frexp (Files): Add m4/frexp.m4.
30240 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
30241 only if the found frexp function actually works.
30243 2007-03-22 Bruno Haible <bruno@clisp.org>
30245 * lib/frexp.c: Remove older implementation that uses divisions.
30247 2007-03-21 Bruno Haible <bruno@clisp.org>
30249 * modules/frexp-tests: New file.
30250 * tests/test-frexp.c: New file.
30252 * modules/frexp: New file.
30253 * lib/frexp.c: New file.
30254 * m4/frexp.m4: New file.
30255 * lib/math_.h (frexp): New declaration.
30256 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
30258 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
30260 2007-03-21 Bruno Haible <bruno@clisp.org>
30262 * modules/isnanl-tests: New file.
30263 * tests/test-isnanl.c: New file.
30265 * modules/isnanl: New file.
30266 * lib/isnanl.h: New file.
30267 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
30268 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
30269 gl_FUNC_ISNANL_WORKS.
30270 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
30273 2007-03-21 Bruno Haible <bruno@clisp.org>
30275 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
30278 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
30279 * lib/vasnprintf.c: Update.
30280 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
30281 tests/test-isnanl.h, remove tests/test-isnanl.c.
30282 (Makefile.am): Update.
30283 * tests/test-isnanl-nolibm.c: New file.
30284 * tests/test-isnanl.h: New file.
30285 * tests/test-isnanl.c: Remove file.
30287 2007-03-21 Jim Meyering <jim@meyering.net>
30289 When trying to open ".", treat ESTALE like EACCES.
30290 * lib/savewd.c (savewd_save): Resort to forking not just upon
30291 failure with EACCES, but also when errno is ESTALE.
30293 2007-03-20 Bruno Haible <bruno@clisp.org>
30295 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
30296 Needed on AIX 5.1. Reported by Matthew Woehlke.
30298 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
30300 Suggestions by Bruno Haible:
30301 * lib/acl-internal.h: Include "gettext.h" rather than rolling
30303 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
30304 * modules/acl (Depends-on): Add gettext.
30306 2007-03-19 Bruno Haible <bruno@clisp.org>
30308 * modules/iconvme: Remove file.
30309 * lib/iconvme.h: Remove file.
30310 * lib/iconvme.c: Remove file.
30311 * m4/iconvme.m4: Remove file.
30313 2007-03-19 Bruno Haible <bruno@clisp.org>
30315 * doc/relocatable-maint.texi: Break long shell script line.
30316 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
30318 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
30320 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
30321 handle file_has_acl.
30322 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
30323 * lib/acl.c: Move header inclusions and related macro defns into
30324 lib/acl-internal.h.
30325 (S_ISLNK): Remove defn, since that's now done for us.
30326 (file_has_acl): Move to lib/file-has-acl.c.
30327 Call acl_trivial if available. This is the crucial part of the fix.
30328 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
30329 shared within the library. Rewrite a bit, partly to make it compatible
30330 with the GNU coding style.
30331 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
30332 Remove unnecessary double-quotes.
30333 Don't test for acl_to_text; the build will catch that.
30334 Replace acl_entries if it doesn't exist and it is needed.
30335 Check for -lsec and acl_trivial (as used on Solaris 10).
30336 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
30337 lib/file-has-acl.c.
30338 (Depends-on): Add sys_stat, for S_ISLNK.
30340 2007-03-19 Ben Pfaff <blp@gnu.org>
30342 * doc/gnulib.texi: Fix typos.
30343 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
30345 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
30347 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
30348 If size is zero here, buf must be zero.
30350 2007-03-19 Simon Josefsson <simon@josefsson.org>
30352 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
30355 2007-03-18 Bruno Haible <bruno@clisp.org>
30357 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
30358 Suggested by Eric Blake.
30360 2007-03-18 Ben Pfaff <blp@gnu.org>
30362 * doc/relocatable.texi: Recommend using as prefix a directory
30363 that does not exist and will never be created. Based on
30364 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
30367 2007-03-17 Bruno Haible <bruno@clisp.org>
30369 * lib/fchownat.c: Include lchown.h.
30371 2007-03-17 Bruno Haible <bruno@clisp.org>
30373 Fix endless loop when the given allocated size was > INT_MAX.
30374 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
30375 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
30376 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
30377 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
30378 * lib/sprintf.c (sprintf): Likewise.
30380 2007-03-17 Bruno Haible <bruno@clisp.org>
30382 * tests/test-argp-2.sh (func_compare): Output a context diff.
30384 2007-03-17 Bruno Haible <bruno@clisp.org>
30386 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
30387 locale's decimal-point character.
30389 2007-03-17 Bruno Haible <bruno@clisp.org>
30391 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
30392 before comparing it. Needed because on some platforms (e.g. x86) a
30393 'long double' occupies less bytes than sizeof (long double).
30395 2007-03-17 Bruno Haible <bruno@clisp.org>
30397 * tests/test-crc.c (main): Make printf statements 64-bit clean.
30398 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
30399 * tests/test-getaddrinfo.c (simple): Likewise.
30400 * tests/test-read-file.c (main): Likewise.
30402 2007-03-17 Bruno Haible <bruno@clisp.org>
30404 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
30406 2007-03-17 Bruno Haible <bruno@clisp.org>
30408 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
30411 2007-03-17 Bruno Haible <bruno@clisp.org>
30413 * tests/test-c-strcasecmp.c: Include c-strcase.h.
30414 * tests/test-c-strncasecmp.c: Likewise.
30416 2007-03-17 Bruno Haible <bruno@clisp.org>
30418 * modules/stdlib (Depends-on): Add unistd.
30419 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
30420 Needed for MacOS X 10.3.
30422 2007-03-17 Bruno Haible <bruno@clisp.org>
30424 * lib/unistr/u-strdup.h: Include <stdlib.h>.
30426 2007-03-17 Bruno Haible <bruno@clisp.org>
30428 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
30430 2007-03-17 Bruno Haible <bruno@clisp.org>
30432 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
30433 to reflect files copied from gnulib (with or without modifications).
30434 Suggested by Jim Meyering.
30436 2007-03-17 Eric Blake <ebb9@byu.net>
30438 * NEWS: Document stdlib change from 2007-02-18.
30440 2007-03-17 Jim Meyering <jim@meyering.net>
30442 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
30443 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
30444 someone uses a name containing shell meta-characters.
30445 Reported by Alfred M. Szmidt.
30447 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
30449 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
30451 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
30452 and copy gettext configuration files only if configure.ac contains
30453 a use of AM_GNU_GETTEXT_VERSION.
30455 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
30457 * build-aux/bootstrap (gnulib_name): New variable.
30458 (gnulib_tool_options): Use it.
30460 2007-03-13 Simon Josefsson <simon@josefsson.org>
30462 * tests/test-des.c: Use new namespace.
30464 2007-03-15 Bruno Haible <bruno@clisp.org>
30466 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
30467 Reported by James Youngman <jay@gnu.org>.
30469 2007-03-15 Bruno Haible <bruno@clisp.org>
30471 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
30472 declared prototype. Needed with cc on OSF/1 5.1.
30474 2007-03-15 Bruno Haible <bruno@clisp.org>
30476 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
30477 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
30478 (struct gl_list_implementation): Add dispose_fn argument to the
30479 'create_empty', 'create' methods.
30480 (struct gl_list_impl_base): Add field 'dispose_fn'.
30481 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
30483 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
30484 dispose_fn argument.
30485 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
30486 dispose_fn on the dropped values.
30487 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
30488 dispose_fn argument.
30489 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
30491 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
30492 (gl_tree_remove_node): Call dispose_fn on the dropped value.
30493 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
30494 (gl_tree_remove_node): Call dispose_fn on the dropped value.
30495 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
30497 (gl_tree_list_free): Call dispose_fn on the dropped values.
30498 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
30499 the dropped values.
30500 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
30501 Add dispose_fn argument.
30502 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
30503 Call dispose_fn on the dropped values.
30504 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
30505 Add dispose_fn argument.
30506 (gl_sublist_create): Initialize the 'dispose_fn' field.
30507 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
30508 * tests/test-array_list.c (main): Update.
30509 * tests/test-carray_list.c (main): Update.
30510 * tests/test-avltree_list.c (main): Update.
30511 * tests/test-rbtree_list.c (main): Update.
30512 * tests/test-avltreehash_list.c (main): Update.
30513 * tests/test-rbtreehash_list.c (main): Update.
30514 * tests/test-linked_list.c (main): Update.
30515 * tests/test-linkedhash_list.c (main): Update.
30516 * tests/test-array_oset.c (main): Update.
30518 2007-03-15 Bruno Haible <bruno@clisp.org>
30520 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
30521 (gl_oset_create_empty): Add dispose_fn argument.
30522 (struct gl_oset_implementation): Add dispose_fn argument to
30523 'create_empty' method.
30524 (struct gl_oset_impl_base): Add dispose_fn field.
30525 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
30526 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
30527 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
30529 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
30530 (gl_tree_oset_free): Call dispose_fn on the dropped values.
30531 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
30533 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
30535 * tests/test-array_oset.c (main): Update.
30536 * tests/test-avltree_oset.c (main): Update.
30537 * tests/test-rbtree_oset.c (main): Update.
30538 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
30540 2007-03-13 Bruno Haible <bruno@clisp.org>
30542 * tests/test-stdbool.c (i): Update after last patch.
30544 2007-03-12 Bruno Haible <bruno@clisp.org>
30546 * lib/quotearg.c: Include <wctype.h> early, before the definition of
30547 the iswprint macro. Needed on Solaris 2.5.1.
30549 2007-03-12 Bruno Haible <bruno@clisp.org>
30551 * tests/test-printf-frexp.c (main): Declare x as volatile.
30553 2007-03-12 Simon Josefsson <simon@josefsson.org>
30555 * doc/gnulib.texi (Build robot for gnulib): New section.
30557 2007-03-12 Jim Meyering <jim@meyering.net>
30559 * build-aux/bootstrap: New file.
30560 * build-aux/bootstrap.conf: New file, from coreutils.
30562 2007-03-11 Bruno Haible <bruno@clisp.org>
30564 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
30566 2007-03-12 Simon Josefsson <simon@josefsson.org>
30568 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
30569 avoid collisions with 'des_setkey'. Reported by Bruno Haible
30570 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
30572 2007-03-11 Bruno Haible <bruno@clisp.org>
30574 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
30575 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
30577 2007-03-11 Bruno Haible <bruno@clisp.org>
30579 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
30580 formula. Needed for SunPRO C 5.0.
30582 2007-03-11 Bruno Haible <bruno@clisp.org>
30584 * modules/long-options (Depends-on): Add getopt.
30586 2007-03-11 Bruno Haible <bruno@clisp.org>
30588 * modules/modechange (Depends-on): Add stdbool.
30590 2007-03-11 Bruno Haible <bruno@clisp.org>
30592 * modules/i-ring (Depends-on): Add stdbool.
30594 2007-03-11 Bruno Haible <bruno@clisp.org>
30596 * modules/gc-des (Depends-on): Add stdbool.
30598 2007-03-11 Bruno Haible <bruno@clisp.org>
30600 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
30602 2007-03-11 Bruno Haible <bruno@clisp.org>
30604 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
30606 2007-03-11 Bruno Haible <bruno@clisp.org>
30608 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
30610 2007-03-11 Bruno Haible <bruno@clisp.org>
30612 * lib/vasnprintf.c (sprintf): Undefine.
30614 2007-03-11 Bruno Haible <bruno@clisp.org>
30616 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
30617 initializers in SunPRO C and Compaq C compilers.
30619 2007-03-11 Bruno Haible <bruno@clisp.org>
30621 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
30622 decrementing code ANSI C compliant.
30624 2007-03-11 Bruno Haible <bruno@clisp.org>
30626 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
30627 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
30629 2007-03-11 Bruno Haible <bruno@clisp.org>
30631 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
30632 <stdbool.h> substitute doesn't pass.
30634 2007-03-11 Bruno Haible <bruno@clisp.org>
30636 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
30638 2007-03-11 Bruno Haible <bruno@clisp.org>
30640 * gnulib-tool (func_create_megatestdir): Create also an autobuild
30641 script, for submission to autobuild.josefsson.org.
30643 2007-03-10 Bruno Haible <bruno@clisp.org>
30645 * modules/canonicalize-lgpl-tests: New file.
30646 * tests/test-canonicalize-lgpl.sh: New file.
30647 * tests/test-canonicalize-lgpl.c: New file.
30649 * modules/c-strcase-tests: New file.
30650 * tests/test-c-strcase.sh: New file.
30651 * tests/test-c-strcasecmp.c: New file.
30652 * tests/test-c-strncasecmp.c: New file.
30654 * modules/atexit-tests: New file.
30655 * tests/test-atexit.sh: New file.
30656 * tests/test-atexit.c: New file.
30658 2007-03-10 Bruno Haible <bruno@clisp.org>
30660 * tests/test-binary-io.sh: Use temporary filenames that are not so
30661 likely to clash with those of other tests (in a parallel make).
30662 * tests/test-binary-io.c: Likewise.
30664 2007-03-10 Bruno Haible <bruno@clisp.org>
30666 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
30667 fallback; use #error instead.
30668 Suggested by Simon Josefsson.
30670 2007-03-10 Bruno Haible <bruno@clisp.org>
30672 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
30673 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
30674 first and the last.
30676 2007-03-10 Bruno Haible <bruno@clisp.org>
30678 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
30680 2007-03-10 Bruno Haible <bruno@clisp.org>
30682 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
30684 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
30685 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
30686 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
30688 2007-03-10 Bruno Haible <bruno@clisp.org>
30690 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
30692 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
30695 2007-03-09 Eric Blake <ebb9@byu.net>
30696 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
30698 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
30699 types are not being provided by gnulib.
30700 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
30701 types are supported.
30703 2007-03-10 Bruno Haible <bruno@clisp.org>
30705 * lib/stdio_.h (__attribute__): New macro.
30706 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
30707 vsprintf): Specify __attribute__ __format__ for GCC.
30708 Suggested by Eric Blake.
30710 2007-03-09 Bruno Haible <bruno@clisp.org>
30712 * modules/printf-posix-tests: New file.
30713 * tests/test-printf-posix.sh: New file.
30714 * tests/test-printf-posix.c: New file.
30716 * modules/printf-posix: New file.
30717 * lib/printf.c: New file.
30718 * m4/printf-posix-rpl.m4: New file.
30719 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
30721 * lib/stdio_.h (printf): New declaration.
30722 (format, __format__, ____printf____, ____scanf____, ____strftime____,
30723 ____strfmon____): New macros.
30724 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
30727 2007-03-09 Bruno Haible <bruno@clisp.org>
30729 * tests/test-vasnprintf-posix2.sh: New file.
30730 * tests/test-vasnprintf-posix2.c: New file.
30731 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
30732 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
30733 (Makefile.am): Activate test-vasnprintf-posix2.sh.
30735 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
30736 a locale dependent decimal point, rather than always '.'.
30738 2007-03-09 Eric Blake <ebb9@byu.net>
30740 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
30741 spite of platforms like Tandem/NSK that define it to -1.
30743 2007-03-08 Bruno Haible <bruno@clisp.org>
30745 * modules/vprintf-posix-tests: New file.
30746 * tests/test-vprintf-posix.sh: New file.
30747 * tests/test-vprintf-posix.c: New file.
30748 * tests/test-printf-posix.h: New file.
30750 * modules/vprintf-posix: New file.
30751 * lib/vprintf.c: New file.
30752 * m4/vprintf-posix.m4: New file.
30753 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
30755 * lib/stdio_.h (vprintf): New declaration.
30756 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
30759 2007-03-08 Bruno Haible <bruno@clisp.org>
30761 * modules/fprintf-posix-tests: New file.
30762 * tests/test-fprintf-posix.sh: New file.
30763 * tests/test-fprintf-posix.c: New file.
30765 * modules/fprintf-posix: New file.
30766 * lib/fprintf.c: New file.
30767 * m4/fprintf-posix.m4: New file.
30768 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
30770 * lib/stdio_.h (fprintf): New declaration.
30771 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
30774 2007-03-08 Bruno Haible <bruno@clisp.org>
30776 * modules/vfprintf-posix-tests: New file.
30777 * tests/test-vfprintf-posix.sh: New file.
30778 * tests/test-vfprintf-posix.c: New file.
30779 * tests/test-fprintf-posix.h: New file.
30780 * tests/test-fprintf-posix.out: New file.
30782 * modules/vfprintf-posix: New file.
30783 * lib/vfprintf.c: New file.
30784 * m4/vfprintf-posix.m4: New file.
30785 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
30787 * lib/stdio_.h (vfprintf): New declaration.
30788 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
30791 2007-03-08 Bruno Haible <bruno@clisp.org>
30793 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
30795 2007-03-08 Bruno Haible <bruno@clisp.org>
30797 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
30798 instead of 'expr' invocations.
30799 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30800 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30801 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30802 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30803 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30804 Suggested by Paul Eggert.
30806 2007-03-08 Bruno Haible <bruno@clisp.org>
30808 * modules/fseterr-tests: New file.
30809 * tests/test-fseterr.c: New file.
30811 * modules/fseterr: New file.
30812 * lib/fseterr.h: New file.
30813 * lib/fseterr.c: New file.
30815 2007-03-08 Bruno Haible <bruno@clisp.org>
30817 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
30818 * lib/getopt_.h: Likewise.
30819 * lib/mbswidth.h: Likewise.
30820 * lib/setenv.h: Likewise.
30821 * lib/vasnprintf.h: Likewise.
30822 * lib/vasprintf.h: Likewise.
30823 * lib/verror.h: Likewise.
30824 * lib/xsetenv.h: Likewise.
30825 * lib/xvasprintf.h: Likewise.
30827 2007-03-08 Jim Meyering <jim@meyering.net>
30829 * users.txt: Add parted.
30831 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
30833 2007-03-07 Bruno Haible <bruno@clisp.org>
30835 * m4/printf.m4: Make the shell script snippets copy&pastable.
30837 2007-03-02 Bruno Haible <bruno@clisp.org>
30839 * lib/netinet_in_.h: New file.
30840 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
30841 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
30842 * modules/netinet_in (Files): Add lib/netinet_in_.h.
30843 (Depends-on): Add absolute-header.
30844 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
30847 2007-03-03 Bruno Haible <bruno@clisp.org>
30849 * lib/sys_select_.h: New file.
30850 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
30851 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
30852 * modules/sys_select (Files): Add lib/sys_select_.h.
30853 (Depends-on): Add absolute-header.
30854 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
30857 2007-03-02 Bruno Haible <bruno@clisp.org>
30859 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
30860 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
30862 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
30863 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
30864 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
30865 * modules/sys_socket (Depends-on): Add absolute-header.
30866 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
30867 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
30868 (Include): Remove requirement of inclusion of <sys/types.h>.
30870 2007-03-02 Bruno Haible <bruno@clisp.org>
30872 * lib/byteswap_.h (bswap_32): Fix formula.
30874 2007-03-06 Bruno Haible <bruno@clisp.org>
30876 * modules/sprintf-posix-tests: New file.
30877 * tests/test-sprintf-posix.c: New file.
30879 * modules/sprintf-posix: New file.
30880 * lib/sprintf.c: New file.
30881 * m4/sprintf-posix.m4: New file.
30882 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
30884 * lib/stdio_.h (sprintf): New declaration.
30885 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
30888 2007-03-06 Bruno Haible <bruno@clisp.org>
30890 * modules/vsprintf-posix-tests: New file.
30891 * tests/test-vsprintf-posix.c: New file.
30892 * tests/test-sprintf-posix.h: New file.
30894 * modules/vsprintf-posix: New file.
30895 * lib/vsprintf.c: New file.
30896 * m4/vsprintf-posix.m4: New file.
30897 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
30899 * lib/stdio_.h (vsprintf): New declaration.
30900 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
30903 2007-03-06 Bruno Haible <bruno@clisp.org>
30905 * modules/vsnprintf (Depend-on): Remove minmax.
30907 2007-03-06 Bruno Haible <bruno@clisp.org>
30909 * modules/snprintf-posix-tests: New file.
30910 * tests/test-snprintf-posix.c: New file.
30912 * modules/snprintf-posix: New file.
30913 * m4/snprintf-posix.m4: New file.
30914 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
30916 (gl_FUNC_SNPRINTF): Invoke it.
30917 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
30918 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
30920 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
30922 2007-03-06 Bruno Haible <bruno@clisp.org>
30924 * modules/vsnprintf-posix-tests: New file.
30925 * tests/test-vsnprintf-posix.c: New file.
30926 * tests/test-snprintf-posix.h: New file.
30928 * modules/vsnprintf-posix: New file.
30929 * m4/vsnprintf-posix.m4: New file.
30930 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
30932 (gl_FUNC_VSNPRINTF): Invoke it.
30933 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
30934 * lib/stdio_.h (vsnprintf): Define as a replacement if
30935 REPLACE_VSNPRINTF is set.
30936 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
30938 2007-03-06 Bruno Haible <bruno@clisp.org>
30940 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
30941 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
30943 2007-03-06 Bruno Haible <bruno@clisp.org>
30945 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
30946 (asinl): Declare also if HAVE_DECL_ASINL is set.
30947 (atanl): Declare also if HAVE_DECL_ATANL is set.
30948 (ceill): Declare also if HAVE_DECL_CEILL is set.
30949 (cosl): Declare also if HAVE_DECL_COSL is set.
30950 (expl): Declare also if HAVE_DECL_EXPL is set.
30951 (floorl): Declare also if HAVE_DECL_FLOORL is set.
30952 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
30953 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
30954 (logl): Declare also if HAVE_DECL_LOGL is set.
30955 (sinl): Declare also if HAVE_DECL_SINL is set.
30956 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
30957 (tanl): Declare also if HAVE_DECL_TANL is set.
30958 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
30959 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
30960 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
30961 declaration of frexpl, ldexpl.
30962 * modules/printf-frexpl (Depends-on): Add math.
30963 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
30965 2007-03-05 Bruno Haible <bruno@clisp.org>
30967 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
30968 frexpl and ldexpl are declared.
30969 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
30971 2007-03-05 Bruno Haible <bruno@clisp.org>
30973 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
30974 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
30976 2007-03-05 Bruno Haible <bruno@clisp.org>
30978 * lib/stdio_.h: Include <stddef.h>.
30980 2007-03-05 Bruno Haible <bruno@clisp.org>
30982 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
30984 2007-03-05 Bruno Haible <bruno@clisp.org>
30986 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
30987 NetBSD 4, from Ralf Wildenhues.
30989 2007-03-04 Bruno Haible <bruno@clisp.org>
30991 * lib/vasprintf.h: Update #if logic for the case when the functions
30992 exist but are overridden.
30994 2007-03-04 Bruno Haible <bruno@clisp.org>
30996 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
30997 implementations: glibc-2.4 and MacOS X 10.3.
30998 * tests/test-vasnprintf-posix.c (test_function): Test also the case
30999 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
31000 * tests/test-vasprintf-posix.c (test_function): Likewise.
31002 2007-03-04 Bruno Haible <bruno@clisp.org>
31004 * modules/vasprintf-posix-tests: New file.
31005 * tests/test-vasprintf-posix.c: New file.
31007 * modules/vasprintf-posix: New file.
31008 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
31010 * m4/vasprintf-posix.m4: New file.
31011 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
31013 (gl_FUNC_VASPRINTF): Invoke it.
31014 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
31016 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
31018 2007-03-04 Bruno Haible <bruno@clisp.org>
31020 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
31021 REPLACE_GETTIMEOFDAY.
31022 * modules/sys_time (Makefile.am): Likewise.
31023 * m4/sys_time_h.m4: Likewise.
31024 * m4/gettimeofday.m4: Likewise.
31026 2007-03-04 Bruno Haible <bruno@clisp.org>
31028 * modules/vasnprintf-posix-tests: New file.
31029 * tests/test-vasnprintf-posix.c: New file.
31031 * modules/vasnprintf-posix: New file.
31032 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
31034 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
31035 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
31036 REPLACE_VASNPRINTF is defined.
31037 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
31038 gl_FUNC_VASNPRINTF.
31039 (gl_FUNC_VASNPRINTF): Invoke it.
31040 * m4/vasnprintf-posix.m4: New file.
31041 * m4/printf.m4: New file.
31043 2007-03-04 Bruno Haible <bruno@clisp.org>
31045 Compile progreloc.c only if --enable-relocatable is specified.
31046 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
31047 if --enable-relocatable was specified.
31048 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
31051 2007-03-04 Jim Meyering <jim@meyering.net>
31053 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
31054 Use it consistently, rather than enumerating errno constants.
31056 2007-03-04 Bruno Haible <bruno@clisp.org>
31058 * modules/xvasprintf-tests: New file.
31059 * tests/test-xvasprintf.c: New file.
31061 * modules/vasprintf-tests: New file.
31062 * tests/test-vasprintf.c: New file.
31064 * modules/vasnprintf-tests: New file.
31065 * tests/test-vasnprintf.c: New file.
31067 * modules/vsnprintf-tests: New file.
31068 * tests/test-vsnprintf.c: New file.
31070 * modules/snprintf-tests: New file.
31071 * tests/test-snprintf.c: New file.
31073 2007-03-04 Bruno Haible <bruno@clisp.org>
31075 Compile relocatable.c only if --enable-relocatable is specified.
31076 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
31077 gl_RELOCATABLE_LIBRARY.
31078 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
31079 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
31080 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
31081 gl_RELOCATABLE_LIBRARY.
31082 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
31083 (Makefile.am): Remove lib_SOURCES.
31084 * modules/relocatable-lib-lgpl (configure.ac): Invoke
31085 gl_RELOCATABLE_LIBRARY.
31086 (Makefile.am): Remove lib_SOURCES.
31087 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
31089 * modules/relocatable-prog-wrapper (configure.ac): Invoke
31090 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
31092 2007-03-04 Bruno Haible <bruno@clisp.org>
31094 * modules/argmatch-tests: New file.
31095 * tests/test-argmatch.c: New file.
31097 * tests/test-allocsa.c (main): Halve the number of loop runs.
31099 * modules/alloca-opt-tests: New file.
31100 * tests/test-alloca-opt.c: New file.
31102 2007-03-04 Jim Meyering <jim@meyering.net>
31104 Work around difference between Linux ACLs and Solaris 10 ZFS.
31105 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
31108 2007-03-03 Bruno Haible <bruno@clisp.org>
31110 * modules/relocatable-prog (Depends-on): Add back progreloc's
31111 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
31113 2007-03-03 Bruno Haible <bruno@clisp.org>
31115 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
31116 * modules/relocatable-lib: New file.
31118 2007-03-03 Bruno Haible <bruno@clisp.org>
31120 * modules/relocatable-prog: Renamed from modules/relocatable.
31121 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
31123 2007-03-03 Bruno Haible <bruno@clisp.org>
31125 * modules/relocatable-script (Files): Add doc/relocatable.texi,
31126 m4/relocatable-lib.m4.
31127 (Depends-on): Remove 'relocatable'.
31128 (configure.ac): Add gl_RELOCATABLE_NOP.
31130 2007-03-03 Bruno Haible <bruno@clisp.org>
31132 * modules/relocatable-prog-wrapper: New file.
31133 * modules/relocatable (Depends-on): Add it. Remove all other
31134 dependencies except progname.
31135 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
31137 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
31138 (gl_FUNC_STRERROR): Nop.
31139 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
31141 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
31142 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
31144 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
31145 (gl_FUNC_READLINK): Update.
31147 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
31149 2007-03-03 Bruno Haible <bruno@clisp.org>
31151 * lib/xreadlink.c: Include <unistd.h> unconditionally.
31152 * modules/xreadlink (Depends-on): Add unistd.
31153 * modules/xreadlink-with-size (Depends-on): Likewise.
31155 2007-03-03 Bruno Haible <bruno@clisp.org>
31157 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
31158 extracted from gt_FUNC_SETENV.
31159 (gt_FUNC_SETENV): Remove macro.
31160 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
31161 remove gt_FUNC_SETENV.
31163 2007-03-03 Bruno Haible <bruno@clisp.org>
31165 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
31166 ENABLE_RELOCATABLE here.
31167 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
31169 2007-03-03 Bruno Haible <bruno@clisp.org>
31171 * modules/rbtreehash-list-tests (Depends-on): Add progname.
31172 * tests/test-rbtreehash_list.c: Include progname.h.
31173 (main): Call set_program_name.
31175 * modules/rbtree-oset-tests (Depends-on): Add progname.
31176 * tests/test-rbtree_oset.c: Include progname.h.
31177 (main): Call set_program_name.
31179 * modules/rbtree-list-tests (Depends-on): Add progname.
31180 * tests/test-rbtree_list.c: Include progname.h.
31181 (main): Call set_program_name.
31183 * modules/linked-list-tests (Depends-on): Add progname.
31184 * tests/test-linked_list.c: Include progname.h.
31185 (main): Call set_program_name.
31187 2007-03-03 Bruno Haible <bruno@clisp.org>
31189 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
31190 All uses of __restrict changed to _Restrict_.
31191 * lib/glob_.h (__restrict): Remove macro.
31193 2007-03-02 Bruno Haible <bruno@clisp.org>
31195 * modules/gettext (configure.ac): Require gettext infrastructure
31196 from version 0.16.1.
31198 2007-03-02 Bruno Haible <bruno@clisp.org>
31200 * modules/linkedhash-list-tests (Depends-on): Add progname.
31201 * tests/test-linkedhash_list.c: Include progname.h.
31202 (main): Call set_program_name.
31204 * modules/carray-list-tests (Depends-on): Add progname.
31205 * tests/test-carray_list.c: Include progname.h.
31206 (main): Call set_program_name.
31208 * modules/avltreehash-list-tests (Depends-on): Add progname.
31209 * tests/test-avltreehash_list.c: Include progname.h.
31210 (main): Call set_program_name.
31212 * modules/avltree-oset-tests (Depends-on): Add progname.
31213 * tests/test-avltree_oset.c: Include progname.h.
31214 (main): Call set_program_name.
31216 * modules/avltree-list-tests (Depends-on): Add progname.
31217 * tests/test-avltree_list.c: Include progname.h.
31218 (main): Call set_program_name.
31220 * modules/array-oset-tests (Depends-on): Add progname.
31221 * tests/test-array_oset.c: Include progname.h.
31222 (main): Call set_program_name.
31224 * modules/array-list-tests (Depends-on): Add progname.
31225 * tests/test-array_list.c: Include progname.h.
31226 (main): Call set_program_name.
31228 * modules/argp-tests (Depends-on): Add progname.
31229 * tests/test-argp.c: Include argp.h first. Include progname.h.
31230 (main): Call set_program_name.
31232 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
31234 * doc/gnulib-tool.texi (Initial import): Reword description of
31235 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
31236 limited effect even if defined after the first system include.
31238 2007-03-01 Bruno Haible <bruno@clisp.org>
31240 * build-aux/config.libpath: Update to libtool-1.5.22.
31241 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31243 2007-03-01 Bruno Haible <bruno@clisp.org>
31245 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
31247 Reported by Ralf Wildenhues.
31249 2007-03-01 Bruno Haible <bruno@clisp.org>
31251 * build-aux/install-reloc: Remove object files left over by some
31253 Reported by Ralf Wildenhues.
31255 2007-03-01 Bruno Haible <bruno@clisp.org>
31257 * build-aux/install-reloc: Break long lines.
31259 2007-03-01 Bruno Haible <bruno@clisp.org>
31261 * doc/relocatable.texi: Document that it may not work on OpenBSD.
31262 Reported by Ralf Wildenhues.
31264 2007-03-01 Bruno Haible <bruno@clisp.org>
31266 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
31267 include ordering constraints.
31269 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
31271 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
31272 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
31273 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
31274 as another example.
31275 * lib/time_.h: Fix misspelling.
31276 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
31277 Require gl_HEADER_TIME_H_DEFAULTS.
31278 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
31279 * m4/time_r.m4 (gl_TIME_R): Likewise.
31280 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
31282 2007-03-01 Bruno Haible <bruno@clisp.org>
31284 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
31285 * m4/utimens.m4 (gl_UTIMENS): Likewise.
31287 2007-03-01 Jim Meyering <jim@meyering.net>
31289 * modules/xreadlink (Maintainer): Add my name.
31290 * modules/xreadlink-with-size (Depends-on): Alphabetize.
31292 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
31293 Bruno Haible <bruno@clisp.org>
31295 * build-aux/install-reloc: Compile also c-ctype.c.
31296 * build-aux/relocatable.sh.in: New file.
31297 * doc/relocatable.texi: New file.
31298 * doc/relocatable-maint.texi: New file.
31299 * doc/gnulib.texi: Include relocatable-maint.texi.
31300 * lib/progreloc.c: Include unistd.h unconditionally.
31301 * lib/relocwrapper.c: Include unistd.h unconditionally.
31303 (add_dotbin): Use c_tolower.
31304 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
31305 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
31306 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
31307 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
31308 to m4/relocatable-lib.m4.
31309 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
31310 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
31311 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
31312 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
31313 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
31314 * modules/relocatable: New file.
31315 * modules/relocatable-lib: New file.
31316 * modules/relocatable-script: New file.
31318 2007-02-28 Bruno Haible <bruno@clisp.org>
31320 Import --enable-relocatable infrastructure.
31321 * build-aux/config.libpath: New file, from GNU gettext.
31322 * build-aux/install-reloc: New file, from GNU gettext.
31323 * build-aux/reloc-ldflags: New file, from GNU gettext.
31324 * lib/relocatable.h: New file, from GNU gettext.
31325 * lib/relocatable.c: New file, from GNU gettext.
31326 * lib/relocwrapper.c: New file, from GNU gettext.
31327 * m4/relocatable.m4: New file, from GNU gettext.
31329 2007-02-28 Bruno Haible <bruno@clisp.org>
31331 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
31333 * modules/xreadlink: New file, from GNU gettext with modifications.
31334 * lib/xreadlink.c: New file, from GNU gettext.
31335 * lib/xreadlink.h: Add comments.
31336 (xreadlink): New declaration.
31338 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
31339 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
31340 lib/xreadlink-with-size.c.
31341 (configure.ac): Remove gl_XREADLINK invocation.
31342 (Makefile.am): Augment lib_SOURCES.
31343 * m4/xreadlink.m4: Remove file.
31344 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
31345 (xreadlink_with_size): Renamed from xreadink.
31346 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
31347 * modules/canonicalize (Depends-on): Replace xreadlink with
31348 xreadlink-with-size.
31349 * lib/canonicalize.c (canonicalize_filename_mode): Update.
31351 2007-02-25 Jim Meyering <jim@meyering.net>
31353 * build-aux/announce-gen: When complaining about excess arguments,
31356 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
31358 * README: Document signed integer overflow situation more
31361 2007-02-25 Bruno Haible <bruno@clisp.org>
31363 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
31364 'a' or 'A' conversion.
31366 2007-02-25 Bruno Haible <bruno@clisp.org>
31368 * modules/filename: Renamed from modules/pathname.
31369 (Files): Replace lib/pathname.h with lib/filename.h. Replace
31370 lib/concatpath.c with lib/concat-filename.c.
31371 (Makefile.am): Update.
31372 (Include): Replace pathname.h with filename.h.
31373 * lib/filename.h: Renamed from lib/pathname.h.
31374 (concatenated_filename): Renamed from concatenated_pathname.
31375 * lib/concat-filename.c: Renamed from lib/concatpath.c.
31376 (concatenated_filename): Renamed from concatenated_pathname.
31377 * lib/findprog.c: Include filename.h instead of pathname.h.
31378 (find_in_path): Update.
31379 * lib/javacomp.c: Include filename.h instead of pathname.h.
31380 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
31381 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
31382 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
31383 is_oldgcj_14_13_usable, is_javac_usable): Update.
31384 * lib/javaexec.c: Include filename.h instead of pathname.h.
31385 (execute_java_class): Update.
31386 * modules/findprog: Update.
31387 * modules/javacomp: Update.
31388 * modules/javaexec: Update.
31389 * MODULES.html.sh (File system functions): Add 'filename', remove
31392 2007-02-25 Bruno Haible <bruno@clisp.org>
31394 * modules/printf-frexpl-tests: New file.
31395 * tests/test-printf-frexpl.c: New file.
31397 * modules/printf-frexpl: New file.
31398 * lib/printf-frexpl.h: New file.
31399 * lib/printf-frexpl.c: New file.
31400 * m4/printf-frexpl.m4: New file.
31402 2007-02-25 Bruno Haible <bruno@clisp.org>
31404 * modules/printf-frexp-tests: New file.
31405 * tests/test-printf-frexp.c: New file.
31407 * modules/printf-frexp: New file.
31408 * lib/printf-frexp.h: New file.
31409 * lib/printf-frexp.c: New file.
31410 * m4/printf-frexp.m4: New file.
31412 2007-02-25 Bruno Haible <bruno@clisp.org>
31414 Assume automake >= 1.10 for the tests.
31415 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
31416 * modules/arctwo-tests: Likewise.
31417 * modules/argp-tests: Likewise.
31418 * modules/avltree-list-tests: Likewise.
31419 * modules/avltree-oset-tests: Likewise.
31420 * modules/avltreehash-list-tests: Likewise.
31421 * modules/carray-list-tests: Likewise.
31422 * modules/crc-tests: Likewise.
31423 * modules/des-tests: Likewise.
31424 * modules/gc-arcfour-tests: Likewise.
31425 * modules/gc-arctwo-tests: Likewise.
31426 * modules/gc-des-tests: Likewise.
31427 * modules/gc-hmac-md5-tests: Likewise.
31428 * modules/gc-hmac-sha1-tests: Likewise.
31429 * modules/gc-md2-tests: Likewise.
31430 * modules/gc-md4-tests: Likewise.
31431 * modules/gc-md5-tests: Likewise.
31432 * modules/gc-pbkdf2-sha1-tests: Likewise.
31433 * modules/gc-rijndael-tests: Likewise.
31434 * modules/gc-sha1-tests: Likewise.
31435 * modules/gc-tests: Likewise.
31436 * modules/getaddrinfo-tests: Likewise.
31437 * modules/hmac-md5-tests: Likewise.
31438 * modules/hmac-sha1-tests: Likewise.
31439 * modules/linked-list-tests: Likewise.
31440 * modules/linkedhash-list-tests: Likewise.
31441 * modules/lock-tests: Likewise.
31442 * modules/md2-tests: Likewise.
31443 * modules/md4-tests: Likewise.
31444 * modules/md5-tests: Likewise.
31445 * modules/rbtree-list-tests: Likewise.
31446 * modules/rbtree-oset-tests: Likewise.
31447 * modules/rbtreehash-list-tests: Likewise.
31448 * modules/read-file-tests: Likewise.
31449 * modules/rijndael-tests: Likewise.
31450 * modules/stdint-tests: Likewise.
31451 * modules/tls-tests: Likewise.
31453 2007-02-24 Bruno Haible <bruno@clisp.org>
31455 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
31456 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
31457 function; instead check whether isnan with a double argument links.
31458 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
31459 function; instead check whether isnan with a 'long double' argument
31461 Reported by Eric Blake <ebb9@byu.net>.
31463 2007-02-24 Bruno Haible <bruno@clisp.org>
31465 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
31467 * lib/isnanl.c: Remove all code. Just include isnan.c.
31468 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
31470 2007-02-25 Jim Meyering <jim@meyering.net>
31472 Avoid conflicting types for 'unsetenv' on FreeBSD.
31473 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
31474 conflicting with FreeBSD's (5.0 and 6.1) function declaration
31477 2007-02-24 Bruno Haible <bruno@clisp.org>
31479 * modules/isnanl-nolibm-tests: New file.
31480 * tests/test-isnanl.c: New file.
31482 * modules/isnanl-nolibm: New file.
31483 * lib/isnanl.h: New file.
31484 * lib/isnanl.c: New file.
31485 * m4/isnanl.m4: New file.
31487 2007-02-24 Bruno Haible <bruno@clisp.org>
31489 * modules/isnan-nolibm-tests: New file.
31490 * tests/test-isnan.c: New file.
31492 * modules/isnan-nolibm: New file.
31493 * lib/isnan.h: New file.
31494 * lib/isnan.c: New file.
31495 * m4/isnan.m4: New file.
31497 2007-02-24 Bruno Haible <bruno@clisp.org>
31499 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
31500 assume that an exponent fits in 20 bits.
31502 2007-02-24 Jim Meyering <jim@meyering.net>
31504 * m4/regex.m4: Update the description of the configure-time option,
31505 --without-included-regex, to state accurately what the defaults are,
31506 and perhaps to give people an idea why using this option is risky.
31508 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
31510 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
31511 loops on small arguments. This attempts to avoid the problem
31512 Bruno Haible reported for AIX 4.3.2 in
31513 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
31515 2007-02-23 Bruno Haible <bruno@clisp.org>
31517 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
31518 Needed for help2man.
31520 2007-02-23 Karl Berry <karl@gnu.org>
31522 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
31523 exists, foo.h should be cvs-ignored, not committed.
31525 2007-02-23 Eric Blake <ebb9@byu.net>
31527 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
31528 * lib/stat-time.h (includes): Likewise.
31529 * lib/utimecmp.c (includes): Likewise.
31530 * lib/utimens.h (includes): Likewise.
31531 * lib/getdate.y (includes): Also include "timespec.h" for use
31532 internal to the module.
31533 * modules/utimens (Depends-on): Revert yesterday's patch.
31534 * modules/nanosleep (Depends-on): Add missing dependency.
31536 2007-02-22 Bruno Haible <bruno@clisp.org>
31538 * lib/glob.c: Don't include getlogin_r.h.
31540 2007-02-22 Jim Meyering <jim@meyering.net>
31542 * modules/utimens (Depends-on): Add timespec, required for
31543 utimens.h's inclusion of timespec.h.
31545 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
31547 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
31548 long unreadable paths in GNU/Linux. Problem reported by Andreas
31550 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
31551 I'll try to think of a better way to fix the Solaris problem.
31553 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
31554 like glibc; on Solaris 10, it fails with errno == EINVAL.
31555 POSIX says the behavior is unspecified if the first argument is NULL,
31556 so play it safe and never pass NULL to the system getcwd.
31558 2007-02-21 Jim Meyering <jim@meyering.net>
31560 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
31561 of gettimeofday. It would conflict with the one now always
31562 provided via sys_time_.h. Reported by Matthew Woehlke, as
31563 an IRIX 6.5 build failure.
31565 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
31567 Minor fixups to port to Solaris 10 with Sun C 5.8.
31568 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
31569 * modules/getcwd (Depends-on): Add dirfd.
31570 * lib/putenv.c (putenv): #undef it.
31571 (rpl_putenv): New decl.
31572 (malloc, free): Include <stdlib.h> rather than prototyping separately.
31574 2007-02-20 Bruno Haible <bruno@clisp.org>
31576 * modules/stdio-tests: New file.
31577 * tests/test-stdio.c: New file.
31579 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
31580 (Depends-on): Add stdio.
31581 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31582 (Include): Use <stdio.h> instead of vsnprintf.h.
31583 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
31584 HAVE_DECL_VSNPRINTF.
31585 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
31587 * modules/snprintf (Files): Remove lib/snprintf.h.
31588 (Depends-on): Add stdio.
31589 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31590 (Include): Use <stdio.h> instead of snprintf.h.
31591 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
31592 HAVE_DECL_SNPRINTF.
31593 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
31594 * lib/getaddrinfo.c: Likewise.
31596 * modules/stdio: New file.
31597 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
31598 * lib/snprintf.h: Remove file.
31599 * lib/vsnprintf.h: Remove file.
31600 * lib/.cppi-disable: Remove snprintf.h.
31601 * m4/stdio_h.m4: New file.
31602 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
31604 2007-02-20 Jim Meyering <jim@meyering.net>
31606 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
31607 used by e.g., mingw. From Bruno Haible.
31609 2007-02-19 Bruno Haible <bruno@clisp.org>
31611 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
31613 Reported by Ben Pfaff <blp@cs.stanford.edu>.
31615 2007-02-19 Bruno Haible <bruno@clisp.org>
31617 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
31620 2007-02-19 Bruno Haible <bruno@clisp.org>
31622 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
31624 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
31626 2007-02-19 Jim Meyering <jim@meyering.net>
31628 Don't use FD after a successful "fdopendir (fd)".
31629 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
31630 Reset it by calling dirfd on the just-obtained DIR*.
31632 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
31633 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
31635 2007-02-18 Bruno Haible <bruno@clisp.org>
31637 * lib/readlink.c: Include <unistd.h>.
31638 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
31640 * modules/readlink (Depends-on): Add unistd.
31641 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31642 (Include): Add <unistd.h>.
31644 * lib/getlogin_r.h: Remove file.
31645 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
31646 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
31647 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
31648 HAVE_DECL_GETLOGIN_R.
31649 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
31650 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31651 (Include): Use <unistd.h> instead of getlogin_r.h.
31653 * lib/getcwd.h: Remove file.
31654 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
31655 * lib/xgetcwd.c: Likewise.
31656 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
31657 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
31658 * modules/getcwd (Files): Remove lib/getcwd.h.
31659 (Depends-on): Add unistd.
31660 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31661 (Include): Use <unistd.h> instad of getcwd.h.
31663 * lib/ftruncate.c: Include <unistd.h> first.
31664 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
31665 Set HAVE_FTRUNCATE.
31666 * modules/ftruncate (Depends-on): Add unistd.
31667 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31669 * lib/fchdir.c: Include <unistd.h> first.
31670 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
31671 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
31672 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
31673 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31674 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
31676 * lib/dup2.c: Include <unistd.h> first.
31677 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
31679 * modules/dup2 (Depends-on): Add unistd.
31680 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31682 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
31683 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
31684 REPLACE_CHOWN. Don't define chown as a macro here.
31685 * modules/chown (Depends-on): Add unistd.
31686 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31688 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
31689 Add definition for GL_LINK_WARNING.
31690 (chown, dup2): New declarations.
31691 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
31693 (ftruncate): New declaration.
31694 (getcwd): New declaration, taken from old getcwd.h.
31695 (getlogin_r): New declaration, taken from old getlogin_r.h.
31696 (readlink): New declaration.
31697 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
31698 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
31699 (gl_PREREQ_UNISTD): Remove macro.
31700 (gl_UNISTD_MODULE_INDICATOR): New macro.
31701 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
31702 many new variables. Don't set UNISTD_H.
31703 * modules/unistd (Description): Change.
31704 (Depends-on): Add link-warning.
31705 (configure.ac): Update.
31706 (Makefile.am): Create unistd.h always. Substitute many new variables
31709 2007-02-18 Bruno Haible <bruno@clisp.org>
31711 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
31712 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
31714 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
31715 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
31716 * lib/getsubopt.h: Remove file.
31717 * modules/getsubopt (Files): Remove lib/getsubopt.h.
31718 (Depends-on): Add stdlib.
31719 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31720 (Includes): Use <stdlib.h> instead of getsubopt.h.
31721 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
31722 Set HAVE_GETSUBOPT.
31723 * lib/getsubopt.c: Don't include getsubopt.h.
31725 2007-02-18 Bruno Haible <bruno@clisp.org>
31727 * modules/fchdir (Depends-on): Add dup2.
31729 2007-02-18 Bruno Haible <bruno@clisp.org>
31731 * lib/stdlib_.h: Handle glibc's special invocation convention
31734 2007-02-18 Bruno Haible <bruno@clisp.org>
31736 * modules/stdlib-tests: New file.
31737 * tests/test-stdlib.c: New file.
31739 * modules/mkstemp (Files): Remove lib/mkstemp.h.
31740 (Depends-on): Add stdlib.
31741 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31742 (Includes): Use <stdlib.h> instead of mkstemp.h.
31743 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
31744 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
31745 * lib/mkstemp.c: Don't include mkstemp.h.
31746 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
31747 * lib/stdlib--.h: Don't include mkstemp.h.
31749 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
31750 (Depends-on): Add stdlib.
31751 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31752 (Includes): Use <stdlib.h> instead of mkdtemp.h.
31753 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
31755 * lib/mkdtemp.c: Don't include mkdtemp.h.
31756 * lib/clean-temp.c: Don't include mkdtemp.h.
31758 * modules/exit (Files): Remove lib/exit.h.
31759 (Depends-on): Add stdlib.
31760 (Makefile.am): Remove lib_SOURCES.
31761 (Include): Use <stdlib.h> instead of exit.h.
31762 * lib/argmatch.c: Don't include exit.h.
31763 * lib/execute.c: Likewise.
31764 * lib/pagealign_alloc.c: Likewise.
31765 * lib/pipe.c: Likewise.
31766 * lib/wait-process.c: Likewise.
31767 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
31768 * lib/exitfail.c: Likewise.
31769 * lib/savewd.c: Likewise.
31770 * lib/xsetenv.c: Likewise.
31772 * modules/stdlib: New file.
31773 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
31774 and extra comments about mkstemp().
31775 * lib/exit.h: Remove file.
31776 * lib/mkdtemp.h: Remove file.
31777 * lib/mkstemp.h: Remove file.
31778 * m4/stdlib_h.m4: New file.
31779 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
31781 2007-02-18 Bruno Haible <bruno@clisp.org>
31783 * modules/math-tests: New file.
31784 * tests/test-math.c: New file.
31786 * modules/math: New file.
31787 * modules/mathl (Files): Remove lib/mathl.h.
31788 (Depends-on): Add math.
31789 (Makefile.am): Don't mention mathl.h.
31790 (Include): Use <math.h> instead of mathl.h.
31791 * lib/math_.h: New file.
31792 * lib/mathl.h: Remove file.
31793 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
31795 * lib/asinl.c: Likewise.
31796 * lib/atanl.c: Likewise.
31797 * lib/ceill.c: Likewise.
31798 * lib/cosl.c: Likewise.
31799 * lib/expl.c: Likewise.
31800 * lib/floorl.c: Likewise.
31801 * lib/frexpl.c: Likewise.
31802 * lib/ldexpl.c: Likewise.
31803 * lib/logl.c: Likewise.
31804 * lib/sincosl.c: Likewise.
31805 * lib/sinl.c: Likewise.
31806 * lib/sqrtl.c: Likewise.
31807 * lib/tanl.c: Likewise.
31808 * lib/trigl.c: Likewise.
31809 * m4/math_h.m4: New file.
31810 * MODULES.html.sh (Mathematics): Add math.
31812 2007-02-17 Bruno Haible <bruno@clisp.org>
31814 * modules/wctype-tests: New file.
31815 * tests/test-wctype.c: New file.
31817 * modules/wchar-tests: New file.
31818 * tests/test-wchar.c: New file.
31820 * modules/unistd-tests: New file.
31821 * tests/test-unistd.c: New file.
31823 * modules/time-tests: New file.
31824 * tests/test-time.c: New file.
31826 * modules/sysexits-tests: New file.
31827 * tests/test-sysexits.c: New file.
31829 * modules/sys_time-tests: New file.
31830 * tests/test-sys_time.c: New file.
31832 * modules/sys_stat-tests: New file.
31833 * tests/test-sys_stat.c: New file.
31835 * modules/sys_socket-tests: New file.
31836 * tests/test-sys_socket.c: New file.
31838 * modules/sys_select-tests: New file.
31839 * tests/test-sys_select.c: New file.
31841 * modules/string-tests: New file.
31842 * tests/test-string.c: New file.
31844 * modules/stdbool-tests: New file.
31845 * tests/test-stdbool.c: New file.
31847 * modules/netinet_in-tests: New file.
31848 * tests/test-netinet_in.c: New file.
31850 * modules/inttypes-tests: New file.
31851 * tests/test-inttypes.c: New file.
31853 * modules/fcntl-tests: New file.
31854 * tests/test-fcntl.c: New file.
31856 * modules/byteswap-tests: New file.
31857 * tests/test-byteswap.c: New file.
31859 * modules/arpa_inet-tests: New file.
31860 * tests/test-arpa_inet.c: New file.
31862 2007-02-17 Bruno Haible <bruno@clisp.org>
31864 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
31865 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
31866 if the corresponding module is not enabled. Emit link warnings if
31867 the function is used nevertheless.
31868 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
31869 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
31870 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
31871 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
31872 * modules/inttypes (Depends-on): Add link-warning.
31873 (Makefile.am): Copy the contents of build-aux/link-warning.h into
31874 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
31875 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
31876 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
31877 * modules/imaxdiv (configure.ac): Likewise.
31878 * modules/strtoimax (configure.ac): Likewise.
31879 * modules/strtoumax (configure.ac): Likewise.
31881 2007-02-17 Bruno Haible <bruno@clisp.org>
31883 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
31884 gl_STRING_MODULE_INDICATOR_DEFAULTS.
31885 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
31886 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
31888 2007-02-17 Bruno Haible <bruno@clisp.org>
31890 * modules/link-warning: New file.
31891 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
31892 * lib/string_.h (GL_LINK_WARNING): Remove definition.
31893 * modules/string (Depends-on): Add link-warning.
31894 (Makefile.am): Copy the contents of build-aux/link-warning.h into
31896 * MODULES.html.sh (Support for building libraries and executables): Add
31899 2007-02-17 Bruno Haible <bruno@clisp.org>
31901 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
31902 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
31903 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
31906 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
31907 Bruno Haible <bruno@clisp.org>
31909 * modules/tmpfile: New file.
31910 * lib/tmpfile.c: New file.
31911 * m4/tmpfile.m4: New file.
31912 * MODULES.html.sh (func_all_modules): New section "Input/output".
31914 2007-02-15 Bruno Haible <bruno@clisp.org>
31916 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
31917 (supports_delete_on_close): New function.
31918 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
31920 2007-02-14 Bruno Haible <bruno@clisp.org>
31922 * modules/mbspcasecmp-tests: New file.
31923 * tests/test-mbspcasecmp.sh: New file.
31924 * tests/test-mbspcasecmp.c: New file.
31926 New module mbspcasecmp.
31927 * modules/mbspcasecmp: New file.
31928 * lib/mbspcasecmp.c: New file.
31929 * lib/string_.h (strncasecmp): Change warning message.
31930 (mbspcasecmp): New declaration.
31931 * m4/mbspcasecmp.m4: New file.
31932 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
31933 GNULIB_MBSPCASECMP.
31934 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
31935 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
31937 2007-02-14 Bruno Haible <bruno@clisp.org>
31939 * modules/mbsncasecmp-tests: New file.
31940 * tests/test-mbsncasecmp.sh: New file.
31941 * tests/test-mbsncasecmp.c: New file.
31943 New module mbsncasecmp.
31944 * modules/mbsncasecmp: New file.
31945 * lib/mbsncasecmp.c: New file.
31946 * lib/string_.h (mbsncasecmp): New declaration.
31947 * m4/mbsncasecmp.m4: New file.
31948 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
31949 GNULIB_MBSNCASECMP.
31950 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
31951 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
31953 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
31955 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
31956 Verify that it doesn't overlap with our flags.
31957 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
31958 do not have the desired effect in multibyte locales; instead, use
31960 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
31961 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
31962 we don't require GNU fnmatch ourselves (if our users require it, they
31963 should do so explicitly).
31965 Fix regex code so it doesn't rely on strcasecmp.
31966 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
31967 Otherwise, include gnulib's langinfo.h.
31968 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
31969 undesirable behavior in non-C locales. Instead, rely on localecharset.
31970 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
31971 * modules/regex (FILES): Remove m4/codeset.m4.
31972 (Depends-on): Add localcharset. Remove strcase.
31974 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31976 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
31977 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
31979 2007-02-13 Bruno Haible <bruno@clisp.org>
31981 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
31982 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31984 2007-02-12 Bruno Haible <bruno@clisp.org>
31986 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
31987 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
31988 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
31989 time warning rather than a link error.
31991 2007-02-12 Bruno Haible <bruno@clisp.org>
31993 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
31994 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
31995 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31997 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
31999 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
32002 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
32004 New module 'time', so that apps can include <time.h> as per
32005 POSIX and GNU instead of separate include files like time_r.h
32006 and timegm.h. This implementation tries out a simpler approach
32007 for replacing decls in standard include files (as compared to
32008 the string module), somewhat as an experiment.
32010 * config/srclist.txt: Comment out mktime.c for now.
32011 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
32012 since it doesn't apply any more. Use generic wording instead.
32013 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
32015 * lib/time_.h, m4/time_h.m4, modules/time: New files.
32016 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
32017 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
32018 Don't include <sys/types.h>; no longer needed since we assume C89.
32019 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
32020 * lib/strftime.c: Likewise.
32021 * lib/time_r.c: Likewise.
32022 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
32023 * lib/nanosleep.c: Include <time.h> first, to check interface.
32024 * lib/strptime.c: Likewise.
32025 * lib/time_r.c: Likewise.
32026 * lib/timegm.c: Likewise.
32027 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
32029 * lib/timegm.c: Don't include timegm.h; no longer needed.
32030 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
32031 time.h now handles any problems in that area.
32032 (struct timespec, nanosleep): Remove; time.h now arranges for these.
32033 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
32034 that time.h defines struct timespec.
32035 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
32036 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
32038 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
32039 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
32040 needed. Set REPLACE_LOCALTIME.
32041 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
32042 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
32043 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
32044 nanosleep; time_h.m4 now does that. Don't require
32045 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
32046 module handles this now.
32047 * modules/getdate (Depends-on): Remove timespec. Add time.
32048 * modules/nanosleep (Depends-on): Likewise.
32049 * modules/stat-time (Depends-on): Likewise.
32050 * modules/nanosleep (Include): Include time.h, not timespec.h.
32051 * modules/strptime (Files): Remove lib/strptime.h.
32052 (Depends-on): Add extensions, time.
32053 (Include): Include time.h, not strptime.h.
32054 * modules/time_r (Files): Remove lib/time_r.h.
32055 (Depends-on): Add time.
32056 (Include): Include time.h, not time_r.h.
32057 * modules/timegm: Likewise.
32058 * modules/timespec (Description): Now does timespec-related decls
32059 of our own, instead of struct timespec itself.
32060 (Depends-on): Add time; remove extensions.
32061 (Maintainer): Add self.
32062 * modules/utimecmp (Depends-on): Add time; remove timespec.
32063 * modules/utimens (Depends-on): Likewise.
32064 * modules/xnanosleep (Depends-on): Likewise.
32066 2007-02-11 Bruno Haible <bruno@clisp.org>
32068 * lib/c-strstr.c: Include allocsa.h.
32069 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
32070 * lib/c-strcasestr.c: Include allocsa.h.
32071 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
32072 * lib/strcasestr.c: Include allocsa.h.
32073 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
32074 * lib/mbsstr.c: Include allocsa.h.
32075 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
32076 allocsa/freesa instead of malloc/free.
32077 * lib/mbscasestr.c: Include allocsa.h.
32078 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
32079 allocsa/freesa instead of malloc/free.
32080 * modules/c-strstr (Depends-on): Add allocsa.
32081 * modules/c-strcasestr (Depends-on): Likewise.
32082 * modules/strcasestr (Depends-on): Likewise.
32083 * modules/mbsstr (Depends-on): Likewise.
32084 * modules/mbscasestr (Depends-on): Likewise.
32086 2007-02-11 Bruno Haible <bruno@clisp.org>
32088 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
32090 * modules/mbsspn-tests: New file.
32091 * tests/test-mbsspn.sh: New file.
32092 * tests/test-mbsspn.c: New file.
32094 2007-02-11 Bruno Haible <bruno@clisp.org>
32096 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
32098 * modules/mbspbrk-tests: New file.
32099 * tests/test-mbspbrk.sh: New file.
32100 * tests/test-mbspbrk.c: New file.
32102 2007-02-11 Bruno Haible <bruno@clisp.org>
32104 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
32107 * modules/mbscspn-tests: New file.
32108 * tests/test-mbscspn.sh: New file.
32109 * tests/test-mbscspn.c: New file.
32111 2007-02-11 Bruno Haible <bruno@clisp.org>
32113 * modules/mbscasecmp-tests: New file.
32114 * tests/test-mbscasecmp.sh: New file.
32115 * tests/test-mbscasecmp.c: New file.
32117 2007-02-11 Bruno Haible <bruno@clisp.org>
32119 Ensure O(n) worst-case complexity of mbscasestr.
32120 * lib/mbscasestr.c: Include stdbool.h.
32121 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
32123 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
32124 the bookkeeping indicates that it's worth it.
32125 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
32127 * modules/mbscasestr-tests: New file.
32128 * tests/test-mbscasestr1.c: New file.
32129 * tests/test-mbscasestr2.sh: New file.
32130 * tests/test-mbscasestr2.c: New file.
32131 * tests/test-mbscasestr3.sh: New file.
32132 * tests/test-mbscasestr3.c: New file.
32133 * tests/test-mbscasestr4.sh: New file.
32134 * tests/test-mbscasestr4.c: New file.
32135 * m4/locale-tr.m4: New file.
32137 2007-02-11 Bruno Haible <bruno@clisp.org>
32139 Ensure O(n) worst-case complexity of mbsstr.
32140 * lib/mbsstr.c: Include stdbool.h.
32141 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
32143 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
32144 bookkeeping indicates that it's worth it.
32145 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
32147 * modules/mbsstr-tests: New file.
32148 * tests/test-mbsstr1.c: New file.
32149 * tests/test-mbsstr2.sh: New file.
32150 * tests/test-mbsstr2.c: New file.
32151 * tests/test-mbsstr3.sh: New file.
32152 * tests/test-mbsstr3.c: New file.
32153 * m4/locale-fr.m4: New file.
32155 2007-02-11 Bruno Haible <bruno@clisp.org>
32157 * lib/mbsrchr.c (mbsrchr): Fix bug.
32159 * modules/mbsrchr-tests: New file.
32160 * tests/test-mbsrchr.sh: New file.
32161 * tests/test-mbsrchr.c: New file.
32163 2007-02-11 Bruno Haible <bruno@clisp.org>
32165 * lib/mbschr.c (mbschr): Fix bug.
32167 * modules/mbschr-tests: New file.
32168 * tests/test-mbschr.sh: New file.
32169 * tests/test-mbschr.c: New file.
32170 * m4/locale-zh.m4: New file.
32172 2007-02-11 Bruno Haible <bruno@clisp.org>
32174 Support for copying multibyte string iterators.
32175 * lib/mbiter.h: Include <string.h>.
32176 (mbiter_multi_copy): New function.
32177 (mbi_copy): New macro.
32178 * lib/mbuiter.h: Include <string.h>.
32179 (mbuiter_multi_copy): New function.
32180 (mbui_copy): New macro.
32182 2007-02-11 Bruno Haible <bruno@clisp.org>
32185 * modules/mbslen: New file.
32186 * lib/mbslen.c: New file.
32187 * lib/string_.h (mbslen): New declaration.
32188 * m4/mbslen.m4: New file.
32189 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32191 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
32192 * MODULES.html.sh (Internationalization functions): Add mbslen.
32194 2007-02-11 Bruno Haible <bruno@clisp.org>
32196 Ensure O(n) worst-case complexity of strcasestr substitute.
32197 * lib/strcasestr.c: Include stdbool.h.
32198 (knuth_morris_pratt): New function.
32199 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
32200 bookkeeping indicates that it's worth it.
32201 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
32203 * modules/strcasestr-tests: New file.
32204 * tests/test-strcasestr.c: New file.
32206 2007-02-11 Bruno Haible <bruno@clisp.org>
32208 Ensure O(n) worst-case complexity of c_strcasestr.
32209 * lib/c-strcasestr.c: Include stdbool.h, string.h.
32210 (knuth_morris_pratt): New function.
32211 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
32212 the bookkeeping indicates that it's worth it.
32213 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
32215 * modules/c-strcasestr-tests: New file.
32216 * tests/test-c-strcasestr.c: New file.
32218 2007-02-11 Bruno Haible <bruno@clisp.org>
32220 Ensure O(n) worst-case complexity of c_strstr.
32221 * lib/c-strstr.c: Include stdbool.h, string.h.
32222 (knuth_morris_pratt): New function.
32223 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
32224 bookkeeping indicates that it's worth it.
32225 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
32227 * lib/c-strstr.c: Complete rewrite for maintainability.
32229 * modules/c-strstr-tests: New file.
32230 * tests/test-c-strstr.c: New file.
32232 2007-02-11 Bruno Haible <bruno@clisp.org>
32234 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
32235 5.2.1 and earlier, whereby \055 was treated just like the range
32237 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32239 2007-02-08 Bruno Haible <bruno@clisp.org>
32241 * modules/regex (Depends-on): Add stdbool.
32242 Reported by Dalibor Topic <robilad@kaffe.org>.
32244 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
32246 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
32247 Prefer returning from main to exiting from it.
32248 Remove unnecessary parens after sizeof.
32250 2007-02-05 Bruno Haible <bruno@clisp.org>
32253 * modules/mbssep: New file.
32254 * lib/mbssep.c: New file.
32255 * lib/string_.h (strsep): Add a conditional link warning.
32256 (mbssep): New declaration.
32257 * m4/mbssep.m4: New file.
32258 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32260 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
32261 * MODULES.html.sh (Internationalization functions): Add mbssep.
32263 2007-02-05 Bruno Haible <bruno@clisp.org>
32265 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
32266 Optimize search in case of 1 delimiter.
32268 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
32270 * lib/acl.h: Include sys/types.h before sys/acl.h.
32272 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
32274 Merge upstream fix for glibc bugzilla #3957:
32276 2007-02-05 Jakub Jelinek <jakub@redhat.com>
32278 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
32279 bit for RE_HAT_LISTS_NOT_NEWLINE.
32280 (build_charclass_op): Remove bogus comment.
32282 2007-02-05 Simon Josefsson <simon@josefsson.org>
32284 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
32286 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
32288 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
32289 * lib/memmem.c [!defined _LIBC]: Include config.h.
32291 2007-02-04 Bruno Haible <bruno@clisp.org>
32293 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
32296 2007-02-04 Bruno Haible <bruno@clisp.org>
32298 New module mbstok_r.
32299 * modules/mbstok_r: New file.
32300 * lib/mbstok_r.c: New file.
32301 * lib/string_.h (strtok_r): Change argument names to match the
32302 comments. Add a conditional link warning.
32303 (mbstok_r): New declaration.
32304 * m4/mbstok_r.m4: New file.
32305 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32307 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
32308 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
32310 2007-02-04 Bruno Haible <bruno@clisp.org>
32313 * modules/mbsspn: New file.
32314 * lib/mbsspn.c: New file.
32315 * lib/string_.h (strspn): Add a conditional link warning.
32316 (mbsspn): New declaration.
32317 * m4/mbsspn.m4: New file.
32318 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32320 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
32321 * MODULES.html.sh (Internationalization functions): Add mbsspn.
32323 2007-02-04 Bruno Haible <bruno@clisp.org>
32325 New module mbspbrk.
32326 * modules/mbspbrk: New file.
32327 * lib/mbspbrk.c: New file.
32328 * lib/string_.h (strpbrk): Add a conditional link warning.
32329 (mbspbrk): New declaration.
32330 * m4/mbspbrk.m4: New file.
32331 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32333 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
32334 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
32336 2007-02-04 Bruno Haible <bruno@clisp.org>
32338 New module mbscspn.
32339 * modules/mbscspn: New file.
32340 * lib/mbscspn.c: New file.
32341 * lib/string_.h (strcspn): Add a conditional link warning.
32342 (mbscspn): New declaration.
32343 * m4/mbscspn.m4: New file.
32344 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32346 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
32347 * MODULES.html.sh (Internationalization functions): Add mbscspn.
32349 2007-02-04 Bruno Haible <bruno@clisp.org>
32351 New module mbscasestr, reduced goal of strcasestr.
32352 * modules/mbscasestr: New file.
32353 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
32354 (mbscasestr): Renamed from strcasestr.
32355 * lib/strcasestr.c: Don't include mbuiter.h.
32356 (strcasestr): Remove support for multibyte locales.
32357 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
32358 Change the conditional link warning.
32359 (mbscasestr): New declaration.
32360 * m4/mbscasestr.m4: New file.
32361 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
32362 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
32363 REPLACE_STRCASESTR.
32364 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
32365 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32366 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
32367 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
32368 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
32369 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
32370 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
32371 (Depends-on): Remove mbuiter.
32372 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
32374 2007-02-04 Bruno Haible <bruno@clisp.org>
32376 Simplify handling of strncasecmp.
32377 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
32378 the conditional link warning.
32379 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32380 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
32381 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
32382 * modules/strcase (configure.ac): Don't invoke
32383 gl_STRING_MODULE_INDICATOR.
32384 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
32386 2007-02-04 Bruno Haible <bruno@clisp.org>
32388 New module mbscasecmp, reduced goal of strcasecmp.
32389 * modules/mbscasecmp: New file.
32390 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
32391 (mbscasecmp): Renamed from strcasecmp.
32392 * lib/strcasecmp.c: Don't include mbuiter.h.
32393 (strcasecmp): Remove support for multibyte locales.
32394 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
32395 Change the conditional link warning.
32396 (mbscasecmp): New declaration.
32397 * m4/mbscasecmp.m4: New file.
32398 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
32399 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
32400 REPLACE_STRCASECMP.
32401 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
32402 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32404 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
32405 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
32406 * modules/strcase (Files): Remove m4/mbrtowc.m4.
32407 (Depends-on): Remove mbuiter.
32408 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
32410 2007-02-04 Bruno Haible <bruno@clisp.org>
32412 New module mbsstr. Remove module strstr.
32413 * modules/mbsstr: New file.
32414 * modules/strstr: Remove file.
32415 * lib/mbsstr.c: Renamed from lib/strstr.c.
32416 (mbsstr): Renamed from strstr.
32417 * lib/string_.h (strstr): Remove declaration. Change the conditional
32419 (mbsstr): New declaration.
32420 * m4/mbsstr.m4: New file.
32421 * m4/strstr.m4: Remove file.
32422 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
32424 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
32425 Don't initialize GNULIB_STRSTR.
32426 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
32427 substitute GNULIB_STRSTR and REPLACE_STRSTR.
32428 * MODULES.html.sh (Internationalization functions): Add mbsstr.
32429 (Support for systems lacking ANSI C 89): Remove strstr.
32431 2007-02-04 Bruno Haible <bruno@clisp.org>
32433 New module mbsrchr.
32434 * modules/mbsrchr: New file.
32435 * lib/mbsrchr.c: New file.
32436 * lib/string_.h (strrchr): Add a conditional link warning.
32437 (mbsrchr): New declaration.
32438 * m4/mbsrchr.m4: New file.
32439 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32441 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
32442 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
32444 2007-02-04 Bruno Haible <bruno@clisp.org>
32447 * modules/mbschr: New file.
32448 * lib/mbschr.c: New file.
32449 * lib/string_.h (strchr): Add a conditional link warning.
32450 (mbschr): New declaration.
32451 * m4/mbschr.m4: New file.
32452 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32454 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
32455 * MODULES.html.sh (Internationalization functions): Add mbschr.
32457 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
32459 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
32461 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
32463 2007-02-04 Bruno Haible <bruno@clisp.org>
32465 New module description section 'configure.ac-early'.
32466 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
32467 (func_get_autoconf_early_snippet): New function.
32468 (func_import, func_create_testdir): Use it. Remove special cases for
32469 modules 'extensions' and 'lock'.
32470 * modules/extensions (configure.ac-early): Require
32471 gl_USE_SYSTEM_EXTENSIONS.
32472 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
32474 2007-02-04 Bruno Haible <bruno@clisp.org>
32476 Make use of gcj-4.3's -fsource and -ftarget option.
32477 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
32478 and if so try the options -fsource and -ftarget.
32479 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
32480 source_version, ftarget_option, target_version arguments.
32481 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
32482 (is_envjavac_oldgcj_14_14_usable): Renamed from
32483 is_envjavac_gcj_14_14_usable.
32484 (is_envjavac_oldgcj_14_13_usable): Renamed from
32485 is_envjavac_gcj_14_13_usable.
32486 (is_gcj_present): Update.
32487 (is_gcj_43, is_gcj43_usable): New functions.
32488 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
32489 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
32490 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
32491 try the options -fsource and -ftarget.
32493 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
32495 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
32496 checking code. Set N = ceil (1.5 * N) rather than to a slightly
32499 2007-02-03 Jim Meyering <jim@meyering.net>
32501 Give tools a better chance to allocate space for very large buffers.
32502 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
32504 Make pwd and readlink work also when run with an unreadable parent dir
32505 on systems with openat support.
32506 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
32507 provided getcwd function, even when we have openat support.
32508 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
32510 2007-02-02 Bruno Haible <bruno@clisp.org>
32512 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
32513 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
32514 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
32515 portability problems if one of these functions is only used on specific
32517 Reported by Paul Eggert.
32519 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
32521 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
32522 is causing more trouble than it's curing.
32523 * lib/regex_internal.h (__mempcpy): Remove.
32524 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
32525 (and make the code a tad smaller to boot).
32526 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
32528 2007-02-02 Jim Meyering <jim@meyering.net>
32530 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
32531 section, not in the Makefile.am: one.
32533 2007-02-02 Eric Blake <ebb9@byu.net>
32535 * lib/strchrnul.c: Always include config.h first.
32537 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
32538 gnulib strstr is not necessary here.
32540 2007-02-02 Simon Josefsson <simon@josefsson.org>
32542 * m4/socklen.m4: Fix typo.
32544 2007-02-02 Eric Blake <ebb9@byu.net>
32546 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
32547 * modules/netinet_in (Makefile.am): Likewise.
32549 2007-02-01 Bruno Haible <bruno@clisp.org>
32551 * lib/string_.h (GL_LINK_WARNING): New macro.
32552 (strcasecmp, strstr, strcasestr): If provided by the system,
32553 conditionally define as a macro that leads to a warning instead of to
32555 (strncasecmp): Conditionally define as a macro that leads to a warning.
32557 2007-02-01 Karl Berry <karl@gnu.org>
32559 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
32561 2007-02-01 Bruno Haible <bruno@clisp.org>
32563 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
32566 2007-02-01 Eric Blake <ebb9@byu.net>
32568 * modules/regex (Depends-on): Revert dependence on mempcpy.
32569 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
32570 module's definition of mempcpy.
32571 Reported by Paul Eggert.
32573 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
32575 * lib/string_.h: If the gnulib module XYZ is not present, undefine
32576 the symbol XYZ before redefining it. This fixes a problem with
32577 programs that don't use XYZ, when compiled on systems that define
32578 XYZ to something else.
32580 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
32582 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
32583 occurs when "mkdir -m foo" creates a setgid directory that is (1)
32584 writeable to group or other and (2) is intended to have a special
32585 mode bit that is set or cleared. In such a case, the directory
32586 should be neither group- nor other-writeable until the special
32587 mode bits are right.
32589 2007-01-31 Eric Blake <ebb9@byu.net>
32591 * modules/mountlist (Depends-on): Add strstr.
32593 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
32595 * modules/string (Makefile.am): Remove redundant replacement.
32596 * modules/regex (Depends-on): Add mempcpy.
32598 2007-01-31 Bruno Haible <bruno@clisp.org>
32600 New module description field 'Link'.
32601 * gnulib-tool (func_usage): Document --extract-link-directive.
32602 (sed_extract_prog): Recognize 'Link' directive.
32603 (func_get_link_directive): New function.
32604 (func_import): Show summary of link directives.
32605 Handle --extract-link-directive option.
32606 * modules/acl (Link): New section.
32607 * modules/clock-time (Link): New section.
32608 * modules/euidaccess (Link): New section.
32609 * modules/gettext (Link): New section.
32610 * modules/iconv (Link): New section.
32611 * modules/lock (Link): New section.
32612 * modules/nanosleep (Link): New section.
32613 * modules/readline (Link): New section.
32615 2007-01-27 Bruno Haible <bruno@clisp.org>
32617 Enforce the use of gnulib modules for unportable <string.h> functions.
32618 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
32619 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
32620 (gl_HEADER_STRING_H_BODY): Require it.
32621 * lib/string_.h: If the gnulib module XYZ is not present, redefine
32622 the symbol XYZ to one that gives a link error.
32623 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
32624 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
32625 * modules/mempcpy (configure.ac): Likewise.
32626 * modules/memrchr (configure.ac): Likewise.
32627 * modules/stpcpy (configure.ac): Likewise.
32628 * modules/stpncpy (configure.ac): Likewise.
32629 * modules/strcase (configure.ac): Likewise.
32630 * modules/strcasestr (configure.ac): Likewise.
32631 * modules/strchrnul (configure.ac): Likewise.
32632 * modules/strdup (configure.ac): Likewise.
32633 * modules/strndup (configure.ac): Likewise.
32634 * modules/strnlen (configure.ac): Likewise.
32635 * modules/strpbrk (configure.ac): Likewise.
32636 * modules/strsep (configure.ac): Likewise.
32637 * modules/strstr (configure.ac): Likewise.
32638 * modules/strtok_r (configure.ac): Likewise.
32640 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
32642 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
32644 2007-01-30 Jim Meyering <jim@meyering.net>
32646 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
32648 2007-01-29 Bruno Haible <bruno@clisp.org>
32650 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
32651 * lib/execute.c: Likewise.
32652 * lib/pipe.c: Likewise.
32653 * lib/printf-args.h: Likewise.
32654 * lib/printf-args.c: Likewise.
32655 * lib/printf-parse.c: Likewise.
32656 * lib/vasnprintf.c: Likewise.
32658 2007-01-29 Eric Blake <ebb9@byu.net>
32660 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
32663 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
32665 * lib/strptime.h (strptime): Use 'restrict' for args where
32666 POSIX requires this.
32667 * lib/strptime.c (strptime): Likewise.
32668 Change license notice from LGPL to GPL, since gnulib-tool will
32669 change this as needed.
32670 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
32672 Include "strptime.h" first, to check interface.
32673 Do not #undef _LIBC and _NL_CURRENT.
32674 Do not include <stdlib.h>; no longer needed.
32675 Include "time_r.h" and declare ptime_locale_status
32676 only if _LIBC is not defined.
32677 (__P): Remove unused macro.
32678 (match_string): Bring back glibc version, but use it only if _LIBC
32680 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
32681 Remove unnecessary assertion and abort() call.
32682 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
32683 * m4/strptime.m4: Fix serial number comment.
32684 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
32685 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
32686 (Depends-on): Add time_r.
32688 2007-01-29 Bruno Haible <bruno@clisp.org>
32690 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32692 * modules/strptime (Depends-on): Add stdbool.
32693 * lib/strptime.h: Include <time.h> always. Add comments.
32695 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
32697 * modules/strptime: New file.
32698 * lib/strptime.h: New file.
32699 * lib/strptime.c: New file.
32700 * m4/strptime.m4: New file.
32702 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
32704 * MODULES.html.sh: New module mpsort.
32705 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
32707 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
32708 a circularity problem with HP-UX ia64 reported by Bob Proulx in
32709 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
32711 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
32713 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
32715 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
32716 the parameter matches the prototype.
32718 2007-01-28 Jim Meyering <jim@meyering.net>
32720 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
32721 sys/time.h here, reverting that part of the previous patch:
32722 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
32724 2007-01-28 Bruno Haible <bruno@clisp.org>
32726 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
32727 value of $(SYS_TIME_H).
32728 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
32729 remove it conditionally, too. [added by Jim Meyering]
32730 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
32731 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
32732 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
32733 GETTIMEOFDAY_REPLACEMENT to 1.
32735 2007-01-28 Bruno Haible <bruno@clisp.org>
32737 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
32738 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
32739 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
32740 Set UNISTD_H instead of UNISTD_H2.
32741 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
32743 2007-01-28 Bruno Haible <bruno@clisp.org>
32745 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
32746 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
32748 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32750 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
32751 (func_create_testdir): Ensure C locale for `grep' and `tr'
32753 (func_create_megatestdir): Avoid one `grep'. Fix bug in
32754 ACLOCAL_AMFLAGS parsing state machine.
32756 2007-01-27 Bruno Haible <bruno@clisp.org>
32758 * modules/unistr/base: Update.
32760 2007-01-27 Bruno Haible <bruno@clisp.org>
32762 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
32763 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
32764 * modules/unistr/u32-mbtouc-unsafe: Renamed from
32765 modules/unistr/u32-mbtouc.
32766 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
32767 * lib/unistr.h: Update.
32768 * lib/linebreak.c: Update.
32769 * modules/unistr/u32-mbtouc: Renamed from
32770 modules/unistr/u32-mbtouc-safe.
32771 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
32772 * lib/unistr.h: Update.
32773 * lib/unistr/u32-to-u8.c: Update.
32774 * lib/unistr/u32-to-u16.c: Update.
32776 2007-01-27 Bruno Haible <bruno@clisp.org>
32778 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
32779 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
32780 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
32781 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
32782 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
32783 * modules/unistr/u16-mbtouc-unsafe: Renamed from
32784 modules/unistr/u16-mbtouc.
32785 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
32786 * lib/unistr.h: Update.
32787 * lib/linebreak.c: Update.
32788 * modules/linebreak: Update.
32789 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
32790 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
32791 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
32792 * modules/unistr/u16-mbtouc: Renamed from
32793 modules/unistr/u16-mbtouc-safe.
32794 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
32795 * lib/unistr.h: Update.
32796 * lib/unistr/u16-to-u8.c: Update.
32797 * modules/unistr/u16-to-u8: Update.
32798 * lib/unistr/u16-to-u32.c: Update.
32799 * modules/unistr/u16-to-u32: Update.
32801 2007-01-27 Bruno Haible <bruno@clisp.org>
32803 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
32804 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
32805 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
32806 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
32807 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
32808 * modules/unistr/u8-mbtouc-unsafe: Renamed from
32809 modules/unistr/u8-mbtouc.
32810 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
32811 * lib/unistr.h: Update.
32812 * lib/striconveh.c: Update.
32813 * modules/striconveh: Update.
32814 * lib/linebreak.c: Update.
32815 * modules/linebreak: Update.
32816 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
32817 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
32818 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
32819 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
32820 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
32821 * lib/unistr.h: Update.
32822 * lib/striconveh.c: Update.
32823 * modules/striconveh: Update.
32824 * lib/unistr/u8-to-u16.c: Update.
32825 * modules/unistr/u8-to-u16: Update.
32826 * lib/unistr/u8-to-u32.c: Update.
32827 * modules/unistr/u8-to-u32: Update.
32829 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32832 * lib/argz.c: Do not include strings.h nor memory.h, include
32833 string.h unconditionally. Patch by Simon Josefsson.
32835 2007-01-27 Bruno Haible <bruno@clisp.org>
32837 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
32838 from gl_HEADER_STRING_H_BODY.
32839 (gl_HEADER_STRING_H_BODY): Require it.
32840 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
32841 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
32842 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
32843 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
32844 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32845 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
32846 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32847 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
32848 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
32849 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32850 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
32851 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
32852 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
32853 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32854 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
32856 2007-01-27 Bruno Haible <bruno@clisp.org>
32858 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
32859 check_PROGRAMS into noinst_PROGRAMS.
32860 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
32861 check_PROGRAMS in this case.
32862 (func_import): Set for_test to false.
32863 (func_create_testdir): Set for_test to true.
32865 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
32866 Bruno Haible <bruno@clisp.org>
32868 * modules/strcasestr (Files): Remove lib/strcasestr.h.
32869 (Depends-on): Add string.
32870 (Includes): Use <string.h> instead of strcasestr.h.
32871 * modules/string (Makefile.am): Also substitute the value of
32872 REPLACE_STRCASESTR.
32873 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
32874 assume strcasestr is declared in <string.h> not <strings.h>. Also
32875 set REPLACE_STRCASESTR.
32876 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
32877 REPLACE_STRCASESTR.
32878 * lib/strcasestr.h: Remove file.
32879 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
32880 * lib/string_.h (strcasestr): New declaration.
32882 2007-01-27 Bruno Haible <bruno@clisp.org>
32884 * lib/string_.h: Use 'extern'.
32886 2007-01-27 Jim Meyering <jim@meyering.net>
32888 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
32889 of set-but-not-used local, "q".
32891 * lib/mempcpy.c: Include <config.h> before <string.h>.
32892 This fixes a compilation error on HP-UX, due to the system's
32893 "restrict"-using mempcpy prototype.
32895 2007-01-26 Bruno Haible <bruno@clisp.org>
32897 Small optimization.
32898 * lib/javacomp.c: Include c-strstr.h.
32899 (is_envjavac_gcj): Use c_strstr instead of strstr.
32900 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
32902 2007-01-26 Bruno Haible <bruno@clisp.org>
32904 * MODULES.html.sh (Unicode string functions): Add the new modules.
32906 * modules/uniconv/u32-strconv-to-locale: New file.
32907 * lib/uniconv/u32-strconv-to-locale.c: New file.
32909 * modules/uniconv/u16-strconv-to-locale: New file.
32910 * lib/uniconv/u16-strconv-to-locale.c: New file.
32912 * modules/uniconv/u8-strconv-to-locale: New file.
32913 * lib/uniconv/u8-strconv-to-locale.c: New file.
32915 * modules/uniconv/u32-strconv-from-locale: New file.
32916 * lib/uniconv/u32-strconv-from-locale.c: New file.
32918 * modules/uniconv/u16-strconv-from-locale: New file.
32919 * lib/uniconv/u16-strconv-from-locale.c: New file.
32921 * modules/uniconv/u8-strconv-from-locale: New file.
32922 * lib/uniconv/u8-strconv-from-locale.c: New file.
32924 * modules/uniconv/u32-strconv-to-enc: New file.
32925 * lib/uniconv/u32-strconv-to-enc.c: New file.
32926 * modules/uniconv/u32-strconv-to-enc-tests: New file.
32927 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
32929 * modules/uniconv/u16-strconv-to-enc: New file.
32930 * lib/uniconv/u16-strconv-to-enc.c: New file.
32931 * lib/uniconv/u-strconv-to-enc.h: New file.
32932 * modules/uniconv/u16-strconv-to-enc-tests: New file.
32933 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
32935 * modules/uniconv/u8-strconv-to-enc: New file.
32936 * lib/uniconv/u8-strconv-to-enc.c: New file.
32937 * modules/uniconv/u8-strconv-to-enc-tests: New file.
32938 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
32940 * modules/uniconv/u32-strconv-from-enc: New file.
32941 * lib/uniconv/u32-strconv-from-enc.c: New file.
32942 * modules/uniconv/u32-strconv-from-enc-tests: New file.
32943 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
32945 * modules/uniconv/u16-strconv-from-enc: New file.
32946 * lib/uniconv/u16-strconv-from-enc.c: New file.
32947 * modules/uniconv/u16-strconv-from-enc-tests: New file.
32948 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
32950 * modules/uniconv/u8-strconv-from-enc: New file.
32951 * lib/uniconv/u8-strconv-from-enc.c: New file.
32952 * lib/uniconv/u-strconv-from-enc.h: New file.
32953 * modules/uniconv/u8-strconv-from-enc-tests: New file.
32954 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
32956 * modules/uniconv/u32-conv-from-enc: New file.
32957 * lib/uniconv/u32-conv-from-enc.c: New file.
32958 * modules/uniconv/u32-conv-from-enc-tests: New file.
32959 * tests/uniconv/test-u32-conv-from-enc.c: New file.
32961 * modules/uniconv/u16-conv-from-enc: New file.
32962 * lib/uniconv/u16-conv-from-enc.c: New file.
32963 * lib/uniconv/u-conv-from-enc.h: New file.
32964 * modules/uniconv/u16-conv-from-enc-tests: New file.
32965 * tests/uniconv/test-u16-conv-from-enc.c: New file.
32967 * modules/uniconv/u8-conv-from-enc: New file.
32968 * lib/uniconv/u8-conv-from-enc.c: New file.
32969 * modules/uniconv/u8-conv-from-enc-tests: New file.
32970 * tests/uniconv/test-u8-conv-from-enc.c: New file.
32972 * modules/uniconv/base: New file.
32973 * lib/uniconv.h: New file.
32975 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
32977 * doc/gnulib-tool.texi (Initial import): Update to match current
32978 behavior with strdup module.
32979 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
32980 * lib/memmem.h: Remove; all uses removed. This is now done
32982 * lib/mempcpy.h: Likewise.
32983 * lib/memrchr.h: Likewise.
32984 * lib/stpcpy.h: Likewise.
32985 * lib/stpncpy.h: Likewise.
32986 * lib/strcase.h: Likewise.
32987 * lib/strchrnul.h: Likewise.
32988 * lib/strdup.h: Likewise.
32989 * lib/strndup.h: Likewise.
32990 * lib/strnlen.h: Likewise.
32991 * lib/strpbrk.h: Likewise.
32992 * lib/strsep.h: Likewise.
32993 * lib/strstr.h: Likewise.
32994 * lib/strtok_r.h: Likewise.
32995 * lib/string_.h: New file.
32996 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
32997 Rely on <string.h> instead.
32998 * lib/canon-host.c: Likewise.
32999 * lib/chdir-long.c: Likewise.
33000 * lib/concatpath.c: Likewise.
33001 * lib/exclude.c: Likewise.
33002 * lib/fchdir.c: Likewise.
33003 * lib/getaddrinfo.c: Likewise.
33004 * lib/getcwd.c: Likewise.
33005 * lib/getsubopt.c: Likewise.
33006 * lib/glob.c: Likewise.
33007 * lib/hard-locale.c: Likewise.
33008 * lib/iconvme.c: Likewise.
33009 * lib/javacomp.c: Likewise.
33010 * lib/mempcpy.c: Likewise.
33011 * lib/memrchr.c: Likewise.
33012 * lib/regex_internal.h: Likewise.
33013 * lib/stpncpy.c: Likewise.
33014 * lib/strcasecmp.c: Likewise.
33015 * lib/strchrnul.c: Likewise.
33016 * lib/strdup.c: Likewise.
33017 * lib/striconv.c: Likewise.
33018 * lib/striconveh.c: Likewise.
33019 * lib/striconveha.c: Likewise.
33020 * lib/strncasecmp.c: Likewise.
33021 * lib/strndup.c: Likewise.
33022 * lib/strnlen.c: Likewise.
33023 * lib/strsep.c: Likewise.
33024 * lib/strstr.c: Likewise.
33025 * lib/strtok_r.c: Likewise.
33026 * lib/userspec.c: Likewise.
33027 * lib/w32spawn.h: Likewise.
33028 * lib/xstrndup.c: Likewise.
33029 * lib/mountlist.c (strstr): Remove decl.
33030 * m4/string_h.m4: New file.
33031 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
33032 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
33033 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
33034 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
33035 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
33036 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
33037 Set REPLACE_STRCASECMP if necessary.
33038 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
33039 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
33040 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
33041 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
33042 HAVE_DECL_STRDUP if necessary.
33043 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
33044 since gl_FUNC_STRNDUP does that now.
33045 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
33046 Check for decl here...
33047 (gl_PREREQ_STRNLEN): ... not here.
33048 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
33049 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
33050 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
33051 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
33053 * modules/string: New file.
33054 * modules/memmem (Files): Remove special-purpose include file.
33055 (Depends-on): Add string.
33056 (Include): Include <string.h>, not the removed file.
33057 * modules/mempcpy: Likewise.
33058 * modules/memrchr: Likewise.
33059 * modules/stpcpy: Likewise.
33060 * modules/stpncpy: Likewise.
33061 * modules/strcase: Likewise.
33062 * modules/strchrnul: Likewise.
33063 * modules/strdup: Likewise.
33064 * modules/strndup: Likewise.
33065 * modules/strnlen: Likewise.
33066 * modules/strpbrk: Likewise.
33067 * modules/strsep: Likewise.
33068 * modules/strstr: Likewise.
33069 * modules/strtok_r: Likewise.
33070 * tests/test-dirname.c: Don't include "strdup.h", since
33071 <string.h> now suffices.
33072 * tests/test-memmem.c: Don't include "memmem.h", since
33073 <string.h> now suffices.
33075 2007-01-25 Bruno Haible <bruno@clisp.org>
33077 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
33080 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
33081 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
33082 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
33083 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
33085 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
33086 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
33087 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
33088 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
33089 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
33090 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
33092 2007-01-24 Bruno Haible <bruno@clisp.org>
33094 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
33095 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
33096 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
33097 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
33099 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
33100 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
33101 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
33102 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
33103 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
33104 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
33106 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
33108 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
33109 Reported by Ralf Wildenhues.
33111 2007-01-24 Bruno Haible <bruno@clisp.org>
33113 Drop AC_REQUIRE calls that are redundant with the module dependencies.
33114 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
33116 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
33117 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
33118 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
33120 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
33122 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
33123 Don't use 'exit'; just return from 'main'.
33124 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
33126 * lib/fnmatch_.h: Readjust white space and comments to match
33127 glibc, to avoid spurious diffs.
33129 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
33131 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
33132 2004-12-01 change by Jakub Jelinek, since this code won't compile
33133 if !LIBC. Problem reported by Bob Proulx.
33135 2007-01-23 Bruno Haible <bruno@clisp.org>
33137 * lib/striconveh.c: Include c-strcaseeq.h.
33138 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
33139 * modules/striconveh (Depends-on): Add c-strcaseeq.
33141 2007-01-23 Bruno Haible <bruno@clisp.org>
33143 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
33145 * modules/c-strcaseeq: New file.
33146 * lib/c-strcaseeq.h: New file.
33148 * modules/streq: New file.
33149 * lib/streq.h: New file.
33151 2007-01-23 Bruno Haible <bruno@clisp.org>
33153 * modules/striconveha-tests: New file.
33154 * tests/test-striconveha.c: New file.
33156 * lib/striconveha.h: Include <stdbool.h>.
33157 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
33158 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
33159 (mem_iconveha_notranslit): Renamed from mem_iconveha.
33160 (mem_iconveha): New function.
33161 (str_iconveha_notranslit): Renamed from str_iconveha.
33162 (str_iconveha): New function.
33163 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
33166 2007-01-23 Bruno Haible <bruno@clisp.org>
33168 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
33169 encodings without forgiving before trying any encoding with handler.
33170 (str_iconveha): Try all encodings without forgiving before trying any
33171 encoding with handler.
33173 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
33175 Import the following changes from libc.
33177 2005-10-14 Ulrich Drepper <drepper@redhat.com>
33179 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
33181 2004-12-01 Jakub Jelinek <jakub@redhat.com>
33183 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
33184 normal_bracket label.
33186 2004-09-01 Jakub Jelinek <jakub@redhat.com>
33189 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
33190 to normal_bracket after fetching the next character.
33192 2007-01-22 Bruno Haible <bruno@clisp.org>
33194 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
33196 * lib/striconveh.c (iconv_carefully_1): New function.
33197 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
33199 (str_cd_iconveh): Update.
33200 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
33201 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
33202 * tests/test-striconveh.c (MAGIC): New macro.
33203 (new_offsets): New function.
33204 (main): Test call with and without offsets.
33206 2007-01-22 Bruno Haible <bruno@clisp.org>
33208 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
33209 * modules/sys_select (Makefile.am): Likewise.
33210 * modules/sys_socket (Makefile.am): Likewise.
33211 * modules/sys_time (Makefile.am): Likewise.
33213 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
33215 * modules/gettimeofday (License): Change from GPL to LGPL, since
33216 gettimeofday is a library function.
33218 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
33220 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
33222 2007-01-21 Bruno Haible <bruno@clisp.org>
33224 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
33226 2007-01-21 Bruno Haible <bruno@clisp.org>
33228 * modules/striconveha: New file.
33229 * lib/striconveha.h: New file.
33230 * lib/striconveha.c: New file.
33231 * MODULES.html.sh (Internationalization functions): Add striconveha.
33232 * lib/striconv.c (str_iconv): Optimize the case of an empty input
33234 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
33236 2007-01-21 Bruno Haible <bruno@clisp.org>
33238 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
33239 * lib/striconveh.c (str_iconveh): Likewise.
33241 2007-01-21 Bruno Haible <bruno@clisp.org>
33243 * lib/striconveh.h (mem_iconveh): New declaration.
33244 * lib/striconveh.c (mem_iconveh): New function.
33245 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
33247 2007-01-21 Bruno Haible <bruno@clisp.org>
33249 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
33251 * lib/striconveh.h (mem_cd_iconveh): Change specification.
33252 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
33253 original result buffer.
33254 (str_cd_iconveh): Update.
33255 * tests/test-striconveh.c (main): Update.
33257 * lib/striconv.h (mem_cd_iconv): Change specification.
33258 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
33260 (str_cd_iconv): Update.
33261 * tests/test-striconv.c (main): Update.
33263 2007-01-21 Bruno Haible <bruno@clisp.org>
33265 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
33267 2007-01-20 Jim Meyering <jim@meyering.net>
33269 * lib/userspec.c (parse_with_separator): If a user or group string
33270 starts with "+", skip the corresponding name-to-ID look-up, since
33271 such a look-up must fail: user and group names may not include "+".
33273 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
33275 * lib/poll.c: Include sys/time.h and time.h unconditionally,
33276 since we now assume the sys_time module.
33277 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
33278 check for sys/time.h; no longer needed.
33279 * modules/poll (Depends-on): Depend on sys_time.
33281 2007-01-18 Bruno Haible <bruno@clisp.org>
33283 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
33284 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
33286 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
33289 * tests/test-gettimeofday.c: Include <time.h>.
33290 (dummy): Remove variable.
33292 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
33293 gl_HEADER_SYS_TIME_H.
33294 (gl_HEADER_SYS_TIME_H): New macro.
33296 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
33297 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33298 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
33299 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
33300 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33301 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
33302 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
33303 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33304 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
33305 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
33306 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33308 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
33309 last change; it caused a compilation error when cross-compiling to
33312 2007-01-18 Jim Meyering <jim@meyering.net>
33314 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
33315 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
33316 than the race-prone "test -d sys || mkdir sys".
33317 (configure.ac): Use AC_PROG_MKDIR_P.
33318 * modules/sys_select: Likewise.
33319 * modules/sys_socket: Likewise.
33320 * modules/sys_time: Likewise.
33322 2007-01-18 Eric Blake <ebb9@byu.net>
33324 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
33325 replace gettimeofday.
33326 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
33327 name, to avoid infinite recursion.
33329 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
33331 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
33333 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
33334 assume timespec.h defines struct timeval.
33335 * lib/settime.c: Likewise.
33336 * lib/utimens.c: Likewise.
33337 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
33338 since we now assume the gettimeofday module.
33339 * lib/tempname.c (__gen_tempname): Likewise.
33340 * lib/gettimeofday.h: Remove.
33341 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
33342 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
33343 Include <time.h>, for 'time()'.
33344 (localtime_buffer_addr): Also use this workaround if
33345 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
33346 to simplify the uses. All uses changed.
33347 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
33348 that #undef is inside {}, and 'const' follows type name consistently.
33349 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
33350 (gettimeofday): Do not use the maximum possible value for
33351 tv->tv_usec, since that might break usages other than ls.c.
33352 Instead, we'll leave ls.c alone. This undoes today's patch
33353 by Bruno. Add a compile-time warning for 1s-clock resolution;
33354 we've never observed the problem but might as well keep the
33356 * lib/nanosleep.c: Include timespec.h first, for interface check.
33357 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
33358 now assume the sys_time module.
33359 * lib/tempname.c: Likewise.
33360 * lib/timespec.h: Likewise.
33361 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
33363 * lib/strftime.c: Likewise.
33364 * lib/timespec.h: Likewise.
33365 * lib/posixtm.c: Include posixtm.h first, for interface check.
33366 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
33367 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
33368 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
33369 * lib/sys_time_.h: New file.
33370 * lib/timespec.h (struct timespec): Use long int, not long.
33371 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
33372 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
33373 Remove obsolescent call to AC_HEADER_TIME.
33374 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
33375 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33376 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
33377 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
33379 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
33380 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
33381 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
33382 into the sys_time module. Check for gettimeofday just once.
33383 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
33384 for gettimeofday signature to just check the signature. Merely
33385 compile it, since linking doesn't test signature. Improve test for
33386 whether gettimeofday.o is actually needed.
33387 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
33388 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
33389 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
33390 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33391 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
33392 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
33393 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
33394 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
33395 than worrying about sys/time.h.
33396 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
33397 Don't bother worrying about TIME_WITH_SYS_TIME.
33398 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
33399 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
33400 * m4/sys_time_h.m4: New file.
33401 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
33402 Don't include sys/time.h. Return from main rather than exiting.
33403 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
33405 * modules/gethrxtime (Depends-on): Add sys_time.
33406 * modules/gettime (Depends-on): Likewise.
33407 * modules/gettimeofday (Depends-on): Likewise.
33408 * modules/nanosleep (Depends-on): Likewise.
33409 * modules/settime (Depends-on): Likewise.
33410 * modules/tempname (Depends-on): Likewise.
33411 * modules/utimens (Depends-on): Likewise.
33412 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
33413 (Include:) Change back to <sys/time.h>.
33414 (Maintainer:) Add self.
33415 * modules/sys_time: New file.
33416 * modules/tempname (Depends-on): Add gettimeofday.
33417 * tests/test-gettimeofday.c: Include <sys/time.h>
33418 rather than gettimeofday.h.
33420 2007-01-17 Bruno Haible <bruno@clisp.org>
33422 * gnulib-tool (func_get_license): Revert last patch. Instead, let
33423 the license default to GPL.
33424 (func_create_testdir): Don't complain if a module is LGPL and its
33425 tests module depends on GPLed modules.
33427 2007-01-17 Bruno Haible <bruno@clisp.org>
33429 * lib/gettimeofday.c (gettimeofday): Add code for the case
33430 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
33431 maximum possible value for tv->tv_usec, rather than the minimum one.
33433 2005-10-08 Martin Lambers <marlam@marlam.de>
33434 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
33435 2007-01-16 Bruno Haible <bruno@clisp.org>
33437 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
33438 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
33439 gl_FUNC_GETTIMEOFDAY.
33440 (Include): Add gettimeofday.h.
33441 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
33442 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
33443 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
33444 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
33445 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
33446 * lib/gettimeofday.h: New file.
33447 * lib/gettimeofday.c: Include <sys/timeb.h>.
33448 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
33449 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33450 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
33451 fall back on time().
33453 * tests/test-gettimeofday.c: New file.
33454 * modules/gettimeofday-tests: New file.
33456 2007-01-16 Eric Blake <ebb9@byu.net>
33458 * modules/fnmatch (Depends-on): Depend on wchar.
33459 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
33460 * m4/fnmatch.m4: Likewise.
33461 * modules/mbchar (Makefile.am): Assume <wchar.h>.
33462 * m4/mbchar.m4: Likewise.
33463 * modules/mbswidth (Depends-on): Depend on wchar.
33464 * lib/mbswidth.c: Assume <wchar.h>.
33465 * m4/mbswidth.m4: Likewise.
33466 * modules/quotearg (Depends-on): Depend on wchar.
33467 * lib/quotearg.c: Assume <wchar.h>.
33468 * m4/quotearg.m4: Likewise.
33469 * modules/regex (Depends-on): Depend on wchar.
33470 * lib/regex_internal.h: Assume <wchar.h>.
33471 * m4/regex.m4: Likewise.
33472 * modules/stdint (Depends-on): Depend on wchar.
33473 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
33474 * m4/stdint.m4: Likewise.
33475 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
33476 * modules/strftime (Depends-on): Depend on wchar.
33477 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
33478 * modules/strtol (Depends-on): Depend on wchar.
33479 * lib/strtol.c: Assume <wchar.h>.
33480 * modules/wcwidth (Depends-on): Depend on wchar.
33481 * lib/wcwidth.h: Assume <wchar.h>.
33482 * m4/wcwidth.m4: Likewise.
33484 2007-01-16 Bruno Haible <bruno@clisp.org>
33486 * modules/csharpexec-script: New, created from...
33487 * modules/csharpexec: ... this.
33489 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
33491 * modules/javaexec-script: New, created from...
33492 * modules/javaexec: ... this.
33494 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
33496 * modules/poll (Dependencies): Add sys_select.
33498 2007-01-15 Jim Meyering <jim@meyering.net>
33500 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
33501 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
33502 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
33503 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
33505 2007-01-15 Bruno Haible <bruno@clisp.org>
33507 * modules/striconveh: New file.
33508 * lib/striconveh.h: New file.
33509 * lib/striconveh.c: New file.
33510 * MODULES.html.sh (Internationalization functions): Add striconveh.
33512 * modules/striconveh-tests: New file.
33513 * tests/test-striconveh.c: New file.
33515 2007-01-15 Bruno Haible <bruno@clisp.org>
33517 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
33518 not from GNU libiconv or GNU libc.
33520 2007-01-15 Bruno Haible <bruno@clisp.org>
33522 * doc/gnulib-intro.texi (Copyright): Explain the different license
33523 terms for module descriptions, autoconf macros, tests, documentation.
33525 2007-01-14 Bruno Haible <bruno@clisp.org>
33527 * modules/striconv-tests: New file.
33528 * tests/test-striconv.c: New file.
33530 2007-01-14 Bruno Haible <bruno@clisp.org>
33532 * modules/iconv-tests: New file.
33533 * tests/test-iconv.c: New file.
33535 2007-01-14 Bruno Haible <bruno@clisp.org>
33537 * gnulib-tool (func_get_license): For test modules, use the license of
33540 2007-01-14 Bruno Haible <bruno@clisp.org>
33542 * modules/iconv (Include): Clarify that <iconv.h> can only be included
33543 if iconv is found to exist.
33545 2007-01-14 Bruno Haible <bruno@clisp.org>
33547 * modules/c-ctype-tests: New file.
33548 * tests/test-c-ctype.c: New file.
33550 2007-01-14 Bruno Haible <bruno@clisp.org>
33552 * modules/binary-io-tests: New file.
33553 * tests/test-binary-io.sh: New file.
33554 * tests/test-binary-io.c: New file.
33556 2007-01-14 Bruno Haible <bruno@clisp.org>
33558 * modules/array-oset-tests: New file.
33559 * tests/test-array_oset.c: New file.
33561 2007-01-14 Bruno Haible <bruno@clisp.org>
33563 * modules/array-list-tests: New file.
33564 * tests/test-array_list.c: New file.
33566 2007-01-14 Bruno Haible <bruno@clisp.org>
33568 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
33570 Reported by Simon Josefsson in
33571 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
33573 2007-01-14 Bruno Haible <bruno@clisp.org>
33575 * modules/allocsa-tests: New file.
33576 * tests/test-allocsa.c: New file.
33578 2007-01-14 Bruno Haible <bruno@clisp.org>
33580 * modules/fchdir (Depends-on): Add absolute-header.
33581 * modules/unistd (Depends-on): Likewise.
33583 2006-12-30 Bruno Haible <bruno@clisp.org>
33585 * modules/fchdir: New file.
33586 * modules/unistd (Files): Add lib/unistd_.h.
33587 (Makefile.am): Generate unistd.h from unistd_.h.
33588 * lib/fchdir.c: New file.
33589 * lib/dirent_.h: New file.
33590 * lib/unistd_.h: New file.
33591 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
33592 * m4/fchdir.m4: New file.
33593 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
33594 (gl_HEADER_UNISTD): Invoke it.
33595 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
33597 * lib/backupfile.c (opendir, closedir): Undefine.
33598 * lib/chown.c (open, close): Undefine.
33599 * lib/clean-temp.c (open, close): Undefine.
33600 * lib/copy-file.c (open, close): Undefine.
33601 * lib/execute.c (open, close): Undefine.
33602 * lib/fsusage.c (open, close): Undefine.
33603 * lib/gc-gnulib.c (open, close): Undefine.
33604 * lib/getcwd.c (opendir, closedir): Undefine.
33605 * lib/glob.c (opendir, closedir): Undefine.
33606 * lib/javacomp.c (open, close): Undefine.
33607 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
33608 * lib/openat-proc.c (open, close): Undefine.
33609 * lib/pagealign_alloc.c (open, close): Undefine.
33610 * lib/pipe.c (open, close): Undefine.
33611 * lib/progreloc.c (open, close): Undefine.
33612 * lib/savedir.c (opendir, closedir): Undefine.
33613 * lib/utime.c (open, close): Undefine.
33614 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
33616 2007-01-10 Bruno Haible <bruno@clisp.org>
33618 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
33620 2007-01-12 Eric Blake <ebb9@byu.net>
33622 Provide a robust <wchar.h>. Further simplifications are now
33623 possible in other modules, but not included here.
33624 * modules/wchar: New module.
33625 * m4/wchar.m4: New file.
33626 * lib/wchar_.h: Likewise.
33627 * modules/mbchar (Depends-on): Depend on wchar, as the first use
33629 * MODULES.html.sh (Extended multibyte and wide character utilities):
33632 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
33634 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
33635 to a reasonable default for memory allocation.
33636 (xreadlink): Don't allocate a huge buffer, to work around a buggy
33637 file system that reports garbage st_size values for symlinks.
33638 Problem reported by Liyang Hu.
33640 2007-01-11 Simon Josefsson <simon@josefsson.org>
33642 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
33643 Emacs .#* auto-save files).
33645 2007-01-11 Bruno Haible <bruno@clisp.org>
33647 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
33650 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
33652 Use @...@ consistently in lib/wctype_.h.
33653 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
33654 on it being set to 1 or 0.
33655 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
33656 go back to AC_SUBSTing it.
33657 * modules/wctype (Makefile.am): Undo previous change.
33659 2007-01-10 Eric Blake <ebb9@byu.net>
33661 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
33662 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
33663 * modules/wctype (Makefile.am): Likewise.
33664 Reported by Chris McGuire.
33666 2007-01-10 Jim Meyering <jim@meyering.net>
33668 fts.c: a small readability/maintainability improvement
33669 * lib/fts.c (fts_read): Make this code slightly more readable and
33670 maintainable by hoisting the "sp->fts_cur = p" assignments to
33671 immediately follow the statements that set P. Derived from
33672 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
33674 2007-01-10 Eric Blake <ebb9@byu.net>
33676 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
33677 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
33678 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
33679 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
33680 Reported by Chris McGuire.
33682 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33684 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
33687 2007-01-09 Bruno Haible <bruno@clisp.org>
33689 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
33690 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
33692 (func_module): Use them.
33694 2007-01-09 Bruno Haible <bruno@clisp.org>
33696 * modules/unistr/base: New file.
33697 * lib/unistr.h: New file.
33699 * modules/unistr/u8-to-u16: New file.
33700 * lib/unistr/u8-to-u16.c: New file.
33702 * modules/unistr/u8-to-u32: New file.
33703 * lib/unistr/u8-to-u32.c: New file.
33705 * modules/unistr/u16-to-u8: New file.
33706 * lib/unistr/u16-to-u8.c: New file.
33708 * modules/unistr/u16-to-u32: New file.
33709 * lib/unistr/u16-to-u32.c: New file.
33711 * modules/unistr/u32-to-u8: New file.
33712 * lib/unistr/u32-to-u8.c: New file.
33714 * modules/unistr/u32-to-u16: New file.
33715 * lib/unistr/u32-to-u16.c: New file.
33717 * modules/unistr/u8-check: New file.
33718 * modules/unistr/u16-check: New file.
33719 * modules/unistr/u32-check: New file.
33720 * lib/unistr/u8-check.c: New file.
33721 * lib/unistr/u16-check.c: New file.
33722 * lib/unistr/u32-check.c: New file.
33724 * modules/unistr/u8-chr: New file.
33725 * modules/unistr/u16-chr: New file.
33726 * modules/unistr/u32-chr: New file.
33727 * lib/unistr/u8-chr.c: New file.
33728 * lib/unistr/u16-chr.c: New file.
33729 * lib/unistr/u32-chr.c: New file.
33731 * modules/unistr/u8-cmp: New file.
33732 * modules/unistr/u16-cmp: New file.
33733 * modules/unistr/u32-cmp: New file.
33734 * lib/unistr/u8-cmp.c: New file.
33735 * lib/unistr/u16-cmp.c: New file.
33736 * lib/unistr/u32-cmp.c: New file.
33738 * modules/unistr/u8-cpy: New file.
33739 * modules/unistr/u16-cpy: New file.
33740 * modules/unistr/u32-cpy: New file.
33741 * lib/unistr/u8-cpy.c: New file.
33742 * lib/unistr/u16-cpy.c: New file.
33743 * lib/unistr/u32-cpy.c: New file.
33744 * lib/unistr/u-cpy.h: New file.
33746 * modules/unistr/u8-cpy-alloc: New file.
33747 * modules/unistr/u16-cpy-alloc: New file.
33748 * modules/unistr/u32-cpy-alloc: New file.
33749 * lib/unistr/u8-cpy-alloc.c: New file.
33750 * lib/unistr/u16-cpy-alloc.c: New file.
33751 * lib/unistr/u32-cpy-alloc.c: New file.
33752 * lib/unistr/u-cpy-alloc.h: New file.
33754 * modules/unistr/u8-endswith: New file.
33755 * modules/unistr/u16-endswith: New file.
33756 * modules/unistr/u32-endswith: New file.
33757 * lib/unistr/u8-endswith.c: New file.
33758 * lib/unistr/u16-endswith.c: New file.
33759 * lib/unistr/u32-endswith.c: New file.
33760 * lib/unistr/u-endswith.h: New file.
33762 * modules/unistr/u8-mblen: New file.
33763 * modules/unistr/u16-mblen: New file.
33764 * modules/unistr/u32-mblen: New file.
33765 * lib/unistr/u8-mblen.c: New file.
33766 * lib/unistr/u16-mblen.c: New file.
33767 * lib/unistr/u32-mblen.c: New file.
33769 * modules/unistr/u8-mbtouc: New file.
33770 * modules/unistr/u16-mbtouc: New file.
33771 * modules/unistr/u32-mbtouc: New file.
33772 * lib/unistr/u8-mbtouc.c: New file.
33773 * lib/unistr/u16-mbtouc.c: New file.
33774 * lib/unistr/u32-mbtouc.c: New file.
33776 * modules/unistr/u8-mbtouc-safe: New file.
33777 * modules/unistr/u16-mbtouc-safe: New file.
33778 * modules/unistr/u32-mbtouc-safe: New file.
33779 * lib/unistr/u8-mbtouc-safe.c: New file.
33780 * lib/unistr/u16-mbtouc-safe.c: New file.
33781 * lib/unistr/u32-mbtouc-safe.c: New file.
33783 * modules/unistr/u8-move: New file.
33784 * modules/unistr/u16-move: New file.
33785 * modules/unistr/u32-move: New file.
33786 * lib/unistr/u8-move.c: New file.
33787 * lib/unistr/u16-move.c: New file.
33788 * lib/unistr/u32-move.c: New file.
33789 * lib/unistr/u-move.h: New file.
33791 * modules/unistr/u8-next: New file.
33792 * modules/unistr/u16-next: New file.
33793 * modules/unistr/u32-next: New file.
33794 * lib/unistr/u8-next.c: New file.
33795 * lib/unistr/u16-next.c: New file.
33796 * lib/unistr/u32-next.c: New file.
33798 * modules/unistr/u8-prev: New file.
33799 * modules/unistr/u16-prev: New file.
33800 * modules/unistr/u32-prev: New file.
33801 * lib/unistr/u8-prev.c: New file.
33802 * lib/unistr/u16-prev.c: New file.
33803 * lib/unistr/u32-prev.c: New file.
33805 * modules/unistr/u8-set: New file.
33806 * modules/unistr/u16-set: New file.
33807 * modules/unistr/u32-set: New file.
33808 * lib/unistr/u8-set.c: New file.
33809 * lib/unistr/u16-set.c: New file.
33810 * lib/unistr/u32-set.c: New file.
33811 * lib/unistr/u-set.h: New file.
33813 * modules/unistr/u8-startswith: New file.
33814 * modules/unistr/u16-startswith: New file.
33815 * modules/unistr/u32-startswith: New file.
33816 * lib/unistr/u8-startswith.c: New file.
33817 * lib/unistr/u16-startswith.c: New file.
33818 * lib/unistr/u32-startswith.c: New file.
33819 * lib/unistr/u-startswith.h: New file.
33821 * modules/unistr/u8-stpcpy: New file.
33822 * modules/unistr/u16-stpcpy: New file.
33823 * modules/unistr/u32-stpcpy: New file.
33824 * lib/unistr/u8-stpcpy.c: New file.
33825 * lib/unistr/u16-stpcpy.c: New file.
33826 * lib/unistr/u32-stpcpy.c: New file.
33827 * lib/unistr/u-stpcpy.h: New file.
33829 * modules/unistr/u8-stpncpy: New file.
33830 * modules/unistr/u16-stpncpy: New file.
33831 * modules/unistr/u32-stpncpy: New file.
33832 * lib/unistr/u8-stpncpy.c: New file.
33833 * lib/unistr/u16-stpncpy.c: New file.
33834 * lib/unistr/u32-stpncpy.c: New file.
33835 * lib/unistr/u-stpncpy.h: New file.
33837 * modules/unistr/u8-strcat: New file.
33838 * modules/unistr/u16-strcat: New file.
33839 * modules/unistr/u32-strcat: New file.
33840 * lib/unistr/u8-strcat.c: New file.
33841 * lib/unistr/u16-strcat.c: New file.
33842 * lib/unistr/u32-strcat.c: New file.
33843 * lib/unistr/u-strcat.h: New file.
33845 * modules/unistr/u8-strchr: New file.
33846 * modules/unistr/u16-strchr: New file.
33847 * modules/unistr/u32-strchr: New file.
33848 * lib/unistr/u8-strchr.c: New file.
33849 * lib/unistr/u16-strchr.c: New file.
33850 * lib/unistr/u32-strchr.c: New file.
33852 * modules/unistr/u8-strcmp: New file.
33853 * modules/unistr/u16-strcmp: New file.
33854 * modules/unistr/u32-strcmp: New file.
33855 * lib/unistr/u8-strcmp.c: New file.
33856 * lib/unistr/u16-strcmp.c: New file.
33857 * lib/unistr/u32-strcmp.c: New file.
33859 * modules/unistr/u8-strcpy: New file.
33860 * modules/unistr/u16-strcpy: New file.
33861 * modules/unistr/u32-strcpy: New file.
33862 * lib/unistr/u8-strcpy.c: New file.
33863 * lib/unistr/u16-strcpy.c: New file.
33864 * lib/unistr/u32-strcpy.c: New file.
33865 * lib/unistr/u-strcpy.h: New file.
33867 * modules/unistr/u8-strcspn: New file.
33868 * modules/unistr/u16-strcspn: New file.
33869 * modules/unistr/u32-strcspn: New file.
33870 * lib/unistr/u8-strcspn.c: New file.
33871 * lib/unistr/u16-strcspn.c: New file.
33872 * lib/unistr/u32-strcspn.c: New file.
33873 * lib/unistr/u-strcspn.h: New file.
33875 * modules/unistr/u8-strdup: New file.
33876 * modules/unistr/u16-strdup: New file.
33877 * modules/unistr/u32-strdup: New file.
33878 * lib/unistr/u8-strdup.c: New file.
33879 * lib/unistr/u16-strdup.c: New file.
33880 * lib/unistr/u32-strdup.c: New file.
33881 * lib/unistr/u-strdup.h: New file.
33883 * modules/unistr/u8-strlen: New file.
33884 * modules/unistr/u16-strlen: New file.
33885 * modules/unistr/u32-strlen: New file.
33886 * lib/unistr/u8-strlen.c: New file.
33887 * lib/unistr/u16-strlen.c: New file.
33888 * lib/unistr/u32-strlen.c: New file.
33889 * lib/unistr/u-strlen.h: New file.
33891 * modules/unistr/u8-strmblen: New file.
33892 * modules/unistr/u16-strmblen: New file.
33893 * modules/unistr/u32-strmblen: New file.
33894 * lib/unistr/u8-strmblen.c: New file.
33895 * lib/unistr/u16-strmblen.c: New file.
33896 * lib/unistr/u32-strmblen.c: New file.
33898 * modules/unistr/u8-strmbtouc: New file.
33899 * modules/unistr/u16-strmbtouc: New file.
33900 * modules/unistr/u32-strmbtouc: New file.
33901 * lib/unistr/u8-strmbtouc.c: New file.
33902 * lib/unistr/u16-strmbtouc.c: New file.
33903 * lib/unistr/u32-strmbtouc.c: New file.
33905 * modules/unistr/u8-strncat: New file.
33906 * modules/unistr/u16-strncat: New file.
33907 * modules/unistr/u32-strncat: New file.
33908 * lib/unistr/u8-strncat.c: New file.
33909 * lib/unistr/u16-strncat.c: New file.
33910 * lib/unistr/u32-strncat.c: New file.
33911 * lib/unistr/u-strncat.h: New file.
33913 * modules/unistr/u8-strncmp: New file.
33914 * modules/unistr/u16-strncmp: New file.
33915 * modules/unistr/u32-strncmp: New file.
33916 * lib/unistr/u8-strncmp.c: New file.
33917 * lib/unistr/u16-strncmp.c: New file.
33918 * lib/unistr/u32-strncmp.c: New file.
33920 * modules/unistr/u8-strncpy: New file.
33921 * modules/unistr/u16-strncpy: New file.
33922 * modules/unistr/u32-strncpy: New file.
33923 * lib/unistr/u8-strncpy.c: New file.
33924 * lib/unistr/u16-strncpy.c: New file.
33925 * lib/unistr/u32-strncpy.c: New file.
33926 * lib/unistr/u-strncpy.h: New file.
33928 * modules/unistr/u8-strnlen: New file.
33929 * modules/unistr/u16-strnlen: New file.
33930 * modules/unistr/u32-strnlen: New file.
33931 * lib/unistr/u8-strnlen.c: New file.
33932 * lib/unistr/u16-strnlen.c: New file.
33933 * lib/unistr/u32-strnlen.c: New file.
33934 * lib/unistr/u-strnlen.h: New file.
33936 * modules/unistr/u8-strpbrk: New file.
33937 * modules/unistr/u16-strpbrk: New file.
33938 * modules/unistr/u32-strpbrk: New file.
33939 * lib/unistr/u8-strpbrk.c: New file.
33940 * lib/unistr/u16-strpbrk.c: New file.
33941 * lib/unistr/u32-strpbrk.c: New file.
33942 * lib/unistr/u-strpbrk.h: New file.
33944 * modules/unistr/u8-strrchr: New file.
33945 * modules/unistr/u16-strrchr: New file.
33946 * modules/unistr/u32-strrchr: New file.
33947 * lib/unistr/u8-strrchr.c: New file.
33948 * lib/unistr/u16-strrchr.c: New file.
33949 * lib/unistr/u32-strrchr.c: New file.
33951 * modules/unistr/u8-strspn: New file.
33952 * modules/unistr/u16-strspn: New file.
33953 * modules/unistr/u32-strspn: New file.
33954 * lib/unistr/u8-strspn.c: New file.
33955 * lib/unistr/u16-strspn.c: New file.
33956 * lib/unistr/u32-strspn.c: New file.
33957 * lib/unistr/u-strspn.h: New file.
33959 * modules/unistr/u8-strstr: New file.
33960 * modules/unistr/u16-strstr: New file.
33961 * modules/unistr/u32-strstr: New file.
33962 * lib/unistr/u8-strstr.c: New file.
33963 * lib/unistr/u16-strstr.c: New file.
33964 * lib/unistr/u32-strstr.c: New file.
33965 * lib/unistr/u-strstr.h: New file.
33967 * modules/unistr/u8-strtok: New file.
33968 * modules/unistr/u16-strtok: New file.
33969 * modules/unistr/u32-strtok: New file.
33970 * lib/unistr/u8-strtok.c: New file.
33971 * lib/unistr/u16-strtok.c: New file.
33972 * lib/unistr/u32-strtok.c: New file.
33973 * lib/unistr/u-strtok.h: New file.
33975 * modules/unistr/u8-uctomb: New file.
33976 * modules/unistr/u16-uctomb: New file.
33977 * modules/unistr/u32-uctomb: New file.
33978 * lib/unistr/u8-uctomb.c: New file.
33979 * lib/unistr/u16-uctomb.c: New file.
33980 * lib/unistr/u32-uctomb.c: New file.
33982 * MODULES.html.sh (Unicode string functions): Add the new modules.
33984 2007-01-08 Bruno Haible <bruno@clisp.org>
33986 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
33987 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
33990 2007-01-08 Karl Berry <karl@gnu.org>
33992 * doc/error.texi: mention that main() fns must set program_name
33993 when progname is used.
33995 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
33997 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
33998 WCTYPE_H is empty, for the benefit of builds from non-distclean
33999 directories. Problem reported by Eric Blake in
34000 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
34002 2007-01-08 Bruno Haible <bruno@clisp.org>
34004 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
34005 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
34006 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
34007 PROVIDE_CANONICALIZE_FILENAME_MODE.
34008 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
34010 2007-01-08 Bruno Haible <bruno@clisp.org>
34012 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
34013 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
34014 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
34015 * lib/fts.c: Likewise.
34016 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
34018 2006-12-25 Bruno Haible <bruno@clisp.org>
34020 * modules/utf8-ucs4-safe: New file.
34021 * lib/utf8-ucs4-safe.h: New file.
34022 * lib/unistr/utf8-ucs4-safe.c: New file.
34024 * modules/utf16-ucs4-safe: New file.
34025 * lib/utf16-ucs4-safe.h: New file.
34026 * lib/unistr/utf16-ucs4-safe.c: New file.
34028 * MODULES.html.sh (Unicode string functions): Add the new modules.
34030 2007-01-08 Bruno Haible <bruno@clisp.org>
34032 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
34033 (Depends-on): Add unitypes.
34034 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
34035 (u8_mbtouc_aux): Move out to separate file.
34036 (u8_mbtouc): Use ucs4_t, uint8_t types.
34037 * lib/unistr/utf8-ucs4.c: New file.
34039 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
34040 (Depends-on): Add unitypes.
34041 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
34042 (u16_mbtouc_aux): Move out to separate file.
34043 (u16_mbtouc): Use ucs4_t, uint16_t types.
34044 * lib/unistr/utf16-ucs4.c: New file.
34046 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
34047 (Depends-on): Add unitypes.
34048 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
34049 (u8_uctomb_aux): Move out to separate file.
34050 (u8_uctomb): Use ucs4_t, uint8_t types.
34051 * lib/unistr/ucs4-utf8.c: New file.
34053 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
34054 (Depends-on): Add unitypes.
34055 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
34056 (u16_uctomb_aux): Move out to separate file.
34057 (u16_uctomb): Use ucs4_t, uint16_t types.
34058 * lib/unistr/ucs4-utf16.c: New file.
34060 2006-12-25 Bruno Haible <bruno@clisp.org>
34062 * modules/unitypes: New file.
34063 * lib/unitypes.h: New file.
34064 * MODULES.html.sh (func_all_modules): New section "Unicode string
34065 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
34066 this section. Add unitypes.
34068 2007-01-08 Bruno Haible <bruno@clisp.org>
34070 Avoid variable names that conflict with those from libtool.
34071 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
34072 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
34073 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
34074 library_names_spec to acl_library_names_spec, hardcode_* to
34076 Reported by Ralf Wildenhues.
34078 2007-01-08 Bruno Haible <bruno@clisp.org>
34080 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
34082 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
34084 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
34085 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
34087 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
34089 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
34090 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
34091 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
34092 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
34094 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
34096 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
34097 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
34098 GC_USE_<algorithm>.
34099 * lib/gc-libgcrypt.c: Likewise.
34100 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
34101 * modules/gc-arctwo (configure.ac): Likewise.
34102 * modules/gc-des (configure.ac): Likewise.
34103 * modules/gc-hmac-md5 (configure.ac): Likewise.
34104 * modules/gc-hmac-sha1 (configure.ac): Likewise.
34105 * modules/gc-md2 (configure.ac): Likewise.
34106 * modules/gc-md4 (configure.ac): Likewise.
34107 * modules/gc-md5 (configure.ac): Likewise.
34108 * modules/gc-random (configure.ac): Likewise.
34109 * modules/gc-rijndael (configure.ac): Likewise.
34110 * modules/gc-sha1 (configure.ac): Likewise.
34112 2007-01-08 Bruno Haible <bruno@clisp.org>
34114 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
34116 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
34118 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
34120 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
34121 * modules/fcntl-safer (configure.ac): Likewise.
34122 * modules/fopen-safer (configure.ac): Likewise.
34123 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
34124 GNULIB_FWRITEERROR macro definition.
34126 2007-01-08 Bruno Haible <bruno@clisp.org>
34128 * m4/gnulib-common.m4: New file.
34129 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
34130 (func_get_filelist): Add m4/gnulib-common.m4.
34132 2007-01-08 Bruno Haible <bruno@clisp.org>
34134 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
34137 2007-01-08 Jim Meyering <jim@meyering.net>
34139 Use a more robust test for a "can't happen" condition.
34140 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
34141 narrowed the st_size value. Presuming the "can't happen" condition
34142 is true, that narrowing could conceivably convert an invalid st_size
34143 value into a valid one. Instead, use a change based on Matthew
34144 Woehlke's original patch.
34146 Slight readability improvement: use an assert-like macro
34147 in place of literal "abort ()" uses.
34148 * lib/fts.c (fts_assert): Define.
34149 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
34150 Use this macro instead of a bare 'abort'.
34152 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
34154 Don't worry about using IRIX 5.3's wctype.h broken definitions;
34155 simply work around them.
34156 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
34157 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
34158 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
34160 Don't bother to define as macros, since the standard doesn't require it.
34161 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
34162 longer worry about IRIX 5.3.
34163 (HAVE_WCTYPE_CTMP_BUG): Remove.
34165 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
34167 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
34168 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
34169 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34170 Problems reported by Georg Schwarz for IRIX 5.3.
34172 * gnulib-tool (autoconf_minversion): Take the maximum version number
34173 found, not the minimum. Problem reported by James Youngman.
34175 2007-01-03 Karl Berry <karl@gnu.org>
34177 * doc/error.texi: new file, explaining interaction with progname.
34178 * doc/gnulib.texi: include it. Update copyright.
34180 2007-01-03 Simon Josefsson <simon@josefsson.org>
34182 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
34183 AC_CANONICAL_HOST, to improve autobuild outputs.
34185 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
34186 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
34188 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
34189 sockets, server sockets, and other file descriptors. Count errors
34190 to compute the return value. Reorder the code a bit to be easier
34191 to follow. Don't set event bits that were not requested (except
34192 POLLERR and POLLHUP).
34194 2007-01-01 Bruno Haible <bruno@clisp.org>
34196 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
34198 2007-01-03 Jim Meyering <jim@meyering.net>
34200 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
34202 2007-01-02 Bruno Haible <bruno@clisp.org>
34204 * modules/settime (Include): Require timespec.h.
34205 * modules/nanosleep (Include): Likewise.
34207 2007-01-01 Bruno Haible <bruno@clisp.org>
34209 * gnulib-tool (func_emit_copyright_notice): Bump year.
34210 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
34212 2007-01-01 Bruno Haible <bruno@clisp.org>
34214 Improve support for OpenBSD.
34215 * build-aux/config.rpath (libname_spec): Export.
34216 (library_names_spec): New variable. Export.
34217 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
34218 library_names_spec from the config.rpath output. Locate shared library
34219 through the name pattern in library_names_spec.
34221 2007-01-01 Eric Blake <ebb9@byu.net>
34223 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
34225 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
34227 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
34228 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
34229 assume the C locale, and avoid an "eval" that could cause trouble.
34230 Problem with SORT reported by Bob Proulx.
34232 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
34233 Define. Trivial patch from Henning Nielsen Lund, originally
34234 sent to bug-grep@gnu.org today.
34236 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
34238 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
34239 struct stat. Problem reported by Henning Nielsen Lund.
34240 * lib/acl.c: Include acl.h first, to check interface. Don't
34241 bother to include sys/types.h and sys/stat.h again.
34243 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
34245 Import the following change from libc; problem reported by
34248 2005-10-13 Ulrich Drepper <drepper@redhat.com>
34251 * lib/argp.h: Remove __NTH for __argp_usage inline function.
34253 2006-12-28 Jim Meyering <jim@meyering.net>
34255 * build-aux/announce-gen: Do not assume that the package
34256 builds any of tar.gz, tar.bz2, and .xdelta files.
34257 Suggestion from Simon Josefsson.
34259 2006-12-28 Simon Josefsson <simon@josefsson.org>
34261 * modules/announce-gen: New file.
34263 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
34265 * lib/mbchar.h: Just include <wctype.h>; the wctype module
34266 handles its gotchas now.
34267 * lib/mbswidth.c: Likewise.
34268 * lib/wcwidth.h: Likewise.
34269 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
34270 and iswcntrl; the wctype module does this stuff now.
34271 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34272 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
34273 * modules/mbchar (Depends-on): Add wctype.
34274 * modules/mbswidth (Depends-on): Likewise.
34275 * modules/wcwidth (Depends-on): Likewise.
34277 2006-12-27 Eric Blake <ebb9@byu.net>
34279 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
34280 module uses more than what <wctype.h> is required to provide.
34282 2006-12-26 Eric Blake <ebb9@byu.net>
34284 * gnulib-tool (sed_extract_prog): Avoid space-tab.
34286 2006-12-26 Eric Blake <ebb9@byu.net>
34288 * modules/absolute-header: New module.
34289 * modules/fcntl (Depends-on): Depend on it.
34290 * modules/inttypes (Depends-on): Likewise.
34291 * modules/stdint (Depends-on): Likewise.
34292 * modules/sys_stat (Depends-on): Likewise.
34293 * modules/wctype (Depends-on): Likewise.
34294 * MODULES.html.sh (Support for building libraries and
34295 executables): Document it.
34297 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
34299 * gnulib-tool (SED): Remove, undoing previous change.
34300 The problem was that it broke coreutils on Solaris, because
34301 "sed --posix" leaked into a makefile.
34302 (sed): New alias, if 'alias' and GNU sed.
34304 2006-12-24 Jim Meyering <jim@meyering.net>
34306 Work around an fchownat bug in glibc-2.4:
34307 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
34308 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
34309 in spite of the -P option.
34310 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
34312 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
34313 * modules/openat (Files): Add lib/fchownat.c.
34314 * lib/openat.c (fchownat): Don't define here. Move to...
34315 * lib/fchownat.c: ...this new file.
34317 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
34319 Fix bug reported by Bruno Haible in
34320 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
34321 where quotearg.c didn't compile on Mac OS X 10.2 because it
34322 lacks <wchar.h> and wint_t.
34323 * lib/wctype_.h (__wctype_wint_t): New type.
34324 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
34325 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
34326 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
34327 Arg is now of type __wctype_wint_t, not wint_t.
34328 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
34329 substitute HAVE_WINT_T.
34330 * modules/wctype (Files): Add m4/wint_t.m4.
34331 (wctype.h): Substitute HAVE_WINT_T.
34333 2006-12-23 Bruno Haible <bruno@clisp.org>
34335 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
34337 2006-12-23 Bruno Haible <bruno@clisp.org>
34339 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
34341 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
34344 2006-12-22 Bruno Haible <bruno@clisp.org>
34346 * lib/copy-file.c: Include acl.h.
34347 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
34348 Close the file descriptors only after being done with copy_acl.
34349 * modules/copy-file (Depends-on): Add acl.
34351 2006-12-22 Bruno Haible <bruno@clisp.org>
34353 * gnulib-tool (SED): New variable.
34354 Use $SED instead of sed everywhere.
34356 2006-12-22 Bruno Haible <bruno@clisp.org>
34358 * modules/no-c++: New file.
34359 * m4/no-c++.m4: New file.
34360 * MODULES.html.sh (Support for building libraries and executables):
34363 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
34365 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
34366 Include <limits.h>, and use its INT_MAX to rewrite the
34367 j loop so that it does not overflow 'int'. Problem reported by
34369 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
34370 Play it safe by shifting left by 1 rather than multiplying by 2,
34371 as GCC is less likely to optimize this away when the value
34372 is signed (when it assumes overflow leads to undefined behavior).
34373 Also, don't assume time_t uses two's complement.
34375 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
34377 * MODULES.html.sh: New module wctype.
34378 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
34379 * lib/fnmatch.c: Don't bother to include <wchar.h> before
34380 <wctype.h>, since the new wctype module should fix this.
34381 * lib/quotearg.c: Include <wctype.h> unconditionally, since
34382 the wctype module should arrange for it.
34383 * lib/regex_internal.h: Likewise.
34384 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
34385 since the wctype module should handle this now.
34386 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
34387 * modules/fnmatch (Depends-on): Add wctype.
34388 * modules/quotearg (Depends-on): Likewise.
34389 * modules/regex (Depends-on): Likewise.
34391 2006-12-19 Bruno Haible <bruno@clisp.org>
34393 * lib/strdup.h [C++]: Wrap definitions in extern "C".
34394 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
34396 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34398 * modules/savewd (Depends-on): Fix dependency on fcntl.
34400 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
34402 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
34403 conforms to C99, rather than relying on the user's environment
34404 setting of STDINT_H.
34406 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
34407 and Eric Blake <ebb9@byu.net>
34409 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
34410 This is more consistent with the other defines here.
34411 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
34412 Port to z/OS. Problem reported by Paul Gilmartin.
34413 Change local vars to use gl_ prefix rather than ac_.
34414 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
34415 with other defines.
34416 * modules/double-slash-root: New module.
34417 * modules/dirname (Files): Remove m4/double-slash-root.m4.
34418 (Depends-on): Add double-slash-root.
34419 * MODULES.html.sh (File system functions): Mention new module.
34421 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
34423 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
34424 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
34425 This is for the benefit of gzip, which doesn't do i18n.
34427 2006-12-12 Jim Meyering <jim@meyering.net>
34429 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
34430 Reported by Andreas Schwab <schwab@suse.de>.
34432 2006-12-12 Bruno Haible <bruno@clisp.org>
34434 Merge these changes.
34435 2006-09-05 Bruno Haible <bruno@clisp.org>
34436 * lib/iconvme.c (iconv_string): No need to save and restore errno when
34437 iconv_alloc succeeded.
34438 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
34439 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
34440 test for " && dest " at the end - dest is always != NULL there. Call
34441 iconv with 4xNULL arguments initially, to reset the state. Call iconv
34442 with 2xNULL arguments, also to flush the state storage. Handle the
34443 IRIX iconv behaviour. Realloc the final result, to throw away unused
34446 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
34448 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
34449 and fchmodat unconditionally, since glibc 2.4 has them.
34450 Problem reported by Arkadiusz Miskiewicz.
34452 2006-12-10 Bruno Haible <bruno@clisp.org>
34454 * gnulib-tool (func_import): Show the include files only for those
34455 modules that are copied and specified.
34456 Reported by Karl Berry.
34458 2006-12-08 Jim Meyering <jim@meyering.net>
34460 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
34461 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
34463 * build-aux/announce-gen: Add two new options, both optional:
34464 --bootstrap-tools=TOOL_LIST
34465 a comma-separated list of tools, e.g.,
34466 autoconf,automake,bison,gnulib
34467 --gnulib-snapshot-date=DATE
34468 if gnulib is in the bootstrap tool list,
34469 then report this as the snapshot date.
34470 If not specified, use the current date/time.
34471 If you specify a date here, be sure it's UTC.
34473 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34475 * tests/test-argp-2.sh: Fix test to match actual output.
34476 (func_compare): Fix sed script to be portable.
34478 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
34480 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
34481 workaround for this case. It is not autoconfigured now; offhand
34482 it's hard to see how to autoconfigure it.
34484 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
34486 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
34487 a directory that is about to be chowned. Such a directory's
34488 initial file permissions should permit the owner only and this
34489 should not be changed until after the chown, since the group and
34490 other bits would be incorrect if they granted permission before
34493 Fix porting problem for iswctype reported by Georg Schwarz in:
34494 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
34495 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
34496 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
34497 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
34498 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34500 2006-12-03 Jim Meyering <jim@meyering.net>
34502 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
34503 p->fts_statp may not yet be defined.
34504 (fts_read): Instead, set it in the caller, once p->fts_statp is
34505 sure to be defined, and corresponds to a top-level directory.
34506 This bug made du -x fail. Here's the coreutils test case:
34507 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
34508 Reported by Mike Frysinger.
34510 2006-12-01 Jim Meyering <jim@meyering.net>
34512 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
34513 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
34514 Reported by Simon Josefsson.
34516 2006-11-30 Jim Meyering <jim@meyering.net>
34518 * m4/warning.m4: Use the all-permissive copyright notice
34519 recommended by RMS (rather than LGPL).
34520 * m4/vararrays.m4: Likewise.
34521 * m4/flexmember.m4: Likewise.
34523 2006-11-29 Bruno Haible <bruno@clisp.org>
34525 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
34526 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
34528 Reported by Simon Josefsson <simon@josefsson.org>.
34530 2006-11-28 James Youngman <jay@gnu.org>
34532 * README: Advise users that they might find the bug-gnulib@gnu.org
34533 and autotools-announce@gnu.org mailing lists useful.
34535 2006-11-28 Bruno Haible <bruno@clisp.org>
34537 * m4/ptrdiff_max.m4: Remove file.
34539 2006-11-21 Bruno Haible <bruno@clisp.org>
34541 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
34543 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
34544 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
34546 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
34547 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
34549 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
34551 2006-11-28 Jim Meyering <jim@meyering.net>
34553 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
34554 warning from "gcc -Wshadow" about shadowing the builtin.
34556 2006-11-27 Bruno Haible <bruno@clisp.org>
34558 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
34560 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
34562 2006-11-27 Bruno Haible <bruno@clisp.org>
34563 Paul Eggert <eggert@cs.ucla.edu>
34565 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
34567 2006-11-26 Bruno Haible <bruno@clisp.org>
34569 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
34570 noinst_LTLIBRARIES.
34572 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
34573 Bruno Haible <bruno@clisp.org>
34575 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
34576 if compiling with "gcc -ansi".
34578 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
34580 Fix some incompatibilities with gcc -ansi -pedantic.
34581 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
34582 if compiling pedantically with GCC, unless it's C99 or later.
34583 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
34584 it mishandles gcc -ansi -pedantic as well.
34585 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
34587 * lib/regexec.c (check_node_accept_bytes): Don't use auto
34588 initializers for struct if -pedantic, unless it's C99 or later.
34590 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
34592 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
34593 Don't close an fd more than once. Identical atimes indicate
34594 success, not failure.
34596 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
34598 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
34600 2006-11-23 Jim Meyering <jim@meyering.net>
34602 * build-aux/announce-gen: New file. From coreutils.
34604 2006-11-22 Jim Meyering <jim@meyering.net>
34606 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
34607 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
34608 (fts_read): Use a temporary to narrow the overused st_size member
34609 before using it in a switch statement. Reported by Matthew Woehlke.
34611 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
34612 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34614 2006-11-20 Bruno Haible <bruno@clisp.org>
34616 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
34617 changequote instead of pairs of brackets.
34618 Reported by Andreas Schwab <schwab@suse.de>.
34620 2006-11-21 Jim Meyering <jim@meyering.net>
34622 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
34623 so as to remain compatible with older compilers.
34624 Patch from Michael Deutschmann.
34626 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
34628 * MODULES.html.sh (File system functions): Add openat.
34630 * lib/openat.h (rpl_fstatat): New macro, if
34631 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
34632 (fstatat): Define to rpl_fstatat under the same conditions,
34633 unless COMPILING_FSTATAT.
34634 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
34635 seems to have the bug.
34636 * lib/fstatat.c: New file.
34637 * modules/openat (Files): Add it.
34639 2006-11-20 Bruno Haible <bruno@clisp.org>
34641 * Makefile: New file.
34643 2006-11-20 Jim Meyering <jim@meyering.net>
34645 The beginnings of syntax-related checks for gnulib.
34646 * lib/Makefile: New file.
34647 * lib/t-idcache: New script. Ensure that the two halves of
34648 idcache.c stay in sync.
34650 * lib/idcache.c: Adjust comments in user- and group- portions to
34651 be more accurate, and to be consistent with one another.
34653 2006-11-20 Jim Meyering <jim@meyering.net>
34655 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
34656 continue using the flexible array member (thus, this module performs
34657 half as many malloc calls), with the addition that...
34658 (getgroup, getuser): Consistently record a non-match via an empty
34659 "name" string, and map an empty string match to a NULL return value.
34660 * modules/idcache (Depends-on): Re-add flexmember.
34662 * lib/idcache.c (getuser): Remove all uses of the register keyword.
34663 (getuidbyname, getgroup, getgidbyname): Likewise.
34665 Use cleaner syntax: NULL rather than 0.
34666 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
34668 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
34670 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
34671 It mishandled the case where the group was missing.
34672 Problem reported by Greg Schafer.
34673 * modules/idcache: Likewise.
34675 2006-11-18 Jim Meyering <jim@meyering.net>
34677 * check-module (%exempt_header): Add exception for some
34678 conditionally-included headers.
34680 * modules/i-ring (Depends-on): Add verify.
34681 (License): Change to LGPL.
34683 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
34685 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
34686 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
34687 and inttostr.h. Use snprintf rather than uinttostr, so that
34688 LGPLed code doesn't depend on GPLed.
34690 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
34692 * modules/inline (License): Change from GPL to LGPL.
34694 2006-11-17 Jim Meyering <jim@meyering.net>
34696 * modules/d-type (License): Switch to LGPL.
34698 2006-11-15 Bruno Haible <bruno@clisp.org>
34700 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
34702 2006-11-15 Eric Blake <ebb9@byu.net>
34704 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
34705 the module dependency.
34707 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
34708 Bruno Haible <bruno@clisp.org>
34710 * gnulib-tool (func_create_testdir): Add license consistency check.
34712 2006-11-15 Eric Blake <ebb9@byu.net>
34714 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
34715 random "(cached)" in configure output.
34717 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34719 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
34720 test for conforming inttypes.h is both announced and cached.
34722 * MODULES.html.sh (seen_modules, seen_files): New variables.
34723 (func_module): Rewrite to use a few less gnulib-tool and sed
34724 invocations. Avoid a couple of quadratic algorithms for ...
34725 (missed_modules, missed_files): ... these, with ...
34726 (func_append, func_tmpdir): ... these new functions, from
34727 gnulib-tool. Analogously, install traps for cleanup.
34729 * tests/test-gc.c (main): Remove unused variables.
34730 * tests/test-read-file.c: Include stdlib.h, for 'free'.
34732 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
34734 * modules/inttostr (License): Change to LGPL.
34736 2006-11-14 Eric Blake <ebb9@byu.net>
34738 * modules/tempname (License): Change to LGPL.
34740 2006-11-14 Eric Blake <ebb9@byu.net>
34742 * doc/functions.texi (Function Portability): *printf functions on
34743 Cygwin now understand all POSIX size specifiers.
34745 2006-11-14 Bruno Haible <bruno@clisp.org>
34747 * modules/c-ctype (License): Change to LGPL.
34749 2006-11-12 Bruno Haible <bruno@clisp.org>
34751 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
34752 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
34753 for GNOME libraries, for which the include files are installed in
34754 subdirectories of $prefix/include.
34756 2006-11-12 Bruno Haible <bruno@clisp.org>
34758 * m4/lib-link.m4: Require at least autoconf-2.54.
34759 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
34760 name to underscores for the --with option.
34762 2006-11-13 Bruno Haible <bruno@clisp.org>
34764 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
34765 the tests directory.
34766 Reported by Ralf Wildenhues.
34768 2006-11-13 Bruno Haible <bruno@clisp.org>
34770 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
34771 (func_emit_initmacro_end): Undo the override here.
34772 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
34773 Works around the famous automake error in coreutils.
34775 2006-11-13 Eric Blake <ebb9@byu.net>
34777 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
34778 element, not its node.
34780 2006-11-12 Bruno Haible <bruno@clisp.org>
34782 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
34783 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
34785 2006-11-12 Bruno Haible <bruno@clisp.org>
34787 * gnulib-tool: New option --local-symlink.
34788 (func_usage): Document it.
34789 (lsymbolic): New variable.
34790 (func_import, func_create_testdir): If --symlink was not specified,
34791 test whether --local-symlink was specified and the file comes from
34792 the local_gnulib_dir.
34794 2006-11-12 Bruno Haible <bruno@clisp.org>
34796 * gnulib-tool (func_ln): New function.
34797 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
34799 2006-11-12 Bruno Haible <bruno@clisp.org>
34801 Finish support for source files in subdirectories.
34802 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
34803 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
34805 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
34807 2006-11-12 Bruno Haible <bruno@clisp.org>
34809 * gnulib-tool (func_get_automake_snippet): Synthesize also an
34810 EXTRA_lib_SOURCES augmentation.
34811 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
34813 2006-11-12 Jim Meyering <jim@meyering.net>
34815 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
34816 file descriptors. This also averts a failure on systems with
34817 native openat support when a traversed directory lacks "x" access.
34818 * lib/fts_.h: Include "i-ring.h"
34819 (struct FTS) [fts_fd_ring]: New member.
34820 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
34821 (FCHDIR): Add parentheses.
34822 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
34823 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
34824 When descending, rather than simply closing the previous
34825 fts_cwd_fd value, push that file descriptor onto the ring.
34826 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
34827 (fts_open): Initialize the new fd_ring member.
34828 (fts_close): Clear the ring.
34829 (fts_safe_changedir): When possible, use our new fd_ring to skip
34830 the diropen and fstat and dev/ino comparison that would normally
34831 accompany a virtual `chdir ("..")'.
34833 * modules/fts (Depends-on): Add i-ring.
34834 * modules/i-ring: New module.
34835 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
34836 * m4/i-ring.m4: New file.
34838 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34840 * gnulib-tool (func_create_testdir): Fix replacement of
34841 `build-aux' in configure.ac. Run autotools in gltests
34843 (func_create_testdir, func_create_megatestdir, test): There is
34844 no need for '--force' in most autotool invocations in a new
34845 tree. Actually fail the whole test if any of the tools, or the
34846 configure or make stages fail.
34848 Sync from Automake.
34849 * build-aux/gnupload: Revert last change. Add pointer to upload
34850 instructions of the GNU Maintenance Instructions.
34851 Suggestion by Karl Berry.
34853 2006-11-10 Jim Meyering <jim@meyering.net>
34855 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
34857 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
34859 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
34860 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
34861 (bind_textdomain_codeset) [! ENABLE_NLS]:
34862 Evaluate all the arguments. That way, callers get compatible behavior
34863 if the arguments have side effects. Also, it avoids some GCC
34864 diagnostics in some cases; Joel E. Denny reported problems when Bison
34865 was configured with --enable-gcc-warnigs.
34867 2006-11-10 Jim Meyering <jim@meyering.net>
34869 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
34870 relevant options in CFLAGS (like -O, -fno-inline) are taken into
34873 2006-11-10 Jim Meyering <jim@meyering.net>
34875 * modules/inline: New file/module.
34876 * modules/xalloc (Files): Remove m4/inline.m4.
34877 (Depends-on): Add inline, instead.
34878 * modules/oset: Likewise.
34879 * modules/list: Likewise.
34881 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
34883 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
34884 Problem reported by Matthew Woehlke.
34886 2006-11-09 Bruno Haible <bruno@clisp.org>
34888 * lib/tempname.c (gen_tempname): Remove variant that invokes
34890 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
34893 2006-11-08 Bruno Haible <bruno@clisp.org>
34895 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
34896 to 'yes' instead of 'cross-compiling'.
34898 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
34900 * lib/quotearg.h (quotearg_free): New decl.
34901 * lib/quotearg.c (quotearg_free): New function.
34902 (slot0, nslots, slotvec0, slotvec):
34903 Now file-scope so that quotearg_free can get at them.
34905 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34907 Sync from Automake.
34908 * build-aux/gnupload: Add missing 'gnu' to example URL.
34909 Report by Karl Berry.
34911 2006-11-08 Bruno Haible <bruno@clisp.org>
34913 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
34914 Suggested by Paul Eggert.
34916 2006-11-08 Jim Meyering <jim@meyering.net>
34918 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
34919 It's already included if !_LIBC.
34920 (fts_safe_changedir): Add a comment.
34922 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
34924 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
34925 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
34928 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
34929 definitions up, to avoid colliding with change below.
34930 (static_inline) [HAVE_INLINE]: New macro.
34931 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
34932 Provide extern decls when !HAVE_INLINE. Do not define unless
34933 static_inline is defined, either by us or by xmalloc.c. Use
34934 static_inline rather than static inline.
34935 (XCALLOC): Optimize sizeof(T) = 1 case.
34936 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
34938 2006-11-07 Bruno Haible <bruno@clisp.org>
34940 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
34941 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
34943 * modules/xalloc (Files): Add m4/inline.m4.
34945 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34947 * README: Fix typo.
34948 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
34949 (Miscellanous Notes): ...from this.
34951 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
34953 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
34954 Mention that offsetof should be used instead of sizeof.
34957 2006-11-07 Bruno Haible <bruno@clisp.org>
34959 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
34961 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
34963 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
34964 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
34965 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
34966 (gl_tree_add_before, gl_tree_add_after):
34967 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
34968 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
34969 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
34970 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
34971 (gl_linked_add_after, gl_linked_add_at): Likewise.
34972 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
34973 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
34974 (gl_tree_add_before, gl_tree_add_after): Likewise.
34975 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
34976 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
34977 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
34979 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34981 * lib/gl_oset.h: Use C comment style, not C++ comment style.
34983 2006-11-06 Bruno Haible <bruno@clisp.org>
34985 * m4/inline.m4: New file.
34986 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
34987 * modules/list (Files): Add m4/inline.m4.
34988 * modules/oset (Files): Likewise.
34990 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
34992 * lib/idcache.c: Include <stddef.h>, for offsetof.
34993 (struct userid.name): Change from char * to a flexible array member.
34995 * modules/idcache (Depends-on): Add flexmember.
34997 * MODULES.html.sh (Core language properties): New module flexmember.
34998 * modules/flexmember, m4/flexmember.m4: New files.
35000 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
35001 inline functions that are identical with the old xnmalloc_inline,
35002 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
35003 that we can avoid some unnecessary integer multiplications and
35004 divisions in the common case where the element size is known at
35006 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
35008 (xnboundedmalloc): Remove.
35009 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
35010 arguments, for consistency with rest of this header.
35011 (xcharalloc): Rewrite using XNMALLOC.
35012 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
35013 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
35014 versions have been moved to lib/xalloc.h and renamed to be the
35015 non-*_inline versions.
35016 (xmalloc, xrealloc): Implement without reference to the xnmalloc
35017 and xnrealloc functions, since those functions are now inline and
35019 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
35020 renaming described above.
35021 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
35022 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
35023 captures the dependency in AC_C_INLINE.
35025 New module canonicalize-lgpl, proposed by Charles Wilson in
35026 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
35027 with a few small changes afterwards.
35028 * MODULES.html.sh (File system functions): New module
35030 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
35031 and canonicalize_file_name.
35032 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
35033 * modules/canonicalize-lgpl: New files.
35035 2006-11-05 Bruno Haible <bruno@clisp.org>
35037 * gnulib-tool (func_import, func_create_testdir): Create directories
35038 also for files in subdirectories of lib/.
35040 2006-11-05 Bruno Haible <bruno@clisp.org>
35042 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
35045 2006-11-03 Bruno Haible <bruno@clisp.org>
35047 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
35048 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
35049 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
35050 (xnboundedmalloc): New inline function.
35051 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
35052 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
35054 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
35056 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
35057 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
35058 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
35060 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
35061 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
35063 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
35064 gl_tree_add_after): Use XMALLOC instead of xmalloc.
35065 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
35067 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
35068 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
35069 gl_tree_add_after): Use XMALLOC instead of xmalloc.
35070 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
35071 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
35072 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
35073 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
35075 2006-11-03 Bruno Haible <bruno@clisp.org>
35077 * lib/c-ctype.h [C++]: Define functions without name mangling.
35078 * lib/fwriteerror.h [C++]: Likewise.
35079 * lib/gcd.h [C++]: Likewise.
35080 * lib/linebreak.h [C++]: Likewise.
35082 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
35084 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
35085 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
35086 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
35087 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
35088 Check for functions and headers just once.
35089 Check for declaration of canonicalize_file_name.
35090 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
35092 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
35094 * gnulib-tool (func_import): Fix typo in actioncmd.
35096 2006-11-02 Bruno Haible <bruno@clisp.org>
35098 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
35099 newline sequence in the Makefile.am snippet as a space, like "make"
35101 Reported by Roger Persson <perrog@gmail.com>.
35103 2006-11-01 Bruno Haible <bruno@clisp.org>
35105 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
35106 already declared in <string.h>.
35107 * lib/strcase.h (strncasecmp): Don't declare it if yes.
35109 2006-11-01 Bruno Haible <bruno@clisp.org>
35111 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
35112 * lib/strcase.h: Include <string.h>.
35113 (strcasecmp): Define to rpl_strcasecmp here.
35115 2006-11-01 Bruno Haible <bruno@clisp.org>
35117 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
35119 2006-11-01 Eric Blake <ebb9@byu.net>
35121 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
35123 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
35125 2006-10-29 Bruno Haible <bruno@clisp.org>
35127 Make it compile in C++ mode.
35128 * lib/full-write.c (full_rw): Add a cast.
35130 2006-11-01 Bruno Haible <bruno@clisp.org>
35132 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
35133 be POSIX compliant.
35134 Reported by Roger Persson <perrog@gmail.com>.
35136 2006-11-01 Eric Blake <ebb9@byu.net>
35138 * lib/getopt_.h: Fix comments.
35140 2006-10-31 Eric Blake <ebb9@byu.net>
35142 * modules/tmpdir (Depends-on): Add sys_stat.
35143 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
35144 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
35145 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
35146 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
35149 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
35151 Avoid some C++ diagnostics reported by Bruno Haible.
35152 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
35154 (quotearg_alloc): Use xcharalloc rather than xmalloc.
35155 (struct slotvec): Move to top level.
35156 (quotearg_n_options): Rewrite to avoid xmalloc.
35157 * lib/xalloc.h (xcharalloc): New function.
35158 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
35159 [defined __cplusplus]: Add function template that provides result
35160 type propagation. This part of the change is from Bruno Haible.
35162 2006-10-29 Bruno Haible <bruno@clisp.org>
35164 Make it compile in C++ mode.
35165 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
35166 * lib/strnlen1.c (strnlen1): Cast memchr result.
35167 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
35168 * lib/clean-temp.c (string_equals, string_hash): Add casts.
35169 (create_temp_dir): Rename local variable 'template'.
35170 (compile_csharp_using_sscli): Add cast.
35171 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
35172 * lib/findprog.c (find_in_path): Likewise.
35173 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
35174 * lib/wait-process.c (register_slave_subprocess): Likewise.
35176 2006-10-22 Bruno Haible <bruno@clisp.org>
35178 * modules/tsearch: New file.
35179 * lib/tsearch.h: New file.
35180 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
35181 * m4/tsearch.m4: New file.
35182 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
35184 2006-10-29 Eric Blake <ebb9@byu.net>
35186 * lib/arcfour.c: Assume config.h.
35187 * lib/arctwo.c: Likewise.
35188 * lib/base64.c: Likewise.
35189 * lib/check-version.c: Likewise.
35190 * lib/crc.c: Likewise.
35191 * lib/des.c: Likewise.
35192 * lib/gc-gnulib.c: Likewise.
35193 * lib/gc-libgcrypt.c: Likewise.
35194 * lib/gc-pbkdf2-sha1.c: Likewise.
35195 * lib/getaddrinfo.c: Likewise.
35196 * lib/getdelim.c: Likewise.
35197 * lib/getline.c: Likewise.
35198 * lib/hmac-md5.c: Likewise.
35199 * lib/hmac-sha1.c: Likewise.
35200 * lib/iconvme.c: Likewise.
35201 * lib/md2.c: Likewise.
35202 * lib/md4.c: Likewise.
35203 * lib/memxor.c: Likewise.
35204 * lib/read-file.c: Likewise.
35205 * lib/readline.c: Likewise.
35206 * lib/rijndael-alg-fst.c: Likewise.
35207 * lib/rijndael-api-fst.c: Likewise.
35208 * lib/xgetdomainname.c: Likewise.
35210 2006-10-28 Eric Blake <ebb9@byu.net>
35212 * lib/xstrndup.c: Assume config.h.
35214 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
35216 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
35217 stat-macros.h is now for our own macros, whereas stat_h is for
35218 macros in the <sys/stat.h> name space.
35219 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
35220 (STAT_MACROS_H): Remove.
35221 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
35222 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
35223 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
35224 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
35225 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
35226 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
35227 Move these macros to ...
35228 * lib/stat_.h: here. Don't include stat-macros.h.
35229 * lib/canonicalize.c: Don't include stat-macros.h.
35230 * lib/chown.c: Likewise.
35231 * lib/euidaccess.c: Likewise.
35232 * lib/file-type.c: Likewise.
35233 * lib/filemode.c: Likewise.
35234 * lib/glob.c: Likewise.
35235 * lib/isapipe.c: Likewise.
35236 * lib/lchown.c: Likewise.
35237 * lib/lstat.c: Likewise.
35238 * lib/mkdir-p.c: Likewise.
35239 * lib/rmdir.c: Likewise.
35240 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
35241 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
35242 unless mkdir isn't declared, to speed up 'configure'.
35243 Always create sys/stat.h, since it's unlikely any real sys/stat.h
35244 would define all the S_* symbols.
35245 * modules/canonicalize (Depends-on):
35246 Depend on sys_stat, not stat-macros.
35247 * modules/chown: Likewise.
35248 * modules/euidaccess: Likewise.
35249 * modules/filemode: Likewise.
35250 * modules/file-type: Likewise.
35251 * modules/glob: Likewise.
35252 * modules/isapipe: Likewise.
35253 * modules/lchown: Likewise.
35254 * modules/lstat: Likewise.
35255 * modules/mkancesdirs: Likewise.
35256 * modules/rmdir: Likewise.
35257 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
35258 * modules/modechange: Likewise.
35259 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
35260 (configure.ac): Remove gl_STAT_MACROS.
35261 * modules/sys_stat (Depends-on): Remove stat-macros.
35263 2006-10-27 Bruno Haible <bruno@clisp.org>
35265 * m4/signed.m4: Remove file.
35266 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
35268 * modules/vasnprintf (Files): Remove m4/signed.m4.
35270 2006-10-27 Bruno Haible <bruno@clisp.org>
35272 Update to GNU gettext 0.16.
35273 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
35274 m4/inttypes-h.m4, m4/signed.m4.
35275 * m4/gettext.m4: Update to GNU gettext 0.16.
35276 * m4/intl.m4: New file, from GNU gettext.
35277 * m4/intldir.m4: New file, from GNU gettext.
35278 * config/srclist.txt: Update
35280 2006-10-27 Eric Blake <ebb9@byu.net>
35282 * MODULES.html.sh: Document tempname.
35283 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
35285 (Files): Move lib/tempname.c...
35286 * modules/tempname: ...to this new module.
35287 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
35288 (gl_PREREQ_TEMPNAME): Move...
35289 * m4/tempname.m4: ...to this new file.
35290 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
35291 * modules/sys_stat (Depends-on): Add stat-macros.
35292 * lib/stat_.h (includes): Pick up stat macros.
35293 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
35294 if stat macros are broken.
35295 * lib/tempname.c (includes): No need to include "stat-macros.h".
35296 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
35297 (direxists, __path_search) [!_LIBC]: Don't compile these in
35298 gnulib; the tmpdir module covers that.
35299 * lib/tempname.h: New file.
35301 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
35303 * COPYING: Explain how gnulib-tool converts licence headers.
35304 Almost all wording by Eric Blake.
35306 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
35308 * lib/mbchar.h (is_basic_table): Make read-only.
35309 * lib/mbchar.c (is_basic_table): Likewise.
35310 Reported by John Darrington.
35312 2006-10-25 Bruno Haible <bruno@clisp.org>
35314 * lib/progname.h (set_program_name): Undefine before defining.
35316 2006-10-25 Bruno Haible <bruno@clisp.org>
35318 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
35319 false for non-gcc C++ compilers.
35320 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35322 2006-10-24 Bruno Haible <bruno@clisp.org>
35324 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
35325 iconv implementations like Irix iconv.
35327 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
35329 * modules/vararrays: New file.
35330 * m4/vararrays.m4: New file, taken from diffutils.
35331 * MODULES.html.sh: New module vararrays.
35333 2006-10-24 Karl Berry <karl@gnu.org>
35335 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
35336 Don't call GNU Unix.
35338 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35340 * users.txt: Add Libtool.
35344 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
35346 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
35347 to gnulib's policy of including config.h unconditionally.
35349 2006-10-24 Bruno Haible <bruno@clisp.org>
35351 * modules/wcwidth (Files): Add m4/wint_t.m4.
35352 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
35353 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
35355 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
35357 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
35358 to pacify GCC with some -W flags enabled. Problem reported by
35361 2006-10-24 Jim Meyering <jim@meyering.net>
35363 * MODULES.html.sh: Remove uinttostr. It's not a module.
35364 Reported by Karl Berry.
35366 2006-10-23 Bruno Haible <bruno@clisp.org>
35368 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
35370 2006-10-24 Bruno Haible <bruno@clisp.org>
35372 * lib/gl_list.h: Use C comment style, not C++ comment style.
35374 2006-10-23 Eric Blake <ebb9@byu.net>
35376 * lib/getaddrinfo.c (includes): Add missing include.
35378 2006-10-23 Bruno Haible <bruno@clisp.org>
35379 Paul Eggert <eggert@cs.ucla.edu>
35381 Ability to rename obstack_free.
35382 * lib/obstack.h (__obstack_free): New macro. Declare instead of
35384 (obstack_free): Invoke the __obstack_free macro.
35385 * lib/obstack.c (obstack_free): Use __obstack_free macro.
35387 2006-10-23 Bruno Haible <bruno@clisp.org>
35388 Paul Eggert <eggert@cs.ucla.edu>
35390 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
35391 __argc, __argv from the declaration. (They are defined as macros on
35394 2006-10-22 Bruno Haible <bruno@clisp.org>
35396 * doc/gnulib-intro.texi: New file.
35397 * doc/gnulib.texi: Include it.
35399 2006-10-21 Bruno Haible <bruno@clisp.org>
35401 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
35402 "Introduction", "Miscellanous Notes", "Particular Modules".
35404 2006-10-21 Bruno Haible <bruno@clisp.org>
35406 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35407 Change mostlyclean-local rule to avoid sh syntax error from bash
35408 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
35410 2006-10-23 Jim Meyering <jim@meyering.net>
35412 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
35413 in place of snprintf.
35415 * modules/inttostr (Files): Add lib/uinttostr.c.
35416 * lib/uinttostr.c (inttostr): New file/function.
35417 * lib/inttostr.h (uinttostr): Declare.
35418 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
35419 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
35421 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
35423 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
35425 * lib/canonicalize.c (ELOOP): Define if not already defined.
35426 Problem reported by Bruno Haible in
35427 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
35429 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
35431 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
35432 Problem reported by Perry Smith and Ville Laurikari.
35434 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
35437 2006-10-19 Bruno Haible <bruno@clisp.org>
35439 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
35442 2006-10-19 Bruno Haible <bruno@clisp.org>
35444 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
35447 2006-10-19 Bruno Haible <bruno@clisp.org>
35449 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
35451 2006-10-19 Bruno Haible <bruno@clisp.org>
35453 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
35456 2006-10-19 Bruno Haible <bruno@clisp.org>
35458 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
35461 2006-10-19 Bruno Haible <bruno@clisp.org>
35463 * gnulib-tool (func_create_testdir): Don't include ftruncate and
35464 mountlist by default.
35466 2006-10-16 Bruno Haible <bruno@clisp.org>
35468 * lib/c-strstr.c: Include c-strstr.h.
35470 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
35472 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
35475 2006-10-18 Bruno Haible <bruno@clisp.org>
35477 * lib/lock.h [C++]: Wrap definitions in extern "C".
35479 2006-10-18 Bruno Haible <bruno@clisp.org>
35481 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
35484 2006-10-18 Bruno Haible <bruno@clisp.org>
35486 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
35488 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
35490 * lib/xstrtol.h: Include gettext.h.
35491 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
35492 Problem reported by Eric Blake.
35493 * modules/xstrtol (Depends-on): Add gettext-h.
35495 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
35497 * lib/strftime.c (advance): New macro.
35498 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
35499 incomplete type, so you can't add 0 to it. Problem and patch
35500 reported by Eelco Dolstra for dietlibc.
35502 2006-10-18 Jim Meyering <jim@meyering.net>
35504 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
35505 type for a local, and rename it: s/up/user_proc/.
35507 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
35509 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
35510 READ_UTMP_USER_PROCESS.
35511 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
35513 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
35515 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
35516 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
35518 2006-10-17 Eric Blake <ebb9@byu.net>
35520 * lib/sigprocmask.c (sigprocmask): Fix typo.
35522 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
35524 * modules/clean-temp (Makefile.am): Don't add to make output...
35525 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
35528 2006-10-17 Bruno Haible <bruno@clisp.org>
35530 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
35531 differently if DEFAULT_TEXT_DOMAIN is set.
35533 2006-10-16 Bruno Haible <bruno@clisp.org>
35535 * lib/clean-temp.c: Include fwriteerror.h.
35537 2006-10-16 Bruno Haible <bruno@clisp.org>
35539 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
35541 2006-10-16 Bruno Haible <bruno@clisp.org>
35543 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
35544 * lib/sigprocmask.h: Include <sys/types.h>.
35545 (sigset_t): Use the system's definition if present.
35547 2006-10-17 Eric Blake <ebb9@byu.net>
35549 * lib/xvasprintf.c (includes): Assume config.h.
35550 * lib/xasprintf.c (includes): Likewise.
35552 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
35554 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
35555 at least as wide as intmax_t.
35557 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
35559 (Imported from Automake.)
35560 * build-aux/gnupload: Update to version 1.1 of directive file.
35562 2006-10-16 Eric Blake <ebb9@byu.net>
35564 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
35565 match Automake 1.10a.
35567 2006-10-14 Bruno Haible <bruno@clisp.org>
35569 * modules/sigprocmask: New file.
35570 * lib/sigprocmask.h: New file.
35571 * lib/sigprocmask.c: New file.
35572 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
35573 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
35574 request sigprocmask.o.
35575 (gl_PREREQ_SIGPROCMASK): New macro.
35576 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
35577 (Depends-on): Add sigprocmask.
35578 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
35579 gt_SIGNALBLOCKING. Test for 'raise' only once.
35580 * lib/fatal-signal.c: Include sigprocmask.h.
35581 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
35582 unblock_fatal_signals): Define always.
35583 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35586 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
35588 Sync from Automake.
35589 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
35590 which incorrectly sets the mode of an existing destination
35591 directory. In some cases the unpatched install-sh could do the
35592 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
35593 system. We hope this is rare in practice, but it's clearly worth
35594 fixing. Problem reported by Alex Unleashed in
35595 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
35596 Also, don't bother to check for -m bugs unless we're using -m;
35597 suggested by Stepan Kasal.
35599 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35601 Sync from Automake.
35602 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
35603 `-c' flag, so they appear at the same position as in %FASTDEP%
35604 mode in depend2.am. Fixes build failure for FreeBSD's c89,
35605 which ignores unknown options only after the first non-option.
35606 Bug report against M4 by Nelson H. F. Beebe.
35608 2006-10-13 Jim Meyering <jim@meyering.net>
35610 Fix a bug in yesterday's change.
35611 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
35612 p->fts_statp->st_dev would be used uninitialized.
35613 Ensures that we always call fts_stat on the very first entry.
35614 Miklos Szeredi reported that find -xdev stopped working.
35616 2006-10-12 Bruno Haible <bruno@clisp.org>
35618 * gnulib-tool (func_get_automake_snippet): Append an automatically
35619 computed EXTRA_DIST augmentation.
35620 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
35621 * modules/alloca-opt (Makefile.am): Likewise.
35622 * modules/allocsa (Makefile.am): Likewise.
35623 * modules/arcfour (Makefile.am): Likewise.
35624 * modules/arctwo (Makefile.am): Likewise.
35625 * modules/argmatch (Makefile.am): Likewise.
35626 * modules/argz (Makefile.am): Likewise.
35627 * modules/atexit (Makefile.am): Likewise.
35628 * modules/backupfile (Makefile.am): Likewise.
35629 * modules/byteswap (Makefile.am): Likewise.
35630 * modules/c-strtod (Makefile.am): Likewise.
35631 * modules/c-strtold (Makefile.am): Likewise.
35632 * modules/calloc (Makefile.am): Likewise.
35633 * modules/canon-host (Makefile.am): Likewise.
35634 * modules/canonicalize (Makefile.am): Likewise.
35635 * modules/chdir-long (Makefile.am): Likewise.
35636 * modules/chdir-safer (Makefile.am): Likewise.
35637 * modules/check-version (Makefile.am): Likewise.
35638 * modules/chown (Makefile.am): Likewise.
35639 * modules/cloexec (Makefile.am): Likewise.
35640 * modules/close-stream (Makefile.am): Likewise.
35641 * modules/closeout (Makefile.am): Likewise.
35642 * modules/crc (Makefile.am): Likewise.
35643 * modules/csharpexec (Makefile.am): Likewise.
35644 * modules/cycle-check (Makefile.am): Likewise.
35645 * modules/des (Makefile.am): Likewise.
35646 * modules/dev-ino (Makefile.am): Likewise.
35647 * modules/dirfd (Makefile.am): Likewise.
35648 * modules/dirname (Makefile.am): Likewise.
35649 * modules/dup2 (Makefile.am): Likewise.
35650 * modules/eealloc (Makefile.am): Likewise.
35651 * modules/error (Makefile.am): Likewise.
35652 * modules/euidaccess (Makefile.am): Likewise.
35653 * modules/exclude (Makefile.am): Likewise.
35654 * modules/exitfail (Makefile.am): Likewise.
35655 * modules/fcntl-safer (Makefile.am): Likewise.
35656 * modules/fcntl (Makefile.am): Likewise.
35657 * modules/file-type (Makefile.am): Likewise.
35658 * modules/fileblocks (Makefile.am): Likewise.
35659 * modules/filemode (Makefile.am): Likewise.
35660 * modules/filenamecat (Makefile.am): Likewise.
35661 * modules/fnmatch (Makefile.am): Likewise.
35662 * modules/fopen-safer (Makefile.am): Likewise.
35663 * modules/fpending (Makefile.am): Likewise.
35664 * modules/fprintftime (Makefile.am): Likewise.
35665 * modules/free (Makefile.am): Likewise.
35666 * modules/fsusage (Makefile.am): Likewise.
35667 * modules/ftruncate (Makefile.am): Likewise.
35668 * modules/fts (Makefile.am): Likewise.
35669 * modules/gc-arcfour (Makefile.am): Likewise.
35670 * modules/gc-des (Makefile.am): Likewise.
35671 * modules/gc-hmac-md5 (Makefile.am): Likewise.
35672 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
35673 * modules/gc-md4 (Makefile.am): Likewise.
35674 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
35675 * modules/gc-sha1 (Makefile.am): Likewise.
35676 * modules/gc (Makefile.am): Likewise.
35677 * modules/getaddrinfo (Makefile.am): Likewise.
35678 * modules/getcwd (Makefile.am): Likewise.
35679 * modules/getdelim (Makefile.am): Likewise.
35680 * modules/getdomainname (Makefile.am): Likewise.
35681 * modules/getgroups (Makefile.am): Likewise.
35682 * modules/gethostname (Makefile.am): Likewise.
35683 * modules/gethrxtime (Makefile.am): Likewise.
35684 * modules/getline (Makefile.am): Likewise.
35685 * modules/getloadavg (Makefile.am): Likewise.
35686 * modules/getlogin_r (Makefile.am): Likewise.
35687 * modules/getndelim2 (Makefile.am): Likewise.
35688 * modules/getopt (Makefile.am): Likewise.
35689 * modules/getpagesize (Makefile.am): Likewise.
35690 * modules/getpass-gnu (Makefile.am): Likewise.
35691 * modules/getpass (Makefile.am): Likewise.
35692 * modules/getsubopt (Makefile.am): Likewise.
35693 * modules/gettime (Makefile.am): Likewise.
35694 * modules/gettimeofday (Makefile.am): Likewise.
35695 * modules/getugroups (Makefile.am): Likewise.
35696 * modules/getusershell (Makefile.am): Likewise.
35697 * modules/glob (Makefile.am): Likewise.
35698 * modules/group-member (Makefile.am): Likewise.
35699 * modules/hard-locale (Makefile.am): Likewise.
35700 * modules/hash (Makefile.am): Likewise.
35701 * modules/hmac-md5 (Makefile.am): Likewise.
35702 * modules/hmac-sha1 (Makefile.am): Likewise.
35703 * modules/human (Makefile.am): Likewise.
35704 * modules/idcache (Makefile.am): Likewise.
35705 * modules/imaxabs (Makefile.am): Likewise.
35706 * modules/imaxdiv (Makefile.am): Likewise.
35707 * modules/inet_ntop (Makefile.am): Likewise.
35708 * modules/inet_pton (Makefile.am): Likewise.
35709 * modules/intprops (Makefile.am): Likewise.
35710 * modules/inttostr (Makefile.am): Likewise.
35711 * modules/inttypes (Makefile.am): Likewise.
35712 * modules/isapipe (Makefile.am): Likewise.
35713 * modules/javaversion (Makefile.am): Likewise.
35714 * modules/lchmod (Makefile.am): Likewise.
35715 * modules/lchown (Makefile.am): Likewise.
35716 * modules/localcharset (Makefile.am): Likewise.
35717 * modules/long-options (Makefile.am): Likewise.
35718 * modules/lstat (Makefile.am): Likewise.
35719 * modules/malloc (Makefile.am): Likewise.
35720 * modules/mathl (Makefile.am): Likewise.
35721 * modules/mbchar (Makefile.am): Likewise.
35722 * modules/md2 (Makefile.am): Likewise.
35723 * modules/md4 (Makefile.am): Likewise.
35724 * modules/md5 (Makefile.am): Likewise.
35725 * modules/memcasecmp (Makefile.am): Likewise.
35726 * modules/memchr (Makefile.am): Likewise.
35727 * modules/memcmp (Makefile.am): Likewise.
35728 * modules/memcoll (Makefile.am): Likewise.
35729 * modules/memcpy (Makefile.am): Likewise.
35730 * modules/memmem (Makefile.am): Likewise.
35731 * modules/memmove (Makefile.am): Likewise.
35732 * modules/mempcpy (Makefile.am): Likewise.
35733 * modules/memrchr (Makefile.am): Likewise.
35734 * modules/memset (Makefile.am): Likewise.
35735 * modules/memxor (Makefile.am): Likewise.
35736 * modules/mkancesdirs (Makefile.am): Likewise.
35737 * modules/mkdir-p (Makefile.am): Likewise.
35738 * modules/mkdir (Makefile.am): Likewise.
35739 * modules/mkdtemp (Makefile.am): Likewise.
35740 * modules/mkstemp (Makefile.am): Likewise.
35741 * modules/mktime (Makefile.am): Likewise.
35742 * modules/modechange (Makefile.am): Likewise.
35743 * modules/mountlist (Makefile.am): Likewise.
35744 * modules/nanosleep (Makefile.am): Likewise.
35745 * modules/obstack (Makefile.am): Likewise.
35746 * modules/openat (Makefile.am): Likewise.
35747 * modules/pagealign_alloc (Makefile.am): Likewise.
35748 * modules/pathmax (Makefile.am): Likewise.
35749 * modules/physmem (Makefile.am): Likewise.
35750 * modules/poll (Makefile.am): Likewise.
35751 * modules/posixtm (Makefile.am): Likewise.
35752 * modules/posixver (Makefile.am): Likewise.
35753 * modules/putenv (Makefile.am): Likewise.
35754 * modules/quote (Makefile.am): Likewise.
35755 * modules/quotearg (Makefile.am): Likewise.
35756 * modules/raise (Makefile.am): Likewise.
35757 * modules/read-file (Makefile.am): Likewise.
35758 * modules/readline (Makefile.am): Likewise.
35759 * modules/readlink (Makefile.am): Likewise.
35760 * modules/readtokens (Makefile.am): Likewise.
35761 * modules/readutmp (Makefile.am): Likewise.
35762 * modules/realloc (Makefile.am): Likewise.
35763 * modules/regex (Makefile.am): Likewise.
35764 * modules/rename-dest-slash (Makefile.am): Likewise.
35765 * modules/rename (Makefile.am): Likewise.
35766 * modules/rijndael (Makefile.am): Likewise.
35767 * modules/rmdir (Makefile.am): Likewise.
35768 * modules/rpmatch (Makefile.am): Likewise.
35769 * modules/safe-read (Makefile.am): Likewise.
35770 * modules/safe-write (Makefile.am): Likewise.
35771 * modules/same-inode (Makefile.am): Likewise.
35772 * modules/same (Makefile.am): Likewise.
35773 * modules/save-cwd (Makefile.am): Likewise.
35774 * modules/savedir (Makefile.am): Likewise.
35775 * modules/setenv (Makefile.am): Likewise.
35776 * modules/settime (Makefile.am): Likewise.
35777 * modules/sha1 (Makefile.am): Likewise.
35778 * modules/sig2str (Makefile.am): Likewise.
35779 * modules/snprintf (Makefile.am): Likewise.
35780 * modules/stat-macros (Makefile.am): Likewise.
35781 * modules/stat-time (Makefile.am): Likewise.
35782 * modules/stdbool (Makefile.am): Likewise.
35783 * modules/stdint (Makefile.am): Likewise.
35784 * modules/stdlib-safer (Makefile.am): Likewise.
35785 * modules/stpcpy (Makefile.am): Likewise.
35786 * modules/stpncpy (Makefile.am): Likewise.
35787 * modules/strcase (Makefile.am): Likewise.
35788 * modules/strcasestr (Makefile.am): Likewise.
35789 * modules/strchrnul (Makefile.am): Likewise.
35790 * modules/strcspn (Makefile.am): Likewise.
35791 * modules/strdup (Makefile.am): Likewise.
35792 * modules/strerror (Makefile.am): Likewise.
35793 * modules/strftime (Makefile.am): Likewise.
35794 * modules/strndup (Makefile.am): Likewise.
35795 * modules/strnlen (Makefile.am): Likewise.
35796 * modules/strpbrk (Makefile.am): Likewise.
35797 * modules/strsep (Makefile.am): Likewise.
35798 * modules/strstr (Makefile.am): Likewise.
35799 * modules/strtod (Makefile.am): Likewise.
35800 * modules/strtoimax (Makefile.am): Likewise.
35801 * modules/strtok_r (Makefile.am): Likewise.
35802 * modules/strtol (Makefile.am): Likewise.
35803 * modules/strtoll (Makefile.am): Likewise.
35804 * modules/strtoul (Makefile.am): Likewise.
35805 * modules/strtoull (Makefile.am): Likewise.
35806 * modules/strtoumax (Makefile.am): Likewise.
35807 * modules/strverscmp (Makefile.am): Likewise.
35808 * modules/sys_socket (Makefile.am): Likewise.
35809 * modules/sys_stat (Makefile.am): Likewise.
35810 * modules/sysexits (Makefile.am): Likewise.
35811 * modules/time_r (Makefile.am): Likewise.
35812 * modules/timegm (Makefile.am): Likewise.
35813 * modules/timespec (Makefile.am): Likewise.
35814 * modules/tmpfile-safer (Makefile.am): Likewise.
35815 * modules/trim (Makefile.am): Likewise.
35816 * modules/unistd-safer (Makefile.am): Likewise.
35817 * modules/unlinkdir (Makefile.am): Likewise.
35818 * modules/unlocked-io (Makefile.am): Likewise.
35819 * modules/userspec (Makefile.am): Likewise.
35820 * modules/utime (Makefile.am): Likewise.
35821 * modules/utimecmp (Makefile.am): Likewise.
35822 * modules/utimens (Makefile.am): Likewise.
35823 * modules/vasnprintf (Makefile.am): Likewise.
35824 * modules/vasprintf (Makefile.am): Likewise.
35825 * modules/vsnprintf (Makefile.am): Likewise.
35826 * modules/xalloc (Makefile.am): Likewise.
35827 * modules/xgetcwd (Makefile.am): Likewise.
35828 * modules/xnanosleep (Makefile.am): Likewise.
35829 * modules/xreadlink (Makefile.am): Likewise.
35830 * modules/xstrtod (Makefile.am): Likewise.
35831 * modules/xstrtol (Makefile.am): Likewise.
35832 * modules/xstrtold (Makefile.am): Likewise.
35833 * modules/yesno (Makefile.am): Likewise.
35834 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
35836 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
35838 * modules/error (Makefile.am): Distribute files through
35839 EXTRA_DIST, not lib_SOURCES.
35841 2006-10-12 Eric Blake <ebb9@byu.net>
35843 * modules/error (Makefile.am): Distribute files in /lib.
35844 * modules/obstack (Makefile.am): Likewise.
35846 2006-10-12 Bruno Haible <bruno@clisp.org>
35848 * modules/acl (Makefile.am): Distribute all files in lib/ through
35850 * modules/arcfour (Makefile.am): Likewise.
35851 * modules/arctwo (Makefile.am): Likewise.
35852 * modules/argmatch (Makefile.am): Likewise.
35853 * modules/argz (Makefile.am): Likewise.
35854 * modules/atexit (Makefile.am): Likewise.
35855 * modules/backupfile (Makefile.am): Likewise.
35856 * modules/c-strtod (Makefile.am): Likewise.
35857 * modules/c-strtold (Makefile.am): Likewise.
35858 * modules/calloc (Makefile.am): Likewise.
35859 * modules/canon-host (Makefile.am): Likewise.
35860 * modules/canonicalize (Makefile.am): Likewise.
35861 * modules/chdir-long (Makefile.am): Likewise.
35862 * modules/chdir-safer (Makefile.am): Likewise.
35863 * modules/check-version (Makefile.am): Likewise.
35864 * modules/chown (Makefile.am): Likewise.
35865 * modules/cloexec (Makefile.am): Likewise.
35866 * modules/close-stream (Makefile.am): Likewise.
35867 * modules/closeout (Makefile.am): Likewise.
35868 * modules/crc (Makefile.am): Likewise.
35869 * modules/cycle-check (Makefile.am): Likewise.
35870 * modules/des (Makefile.am): Likewise.
35871 * modules/dirfd (Makefile.am): Likewise.
35872 * modules/dirname (Makefile.am): Likewise.
35873 * modules/dup2 (Makefile.am): Likewise.
35874 * modules/euidaccess (Makefile.am): Likewise.
35875 * modules/exclude (Makefile.am): Likewise.
35876 * modules/exitfail (Makefile.am): Likewise.
35877 * modules/fcntl-safer (Makefile.am): Likewise.
35878 * modules/file-type (Makefile.am): Likewise.
35879 * modules/fileblocks (Makefile.am): Likewise.
35880 * modules/filemode (Makefile.am): Likewise.
35881 * modules/filenamecat (Makefile.am): Likewise.
35882 * modules/fnmatch (Makefile.am): Likewise.
35883 * modules/fopen-safer (Makefile.am): Likewise.
35884 * modules/fpending (Makefile.am): Likewise.
35885 * modules/fprintftime (Makefile.am): Likewise.
35886 * modules/free (Makefile.am): Likewise.
35887 * modules/fsusage (Makefile.am): Likewise.
35888 * modules/ftruncate (Makefile.am): Likewise.
35889 * modules/fts (Makefile.am): Likewise.
35890 * modules/gc (Makefile.am): Likewise.
35891 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
35892 * modules/getaddrinfo (Makefile.am): Likewise.
35893 * modules/getcwd (Makefile.am): Likewise.
35894 * modules/getdelim (Makefile.am): Likewise.
35895 * modules/getdomainname (Makefile.am): Likewise.
35896 * modules/getgroups (Makefile.am): Likewise.
35897 * modules/gethostname (Makefile.am): Likewise.
35898 * modules/gethrxtime (Makefile.am): Likewise.
35899 * modules/getline (Makefile.am): Likewise.
35900 * modules/getloadavg (Makefile.am): Likewise.
35901 * modules/getlogin_r (Makefile.am): Likewise.
35902 * modules/getopt (Makefile.am): Likewise.
35903 * modules/getpass (Makefile.am): Likewise.
35904 * modules/getpass-gnu (Makefile.am): Likewise.
35905 * modules/getsubopt (Makefile.am): Likewise.
35906 * modules/gettime (Makefile.am): Likewise.
35907 * modules/gettimeofday (Makefile.am): Likewise.
35908 * modules/getugroups (Makefile.am): Likewise.
35909 * modules/getusershell (Makefile.am): Likewise.
35910 * modules/glob (Makefile.am): Likewise.
35911 * modules/group-member (Makefile.am): Likewise.
35912 * modules/hard-locale (Makefile.am): Likewise.
35913 * modules/hash (Makefile.am): Likewise.
35914 * modules/hmac-md5 (Makefile.am): Likewise.
35915 * modules/hmac-sha1 (Makefile.am): Likewise.
35916 * modules/human (Makefile.am): Likewise.
35917 * modules/idcache (Makefile.am): Likewise.
35918 * modules/imaxabs (Makefile.am): Likewise.
35919 * modules/imaxdiv (Makefile.am): Likewise.
35920 * modules/inet_ntop (Makefile.am): Likewise.
35921 * modules/inet_pton (Makefile.am): Likewise.
35922 * modules/inttostr (Makefile.am): Likewise.
35923 * modules/isapipe (Makefile.am): Likewise.
35924 * modules/lchown (Makefile.am): Likewise.
35925 * modules/long-options (Makefile.am): Likewise.
35926 * modules/lstat (Makefile.am): Likewise.
35927 * modules/malloc (Makefile.am): Likewise.
35928 * modules/mathl (Makefile.am): Likewise.
35929 * modules/mbchar (Makefile.am): Likewise.
35930 * modules/md2 (Makefile.am): Likewise.
35931 * modules/md4 (Makefile.am): Likewise.
35932 * modules/md5 (Makefile.am): Likewise.
35933 * modules/memcasecmp (Makefile.am): Likewise.
35934 * modules/memchr (Makefile.am): Likewise.
35935 * modules/memcmp (Makefile.am): Likewise.
35936 * modules/memcoll (Makefile.am): Likewise.
35937 * modules/memcpy (Makefile.am): Likewise.
35938 * modules/memmem (Makefile.am): Likewise.
35939 * modules/memmove (Makefile.am): Likewise.
35940 * modules/mempcpy (Makefile.am): Likewise.
35941 * modules/memrchr (Makefile.am): Likewise.
35942 * modules/memset (Makefile.am): Likewise.
35943 * modules/memxor (Makefile.am): Likewise.
35944 * modules/mkancesdirs (Makefile.am): Likewise.
35945 * modules/mkdir (Makefile.am): Likewise.
35946 * modules/mkdir-p (Makefile.am): Likewise.
35947 * modules/mkdtemp (Makefile.am): Likewise.
35948 * modules/mkstemp (Makefile.am): Likewise.
35949 * modules/mktime (Makefile.am): Likewise.
35950 * modules/modechange (Makefile.am): Likewise.
35951 * modules/mountlist (Makefile.am): Likewise.
35952 * modules/nanosleep (Makefile.am): Likewise.
35953 * modules/openat (Makefile.am): Likewise.
35954 * modules/pagealign_alloc (Makefile.am): Likewise.
35955 * modules/physmem (Makefile.am): Likewise.
35956 * modules/poll (Makefile.am): Likewise.
35957 * modules/posixtm (Makefile.am): Likewise.
35958 * modules/posixver (Makefile.am): Likewise.
35959 * modules/putenv (Makefile.am): Likewise.
35960 * modules/quote (Makefile.am): Likewise.
35961 * modules/quotearg (Makefile.am): Likewise.
35962 * modules/raise (Makefile.am): Likewise.
35963 * modules/read-file (Makefile.am): Likewise.
35964 * modules/readline (Makefile.am): Likewise.
35965 * modules/readlink (Makefile.am): Likewise.
35966 * modules/readtokens (Makefile.am): Likewise.
35967 * modules/readutmp (Makefile.am): Likewise.
35968 * modules/realloc (Makefile.am): Likewise.
35969 * modules/regex (Makefile.am): Likewise.
35970 * modules/rename (Makefile.am): Likewise.
35971 * modules/rename-dest-slash (Makefile.am): Likewise.
35972 * modules/rijndael (Makefile.am): Likewise.
35973 * modules/rmdir (Makefile.am): Likewise.
35974 * modules/rpmatch (Makefile.am): Likewise.
35975 * modules/safe-read (Makefile.am): Likewise.
35976 * modules/safe-write (Makefile.am): Likewise.
35977 * modules/same (Makefile.am): Likewise.
35978 * modules/save-cwd (Makefile.am): Likewise.
35979 * modules/savedir (Makefile.am): Likewise.
35980 * modules/setenv (Makefile.am): Likewise.
35981 * modules/settime (Makefile.am): Likewise.
35982 * modules/sha1 (Makefile.am): Likewise.
35983 * modules/sig2str (Makefile.am): Likewise.
35984 * modules/snprintf (Makefile.am): Likewise.
35985 * modules/stdlib-safer (Makefile.am): Likewise.
35986 * modules/stpcpy (Makefile.am): Likewise.
35987 * modules/stpncpy (Makefile.am): Likewise.
35988 * modules/strcase (Makefile.am): Likewise.
35989 * modules/strcasestr (Makefile.am): Likewise.
35990 * modules/strchrnul (Makefile.am): Likewise.
35991 * modules/strcspn (Makefile.am): Likewise.
35992 * modules/strdup (Makefile.am): Likewise.
35993 * modules/strerror (Makefile.am): Likewise.
35994 * modules/strftime (Makefile.am): Likewise.
35995 * modules/strndup (Makefile.am): Likewise.
35996 * modules/strnlen (Makefile.am): Likewise.
35997 * modules/strpbrk (Makefile.am): Likewise.
35998 * modules/strsep (Makefile.am): Likewise.
35999 * modules/strstr (Makefile.am): Likewise.
36000 * modules/strtod (Makefile.am): Likewise.
36001 * modules/strtoimax (Makefile.am): Likewise.
36002 * modules/strtok_r (Makefile.am): Likewise.
36003 * modules/strtol (Makefile.am): Likewise.
36004 * modules/strtoll (Makefile.am): Likewise.
36005 * modules/strtoul (Makefile.am): Likewise.
36006 * modules/strtoull (Makefile.am): Likewise.
36007 * modules/strtoumax (Makefile.am): Likewise.
36008 * modules/strverscmp (Makefile.am): Likewise.
36009 * modules/time_r (Makefile.am): Likewise.
36010 * modules/timegm (Makefile.am): Likewise.
36011 * modules/tmpfile-safer (Makefile.am): Likewise.
36012 * modules/unistd-safer (Makefile.am): Likewise.
36013 * modules/unlinkdir (Makefile.am): Likewise.
36014 * modules/userspec (Makefile.am): Likewise.
36015 * modules/utime (Makefile.am): Likewise.
36016 * modules/utimecmp (Makefile.am): Likewise.
36017 * modules/utimens (Makefile.am): Likewise.
36018 * modules/vasnprintf (Makefile.am): Likewise.
36019 * modules/vasprintf (Makefile.am): Likewise.
36020 * modules/vsnprintf (Makefile.am): Likewise.
36021 * modules/xalloc (Makefile.am): Likewise.
36022 * modules/xgetcwd (Makefile.am): Likewise.
36023 * modules/xnanosleep (Makefile.am): Likewise.
36024 * modules/xreadlink (Makefile.am): Likewise.
36025 * modules/xstrtod (Makefile.am): Likewise.
36026 * modules/xstrtol (Makefile.am): Likewise.
36027 * modules/xstrtold (Makefile.am): Likewise.
36028 * modules/yesno (Makefile.am): Likewise.
36030 2006-10-12 Jim Meyering <jim@meyering.net>
36032 * m4/getloadavg.m4: Revert the change below.
36034 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
36035 lib/getloadavg.c using "ls -L", not "test -f". The latter would
36036 fail with a symlink, which is what coreutils' ./bootstrap now
36037 creates by default.
36039 2006-10-12 Bruno Haible <bruno@clisp.org>
36041 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
36043 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
36044 MSVC and mingw explicitly.
36046 2006-10-11 Simon Josefsson <jas@extundo.com>
36047 Bruno Haible <bruno@clisp.org>
36049 Add support for multiple gnulib-tool invocations in the scope of a
36050 single configure.ac file.
36051 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
36052 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
36053 with the same contents as the _LIBADD variable.
36054 (func_emit_initmacro_start, func_emit_initmacro_end,
36055 func_emit_initmacro_done): New functions.
36056 (func_import, func_create_testdir): Invoke them. Allow the identifiers
36057 gl_LIBOBJS and gl_LTLIBOBJS.
36059 2006-10-11 Bruno Haible <bruno@clisp.org>
36061 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
36062 (func_create_testdir): Don't create po/Makefile.am, don't invoke
36063 autoreconf. Instead, invoke autopoint explicitly but move back the
36064 *.m4 files from gnulib.
36066 2006-10-11 Bruno Haible <bruno@clisp.org>
36068 * gnulib-tool (func_usage): Make module names after --create-testdir
36070 (func_create_testdir): If no module was specified, use nearly all
36073 2006-10-12 Jim Meyering <jim@meyering.net>
36075 Big performance improvement for fts-based tools that use FTS_NOSTAT.
36076 Avoid spurious inode-mismatch problems on non-POSIX file systems.
36077 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
36078 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
36079 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
36080 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
36081 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
36082 (fts_set_stat_required): New function.
36083 (fts_open): Defer the calls to fts_stat, if possible or requested.
36084 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
36085 into fts_stat itself.
36086 (fts_read): Perform any required (deferred) fts_stat call.
36087 (fts_build): Likewise, for the directory we're about to open and read.
36088 In the readdir loop, carefully decide whether each entry will require
36089 an eventual call to fts_stat, using dirent.d_type info if available.
36090 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
36091 a command line argument into this function. Update all callers.
36092 Map a return value of FTS_DOT to FTS_D for a command line argument.
36093 * modules/fts (Depends-on): Add d-type. Alphabetize.
36094 Thanks to Miklos Szeredi for his tenacity and for the initial
36095 bug report about "find" failing on a FUSE-based file system.
36097 * lib/fts.c (fts_open): Use consistent indentation.
36099 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
36101 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
36102 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
36103 reported by Jim Meyering. All uses of cache variables renamed
36104 to match Autoconf's.
36105 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
36108 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36109 Fix misspelling in diagnostic.
36111 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
36113 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
36114 defined. Problem reported by Matthew Woehlke.
36116 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
36117 Add support for Tandem NonStop R series.
36118 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
36121 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
36122 (has_trailing_slash): Omit size arg; all callers changed.
36123 Omit 'inline', since it doesn't help performance and we'd
36124 need to configure it.
36125 Don't count //, ///, etc. as having a trailing slash.
36126 As a side effect, this removes a C99ism reported by Matthew Woehlke.
36127 (rpl_rename_dest_slash): On failure, use rename's errno rather
36128 than (in some cases) an incorrect or junk errno.
36129 Simplify code by removing need to compute length; this does
36130 cause it to make two passes instead of one over the file name,
36133 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
36134 change, since Autoconf's version may no longer be appropriate now
36135 that we are using CVS Autoconf's version. Add support for Tandem.
36137 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
36138 Bruno Haible <bruno@clisp.org>
36140 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
36141 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
36142 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
36143 gl_AC_TYPE_LONG_LONG.
36145 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
36146 instead of HAVE_LONG_LONG.
36147 * lib/printf-args.c (printf_fetchargs): Likewise.
36148 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
36149 * lib/vasnprintf.c (VASNPRINTF): Likewise.
36150 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
36151 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
36152 gl_AC_TYPE_LONG_LONG.
36154 2006-10-11 Bruno Haible <bruno@clisp.org>
36156 * m4/longlong.m4: Add comments.
36157 * m4/ulonglong.m4: Likewise.
36159 2006-10-10 Bruno Haible <bruno@clisp.org>
36161 Make it possible to #define stpcpy, strdup to aliases.
36162 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
36163 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
36165 2006-10-10 Bruno Haible <bruno@clisp.org>
36167 Make it possible to #define gcd to an alias.
36168 * lib/gcd.c: Include config.h.
36170 2006-10-10 Bruno Haible <bruno@clisp.org>
36172 Make it possible to #define c_isascii to an alias.
36173 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
36174 defined. Undefine the macros before defining them, to avoid gcc
36176 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
36177 define NO_C_CTYPE_MACROS early.
36179 2006-10-10 Bruno Haible <bruno@clisp.org>
36181 Make it possible to #define set_program_name to an alias.
36182 * lib/progname.c: Don't undefine set_program_name; instead, undefine
36183 ENABLE_RELOCATABLE early.
36185 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
36187 Port to Tandem NSK OSS, which has 64-bit signed int but at most
36188 32-bit unsigned int. Problem reported by Matthew Woehlke in:
36189 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
36190 More generally, don't assume that 64-bit signed int is available
36191 if unsigned int is, and vice versa.
36192 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
36193 unsigned symbols, not on their signed counterparts.
36194 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
36195 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
36196 (UINT64_C, UINTMAX_C):
36198 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
36199 unsigned counterparts.
36200 (Have_long_long, Unsigned): New macros.
36201 (Int): Renamed from INT.
36202 (strtoimax): Use the new macros.
36203 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
36204 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
36205 * modules/inttypes (inttypes.h): Substitute
36206 HAVE_UNSIGNED_LONG_LONG_INT.
36207 * modules/stdint (stdint.h): Likewise.
36208 (Files): Add m4/ulonglong.m4.
36210 2006-10-10 Bruno Haible <bruno@clisp.org>
36212 Fix a gcc -Wshadow warning.
36213 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
36215 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
36216 gl_linked_indexof_from_to): Likewise.
36217 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
36219 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
36221 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
36222 Reported by Eric Blake.
36224 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
36226 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
36227 for NetBSD. Problem reported by Bruno Haible.
36229 2006-10-09 Jim Meyering <jim@meyering.net>
36231 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
36232 Patch from Bruno Haible.
36234 2006-10-09 Jim Meyering <jim@meyering.net>
36236 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
36237 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
36238 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
36240 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
36242 Don't include <config.h> twice; this doesn't work in some cases,
36243 e.g., when config.h has "#define intmax_t long long int" and
36244 we include <config.h>, <inttypes.h>, <config.h> in that order.
36245 Problem reported by Matthew Woehlke in:
36246 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
36247 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
36248 * lib/fts-cycle.c: Don't include config.h.
36249 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
36250 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
36251 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
36252 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
36254 * lib/xstrtoumax.c: Likewise.
36255 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
36256 __strtol and the like, so that this module is more like its siblings.
36257 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
36258 Remove; no longer needed now that we assume gnulib inttypes.h.
36260 2006-10-08 Bruno Haible <bruno@clisp.org>
36262 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
36265 2006-10-07 Jim Meyering <jim@meyering.net>
36267 * modules/inttypes (inttypes.h): Revert what seems to have been
36268 an inadvertent part of today's change: use "|", not "/" in the
36269 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
36271 2006-10-07 Bruno Haible <bruno@clisp.org>
36273 * modules/sublist: New file.
36275 2006-10-07 Bruno Haible <bruno@clisp.org>
36277 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
36278 * modules/argz (argz.h): Likewise.
36279 * modules/arpa_inet (arpa/inet.h): Likewise.
36280 * modules/byteswap (byteswap.h): Likewise.
36281 * modules/configmake (configmake.h): Likewise.
36282 * modules/fcntl (fcntl.h): Likewise.
36283 * modules/fnmatch (fnmatch.h): Likewise.
36284 * modules/getopt (getopt.h): Likewise.
36285 * modules/glob (glob.h): Likewise.
36286 * modules/inttypes (inttypes.h): Likewise.
36287 * modules/netinet_in (netinet/in.h): Likewise.
36288 * modules/poll (poll.h): Likewise.
36289 * modules/stdbool (stdbool.h): Likewise.
36290 * modules/stdint (stdint.h): Likewise.
36291 * modules/sys_select (sys/select.h): Likewise.
36292 * modules/sys_socket (sys/socket.h): Likewise.
36293 * modules/sys_stat (sys/stat.h): Likewise.
36294 * modules/sysexits (sysexits.h): Likewise.
36295 * modules/unistd (unistd.h): Likewise.
36296 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36297 Add a "DO NOT EDIT" comment to the generated file.
36298 (func_import): Likewise for gnulib-comp.m4.
36300 2006-10-07 Bruno Haible <bruno@clisp.org>
36302 * lib/gl_sublist.h: New file.
36303 * lib/gl_sublist.c: New file.
36305 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
36307 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
36308 name (relative to the original working directory) and the file
36309 name component (relative to the temporary working directory). All
36311 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
36312 * lib/mkdir-p.c (make_dir_parents): Likewise.
36313 * lib/mkdir-p.h (make_dir_parents): Likewise.
36315 2006-10-06 Eric Blake <ebb9@byu.net>
36317 Define several macros for use by the clean-temp module.
36318 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
36319 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
36320 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
36322 * lib/clean-temp.h (close_stream_temp): New declaration.
36323 * lib/clean-temp.c (includes): Pull in headers according to what
36324 other modules are in use.
36325 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
36327 2006-10-06 Bruno Haible <bruno@clisp.org>
36329 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
36330 instead of fopen, fwriteerror.
36332 2006-10-06 Bruno Haible <bruno@clisp.org>
36334 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
36335 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
36337 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
36338 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
36339 Return an error indicator.
36340 Suggested by Eric Blake.
36342 2006-10-06 Bruno Haible <bruno@clisp.org>
36344 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
36345 Reported by Eric Blake.
36347 2006-10-06 Bruno Haible <bruno@clisp.org>
36349 * modules/closeout (Description): Mention stderr too.
36351 2006-10-06 Bruno Haible <bruno@clisp.org>
36352 and Paul Eggert <eggert@cs.ucla.edu>
36354 * lib/closeout.c (close_stdout): Also close stderr.
36355 * lib/closeout.h: Update comment.
36357 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
36359 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
36360 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
36361 * lib/dirchownmod.c: Include lchown.h.
36362 * lib/lchown.c: Don't include files that lchown.h now includes.
36363 Don't declare chown, since lchown.h now does that.
36364 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
36365 (lchown): Define to rpl_chown if lchown is declared but
36366 does not exist. Declare using a prototype if lchown is not
36367 declared. Add a copyright notice.
36368 * lib/mkstemp.h: Include <unistd.h>.
36369 * lib/openat.c: Include lchown.h.
36371 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
36372 we now test for that separately.
36373 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
36374 rather than O_NOFOLLOW, when testing whether it's possible to
36375 avoid a race condition reliably.
36376 * lib/savewd.c (savewd_chdir): Likewise.
36378 Remove macros that are no longer needed now that stdint.h is
36380 * lib/fsusage.c (UINTMAX_MAX): Remove.
36381 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
36382 * lib/utimecmp.c (SIZE_MAX): Remove.
36384 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
36386 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
36387 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
36390 2006-10-05 Bruno Haible <bruno@clisp.org>
36392 * lib/gl_list.h (gl_sortedlist_search_from_to,
36393 gl_sortedlist_indexof_from_to): New declarations.
36394 (gl_list_implementation): New fields sortedlist_search_from_to,
36395 sortedlist_indexof_from_to.
36396 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
36398 * lib/gl_list.c (gl_sortedlist_search_from_to,
36399 gl_sortedlist_indexof_from_to): New functions.
36400 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
36402 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
36403 (gl_array_sortedlist_search_from_to): New function.
36404 (gl_array_list_implementation): Update.
36405 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
36407 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
36408 (gl_carray_sortedlist_search_from_to): New function.
36409 (gl_carray_list_implementation): Update.
36410 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
36411 gl_linked_sortedlist_indexof_from_to): New functions.
36412 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
36413 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
36414 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
36415 gl_tree_sortedlist_indexof_from_to): New functions.
36416 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
36417 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
36419 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
36420 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
36423 2006-10-05 Bruno Haible <bruno@clisp.org>
36425 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
36426 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
36427 (struct gl_list_implementation): Add fields search_from_to,
36428 indexof_from_to. Remove fields search, indexof.
36429 (gl_list_search): Use the search_from_to method.
36430 (gl_list_search_from, gl_list_search_from_to): New functions.
36431 (gl_list_indexof): Use the indexof_from_to method.
36432 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
36433 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
36434 (gl_list_search_from, gl_list_search_from_to): New functions.
36435 (gl_list_indexof): Use the indexof_from_to method.
36436 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
36437 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
36438 gl_array_indexof. Add start_index, end_index arguments.
36439 (gl_array_search_from_to): Renamed from gl_array_search. Add
36440 start_index, end_index arguments.
36441 (gl_array_remove, gl_array_list_implementation): Update.
36442 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
36443 gl_carray_indexof. Add start_index, end_index arguments.
36444 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
36445 start_index, end_index arguments.
36446 (gl_carray_remove, gl_carray_list_implementation): Update.
36447 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
36448 gl_linked_search. Add start_index, end_index arguments.
36449 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
36450 start_index, end_index arguments.
36451 (gl_linked_remove): Update.
36452 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
36453 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
36454 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
36456 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
36457 gl_tree_search. Add start_index, end_index arguments.
36458 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
36459 start_index, end_index arguments.
36460 (gl_tree_remove): Update.
36461 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
36462 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
36463 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
36465 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
36466 gl_tree_search. Add start_index, end_index arguments.
36467 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
36468 start_index, end_index arguments.
36469 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
36471 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
36473 2006-10-05 Bruno Haible <bruno@clisp.org>
36475 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
36477 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
36478 fwriteerror_temp): New declarations.
36479 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
36480 (descriptors): New variable.
36481 (cleanup): First, close the descriptors.
36482 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
36483 fclose_temp, fwriteerror_temp): New functions.
36485 2006-10-04 Jim Meyering <jim@meyering.net>
36487 * lib/fts.c (fts_open): Tiny comment change.
36489 2006-10-04 Bruno Haible <bruno@clisp.org>
36491 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
36492 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
36494 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
36495 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
36496 gl_LOCK_EARLY_BODY.
36497 (gl_LOCK): Require gl_LOCK_BODY.
36499 2006-10-04 Bruno Haible <bruno@clisp.org>
36501 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
36502 (gl_oset_search_atleast): New declaration.
36503 (struct gl_oset_implementation): Add field 'search_atleast'.
36504 (gl_oset_search_atleast): New inline function.
36505 * lib/gl_oset.c (gl_oset_search_atleast): New function.
36506 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
36507 (gl_array_oset_implementation): Update.
36508 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
36509 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
36510 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
36512 2006-10-04 Bruno Haible <bruno@clisp.org>
36514 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
36516 2006-10-03 Bruno Haible <bruno@clisp.org>
36518 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
36519 from gl_avltreehash_list_implementation.
36521 2006-10-03 Bruno Haible <bruno@clisp.org>
36523 * lib/gl_oset.c (gl_oset_add): Fix return type.
36525 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
36527 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
36529 2006-10-02 Eric Blake <ebb9@byu.net>
36531 * modules/strnlen (Depends-on): Add extensions.
36533 2006-10-02 Eric Blake <ebb9@byu.net>
36535 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
36536 definition in 2.60+.
36538 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
36540 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
36543 2006-10-02 Bruno Haible <bruno@clisp.org>
36545 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
36546 to the AUTOMAKE_OPTIONS.
36547 Reported by Jim Meyering.
36549 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
36551 Work around bug in Solaris 10 /proc file system:
36552 /proc/self/fd/NNN/.. isn't the parent directory of
36553 the directory whose file descriptor is NNN. This needs to
36554 be worked around at run time, not compile time, since a
36555 program might be built on Solaris 8, where things work, and
36557 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
36558 to use the following interface instead:
36559 (OPENAT_BUFFER_SIZE): New macro.
36560 (openat_proc_name): New function.
36561 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
36562 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
36564 * lib/openat-proc.c: New file.
36565 * modules/openat (Files): Add lib/openat-proc.c.
36566 (Depends-on): Add same-inode, stdbool.
36567 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
36569 2006-09-29 Bruno Haible <bruno@clisp.org>
36571 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
36572 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
36573 argument. Set stdout_closed before testing for ferror, not after.
36574 (fwriteerror, fwriteerror_no_ebadf): New functions.
36576 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36578 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
36580 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
36582 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
36583 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
36585 2006-09-28 Jim Meyering <jim@meyering.net>
36587 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
36588 Include <unistd.h>.
36590 2006-09-28 Bruno Haible <bruno@clisp.org>
36592 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
36593 * modules/linkedhash-list (Depends-on): Likewise.
36594 * modules/rbtreehash-list (Depends-on): Likewise.
36596 2006-09-28 Bruno Haible <bruno@clisp.org>
36598 * lib/strndup.h: Simplify the redefinition of strndup.
36599 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
36600 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
36602 2006-09-28 Bruno Haible <bruno@clisp.org>
36604 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
36605 * lib/gl_linkedhash_list.c: Likewise.
36606 * lib/gl_rbtreehash_list.c: Likewise.
36608 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
36610 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
36613 * lib/__fpending.h: Don't include <stdio_ext.h> unless
36614 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
36615 it causes <stdio_ext.h> to cause a compile-time error.
36616 Problem reported by Nelson H. F. Beebe.
36617 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
36618 of HAVE_DECL___PENDING.
36620 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
36621 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
36624 2006-09-27 Jim Meyering <jim@meyering.net>
36626 This file could end up with a definition for a function
36627 named __strndup, rather than rpl_strndup on a system with
36628 incomplete weak_alias support.
36629 * lib/strndup.c (strndup): Rename from __strndup.
36630 Remove #defines that used to map __strndup to strndup.
36631 Don't use K&R prototypes.
36632 Remove LIBC-related code, since this file is not sync'd with glibc.
36633 * lib/strndup.h: Revamp, accordingly.
36634 * m4/strndup.m4: Modernize.
36636 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
36638 * modules/savewd (Depends-on): Add 'raise'.
36639 * lib/savewd.c: Include <signal.h>, for 'raise'.
36641 2006-09-26 Jim Meyering <jim@meyering.net>
36643 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
36644 when we detect Darwin 8.7.0's acl_get_file bug.
36645 Rearrange to perform the new (below) run-test while $LIBS
36646 contains any acl-related library. Set USE_ACL at the end.
36647 (gl_ACL_GET_FILE): New function.
36649 2006-09-26 Eric Blake <ebb9@byu.net>
36651 * lib/verror.c: Include <config.h> unconditionally.
36653 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
36655 * modules/clock-time (Maintainer): Add self.
36656 * modules/getlogin_r (Depends-on): Add extensions.
36658 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36660 * modules/clock-time: New module.
36661 * modules/nanosleep (Depends-on): Add clock-time.
36662 * modules/gethrxtime (Depends-on): Likewise.
36663 * modules/gettime (Depends-on): Likewise.
36664 * modules/settime (Depends-on): Likewise.
36666 * modules/fts-lgpl: Depend on openat.
36667 * modules/mkancesdirs: Depend on savewd.
36668 * modules/mkdir-p: Likewise.
36670 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36672 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
36674 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
36675 `gl_have_arbitrary_file_name_length_limit' to
36676 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
36677 actually works between configure runs.
36679 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36680 Bruno Haible <bruno@clisp.org>
36682 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
36684 2006-09-25 Jim Meyering <jim@meyering.net>
36686 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
36687 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
36689 2006-09-25 Eric Blake <ebb9@byu.net>
36691 * gnulib-tool (func_import, func_create_testdir): Fix typos in
36692 exec's in 2006-09-18 patch when shuffling fds.
36694 2006-09-25 Bruno Haible <bruno@clisp.org>
36696 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
36697 Reported by Jim Meyering.
36699 2006-09-24 Jim Meyering <jim@meyering.net>
36701 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
36702 compare a pointer against a literal "0". That caused failures with
36703 at least HP-UX's hpcc.
36705 2006-09-22 Simon Josefsson <jas@extundo.com>
36709 * modules/gc-hmac-sha1:
36710 * modules/gc-hmac-md5:
36712 * modules/gc-arcfour: Distribute more files.
36714 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36716 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
36717 (gl_linked_iterator_from_to): Initialize struct completely.
36718 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
36719 (gl_tree_iterator_from_to): Likewise
36720 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
36721 * lib/gl_array_list.c [lint] (gl_array_iterator)
36722 (gl_array_iterator_from_to): Likewise.
36723 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
36724 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
36725 (gl_carray_iterator_from_to): Likewise.
36727 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
36728 * lib/md4.c (md4_process_block): Remove unused variable.
36729 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
36730 parentheses for clarity.
36732 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36734 * modules/bison-i18n (Depends-on): Add gettext.
36736 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36738 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
36739 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
36740 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
36741 also add missing comma that caused broken test.
36742 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
36743 stdlib.h, for `abort'.
36744 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
36746 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
36747 include unistd.h if present, for `rmdir'.
36748 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
36750 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
36751 in the process include standard headers for prototypes.
36752 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
36753 gets declared on GNU/Linux.
36754 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
36755 unistd.h, for `rmdir'.
36756 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
36758 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
36760 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
36762 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
36764 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36766 * gnulib-tool (func_version): Create output all at once. This
36767 may help avoid triggering unnecessary SIGPIPEs, and at any
36768 rate it doesn't hurt.
36770 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36771 Bruno Haible <bruno@clisp.org>
36773 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
36774 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
36775 * m4/signed.m4 (bh_C_SIGNED): Likewise.
36777 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
36778 (gl_FUNC_VASPRINTF): Invoke it.
36780 2006-09-22 Bruno Haible <bruno@clisp.org>
36782 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
36783 getloadavg.c as first argument.
36785 2006-09-22 Bruno Haible <bruno@clisp.org>
36787 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
36788 at the beginning of the gl_INIT macro.
36789 * modules/getloadavg (configure.ac): Pass $gl_source_base to
36792 2006-09-22 Bruno Haible <bruno@clisp.org>
36794 * gnulib-tool (func_create_megatestdir): Don't include the config-h
36796 Suggested by Ralf Wildenhues.
36798 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
36800 Import this patch from libc:
36802 2006-09-06 Jakub Jelinek <jakub@redhat.com>
36804 * lib/regex_internal.c (re_string_reconstruct): Handle
36805 offset < pstr->valid_raw_len && pstr->offsets_needed case.
36806 Ensure no bytes read before raw_mbs array. Pass a saved copy of
36807 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
36808 re_string_context_at.
36810 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
36812 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
36813 gl_REGEX now does it for us.
36814 (gl_REGEX): Add test taken from
36815 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
36817 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
36818 Check that large offsets work. Modernize Autoconf usages.
36819 Prefer "yes" to mean a good thing rather than a bad.
36820 Don't put "#define mkstemp" in config.h, as this might interfere
36821 with standard system headers that "#define mkstemp mkstemp64".
36823 * modules/mkstemp (Depends-on): Add extensions, so that
36824 mkstemp is visible on some platforms.
36825 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
36826 (Include): Change to "mkstemp.h" from <stdlib.h>.
36827 (Files): Add mkstemp.h.
36829 * lib/mkstemp.h: New file, since some standard headers
36831 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
36832 Include "mkstemp.h".
36833 Make the _LIBC code resemble glibc original more,
36834 e.g., use K&R style.
36835 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
36836 (mkstemp): Remove, since mkstemp.h does this for us.
36837 * lib/stdlib--.h: Include mkstemp.h.
36839 Import this patch from libc:
36841 2006-04-07 Ulrich Drepper <drepper@redhat.com>
36843 * lib/tempname.c (__gen_tempname): Change attempts_min
36844 into a macro. Use preprocessor to decide how to initialize
36845 attempts [Coverity CID 67].
36847 2006-09-20 Bruno Haible <bruno@clisp.org>
36849 * lib/mkdtemp.c: Import from libc.
36850 2006-04-07 Ulrich Drepper <drepper@redhat.com>
36851 * sysdeps/posix/tempname.c (__gen_tempname): Change
36852 attempts_min into a macro. Use preprocessor to decide how to
36853 initialize attempts [Coverity CID 67].
36854 2001-11-27 Paul Eggert <eggert@twinsun.com>
36855 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
36856 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
36858 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36860 * gnulib-tool (func_exit): New function, to allow to pass the
36861 exit status portably through the trap. Use everywhere.
36862 (--help, --version): Signal a write error.
36863 (trap): catch SIGPIPE, for write errors.
36864 Exit at the end of the trap, with the correct exit status.
36866 2006-09-19 Karl Berry <karl@gnu.org>
36868 * doc/gnulib.texi: note about the license texinfo files.
36870 2006-09-19 Eric Blake <ebb9@byu.net>
36872 * gnulib-tool: Avoid space-tab.
36874 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
36876 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
36877 that prevented coreutils 6.1 from building. Problem reported
36878 by Petter Reinholdtsen.
36880 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
36882 * gnulib-tool (avoidlist): Fix typo that broke options like
36883 --avoid=lock that are used by coreutils bootstrap.
36885 2006-09-18 Mark D. Baushke <mdb@gnu.org>
36887 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
36888 more systematically.
36890 2006-09-18 Jim Meyering <jim@meyering.net>
36892 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
36894 2006-09-18 Bruno Haible <bruno@clisp.org>
36896 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
36898 2006-09-18 Bruno Haible <bruno@clisp.org>
36900 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
36901 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
36902 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
36903 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
36904 * m4/gettext.m4: Require autoconf >= 2.52.
36905 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
36906 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
36907 of gl_cv_header_inttypes_h.
36909 2006-09-18 Bruno Haible <bruno@clisp.org>
36911 * lib/javaversion.c: Include configmake.h.
36913 2006-09-18 Bruno Haible <bruno@clisp.org>
36915 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
36916 avoid that the while loops be executed in a subshell.
36918 2006-09-18 Bruno Haible <bruno@clisp.org>
36920 * MODULES.html.sh (func_module): Break long lines.
36921 Suggested by Bruce Korb <bkorb@gnu.org>.
36923 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36925 Speed up by a factor of 1.12.
36926 * gnulib-tool (nl): New variable.
36927 (func_import): Rewrite include directive extraction to only read each
36930 2006-09-17 Bruno Haible <bruno@clisp.org>
36932 * modules/javaversion (Makefile.am): Remove DEFS setting.
36933 (Depends-on): Add configmake, for PKGDATADIR definition.
36935 2006-09-17 Bruno Haible <bruno@clisp.org>
36937 * gnulib-tool (func_create_testdir): Rewrite all files at once.
36939 2006-09-17 Bruno Haible <bruno@clisp.org>
36941 * gnulib-tool (func_append): New function, stolen from libtool.m4.
36942 (func_modules_transitive_closure, func_modules_add_dummy,
36943 func_modules_to_filelist, func_import, func_create_testdir,
36944 func_create_megatestdir, ...): Use it wherever possible.
36945 Suggested by Ralf Wildenhues.
36947 2006-09-16 Karl Berry <karl@gnu.org>
36949 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
36950 to avoid sectioning errors.
36951 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
36952 [ifinfo]: blank line after @center-ed titles.
36953 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
36954 Spell FSF address consistently with others.
36955 (These changes approved by rms.)
36957 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36959 Speed up by a factor of 1.61.
36960 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
36961 already checked module names again.
36963 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36965 Speed up by a factor of 1.13.
36966 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
36967 for new_files, and the input to func_add_or_update.
36969 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36971 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
36972 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
36974 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
36976 * modules/mkancesdirs (Depends-on): Add fcntl.
36977 * modules/savewd: New file.
36978 * MODULES.html.sh (File system functions): Add savewd.
36980 * modules/configmake (Makefile.am): Add support for the
36981 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
36983 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
36985 * m4/savewd.m4: New file.
36987 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
36989 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
36990 (dirchownmod): New arg FD. All callers changed.
36991 Use FD rather than opening the directory ourself, as opening is
36992 now the caller's responsibility.
36993 * lib/dirchownmod.h: Likewise.
36994 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
36995 hosts that require <sys/types.h> before <sys/stat.h>. Include
36996 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
36997 (test_dir): Remove.
36998 (mkancesdirs): Return length of prefix of FILE that has already
36999 been made, or -2 if there is a child doing the work. Redo
37000 algorithm so that it is O(N) rather than O(N**2). Optimize away
37001 ".", and treat ".." specially since it might stray back into
37002 already-created areas. Use a subprocess if necessary. New arg
37003 WD; all users changed. MAKE_DIR function should now return 1
37004 if it creates a directory that is not readable. Return -2 if
37005 a child process is spun off.
37006 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
37007 Adjust signature to match code.
37008 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
37009 (make_dir_parents): Use a subprocess if necessary. New arg WD;
37011 * lib/savewd.c, lib/savewd.h: New files.
37013 2006-09-15 Jim Meyering <jim@meyering.net>
37015 * modules/rename-dest-slash: New module.
37016 * MODULES.html.sh (posix_compat): Add it here.
37018 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
37020 2006-09-15 Jim Meyering <jim@meyering.net>
37022 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
37025 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
37027 2006-09-15 Jim Meyering <jim@meyering.net>
37029 * lib/rename-dest-slash.c (has_trailing_slash): Use
37030 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
37031 (rpl_rename_dest_slash): Perform the cheaper trailing slash
37032 test before testing whether SRC is a directory.
37033 Suggestions from Bruno Haible.
37035 Avoid a warning about an unused variable.
37036 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
37037 into the #ifdef block where it's used.
37039 * lib/rename-dest-slash.c: New file.
37041 2006-09-14 Bruno Haible <bruno@clisp.org>
37043 * lib/allocsa.c: Include <config.h> unconditionally.
37044 * lib/asnprintf.c: Likewise.
37045 * lib/asprintf.c: Likewise.
37046 * lib/c-strcasecmp.c: Likewise.
37047 * lib/c-strcasestr.c: Likewise.
37048 * lib/c-strncasecmp.c: Likewise.
37049 * lib/c-strstr.c: Likewise.
37050 * lib/classpath.c: Likewise.
37051 * lib/clean-temp.c: Likewise.
37052 * lib/concatpath.c: Likewise.
37053 * lib/copy-file.c: Likewise.
37054 * lib/csharpcomp.c: Likewise.
37055 * lib/csharpexec.c: Likewise.
37056 * lib/execute.c: Likewise.
37057 * lib/fatal-signal.c: Likewise.
37058 * lib/findprog.c: Likewise.
37059 * lib/fwriteerror.c: Likewise.
37060 * lib/gl_array_list.c: Likewise.
37061 * lib/gl_array_oset.c: Likewise.
37062 * lib/gl_avltree_list.c: Likewise.
37063 * lib/gl_avltree_oset.c: Likewise.
37064 * lib/gl_avltreehash_list.c: Likewise.
37065 * lib/gl_carray_list.c: Likewise.
37066 * lib/gl_linked_list.c: Likewise.
37067 * lib/gl_linkedhash_list.c: Likewise.
37068 * lib/gl_list.c: Likewise.
37069 * lib/gl_oset.c: Likewise.
37070 * lib/gl_rbtree_list.c: Likewise.
37071 * lib/gl_rbtree_oset.c: Likewise.
37072 * lib/gl_rbtreehash_list.c: Likewise.
37073 * lib/imaxabs.c: Likewise.
37074 * lib/imaxdiv.c: Likewise.
37075 * lib/javacomp.c: Likewise.
37076 * lib/javaexec.c: Likewise.
37077 * lib/javaversion.c: Likewise.
37078 * lib/linebreak.c: Likewise.
37079 * lib/localcharset.c: Likewise.
37080 * lib/lock.c: Likewise.
37081 * lib/mbchar.c: Likewise.
37082 * lib/mbswidth.c: Likewise.
37083 * lib/mkdtemp.c: Likewise.
37084 * lib/pipe.c: Likewise.
37085 * lib/printf-args.c: Likewise.
37086 * lib/printf-parse.c: Likewise.
37087 * lib/progname.c: Likewise.
37088 * lib/progreloc.c: Likewise.
37089 * lib/readlink.c: Likewise.
37090 * lib/sh-quote.c: Likewise.
37091 * lib/stpcpy.c: Likewise.
37092 * lib/stpncpy.c: Likewise.
37093 * lib/strcasecmp.c: Likewise.
37094 * lib/strcasestr.c: Likewise.
37095 * lib/strcspn.c: Likewise.
37096 * lib/striconv.c: Likewise.
37097 * lib/strncasecmp.c: Likewise.
37098 * lib/strnlen1.c: Likewise.
37099 * lib/strstr.c: Likewise.
37100 * lib/strtok_r.c: Likewise.
37101 * lib/tls.c: Likewise.
37102 * lib/tmpdir.c: Likewise.
37103 * lib/unicodeio.c: Likewise.
37104 * lib/unsetenv.c: Likewise.
37105 * lib/vasnprintf.c: Likewise.
37106 * lib/vasprintf.c: Likewise.
37107 * lib/wait-process.c: Likewise.
37108 * lib/xallocsa.c: Likewise.
37109 * lib/xsetenv.c: Likewise.
37110 * lib/xstriconv.c: Likewise.
37112 2006-09-13 Simon Josefsson <jas@extundo.com>
37114 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
37115 that internally, suggested by Ralf Wildenhues
37116 <Ralf.Wildenhues@gmx.de>.
37118 2006-09-13 Simon Josefsson <jas@extundo.com>
37120 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
37122 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37124 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
37126 * lib/_fpending.c: Include <config.h> unconditionally, since we no
37127 longer worry about uses that don't define HAVE_CONFIG_H.
37128 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
37129 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
37130 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
37131 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
37132 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
37133 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
37134 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
37135 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
37136 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
37137 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
37138 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
37139 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
37140 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
37141 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
37142 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
37143 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
37144 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
37145 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
37146 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
37147 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
37148 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
37149 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
37150 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
37151 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
37152 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
37153 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
37154 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
37155 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
37156 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
37157 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
37158 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
37159 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
37160 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
37161 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
37162 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
37163 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
37164 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
37165 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
37166 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
37167 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
37168 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
37171 2006-09-13 Eric Blake <ebb9@byu.net>
37173 * lib/getopt.c: Fix typo in last commit.
37175 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
37177 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
37180 2006-09-12 Jim Meyering <jim@meyering.net>
37182 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
37183 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
37184 Reported by Nelson H. F. Beebe.
37186 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
37188 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
37189 program_invocation_name and program_invocation_short_name are
37191 * lib/argp-namefrob.h: Move declarations of program_invocation_name
37192 and program_invocation_short_name to argp.h, so they are visible
37194 * lib/argp.h: Likewise
37196 2006-09-10 Bruno Haible <bruno@clisp.org>
37198 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
37199 m4/inttypes_h.m4, m4/uintmax_t.m4.
37201 2006-09-10 Bruno Haible <bruno@clisp.org>
37203 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
37204 gl_AC_TYPE_UINTMAX_T.
37206 2006-09-10 Bruno Haible <bruno@clisp.org>
37208 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
37210 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
37212 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
37213 convention. Text proposed by Bruno Haible.
37214 (struct argp_option): Document the use of N_() wrappers.
37216 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
37217 '\v', and translate the two parts separately, instead of feeding
37218 the whole string to gettext. This allows to exclude
37219 '\v' from the strings visible to the translator by writing doc
37220 strings as N_("..") "\v" N_("..").
37222 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
37224 * config/srclist.txt: Undo latest change; the bug was fixed.
37226 2006-09-09 Bruno Haible <bruno@clisp.org>
37228 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
37229 assignments if building a library without libtool.
37230 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
37231 in func_emit_lib_Makefile_am.
37232 (func_import): When building a static library libfoo.a, arrange to
37233 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
37234 (func_create_testdir): Likewise.
37235 * modules/gc (configure.ac, Makefile.am): If building statically,
37236 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
37237 * modules/iconvme (configure.ac, Makefile.am): Likewise.
37238 * modules/striconv (configure.ac, Makefile.am): Likewise.
37239 Based on a suggestion by Ralf Wildenhues.
37241 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
37243 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
37244 Check for unistd.h too, since Autoconf doesn't assume POSIX.
37247 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
37248 Add year_2050_test to catch glibc bug 2821
37249 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
37251 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
37252 Prefer #ifdef to #if.
37254 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
37255 Return from 'main' instead of calling 'exit'.
37257 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
37259 * lib/mktime.c (guess_time_tm): Fix bug where mktime
37260 returned the maximum time_t value rather than (time_t) -1.
37261 Problem originally reported by William Bardwell
37262 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
37264 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
37266 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
37269 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
37271 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
37274 2006-09-08 Jim Meyering <jim@meyering.net>
37276 Don't make generated files read-only. That would bother too many
37277 people. However, do retain the ability to work when targets are
37278 read-only: remove the destination and temporary files before writing
37279 them (when generated via sed or echo), or by using the -f option for
37280 both cp and mv commands. Suggestion to use -f from Paul Eggert.
37281 * modules/alloca-opt, modules/argz, modules/arpa_inet:
37282 * modules/byteswap, modules/configmake, modules/fcntl:
37283 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
37284 * modules/localcharset, modules/netinet_in, modules/poll:
37285 * modules/stdbool, modules/stdint, modules/sys_select:
37286 * modules/sys_socket, modules/sys_stat, modules/sysexits:
37288 2006-09-08 Jim Meyering <jim@meyering.net>
37290 Avoid new build failure on FreeBSD 6.0.
37291 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
37292 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
37293 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
37295 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37297 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
37299 2006-09-07 Jim Meyering <jim@meyering.net>
37301 Fix global typo in last change: use chmod u-w, not chmod u-x.
37302 Spotted by Paul Eggert and Bruce Korb.
37303 * modules/alloca-opt, modules/argz, modules/arpa_inet:
37304 * modules/byteswap, modules/configmake, modules/fcntl:
37305 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
37306 * modules/localcharset, modules/netinet_in, modules/poll:
37307 * modules/stdbool, modules/stdint, modules/sys_select:
37308 * modules/sys_socket, modules/sys_stat, modules/sysexits:
37310 2006-09-06 Jim Meyering <jim@meyering.net>
37312 Make generated files be read-only.
37313 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
37314 Ensure that each generated file is now read-only.
37315 * modules/argz: Likewise.
37316 * modules/arpa_inet: Likewise.
37317 * modules/byteswap: Likewise.
37318 * modules/configmake: Likewise.
37319 * modules/fcntl: Likewise.
37320 * modules/fnmatch: Likewise.
37321 * modules/getopt: Likewise.
37322 * modules/glob: Likewise.
37323 * modules/inttypes: Likewise.
37324 * modules/netinet_in: Likewise.
37325 * modules/poll: Likewise.
37326 * modules/stdbool: Likewise.
37327 * modules/stdint: Likewise.
37328 * modules/sys_select: Likewise.
37329 * modules/sys_socket: Likewise.
37330 * modules/sys_stat: Likewise.
37331 * modules/sysexits: Likewise.
37332 * modules/localcharset: Same as above, but continue using temporary
37333 file named "t-$@" (why different?) rather than the "$@-t" used
37336 * modules/sysexits (Makefile.am): Replace literal occurrences
37337 of "sysexit.h" more readable, and more consistent, "$@".
37339 2006-09-06 Bruno Haible <bruno@clisp.org>
37341 * modules/striconv: New file.
37342 * modules/xstriconv: New file.
37343 * MODULES.html.sh (Internationalization functions): Add striconv,
37346 2006-09-06 Bruno Haible <bruno@clisp.org>
37348 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
37349 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
37350 not using libtool correctly.
37352 2006-09-06 Bruno Haible <bruno@clisp.org>
37354 * lib/striconv.h: New file.
37355 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
37357 * lib/xstriconv.h: New file.
37358 * lib/xstriconv.c: New file.
37360 2006-09-06 Bruno Haible <bruno@clisp.org>
37362 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
37365 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37367 * lib/argz_.h: Sync from Libtool.
37369 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
37370 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37372 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
37374 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
37376 * modules/trim: New file.
37378 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
37380 * lib/trim.h: New file.
37381 * lib/trim.c: New file.
37383 2006-09-05 Bruno Haible <bruno@clisp.org>
37385 * MODULES.html.sh (String handling): Add trim.
37387 2006-09-04 Karl Berry <karl@gnu.org>
37389 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
37390 until next release.
37392 2006-09-03 Bruno Haible <bruno@clisp.org>
37394 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
37397 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
37399 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
37400 not gl_GETLOADAVG. Omit unneeded semicolons.
37401 Problems reported by Ralf Wildenhues in
37402 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
37403 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
37404 at the end, which is the usual gnulib style.
37406 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
37407 of doing all the work ourselves.
37408 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
37409 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
37411 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
37413 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
37414 Problem reported by Ralf Wildenhues in
37415 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
37417 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
37418 HAVE_STRUCT_STATFS_F_FSTYPENAME.
37420 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
37422 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
37423 yesterday's patch by changing test -n to test -z.
37425 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
37427 * modules/getloadavg (Files): Add m4/getloadavg.m4.
37428 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
37429 the former is now obsolescent.
37431 * modules/chdir-long (Depends-on): Add fcntl.
37433 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
37435 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
37436 obsolescent, and programs should use gnulib instead.
37437 * m4/getloadavg.m4: New file, with contents taken from Autoconf
37438 but with prefixes changed.
37440 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
37442 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
37443 or stdbool.h, because they might not exist while configuring.
37445 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
37446 Don't include unistd.h or limits.h; not needed, since chdir-long.h
37448 (O_DIRECTORY): Remove.
37450 2006-08-31 Eric Blake <ebb9@byu.net>
37452 * gnulib-tool: Don't let emacs change spaces to TAB.
37454 2006-08-31 Bruno Haible <bruno@clisp.org>
37456 * gnulib-tool: When calling func_import more than once, do it in a
37458 Reported by Eric Blake <ebb9@byu.net>.
37460 2006-08-31 Bruno Haible <bruno@clisp.org>
37462 * gnulib-tool (nl): Remove variable.
37463 (sed_transform_lib_file): Use more robust test for config-h module.
37464 (func_import): Fix typo in 2006-08-25 patch.
37466 2006-08-31 Bruno Haible <bruno@clisp.org>
37468 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
37469 specified, augment Makefile.am variables instead of assigning them.
37471 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
37473 Work around a bug in both the Linux and SunOS 64-bit kernels:
37474 nanosleep mishandles sleeps for longer than 2**31 seconds.
37475 Problem reported by Frank v Waveren in
37476 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
37477 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
37478 Check for nanosleep bug.
37479 (LIB_NANOSLEEP): Append clock_gettime library if needed.
37481 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
37483 Work around a bug in both the Linux and SunOS 64-bit kernels:
37484 nanosleep mishandles sleeps for longer than 2**31 seconds.
37485 Problem reported by Frank v Waveren in
37486 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
37487 * lib/nanosleep.c (BILLION): New constant.
37488 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
37489 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
37492 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
37494 * modules/nanosleep (Depends-on): Add gettime.
37496 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
37497 and Simon Josefsson <jas@extundo.com>
37498 and Oskar Liljeblad <oskar@osk.mine.nu>
37500 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
37501 * gnulib-tool (func_import): New license type 'unmodifiable license
37503 * modules/fdl: Use it. Longer description.
37504 * module/gpl, module/lgpl: New files.
37506 2006-08-30 Jim Meyering <jim@meyering.net>
37508 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
37509 shadowing the parameter.
37511 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37515 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37517 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
37518 sharing with gnulib. Report by Eric Blake.
37520 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
37522 * modules/isapipe: New file.
37523 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
37525 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
37527 * modules/configmake (Makefile.am): Add a comment, and omit
37528 the CONFIGMAKE_ prefix from generated macro names. Suggested
37531 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
37533 * m4/isapipe.m4: New file.
37535 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
37537 * lib/isapipe.c, lib/isapipe.h: New files.
37539 2006-08-29 Jim Meyering <jim@meyering.net>
37541 * modules/configmake (Makefile.am): Make configmake.h depend on
37542 Makefile. Otherwise, a stale configmake.h could hang around.
37544 2006-08-29 Eric Blake <ebb9@byu.net>
37546 * lib/error.c (error_at_line, print_errno_message): Match libc, after
37547 resolution of upstream bug 3044.
37549 2006-08-29 Bruno Haible <bruno@clisp.org>
37551 * modules/localcharset (Depends-on): Add configmake.
37552 (Makefile.am): Remove setting of LIBDIR through DEFS.
37554 2006-08-29 Bruno Haible <bruno@clisp.org>
37556 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
37559 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
37561 * modules/fcntl: New file.
37562 * modules/chdir-safer (Depends-on): Add fcntl.
37563 * modules/fts: Likewise.
37564 * modules/mkdir-p: Likewise.
37566 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
37567 This undoes the most recent change, since we're now addressing the
37568 problem in a different way.
37570 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
37571 into output, since the output might be called Makefile.am even
37572 if $makefile_name is something different.
37573 (func_import): Use $makefile_am rather than
37574 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
37577 * modules/inttypes (Files): Add m4/inttypes-h.m4.
37579 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
37581 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
37582 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
37583 recent change to stdint.m4, since we're now addressing the problem in a
37586 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
37588 * m4/fcntl_h.m4: New file.
37590 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
37592 * lib/fcntl_.h: New file.
37593 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
37595 * lib/dirchownmod.c: Likewise.
37596 * lib/fts.c: Likewise.
37598 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
37599 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
37600 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
37601 just before including <inttypes.h>, to avoid circular inclusion.
37603 2006-08-28 Jim Meyering <jim@meyering.net>
37605 * doc/visibility.texi: Actually read and correct the grammar of the
37606 sentence affected by yesterday's change.
37608 2006-08-28 Eric Blake <ebb9@byu.net>
37610 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
37613 2006-08-28 Eric Blake <ebb9@byu.net>
37615 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
37617 2006-08-28 Eric Blake <ebb9@byu.net>
37619 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
37621 2006-08-28 Bruno Haible <bruno@clisp.org>
37623 * modules/c-strstr: New file, from GNU gettext.
37624 * MODULES.html.sh (String handling): Add c-strstr.
37626 2006-08-28 Bruno Haible <bruno@clisp.org>
37628 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
37630 Reported by Eric Blake.
37632 2006-08-28 Bruno Haible <bruno@clisp.org>
37634 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
37635 (VASNPRINTF): Return a string of length > INT_MAX without failing.
37636 * lib/vasprintf.c: Include errno.h, limits.h.
37637 (EOVERFLOW): New fallback definition.
37638 (vasprintf): Test here whether the string length is > INT_MAX.
37639 * lib/vsnprintf.c: Include errno.h, limits.h.
37640 (EOVERFLOW): New fallback definition.
37641 (vsnprintf): Fix bug when generated string was too long for the buffer.
37642 Test here whether the string length is > INT_MAX.
37644 2006-08-28 Bruno Haible <bruno@clisp.org>
37646 * lib/inttypes_.h (SCNX*): Remove definitions.
37647 Reported by Eric Blake.
37649 2006-08-28 Bruno Haible <bruno@clisp.org>
37651 * lib/c-strstr.h: New file, from GNU gettext.
37652 * lib/c-strstr.c: New file, from GNU gettext.
37654 2006-08-28 Bruno Haible <bruno@clisp.org>
37656 * gnulib-tool: Reorder some statements.
37658 2006-08-28 Bruno Haible <bruno@clisp.org>
37660 * gnulib-tool: New option --makefile-name.
37661 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
37663 (func_import): Write $makefile_name to the cache file, and read it from
37664 there unless explicitly specified. Use $makefile_name as file name
37665 instead of Makefile.am. Adjust the recommendations accordingly.
37667 2006-08-28 Bruno Haible <bruno@clisp.org>
37669 * gnulib-tool (func_verify_module): Check against misapplying patch.
37671 2006-08-28 Bruno Haible <bruno@clisp.org>
37673 * gnulib-tool (func_relativize, func_relconcat): New functions.
37674 Give an error if --local-dir is given with --update.
37675 Remove trailing slashes from $local_gnulib_dir.
37676 (func_import): Store the relativized $local_gnulib_dir in
37677 gnulib-cache.m4, and read it from there if not specified explicitly.
37679 2006-08-28 Bruno Haible <bruno@clisp.org>
37681 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
37682 is the current directory. Respect also $local_gnulib_dir.
37684 2006-08-28 Bruno Haible <bruno@clisp.org>
37685 Simon Josefsson <jas@extundo.com>
37688 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
37690 2006-08-27 Jim Meyering <jim@meyering.net>
37692 * doc/visibility.texi: Remove duplicate word: "pointer".
37694 2006-08-26 Bruno Haible <bruno@clisp.org>
37696 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
37697 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
37698 (Makefile.am): Create inttypes.h from inttypes_.h.
37699 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
37701 * modules/imaxabs: New file.
37703 * modules/imaxdiv: New file.
37705 2006-08-26 Bruno Haible <bruno@clisp.org>
37707 * m4/inttypes.m4: New file.
37708 * m4/_inttypes_h.m4: Remove file.
37709 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
37711 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
37713 * m4/imaxabs.m4: New file.
37715 * m4/imaxdiv.m4: New file.
37717 2006-08-26 Bruno Haible <bruno@clisp.org>
37719 * lib/inttypes_.h: New file.
37720 * lib/inttypes.h: Remove file.
37721 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
37723 * lib/imaxabs.c: New file.
37725 * lib/imaxdiv.c: New file.
37727 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
37729 New config-h module, so that "make" output needn't be cluttered
37730 by -DHAVE_CONFIG_H.
37731 * MODULES.html.sh (Support for building libraries and executables):
37733 * modules/config-h: New file.
37734 * gnulib-tool (nl, sed_transform_lib_file): New vars.
37735 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
37736 the config-h module is used.
37738 New configmake module, so that "make" output needn't be cluttered
37739 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
37740 * MODULES.html.sh (Support for building libraries and executables):
37742 * modules/configmake: New file.
37744 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
37746 * m4/config-h.m4: New file.
37748 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
37750 * config/srclist.txt: Add elisp-comp.
37752 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
37754 * MODULES.html.sh (Support for building libraries and executables):
37756 * build-aux/elisp-comp: New file.
37757 * modules/elisp-comp: New file.
37759 2006-08-24 Bruno Haible <bruno@clisp.org>
37761 * gnulib-tool (func_create_testdir): Use non-default values of
37762 sourcebase and m4base.
37764 2006-08-24 Bruno Haible <bruno@clisp.org>
37766 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
37769 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
37771 * modules/openat (Depends-on): Add lchown.
37773 2006-08-23 Bruno Haible <bruno@clisp.org>
37775 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
37776 of gl_LOCK_EARLY instead of gl_LOCK.
37778 2006-08-23 Bruno Haible <bruno@clisp.org>
37780 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
37782 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
37784 2006-08-23 Bruno Haible <bruno@clisp.org>
37786 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
37789 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
37790 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
37791 (gl_LOCK): New macro.
37793 2006-08-22 Simon Josefsson <jas@extundo.com>
37795 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
37798 2006-08-22 Simon Josefsson <jas@extundo.com>
37800 * MODULES.html.sh: Add "Support for maintaining and release
37803 * build-aux/gnupload: New file, from coreutils.
37805 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
37807 Avoid the need for AC_LIBSOURCES in m4 macros.
37808 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
37809 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
37810 * modules/check-version (EXTRA_DIST): Add check-version.h.
37811 * modules/crc (EXTRA_DIST): Add crc.h.
37812 * modules/des (EXTRA_DIST): Add des.h.
37813 * modules/gc (EXTRA_DIST): Add gc.h.
37814 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
37815 * modules/getline (EXTRA_DIST): Add getline.h.
37816 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
37817 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
37818 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
37819 * modules/md2 (EXTRA_DIST): Add md2.h.
37820 * modules/md4 (EXTRA_DIST): Add md4.h.
37821 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
37822 * modules/read-file (EXTRA_DIST): Add read-file.h.
37823 * modules/readline (EXTRA_DIST): Add readline.h.
37824 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
37825 rijndael-api-fst.h.
37827 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
37829 * m4/rijndael.m4 (gl_ARCFOUR):
37830 * m4/arctwo.m4 (gl_ARCTWO):
37831 * m4/check-version.m4 (gl_CHECK_VERSION):
37832 * m4/crc.m4 (gl_CRC):
37833 * m4/des.m4 (gl_DES):
37834 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
37835 * m4/gc.m4 (gl_GC):
37836 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
37837 * m4/getline.m4 (gl_FUNC_GETLINE):
37838 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
37839 * m4/hmac-md5.m4 (gl_HMAC_MD5):
37840 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
37841 * m4/md2.m4 (gl_MD2):
37842 * m4/md4.m4 (gl_MD4):
37843 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
37844 * m4/read-file.m4 (gl_FUNC_READ_FILE):
37845 * m4/readline.m4 (gl_FUNC_READLINE):
37846 * m4/rijndael.m4 (gl_RIJNDAEL):
37847 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
37848 to get the necessary .h files and whatnot.
37850 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
37852 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
37853 gnulib rather than the other way around.
37854 * config/srclistvars.sh (COREUTILS): Remove.
37856 2006-08-22 Jim Meyering <jim@meyering.net>
37858 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
37860 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
37862 2006-08-22 Eric Blake <ebb9@byu.net>
37864 * modules/regexprops-generic: New file.
37865 * MODULES.html.sh (Support for building documentation): List it.
37867 2006-08-22 Eric Blake <ebb9@byu.net>
37869 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
37870 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
37871 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
37872 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
37874 2006-08-22 Bruno Haible <bruno@clisp.org>
37876 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
37877 and lib_LTLIBRARIES like the other lib_* variables.
37879 2006-08-22 Bruno Haible <bruno@clisp.org>
37881 * build-aux/x-to-1.in: New file, from GNU gettext.
37883 2006-08-22 Bruno Haible <bruno@clisp.org>
37885 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
37888 2006-08-22 Bruno Haible <bruno@clisp.org>
37890 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
37893 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
37896 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
37898 Problem reported by Bruno Haible.
37900 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
37902 Avoid the need for AC_LIBSOURCES in m4 macros.
37903 * modules/acl (EXTRA_DIST): Add acl.h.
37904 * modules/argmatch (Files): Add m4/argmatch.m4.
37905 (configure.ac): Add gl_ARGMATCH.
37906 (EXTRA_DIST): Renamed from lib_SOURCES, for
37907 consistency with the other modules. Remove argmatch.c.
37908 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
37909 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
37910 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
37911 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
37912 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
37913 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
37914 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
37915 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
37916 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
37917 * modules/closeout (EXTRA_DIST): Add closeout.h.
37918 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
37919 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
37920 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
37921 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
37922 dirname.h; remove basename.c and stripslash.c.
37923 * modules/exclude (EXTRA_DIST): Add exclude.h.
37924 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
37925 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
37926 * modules/file-type (EXTRA_DIST): Add file-type.h.
37927 * modules/filemode (EXTRA_DIST): Add filemode.h.
37928 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
37929 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
37930 * modules/fpending (EXTRA_DIST): Add __fpending.h.
37931 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
37932 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
37933 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
37934 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
37935 * modules/getdate (EXTRA_DIST): Add getdate.c.
37936 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
37937 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
37938 * modules/getpass (EXTRA_DIST): Add getpass.h.
37939 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
37940 * modules/group-member (EXTRA_DIST): Add group-member.h.
37941 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
37942 * modules/hash (EXTRA_DIST): Add hash.h.
37943 * modules/human (EXTRA_DIST): Add human.h.
37944 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
37945 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
37946 * modules/lchown (EXTRA_DIST): Add lchown.h.
37947 * modules/long-options (EXTRA_DIST): Add long-options.h.
37948 * modules/lstat (EXTRA_DIST): Add lstat.h.
37949 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
37950 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
37951 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
37952 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
37953 * modules/memxor (EXTRA_DIST): Add memxor.h.
37954 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
37955 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
37956 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
37957 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
37958 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
37959 * modules/physmem (EXTRA_DIST): Add physmem.h.
37960 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
37961 * modules/posixver (EXTRA_DIST): Add posixver.h.
37962 * modules/quote (EXTRA_DIST): Add quote.h.
37963 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
37964 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
37965 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
37966 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
37967 regex_internal.h regexec.c.
37968 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
37969 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
37970 * modules/same (EXTRA_DIST): Add same.h.
37971 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
37972 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
37973 * modules/savedir (EXTRA_DIST): Add savedir.h.
37974 * modules/sha1 (EXTRA_DIST): Add sha1.h.
37975 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
37976 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
37977 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
37978 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
37979 * modules/strdup (EXTRA_DIST): Add strdup.h.
37980 * modules/strftime (EXTRA_DIST): Add strftime.h.
37981 * modules/strndup (EXTRA_DIST): Add strndup.h.
37982 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
37983 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
37984 * modules/time_r (EXTRA_DIST): Add time_r.h.
37985 * modules/timespec (EXTRA_DIST): Add timespec.h.
37986 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
37987 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
37988 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
37989 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
37990 * modules/userspec (EXTRA_DIST): Add userspec.h.
37991 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
37992 * modules/utimens (EXTRA_DIST): Add utimens.h.
37993 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
37994 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
37995 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
37996 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
37997 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
37998 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
37999 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
38000 * modules/yesno (EXTRA_DIST): Add yesno.h.
38002 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
38004 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
38006 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
38007 * m4/dev-ino.m4, same-inode.m4: Remove.
38009 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
38010 * m4/acl.m4 (AC_FUNC_ACL):
38011 * m4/backupfile.m4 (gl_BACKUPFILE):
38012 * m4/c-strtod.m4 (gl_C99_STRTOLD):
38013 * m4/canon-host.m4 (gl_CANON_HOST):
38014 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
38015 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
38016 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
38017 * m4/cloexec.m4 (gl_CLOEXEC):
38018 * m4/close-stream.m4 (gl_CLOSE_STREAM):
38019 * m4/closeout.m4 (gl_CLOSEOUT):
38020 * m4/dirfd.m4 (gl_FUNC_DIRFD):
38021 * m4/dirname.m4 (gl_DIRNAME):
38022 * m4/exclude.m4 (gl_EXCLUDE):
38023 * m4/exitfail.m4 (gl_EXITFAIL):
38024 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
38025 * m4/file-type.m4 (gl_FILE_TYPE):
38026 * m4/filemode.m4 (gl_FILEMODE):
38027 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
38028 * m4/fpending.m4 (gl_FUNC_FPENDING):
38029 * m4/fprintftime.m4 (gl_FPRINTFTIME):
38030 * m4/fts.m4 (gl_FUNC_FTS):
38031 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
38032 * m4/getdate.m4 (gl_GETDATE):
38033 * m4/gethrxtime.m4 (gl_GETHRXTIME):
38034 * m4/getpagesize.m4 (gl_GETPAGESIZE):
38035 * m4/getpass.m4 (gl_FUNC_GETPASS):
38036 * m4/gettime.m4 (gl_GETTIME):
38037 * m4/getugroups.m4 (gl_GETUGROUPS):
38038 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
38039 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
38040 * m4/hard-locale.m4 (gl_HARD_LOCALE):
38041 * m4/hash.m4 (gl_HASH):
38042 * m4/idcache.m4 (gl_IDCACHE):
38043 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
38044 * m4/lchown.m4 (gl_FUNC_LCHOWN):
38045 * m4/long-options.m4 (gl_LONG_OPTIONS):
38046 * m4/lstat.m4 (gl_FUNC_LSTAT):
38047 * m4/md5.m4 (gl_MD5):
38048 * m4/memcasecmp.m4 (gl_MEMCASECMP):
38049 * m4/memcoll.m4 (gl_MEMCOLL):
38050 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
38051 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
38052 * m4/memxor.m4 (gl_MEMXOR):
38053 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
38054 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
38055 * m4/modechange.m4 (gl_MODECHANGE):
38056 * m4/mountlist.m4 (gl_MOUNTLIST):
38057 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38058 * m4/openat.m4 (gl_FUNC_OPENAT):
38059 * m4/pathmax.m4 (gl_PATHMAX):
38060 * m4/physmem.m4 (gl_PHYSMEM):
38061 * m4/posixtm.m4 (gl_POSIXTM):
38062 * m4/posixver.m4 (gl_POSIXVER):
38063 * m4/quote.m4 (gl_QUOTE):
38064 * m4/quotearg.m4 (gl_QUOTEARG):
38065 * m4/readtokens.m4 (gl_READTOKENS):
38066 * m4/readutmp.m4 (gl_READUTMP):
38067 * m4/regex.m4 (gl_REGEX):
38068 * m4/safe-read.m4 (gl_SAFE_READ):
38069 * m4/safe-write.m4 (gl_SAFE_WRITE):
38070 * m4/same.m4 (gl_SAME):
38071 * m4/save-cwd.m4 (gl_SAVE_CWD):
38072 * m4/savedir.m4 (gl_SAVEDIR):
38073 * m4/settime.m4 (gl_SETTIME):
38074 * m4/sha1.m4 (gl_SHA1):
38075 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
38076 * m4/stat-macros.m4 (gl_STAT_MACROS):
38077 * m4/stat-time.m4 (gl_STAT_TIME):
38078 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
38079 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
38080 * m4/strdup.m4 (gl_FUNC_STRDUP):
38081 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
38082 * m4/strndup.m4 (gl_FUNC_STRNDUP):
38083 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
38084 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
38085 * m4/time_r.m4 (gl_TIME_R):
38086 * m4/timespec.m4 (gl_TIMESPEC):
38087 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
38088 * m4/unlinkdir.m4 (gl_UNLINKDIR):
38089 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
38090 * m4/userspec.m4 (gl_USERSPEC):
38091 * m4/utimecmp.m4 (gl_UTIMECMP):
38092 * m4/utimens.m4 (gl_UTIMENS):
38093 * m4/xalloc.m4 (gl_XALLOC):
38094 * m4/xgetcwd.m4 (gl_XGETCWD):
38095 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
38096 * m4/xreadlink.m4 (gl_XREADLINK):
38097 * m4/xstrtod.m4 (gl_XSTRTOD):
38098 * m4/yesno.m4 (gl_YESNO):
38099 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
38100 to get the necessary .h files and whatnot.
38102 2006-08-21 Mark D. Baushke <mdb@gnu.org>
38103 Bruno Haible <bruno@clisp.org>
38105 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
38106 /bin/sh understanding of '!' conditional negation.
38108 2006-08-21 Jim Meyering <jim@meyering.net>
38110 * modules/openat (Depends-on): Really alphabetize.
38112 * modules/acl (Depends-on): Add error and quote.
38114 * check-module (find_included_lib_files): Add at-func.c to the
38115 ok-to-include-more-than-once white list.
38117 * modules/openat (Depends-on): Add lstat. Alphabetize.
38119 2006-08-21 Bruno Haible <bruno@clisp.org>
38121 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38122 Emit a pkgdata_DATA variable only if some snippets add contents to it.
38123 Reported by Martin Lambers <marlam@marlam.de>.
38125 2006-08-21 Bruno Haible <bruno@clisp.org>
38127 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
38128 specify an installation location, don't emit a noinst_LIBRARIES or
38129 noinst_LTLIBRARIES assignment.
38131 2006-08-21 Bruno Haible <bruno@clisp.org>
38134 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
38135 BeOS has mbrtowc() but no <wctype.h>.
38137 2006-08-21 Bruno Haible <bruno@clisp.org>
38140 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
38143 2006-08-21 Bruno Haible <bruno@clisp.org>
38146 * lib/mbchar.h: Include <wctype.h> only if it exists.
38148 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
38150 Remove files that are no longer needed by their respective modules.
38151 * m4/obstack.m4: Remove.
38152 * m4/strerror_r.m4: Remove.
38153 * m4/uint32_t.m4: Remove.
38154 * m4/uintptr_t.m4: Remove.
38155 * m4/ullong_max.m4: Remove.
38156 * m4/xstrtoimax.m4: Remove.
38157 * m4/xstrtoumax.m4: Remove.
38159 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
38160 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
38161 dependencies now capture this.
38163 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
38164 Do not use AC_LIBSOURCES, since gnulib modules now do this.
38165 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
38166 * m4/human.m4 (gl_HUMAN): Likewise.
38167 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
38168 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
38170 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
38172 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
38173 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
38175 * m4/human.m4 (gl_HUMAN): Likewise.
38176 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
38177 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
38178 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
38179 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
38180 * m4/xstrtol (gl_XSTRTOL): Likewise.
38182 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
38183 AC_TYPE_LONG_LONG_INT.
38184 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
38185 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
38186 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
38187 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
38189 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
38192 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
38193 (gl_PREREQ_XSTRTOUL): Remove.
38195 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
38197 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
38200 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
38202 Add and change modules to make it easier for coreutils to use
38204 * modules/backupfile (Files): Remove m4/d-ino.m4.
38205 (Depends-on): Add d-ino.
38206 * modules/cycle-check (Depends-on): Add stdint.
38207 (lib_SOURCES): Add cycle-check.h.
38208 * modules/d-ino: New module.
38209 * modules/d-type: New module.
38210 * modules/error (Files): Remove m4/strerror_r.m4.
38211 * modules/filemode (Files): Add m4/st_dm_mode.m4.
38212 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
38213 m4/inttypes_h.m4, m4/uintmax_t.m4.
38214 (Depends-on): Add stdint.
38215 (lib_SOURCES): Add fsusage.h.
38216 * modules/getcwd (Files): Remove d-ino.m4.
38217 (Depends-on): Add d-ino.
38218 * modules/getndelim2 (Depends-on): Add stdint.
38219 * modules/glob (Files): Remove m4/d-type.m4.
38220 (Depends-on): Add d-type.
38221 * modules/host-os: New module.
38222 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
38223 m4/inttypes_h.m4, m4/uintmax_t.m4.
38224 * Depends-on: Add stdint.
38225 (lib_SOURCES): Add human.h.
38226 * modules/inttostr (Files): Remove m4/intmax_t.m4,
38227 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
38228 m4/uintmax_t.m4, m4/ulonglong.m4.
38229 (Depends-on): Add stdint.
38230 (EXTRA_DIST): Add inttostr.h.
38231 * modules/lchmod: New module.
38232 * modules/link-follow: New module.
38233 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
38234 (Depends-on): Add lchmod.
38235 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
38236 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
38237 (Depends-on): Add stdint.
38238 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
38239 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
38240 (Depends-on): Add stdint.
38241 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
38242 * modules/perl: New module.
38243 * modules/regex (Depends-on): Add stdint.
38244 * modules/rmdir-errno: New module.
38245 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
38247 (Depends-on): Add stdint.
38248 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
38250 (Depends-on): Add stdint.
38251 * modules/unlink-busy: New module.
38252 * modules/utimecmp (Depends-on): Add stdint.
38253 * modules/uptime: New module.
38254 * modules/winsz-ioctl: New module.
38255 * modules/winsz-termios: New module.
38256 * modules/xnanosleep (Depends-on): Add nanosleep.
38257 * modules/ullong_max: Remove.
38258 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
38259 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
38260 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
38261 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
38262 (Depends-on): Add inttypes.
38263 (lib_SOURCES): Add xstrtol.h.
38264 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
38265 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
38266 * MODULES.html.sh: Move 'assert' into the assert section.
38267 Move 'dummy' into the linking section.
38269 Add section for compatibility checks for POSIX:2001 functions,
38270 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
38271 winsz-ioctl, and winsz-termios into it.
38273 Add top-level Misc section and put host-os, perl, and uptime
38276 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
38278 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
38279 now assume the stdint module. Do not include inttypes.h.
38280 * lib/fsusage.h: Likewise.
38281 * lib/getndelim2.c: Likewise.
38282 * lib/human.h: Likewise.
38283 * lib/inttostr.h: Likewise.
38284 * lib/obstack.c: Likewise.
38285 * lib/regex_internal.h: Likewise.
38286 * lib/tempname.c: Likewise.
38287 * lib/utimecmp.c: Likewise.
38288 * lib/xstrtol.h: Likewise.
38290 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
38292 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
38293 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
38294 * lib/xtime.h: Likewise.
38296 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
38298 * modules/openat (Files): Add lib/fchmodat.c.
38299 Fixes problem reported by Jay Youngman.
38301 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
38303 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
38304 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
38306 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
38307 Bruno Haible <bruno@clisp.org>
38309 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
38310 and is a script that invokes bison. Tighten the code. Add comments.
38312 2006-08-18 Jim Meyering <jim@meyering.net>
38314 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
38315 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
38316 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
38317 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
38319 2006-08-18 Bruno Haible <bruno@clisp.org>
38321 * modules/bison-i18n: New file.
38322 * MODULES.html.sh (Internationalization functions): Add it.
38324 2006-08-18 Bruno Haible <bruno@clisp.org>
38326 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
38327 sys/statvfs.h. When getmntinfo was found, check its declaration and
38328 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
38330 2006-08-18 Bruno Haible <bruno@clisp.org>
38332 * m4/bison-i18n.m4: New file, from bison.
38334 2006-08-18 Bruno Haible <bruno@clisp.org>
38336 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
38337 (ME_DUMMY): Treat "kernfs" as a dummy.
38338 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
38340 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
38342 Update from coreutils.
38344 2006-08-15 Jim Meyering <jim@meyering.net>
38346 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
38348 2006-01-17 Jim Meyering <jim@meyering.net>
38350 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
38352 2006-01-11 Jim Meyering <jim@meyering.net>
38354 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
38355 Check for the lchmod function.
38357 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
38359 Update from coreutils.
38361 * lib/__fpending.h: Add copyright notice.
38362 * lib/fprintftime.h: Likewise.
38363 * lib/savedir.c: Use (C) in copyright notice.
38364 * lib/savedir.h: Likewise.
38366 2006-08-15 Jim Meyering <jim@meyering.net>
38368 * lib/at-func.c: New file, with the logic of all emulated at-functions.
38369 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
38370 in support of the EXPECTED_ERRNO macro.
38371 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
38372 definitions. Instead, define the appropriate symbols and include
38374 * lib/mkdirat.c (mkdirat): Likewise.
38375 * lib/fchmodat.c (fchmodat): Likewise.
38376 (ENOSYS): Remove definition.
38377 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
38378 it. Don't include "unistd--.h" -- it wasn't ever used.
38380 2006-01-17 Jim Meyering <jim@meyering.net>
38382 Rewrite fts.c not to change the current working directory,
38383 by using openat, fstatat, fdopendir, etc..
38385 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
38386 (HAVE_OPENAT_SUPPORT): Define.
38387 [_LIBC] (fchdir): Don't undef or define; no longer used.
38388 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
38389 Now, this `function' always succeeds, and consumes its file descriptor
38390 parameter -- so callers must not close such FDs. Update callers.
38391 (diropen_fd, opendirat, cwd_advance_fd): New functions.
38392 (diropen): Add parameter, SP. Adjust all callers.
38393 Implement using diropen_fd, rather than open.
38394 (fts_open): Initialize new member, fts_cwd_fd.
38395 Remove fts_rft-setting code.
38396 (fts_close): Close fts_cwd_fd, if necessary.
38397 (__opendir2): Define in terms of opendir or opendirat,
38398 depending on whether the FST_NOCHDIR flag is set.
38399 (fts_build): Since fts_safe_changedir consumes its FD, and since
38400 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
38401 and close the dup'd file descriptor upon failure.
38402 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
38403 (fts_safe_changedir): Tweak semantics to reflect that this function
38404 now calls cwd_advance_fd and hence consumes its FD argument.
38405 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
38406 [struct FTS] (fts_rft): Remove now-unused member.
38407 [struct FTS] (fts_cycle.state): Improve comment.
38409 * lib/openat.c (openat_needs_fchdir): New function.
38410 * lib/openat.h (openat_needs_fchdir): Declare it.
38412 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
38414 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
38415 Problem and fix reported by Pádraig Brady in
38416 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
38418 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
38420 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
38422 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
38424 * lib/memcoll.c (memcoll): Optimize for the common case where the
38425 arguments are bytewise equal.
38427 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
38429 * doc/regexprops-generic.texi: Add a copyright notice.
38431 2006-08-15 Bruno Haible <bruno@clisp.org>
38433 * modules/tmpdir (License): Change to LGPL.
38435 2006-08-15 Bruno Haible <bruno@clisp.org>
38437 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
38440 2006-08-14 Simon Josefsson <jas@extundo.com>
38442 * config/srclist.txt: Add gnupload.
38444 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
38446 Change copyright notice from LGPL 2 to GPL 2, since that's the
38447 standard form used in the gnulib repository.
38448 * tests/test-lock.c: Likewise.
38449 * tests/test-stdint.c: Likewise.
38450 * tests/test-tls.c: Likewise.
38452 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
38453 prelude-manager. User shorter URLs for GNU projects, without '?'.
38454 Add copyright notice.
38456 * check-module: Add copyright notice. Output a copyright
38457 notice if "--version" is specified.
38458 * modules/COPYING: New file.
38459 * tests/test-getaddrinfo.c: Add copyright notice.
38460 * tests/test-verify.c: Likewise.
38462 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
38464 Change copyright notice from LGPL 2 to GPL 2, since that's the
38465 standard form used in the gnulib repository.
38466 * lib/lock.c: LGPL -> GPL.
38467 * lib/lock.h: Likewise.
38468 * lib/strnlen1.c: Likewise.
38469 * lib/strnlen1.h: Likewise.
38470 * lib/tls.c: Likewise.
38471 * lib/tls.h: Likewise.
38472 * lib/tmpdir.c: Likewise.
38474 * lib/TODO: Remove; this belongs only in coreutils.
38476 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
38478 Add copyright notices to long-enough files that lack them, since
38479 otherwise the files aren't clearly free. Use the same notice that
38480 getdate.texi already uses.
38481 * doc/alloca-opt.texi: Add copyright notice.
38482 * doc/alloca.texi: Likewise.
38483 * doc/ctime.texi: Likewise.
38484 * doc/functions.texi: Likewise.
38485 * doc/gcd.texi: Likewise.
38486 * doc/gnulib-tool.texi: Likewise.
38487 * doc/inet_ntoa.texi: Likewise.
38488 * doc/visibility.texi: Likewise.
38490 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
38491 * doc/quote.texi: Add copyright notice.
38493 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
38494 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
38495 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
38496 Mention SunOS 5.11. Mention that everything before SunOS 5.7
38497 is now obsolete, and give a pointer to the Sun list.
38498 Add copyright notice.
38500 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
38502 * config/srclistvars.sh: Add copyright notice.
38504 2006-08-14 Eric Blake <ebb9@byu.net>
38506 Import the following change from libc:
38508 2006-08-12 Ulrich Drepper <drepper@redhat.com>
38511 * lib/misc/error.c: Add space between program name and message if file
38514 2006-08-12 Karl Berry <karl@gnu.org>
38516 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
38517 remove, these originate in gnulib now.
38519 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38521 * doc/Makefile (standards.info standards.html standards.dvi):
38522 Also depend on make-stds.texi.
38524 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
38526 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
38527 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
38529 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
38530 in wchar_t. Problem reported by Eric Blake.
38532 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
38533 LEN is smaller than SIZE. Suggested by Bruno Haible.
38534 Also, help the compiler to keep LEN in a register.
38536 2006-08-11 Eric Blake <ebb9@byu.net>
38538 * users.txt: Sort. Add tar.
38540 2006-08-11 Bruno Haible <bruno@clisp.org>
38542 * users.txt: New file.
38544 2006-08-11 Bruno Haible <bruno@clisp.org>
38546 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
38547 before <wchar.h>. Needed for OSF/1 and BSD/OS.
38549 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
38551 * modules/snprintf (Depends-on): Remove minmax.
38552 (Maintainer): Add self and Bruno.
38554 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
38556 * lib/.cppi-disable: Add snprintf.h, socket_.h.
38557 * lib/snprintf.c: Include <errno.h> and <limits.h>.
38558 (EOVERFLOW): Define if the system does not.
38559 Do not include "minmax.h"; it wasn't used.
38560 (snprintf): Don't assume size_t promotes to an unsigned type.
38561 Fix bug when generated string was too long for the buffer: the
38562 buffer's contents are supposed to be the initial prefix of the
38563 output. Don't assume vasnprintf returns EOVERFLOW if the size
38564 exceeds INT_MAX; do the check ourselves.
38566 Import the following changes from libc:
38568 2006-06-02 Jakub Jelinek <jakub@redhat.com>
38570 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
38571 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
38572 set wc to the byte which couldn't be converted.
38573 (re_string_reconstruct): Don't clear valid_raw_len before calling
38574 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
38575 tip_context using re_string_context_at.
38577 2006-05-02 Ulrich Drepper <drepper@redhat.com>
38579 * lib/posix/regex.h: g++ still cannot handled [restrict].
38581 2006-04-21 Ulrich Drepper <drepper@redhat.com>
38583 * lib/posix/regex.h: Remove special handling for VMS.
38585 2006-08-10 Jim Meyering <jim@meyering.net>
38587 * modules/same-inode: New module.
38588 * modules/dev-ino: New module.
38589 * modules/cycle-check: Depend on these modules, rather than simply
38590 including their .h files.
38591 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
38592 required via m4/cycle-check.m4.
38593 * modules/same: Depend on new same-inode module, rather than
38594 including same-inode.h.
38595 * modules/chdir-safer: New file.
38597 * modules/chown (Depends-on): Add stat-macros.
38599 2006-08-10 Jim Meyering <jim@meyering.net>
38601 * m4/cycle-check.m4: New file.
38602 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
38603 * m4/dev-ino.m4, m4/same-inode.m4: New files.
38605 2006-08-10 Eric Blake <ebb9@byu.net>
38607 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
38608 in from original proposal.
38610 2006-08-10 Eric Blake <ebb9@byu.net>
38611 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38613 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
38616 2006-08-10 Bruno Haible <bruno@clisp.org>
38618 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
38621 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
38623 Sync from coreutils.
38625 2006-07-19 Mike Frysinger <vapier@gentoo.org>
38627 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
38628 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
38630 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
38632 * modules/restrict: Remove; no longer needed now that we assume
38633 Autoconf 2.59 or later.
38634 * MODULES.html.sh: Remove 'restrict'.
38635 * modules/argp (Depends-on): Remove 'restrict'.
38636 * modules/base64 (Depends-on): Likewise.
38637 * modules/gc (Depends-on): Likewise.
38638 * modules/getaddrinfo (Depends-on): Likewise.
38639 * modules/glob (Depends-on): Likewise.
38640 * modules/inet_ntop (Depends-on): Likewise.
38641 * modules/inet_pton (Depends-on): Likewise.
38642 * modules/memxor (Depends-on): Likewise.
38643 * modules/regex (Depends-on): Likewise.
38644 * modules/strtok_r (Depends-on): Likewise.
38645 * modules/time_r (Depends-on): Likewise.
38647 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
38649 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
38650 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
38651 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
38652 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
38653 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
38654 * m4/memxor.m4 (gl_MEMXOR): Likewise.
38655 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
38656 gl_C_RESTRICT replaced by AC_C_RESTRICT.
38658 Merge from coreutils.
38659 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
38660 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
38661 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38662 * m4/time_r.m4 (gl_TIME_R): Likewise.
38664 2006-08-09 Karl Berry <karl@gnu.org>
38666 * config/srclist.txt: no more gettext-tools, per Bruno.
38668 2006-08-08 Eric Blake <ebb9@byu.net>
38670 * modules/verror: New module.
38671 * MODULES.html.sh: Document it.
38673 2006-08-08 Eric Blake <ebb9@byu.net>
38675 * lib/verror.h, lib/verror.c: New files.
38677 2006-08-08 Eric Blake <ebb9@byu.net>
38679 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
38680 verror_at_line output complies with GNU Coding Standards even when
38683 2006-08-07 Bruno Haible <bruno@clisp.org>
38685 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
38687 Reported by Ralf Wildenhues.
38689 2006-08-07 Bruno Haible <bruno@clisp.org>
38691 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
38692 in an AC_DEFUN. Needed so that the autoconf snippets can use
38695 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38697 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38698 Initialize pkgdata_DATA.
38699 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
38702 2006-08-06 Eric Blake <ebb9@byu.net>
38704 * lib/error.h: Fold in some upstream changes from glibc.
38705 * lib/error.c: Likewise.
38707 2006-08-04 Bruno Haible <bruno@clisp.org>
38709 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38710 Make the mostlyclean-local rule depend on mostlyclean-generic.
38711 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
38713 2006-07-31 Bruno Haible <bruno@clisp.org>
38715 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
38716 <stdlib.h>, <string.h>.
38718 2006-07-30 Bruno Haible <bruno@clisp.org>
38720 * modules/readlink (License): Change to LGPL.
38722 2006-07-30 Bruno Haible <bruno@clisp.org>
38724 * modules/javaversion (Makefile.am): Distribute javaversion.java and
38725 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
38726 set PKGDATADIR to point to it.
38728 2006-07-30 Bruno Haible <bruno@clisp.org>
38730 * modules/csharpexec (configure.ac): Comment out macro invocation.
38731 * modules/javaexec (configure.ac): Likewise.
38732 * modules/javacomp-script (configure.ac): Likewise.
38734 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
38736 2006-07-30 Bruno Haible <bruno@clisp.org>
38738 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
38741 2006-07-30 Bruno Haible <bruno@clisp.org>
38743 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
38745 2006-07-30 Bruno Haible <bruno@clisp.org>
38747 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38748 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
38751 2006-07-29 Bruno Haible <bruno@clisp.org>
38753 Make it possible for gnulib-tool to work with locally modified or
38754 augmented gnulib repositories.
38755 * gnulib-tool (func_usage): Document --local-dir option.
38756 (local_gnulib_dir): New variable.
38757 Handle --local-dir option.
38758 (func_lookup_file): New function.
38759 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
38760 (func_get_description, func_get_filelist, func_get_description,
38761 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
38762 func_get_automake_snippet, func_get_include_directive,
38763 func_get_license, func_get_maintainer): Use func_lookup_file.
38764 (func_import, func_create_testdir): Use func_lookup_file.
38766 2006-07-29 Bruno Haible <bruno@clisp.org>
38768 * modules/setenv (Depends-on): Add unistd.
38770 2006-07-29 Bruno Haible <bruno@clisp.org>
38772 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
38774 2006-07-29 Bruno Haible <bruno@clisp.org>
38776 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
38778 2006-07-29 Bruno Haible <bruno@clisp.org>
38780 * gnulib-tool (import, update): If there is no Makefile.am, look at
38781 aclocal.m4, instead of bailing out.
38783 2006-07-29 Bruno Haible <bruno@clisp.org>
38785 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
38786 Categorize the options by when they are useful.
38788 2006-07-29 Bruno Haible <bruno@clisp.org>
38790 * gnulib-tool (func_usage): Document option --no-libtool.
38791 Handle option --no-libtool.
38792 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
38793 for changed semantics of $libtool variable.
38794 (func_import): Likewise. If libtool is not used, show this through
38795 an option --no-libtool.
38796 (func_create_testdir): Update.
38798 2006-07-29 Bruno Haible <bruno@clisp.org>
38800 * gnulib-tool (func_import): Extend error message about missing
38803 2006-07-29 Bruno Haible <bruno@clisp.org>
38805 * gnulib-tool (func_import): Don't create the $docbase directory if
38806 there is no file to store there.
38808 2006-07-29 Bruno Haible <bruno@clisp.org>
38810 * gnulib-tool (autoconf_minversion): If a --dir option is given and
38811 relevant, look for configure.ac there, not in the current directory.
38812 Also use a simple search for AC_PREREQ, not "autoconf --trace".
38814 2006-07-29 Bruno Haible <bruno@clisp.org>
38816 * gnulib-tool (SORT): New variable.
38817 (func_usage): Undocument --assume-autoconf option.
38818 Remove --assume-autoconf option handling.
38819 (autoconf_minversion): Determine from the contents of configure.ac.
38820 (func_import): Remove autoconf_minversion handling.
38821 Suggested by Eric Blake.
38823 2006-07-29 Bruno Haible <bruno@clisp.org>
38825 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
38827 2006-07-29 Bruno Haible <bruno@clisp.org>
38829 * config/srclist.txt (*setenv.[ch]): Remove rules.
38831 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38833 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
38835 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38837 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
38840 2006-07-28 Simon Josefsson <jas@extundo.com>
38842 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
38843 * modules/inet_pton (Depends-on): Likewise.
38845 2006-07-28 Simon Josefsson <jas@extundo.com>
38847 * m4/netinet_in_h.m4: New file.
38849 2006-07-28 Simon Josefsson <jas@extundo.com>
38851 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
38854 2006-07-28 Simon Josefsson <jas@extundo.com>
38856 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
38859 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
38861 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
38862 setgid on directories only if they set these bits.
38863 * lib/modechange.h: Remove obsolete comment about masks.
38865 2006-07-28 Eric Blake <ebb9@byu.net>
38867 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
38870 2006-07-28 Bruno Haible <bruno@clisp.org>
38872 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
38874 2006-07-28 Bruno Haible <bruno@clisp.org>
38876 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
38878 2006-07-28 Bruno Haible <bruno@clisp.org>
38880 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
38881 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
38883 Avoids link error on FreeBSD 4.x.
38884 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38886 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
38888 * lib/mbswidth.c (iswcntrl): Likewise.
38890 2006-07-27 Bruno Haible <bruno@clisp.org>
38892 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
38895 2006-07-27 Bruno Haible <bruno@clisp.org>
38897 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
38898 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
38901 2006-07-26 Eric Blake <ebb9@byu.net>
38903 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
38905 2006-07-26 Eric Blake <ebb9@byu.net>
38907 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
38908 like mingw that lack mkstemp.
38909 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
38910 avoid compilation warning on mingw.
38912 2006-07-26 Bruno Haible <bruno@clisp.org>
38914 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
38915 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
38916 INT_FAST*_MIN, INTPTR_MIN.
38918 2006-07-25 Bruno Haible <bruno@clisp.org>
38920 * modules/version-etc (Depends-on): Add stdarg.
38922 2006-07-25 Bruno Haible <bruno@clisp.org>
38924 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
38927 2006-07-25 Bruno Haible <bruno@clisp.org>
38929 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
38930 defined in <stdarg.h> or config.h.
38932 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
38934 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
38935 (gl_STDIO_SAFER): Remove.
38937 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
38939 * MODULES.html.sh (File stream based Input/Output):
38940 Add fopen-safer, tmpfile-safer; remove stdio-safer.
38941 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
38942 * modules/fopen-safer, modules/tmpfile-safer: New files.
38943 * modules/stdio-safer: Remove.
38945 2006-07-24 Bruno Haible <bruno@clisp.org>
38947 * modules/tmpdir: New file.
38948 * MODULES.html.sh (File system functions): Add it.
38950 2006-07-24 Bruno Haible <bruno@clisp.org>
38952 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
38953 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
38955 2006-07-24 Bruno Haible <bruno@clisp.org>
38957 * modules/clean-temp: New file.
38959 2006-07-24 Bruno Haible <bruno@clisp.org>
38961 * m4/tmpdir.m4: New file, from GNU gettext.
38963 2006-07-24 Bruno Haible <bruno@clisp.org>
38965 * lib/tmpdir.h: New file, from GNU gettext.
38966 * lib/tmpdir.c: New file, from GNU gettext.
38968 2006-07-24 Bruno Haible <bruno@clisp.org>
38970 * lib/clean-temp.h: New file, from GNU gettext.
38971 * lib/clean-temp.c: New file, from GNU gettext.
38973 2006-07-23 Eric Blake <ebb9@byu.net>
38975 * modules/stdio-safer (Files): Add tmpfile-safer.c.
38976 (Depends-on): Add binary-io.
38978 2006-07-23 Eric Blake <ebb9@byu.net>
38980 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
38982 2006-07-23 Eric Blake <ebb9@byu.net>
38984 * lib/tmpfile-safer.c: New file.
38985 * lib/stdio-safer.h (fopen_safer): Add prototype.
38986 * lib/stdio--.h (tmpfile): Make safer.
38988 2006-07-23 Bruno Haible <bruno@clisp.org>
38990 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
38991 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
38992 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
38993 gl_linked_remove_at): Use it.
38995 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38996 and Simon Josefsson <jas@extundo.com>
38998 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
39000 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
39002 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
39004 * modules/close-stream: New file.
39005 * modules/closeout (Description): Make it clear that it exits
39006 with a diagnostic on error.
39007 (Depends-on): Add close-stream. Remove fpending, stdbool.
39008 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
39010 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
39012 * m4/close-stream.m4: New file.
39014 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
39016 * lib/close-stream.c, lib/close-stream.h: New files.
39018 2006-07-22 Bruno Haible <bruno@clisp.org>
39020 Merge from GNU gettext 0.15.
39022 2006-05-01 Bruno Haible <bruno@clisp.org>
39024 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
39026 2006-07-22 Bruno Haible <bruno@clisp.org>
39028 * modules/javaversion: New file.
39029 * MODULES.html.sh (Java): Add javaversion.
39031 2006-03-12 Bruno Haible <bruno@clisp.org>
39033 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
39035 2005-12-04 Bruno Haible <bruno@clisp.org>
39037 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
39040 2006-06-21 Bruno Haible <bruno@clisp.org>
39042 Avoid warnings from recent versions of mcs.
39043 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
39044 -o, -L, -r any more. Use options documented since mcs-1.0
39045 instead. Similarly for -g.
39047 2005-12-04 Bruno Haible <bruno@clisp.org>
39049 * build-aux/csharpcomp.sh.in: Suffix for resources is
39050 .resources, not .resource.
39052 2005-07-09 Bruno Haible <bruno@clisp.org>
39054 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
39056 Reported by Mark Junker <mjscod@gmx.de>.
39058 2006-07-22 Bruno Haible <bruno@clisp.org>
39060 * modules/gettext: Upgrade to gettext-0.15.
39061 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
39063 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
39065 2006-07-22 Bruno Haible <bruno@clisp.org>
39067 Merge from GNU gettext 0.15.
39069 2006-03-25 Bruno Haible <bruno@clisp.org>
39071 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
39073 2006-07-21 Bruno Haible <bruno@clisp.org>
39075 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
39078 2006-05-09 Bruno Haible <bruno@clisp.org>
39080 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
39081 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
39082 for the conftestver execution.
39084 2006-05-01 Bruno Haible <bruno@clisp.org>
39086 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
39087 optional target-version argument. Verify that the compiler
39088 groks source of the specified source-version, or add -source
39089 option as necessary. Verify that the compiler produces
39090 bytecode in the specified target-version, or add -target and
39091 -source options as necessary. Make the result of the test
39092 available as variable CONF_JAVAC. Also log error output in
39095 2006-03-11 Bruno Haible <bruno@clisp.org>
39097 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
39099 2006-05-09 Bruno Haible <bruno@clisp.org>
39101 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
39102 CLASSPATH_SEPARATOR to a semicolon.
39104 2006-03-12 Bruno Haible <bruno@clisp.org>
39106 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
39107 available as variable CONF_JAVA, for subsequent autoconf
39108 tests. Also log error output in config.log.
39110 2006-07-19 Bruno Haible <bruno@clisp.org>
39112 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
39113 that getline works on glibc2 systems. Needed to avoid trouble
39115 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
39117 2005-12-04 Bruno Haible <bruno@clisp.org>
39119 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
39120 launcher (untested).
39122 2005-12-04 Bruno Haible <bruno@clisp.org>
39124 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
39126 2006-07-22 Bruno Haible <bruno@clisp.org>
39128 * gettext.m4: Update from GNU gettext-0.15.
39129 * nls.m4: Likewise.
39131 * inttypes-pri.m4: Likewise.
39132 * inttypes-h.m4: Renamed from inttypes.m4.
39133 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
39135 2006-07-22 Bruno Haible <bruno@clisp.org>
39137 Merge from GNU gettext 0.15.
39139 2005-07-05 Bruno Haible <bruno@clisp.org>
39141 * printf-args.c (printf_fetchargs): Work around broken
39142 definition of wint_t on mingw.
39144 2005-02-12 Bruno Haible <bruno@clisp.org>
39146 * xallocsa.h: Add extern "C" for C++.
39148 2006-05-17 Bruno Haible <bruno@clisp.org>
39150 Cygwin portability.
39151 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
39153 2006-04-30 Bruno Haible <bruno@clisp.org>
39155 * progreloc.c: Include <mach-o/dyld.h> if available.
39156 (find_executable): Use _NSGetExecutablePath when possible.
39158 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
39160 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
39163 2005-12-29 Bruno Haible <bruno@clisp.org>
39165 * progreloc.c (set_program_name_and_installdir): Fix
39168 2005-12-04 Bruno Haible <bruno@clisp.org>
39170 Cygwin portability.
39171 * progreloc.c: Include <windows.h> also on Cygwin.
39172 (find_executable): Add support for Cygwin.
39173 (set_program_name_and_installdir): Handle also platforms with
39176 2006-07-11 Bruno Haible <bruno@clisp.org>
39178 * javacomp.c: Fix a comment.
39179 Reported by Jim Meyering.
39181 2006-04-30 Bruno Haible <bruno@clisp.org>
39183 * javacomp.h (compile_java_class): Add source_version,
39184 target_version arguments.
39185 * javacomp.c: Rewritten to choose only a compiler that
39186 respects the specified source_version and target_version.
39188 2006-06-27 Bruno Haible <bruno@clisp.org>
39190 Assume correct S_ISDIR macro.
39191 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
39193 2006-07-22 Bruno Haible <bruno@clisp.org>
39195 * javaversion.h: New file, from GNU gettext.
39196 * javaversion.c: New file, from GNU gettext.
39197 * javaversion.java: New file, from GNU gettext.
39198 * javaversion.class: New file, from GNU gettext.
39200 2006-05-17 Bruno Haible <bruno@clisp.org>
39202 Cygwin portability.
39203 * javaexec.c (execute_java_class): Test for jview program
39206 2006-04-09 Bruno Haible <bruno@clisp.org>
39208 * fatal-signal.c: Don't include string.h.
39209 (at_fatal_signal): Use a copying loop instead of memcpy.
39211 2005-12-04 Bruno Haible <bruno@clisp.org>
39213 * csharpexec.c: Add support for 'clix' launcher (untested).
39214 (execute_csharp_using_sscli): New function.
39215 (execute_csharp_program): Call it.
39217 2006-06-21 Bruno Haible <bruno@clisp.org>
39219 Avoid warnings from recent versions of mcs.
39220 * csharpcomp.c (compile_csharp_using_mono): Don't use options
39221 -o, -L, -r any more. Use options documented since mcs-1.0
39222 instead. Similarly for -g.
39224 2005-07-09 Bruno Haible <bruno@clisp.org>
39226 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
39228 Reported by Mark Junker <mjscod@gmx.de>.
39230 2006-06-17 Bruno Haible <bruno@clisp.org>
39232 * config.charset: Update for NetBSD 3.0.
39234 2006-05-17 Bruno Haible <bruno@clisp.org>
39236 Cygwin portability.
39237 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
39239 2006-05-16 Bruno Haible <bruno@clisp.org>
39241 * localcharset.c [CYGWIN]: Include <windows.h>.
39242 (get_charset_aliases): For Cygwin, return the same CPxxx
39243 aliases list as under WIN32.
39244 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
39245 the environment variables. Fall back to GetACP().
39247 2006-04-05 Bruno Haible <bruno@clisp.org>
39249 * config.charset: Update Juan Manuel Guerrero's address.
39251 2005-02-12 Bruno Haible <bruno@clisp.org>
39253 * allocsa.h: Add extern "C" for C++.
39255 2005-02-10 Bruno Haible <bruno@clisp.org>
39257 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
39258 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
39260 2006-07-22 Bruno Haible <bruno@clisp.org>
39262 * gettext.h: Update to GNU gettext-0.15.
39264 2006-07-22 Bruno Haible <bruno@clisp.org>
39266 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
39267 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
39268 lib-prefix.m4, longdouble.m4, ssize_t.m4.
39270 2006-07-21 Eric Blake <ebb9@byu.net>
39272 * modules/stdlib-safer: New file.
39273 * MODULES.html.sh (File stream based Input/Output): Add
39276 2006-07-21 Eric Blake <ebb9@byu.net>
39278 * lib/stdlib-safer.h: New file from coreutils, required by
39281 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
39283 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
39285 2006-07-20 Bruno Haible <bruno@clisp.org>
39287 * gnulib-tool: Recognize new option --assume-autoconf.
39288 (autoconf_minversion): New variable.
39289 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
39291 2006-07-20 Bruno Haible <bruno@clisp.org>
39293 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
39295 2006-07-19 Derek R. Price <derek@ximbiot.com>
39297 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
39298 Reindent and repaginate.
39300 2006-07-19 Derek Price <derek@ximbiot.com>
39302 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
39305 2006-07-17 Bruno Haible <bruno@clisp.org>
39307 * modules/list: New file.
39308 * modules/array-list: New file.
39309 * modules/carray-list, modules/carray-list-tests: New files.
39310 * modules/linked-list, modules/linked-list-tests: New files.
39311 * modules/avltree-list, modules/avltree-list-tests: New files.
39312 * modules/rbtree-list, modules/rbtree-list-tests: New files.
39313 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
39314 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
39315 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
39316 * modules/oset: New file.
39317 * modules/array-oset: New file.
39318 * modules/avltree-oset, modules/avltree-oset-tests: New files.
39319 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
39320 * tests/test-carray_list.c: New file.
39321 * tests/test-linked_list.c: New file.
39322 * tests/test-avltree_list.c: New file.
39323 * tests/test-rbtree_list.c: New file.
39324 * tests/test-linkedhash_list.c: New file.
39325 * tests/test-avltreehash_list.c: New file.
39326 * tests/test-rbtreehash_list.c: New file.
39327 * tests/test-avltree_oset.c: New file.
39328 * tests/test-rbtree_oset.c: New file.
39329 * MODULES.html.sh (Container data structures): New section.
39331 2006-07-17 Bruno Haible <bruno@clisp.org>
39333 * m4/gl_list.m4: New file.
39335 2006-07-17 Bruno Haible <bruno@clisp.org>
39337 * lib/gl_list.h: New file.
39338 * lib/gl_list.c: New file.
39339 * lib/gl_array_list.h: New file.
39340 * lib/gl_array_list.c: New file.
39341 * lib/gl_carray_list.h: New file.
39342 * lib/gl_carray_list.c: New file.
39343 * lib/gl_linked_list.h: New file.
39344 * lib/gl_linked_list.c: New file.
39345 * lib/gl_anylinked_list1.h: New file.
39346 * lib/gl_anylinked_list2.h: New file.
39347 * lib/gl_avltree_list.h: New file.
39348 * lib/gl_avltree_list.c: New file.
39349 * lib/gl_anyavltree_list1.h: New file.
39350 * lib/gl_anyavltree_list2.h: New file.
39351 * lib/gl_rbtree_list.h: New file.
39352 * lib/gl_rbtree_list.c: New file.
39353 * lib/gl_anyrbtree_list1.h: New file.
39354 * lib/gl_anyrbtree_list2.h: New file.
39355 * lib/gl_anytree_list1.h: New file.
39356 * lib/gl_anytree_list2.h: New file.
39357 * lib/gl_linkedhash_list.h: New file.
39358 * lib/gl_linkedhash_list.c: New file.
39359 * lib/gl_anyhash_list1.h: New file.
39360 * lib/gl_anyhash_list2.h: New file.
39361 * lib/gl_avltreehash_list.h: New file.
39362 * lib/gl_avltreehash_list.c: New file.
39363 * lib/gl_rbtreehash_list.h: New file.
39364 * lib/gl_rbtreehash_list.c: New file.
39365 * lib/gl_anytreehash_list1.h: New file.
39366 * lib/gl_anytreehash_list2.h: New file.
39368 * lib/gl_oset.h: New file.
39369 * lib/gl_oset.c: New file.
39370 * lib/gl_array_oset.h: New file.
39371 * lib/gl_array_oset.c: New file.
39372 * lib/gl_avltree_oset.h: New file.
39373 * lib/gl_avltree_oset.c: New file.
39374 * lib/gl_rbtree_oset.h: New file.
39375 * lib/gl_rbtree_oset.c: New file.
39376 * lib/gl_anytree_oset.h: New file.
39378 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
39380 * m4/mkancesdirs.m4: New file.
39381 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
39382 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
39383 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
39386 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
39388 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
39389 * lib/mkancesdirs.h: New files.
39390 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
39391 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
39392 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
39393 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
39394 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
39395 callers changed. Revamp internals significantly, by not
39396 attempting to create directories that are temporarily more
39397 permissive than the final results. Do not attempt to use
39398 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
39399 This removes some race conditions, fixes some bugs, and simplifies
39400 things. Use new dirchownmod function to do owner and mode changes.
39401 * lib/mkdir-p.h: Likewise.
39402 * lib/modechange.c (octal_to_mode): New function.
39403 (struct mode_change): New member mentioned.
39404 (make_node_op_equals): New arg mentioned. All callers changed.
39405 (mode_compile): Keep track of which mode bits the user has explicitly
39407 (mode_adjust): New arg DIR, so that we implement the X op correctly.
39408 New arg PMODE_BITS, to keep track of which mode bits the user
39409 mentioned; it treats S_ISUID and S_ISGID speciall.
39410 All callers changed.
39411 * lib/modechange.h: Likewise.
39413 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
39415 * MODULES.html.sh: Add mkancestors.
39416 * modules/mkancesdirs: New module.
39417 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
39418 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
39419 The chdir-safer and afs files are now orphans; I'll remove them
39420 unless someone speaks up.
39421 Add lib/dirchownmod.c, lib/dirchownmod.h.
39422 (Depends-on): Remove alloca, chown, save-cwd, dirname.
39423 Add lchown, mkancesdirs.
39424 (Maintainer): Add self.
39426 2006-07-15 Karl Berry <karl@gnu.org>
39428 * gnulib-tool: help message wording/arrangement.
39430 2006-07-14 Simon Josefsson <jas@extundo.com>
39432 * doc/gnulib.texi (Libtool and Windows): New section.
39434 2006-07-12 Simon Josefsson <jas@extundo.com>
39436 * modules/gendocs (License): Fix license, approved by Karl.
39438 2006-07-12 Eric Blake <ebb9@byu.net>
39440 * MODULES.html.sh: Add gendocs.
39442 2006-07-11 Eric Blake <ebb9@byu.net>
39444 * modules/fdl: New module, to install doc/fdl.texi.
39445 * MODULES.html.sh: Add new section for documentation modules.
39446 * gnulib-tool: Avoid space-tab.
39447 (--doc-base): New option, to manage files from doc.
39449 2006-07-11 Eric Blake <ebb9@byu.net>
39451 * m4/absolute-header.m4: Fix comments to match recent change.
39453 2006-07-11 Eric Blake <ebb9@byu.net>
39455 * gnulib-tool: List --doc-base before --tests-base.
39457 2006-07-11 Derek R. Price <derek@ximbiot.com>
39459 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
39461 2006-07-11 Bruno Haible <bruno@clisp.org>
39463 * README: Mention where to put documentation.
39465 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39467 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
39469 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
39471 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
39474 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
39476 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
39477 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
39478 "no/such/file/stdint.h" when there is no such file, so that
39479 the resulting C code can be parsed by dodgy compilers.
39480 Problems reported by Bob Proulx.
39482 2006-07-10 Derek R. Price <derek@ximbiot.com>
39484 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
39485 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
39486 macros into the GNU _D_EXACT_NAMLEN.
39487 * lib/savedir.c: Likewise.
39488 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
39490 2006-07-10 Derek R. Price <derek@ximbiot.com>
39491 and Paul Eggert <eggert@cs.ucla.edu>
39493 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
39495 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
39496 macros into the GNU _D_EXACT_NAMLEN.
39498 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
39500 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
39501 around the absolute name, to work around a problem with the HP-UX
39502 11.23 native C compiler, reported by Bob Proulx.
39504 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
39506 * doc/maintain.texi, make-stds.texi: Sync from
39507 <http://savannah.gnu.org/projects/gnustandards>.
39509 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
39511 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
39513 2006-07-09 Jim Meyering <jim@meyering.net>
39515 * m4/glob.m4: Remove a doubled word in a comment.
39517 2006-07-09 Jim Meyering <jim@meyering.net>
39519 * lib/argp-pv.c: Remove a doubled word in a comment.
39520 * lib/check-version.c (check_version): Likewise.
39521 * lib/javacomp.c (compile_java_class): Likewise.
39523 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
39525 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
39526 for the benefit of people using Autoconf 2.60. If you want to
39527 support older Autoconf versions you can copy m4/onceonly_2_57.m4
39528 (or m4/onceonly.m4, if pre-2.57) manually.
39530 2006-07-08 Jim Meyering <jim@meyering.net>
39532 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
39534 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
39535 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
39538 2006-07-08 Jim Meyering <jim@meyering.net>
39540 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
39542 2006-07-07 Simon Josefsson <jas@extundo.com>
39544 * tests/test-crc.c: Change expected crc value, the test vector
39545 were probably computed using the old broken crc.c?
39547 2006-07-06 Simon Josefsson <jas@extundo.com>
39549 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
39550 now the canonical place for the M4 file).
39552 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
39553 from the sys_socket dependency now.
39555 * modules/inet_pton (Files): Ditto.
39557 * modules/inet_ntop (Files): Ditto.
39559 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
39561 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
39562 not gl_PREREQ_GETUSERSHELL.
39564 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39566 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
39567 with only one argument, for Autoconf 2.60.
39568 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
39569 expand to nothing, so add a shell command to avoid syntax error.
39570 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
39572 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39574 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
39576 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
39578 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
39579 no longer needed. Check for isblank decl.
39580 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
39581 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
39584 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
39586 * lib/getloadavg.c: Use __VMS, not VMS.
39587 * lib/getopt.c: Likewise.
39588 * lib/getpagesize.h: Likewise.
39589 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
39590 and probably does not work.
39592 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
39594 * lib/.cppi-disable: Add wcwidth.
39595 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
39596 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
39597 (ISGRAPH): Remove. All uses changed to isgraph.
39598 (FOLD) [!defined _LIBC]: Remove special case.
39599 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
39600 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
39602 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
39605 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
39607 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
39608 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
39609 brackets. Other minor changes to suppress some compiler
39612 2006-07-06 Derek R. Price <derek@ximbiot.com>
39613 and Paul Eggert <eggert@cs.ucla.edu>
39615 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
39616 of invoking obsolescent AC_HEADER_DIRENT macro.
39617 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
39618 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
39619 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
39620 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
39621 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
39622 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
39623 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
39624 * m4/readdir.m4: Remove; no longer needed.
39626 2006-07-06 Derek R. Price <derek@ximbiot.com>
39627 and Paul Eggert <eggert@cs.ucla.edu>
39629 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
39630 Don't worry about this obsolete case any more.
39631 (HAVE_DIR): Remove. All uses removed; we now assume you can read
39633 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
39634 worry about this obsolete case any more.
39635 * lib/fts.c: Likewise.
39636 * lib/getcwd.c: Likewise.
39637 * lib/glob.h: Likewise.
39638 * lib/savedir.c: Likewise.
39640 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
39642 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
39643 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
39644 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
39647 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
39648 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
39649 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
39651 * m4/getdate.m4 (gl_GETDATE): Likewise.
39652 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
39653 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
39654 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
39655 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
39656 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
39657 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
39658 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
39661 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
39663 * lib/memcasecmp.c: Include <limits.h>.
39664 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
39665 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
39666 Don't assume isdigit succeeds only on '0' through '9'.
39668 2006-07-05 Eric Blake <ebb9@byu.net>
39670 * modules/getaddrinfo (Depends-on): Add snprintf.
39672 2006-07-05 Eric Blake <ebb9@byu.net>
39674 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
39675 to avoid 'header present but could not be compiled' on cygwin.
39677 2006-07-05 Eric Blake <ebb9@byu.net>
39679 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
39680 missing from netdb.h.
39681 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
39683 2006-07-05 Derek R. Price <derek@ximbiot.com>
39685 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
39687 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
39688 * m4/getdate.m4 (gl_GETDATE): Likewise.
39689 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
39690 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
39691 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
39692 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
39693 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
39695 2006-07-05 Derek R. Price <derek@ximbiot.com>
39697 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
39698 All uses of is_space replaced by isspace.
39699 * lib/exit.h: Don't talk about STDC_HEADERS.
39700 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
39701 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
39702 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
39703 replaced by isprint etc.
39704 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
39705 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
39706 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
39707 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
39708 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
39709 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
39711 2006-07-05 Bruno Haible <bruno@clisp.org>
39713 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
39714 the function exists, before testing against AIX.
39715 Reported by Martin Lambers <marlam@marlam.de>.
39717 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
39719 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
39720 From Mark D. Baushke.
39722 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
39724 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
39725 to the absolute name, not just one, to bypass Sun C 5.8's
39726 "warning: #include of /usr/include/... may be non-portable".
39728 2006-07-04 Eric Blake <ebb9@byu.net>
39730 * modules/dirname-tests: New test module.
39731 * tests/test-dirname.c: New file, replacing dirname.c
39732 TEST_DIRNAME section that was recently deleted.
39734 2006-07-04 Bruno Haible <bruno@clisp.org>
39736 Assume ANSI C header files and <ctype.h> functions.
39737 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
39738 (mbsnwidth): Use isprint, iscntrl instead.
39740 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
39742 Merge from coreutils.
39743 * MODULES.html.sh: Add xstrtold.
39744 * modules/xstrtold: New file.
39745 * modules/cycle-check (Files): Add lib/same-inode.h.
39746 * modules/dirname (Files): Add m4/double-slash-root.m4.
39747 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
39748 * modules/mkdir-p (Files): Add lib/same-inode.h.
39749 * modules/same (Files): Add lib/same-inode.h.
39751 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
39753 * m4/absolute-header.m4: Renamed from full-header-path.m4.
39754 This is to keep the terminology clean; POSIX talks about
39755 "absolute pathnames", not "full pathnames", but the GNU
39756 Coding Standards say to use "path" for something else;
39757 so use "absolute" to keep both sides happy.
39758 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
39759 Set gl_absolute_header, not gl_full_header_path.
39760 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
39761 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
39764 Merge from coreutils.
39766 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
39768 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
39769 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
39770 want to require the building of c-strtod.o.
39771 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
39772 needs -lm directly.
39773 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
39775 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
39777 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
39778 --as-needed option if available. Problem reported by Albert Chin in
39779 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
39780 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
39781 cc merely issues a bunch of annoying warnings for --as-needed
39782 (this problem was reported by Bob Proulx). Also, try linking with
39783 -lm to detect a bug in binutils 2.16 (this problem was reported
39784 by Ralf Wildenhues).
39786 2006-06-18 Jim Meyering <jim@meyering.net>
39788 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
39789 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
39791 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
39792 also check for glibc-2.4's abort-inducing bug.
39794 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
39795 Low-probability clean-up should be to use rmdir to get rid of
39796 the just-created directory, not unlink.
39798 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
39799 configure fail, and request a bug report to inform us about it.
39800 Add a comment that, barring reports to the contrary, in 2007 we'll
39801 assume ftruncate is universally available.
39803 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
39805 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
39807 2006-03-12 Jim Meyering <jim@meyering.net>
39809 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
39810 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
39811 * m4/same.m4 (gl_SAME): Likewise.
39812 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
39814 2006-03-11 Eric Blake <ebb9@byu.net>
39816 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
39817 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
39818 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
39819 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
39821 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
39823 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
39824 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
39825 reported by Mark D. Baushke, one in
39826 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
39828 Merge from coreutils.
39830 * lib/.cppi-disable: Add stdint_.h.
39831 * lib/.cvsignore: Add stdint.h.
39833 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
39835 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
39836 both double and long double versions.
39837 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
39838 * lib/xstrtold.c: New file.
39839 * lib/xstrtod.h (xstrtold): New decl.
39841 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
39843 * lib/filemode.c (setst): Remove.
39844 (strmode): Rewrite to avoid setst. This makes the code shorter,
39845 (arguably) clearer, and the generated code is a bit smaller on my
39846 Debian GNU/Linux stable x86 host.
39848 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
39850 * lib/filemode.c: Include "filemode.h" first, to test the interface.
39851 Assume that filemode.h includes sys/types.h and sys/stat.h.
39852 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
39853 (ftypelet): Reorder to put common cases first, for efficiency.
39854 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
39856 (strmode): Renamed from mode_string, and now stores 12 bytes instead
39857 of 10, for compatibility with FreeBSD. All callers changed.
39858 (filemodestring): Now stores 12 bytes instead of 10, and sets file
39859 types that can't be deduced solely from st_mode. First arg is now a
39861 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
39862 (strmode): Renamed from mode_string.
39863 (filemodestring): New decl.
39864 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
39865 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
39867 (S_ISPORT, S_ISWHT): New macros, if not already defined.
39869 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
39871 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
39872 fsusage.h now does that. Include fsusage.h first, to test interface.
39873 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
39874 at most one method (the old code could have generated decls that
39875 didn't conform to C89, not that this was ever exercised).
39876 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
39878 2006-03-19 Jim Meyering <jim@meyering.net>
39880 Work even in a chroot where d_ino values for entries in "/"
39881 don't match the stat.st_ino values for the same names.
39882 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
39883 number, iterate through all entries again, using lstat instead.
39884 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
39885 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
39887 * lib/getcwd.c (__getcwd): Clarify a comment.
39888 Use memcpy in place of a call to strcpy.
39890 2006-03-12 Jim Meyering <jim@meyering.net>
39892 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
39893 matches that of the current directory (which we're about to chdir ".."
39894 out of), then save the dev-ino of the parent, instead.
39896 * lib/same-inode.h (SAME_INODE): New file/macro.
39897 * lib/chdir-safer.c (SAME_INODE): Remove definition.
39898 Include "same-inode.h", instead.
39899 * lib/same.c: Likewise.
39900 * lib/cycle-check.h: Include "same-inode.h".
39901 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
39902 * lib/cycle-check.c (SAME_INODE): Remove definition.
39903 * lib/root-dev-ino.h: Include "same-inode.h".
39905 2006-03-11 Eric Blake <ebb9@byu.net>
39907 * lib/same.c (same_name): s/base_name/last_component/
39908 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
39909 * lib/filenamecat.c (file_name_concat): Likewise.
39911 2006-03-11 Eric Blake <ebb9@byu.net>,
39912 Paul Eggert <eggert@cs.ucla.edu>
39914 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
39915 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
39917 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
39918 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
39919 (last_component): New method.
39920 * lib/dirname.c (dir_len): Determine when drive letters need a
39921 subsequent slash. Preserve // when it is special.
39922 (dir_name): Don't append dot when drive letter is absolute.
39923 [TEST_DIRNAME]: Move into a full-blown gnulib test.
39924 * lib/basename.c (base_name): New semantics - malloc the result.
39925 Preserve // when it is special. Preserve relative files that look
39926 like drive letters.
39927 (base_len): Preserve // when it is special.
39928 (last_component): New method, similar to old base_name semantics.
39929 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
39930 base_name. Strip redundant slashes from ///.
39932 2006-07-03 Jim Meyering <jim@meyering.net>
39934 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
39935 macro is used before the first cycle_check call.
39937 2006-07-03 Eric Blake <ebb9@byu.net>
39939 * modules/dirname (Depends-on): Add xstrndup.
39941 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
39943 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
39944 test cases, so that config.log is a bit easier to follow.
39946 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
39948 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
39949 both are 64 bits, since this seems to be the tradition, and this
39950 prevents gcc -Wformat from warning about usages with PRIuMAX. If
39951 we ever run into a host that prefers long long to long in this
39952 case, we'll need another configure-time test. Problem reported by
39955 2006-07-02 Eric Blake <ebb9@byu.net>
39957 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
39959 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
39961 * modules/inttypes (Depends-on): No longer depends on stdint.
39962 * modules/stdint (Description): Say more about assumptions.
39963 Say that the fast types might differ. Say macros are used.
39964 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
39965 (Makefile.am): Revise list of substituted symbols to match
39967 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
39968 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
39969 * tests/test-stdint.c (verify_same_types)
39970 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
39971 the code conforms to C99/C89.
39972 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
39973 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
39975 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
39977 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
39978 but fix a bug, by requiring at least 64 bits.
39979 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
39980 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
39981 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
39982 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
39984 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
39985 changes. Make 2.59 a prerequisite. Check and substitute for
39986 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
39987 inttypes.h. Do not use special include files; just use the
39988 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
39989 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
39990 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
39991 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
39992 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
39993 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
39994 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
39995 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
39996 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
39997 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
39998 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
39999 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
40000 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
40001 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
40002 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
40003 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
40004 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
40005 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
40006 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
40007 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
40008 WINT_MAX. Check for C99 conformance more strictly, by detecting
40009 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
40010 not check for things that C99 does not require, e.g., int8_t. If
40011 a test isn't needed unless <stdint.h> isn't working, and is
40012 unlikely to be needed for any other reason, then don't do it
40013 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
40014 size_t, since we assume C89 freestanding at least. Do not check
40015 for sig_atomic_t, wchar_t, or wint_t, since the code now does
40016 the right thing even if the types are not defined. Instead use:
40017 (gl_STDINT_TYPE_PROPERTIES): New macro.
40018 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
40019 testing whether <sys/types.h> clashes, as Autoconf does this for
40020 us now. All uses removed.
40021 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
40022 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
40023 (gl_CHECK_TYPE_SAME):
40024 Remove; no longer needed.
40025 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
40026 exists, since we'll return 0 anyway in that case.
40027 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
40029 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
40031 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
40032 possible collision with system files.
40033 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
40034 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
40035 WCHAR_MIN and WCHAR_MAX in this case.
40036 (<stddef.h>): Do not include; no longer needed.
40037 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
40038 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
40039 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
40040 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
40041 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
40042 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
40043 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
40044 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
40045 !defined(__c99))]: Include in this case too, since it's harmless
40047 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
40048 dangerous to do so.
40049 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
40050 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
40051 (_STDINT_MIN, _STDINT_MAX): New macros.
40052 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
40053 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
40054 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
40055 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
40056 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
40057 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
40058 macros, not typedefs; this simplifies things quite a bit.
40059 Use long int for all types narrower than int64_t.
40060 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
40061 Define in terms of long long int or int64_t or long int,
40062 not int64_t or int32_t. This saves some compile-time testing.
40063 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
40064 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
40065 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
40066 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
40067 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
40068 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
40069 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
40070 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
40071 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
40072 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
40073 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
40074 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
40075 undef any previous version and define our own version, for
40076 simplicity and consistency with the new macros for types.
40077 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
40078 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
40079 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
40080 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
40081 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
40082 @WINT_T_SUFFIX@ to keep things simple here.
40083 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
40084 Simplify by assuming typical 8/16/32/64 host, since we're
40085 already doing that elsewhere anyway.
40086 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
40087 and assume long long int is 64 bits if available. This
40088 speeds up 'configure'.
40090 2006-07-01 Eric Blake <ebb9@byu.net>
40092 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
40093 Reported by Andreas Buening.
40095 2006-07-01 Eric Blake <ebb9@byu.net>
40097 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
40099 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
40101 * lib/getaddrinfo.c: fixed typo
40103 2006-06-29 Jim Meyering <jim@meyering.net>
40105 * modules/strftime (Maintainer): Add my name, since with the
40106 FPRINTFTIME changes strftime.c has forked from glibc.
40108 2006-06-29 Eric Blake <ebb9@byu.net>
40110 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
40112 2006-06-29 Eric Blake <ebb9@byu.net>
40114 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
40116 2006-06-29 Eric Blake <ebb9@byu.net>
40118 * lib/stat_.h: New file.
40120 2006-06-29 Eric Blake <ebb9@byu.net>
40122 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
40123 unused static function.
40125 2006-06-29 Eric Blake <ebb9@byu.net>
40127 * doc/functions.texi (Function Portability): Document missing lstat
40130 2006-06-29 Eric Blake <ebb9@byu.net>
40132 * MODULES.html.sh: Add sys_stat.
40133 * modules/sys_stat: New module.
40134 * modules/mkstemp (Depends-on): Add sys_stat.
40136 2006-06-29 Derek R. Price <derek@ximbiot.com>
40138 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
40140 2006-06-29 Derek R. Price <derek@ximbiot.com>
40142 * m4/c-bs-a.m4: Removed.
40144 2006-06-29 Derek R. Price <derek@ximbiot.com>
40146 * lib/strftime.c: Assume strftime() exists.
40148 2006-06-29 Derek Price <derek@ximbiot.com>
40150 * modules/c-bs-a: Removed - \a is C89.
40151 * MODULES.html.sh: Remove c-bs-a.
40153 2006-06-29 Bruno Haible <bruno@clisp.org>
40155 * modules/wcwidth (License): Change to LGPL.
40157 2006-06-28 Simon Josefsson <jas@extundo.com>
40159 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
40162 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
40165 2006-06-28 Simon Josefsson <jas@extundo.com>
40167 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
40169 2006-06-28 Simon Josefsson <jas@extundo.com>
40171 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
40172 functions there. It will succeed on Windows XP, but on Windows
40173 2000 and (presumably) earlier, it will fail, and use the internal
40175 (use_win32_p): New function.
40176 (getaddrinfo): Use strtoul on servname, to support numeric ports.
40177 Support AI_NUMERICSERV to disable getservbyname.
40178 (getnameinfo): New function, only supports
40179 NI_NUMERICHOST|NI_NUMERICSERV for now.
40181 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
40182 only have some of them. Add AI_NUMERICSERV. Add prototype for
40185 2006-06-28 Eric Blake <ebb9@byu.net>
40187 * modules/wcwidth: New file.
40188 * modules/mbchar (Depends-on): Add wcwidth.
40189 * modules/mbswidth (Depends-on): Add wcwidth.
40190 * MODULES.html.sh: Add wcwidth.
40192 2006-06-28 Eric Blake <ebb9@byu.net>
40194 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
40195 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
40197 2006-06-28 Eric Blake <ebb9@byu.net>
40199 * lib/xvasprintf.h: Fix comments.
40201 2006-06-28 Eric Blake <ebb9@byu.net>
40203 * lib/mbchar.h (wcwidth): Include wcwidth.h.
40204 * lib/mbswidth.c (wcwidth): Move from here...
40205 * lib/wcwidth.h: ...to this new file.
40207 2006-06-28 Derek R. Price <derek@ximbiot.com>
40209 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
40211 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
40213 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
40215 2006-06-28 Derek R. Price <derek@ximbiot.com>
40217 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
40218 Autoconf 2.60 says this stuff was obsolete.
40220 2006-06-28 Bruno Haible <bruno@clisp.org>
40222 * modules/wcwidth (Files): Add m4/wchar_t.m4.
40224 2006-06-28 Bruno Haible <bruno@clisp.org>
40226 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
40229 2006-06-28 Bruno Haible <bruno@clisp.org>
40231 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
40232 declaration for wcwidth.
40233 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
40235 2006-06-28 Bruno Haible <bruno@clisp.org>
40237 * lib/mkdtemp.c [MINGW]: Include <io.h>.
40238 (mkdir): Define using _mkdir.
40240 2006-06-28 Bruno Haible <bruno@clisp.org>
40242 * lib/getaddrinfo.h: Fix POSIX URL.
40243 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
40245 (use_win32_p): Make static.
40246 (getaddrinfo): Reject service name if it is empty or does not consist
40247 solely of decimal digits, or if its value is > 65535.
40248 (getnameinfo): Remove useless casts.
40250 2006-06-27 Simon Josefsson <jas@extundo.com>
40252 * modules/sys_select: New file, suggested by Bruno Haible, Paul
40253 Eggert and Martin Lambers.
40255 2006-06-27 Simon Josefsson <jas@extundo.com>
40257 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
40258 Eggert and Martin Lambers.
40260 2006-06-27 Bruno Haible <bruno@clisp.org>
40262 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
40263 result to 0, not to empty.
40264 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
40266 2006-06-27 Bruno Haible <bruno@clisp.org>
40268 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
40270 2006-06-26 Simon Josefsson <jas@extundo.com>
40272 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
40275 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
40277 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
40278 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
40279 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
40281 2006-06-26 Mark D. Baushke <mdb@gnu.org>
40283 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
40285 2006-06-26 Bruno Haible <bruno@clisp.org>
40287 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
40289 2006-06-26 Bruno Haible <bruno@clisp.org>
40291 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
40293 2006-06-26 Bruno Haible <bruno@clisp.org>
40295 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
40296 SGI C compiler in pre-C99 mode.
40297 Suggested by Mark D. Baushke and Larry Jones.
40299 2006-06-26 Bruno Haible <bruno@clisp.org>
40301 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
40303 Reported by Mark D. Baushke and Larry Jones.
40305 2006-06-26 Bruno Haible <bruno@clisp.org>
40307 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
40309 Suggested by Mark D. Baushke and Larry Jones.
40311 2006-06-23 Simon Josefsson <jas@extundo.com>
40312 Bruno Haible <bruno@clisp.org>
40314 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
40315 Emit mostlyclean-local rule.
40316 (func_emit_tests_Makefile_am): Likewise.
40317 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
40319 2006-06-23 Mark D. Baushke <mdb@gnu.org>
40321 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
40323 2006-06-23 Bruno Haible <bruno@clisp.org>
40325 * tests/test-stdint.c: Update to match ISO C 99 Technical
40328 2006-06-23 Bruno Haible <bruno@clisp.org>
40330 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
40332 2006-06-23 Bruno Haible <bruno@clisp.org>
40334 * lib/stdint_.h: Treat IRIX like OpenBSD.
40336 2006-06-23 Bruno Haible <bruno@clisp.org>
40338 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
40339 ISO C 99 Technical Corrigendum 1.
40341 2006-06-22 Simon Josefsson <jas@extundo.com>
40343 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
40346 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
40348 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
40349 needed. Some compiler complained about some of them. Problem reported
40351 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
40353 2006-06-21 Simon Josefsson <jas@extundo.com>
40355 * tests/test-getaddrinfo.c: New file.
40357 * modules/getaddrinfo-tests: New file.
40359 * MODULES.html.sh: Add inet_pton.
40361 * modules/inet_pton: New file.
40363 2006-06-21 Simon Josefsson <jas@extundo.com>
40365 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
40366 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
40367 of using the (limited) gnulib implementation on Windows XP.
40369 * m4/inet_pton.m4: New file.
40371 2006-06-21 Simon Josefsson <jas@extundo.com>
40373 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
40376 * lib/socket_.h: Don't define WINVER.
40378 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
40379 slightly modified to work in gnulib.
40381 2006-06-21 Simon Josefsson <jas@extundo.com>
40383 * doc/gnulib.texi (Windows sockets): Add.
40385 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
40387 * lib/read-file.c (fread_file): Start with buffer allocation of
40388 0 bytes rather than 1 byte; this simplifies the code.
40389 Don't invoke feof; it's not needed. Refactor to avoid duplicate
40390 code to free buffer and save/restore errno.
40391 (internal_read_file): Remove unused local.
40393 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
40395 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
40396 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
40397 Problem reported by Denis Excoffier in
40398 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
40400 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40402 * modules/sys_socket, modules/socklen: Include sys/types since
40403 FreeBSD 4.x's sys/socket.h needs it.
40405 2006-06-19 Simon Josefsson <jas@extundo.com>
40407 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
40409 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
40411 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
40413 2006-06-19 Bruno Haible <bruno@clisp.org>
40415 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
40416 and FULL_PATH_INTTYPES_H in angle brackets.
40417 Reported by Mark D. Baushke <mdb@gnu.org>.
40419 2006-06-17 Eric Blake <ebb9@byu.net>
40421 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
40424 2006-06-17 Bruno Haible <bruno@clisp.org>
40426 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
40429 2006-06-17 Bruno Haible <bruno@clisp.org>
40431 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
40432 whether errno is declared. Assume <errno.h> declares errno.
40434 2006-06-17 Bruno Haible <bruno@clisp.org>
40436 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
40438 2006-06-17 Bruno Haible <bruno@clisp.org>
40440 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
40441 problem on Solaris 2.5.1.
40443 2006-06-16 Eric Blake <ebb9@byu.net>
40445 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
40446 * lib/unicodeio.c [!defined errno]: Likewise.
40447 * lib/strtol.c [!defined errno]: Likewise.
40448 * lib/strtod.c [!defined errno]: Likewise.
40450 2006-06-15 Eric Blake <ebb9@byu.net>
40452 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
40454 2006-06-15 Eric Blake <ebb9@byu.net>
40456 * config/srclist.txt (ssize_t.m4): Lose sync.
40458 2006-06-15 Bruno Haible <bruno@clisp.org>
40460 * modules/stdint (Files): Include m4/full-header-path.m4,
40461 m4/size_max.m4, m4/wchar_t.m4.
40462 (Makefile.am): Many more substitutions.
40463 * modules/stdint-tests: New file.
40464 * tests/test-stdint.c: New file.
40466 2006-06-15 Bruno Haible <bruno@clisp.org>
40468 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
40469 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
40470 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
40471 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
40472 gl_CHECK_TYPE_SAME): New macros.
40474 2006-06-15 Bruno Haible <bruno@clisp.org>
40476 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
40478 2006-06-15 Bruno Haible <bruno@clisp.org>
40480 * lib/stdint_.h: Rewritten to be fully auto-configured.
40481 Fixes bug on HP-UX/IA64.
40483 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
40485 * lib/getdate.y (__attribute__): Don't define if already defined.
40486 Problem reported by Larry Jones.
40487 * lib/utimens.c (__attribute__): Likewise.
40489 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
40491 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
40492 reported by Andreas Schwab.
40494 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40495 Bruno Haible <bruno@clisp.org>
40497 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
40498 check for the declaration of strnlen and a run test that exposes the
40499 AIX 5.1 strnlen bug. In the failure case, #define strndup to
40502 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40503 Bruno Haible <bruno@clisp.org>
40505 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
40507 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40509 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
40510 compile test, for Tru64 4.0D.
40512 2006-05-28 Karl Berry <karl@gnu.org>
40514 * config/srclist.txt (printf-args.c): lose sync.
40516 2006-05-26 Martin Lambers <marlam@marlam.de>
40518 * lib/getpass.c: Updates the test for the native W32 API, and adds
40519 missing includes, thus fixing compilation warnings.
40521 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
40523 * lib/exclude.c (exclude_fnmatch): New function.
40524 (excluded_file_name): Call exclude_fnmatch.
40525 * lib/exclude.h (excluded_file_name): New prototype
40527 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
40529 * lib/tempname.c (small_open, large_open): New macros.
40530 (__open, __open64) [!_LIBC]: Remove.
40531 (__gen_tempname): Use small_open and large_open instead of __open
40532 and __open64. This fixes a portability bug on HP-UX 11.11i
40533 reported by Simon Wing-Tang in
40534 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
40536 2006-05-24 Bruno Haible <bruno@clisp.org>
40538 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
40539 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
40540 Reported by Thorsten Maerz <torte@netztorte.de> via
40541 Aaron Stone <aaron@serendipity.cx>.
40543 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
40545 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
40546 gl_ rather than jm_. Link, don't run, so that cross-compiles are
40547 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
40548 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
40549 not really conditional on the cache.
40550 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
40552 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
40554 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
40555 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
40556 (my_usleep): Don't mishandle maximum value.
40558 2006-05-19 Jim Meyering <jim@meyering.net>
40560 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
40562 2006-05-17 Bruno Haible <bruno@clisp.org>
40564 Cygwin portability.
40565 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
40567 2006-05-17 Bruno Haible <bruno@clisp.org>
40569 * lib/stdint_.h: Fix recognition of Cygwin.
40571 2006-05-15 Bruno Haible <bruno@clisp.org>
40573 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
40574 on libtool patch by Ralf Wildenhues.
40576 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
40578 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
40579 test for C99 conformance; (bool) 0.5 is an integer constant
40580 expression, but (bool) -0.5 is not. Problem reported by Fedor
40581 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
40583 2006-05-11 Simon Josefsson <jas@extundo.com>
40585 * m4/xvasprintf.m4: Fix obvious typo.
40587 2006-05-11 Jim Meyering <jim@meyering.net>
40589 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
40592 2006-05-10 Simon Josefsson <jas@extundo.com>
40594 * lib/md4.c: Typo fix, update copyright years.
40595 (K1, K2): Don't use L because it turn computations into 64-bit on
40598 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
40600 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
40601 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
40602 unwanted sign propagation, e.g., on hosts with 64-bit int.
40603 There still are some problems with reeelly weird theoretical hosts
40604 (e.g., 33-bit int) but it's not worth worrying about now.
40605 * lib/sha1.c (rol): Likewise.
40606 (K1, K2, K3, K4): Remove unnecessary L suffix.
40608 2006-05-10 Bruno Haible <bruno@clisp.org>
40610 * lib/des.c: Cast to avoid warnings.
40612 2006-05-09 Bruno Haible <bruno@clisp.org>
40614 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
40615 (Depends-on): Depend also on xsize, stdarg.
40616 (configure.ac): Add gl_XVASPRINTF.
40618 2006-05-09 Bruno Haible <bruno@clisp.org>
40620 * m4/xvasprintf.m4: New file.
40622 2006-05-09 Bruno Haible <bruno@clisp.org>
40624 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
40625 (EOVERFLOW): Define fallback value.
40626 (xstrcat): New function.
40627 (xvasprintf): Recognize the special case of a string concatenation.
40629 2006-05-08 Eric Blake <ebb9@byu.net>
40631 * gnulib-tool (func_version): Base copyright year on CVS date.
40632 (func_emit_copyright_notice): New function.
40633 (func_emit_lib_Makefile_am): Use it.
40634 (func_emit_tests_Makefile_am): Likewise.
40635 (func_import): Likewise.
40637 2006-05-08 Bruno Haible <bruno@clisp.org>
40639 * modules/stdarg: New file.
40640 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
40642 2006-05-08 Bruno Haible <bruno@clisp.org>
40644 * m4/stdarg.m4: New file, from GNU gettext.
40646 2006-05-08 Bruno Haible <bruno@clisp.org>
40648 * config/srclist.txt (build-aux/config.rpath): different from latest
40651 2006-05-08 Bruno Haible <bruno@clisp.org>
40653 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
40655 2006-05-05 Jim Meyering <jim@meyering.net>
40657 * m4/warning.m4: New file, derived from bison's file by the same name.
40659 2006-05-03 Bruno Haible <bruno@clisp.org>
40661 * lib/stdint_.h: Shorter URL.
40662 * lib/inttypes.h: Likewise.
40664 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
40666 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
40668 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
40670 * lib/verify.h: Document the internals better. Most of this change
40671 was written by Bruno Haible.
40673 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
40675 * doc/verify.texi: New file, partly based on a proposal by
40678 2006-05-02 Bruno Haible <bruno@clisp.org>
40680 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
40682 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
40684 2006-04-29 Bruno Haible <bruno@clisp.org>
40686 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
40687 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
40689 2006-04-29 Bruno Haible <bruno@clisp.org>
40691 * gnulib-tool: Make --update option actually work.
40693 2006-04-29 Bruno Haible <bruno@clisp.org>
40695 * doc/gcd.texi: New file.
40696 * doc/gnulib.texi: Include it.
40698 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
40700 * lib/getdate.y (get_date): When adding relative date, start with the
40701 initial time, not with the result of the first mktime call.
40703 2006-04-25 Bruno Haible <bruno@clisp.org>
40705 * gnulib-tool (func_import): Output the include directives in three
40706 blocks, sorted separately.
40707 Reported by Ben Pfaff <blp@cs.stanford.edu>.
40709 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
40711 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
40712 to define main with arguments, for C++. Reported by Eric Blake.
40713 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
40714 Prefer 'int main ()' to 'int main (void)', for C++.
40715 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
40716 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
40717 for 'main', for C99 and C++.
40719 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
40721 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
40722 Don't assume that exit status -1 is valid.
40723 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40724 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
40725 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
40726 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
40727 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
40728 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
40729 not AC_TRY_RUN. Use return, not exit. Don't assume that
40730 functions can be used without declaring them, or that you can
40731 exit with status -1.
40732 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
40734 2006-04-24 Karl Berry <karl@gnu.org>
40736 * config/srclist.txt (longdouble.m4): sync lost.
40738 2006-04-24 Eric Blake <ebb9@byu.net>
40740 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
40742 2006-04-24 Bruno Haible <bruno@clisp.org>
40744 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
40745 poll() implementation in AIX.
40746 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40748 2006-04-24 Bruno Haible <bruno@clisp.org>
40750 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
40751 assigned exactly once.
40753 2006-04-23 Claudio Fontana <claudio@gnu.org>
40754 Bruno Haible <bruno@clisp.org>
40756 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
40757 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
40760 2006-04-23 Bruno Haible <bruno@clisp.org>
40762 * modules/copy-file: Depend on unistd.
40763 * modules/execute: Likewise.
40764 * modules/fatal-signal: Likewise.
40765 * modules/findprog: Likewise.
40766 * modules/mkdtemp : Likewise.
40767 * modules/pipe: Likewise.
40768 * modules/wait-process: Likewise.
40770 2006-04-23 Bruno Haible <bruno@clisp.org>
40772 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
40773 condition was already detected.
40774 Reported by Ben Pfaff <blp@cs.stanford.edu>.
40776 2006-04-23 Bruno Haible <bruno@clisp.org>
40778 * lib/copy-file.c: Include <unistd.h> unconditionally.
40779 * lib/execute.c: Likewise.
40780 * lib/fatal-signal.c: Likewise.
40781 * lib/findprog.c: Likewise.
40782 * lib/mkdtemp.c: Likewise.
40783 * lib/pipe.h: Likewise.
40784 * lib/pipe.c: Likewise.
40785 * lib/wait-process.h: Likewise.
40787 2006-04-23 Bruno Haible <bruno@clisp.org>
40789 * gnulib-tool (func_usage): Fix --import description. Document
40791 (func_import): Create temporary file in a temporary directory, if
40792 --dry-run is specified. Silence errors from 'grep' when there are no
40793 m4 files in $m4dir.
40794 (func_create_testdir): Silence errors from 'grep' when there are no
40795 m4 files in $m4dir.
40796 Reported by Karl Berry <karl@freefriends.org>.
40798 2006-04-20 Bruno Haible <bruno@clisp.org>
40800 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
40801 one argument, so that the code will be portable to Autoconf 2.60.
40802 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
40803 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
40804 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
40806 2006-04-19 Derek Price <derek@ximbiot.com>
40807 Eric Blake <ebb9@byu.net>
40809 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
40810 rather than "/full/path.h". Update comment to match. Shorten &
40811 generalize m4_translit call via AS_TR_CPP.
40813 2006-04-19 Derek Price <derek@ximbiot.com>
40814 Eric Blake <ebb9@byu.net>
40816 * lib/inttypes.h: Correct grammar in comment.
40818 2006-04-18 Derek Price <derek@ximbiot.com>
40819 Paul Eggert <eggert@cs.ucla.edu>
40821 * modules/inttypes: New file.
40822 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
40824 2006-04-18 Derek Price <derek@ximbiot.com>
40825 Paul Eggert <eggert@cs.ucla.edu>
40827 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
40830 2006-04-18 Derek Price <derek@ximbiot.com>
40831 Paul Eggert <eggert@cs.ucla.edu>
40833 * lib/inttypes.h: New file.
40834 * lib/strtoimax.c: Assume <inttypes.h>.
40836 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
40838 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
40839 isn't mounted. Problem reported by Kir Kolyshkin.
40841 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
40843 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
40844 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
40846 * lib/regex.h (RE_DUP_MAX): Update comment to match current
40849 2006-04-12 Eric Blake <ebb9@byu.net>
40851 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
40852 is now done automatically by the corresponding Autoconf macro.
40854 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
40856 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
40859 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
40861 Merge regex changes from libc, removing some of our
40862 POSIX-conformance changes that were rejected and redoing them in a
40863 less-intrusive way.
40865 * lib/regcomp.c (re_compile_internal, init_dfa):
40866 Length arg is now size_t, not Idx. All uses changed.
40867 (peek_token): Forward decl now says internal_function.
40868 (__re_error_msgid, __re_error_msgid_idx):
40869 Now static rather than extern with attribute_hidden.
40870 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
40871 For some reason libc prefers K&R style defns for external functions.
40872 (regerror) [!defined _LIBC]: Likewise.
40873 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
40874 (seek_collating_symbol_entry, lookup_collation_sequence_value):
40875 (build_range_exp, build_collating_symbol):
40876 Use K&R-style defn.
40877 (re_compile_fastmap): Use '\0' to memset, not 0.
40878 (utf8_sb_map): Make the calculations more obvious.
40879 (init_dfa, parse_bracket_exp, build_charclass_op):
40880 Call calloc and cast result, as glibc does.
40881 (init_word_char, fetch_token, peek_token, peek_token_bracket):
40882 (build_range_exp, build_collating_symbol):
40883 Now internal functions.
40885 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
40887 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
40888 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
40889 Don't depend on VMS; depend on __VMS instead, for POSIX
40890 namespace cleanness.
40891 (regoff_t): Define to ssize_t, not long int.
40893 Remove the REG_ macros named below. Instead, make the old names
40894 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
40896 (REG_BACKSLASH_ESCAPE_IN_LISTS):
40897 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
40898 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
40899 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
40900 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
40901 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
40902 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
40903 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
40904 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
40905 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
40906 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
40907 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
40908 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
40909 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
40910 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
40911 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
40912 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
40914 Remove. All uses replaced by the old RE_* names.
40915 (RE_BACKSLASH_ESCAPE_IN_LISTS):
40916 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
40917 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
40918 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
40919 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
40920 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
40921 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
40922 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
40923 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
40924 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
40925 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
40926 Don't bother having these macros be independent of each others'
40927 values, since they no longer exist in the POSIX name space.
40929 Rename the following member names back to their old names,
40930 unless !__USE_GNU_REGEX. All uses changed back.
40931 (buffer): Renamed from re_buffer.
40932 (allocated): Renamed from re_allocated.
40933 (used): Renamed from re_used.
40934 (syntax): Renamed from re_syntax.
40935 (fastmap): Renamed from re_fastmap.
40936 (translate): Renamed from re_translate.
40937 (can_be_null): Renamed from re_can_be_null.
40938 (regs_allocated): Renamed from re_regs_allocated.
40939 (fastmap_accurate): Renamed from re_fastmap_accurate.
40940 (no_sub): Renamed from re_no_sub.
40941 (not_bol): Renamed from re_not_bol.
40942 (not_eol): Renamed from re_not_eol.
40943 (newline_anchor): Renamed from re_newline_anchor.
40944 (num_regs): Renamed from rm_num_regs.
40945 (start): Renamed from rm_start.
40946 (end): Renamed from rm_end.
40948 (free_state): Move up a bit.
40950 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
40951 #define to be empty.
40952 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
40953 when that is what is intended.
40954 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
40955 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
40957 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
40958 All uses changed back to re_malloc, etc. It's now the caller's
40959 responsibility to check for overflow; all callers changed.
40960 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
40961 (re_x2nrealloc): Remove.
40962 (free_state): Remove decl.
40964 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
40965 (re_set_registers, re_exec):
40966 Use K&R-style defn.
40968 2006-01-31 Roland McGrath <roland@redhat.com>
40970 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
40971 Reported by Mike Frysinger <vapier@gentoo.org>.
40973 2006-01-15 Andreas Jaeger <aj@suse.de>
40976 * lib/regex_internal.c (re_string_reconstruct): Adjust for
40977 build_wcs_upper_buffer change.
40978 (build_wcs_upper_buffer): Change return type.
40980 2005-12-10 Ulrich Drepper <drepper@redhat.com>
40982 * lib/regex_internal.h: Include <stdint.h> if available.
40984 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
40986 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
40988 2005-10-14 Ulrich Drepper <drepper@redhat.com>
40990 * lib/regcomp.c: Adjust for changed secondary hash function.
40992 2005-09-30 Ulrich Drepper <drepper@redhat.com>
40994 * lib/regex.h: Pretty printing.
40995 Clean up namespace a bit.
40997 2005-09-30 Jakub Jelinek <jakub@redhat.com>
40999 * lib/regexec.c (update_cur_sifted_state, check_arrival,
41000 check_arrival_add_next_nodes): Avoid using uninitialized variable.
41002 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
41003 Ulrich Drepper <drepper@redhat.com>
41006 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
41008 (bitset_word_t): Renamed from bitset_word. All uses changed.
41010 2005-09-22 Ulrich Drepper <drepper@redhat.com>
41013 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
41014 * lib/regcomp.c: Remove unnecessary uses of
41015 unsigned RE_TRANSLATE_TYPE.
41016 * lib/regex_internal.h: Likewise.
41017 * lib/regex_internal.c: Likewise.
41018 * lib/regexec.c: Likewise.
41019 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
41021 2005-09-07 Ulrich Drepper <drepper@redhat.com>
41023 * lib/regexec.c (find_recover_state): Remove unnecessary
41025 (transit_state_bkref): Make DFA a const pointer.
41026 (get_subexp): Likewise.
41027 (check_arrival): Likewise.
41028 (update_cur_sifted_state): Likewise.
41029 (re_search_internal): Likewise.
41030 (prune_impossible_nodes): Likewise.
41031 (acquire_init_state_context): Likewise.
41032 (proceed_next_node): Likewise.
41033 (set_regs): Likewise.
41034 (free_fail_stack_return): Likewise.
41035 (check_arrival_expand_ecl): Mark DFA parameter as const.
41036 (check_arrival_expand_ecl_sub): Likewise.
41037 (check_subexp_limits): Likewise.
41038 (sub_epsilon_src_nodes): Likewise.
41039 (add_epsilon_src_nodes): Likewise.
41040 (merge_state_array): Likewise.
41041 (update_regs): Likewise.
41042 (build_trtable): Likewise.
41043 (sift_states_backward): Mark MCTX parameter as const.
41044 (build_sifted_states): Likewise.
41045 (update_cur_sifted_state): Likewise.
41046 (sift_states_mkref): Likewise.
41047 (check_arrival_expand_ecl): Mark eclosure as const.
41048 (check_dst_limits_calc_pos_1): Likewise.
41049 * lib/regex_internal.h (re_match_context_t): Make dfa a const
41052 2005-09-06 Ulrich Drepper <drepper@redhat.com>
41054 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
41055 (transit_state_sb): Likewise.
41056 (transit_state_mb): Likewise.
41057 (sift_states_iter_mb): Likewise.
41058 (check_arrival_add_next_nodes): Likewise.
41059 (check_node_accept_bytes): Change first parameter to pointer-to-const.
41060 [_LIBC] (re_search_2_stub): Use mempcpy.
41062 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
41063 mbrtowc for very simple UTF-8 case.
41065 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
41066 a pointer-to-const.
41067 (re_acquire_state_context): Likewise.
41068 * lib/regex_internal.h: Adjust prototypes.
41070 * lib/regex.c: Prevent using C++ compilers.
41072 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
41073 (re_acquire_state_context): Likewise.
41075 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
41077 * modules/regex (Depends-on): Add ssize_t.
41079 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
41081 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
41084 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
41086 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
41088 2006-03-29 Mark D. Baushke <mdb@gnu.org>
41089 Bruno Haible <bruno@clisp.org>
41091 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
41092 <sys/types.h> and <inttypes.h>.
41094 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41096 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
41097 `__error_t_defined', so argp.h will not typedef the former.
41099 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
41101 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
41102 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
41103 glibc names. Even if glibc is changed to conform to POSIX, the
41104 traditional names will be available anyway, since regex depends on
41105 the extensions module. Also, fix a longstanding typo in the
41106 implementation of Spencer ERE test #75 from grep 2.3. Problems
41107 reported by Emanuele Giaquinta. Also, change sense of cached
41108 variable, so that the message makes sense.
41110 2006-03-24 Simon Josefsson <jas@extundo.com>
41112 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
41113 including some doc fixes.
41114 (base64_encode_alloc): Fix +1 bug on allocation failures.
41116 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41118 * lib/base64.c (base64_encode): Do not read past end of array with
41119 unsanitized input on systems with CHAR_BIT > 8.
41121 2006-03-24 Eric Blake <ebb9@byu.net>
41123 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
41125 2006-03-22 Karl Berry <karl@gnu.org>
41127 * config/srclist.txt (*setenv.[ch]): get from coreutils.
41128 * config/srclistvars.sh (COREUTILS): new var.
41130 2006-03-17 Jim Meyering <jim@meyering.net>
41132 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
41133 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
41135 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
41137 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
41138 no longer needs it. Instead, check that regoff_t is as least
41139 as wide as ptrdiff_t.
41141 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
41142 so that our regex.h stays compatible with the installed regex.
41143 This is helpful for installers who configure --without-included-regex.
41144 Problem reported by Emanuele Giaquinta.
41146 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
41148 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
41149 Typedef to long int, not to off_, as POSIX will likely change
41152 2006-03-15 Eric Blake <ebb9@byu.net>
41154 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
41156 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
41158 * lib/argp-help.c (validate_uparams): Fix typo
41159 * lib/argp-parse.c (argp_default_options): Consistently begin help
41160 messages with a lowercase letter.
41162 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
41164 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
41165 overrun buffers and shouldn't be used (much as gets shouldn't be
41167 * lib/time_r.c (asctime_r, ctime_r): Likewise.
41169 2006-03-08 Simon Josefsson <jas@extundo.com>
41171 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
41172 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41174 2006-03-08 Simon Josefsson <jas@extundo.com>
41176 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
41177 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41179 2006-03-08 Simon Josefsson <jas@extundo.com>
41181 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
41182 signal that configure disabled the device.
41184 2006-03-08 Simon Josefsson <jas@extundo.com>
41186 * build-aux/maint.mk: Fix refresh-po, to handle no translated
41189 2006-03-07 Simon Josefsson <jas@extundo.com>
41191 * modules/getopt (Depends-on): Add unistd.
41193 * modules/unistd: New file.
41195 2006-03-07 Simon Josefsson <jas@extundo.com>
41197 * modules/gc-random: New file.
41199 2006-03-07 Simon Josefsson <jas@extundo.com>
41201 * m4/unistd_h.m4: New file.
41203 2006-03-07 Simon Josefsson <jas@extundo.com>
41205 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
41206 test to be side-effect free by storing the result in the cache
41207 variable gl_cv_lib_readline, and moving the assignment of
41208 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
41209 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41211 2006-03-07 Simon Josefsson <jas@extundo.com>
41213 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
41214 error on missing devices (the functions will return an error).
41216 * m4/gc.m4: Move random stuff to gc-random.m4
41218 2006-03-07 Simon Josefsson <jas@extundo.com>
41220 * lib/unistd_.h: New file.
41222 2006-03-07 Simon Josefsson <jas@extundo.com>
41224 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
41226 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
41228 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
41229 Problem reported by Juan Manuel Guerrero.
41231 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
41233 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
41235 * lib/getlogin_r.c: Likewise.
41236 * lib/getlogin_r.h: Likewise.
41237 * lib/glob.c: Likewise.
41238 * lib/pagealign_alloc.c: Likewise.
41239 * lib/unistd_.h: Remove; no longer needed.
41241 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
41243 * MODULES.html.sh (Support for systems lacking POSIX:2001):
41245 * modules/c-stack (Depends-on): Add unistd.
41246 * modules/getlogin_r: Likewise.
41247 * modules/glob: Likewise.
41248 * modules/pagealign_alloc: Likewise.
41249 * modules/unistd (Files): Remove lib/unistd_.h.
41250 (EXTRA_DIST): Remove.
41251 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
41253 (MOSTLYCLEANFILES): Remove unistd.h-t.
41255 2006-03-03 Simon Josefsson <jas@extundo.com>
41257 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
41259 2006-03-03 Simon Josefsson <jas@extundo.com>
41261 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
41264 2006-03-03 Simon Josefsson <jas@extundo.com>
41266 * build-aux/maint.mk: Add indent target.
41268 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
41270 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
41271 our replacement poll.h in any case, to avoid a differing
41272 declaration from a system header. Seen on AIX.
41274 2006-03-01 Simon Josefsson <jas@extundo.com>
41276 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
41279 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
41281 * modules/gettime (Depends-on): Add extensions module.
41282 * modules/nanosleep (Depends-on): Likewise.
41283 * modules/settime (Depends-on): Likewise.
41285 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
41287 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
41288 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
41290 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41291 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
41293 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
41294 not "==". Reported by Ralf Wildenhues.
41296 2006-03-01 Karl Berry <karl@gnu.org>
41298 * doc/Copyright/request-*: new files, synced from gnuorg.
41300 2006-03-01 Karl Berry <karl@gnu.org>
41302 * config/srclist.txt (Copyright/*): new entries.
41304 2006-02-28 Simon Josefsson <jas@extundo.com>
41306 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
41308 2006-02-27 Simon Josefsson <jas@extundo.com>
41310 * lib/base64.h: Indent #define's. From Jim Meyering
41311 <jim@meyering.net>.
41313 2006-02-27 Jim Meyering <jim@meyering.net>
41315 Revert the change of 2006-02-24, so these files can continue
41316 to be sync'd from gettext.
41317 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
41320 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
41322 * modules/intprops: New file.
41323 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
41325 * modules/getloadavg (Files): Remove lib/intprops.h.
41326 (Depends-on): Add intprops.
41327 * modules/human: Likewise.
41328 * modules/inttostr: Likewise.
41329 * modules/openat: Likewise.
41330 * modules/sig2str: Likewise.
41331 * modules/userspec: Likewise.
41332 * modules/utimecmp: Likewise.
41333 * modules/xnanosleep: Likewise.
41334 * modules/xstrtol: Likewise.
41336 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
41338 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
41339 * modules/lock-tests (TESTS): Use $(EXEEXT).
41340 * modules/tls-tests: Likewise.
41341 * modules/argp-tests: Likewise.
41342 (check_PROGRAMS): New var, replacing...
41343 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
41345 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41347 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
41350 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
41352 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
41354 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41356 Sync from coreutils.
41357 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
41360 2006-02-22 Jim Meyering <jim@meyering.net>
41362 Sync from coreutils.
41363 * m4/chdir-safer.m4: New file.
41365 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
41367 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
41368 AT_FDCWD exceeds INT_MAX.
41369 * lib/openat.h (AT_FDCWD): Likewise.
41371 2006-02-17 Eric Blake <address@hidden>
41373 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
41375 2006-02-16 Simon Josefsson <jas@extundo.com>
41377 * modules/getaddrinfo (Depends-on): Add sys_socket.
41379 2006-02-15 Simon Josefsson <jas@extundo.com>
41381 * build-aux/maint.mk: Add dsyntax-check rule.
41383 2006-02-15 Eric Blake <ebb9@byu.net>
41385 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
41386 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
41387 'present but cannot compile' warnings on cygwin.
41388 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
41389 use ws2tcpip.h if sys/socket.h works.
41390 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
41391 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
41393 2006-02-14 Simon Josefsson <jas@extundo.com>
41395 * modules/maintainer-makefile (Files): Rename.
41397 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
41398 and (the local) Makefile.cfg to maint-cfg.mk.
41400 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
41403 * modules/maintainer-makefile: New module.
41405 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
41406 severaly stripped to make it possible to build it up from scratch
41407 with reliable tests.
41409 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
41410 fixes to permit overriding the default actions when configure and
41411 makefile are not available.
41413 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
41415 Sync from coreutils.
41416 * modules/lstat (Depends-on): Don't depend on xalloc.
41417 (License): Change from GPL to LGPL, since this is now simply a
41418 replacement for a libc function.
41420 2006-02-14 Jim Meyering <jim@meyering.net>
41422 Sync from coreutils.
41424 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
41425 failure on deficient systems, and simplify gnulib lgpl dependencies.
41426 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
41427 xmalloc/lstat combination. Based on a patch from Bruno Haible.
41429 * lib/xalloc-die.c: Remove unused definition of N_.
41431 2006-02-14 Jim Meyering <jim@meyering.net>
41433 Sync from coreutils.
41434 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
41435 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
41436 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
41437 double-quote uses of that variable, to accommodate the rare case in
41438 which getmntent is available in none of the libraries checked. This
41439 happens at least on FreeBSD 5.0.
41441 2006-02-13 Simon Josefsson <jas@extundo.com>
41443 * gnulib-tool (Usage): Fix --import, from
41444 karl@freefriends.org (Karl Berry).
41446 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
41448 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
41450 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
41452 * lib/argp-namefrob.h: Restore changes accidentally lost during the
41453 "autoupdate" on 2005-12-12.
41455 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
41457 * modules/closeout (Depends-on): Remove atexit.
41459 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
41461 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
41462 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
41464 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
41466 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
41467 __EXTENSIONS__ if this causes compilation to fail. Problem
41468 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
41469 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
41471 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
41473 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
41474 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
41475 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
41478 2006-01-26 Simon Josefsson <jas@extundo.com>
41480 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
41481 prototype is visible on mingw32.
41483 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
41486 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
41489 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
41491 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
41492 attempt to open for write; this always fails, at least on POSIX
41493 hosts. This reinstates the 2006-01-09 change, which was
41494 inadvertently removed.
41496 2006-01-26 Bruno Haible <bruno@clisp.org>
41498 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
41499 Reported by Paul Eggert.
41501 2006-01-26 Bruno Haible <bruno@clisp.org>
41502 Paul Eggert <eggert@cs.ucla.edu>
41504 * lib/stdbool_.h (_Bool)
41505 [(! (defined __cplusplus || defined __BEOS__)
41506 && !defined __GNUC__
41507 && !(defined __HP_cc || defined __xlc__
41508 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
41509 || defined __sgi))]:
41510 #define to signed char in these cases too; this simplifies
41511 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
41512 etc., separately) and makes it more conservative.
41514 2006-01-25 Simon Josefsson <jas@extundo.com>
41516 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
41517 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
41518 ws2tcpip.h with WINVER=0x0501. All for mingw32.
41520 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
41522 * lib/argp-namefrob.h: Bugfix. Remove stray #
41524 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
41526 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
41527 so that we test the test.
41528 Check for yet another HP-UX cc bug involving *bool |= bool.
41530 2006-01-25 Karl Berry <karl@gnu.org>
41532 * config/srclist.txt (vasnprintf.c): sync lost.
41534 2006-01-25 Jim Meyering <jim@meyering.net>
41536 Sync from the stable (b5) branch of coreutils:
41538 * lib/fts.c (fts_children): Don't let close() clobber errno from
41541 * lib/fts.c (fts_stat): When following a symlink-to-directory,
41542 don't necessarily interpret stat-fails+lstat-succeeds as indicating
41543 a dangling symlink. That can also happen at least for ELOOP.
41544 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
41545 FYI, this bug predates the inclusion of fts.c in coreutils.
41547 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
41548 in their own block, so pre-c99 compilers don't object.
41550 Avoid the double-free (first in fts_read, second in fts_close) that
41551 would occur when an `active' directory is made inaccessible (e.g.,
41552 via chmod a-x) during a traversal.
41553 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
41554 before returning. Reproduce this failure by
41555 mkdir -p a/b; cd a; chmod a-x . b
41556 Reported by Stavros Passas.
41558 2006-01-25 Jim Meyering <jim@meyering.net>
41560 * lib/fileblocks.c: Remove more useless parentheses.
41561 * lib/readutmp.h: Likewise.
41563 2006-01-25 Bruno Haible <bruno@clisp.org>
41565 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
41567 Reported by Paul Eggert.
41569 2006-01-25 Bruno Haible <bruno@clisp.org>
41571 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
41572 rid of a trap command. For Solaris sh.
41573 Reported by Mark D. Baushke <mdb@gnu.org>.
41575 2006-01-24 Simon Josefsson <jas@extundo.com>
41577 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
41580 2006-01-24 Karl Berry <karl@gnu.org>
41582 * config/srclist.txt (argp-namefrob.h): sync lost.
41584 2006-01-24 Jim Meyering <jim@meyering.net>
41586 * modules/openat (Files): Add lib/intprops.h.
41587 From Mark D. Baushke.
41589 2006-01-24 Jim Meyering <jim@meyering.net>
41591 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
41592 Reported by Mark D. Baushke.
41594 2006-01-24 Jim Meyering <jim@meyering.net>
41596 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
41598 2006-01-24 Bruno Haible <bruno@clisp.org>
41600 * modules/strnlen (Maintainer): Change from glibc to all.
41602 2006-01-24 Bruno Haible <bruno@clisp.org>
41604 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
41605 Patch by Paul Eggert.
41607 2006-01-24 Bruno Haible <bruno@clisp.org>
41609 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
41611 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
41614 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
41615 'signed char' to avoid problems with the built-in _Bool type.
41616 Reported by Paul Eggert on 2005-11-26.
41618 2006-01-24 Bruno Haible <bruno@clisp.org>
41620 * gnulib-tool (func_import): Avoid constructing complicated sed
41621 expressions inside backquote.
41622 Report and solution by Mark D. Baushke <mdb@gnu.org>.
41624 2006-01-23 Ulrich Drepper <drepper@redhat.com>
41626 These changes imported from libc.
41627 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
41628 test and two separate function calls.
41629 * lib/strndup.c (__strndup): Add libc_hidden_def.
41631 2006-01-23 Simon Josefsson <jas@extundo.com>
41633 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
41634 Remove the test_*_SOURCES variable: automake infers it by default.
41635 * modules/tls-tests: Likewise.
41637 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
41639 Work around porting bugs reported by Dieter in
41640 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
41641 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
41642 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
41643 Include "getopt.h" first, to check interface.
41644 (getenv): Declare only if defined HAVE_DECL_GETENV &&
41646 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
41647 (__strndup): Revert to K&R-style function dfns, the glibc style.
41648 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
41649 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
41650 Include strnlen.h first, to get prototype properly.
41651 (strnlen): Renamed from __strnlen.
41654 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
41656 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
41658 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
41660 * config/srclist.txt: Adjust to reflect glibc reorganization.
41661 This affects only comments.
41663 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
41665 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
41666 Reported by Bruce Korb <bkorb@gnu.org>.
41668 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
41670 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
41671 to pacify gcc -Wswitch-default.
41673 2006-01-22 Bruno Haible <bruno@clisp.org>
41675 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
41676 temporary buffer for sprintf, take into account the precision also
41677 for 'd', 'i', 'u', 'o', 'x', 'X'.
41679 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
41681 * modules/argp-tests: New module
41682 * tests/test-argp.c: New file
41683 * tests/test-argp-2.sh: New file
41685 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
41687 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
41688 (__argp_base_name): Removed
41689 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
41691 (__argp_base_name): Provide macro definition or extern declaration
41692 depending on the configuration
41694 2006-01-20 Simon Josefsson <jas@extundo.com>
41696 * modules/inet_ntop (Depends-on): Depend on sys_socket.
41698 2006-01-20 Simon Josefsson <jas@extundo.com>
41700 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
41702 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
41704 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
41705 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
41706 Suggested by Bruno Haible.
41708 2006-01-20 Karl Berry <karl@gnu.org>
41710 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
41711 until changes propagate, I guess.
41713 2006-01-19 Simon Josefsson <jas@extundo.com>
41715 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
41717 2006-01-19 Simon Josefsson <jas@extundo.com>
41719 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
41721 2006-01-19 Simon Josefsson <jas@extundo.com>
41723 * gnulib-tool: Set check_PROGRAMS.
41725 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
41726 modules/des-tests, modules/gc-arcfour-tests,
41727 modules/gc-arctwo-tests, modules/gc-des-tests,
41728 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
41729 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
41730 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
41731 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
41732 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
41733 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
41734 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
41737 2006-01-18 Simon Josefsson <jas@extundo.com>
41739 * modules/socklen (Depends-on): Depend on sys_socket.
41741 2006-01-18 Simon Josefsson <jas@extundo.com>
41743 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
41744 modules/des-tests, modules/gc-arcfour-tests,
41745 modules/gc-arctwo-tests, modules/gc-des-tests,
41746 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
41747 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
41748 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
41749 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
41750 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
41751 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
41752 $(EXEEXT) to automake TESTS variable, for mingw32.
41754 2006-01-17 Simon Josefsson <jas@extundo.com>
41756 * modules/socklen (Include): Need sys/socket.h.
41758 2006-01-17 Bruno Haible <bruno@clisp.org>
41760 * modules/ssize_t (Include): Add <sys/types.h>.
41762 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
41764 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
41765 it's not portable and it doesn't work with cross-compiles.
41766 Problem reported by Bruno Haible. Fix missing-$ typo in
41767 'test "gl_cv_ignore_unused_libraries" ...' that prevented
41768 -zignore from being used with Sun's C compiler.
41770 2006-01-12 Simon Josefsson <jas@extundo.com>
41772 * lib/base64.c: Fix warning, reported by Bruno Haible
41773 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
41775 2006-01-12 Bruno Haible <bruno@clisp.org>
41777 * modules/ldd: New file.
41778 * build-aux/ldd.sh.in: New file.
41779 * MODULES.html.sh (Support for building libraries and executables): Add
41782 2006-01-12 Bruno Haible <bruno@clisp.org>
41784 * m4/ldd.m4: New file.
41786 2006-01-12 Bruno Haible <bruno@clisp.org>
41788 * gnulib-tool (func_import, func_create_testdir): Don't go into an
41789 endless loop while replacing $auxdir with build-aux.
41791 2006-01-11 Simon Josefsson <jas@extundo.com>
41793 * lib/stdint_.h (SIZE_MAX): Add missing (.
41795 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
41797 Sync from coreutils.
41798 * lib/md5.c: Fix commentary typos.
41799 (alignof, UNALIGNED_P): No need for a GCC-specific version.
41800 * lib/md5.h (__attribute__): Remove; unused.
41801 * lib/sha1.c: Fix commentary to match md5 better.
41802 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
41803 so that we don't need to worry about alignment. All uses changed.
41804 This merges the 2005-10-28 md5 change into sha1.
41806 2006-01-11 Jim Meyering <jim@meyering.net>
41808 Sync from coreutils.
41809 * lib/md5.c (OP): Fix spacing.
41811 2006-01-11 Bruno Haible <bruno@clisp.org>
41813 Ensure automatic ordering between gl_LOCK and gl_ARGP.
41814 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
41815 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
41817 2006-01-11 Bruno Haible <bruno@clisp.org>
41819 Ensure automatic ordering between gl_LOCK and gl_ARGP.
41820 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
41821 the "early" section as well.
41823 2006-01-11 Bruno Haible <bruno@clisp.org>
41825 Avoid "ar: no archive members specified" error on MacOS X.
41826 * gnulib-tool (func_modules_add_dummy): New function.
41827 (func_import, func_create_testdir): Invoke it.
41829 2006-01-11 Bruno Haible <bruno@clisp.org>
41831 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
41832 with $auxdir in AC_CONFIG_FILES statements.
41834 2006-01-11 Bruno Haible <bruno@clisp.org>
41836 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41837 Initialize also noinst_HEADERS to empty.
41839 2006-01-11 Bruno Haible <bruno@clisp.org>
41841 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
41843 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
41846 2006-01-11 Bruno Haible <bruno@clisp.org>
41848 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
41849 overridable by the user.
41850 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41852 2006-01-10 Simon Josefsson <jas@extundo.com>
41854 * modules/sys_socket: New file.
41856 2006-01-10 Simon Josefsson <jas@extundo.com>
41858 * m4/sys_socket_h.m4: New file.
41860 2006-01-10 Simon Josefsson <jas@extundo.com>
41862 * lib/socket_.h: New file.
41864 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
41866 * modules/readutmp (Maintainer): Add myself.
41868 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
41870 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
41871 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
41872 People who are still concerned with buggy memcmp implementations
41873 can invoke gl_FUNC_MEMCMP themselves.
41875 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
41877 * lib/regex_internal.h (BITSET_WORD_BITS):
41878 Work around a bug in 64-bit PGC (before version 6.1-2), where the
41879 preprocessor mishandles large unsigned values as if they were signed.
41880 Problem reported by Claudio Fontana in
41881 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
41883 2006-01-10 Jim Meyering <jim@meyering.net>
41885 Avoid the double-free (first in fts_read, second in fts_close) that
41886 would occur when an `active' directory is made inaccessible (e.g.,
41887 via chmod a-x) during a traversal.
41888 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
41889 before returning. Reproduce this failure by
41890 mkdir -p a/b; cd a; chmod a-x . b
41891 Reported by Stavros Passas.
41893 Sync from coreutils.
41894 * lib/sha1.c: Tweak grammar in a comment.
41896 2006-01-10 Jim Meyering <jim@meyering.net>
41898 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
41899 Patch by Joerg Sonnenberger.
41901 2006-01-10 Bruno Haible <bruno@clisp.org>
41903 * modules/readutmp: Depend on module free.
41904 * modules/strtok_r: Depend on module restrict.
41906 2006-01-10 Bruno Haible <bruno@clisp.org>
41908 * modules/gettext (configure.ac): Add an invocation of
41909 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
41911 2006-01-10 Bruno Haible <bruno@clisp.org>
41913 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
41914 Reported by Werner Lemberg <wl@gnu.org>.
41916 2006-01-10 Bruno Haible <bruno@clisp.org>
41918 * lib/localcharset.c: Update from GNU gettext.
41920 2006-01-10 Bruno Haible <bruno@clisp.org>
41922 * lib/argp.h (__const): Remove macro. Use const instead.
41923 * lib/argp-fmtstream.h (__const): Likewise.
41924 * lib/glob_.h (__const): Remove macro.
41925 * lib/glob-libc.h: Use const instead of __const.
41927 2006-01-10 Bruno Haible <bruno@clisp.org>
41929 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
41931 Needed to avoid an automake error regarding the 'gettext' module.
41933 2006-01-09 Simon Josefsson <jas@extundo.com>
41935 * modules/inet_ntop (Depends-on): Add restrict.
41937 2006-01-09 Simon Josefsson <jas@extundo.com>
41939 * modules/gc-rijndael-tests (License): Put under LGPL.
41941 * modules/gc-des-tests (License): Likewise.
41943 * modules/gc-arcfour-tests (License): Likewise.
41945 * modules/gc-arctwo-tests (License): Likewise.
41947 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
41949 * modules/gc-hmac-sha1-tests (Files): Likewise.
41951 * modules/gc-hmac-md5-tests (License): Likewise.
41953 * modules/gc-sha1-tests (License): Likewise.
41955 * modules/gc-md5-tests (License): Likewise.
41957 * modules/gc-md4-tests (License): Likewise.
41959 * modules/gc-md2-tests (License): Likewise.
41961 * modules/gc-tests (License): Likewise.
41963 * modules/des-tests (License): Likewise.
41965 * modules/md4-tests (License): Likewise.
41967 * modules/md2-tests (License): Likewise.
41969 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
41971 Sync from coreutils:
41973 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
41974 * modules/lib-ignore: New file.
41975 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
41976 chdir-safer.m4, lchmod.m4.
41977 * modules/openat: Add mkdirat.c, openat-priv.h.
41979 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
41981 Sync from coreutils.
41982 * m4/lib-ignore.m4: New file.
41983 * m4/lchmod.m4: New file.
41985 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
41987 Sync from coreutils.
41988 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
41989 for write access: POSIX says that must fail.
41990 * lib/fts.c (diropen): Likewise.
41991 * lib/save-cwd.c (save_cwd): Likewise.
41992 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
41993 well, for minor improvements on hosts that lack O_DIRECTORY.
41994 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
41995 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
41996 Fall back on chown if open failed with EACCES.
41998 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
41999 Report an error at compile-time if only a 1-second nominal clock
42000 resolution is found.
42002 * lib/lchmod.h: New file.
42003 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
42004 (make_dir_parents): Use lchown rather than chown, and
42005 lchmod rather than chmod.
42007 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
42008 dummies too. Problem with "none" reported by Bob Proulx. Problem with
42009 "proc" reported by n0dalus.
42011 * lib/mountlist.c: Include <limits.h>.
42012 (dev_from_mount_options)
42013 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
42014 New function. It no longer assumes "dev=" has the System V meaning
42015 on Linux (since it doesn't). It also parses "dev=" more carefully.
42016 (read_file_system_list)
42017 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
42018 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
42021 * lib/posixtm.h (PDS_PRE_2000): New macro.
42022 * lib/posixtm.c (year): Arg is now syntax_bits rather than
42023 allow_century. All usages changed. Reject dates outside the range
42024 1969-1999 if PDS_PRE_2000 is used.
42026 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
42028 Sync from coreutils.
42029 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
42030 (Time of day items): Mention the possibility of leap seconds.
42031 Problem reported by Dr. David Alan Gilbert.
42033 2006-01-09 Jim Meyering <jim@meyering.net>
42035 Sync from coreutils.
42037 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
42039 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
42041 * lib/modechange.c (mode_compile): Reject an invalid mode string
42042 that starts with an octal digit. From Andreas Gruenbacher.
42044 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
42045 and dup to open_safer and dup_safer, respectively.
42046 (openat_permissive): Fix typo in comment.
42048 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
42049 "gettext.h"; either no longer needed or are guaranteed by openat.h.
42050 (_): Remove; no longer needed.
42051 (openat): Renamed from rpl_openat; no need for rpl_openat
42052 since openat.h renames openat for us.
42053 Replace most of the body with a call to openat_permissive,
42054 to avoid duplicate code.
42055 Port to (probably hypothetical) environments were mode_t is
42057 (openat_permissive): Require mode arg, so that we can check
42058 types better. Put it just after flags. Change cwd failure
42059 indicator from pointer-to-bool to pointer-to-errno-value.
42060 All callers changed.
42061 Invoke openat_save_fail and/or openat_restore_fail if
42062 cwd_errno is null, so that openat can call us.
42063 (openat_permissive, fdopendir, fstatat, unlinkat):
42064 Simplify errno handling to avoid some duplicate code,
42065 as it's OK to set errno on success.
42066 * lib/openat.h: Revamp code so that function macros depend on
42067 __OPENAT_PREFIX only, not also on AT_FDCWD.
42068 (openat_ro): Remove. Caller changed to use openat_permissive.
42069 (openat_permissive): Now a macro, if not a function.
42070 (openat_restore_fail, openat_save_fail): Now always functions,
42071 since mkdirat needs them even if __OPENAT_PREFIX is defined.
42073 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
42075 * lib/mkdirat.c: Include openat-priv.h.
42076 Remove definitions of macros defined therein.
42077 * lib/openat.c: Likewise.
42079 * lib/mkdirat.c (mkdirat): New file and function.
42080 * lib/openat.h (mkdirat): Declare.
42082 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
42084 * lib/openat.h (openat_permissive): Declare.
42085 (openat_ro): Define.
42087 * lib/openat.c (EXPECTED_ERRNO): New macro.
42088 (openat_permissive): New function -- used in remove.c rewrite.
42089 (all functions): Set errno just before returning, only if there
42090 was an actual failure.
42091 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
42093 Emulate openat-family functions using Linux's procfs, if possible.
42094 Idea and some code based on Ulrich Drepper's glibc changes.
42096 * lib/openat.c: (BUILD_PROC_NAME): New macro.
42097 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
42098 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
42099 before falling back on save_cwd and restore_cwd.
42100 (fdopendir, fstatat, unlinkat): Likewise.
42102 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
42103 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
42105 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
42106 as second argument to va_arg. Otherwise, some versions of gcc
42107 warn that `if this code is reached, the program will abort'.
42109 2006-01-09 Jim Meyering <jim@meyering.net>
42111 Sync from coreutils.
42112 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
42113 Require openat-priv.h.
42115 2006-01-09 Bruno Haible <bruno@clisp.org>
42117 * modules/strnlen (Include): Use strnlen.h.
42119 2006-01-09 Bruno Haible <bruno@clisp.org>
42121 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
42123 2006-01-09 Bruno Haible <bruno@clisp.org>
42125 * lib/sysexit_.h (EX_OK): New macro.
42126 Suggested by Martin Lambers <marlam@marlam.de>.
42128 2006-01-09 Bruno Haible <bruno@clisp.org>
42130 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
42131 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
42133 2006-01-09 Bruno Haible <bruno@clisp.org>
42135 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
42138 2006-01-09 Bruno Haible <bruno@clisp.org>
42140 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
42141 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
42142 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
42143 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
42145 2006-01-09 Bruno Haible <bruno@clisp.org>
42147 * build-aux/javacomp.sh.in: New file, moved from lib/.
42148 * modules/javacomp-script (Files): Update.
42149 (configure.ac): Add AC_CONFIG_FILES invocation.
42150 (EXTRA_DIST): Remove variable.
42152 * build-aux/javaexec.sh.in: New file, moved from lib/.
42153 * modules/javaexec (Files): Update.
42154 (configure.ac): Add AC_CONFIG_FILES invocation.
42155 (EXTRA_DIST): Remove javaexec.sh.in.
42157 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
42158 * modules/csharpcomp-script (Files): Update.
42159 (configure.ac): Add AC_CONFIG_FILES invocation.
42160 (EXTRA_DIST): Remove variable.
42162 * build-aux/csharpexec.sh.in: New file, moved from lib/.
42163 * modules/csharpexec (Files): Update.
42164 (configure.ac): Add AC_CONFIG_FILES invocation.
42165 (EXTRA_DIST): Remove csharpexec.sh.in.
42167 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
42169 Sync from coreutils.
42171 Add POSIX ACL support
42172 * lib/acl.h (copy_acl, set_acl): Add declarations.
42173 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
42174 systems other than Linux.
42175 (chmod_or_fchmod): New function: use fchmod when possible,
42176 and chmod otherwise.
42177 (file_has_acl): Add a POSIX ACL implementation, with a
42178 Linux-specific subcase.
42179 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
42180 S_ISVTX from one file to another. Fall back to fchmod/chmod when
42181 acls are unsupported.
42182 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
42183 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
42186 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
42188 Sync from coreutils.
42189 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
42191 2006-01-07 Bruno Haible <bruno@clisp.org>
42193 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
42196 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
42198 * lib/strftime.c (tzname): Don't declare if it is already #defined.
42199 Problem reported for Mingw by Mark Junker.
42201 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
42203 * README: Gnulib normally doesn't generate a tarball.
42205 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
42207 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
42208 long int, not int, for nanosecond counts, so that people who are
42209 used to POSIX struct timespec won't be surprised. Reported by Jim
42212 2005-12-28 Bruno Haible <bruno@clisp.org>
42214 * build-aux/config.rpath: Update from GNU gettext.
42216 2005-12-16 Jim Meyering <jim@meyering.net>
42218 * modules/fprintftime: New module.
42219 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
42221 2005-12-16 Jim Meyering <jim@meyering.net>
42223 * m4/fprintftime.m4: New file.
42225 2005-12-16 Jim Meyering <jim@meyering.net>
42227 * lib/fprintftime.c, lib/fprintftime.h: New files.
42229 2005-12-15 Simon Josefsson <jas@extundo.com>
42231 * modules/socklen (configure.ac): Fix M4 macro name, to align with
42234 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
42236 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
42237 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
42239 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
42241 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
42242 * lib/argp-help.c (fill_in_uparams): Check if the constructed
42243 struct uparams is valid. Fall back to the default values if it is
42246 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
42248 * modules/argp (Files): Add argp-pin.c
42249 (Depends-on): dirname
42250 (lib_SOURCES): Add argp-pin.c
42252 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
42254 * m4/argp.m4: Check if program_invocation_name and
42255 program_invocation_short_name are declared and define appropriate
42256 macros if they are not.
42258 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
42260 * lib/argp-help.c (__argp_base_name): New function
42261 (__argp_short_program_name): Rewrite using __argp_base_name
42262 * lib/argp-namefrob.h: Define program_invocation_name and
42263 program_invocation_short_name if requested
42264 (__argp_base_name): Add prototype
42265 * lib/argp-parse.c (argp_def): Use gettext wrappers
42266 (argp_default_parser): Use __argp_base_name
42267 * lib/argp-pin.c: New file. Defines program_invocation_name and
42268 program_invocation_short_name on systems that lack them.
42270 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
42272 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
42273 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
42274 porting problem reported by Georg Schwarz in
42275 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
42277 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
42279 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
42280 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
42281 porting problem reported by Georg Schwarz in
42282 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
42284 2005-12-05 Bruno Haible <bruno@clisp.org>
42286 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
42287 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
42288 Reported by Mark Junker <mjscod@gmx.de>.
42290 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
42292 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
42293 Use implementation from Albert Chin, with some
42294 comments/corrections by Stepan Kasal and myself.
42296 2005-12-02 Bruno Haible <bruno@clisp.org>
42298 * gnulib-tool (func_import): Accept GPLed build tool modules when
42300 * modules/csharpcomp-script: New file.
42301 * modules/csharpcomp: Depend on it.
42302 * modules/javacomp-script: New file.
42303 * modules/javacomp: Depend on it.
42304 Suggested by Simon Josefsson.
42306 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
42308 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
42309 statement, to work around an HP-UX 10.20 compiler bug reported by
42312 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
42314 * modules/savedir (Depends-on): Add openat.
42316 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
42318 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
42319 (uintmax_t) [defined uintmax_t]: Do not declare.
42320 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
42321 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
42322 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
42323 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
42324 sake of portability to weird hosts that C allows (though we don't
42325 know of any practical examples).
42327 * lib/savedir.h (fdsavedir): New decl.
42328 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
42329 contains most of the former guts of savedir.
42330 (savedir): Use savedirstream.
42331 Include "openat.h".
42333 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
42335 * modules/obstack (Files): Add m4/ulonglong.m4.
42336 Problem reported by Davide Angelocola.
42338 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
42340 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
42341 coreutils no longer futzes with rounding modes.
42343 2005-11-14 Jim Meyering <jim@meyering.net>
42345 * lib/mkstemp-safer.c: Include <config.h>, required for possible
42346 replacement of mkstemp.
42348 2005-11-10 Simon Josefsson <jas@extundo.com>
42350 * lib/readline.c: Remove EOL.
42352 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
42354 * modules/gethrxtime (Depends-on): Add gettime.
42356 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
42358 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
42359 or gettimeofday; no longer needed.
42361 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
42363 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
42365 (gethrxtime) [! (HAVE_NANOUPTIME
42366 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
42367 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
42368 our own approximation.
42370 2005-11-08 Eric Blake <ebb9@byu.net>
42372 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
42374 2005-11-08 Eric Blake <ebb9@byu.net>
42376 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
42378 2005-11-04 Bruno Haible <bruno@clisp.org>
42380 * gnulib-tool: Implement --update mode.
42382 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
42384 Fix porting problem reported by Theodoros V. Kalamatianos.
42385 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
42386 Don't assume that futimes failing means we must fail.
42388 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
42390 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
42391 variables to suggest the intended function of the PATH_MAX check.
42393 2005-10-30 Kean Johnston <jkj@sco.com>
42395 Trivial changes to support SCO systems.
42396 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
42398 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
42399 where __ptr is null when no I/O is pending.
42401 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
42403 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
42404 leave errno alone. Problem reported by Dmitry V. Levin.
42406 2005-10-28 Simon Josefsson <jas@extundo.com>
42408 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
42411 * tests/test-gc-md2.c, tests/test-md2.c: New files.
42413 * modules/md2, modules/md2-tests: New files.
42415 2005-10-28 Simon Josefsson <jas@extundo.com>
42417 * m4/inet_ntop.m4: More tests.
42419 * m4/gc-md2.m4, md2.m4: New file.
42421 2005-10-28 Simon Josefsson <jas@extundo.com>
42423 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
42424 "restrict" keywords, as per POSIX. Protect the function
42425 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
42426 Don't use K&R prototypes. Check the sprintf return values.
42427 Re-define EAFNOSUPPORT if not present. Indent.
42429 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
42430 suggested by Bruno Haible <bruno@clisp.org>.
42432 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
42434 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
42436 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
42439 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
42441 * lib/md2.h, lib/md2.c: New files.
42443 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
42445 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
42446 errno alone. Problem reported by Frederic Jolliton.
42448 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
42450 * modules/verify (License): Change from GPL to LGPL. This is a
42451 tiny module and there are apparently near-equivalents that are
42452 under the BSD license.
42454 2005-10-24 Simon Josefsson <jas@extundo.com>
42456 * modules/sha1: Relicense to LGPL.
42458 2005-10-24 Simon Josefsson <jas@extundo.com>
42460 * lib/md4.h: Shrink buffer size, now that we changed the type.
42462 2005-10-23 Simon Josefsson <jas@extundo.com>
42464 * gnulib-tool (func_import): Fix --tests-base.
42466 2005-10-22 Simon Josefsson <jas@extundo.com>
42468 * modules/arcfour (Depends-on): Need stdint.
42470 2005-10-22 Simon Josefsson <jas@extundo.com>
42472 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
42473 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
42475 2005-10-22 Simon Josefsson <jas@extundo.com>
42477 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
42478 suggested by Bruno Haible <bruno@clisp.org>.
42480 2005-10-22 Simon Josefsson <jas@extundo.com>
42482 * lib/crc.h: Include stddef.h, for size_t.
42484 2005-10-22 Simon Josefsson <jas@extundo.com>
42486 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
42487 arcfour_context struct (simplify test vector testing in GNU
42490 2005-10-21 Simon Josefsson <jas@extundo.com>
42492 * modules/des, modules/des-tests: New files.
42494 * modules/gc-des, modules/gc-des-tests: New files.
42496 * tests/test-des.c, tests/test-gc-des.c: New file.
42498 2005-10-21 Simon Josefsson <jas@extundo.com>
42500 * modules/arctwo, modules/arctwo-tests: New files.
42502 * tests/test-arctwo.c: New file.
42504 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
42506 * tests/test-gc-arctwo.c: New file.
42508 2005-10-21 Simon Josefsson <jas@extundo.com>
42510 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
42511 Bruno Haible <bruno@clisp.org>.
42513 * m4/gc-des.m4: New file.
42515 2005-10-21 Simon Josefsson <jas@extundo.com>
42517 * m4/arctwo.m4: New file.
42519 * m4/gc-arctwo.m4: New file.
42521 2005-10-21 Simon Josefsson <jas@extundo.com>
42523 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
42526 2005-10-21 Simon Josefsson <jas@extundo.com>
42528 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
42531 * lib/hmac-sha1.c (hmac_sha1): Likewise.
42533 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
42534 Bruno Haible <bruno@clisp.org>.
42536 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
42539 2005-10-21 Simon Josefsson <jas@extundo.com>
42541 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
42543 2005-10-21 Simon Josefsson <jas@extundo.com>
42545 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
42547 2005-10-21 Simon Josefsson <jas@extundo.com>
42549 * lib/des.h, lib/des.c: New files.
42551 * lib/gc-gnulib.c: Support DES.c
42553 2005-10-21 Simon Josefsson <jas@extundo.com>
42555 * lib/arctwo.h, lib/arctwo.c: New files.
42557 * lib/gc-gnulib.c: Support ARCTWO.
42559 2005-10-21 Simon Josefsson <jas@extundo.com>
42561 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
42562 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42564 2005-10-21 Simon Josefsson <jas@extundo.com>
42566 * gnulib-tool (func_import, func_create_testdir): Define automake
42567 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
42568 Makefile.am snippet),
42569 suggested by Bruno Haible <bruno@clisp.org>.
42571 * modules/gc (Makefile.am): Use it.
42573 2005-10-21 Bruno Haible <bruno@clisp.org>
42575 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
42578 2005-10-19 Simon Josefsson <jas@extundo.com>
42580 * tests/test-gc-rijndael.c: New file.
42582 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
42584 2005-10-19 Simon Josefsson <jas@extundo.com>
42586 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
42589 2005-10-19 Simon Josefsson <jas@extundo.com>
42591 * tests/test-gc-arcfour.c: New file.
42593 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
42595 2005-10-19 Simon Josefsson <jas@extundo.com>
42597 * modules/gc-md4, modules/gc-md4-tests: New file.
42599 * tests/test-gc-md4.c: New file.
42601 2005-10-19 Simon Josefsson <jas@extundo.com>
42603 * m4/gc-md4.m4: New file.
42605 2005-10-19 Simon Josefsson <jas@extundo.com>
42607 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
42608 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
42611 2005-10-19 Simon Josefsson <jas@extundo.com>
42613 * m4/gc-arcfour.m4: New file.
42615 * m4/gc-rijndael.m4: New file.
42617 2005-10-19 Simon Josefsson <jas@extundo.com>
42619 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
42621 2005-10-19 Simon Josefsson <jas@extundo.com>
42623 * lib/gc-gnulib.c: Support ARCFOUR.
42625 2005-10-19 Simon Josefsson <jas@extundo.com>
42627 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
42630 * lib/gc.h: Add ECB enum type.
42632 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
42634 2005-10-18 Simon Josefsson <jas@extundo.com>
42636 * tests/test-md5.c: New file.
42638 * modules/md5-tests: New file.
42640 2005-10-18 Simon Josefsson <jas@extundo.com>
42642 * tests/test-md4.c: New file.
42644 * modules/md4, modules/md4-tests: New files.
42646 2005-10-18 Simon Josefsson <jas@extundo.com>
42648 * m4/md4.m4: New file.
42650 2005-10-18 Simon Josefsson <jas@extundo.com>
42652 * lib/md4.h, lib/md4.c: New files, based on md5.?.
42654 2005-10-17 Stepan Kasal <kasal@ucw.cz>
42656 * gnulib-tool (func_create_testdir): Omit the second check whether
42657 BUILT_SOURCES in nonempty.
42659 2005-10-17 Simon Josefsson <jas@extundo.com>
42661 * tests/test-rijndael.c: New file.
42663 2005-10-17 Simon Josefsson <jas@extundo.com>
42665 * modules/sha1: Depend on stdint instead of md5.
42667 * modules/md5: Depend on stdint, remove uint32_t.
42669 2005-10-17 Simon Josefsson <jas@extundo.com>
42671 * modules/gc-sha1-tests: New file.
42673 * tests/test-gc-sha1.c: New file.
42675 2005-10-17 Simon Josefsson <jas@extundo.com>
42677 * m4/md5.m4: Remove call to uint32_t.m4.
42679 2005-10-17 Simon Josefsson <jas@extundo.com>
42681 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
42683 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
42686 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
42688 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
42690 2005-10-17 Simon Josefsson <jas@extundo.com>
42692 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
42694 2005-10-17 Simon Josefsson <jas@extundo.com>
42696 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
42698 2005-10-17 Simon Josefsson <jas@extundo.com>
42700 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
42702 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
42704 2005-10-17 Bruno Haible <bruno@clisp.org>
42706 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
42707 that it can also be used in a test.
42709 2005-10-16 Bruno Haible <bruno@clisp.org>
42711 * gnulib-tool (func_emit_tests_Makefile_am): Also define
42712 TESTS_ENVIRONMENT, so that individual tests can augment it.
42714 * gnulib-tool (func_create_testdir): Use an intermediate target for
42715 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
42716 macros, like $(ALLOCA_H), which cannot be passed through the command
42719 2005-10-15 Simon Josefsson <jas@extundo.com>
42721 * modules/rijndael-tests: New file.
42723 * modules/rijndael: New file.
42725 2005-10-15 Simon Josefsson <jas@extundo.com>
42727 * m4/rijndael.m4: New file.
42729 2005-10-15 Simon Josefsson <jas@extundo.com>
42731 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
42733 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
42735 2005-10-14 Simon Josefsson <jas@extundo.com>
42737 * tests/test-arcfour.c: New file.
42739 * modules/arcfour, modules/arcfour-tests: New files.
42741 2005-10-14 Simon Josefsson <jas@extundo.com>
42743 * m4/arcfour.m4: New file.
42745 2005-10-14 Simon Josefsson <jas@extundo.com>
42747 * lib/arcfour.h, lib/arcfour.c: New files.
42749 2005-10-14 Roland McGrath <roland@redhat.com>
42751 Import from libc. [BZ #1331]
42752 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
42754 Reported by Matej Vela <vela@debian.org>.
42756 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
42758 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
42759 include <wchar.h>; no longer needed.
42761 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
42763 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
42765 2005-10-14 Jakub Jelinek <jakub@redhat.com>
42766 and Ulrich Drepper <drepper@redhat.com>
42769 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
42770 instead of inline stream orientation test and two separate
42771 function calls. Pay no attention to USE_IN_LIBIO.
42773 2005-10-13 Simon Josefsson <jas@extundo.com>
42775 * modules/gc-hmac-md5-tests: New file.
42777 * tests/test-gc-hmac-sha1.c: New file.
42779 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
42781 * modules/gc-hmac-md5-tests: New file.
42783 * tests/test-gc-md5.c: New file.
42785 * modules/gc-md5-tests: New file.
42787 2005-10-13 Simon Josefsson <jas@extundo.com>
42789 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
42790 Move memory allocation outside of loop.
42792 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
42794 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
42795 intermediate directory is in a read-only file system. Problem
42796 reported by Eric Blake.
42798 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
42800 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
42802 2005-10-12 Simon Josefsson <jas@extundo.com>
42804 * tests/test-hmac-sha1.c: New file.
42806 * modules/hmac-sha1-tests: New file.
42808 * modules/hmac-sha1: New file.
42810 2005-10-12 Simon Josefsson <jas@extundo.com>
42812 * modules/gc-sha1: New file.
42814 2005-10-12 Simon Josefsson <jas@extundo.com>
42816 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
42818 * tests/test-gc-pbkdf2-sha1.c: New file.
42820 2005-10-12 Simon Josefsson <jas@extundo.com>
42822 * modules/gc-md5, modules/gc-hmac-md5: New files.
42824 * modules/gc (Files): Remove md5, memxor and hmac files.
42826 2005-10-12 Simon Josefsson <jas@extundo.com>
42828 * m4/gc-pbkdf2-sha1.m4: New file.
42830 * m4/gc-hmac-sha1.m4: New file.
42832 * m4/gc-sha1: New file.
42834 * m4/hmac-sha1.m4: New file.
42836 2005-10-12 Simon Josefsson <jas@extundo.com>
42838 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
42840 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
42842 2005-10-12 Simon Josefsson <jas@extundo.com>
42844 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
42845 suggested by Bruno Haible <bruno@clisp.org>.
42847 2005-10-12 Simon Josefsson <jas@extundo.com>
42849 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
42851 2005-10-12 Simon Josefsson <jas@extundo.com>
42853 * lib/gc-pbkdf2-sha1.c: New file.
42855 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
42857 2005-10-12 Simon Josefsson <jas@extundo.com>
42859 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
42861 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
42863 2005-10-12 Simon Josefsson <jas@extundo.com>
42865 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
42866 GC_USE_HMAC_MD5, respectively.
42868 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
42869 (gc_md5): Fix typo.
42871 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
42873 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
42875 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
42877 2005-10-12 Bruno Haible <bruno@clisp.org>
42879 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
42880 Reported by Stepan Kasal <kasal@ucw.cz>.
42882 2005-10-11 Simon Josefsson <jas@extundo.com>
42884 * tests/test-crc.c: New file.
42886 * modules/crc, modules/crc-tests: New files.
42888 2005-10-11 Simon Josefsson <jas@extundo.com>
42890 * m4/crc.m4: New file.
42892 2005-10-11 Simon Josefsson <jas@extundo.com>
42894 * lib/gc.h: Add gc_hash and gc_hash_buffer.
42896 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
42898 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
42900 2005-10-11 Simon Josefsson <jas@extundo.com>
42902 * lib/crc.h, lib/crc.c: New files.
42904 * lib/gc.h (gc_hash_buffer): Add doc.
42906 2005-10-11 Bruno Haible <bruno@clisp.org>
42908 * modules/c-strcasestr: New file.
42909 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
42911 2005-10-11 Bruno Haible <bruno@clisp.org>
42913 * modules/c-strcase: New file.
42914 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
42916 2005-10-11 Bruno Haible <bruno@clisp.org>
42918 * lib/strcasecmp.c: Include limits.h.
42919 (strcasecmp): Avoid integer overflow on exotic platforms.
42920 * lib/strncasecmp.c: Include limits.h.
42921 (strncasecmp): Avoid integer overflow on exotic platforms.
42922 Reported by Paul Eggert.
42924 2005-10-11 Bruno Haible <bruno@clisp.org>
42926 * lib/c-strcasestr.h: New file, from GNU gettext.
42927 * lib/c-strcasestr.c: New file, from GNU gettext.
42929 2005-10-11 Bruno Haible <bruno@clisp.org>
42931 * lib/c-strcase.h: New file, from GNU gettext.
42932 * lib/c-strcasecmp.c: New file, from GNU gettext.
42933 * lib/c-strncasecmp.c: New file, from GNU gettext.
42935 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
42937 * modules/mempcpy (License): GPL -> LGPL.
42938 * modules/strchrnul (License): Likewise.
42939 * modules/sysexits (License): Likewise.
42941 2005-10-08 Simon Josefsson <jas@extundo.com>
42943 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
42945 2005-10-07 Simon Josefsson <jas@extundo.com>
42947 * m4/memxor.m4: Remove gl_C_RESTRICT call.
42949 2005-10-06 Simon Josefsson <jas@extundo.com>
42951 * tests/test-hmac-md5.c: New file.
42953 * modules/hmac-md5-tests: New file.
42955 * modules/hmac-md5: New file.
42957 2005-10-06 Simon Josefsson <jas@extundo.com>
42959 * m4/hmac-md5.m4: New file.
42961 * m4/memxor.m4: Require gl_C_RESTRICT.
42963 2005-10-06 Simon Josefsson <jas@extundo.com>
42965 * lib/memxor.c (memxor): Avoid casts and warnings.
42967 2005-10-06 Simon Josefsson <jas@extundo.com>
42969 * lib/hmac-md5.c: New file.
42971 * lib/hmac.h: New file.
42973 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
42975 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
42976 promotes to int, not unsigned int, to catch the AIX 5.3
42979 2005-10-05 Simon Josefsson <jas@extundo.com>
42981 * modules/memxor: New file.
42983 * modules/iconv (Files): Move config.rpath to havelib, it is used
42986 * modules/havelib (Files): Add config.rpath.
42988 2005-10-05 Simon Josefsson <jas@extundo.com>
42990 * m4/memxor.m4: New file.
42992 2005-10-05 Simon Josefsson <jas@extundo.com>
42994 * lib/memxor.c (memxor): Fix compiler error.
42996 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
42997 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
42999 * lib/memxor.h, lib/memxor.c: New files.
43001 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
43002 we assume all systems have it, suggested by Jim Meyering
43003 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
43004 any systems lack sys/socket.h; mingw32 is known to lack it, but we
43005 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
43008 2005-10-05 Simon Josefsson <jas@extundo.com>
43010 * config/srclist.txt: Add glibc bug 1423 for md5.h.
43012 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
43014 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
43015 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
43016 needed, since the source code now assumes these .h files.
43018 2005-10-05 Derek Price <derek@ximbiot.com>
43020 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
43022 2005-10-05 Bruno Haible <bruno@clisp.org>
43024 * modules/stdint (License): Change to LGPL.
43026 2005-10-04 Simon Josefsson <jas@extundo.com>
43028 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
43029 D. Baushke" <mdb@gnu.org>.
43031 2005-10-04 Bruno Haible <bruno@clisp.org>
43033 * lib/verify.h (verify_true): Provide alternative definition for C++.
43035 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
43037 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
43038 (SSIZE_MAX): New macro, if not already defined.
43039 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
43042 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
43044 Sync from coreutils.
43045 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
43046 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
43047 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
43048 ULLONG_MAX doesn't work with 2.7.2.1.
43050 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
43052 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
43055 * modules/exclude (Depends-on): Depend on verify.
43056 * modules/strtoimax (Depends-on): Likewise.
43057 * modules/utimecmp (Depends-on): Likewise.
43059 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
43061 * lib/exclude.c: Include verify.h.
43062 (verify): Remove. All callers changed to use verify.h's version.
43063 * lib/strtoimax.c: Likewise.
43064 * lib/utimecmp.c: Likewis.e
43066 Sync from coreutils.
43067 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
43068 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
43069 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
43070 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
43071 bother returning ENOSYS if settimeofday or stime fails; just let
43072 them return whatever errno they want to return.
43073 * lib/utimens.c: Include unistd.h, for dup2.
43074 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
43075 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
43077 2005-10-02 Jim Meyering <jim@meyering.net>
43079 Sync from coreutils.
43080 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
43081 from glibc-2.2.5 that fails for read-only files.
43083 2005-10-02 Jim Meyering <jim@meyering.net>
43085 Sync from coreutils.
43086 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
43087 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
43088 `#if HAVE_CONFIG_H'.
43089 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
43090 Remove AT_FDCWD test.
43091 Do not consume the fd unless successful.
43092 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
43093 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
43094 block, so that we don't even try to compile it if settimeofday is
43095 available. This works around a compilation failure on OSF1 V5.1,
43096 due to stime requiring a `long int*' while tv_sec is `int'.
43098 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
43100 Sync from coreutils.
43101 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
43102 against `yes', rather than just testing for nonempty.
43104 2005-10-01 Simon Josefsson <jas@extundo.com>
43106 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
43109 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
43110 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
43111 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
43112 freeaddrinfo and gai_strerror are declared by the POSIX headers.
43113 Check if struct addrinfo is declared.
43115 2005-10-01 Simon Josefsson <jas@extundo.com>
43117 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
43118 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
43119 AI_* and EAI_* definitions. Protect function declarations.
43121 2005-10-01 Jim Meyering <jim@meyering.net>
43123 Sync from coreutils.
43125 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
43126 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
43127 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
43128 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
43129 in the inet and nsl libraries. Required on Solaris 5.7.
43131 2005-10-01 Jim Meyering <jim@meyering.net>
43133 Sync from coreutils.
43134 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
43135 in the inet and nsl libraries. Required on Solaris 5.7.
43137 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
43139 * lib/getdelim.c (getdelim): Remove unused variables.
43141 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
43143 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
43144 so that the code works even with ancient cpp. Portability problem
43145 with GCC 2.7.2.1 reported by Thomas M.Ott.
43147 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
43149 * modules/regex (Depends-on): Add strcase.
43151 * modules/gethostname (Licence): Change from GPL to LGPL, since
43152 gethostname.c is a trivial implementation of a standard library
43154 * modules/poll (License): Change from GPL to LGPL, since it's
43155 derived from LGPL code.
43157 2005-09-27 Jim Meyering <jim@meyering.net>
43159 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
43162 * lib/intprops.h (signed_type_or_expr__): Define.
43163 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
43164 for unsigned types.
43166 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
43168 * lib/verify.h (verify_expr): Remove, replacing with:
43169 (verify_true): New macro that returns true instead of void.
43170 (verify_type__): Remove.
43171 (verify): Use verify_true rather than verify_type__.
43173 2005-09-26 Bruno Haible <bruno@clisp.org>
43175 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
43177 (lib_SOURCES): Remove mbchar.c.
43178 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
43179 (Files): Add m4/mbrtowc.m4.
43180 * modules/mbiter: Likewise.
43181 * modules/mbuiter: Likewise.
43183 2005-09-26 Bruno Haible <bruno@clisp.org>
43185 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
43186 compile mbchar.c if they are not both present.
43187 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
43188 * m4/mbiter.m4 (gl_MBITER): Likewise.
43189 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
43190 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
43191 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
43193 2005-09-25 Jim Meyering <jim@meyering.net>
43195 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
43196 also uses socklen_t.
43198 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
43200 * lib/utimens.c (ENOSYS): Define if not already defined.
43201 (futimens): Support having a null PATH if the file descriptor
43204 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
43206 (__attribute): Define to empty unless GCC 3.1 or later.
43207 This works around a core dump on OpenBSD 3.4, which has GCC
43208 2.95.3, which dumps core when given __attribute__(()). It also
43209 simplifies other tests, since we really don't want to bother with
43210 worrying about which ancient version of GCC supported what.
43211 Original problem reported by Yoann Vandoorselaere, with part of
43212 the fix suggested by Derek Price.
43214 2005-09-24 Jim Meyering <jim@meyering.net>
43216 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
43217 so we can once again use a positive bitfield width of 1 -- now we
43218 don't have to explain why we were using a bitfield width of 2.
43220 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
43222 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
43223 and similarly for the other external symbols. Problem reported
43226 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
43227 bug reported by Jim Meyering.
43229 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
43230 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
43231 not needed, since socklen is a prerequisite module.
43233 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
43235 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
43236 Problem reported by Eric Blake.
43237 (getaddrinfo): Initialize se so that it's not garbage.
43238 Redo internal storage allocation so that it doesn't make unportable
43239 assumptions about alignment.
43242 * lib/utimens.c (futimens): Use futimesat if available.
43243 Prefer it to futimes since it doesn't have the futimes bug.
43245 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
43246 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
43247 Instead, declare a function that returns a pointer to an array,
43248 and use verify_type__ to declare the size of the array.
43249 Problem and germ of a solution reported by Bruno Haible.
43250 (verify_type__): Use 2, not 1, for bitfield size, to avoid
43251 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
43253 2005-09-23 Jim Meyering <jim@meyering.net>
43255 Sync from coreutils.
43256 Correct build failure (socklen_t not defined) on at least
43257 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
43258 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
43260 2005-09-23 Jim Meyering <jim@meyering.net>
43262 * modules/getaddrinfo (Depends-on): Add socklen.
43264 2005-09-23 Bruno Haible <bruno@clisp.org>
43266 * tests/test-verify.c: New file.
43268 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
43270 Sync from coreutils.
43272 * modules/argmatch (Depends-on): Add verify.
43273 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
43275 * modules/save-cwd (Depends-on): Likewise.
43277 * modules/openat (Files): Add lib/openat-die.c.
43278 (Depends-on): Remove error, exitfail.
43281 * modules/verify: New file.
43282 * MODULES.html.sh (Diagnostics <assert.h>): New section,
43283 with "verify" module.
43285 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
43287 Sync from coreutils.
43289 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
43290 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
43291 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
43292 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
43293 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
43294 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
43295 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
43296 Don't bother checking for string.h, stdlib.h, unistd.h.
43297 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
43298 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
43300 * m4/jm-macros.m4 (gl_MACROS): Likewise.
43301 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
43303 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
43304 (gl_GETDATE): Use it.
43306 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
43308 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
43310 Sync from coreutils.
43312 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
43314 * lib/argmatch.h: Include verify.h
43315 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
43316 (ARGMATCH_ASSERT): Remove; unused.
43317 * lib/canonicalize.c: Assume STDC_HEADERS.
43318 * lib/exclude.c: Include "strcase.h".
43319 * lib/regex_internal.h [!defined _LIBC]: Likewise.
43320 * lib/getusershell.c: Include stdio--.h rather than stdio.h
43322 (getusershell): Call fopen, not fopen_safer.
43323 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
43324 Do not include unistd-safer.h.
43325 (save_cwd): Don't call fd_safer; no longer needed
43326 now that we include fcntl--.h.
43328 * lib/getdate.y (relative_time): New type.
43329 (RELATIVE_TIME_0): New constant.
43330 (parser_control): Use relative_time instead of doing it ourselves.
43331 (%union): Add new relative_time rel member.
43332 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
43334 (relunit, relunit_snumber): Now of type rel.
43335 (zone, rel, relunit, get_date): Adjust to above changes.
43337 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
43338 Do not include unistd-safer.h.
43339 (getloadavg): Don't call fd_safer; no longer needed
43340 now that we include fcntl--.h.
43342 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
43343 (make_dir_parents): Treat ENOSYS like EEXIST.
43345 Improve quality of diagnostics on restore_cwd failure.
43346 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
43347 (make_dir_parents): Last arg is now int * (for errno), not bool *.
43348 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
43349 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
43350 each time through the loop. Do not diagnose restore_cwd failure;
43351 that is the caller's job (and perhaps the caller does not care).
43353 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
43354 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
43355 If the file already exists but is not a directory, don't bother
43356 to try to make its parents.
43357 Close potential file descriptor leak if we can't chdir("/") (!).
43358 Don't always return true if chdir($PWD) fails; return true only
43359 if the requested action was done successfully (except for the
43361 Don't log final directory unless we actually made it.
43362 Refactor to avoid duplicate code to fix up permissions.
43363 Don't attempt to fix up parent permissions if chdir($PWD) fails.
43365 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
43366 to make it a bit faster and (I hope) clearer.
43367 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
43368 Fix bug in formats like %2N.
43370 * lib/verify.h: New file.
43372 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
43374 Sync from coreutils.
43375 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
43377 2005-09-22 Jim Meyering <jim@meyering.net>
43379 Sync from coreutils.
43381 * m4/lstat.m4 (gl_FUNC_LSTAT):
43382 Use AC_LIBSOURCES to require lstat.c and lstat.h.
43383 Remove obsolete comment.
43384 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
43385 * m4/xstrtod.m4: Likewise.
43387 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
43389 2005-09-22 Jim Meyering <jim@meyering.net>
43391 Sync from coreutils.
43393 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
43395 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
43396 the .tm_year member, since otherwise gcc-4.0 would now warn about
43397 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
43399 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
43400 order to avoid an unsuppressible warning from gcc on 64-bit systems.
43402 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
43403 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
43404 when run in a time zone for which daylight savings time is in effect
43405 for the starting date.
43407 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
43408 stop us from restricting permissions of just-created absolute-named
43410 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
43411 to restore initial working directory.
43412 * lib/mkdir-p.c (make_dir_parents): New parameter:
43413 different_working_dir, to tell caller if/when we change the working
43414 directory and are unable to return to the initial one.
43415 * lib/mkdir-p.h (make_dir_parents): Update prototype.
43416 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
43417 `return false'. This fixes a bug introduced on 2004-07-30.
43419 * lib/openat.c (fdopendir): Be sure to close the supplied
43420 file descriptor before returning. This makes our replacement
43421 implementation a little closer to Solaris's, where fdopendir
43422 ties the file descriptor to the returned DIR* pointer.
43423 * lib/openat.c (unlinkat): New function.
43424 * lib/openat.h (unlinkat): Add prototype.
43425 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
43426 (openat_restore_fail): Rename from openat_restore_die.
43427 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
43429 Provide an alternative to exiting immediately upon save_cwd or
43430 restore_cwd failure. Now, an application can arrange e.g.,
43431 to perform a longjump in that case.
43432 * lib/openat.c: Include dirname.h.
43433 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
43434 (rpl_openat, fdopendir, fstatat): Call openat_save_die
43435 and openat_restore_die rather than calling error directly.
43436 Don't include "error.h" or "exitfail.h"; they're no longer needed.
43438 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
43439 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
43442 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
43443 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
43444 int utc, int nanoseconds);
43446 date should not have to allocate a megabyte of virtual memory to
43447 handle a format argument like +%1048575T. When implemented with
43448 strftime, it must allocate such a buffer, use strftime to fill it
43449 in, print it, then free it.
43450 With fprintftime, it simply prints everything and exits.
43451 With no need for memory allocation, that's one fewer way to fail.
43452 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
43453 optional field width, not before, so we accept %9:z, not %:9z.
43454 (my_strftime): Be sure to use L_('x') for literals.
43456 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
43457 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
43458 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
43459 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
43460 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
43461 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
43462 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
43463 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
43464 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
43465 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
43466 * lib/xgethostname.c, lib/xreadlink.c:
43467 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
43469 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
43470 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
43471 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
43472 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
43473 and don't include <sys/file.h>).
43475 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
43477 Sync from coreutils.
43479 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
43480 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
43481 [!LDAV_DONE]: Avoid unused variable warning.
43483 2005-09-21 Bruno Haible <bruno@clisp.org>
43485 * lib/unicodeio.h (unicode_to_mb): New declaration.
43487 2005-09-20 Derek Price <derek@ximbiot.com>
43489 * lib/getaddrinfo.c: Don't include <netdb.h> included from
43492 2005-09-20 Bruno Haible <bruno@clisp.org>
43494 * gnulib-tool: Remove trailing slashes from the values specified for
43495 --source-base, --m4-base, --tests-base, --aux-dir.
43496 Suggested by Simon Josefsson <jas@extundo.com>.
43498 2005-09-20 Bruno Haible <bruno@clisp.org>
43500 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
43501 func_modules_to_filelist, func_import, func_create_testdir): Make all
43502 sorting results locale-independent, so that gnulib-cache.m4 doesn't
43503 change when gnulib-tool is invoked in a different locale.
43505 2005-09-19 Simon Josefsson <jas@extundo.com>
43507 * m4/socklen.m4: Fix typo.
43509 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43511 Use a consistent style for including <config.h>.
43512 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
43513 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
43514 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
43515 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
43516 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
43517 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
43518 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
43519 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
43520 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
43521 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
43522 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
43523 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
43524 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
43525 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
43526 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
43527 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
43528 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
43529 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
43530 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
43531 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
43532 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
43533 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
43534 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
43535 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
43536 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
43537 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
43538 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
43539 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
43540 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
43541 lib/xstrtoumax.c, lib/yesno.c:
43542 Standardize inclusion of config.h.
43543 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
43544 lib/inttostr.h: Removed inclusion of config.h from header files.
43545 * lib/inttostr.c: Adjusted in-tree users.
43546 * lib/timespec.h: Remove superfluous warning to include config.h.
43547 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
43548 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
43549 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
43550 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
43551 config.h with HAVE_CONFIG_H.
43553 2005-09-19 Jim Meyering <jim@meyering.net>
43555 * modules/pathmax (License): Change to LGPL.
43557 2005-09-19 Derek Price <derek@ximbiot.com>
43559 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
43561 2005-09-19 Bruno Haible <bruno@clisp.org>
43563 * gnulib-tool (import): Provide default for --tests-base.
43565 2005-09-19 Bruno Haible <bruno@clisp.org>
43567 * doc/quote.texi: New file, extracted from gnulib.texi.
43568 * doc/ctime.texi: New file, extracted from gnulib.texi.
43569 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
43570 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
43571 * doc/gnulib.texi: Include them.
43573 2005-09-18 Bruno Haible <bruno@clisp.org>
43576 * gnulib-tool (func_readlink): New function.
43577 (func_ln_if_changed): Use it.
43579 2005-09-18 Bruno Haible <bruno@clisp.org>
43581 * gnulib-tool: Support --with-tests also with --import.
43582 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
43583 (func_import): Use variables $testsbase and $inctests. Emit a
43584 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
43585 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
43586 SUBDIRS += $testsdir.
43587 (func_create_testdir): Update.
43589 2005-09-18 Bruno Haible <bruno@clisp.org>
43591 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
43592 instead of $dry_run.
43593 (func_cp_if_changed, func_mv_if_changed): Remove functions.
43594 (func_ln_if_changed): Don't handle dry-run here.
43595 (func_import): In dry-run mode, detect more precisely which actions
43596 would be performed, and don't use "...ing" verbs.
43598 2005-09-18 Bruno Haible <bruno@clisp.org>
43600 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
43601 (func_import): Use join on two temporary files instead of three nested
43602 loops, in order to determine which files are new or old.
43604 2005-09-18 Bruno Haible <bruno@clisp.org>
43606 * gnulib-tool (func_import): Comment out code that spits out the
43607 new files with --dry-run.
43609 2005-09-18 Bruno Haible <bruno@clisp.org>
43611 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
43613 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
43615 * lib/stat-time.h: New file.
43616 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
43617 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
43618 in a different way.
43619 (timespec_cmp): New function.
43620 * lib/utimecmp.c: Include stat-time.h.
43621 (SYSCALL_RESOLUTION): Depend on whether various struct stat
43622 members exist, not on the obsolescent ST_MTIM_NSEC.
43623 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
43625 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
43627 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
43629 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
43631 * MODULES.html.sh (File system functions): Add stat-time.
43632 * modules/stat-time: New file.
43633 * modules/timespec (Files): Remove m4/st_mtim.m4; this
43634 is now done in a different way, by the stat-time module.
43635 * modules/utimecmp (Depends-on): Add stat-time.
43637 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
43639 * m4/st_mtim.m4: Remove. Superseded by...
43640 * m4/stat-time.m4: New file.
43641 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
43642 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
43644 2005-09-15 Derek Price <derek@ximbiot.com>
43646 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
43648 2005-09-15 Derek Price <derek@ximbiot.com>
43650 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
43651 * lib/regex_internal.c: Ditto, using this...
43652 (__GNUC_PREREQ): ...new macro.
43653 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
43655 (__GNUC_PREREQ): ...this new macro.
43657 * lib/strstr.h: Include string.h. Define strstr as a macro here.
43659 2005-09-15 Derek Price <derek@ximbiot.com>
43660 Paul Eggert <eggert@cs.ucla.edu>
43662 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
43663 changes, consolidating in...
43664 * lib/regex_internal.h: ...this file.
43666 2005-09-13 Jim Meyering <jim@meyering.net>
43668 * lib/canon-host.c: Filter through gnu indent and reword comments
43670 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
43672 2005-09-13 Derek Price <derek@ximbiot.com>
43674 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
43676 Reported by Jim Meyering <jim@meyering.net>.
43678 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
43680 * lib/base64.c: Typo.
43681 (base64_encode): Put b64str in initialized data section.
43683 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
43685 Merge glibc and coreutils changes into gnulib, plus a few
43687 * lib/md5.c: Use #error rather than a string.
43688 (CYCLIC): New macro, from glibc source. Use it instead of rol.
43689 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
43690 (__attribute__): Define to empty for non recent-GCC.
43691 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
43692 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
43693 Renamed from their non-__ counterparts, with new macros replacing
43694 them if not _LIBC. Add __THROW attribute.
43696 (struct md5_ctx): Align buffer if using GCC.
43697 * lib/sha1.h (struct sha1_ctx): Likewise.
43698 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
43699 The old name was backwards.
43700 (NOTSWAP): Remove; not used.
43701 (rol): New macro, moved here from md5.h.
43702 (sha1_process_block): Remove a FIXME that doesn't make sense.
43704 2005-09-12 Derek Price <derek@ximbiot.com>
43706 Return usable errors from canon-host.
43707 * lib/canon-host.h: New file.
43708 * lib/canon-host.c (canon_host): Wrap...
43709 (canon_host_r): ...this new function, which now relies exclusively on
43711 (ch_strerror): New function.
43712 (last_cherror): New global.
43713 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
43715 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
43717 (freeaddrinfo): Free ai->ai_canonname when set.
43719 2005-09-12 Derek Price <derek@ximbiot.com>
43721 Make canon-host require getaddrinfo.
43722 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
43723 AC_LIBSOURCE canon-host.h. Call...
43724 (gl_PREREQ_CANON_HOST): ...this new function, which requires
43726 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
43728 2005-09-12 Derek Price <derek@ximbiot.com>
43730 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
43732 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
43734 2005-09-12 Derek Price <derek@ximbiot.com>
43736 * lib/gai_strerror.c: Include config.h when available. Include
43737 getaddrinfo.h before other headers to test interface.
43738 Reported by Larry Jones <lawrence.jones@ugs.com>.
43740 2005-09-12 Derek Price <derek@ximbiot.com>
43741 Paul Eggert <eggert@cs.ucla.edu>
43743 * modules/glob (Files): Add glob-libc.h.
43745 2005-09-12 Derek Price <derek@ximbiot.com>
43746 Paul Eggert <eggert@cs.ucla.edu>
43748 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
43749 glob_.h, glob-libc.h.
43750 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
43752 2005-09-12 Derek Price <derek@ximbiot.com>
43753 Paul Eggert <eggert@cs.ucla.edu>
43755 * lib/glob-libc.h: Renamed from glob_.h. The new version is
43756 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
43757 protecting things that should be done only in gnulib contexts.
43758 * lib/glob_.h: New file, containing only the glob things needed for
43760 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
43761 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
43762 (glob, globfree, glob_pattern_p): Now defined simply in terms of
43763 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
43764 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
43765 and to respect the namespace rules better.
43767 2005-09-08 Simon Josefsson <jas@extundo.com>
43769 * modules/socklen: New file.
43771 2005-09-08 Simon Josefsson <jas@extundo.com>
43773 * m4/socklen.m4: New file.
43775 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
43777 * modules/utimens (Files): Add m4/utimbuf.m4, since
43778 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
43779 Reported by Sergey Poznyakoff.
43781 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
43783 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
43784 definitions, since that's the preferred style in glibc.
43785 Fix a minor spacing issue, and update copyright notice to match
43788 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
43790 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
43792 2005-09-06 Simon Josefsson <jas@extundo.com>
43794 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
43795 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
43797 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
43799 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
43802 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
43804 * config/srclist.txt: Add glibc bug 1302.
43806 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
43808 Change bitset word type from unsigned int to unsigned long int,
43809 as this has better performance on typical 64-bit hosts.
43810 Port bitset code to hosts with unusual word sizes.
43811 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
43812 (build_collating_symbol):
43813 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
43814 argument is a bitset. This is merely a style issue, but it makes
43815 it clearer that an entire array is expected.
43816 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
43817 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
43818 Port to the case where bitset_word is not the same as unsigned int.
43819 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
43820 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
43822 * lib/regexec.c (check_dst_limits_calc_pos_1,
43823 check_subexp_matching_top):
43824 (build_trtable, group_nodes_into_DFAstates):
43826 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
43827 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
43828 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
43829 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
43830 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
43831 * lib/regcomp.c (optimize_subexps, lower_subexp):
43832 Work even if bitset_word has holes in its bitwise representation.
43833 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
43834 * lib/regexec.c (check_dst_limits_calc_pos_1,
43835 check_subexp_matching_top):
43837 * lib/regex_internal.c (re_string_reconstruct):
43838 Don't assume UCHAR_MAX == 255.
43839 * lib/regex_internal.h (bitset_set_all): Likewise.
43840 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
43842 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
43843 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
43845 (BITSET_WORD_MAX): New macro.
43846 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
43847 (bitset_set_all, bitset_copy): Now inline functions, not macros.
43848 (bitset_empty, bitset_copy):
43849 Prefer sizeof (bitset) to multiplying it out ourselves.
43850 (bitset_not_merge): Remove; unused.
43851 (bitset_contain): Return bool, not unsigned int with one bit on.
43852 All callers changed.
43853 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
43854 alignment than re_node_set; do this by defining a new internal
43855 type struct dests_alloc and using it to allocate memory.
43857 2005-09-05 Bruno Haible <bruno@clisp.org>
43859 * gnulib-tool (func_import): Fix comparison in handling of symbolic
43862 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
43864 * modules/size_max (Makefile.am): Add size_max.h
43866 2005-09-04 Derek Price <derek@ximbiot.com>
43868 * gnulib-tool (func_import): Fix reversed $symbolic logic.
43870 2005-09-03 Simon Josefsson <jas@extundo.com>
43872 * gnulib-tool: Fix typo.
43874 2005-09-03 Simon Josefsson <jas@extundo.com>
43876 * config/srclist.txt: Add glibc bug 1293.
43878 2005-09-03 Derek Price <derek@ximbiot.com>
43880 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
43881 From Larry Jones <lawrence.jones@ugs.com>.
43883 2005-09-02 Simon Josefsson <jas@extundo.com>
43885 * modules/socklen: New file.
43887 2005-09-02 Simon Josefsson <jas@extundo.com>
43889 * modules/havelib: New module.
43891 * modules/gettext, modules/iconv, modules/lock, modules/readline:
43894 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
43896 Check for arithmetic overflow when calculating sizes, to prevent
43897 some buffer-overflow issues. These patches are conservative, in the
43898 sense that when I couldn't determine whether an overflow was possible,
43899 I inserted a run-time check.
43900 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
43902 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
43903 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
43904 (re_xnrealloc, re_x2nrealloc): New inline functions.
43905 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
43906 parse_bracket_exp):
43907 (build_equiv_class, build_charclass): Check for arithmetic overflow
43908 in size expression calculations.
43909 * lib/regex_internal.c (re_string_realloc_buffers):
43910 (build_wcs_upper_buffer, re_node_set_add_intersect):
43911 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
43912 (re_dfa_add_node, register_state): Likewise.
43913 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
43914 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
43915 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
43916 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
43918 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
43920 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
43921 m4/ulonglong.m4. Problem reported by Martin Lambers.
43923 2005-09-02 Bruno Haible <bruno@clisp.org>
43925 Support for lib vs. lib64 distinction on biarch platforms.
43926 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
43927 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
43928 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
43930 2005-09-02 Bruno Haible <bruno@clisp.org>
43932 * gnulib-tool (import): In the other first-use case, provide defaults
43935 2005-09-02 Bruno Haible <bruno@clisp.org>
43937 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
43938 patches not yet found in the latest gettext release.
43940 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
43942 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
43943 to avoid a collision with bits/local_lim.h in glibc.
43944 All uses changed. Problem reported by Dmitry V. Levin in
43945 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
43947 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
43948 bugs in int versus size_t comparisons.
43949 (re_string_context_at): Fix bug where the code assumed that
43952 Use bool where appropriate.
43953 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
43954 All callers changed.
43955 (calc_eclosure_iter): Likewise, for ROOT arg.
43956 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
43957 (build_charclass_op): Likewise, for NON_MATCH arg.
43958 * lib/regex_internal.c (re_string_allocate, re_string_construct):
43959 (re_string_construct_common): Likewise, for ICASE arg.
43960 * lib/regexec.c (re_search_2_stub, re_search_stub):
43961 Likewise, for RET_LEN arg.
43962 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
43963 (set_regs): Likewise, for FL_BACKTRACK arg.
43964 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
43965 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
43966 (calc_eclosure_iter, parse_bracket_exp):
43967 Use bool for internal variables that are booleans.
43968 * lib/regexec.c (re_search_internal, check_matching,
43969 proceed_next_node):
43970 (set_regs, build_sifted_states, sift_states_bkref):
43971 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
43972 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
43973 (find_collation_sequence_value):
43975 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
43976 (re_node_set_compare):
43977 Return bool, not int. All callers changed.
43978 * lib/regexec.c (check_halt_node_context, check_dst_limits):
43979 (build_trtable, check_node_accept): Likewise.
43980 * lib/regex_internal.h: Include stdbool.h.
43982 Fix bugs uncovered when converting to bool.
43983 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
43984 failure instead of charging ahead blindly.
43985 * lib/regex_internal.c (register_state): Likewise.
43986 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
43987 for freeing internal storage.
43988 (group_nodes_into_DFA_states): Use unsigned int, not int, for
43989 bitset pieces used as boolean, to avoid undefined behavior
43990 on hosts that do int overflow checking.
43992 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
43994 * config/srclist.txt: Add glibc bugs 1285-1287.
43996 2005-09-01 Jim Meyering <jim@meyering.net>
43998 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
43999 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
44000 Require gl_STAT_MACROS, too.
44002 2005-09-01 Bruno Haible <bruno@clisp.org>
44004 * gnulib-tool (import): In the first-use case, provide defaults.
44006 2005-09-01 Bruno Haible <bruno@clisp.org>
44008 * gnulib-tool (func_import): Remove the .tmp files.
44010 2005-09-01 Bruno Haible <bruno@clisp.org>
44012 * gnulib-tool (func_import): Fix handling of symbolic links.
44014 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
44016 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
44017 old glibc regex code mishandles strings longer than 2**31 bytes.
44018 This patch fixes this when the regex code is used in gnulib
44019 (i.e., outside glibc).
44021 This patch should not affect the use of the regex code inside
44022 glibc. No doubt this problem also needs to be handled for glibc
44023 as well, but the result will be an incompatible change to the
44024 glibc ABI, and the old ABI will have to be supported too. That
44025 can be the the subject for another patch.
44027 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
44028 governing whether the rest of this patch is active. By default,
44029 the macro is disabled and the patch has no effect.
44030 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
44031 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
44032 (struct re_pattern_buffer, re_search, re_search_2, re_match):
44033 (re_match_2, re_set_registers): Use the new types.
44034 * lib/regex_internal.h (Idx, re_hashval_t): New types.
44035 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
44037 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
44038 (re_string_context_at, bin_tree_t, re_dfastate_t):
44039 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
44040 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
44041 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
44042 (re_string_char_size_at, re_string_wchar_at):
44043 (re_string_elem_size_at):
44044 Use the new types and macros to port to 64-bit hosts.
44045 Use unsigned types for internal values, so that the code
44046 mostly works even for arrays larger than SSIZE_MAX.
44047 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
44048 (search_duplicated_node, calc_eclosure_iter, fetch_number):
44049 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
44050 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
44051 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
44052 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
44053 (calc_inveclosure, parse_dup_op, build_range_exp):
44054 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
44055 (fetch_number, create_token_tree, mark_opt_subexp):
44057 * lib/regex_internal.c (re_string_construct_common,
44058 create_ci_newstate):
44059 (create_cd_newstate, re_string_allocate, re_string_construct):
44060 (re_string_realloc_buffers, build_wcs_upper_buffer):
44061 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
44062 (re_string_reconstruct, re_string_peek_byte_case):
44063 (re_string_fetch_byte_case, re_string_context_at):
44064 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
44065 (re_node_set_init_copy, re_node_set_add_intersect):
44066 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
44067 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
44068 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
44069 (re_acquire_state, re_acquire_state_context, register_state):
44071 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
44072 search_cur_bkref_entry):
44073 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
44074 (re_search_internal, re_search_2_stub, re_search_stub)
44075 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
44076 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
44077 (update_cur_sifted_state, check_dst_limits):
44078 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
44079 (check_subexp_limits, sift_states_bkref, merge_state_array):
44080 (check_subexp_matching_top, get_subexp, get_subexp_sub):
44081 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
44082 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
44083 (expand_bkref_cache, check_node_accept_bytes):
44084 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
44085 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
44086 (acquire_init_state_context, check_halt_node_context):
44087 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
44088 (sift_states_backward, clean_state_log_if_needed):
44089 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
44090 (find_recover_state, transit_state_sb, transit_state_mb):
44091 (transit_state_bkref, build_trtable, match_ctx_clean):
44093 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
44094 to work around an assumption that REG_MISSING is negative.
44096 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
44097 (seek_collating_symbol_entry) [defined _LIBC]:
44098 (lookup_collation_sequence_value) [defined _LIBC]:
44099 (build_range_exp, build_collating_symbol) [defined _LIBC]:
44100 Use prototypes rather than old-style function definitions.
44101 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
44102 (transit_state_sb) [0]:
44103 (find_collation_sequence_value) [defined _LIBC]: Likewise.
44105 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
44108 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
44109 (optimize_subexps, lower_subexp):
44110 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
44111 since the signed shift might overflow. Use 1u<<31 instead.
44112 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
44114 * lib/regexec.c (check_dst_limits_calc_pos_1,
44115 check_subexp_matching_top): Likewise.
44117 * lib/regcomp.c (optimize_subexps, lower_subexp):
44118 Use CHAR_BIT rather than 8, for clarity.
44119 * lib/regexec.c (check_dst_limits_calc_pos_1):
44120 (check_subexp_matching_top): Likewise.
44121 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
44122 have to worry about portability issues when shifting it left.
44123 Remove no-longer-needed test for table_size > 0.
44124 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
44125 in a word, as the resulting behavior is undefined.
44126 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
44127 in one case, a <= should have been an <, and in another case the
44128 whole test was missing.
44129 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
44130 the standard name CHAR_BIT.
44131 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
44132 this is not true on one's complement and signed-magnitude hosts.
44134 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
44136 (struct re_dfa_t): Remove unused member states_alloc.
44137 * lib/regcomp.c (init_dfa): Don't initialize unused members.
44139 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
44141 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
44142 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
44143 and large-file glibc and in 32-bit large-file Solaris.
44145 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
44147 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
44148 lengths fit in regoff_t; this isn't true if regoff_t is the same
44150 * lib/regex.c (re_search_internal): 5th arg is LAST_START
44151 (= START + RANGE) instead of RANGE. This avoids overflow
44152 problems when regoff_t is the same width as size_t.
44153 All callers changed.
44154 (re_search_2_stub): Check for overflow when adding the
44155 sizes of the two strings.
44156 (re_search_stub): Check for overflow when adding START
44157 to RANGE; if it occurs, substitute the extreme value.
44159 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
44161 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
44163 2005-08-31 Jim Meyering <jim@meyering.net>
44165 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
44166 a pointer-to-const.
44167 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
44168 (register_state): Likewise.
44169 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
44170 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
44171 (group_nodes_into_DFAstates): Likewise.
44173 2005-08-31 Jim Meyering <jim@meyering.net>
44175 * check-module: Add a FIXME comment.
44177 2005-08-31 Eric Blake <ebb9@byu.net>
44179 * modules/unistd-safer (Files): Add unistd--.h.
44180 * modules/stdio-safer (Files): Add stdio--.h.
44182 2005-08-31 Derek Price <derek@ximbiot.com>
44184 * lib/getdelim.c (getdelim): Return EOF on EOF.
44185 Reported by Larry Jones <lawrence.jones@ugs.com>.
44187 2005-08-31 Bruno Haible <bruno@clisp.org>
44189 Avoid unnecessary diffs in the generated lib/Makefile.am.
44190 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
44191 the generated files.
44192 (func_import): Don't set cmd.
44194 2005-08-31 Bruno Haible <bruno@clisp.org>
44196 * lib/strstr.c: Include <stddef.h>, for NULL.
44197 * lib/strcasestr.c: Likewise.
44198 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44200 2005-08-31 Bruno Haible <bruno@clisp.org>
44202 * gnulib-tool: New option --macro-prefix.
44203 (func_import): Use macro_prefix.
44204 (import): Handle option --macro-prefix.
44206 2005-08-31 Bruno Haible <bruno@clisp.org>
44208 * gnulib-tool (import): Rename most ac_* variables to cached_*.
44209 Also use new variables cached_lgpl, cached_libtool.
44211 2005-08-31 Bruno Haible <bruno@clisp.org>
44213 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
44214 always instantiating them.
44216 2005-08-31 Bruno Haible <bruno@clisp.org>
44218 * gnulib-tool (func_import): Read the previous cached settings
44219 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
44220 earlier added by gnulib but are now dropped. Warn when a gnulib file
44221 overwrites a non-gnulib file.
44223 2005-08-31 Bruno Haible <bruno@clisp.org>
44225 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
44226 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
44227 projects that don't keep autogenerated files in CVS. Put into
44228 actioncmd only the specified modules, not the transitive closure.
44230 2005-08-31 Bruno Haible <bruno@clisp.org>
44232 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
44233 Create directories that shall be filled.
44234 (import): Don't look for gl_* macros in configure.ac. Recurse across
44235 all directories containing a gnulib-cache.m4 files, if meaningful.
44237 2005-08-31 Bruno Haible <bruno@clisp.org>
44239 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
44240 (import): Set seen_libtool when we see gl_LIBTOOL.
44242 2005-08-31 Bruno Haible <bruno@clisp.org>
44244 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
44245 declaration macro definitions from generated gnulib.m4.
44247 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
44249 * lib/iconvme.h: Add prototype for iconv_alloc.
44251 2005-08-29 Simon Josefsson <jas@extundo.com>
44253 * lib/iconvme.c: Fix errno.
44255 2005-08-29 Bruno Haible <bruno@clisp.org>
44257 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
44258 that it works when the directory contains spaces.
44260 2005-08-29 Bruno Haible <bruno@clisp.org>
44262 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
44264 2005-08-29 Bruno Haible <bruno@clisp.org>
44266 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
44269 2005-08-29 Bruno Haible <bruno@clisp.org>
44270 and Stepan Kasal <kasal@ucw.cz>
44272 * check-module: If more parameters are given, check each of them
44273 separately; add more exceptions, as noted by Jim Meyering.
44274 (check_module): New procedure.
44275 (%exempt_header): Now contains all exceptions.
44277 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
44279 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
44281 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
44283 * lib/iconvme.c: Split iconv_string into iconv_alloc.
44285 2005-08-28 Bruno Haible <bruno@clisp.org>
44287 * m4/gnulib-tool.m4: New file.
44289 2005-08-27 Jim Meyering <jim@meyering.net>
44291 * modules/unistd-safer (Files): Add pipe-safer.c.
44292 * modules/fcntl-safer (Files): Add creat-safer.c.
44294 2005-08-27 Jim Meyering <jim@meyering.net>
44296 * m4/stdlib-safer.m4: New file. From coreutils.
44297 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
44298 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
44299 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
44300 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
44301 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
44303 2005-08-27 Jim Meyering <jim@meyering.net>
44305 * lib/fopen-safer.c: Merge minor changes from coreutils.
44306 * lib/dup-safer.c: Likewise.
44307 * lib/fd-safer.c: Likewise.
44309 Merge from coreutils.
44310 * lib/stdio--.h: New file.
44311 * lib/stdlib--.h: New file.
44312 * lib/mkstemp-safer.c: New file.
44314 GNU tar needs these.
44315 * lib/pipe-safer.c: New file.
44316 * lib/creat-safer.c: New file.
44317 * lib/fcntl--.h (creat): Define to creat_safer.
44318 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
44319 * lib/unistd--.h (pipe): Define to pipe_safer.
44320 * lib/unistd-safer.h: Declare pipe_safer.
44322 2005-08-26 Simon Josefsson <jas@extundo.com>
44324 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
44325 Haible <bruno@clisp.org>.
44327 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
44329 * lib/regex_internal.h: Remove all references to
44330 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
44332 (bitset_not, bitset_merge, bitset_not_merge):
44333 (bitset_mask, re_string_allocate, re_string_construct):
44334 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
44335 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
44336 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
44337 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
44338 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
44339 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
44340 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
44341 (re_acquire_state_context):
44342 Remove unnecessary forward decls.
44343 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
44344 Put __attribute at function definition,
44345 now that the function decl has been removed.
44346 * lib/regex_internal.c (re_string_peek_byte_case):
44347 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
44350 2005-08-25 Stepan Kasal <kasal@ucw.cz>
44352 * m4/regex.m4: Add AC_PREREQ(2.50).
44353 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
44355 2005-08-25 Simon Josefsson <jas@extundo.com>
44357 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
44360 2005-08-25 Simon Josefsson <jas@extundo.com>
44362 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
44363 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
44364 GLIBC specific code.
44366 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
44368 Make regex safe for g++. This fixes one real bug (an "err"
44369 that should have been "*err"). g++ problem reported by
44371 * lib/regex_internal.h (re_calloc): New macro, consistent with
44372 re_malloc etc. All callers of calloc changed to use re_calloc.
44373 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
44374 not int. All callers changed.
44375 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
44376 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
44377 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
44378 (find_recover_state): Change "err" to "*err"; this fixes what
44379 appears to be a real bug.
44380 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
44383 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
44385 * modules/regex (Depends-on): Add malloc, since the code
44386 assumes that !malloc(0) means failure.
44388 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
44390 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
44392 alloca modernization/simplification for regex.
44393 * lib/regex.c: Remove portability cruft for alloca. This no longer
44394 needs to be at the start of the file, and can be moved into
44395 regex_internal.h and simplified.
44396 * lib/regex_internal.h: Include <alloca.h>.
44397 (__libc_use_alloca) [!defined _LIBC]: New macro.
44398 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
44399 now works outside glibc.
44401 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
44403 * config/srclist.txt: Add glibc bugs 1241, 1245.
44405 2005-08-25 Jim Meyering <jim@meyering.net>
44407 * lib/open-safer.c: Include <config.h>.
44408 Otherwise, we'd lose LARGEFILE support in any file using
44411 2005-08-25 Bruno Haible <bruno@clisp.org>
44413 * m4/minmax.m4: Require autoconf 2.52.
44414 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
44415 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
44416 alternatives of translit over the alphabet.
44417 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
44419 2005-08-24 Simon Josefsson <jas@extundo.com>
44421 * tests/test-getpass.c: New file.
44423 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
44425 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
44426 for GNU regex features.
44428 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
44430 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
44431 * lib/regex.h (regerror): Likewise.
44433 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
44434 requires this. (The code never needed it.)
44436 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
44437 All uses of recently-renamed identifiers changed to use the new,
44438 POSIX-compliant names. The code will build and run just fine
44439 without these changes, but it's better to eat our own dog food
44440 and use the standard-conforming names.
44442 * lib/regex.h: Fix a multitude of POSIX name space violations.
44443 These changes have an effect only for programs that define
44444 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
44445 do not change anything for programs compiled in the normal way.
44446 Also, there is no effect on the ABI.
44448 (_REGEX_SOURCE): New macro.
44449 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
44450 defined and _GNU_SOURCE is not; this fixes a name space violation.
44452 Rename the following macros to obey POSIX requirements.
44453 The old names are still visible as macros if _REGEX_SOURCE is defined.
44454 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
44455 RE_BACKSLASH_ESCAPE_IN_LISTS.
44456 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
44457 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
44458 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
44459 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
44460 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
44461 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
44462 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
44463 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
44464 (REG_INTERVALS): renamed from RE_INTERVALS.
44465 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
44466 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
44467 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
44468 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
44469 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
44470 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
44471 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
44472 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
44473 RE_UNMATCHED_RIGHT_PAREN_ORD.
44474 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
44475 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
44476 (REG_DEBUG): renamed from RE_DEBUG.
44477 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
44478 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
44479 unusual, since we can't clash with the POSIX REG_ICASE.
44480 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
44481 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
44482 (REG_NO_SUB): renamed from RE_NO_SUB.
44483 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
44484 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
44485 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
44486 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
44487 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
44488 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
44489 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
44490 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
44491 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
44492 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
44493 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
44494 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
44495 RE_SYNTAX_POSIX_MINIMAL_BASIC.
44496 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
44497 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
44498 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
44499 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
44500 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
44501 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
44502 (REG_FIXED): Renamed from REGS_FIXED.
44503 (REG_NREGS): Renamed from RE_NREGS.
44505 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
44506 of other REG_* macros, since POSIX says the user is allowed to
44507 #undef these macros selectively.
44509 (reg_errcode_t): Update comment stating what other tables need
44512 Rename the following enum values to obey POSIX requirements.
44513 The old names are still visible as macros.
44514 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
44515 is not defined, since GNU is supposed to be a superset of POSIX as
44516 much as possible, and since we want reg_errcode_t to be a signed
44517 type for implementation consistency.
44518 (_REG_NOERROR): Renamed from REG_NOERROR.
44519 (_REG_NOMATCH): Renamed from REG_NOMATCH.
44520 (_REG_BADPAT): Renamed from REG_BADPAT.
44521 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
44522 (_REG_ECTYPE): Renamed from REG_ECTYPE.
44523 (_REG_EESCAPE): Renamed from REG_EESCAPE.
44524 (_REG_ESUBREG): Renamed from REG_ESUBREG.
44525 (_REG_EBRACK): Renamed from REG_EBRACK.
44526 (_REG_EPAREN): Renamed from REG_EPAREN.
44527 (_REG_EBRACE): Renamed from REG_EBRACE.
44528 (_REG_BADBR): Renamed from REG_BADBR.
44529 (_REG_ERANGE): Renamed from REG_ERANGE.
44530 (_REG_ESPACE): Renamed from REG_ESPACE.
44531 (_REG_BADRPT): Renamed from REG_BADRPT.
44532 (_REG_EEND): Renamed from REG_EEND.
44533 (_REG_ESIZE): Renamed from REG_ESIZE.
44534 (_REG_ERPAREN): Renamed from REG_ERPAREN.
44535 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
44536 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
44537 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
44538 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
44540 (_REG_RE_NAME, _REG_RM_NAME): New macros.
44541 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
44542 changed. But support the old name if the new one is not defined
44543 and if _REGEX_SOURCE.
44545 Change the following member names in struct re_pattern_buffer.
44546 The old names are still supported if !_REGEX_SOURCE.
44547 The new names are always supported, regardless of _REGEX_SOURCE.
44548 (re_buffer): Renamed from buffer.
44549 (re_allocated): Renamed from allocated.
44550 (re_used): Renamed from used.
44551 (re_syntax): Renamed from syntax.
44552 (re_fastmap): Renamed from fastmap.
44553 (re_translate): Renamed from translate.
44554 (re_can_be_null): Renamed from can_be_null.
44555 (re_regs_allocated): Renamed from regs_allocated.
44556 (re_fastmap_accurate): Renamed from fastmap_accurate.
44557 (re_no_sub): Renamed from no_sub.
44558 (re_not_bol): Renamed from not_bol.
44559 (re_not_eol): Renamed from not_eol.
44560 (re_newline_anchor): Renamed from newline_anchor.
44562 Change the following member names in struct re_registers.
44563 The old names are still supported if !_REGEX_SOURCE.
44564 The new names are always supported, regardless of _REGEX_SOURCE.
44565 (rm_num_regs): Renamed from num_regs.
44566 (rm_start): Renamed from start.
44567 (rm_end): Renamed from end.
44569 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
44570 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
44571 Prepend __ to parameter names.
44573 Undo yesterday's changes.
44575 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
44577 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
44578 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
44581 2005-08-24 Jim Meyering <jim@meyering.net>
44583 Sync from coreutils.
44584 * m4/fcntl-safer.m4: New file.
44586 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
44587 and object files for this module.
44589 2005-08-24 Jim Meyering <jim@meyering.net>
44591 Sync from coreutils.
44592 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
44594 2005-08-24 Jim Meyering <jim@meyering.net>
44596 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
44597 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
44599 2005-08-24 Jim Meyering <jim@meyering.net>
44601 * modules/fcntl-safer: New module.
44602 * modules/fts (Depends-on): Add fcntl-safer.
44603 * MODULES.html.sh (File descriptor based Input/Output):
44606 2005-08-24 Bruno Haible <bruno@clisp.org>
44608 Support for unit test modules.
44609 * modules/README: Mention tests modules.
44610 * modules/TEMPLATE-TESTS: New file.
44611 * gnulib-tool: New options --extract-tests-module, --with-tests and
44612 --tests-base (unused for the moment).
44613 (testsbase, inctests): New variables.
44614 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
44615 (func_verify_module): Exclude TEMPLATE-TESTS.
44616 (func_verify_nontests_module, func_verify_tests_module): New functions.
44617 (func_get_dependencies): Add implicit dependency for tests modules.
44618 (func_get_tests_module): New function.
44619 (func_modules_transitive_closure): When --with-tests was specified,
44620 include the unit tests as well, unless explicitly avoided.
44621 (func_emit_lib_Makefile_am): Ignore the tests modules here.
44622 (func_emit_tests_Makefile_am): New function.
44623 (func_create_testdir): When --with-tests was specified, emit a
44625 * MODULES.html.sh (Future developments): Update.
44627 2005-08-24 Bruno Haible <bruno@clisp.org>
44629 * modules/tls-tests: New file.
44630 * tests/test-tls.c: New file, from GNU gettext.
44632 2005-08-24 Bruno Haible <bruno@clisp.org>
44634 * modules/lock-tests: New file.
44635 * tests/test-lock.c: New file, from GNU gettext.
44637 2005-08-24 Bruno Haible <bruno@clisp.org>
44639 * lib/lock.h: Add multiple inclusion guard.
44640 * lib/tls.h: Add multiple inclusion guard.
44642 2005-08-24 Bruno Haible <bruno@clisp.org>
44644 * gnulib-tool: Add support for the --aux-dir option to
44645 --create-testdir, --create-megatestdir, --test, --megatest.
44646 (func_create_testdir, func_create_megatestdir): Optionally emit a
44647 AC_CONFIG_AUX_DIR directive.
44648 (create-testdir, create-megatestdir, test, megatest): Provide a
44649 default value for $auxdir.
44651 2005-08-24 Bruno Haible <bruno@clisp.org>
44653 * gnulib-tool (import): Use compound statement instead of subshell
44656 2005-08-24 Bruno Haible <bruno@clisp.org>
44658 * gnulib-tool (import): Change --aux-dir default to "build-aux".
44660 2005-08-24 Bruno Haible <bruno@clisp.org>
44662 * gnulib-tool (func_version): Update.
44664 2005-08-24 Bruno Haible <bruno@clisp.org>
44666 * gnulib-tool (func_import, func_create_testdir,
44667 func_create_megatestdir): Quote all autoconf macro arguments.
44669 2005-08-24 Bruno Haible <bruno@clisp.org>
44671 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
44672 option --force, because --force causes the aclocal.m4 of each
44673 subdirectory to be newer than the corresponding config.h.in.
44675 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
44677 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
44678 All contents moved to gl_REGEX.
44679 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
44680 assume that it does.
44682 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
44684 * lib/regex.h (REG_NOSYS)
44685 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
44686 Define, since POSIX requires it as of 2001.
44688 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
44689 New private symbol, used to keep the enum signed in all cases.
44690 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
44692 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
44694 * lib/regex_internal.c (re_string_skip_chars, register_state):
44696 Remove forward decls; no longer needed now that we use prototypes.
44697 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
44698 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
44699 (clean_state_log_if_needed): Likewise.
44701 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
44703 * config/srclist.txt: Add glibc bugs 1231-1233.
44705 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
44707 Fix problems reported by Sam Steingold in
44708 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
44709 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
44710 assumed that reg_errcode_t is a signed type, which is not
44711 necessarily true if _XOPEN_SOURCE is not defined.
44712 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
44713 since some compilers warn about it otherwise.
44715 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
44717 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
44718 (init_word_char, create_initial_state, duplicate_node_closure):
44719 (fetch_token, peek_token_bracket, build_range_exp):
44720 (build_collating_symbol): Remove forward decls; no longer needed
44721 now that we use prototypes.
44724 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
44725 (re_compile_fastmap_iter, regcomp, regerror, regfree):
44726 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
44727 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
44728 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
44729 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
44730 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
44731 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
44732 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
44733 (build_range_exp, build_collating_symbol, parse_bracket_exp):
44734 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
44735 (build_charclass, build_charclass_op, fetch_number, create_tree):
44736 (create_token_tree, mark_opt_subexp, duplicate_tree):
44737 Use prototypes rather than old-style definitions.
44739 * lib/regex_internal.c:
44740 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
44741 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
44742 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
44743 (re_string_reconstruct, re_string_peek_byte_case):
44744 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
44745 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
44746 (re_node_set_init_copy, re_node_set_add_intersect):
44747 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
44748 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
44749 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
44750 (re_acquire_state, re_acquire_state_context, register_state):
44751 (create_ci_newstate, create_cd_newstate, free_state):
44753 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
44755 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
44756 (re_search_internal, prune_impossible_nodes):
44757 (acquire_init_state_context, check_matching, static):
44758 (check_halt_node_context, check_halt_state_context, proceed_next_node):
44759 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
44760 (update_regs, sift_states_backward, build_sifted_states):
44761 (clean_state_log_if_needed, merge_state_array):
44762 (update_cur_sifted_state, add_epsilon_src_nodes):
44763 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
44764 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
44765 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
44766 (find_recover_state, check_subexp_matching_top, transit_state_mb):
44767 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
44768 (check_arrival, check_arrival_add_next_nodes):
44769 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
44770 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
44771 (check_node_accept_bytes, check_node_accept, extend_buffers):
44772 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
44773 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
44777 * lib/regex_internal.h:
44778 (re_string_allocate, re_string_construct, re_string_reconstruct):
44779 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
44780 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
44781 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
44782 (re_string_context_at, re_string_peek_byte_case):
44783 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
44784 is defined, since we now use prototypes always.
44786 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
44787 C89 or better. All uses removed.
44789 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
44791 * config/srclist.txt: Add glibc bugs 1220-1227.
44793 2005-08-20 Jim Meyering <jim@meyering.net>
44795 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
44796 of unused local, dfa.
44798 2005-08-20 Bruno Haible <bruno@clisp.org>
44800 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
44802 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
44804 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
44805 (re_node_set_insert_last, re_dfa_add_node):
44806 Rename local variables to avoid GCC shadowing warnings.
44808 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
44810 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
44811 [defined lint]: Suppress bogus uninitialized-variable warnings.
44813 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
44814 and let the caller return REG_ESPACE if out of space. This
44815 removes an uninitialied-variable warning with GCC 4.0.1, and also
44816 avoids taking the address of a local variable. All callers
44819 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
44821 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
44822 $LIBCSRC/posix/regexec.c.
44823 Add glibc bug 1217 for regcomp.c.
44825 2005-08-19 Jim Meyering <jim@meyering.net>
44827 * lib/regexec.c (proceed_next_node): Redo local variables to
44828 avoid GCC shadowing warnings.
44830 2005-08-18 Bruno Haible <bruno@clisp.org>
44832 * lib/strstr.c (strstr): Fix return value in multibyte case.
44833 * lib/strcasestr.c (strcasestr): Likewise.
44835 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
44837 * lib/regex.h: Remove useless space-before-tab. From coreutils.
44839 2005-08-17 Jim Meyering <jim@meyering.net>
44841 Make the %s format (seconds since the epoch) work for a negative
44842 number and when used with a zero-padded field width, e.g. %015s.
44844 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
44845 label so that it precedes the code to set `digits'. Otherwise,
44846 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
44847 print `00-22'. Now, it prints `-0022', as it should.
44849 2005-08-17 Bruno Haible <bruno@clisp.org>
44851 * modules/strstr (Files): Add m4/mbrtowc.m4.
44852 (Depends-on): Add mbuiter.
44854 2005-08-17 Bruno Haible <bruno@clisp.org>
44856 * modules/strcasestr: New file.
44857 * MODULES.html.sh (String handling, based on ANSI C 89): Add
44860 2005-08-17 Bruno Haible <bruno@clisp.org>
44862 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
44864 2005-08-17 Bruno Haible <bruno@clisp.org>
44866 * modules/mbuiter: New file.
44867 * MODULES.html.sh (Extended multibyte and wide character utilities):
44870 2005-08-17 Bruno Haible <bruno@clisp.org>
44872 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
44873 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
44875 2005-08-17 Bruno Haible <bruno@clisp.org>
44877 * m4/strcasestr.m4: New file.
44879 2005-08-17 Bruno Haible <bruno@clisp.org>
44881 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
44882 * lib/strstr.c: Completely rewritten, with multibyte locale support.
44884 2005-08-17 Bruno Haible <bruno@clisp.org>
44886 * lib/strcasestr.h: New file.
44887 * lib/strcasestr.c: New file.
44889 2005-08-17 Bruno Haible <bruno@clisp.org>
44891 * lib/strcasecmp.c: Use mbuiter.h.
44893 2005-08-17 Bruno Haible <bruno@clisp.org>
44895 * lib/mbuiter.h: New file.
44897 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
44899 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
44900 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
44901 and gl_GETOPT are both invoked via different paths (as happens
44902 with GNU tar CVS because it uses both argp and getopt), the former
44905 2005-08-16 Bruno Haible <bruno@clisp.org>
44907 * modules/tls: New file.
44908 * MODULES.html.sh (Multithreading): Add tls.
44910 2005-08-16 Bruno Haible <bruno@clisp.org>
44912 * modules/strnlen1: New file.
44913 * MODULES.html.sh (String handling): Add strnlen1.
44915 2005-08-16 Bruno Haible <bruno@clisp.org>
44917 * modules/strcase (Files): Add m4/mbrtowc.m4.
44918 (Depends-on): Add strnlen1, mbchar.
44920 2005-08-16 Bruno Haible <bruno@clisp.org>
44922 * modules/mbiter: New file.
44923 * MODULES.html.sh (Extended multibyte and wide character utilities):
44926 2005-08-16 Bruno Haible <bruno@clisp.org>
44928 * modules/mbfile: New file.
44929 * MODULES.html.sh (Extended multibyte and wide character utilities):
44932 2005-08-16 Bruno Haible <bruno@clisp.org>
44934 * modules/mbchar: New file.
44935 * MODULES.html.sh (Extended multibyte and wide character utilities):
44938 2005-08-16 Bruno Haible <bruno@clisp.org>
44940 * m4/tls.m4: New file, from GNU gettext.
44942 2005-08-16 Bruno Haible <bruno@clisp.org>
44944 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
44946 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
44948 2005-08-16 Bruno Haible <bruno@clisp.org>
44950 * m4/mbiter.m4: New file.
44952 2005-08-16 Bruno Haible <bruno@clisp.org>
44954 * m4/mbfile.m4: New file.
44956 2005-08-16 Bruno Haible <bruno@clisp.org>
44958 * m4/mbchar.m4: New file.
44960 2005-08-16 Bruno Haible <bruno@clisp.org>
44962 * lib/tls.h: New file, from GNU gettext.
44963 * lib/tls.c: New file, from GNU gettext.
44965 2005-08-16 Bruno Haible <bruno@clisp.org>
44967 * lib/strnlen1.h: New file.
44968 * lib/strnlen1.c: New file.
44970 2005-08-16 Bruno Haible <bruno@clisp.org>
44972 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
44973 (mbi_init): Update.
44974 (mbi_avail, mbi_advance): Let the iteration end before the terminating
44975 NUL byte, not after it.
44977 2005-08-16 Bruno Haible <bruno@clisp.org>
44979 * lib/strcase.h (strcasecmp): Add note in comments.
44980 * lib/strncasecmp.c: Use code from strcasecmp.c.
44981 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
44982 (strcasecmp): Work correctly in multibyte locales.
44984 2005-08-16 Bruno Haible <bruno@clisp.org>
44986 * lib/mbiter.h: New file.
44988 2005-08-16 Bruno Haible <bruno@clisp.org>
44990 * lib/mbfile.h: New file.
44992 2005-08-16 Bruno Haible <bruno@clisp.org>
44994 * lib/mbchar.h: New file.
44995 * lib/mbchar.c: New file.
44997 2005-08-16 Bruno Haible <bruno@clisp.org>
44999 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
45000 the valid ones. Makes the comparison operations transitive:
45001 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
45002 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
45004 2005-08-15 Simon Josefsson <jas@extundo.com>
45006 * modules/ssize_t (License): Change to 'unlimited'.
45008 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
45010 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
45012 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
45013 Add comments for each pending glibc patch.
45015 2005-08-15 Bruno Haible <bruno@clisp.org>
45017 * lib/regex.h (__restrict_arr): Don't define to __restrict if
45018 __cplusplus is defined.
45020 2005-08-14 Jim Meyering <jim@meyering.net>
45022 Sync from coreutils.
45024 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
45025 Use the hash-table-based cycle-detection code not just when
45026 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
45027 Reported by James Youngman in
45028 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
45029 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
45030 FTS_TIGHT_CYCLE_CHECK.
45031 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
45032 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
45034 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
45035 * lib/fts.c (fd_safer): Remove decl.
45036 Include fcntl--.h rather than unistd-safer.h
45037 (fts_safe_changedir): Don't call fd_safer; no longer needed
45038 now that we include fcntl--.h.
45040 2005-08-12 Simon Josefsson <jas@extundo.com>
45042 * modules/getndelim2: Use ssize_t module.
45043 * modules/getnline: Likewise.
45044 * modules/safe-read: Likewise.
45045 * modules/xreadlink: Likewise.
45047 * modules/ssize_t: New file.
45049 2005-08-12 Simon Josefsson <jas@extundo.com>
45051 * m4/readline.m4: Look for termcap, curses or ncurses if required.
45053 2005-08-12 Simon Josefsson <jas@extundo.com>
45055 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45058 2005-08-12 Simon Josefsson <jas@extundo.com>
45060 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
45061 readline, getdelim and check_version.
45062 (Support for systems lacking ISO C 99: Sizes of integer types):
45065 2005-08-12 Bruno Haible <bruno@clisp.org>
45067 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
45069 2005-08-11 Simon Josefsson <jas@extundo.com>
45071 * modules/readline: New file.
45073 * modules/strnlen (Files): Add strnlen.h.
45075 2005-08-11 Simon Josefsson <jas@extundo.com>
45077 * m4/readline.m4: New file.
45079 2005-08-11 Simon Josefsson <jas@extundo.com>
45081 * lib/readline.h, readline.c: New file.
45083 2005-08-11 Simon Josefsson <jas@extundo.com>
45085 * doc/gnulib.texi (Initial import, Finishing touches): Mention
45088 2005-08-11 Bruno Haible <bruno@clisp.org>
45090 * lib/strnlen.h (strnlen): Change parameter name to match comment.
45092 2005-08-10 Stepan Kasal <kasal@ucw.cz>
45094 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
45096 2005-08-10 Simon Josefsson <jas@extundo.com>
45098 * tests/test-iconvme.c: New file.
45100 2005-08-10 Simon Josefsson <jas@extundo.com>
45102 * m4/strnlen.m4: New file.
45104 * m4/strndup.m4: Don't check for strnlen declaration, done in
45107 2005-08-10 Simon Josefsson <jas@extundo.com>
45109 * lib/strndup.c: Use strnlen.h.
45111 * lib/strnlen.h: New file.
45113 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
45117 2005-08-02 Simon Josefsson <jas@extundo.com>
45119 * modules/readline: New file.
45121 2005-08-02 Simon Josefsson <jas@extundo.com>
45123 * modules/getdelim: New file.
45125 * modules/getline: Rewrite, don't use getndelim2.
45127 2005-08-02 Simon Josefsson <jas@extundo.com>
45129 * m4/getline.m4: Separate out getdelim stuff into separate module.
45131 * m4/getdelim.m4: New file.
45133 2005-08-02 Simon Josefsson <jas@extundo.com>
45135 * lib/getline.h, getline.c: Rewrite.
45137 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
45139 2005-07-31 Bruno Haible <bruno@clisp.org>
45141 * lib/lock.h (gl_lock_initializer): New macro.
45142 (gl_lock_define_initialized): Use it.
45143 (gl_rwlock_initializer): New macro.
45144 (gl_rwlock_define_initialized): Use it.
45145 (gl_recursive_lock_initializer): New macro.
45146 (gl_recursive_lock_define_initialized): Use it.
45148 2005-07-30 Karl Berry <karl@gnu.org>
45150 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
45151 Report from Ben Pfaff, regarding getopt.
45153 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
45155 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
45157 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
45158 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
45159 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
45160 (gl_GETOPT): Use the new macros. Most of the implementation
45161 is moved to the new macros. This is for programs like Emacs
45162 that don't want all the functionality of gl_GETOPT.
45164 2005-07-26 Bruno Haible <bruno@clisp.org>
45166 * m4/lock.m4: Update from GNU gettext.
45168 2005-07-26 Bruno Haible <bruno@clisp.org>
45170 * lib/lock.h: Update from GNU gettext.
45171 * lib/lock.c: Update from GNU gettext.
45173 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
45175 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
45176 obsolescent AC_TRY_RUN. Include the default includes files, for
45179 2005-07-24 Bruno Haible <bruno@clisp.org>
45181 * modules/visibility: New file.
45182 * MODULES.html.sh (Misc): Add visibility.
45184 2005-07-24 Bruno Haible <bruno@clisp.org>
45186 * m4/visibility.m4: New file.
45188 2005-07-24 Bruno Haible <bruno@clisp.org>
45190 * doc/visibility.texi: New file.
45192 2005-07-22 Bruno Haible <bruno@clisp.org>
45194 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
45195 $(ALLOCA_H), redundant through BUILT_SOURCES.
45196 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
45197 redundant through BUILT_SOURCES.
45198 * modules/byteswap (Makefile.am): Remove explicit dependency on
45199 $(BYTESWAP_H), redundant through BUILT_SOURCES.
45200 * modules/fnmatch (Makefile.am): Remove explicit dependency on
45201 $(FNMATCH_H), redundant through BUILT_SOURCES.
45202 * modules/getopt (Makefile.am): Remove explicit dependency on
45203 $(GETOPT_H), redundant through BUILT_SOURCES.
45204 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
45205 redundant through BUILT_SOURCES.
45206 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
45207 redundant through BUILT_SOURCES.
45208 * modules/stdbool (Makefile.am): Remove explicit dependency on
45209 $(STDBOOL_H), redundant through BUILT_SOURCES.
45210 * modules/stdint (Makefile.am): Remove explicit dependency on
45211 $(STDINT_H), redundant through BUILT_SOURCES.
45212 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
45213 Remove explicit dependency on $(SYSEXITS_H).
45214 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
45216 2005-07-18 Simon Josefsson <jas@extundo.com>
45218 * lib/check-version.c (check_version): Accept identical versions too.
45220 2005-07-18 Bruno Haible <bruno@clisp.org>
45222 * modules/lock: New file.
45223 * MODULES.html.sh (Multithreading): New section.
45225 2005-07-18 Bruno Haible <bruno@clisp.org>
45227 * m4/lock.m4: New file, from GNU gettext.
45229 2005-07-18 Bruno Haible <bruno@clisp.org>
45231 * lib/lock.h: New file, from GNU gettext.
45232 * lib/lock.c: New file, from GNU gettext.
45234 2005-07-18 Bruno Haible <bruno@clisp.org>
45236 * lib/lock.h (gl_once_t): New type.
45237 (gl_once_define, gl_once): New macros.
45238 * lib/lock.c (fresh_once): New variable.
45239 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
45242 2005-07-16 Simon Josefsson <jas@extundo.com>
45244 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
45245 workaround, suggested by Bruno.
45247 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
45249 * modules/xalloc (Depends-on): Add xalloc-die.
45250 * modules/xvasprintf (Depends-on): Add xalloc-die.
45252 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
45254 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
45255 with a minor change.
45257 2005-07-15 Bruno Haible <bruno@clisp.org>
45259 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
45260 When using lib/poll.c, define poll as rpl_poll.
45262 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
45264 * modules/argp (Depends-on): Remove unlocked-io.
45266 2005-07-14 Derek Price <derek@ximbiot.com>
45268 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
45269 for glob symlink bug.
45271 2005-07-14 Bruno Haible <bruno@clisp.org>
45273 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
45274 Instead, test for *_unlocked function declarations directly.
45276 2005-07-11 Simon Josefsson <jas@extundo.com>
45278 * modules/size_max: New file.
45280 * modules/xsize: Depend on size_max module for size_max.m4.
45282 2005-07-11 Simon Josefsson <jas@extundo.com>
45284 * lib/size_max.h: New file.
45286 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
45288 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
45289 copyright symbol and the year.
45290 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
45291 (version_etc_va): Use parameterized copyright notice.
45292 Reword to conform to the current GNU coding standards.
45294 2005-07-11 Karl Berry <karl@gnu.org>
45296 * doc/gnulib.texi (Quoting): new node.
45297 (Initial import): more info, from Patrice.
45299 2005-07-11 Bruno Haible <bruno@clisp.org>
45301 * gnulib-tool (func_usage): Document option --avoid.
45302 (Command line options): Handle --avoid.
45303 (func_acceptable): New function.
45304 (func_modules_transitive_closure): Use it.
45306 2005-07-11 Bruno Haible <bruno@clisp.org>
45308 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
45309 Reported by Jim Meyering.
45311 2005-07-10 Bruno Haible <bruno@clisp.org>
45313 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
45314 Needed when size_t is smaller than 'unsigned int'.
45315 Reported by Paul Eggert.
45317 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
45319 * modules/argp (Depends-on): Add unlocked-io
45321 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
45323 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
45326 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
45328 * config/srclist.txt: Comment out regcomp.c, since we have a porting
45331 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
45332 and Paul Eggert <eggert@cs.ucla.edu>
45334 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
45335 in wint_t, not wchar_t. Remove now-unnecessary cast.
45337 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
45339 * modules/regex (Files): Add lib/regex_internal.c,
45340 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
45341 (Depends-on): Add extensions.
45342 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
45344 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
45346 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
45348 * m4/same.m4 (gl_SAME): Likewise.
45349 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
45351 * m4/regex.m4: Adjust to new libc regex implementation.
45352 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
45353 all the .c and .h parts of (the new) regex.
45354 Quote the m4 stuff better.
45355 Check for RE_ICASE bug of old gnulib.
45356 Check for REG_STARTEND of recent libc.
45357 Rename local variables from jm_* to gl_*.
45358 Quote operand of "test -f".
45359 Say "recent enough" version of libc, not "version 2".
45360 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
45361 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
45362 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
45363 Remove check for btowc, isascii.
45364 Require AM_LANGINFO_CODESET.
45366 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
45368 * lib/regex.c, regex.h: Sync from libc.
45369 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
45371 New files, synced from libc, except that regex_internal.h
45372 currently has a small porting fix.
45374 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
45376 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
45377 regex_internal.c, regexec.c.
45378 Add regex_internal.h too, but as a comment, since the libc version
45379 is currently broken in gnulib mode.
45381 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
45383 Support programs like Emacs that use gnulib but not gettext.
45384 * MODULES.html.sh (Internationalization functions): Add gettext-h.
45385 * modules/gettext-h: New file.
45386 * modules/gettext (Files): Remove lib/gettext.h.
45387 (Depends-on): Add gettext-h.
45388 (Makefile.am): Remove lib_SOURCES.
45389 * modules/argmatch, modules/c-stack, modules/closeout:
45390 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
45391 * modules/execute, modules/file-type, modules/getaddrinfo:
45392 * modules/getopt, modules/human, modules/javacomp:
45393 * modules/javaexec, modules/mkdir-p, modules/obstack:
45394 * modules/openat, modules/pagealign_alloc, modules/pipe:
45395 * modules/quotearg, modules/regex, modules/rpmatch:
45396 * modules/unicodeio, modules/userspec, modules/version-etc:
45397 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
45399 Depend on gettext-h, not gettext.
45401 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
45403 * gnulib-tool (func_import): Add support for 'public domain' license.
45404 * modules/alloca, modules/atexit, modules/memmove:
45405 Now public domain, not GPL.
45406 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
45407 * modules/realloc, modules/strerror, modules/strtod:
45410 2005-07-05 Bruno Haible <bruno@clisp.org>
45412 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
45413 autoconf CVS. Needed for mingw.
45415 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
45417 Remove the dependency of the strftime module on the tzset module.
45418 * modules/strftime (Depends-on): Remove dependency on tzset.
45420 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
45422 Remove the dependency of the strftime module on the tzset module.
45423 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
45424 gl_FUNC_TZSET_CLOBBER.
45426 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
45428 Remove the dependency of the strftime module on the tzset module.
45429 * lib/strftime.c (my_strftime)
45430 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
45431 Copy the input structure, to work around some of the bug with
45432 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
45433 Solaris releases, you should also use the tzset module, but we won't
45434 require it as a dependency any more since we don't want LGPLed code
45435 to depend on GPLed code.
45437 2005-07-02 Jim Meyering <jim@meyering.net>
45439 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
45440 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
45441 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
45442 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
45444 2005-07-02 Jim Meyering <jim@meyering.net>
45446 * lib/backupfile.c (backup_args): Change a `0' to NULL.
45448 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
45450 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
45451 declares only 'struct timespec;' (!).
45453 2005-07-01 Jim Meyering <jim@meyering.net>
45455 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
45456 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
45457 * lib/save-cwd.c, tempname.c:
45458 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
45459 and don't include <sys/file.h>).
45461 2005-06-29 Jim Meyering <jim@meyering.net>
45463 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
45464 type name. Use the variable name instead.
45465 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
45468 2005-06-28 Simon Josefsson <jas@extundo.com>
45470 * modules/check-version (Files): Add check-version.m4.
45472 2005-06-28 Simon Josefsson <jas@extundo.com>
45474 * m4/check-version.m4: New file, suggested by Jim Meyering
45475 <jim@meyering.net>.
45477 2005-06-28 Simon Josefsson <jas@extundo.com>
45479 * lib/check-version.h, lib/check-version.c: New files.
45481 2005-06-28 Simon Josefsson <jas@extundo.com>
45483 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
45484 collision with global variable. Better indentation. Don't
45485 increment buffer pointer beyond buffer end. Based on comments
45486 from Paul Eggert <eggert@cs.ucla.edu>.
45488 * lib/base64.h: Indent.
45490 2005-06-28 Simon Josefsson <jas@extundo.com>
45492 * doc/gnulib.texi (Library version handling): New section.
45494 2005-06-28 Jim Meyering <jim@meyering.net>
45496 * check-module (find_included_lib_files): Hard-code another
45497 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
45498 but modules/fts-lgpl (correctly) does not list those files.
45500 * modules/canonicalize (Files): Add lib/pathmax.h.
45502 2005-06-25 Simon Josefsson <jas@extundo.com>
45504 * modules/check-version: New file.
45506 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
45508 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
45509 initializer of struct addrinfo, as an indication that we don't
45510 care how many members the structure has.
45512 2005-06-24 Derek Price <derek@ximbiot.com>
45513 and Bruno Haible <bruno@clisp.org>
45515 Remove stat module & update lstat.
45516 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
45517 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
45518 * m4/stat.m4: Remove this file.
45520 2005-06-24 Derek Price <derek@ximbiot.com>
45521 and Bruno Haible <bruno@clisp.org>
45523 Remove stat module & update lstat.
45524 * lib/stat.c: Remove this file...
45525 (slash_aware_lstat): ...moving this content and its support...
45526 * lib/lstat.c (rpl_lstat): ...into here.
45527 * lib/lstat.h: New file.
45529 2005-06-24 Derek Price <derek@ximbiot.com>
45530 and Bruno Haible <bruno@clisp.org>
45532 Remove stat module & update lstat.
45533 * config/srclist.txt (libc sources): Remove stat.
45535 2005-06-24 Derek Price <derek@ximbiot.com>
45536 and Bruno Haible <bruno@clisp.org>
45538 Remove stat module & update lstat.
45539 * MODULES.html.sh (stat): Remove.
45540 * MODULES.html: Regenerated.
45541 * modules/lstat (Description): Correct function name.
45542 (Files): Add "lstat.h".
45543 (Depends-on): Remove stat, add xalloc, stat-macros.
45544 * modules/stat: Remove this file.
45545 (Include): Add "lstat.h", remove <sys/stat.h>.
45547 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
45549 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
45550 (ranged_convert): Don't save conversion in a temporary struct.
45551 This causes a warning with GCC 4.0.0, and anyway in the typical
45552 case it's not worth the extra 100 bytes or so of code.
45553 (ranged_convert, __mktime_internal): When calling a function via a
45554 pointer P, use P () rather than (*P) (), as we now assume C89 or
45557 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
45559 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
45560 "who -r" failed to give output. Problem reported by Tim Waugh.
45562 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
45563 (xcalloc): Use it to avoid needless tests.
45564 Problem reported by Jim Meyering.
45566 2005-06-20 Derek Price <derek@ximbiot.com>
45568 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
45569 unnecessary for Autoconfs > 2.59c.
45571 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
45573 * lib/argp.h (__option_is_short): Check upper limit of
45574 __key. Isprint() requires its argument to have the value
45575 of an unsigned char or EOF.
45577 2005-06-16 Jim Meyering <jim@meyering.net>
45579 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
45580 when either N or S is zero.
45582 2005-06-16 Derek Price <derek@ximbiot.com>
45584 * m4/bison.m4: Declare YACC & YFLAGS precious.
45586 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
45588 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
45589 multibyte string or pattern, fall back on unibyte matching.
45590 Problem reported by James Youngman.
45592 2005-06-08 Bruno Haible <bruno@clisp.org>
45594 * modules/csharpcomp: New file.
45595 * MODULES.html.sh (C#): Add csharpcomp.
45597 2005-06-08 Bruno Haible <bruno@clisp.org>
45599 * m4/csharpcomp.m4: New file, from GNU gettext.
45601 2005-06-08 Bruno Haible <bruno@clisp.org>
45603 * lib/csharpcomp.h: New file, from GNU gettext.
45604 * lib/csharpcomp.c: New file, from GNU gettext.
45605 * lib/csharpcomp.sh.in: New file, from GNU gettext.
45607 2005-06-08 Bruno Haible <bruno@clisp.org>
45609 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
45612 2005-06-07 Derek Price <derek@ximbiot.com>
45615 * lib/glob_.h: Indent nested #ifdef.
45617 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
45619 Sync from coreutils.
45620 Use "file name" when talking about file names, instead of "filename"
45621 or "path", as per the GNU coding standards.
45622 * lib/mkdir-p.c: Renamed from makepath.c.
45623 (make_dir_parents): Renamed from make_path. All callers changed.
45624 * lib/mkdir-p.h: Likewise. All includers changed.
45625 * lib/filenamecat.c: Renamed from path-concat.c.
45626 (file_name_concat): Renamed from path_concat. All callers changed.
45627 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
45628 * lib/filenamecat.h: Likewise. All includers changed.
45629 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
45630 in comments or local variable names.
45631 * lib/basename.c: Likewise.
45632 * lib/canonicalize.c, canonicalize.h: Likewise.
45633 * lib/dirname.c, dirname.h: Likewise.
45634 * lib/euidaccess.c: Likewise.
45635 * lib/exclude.c: Likewise
45636 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
45637 * lib/fsusage.c, fsuage.h: Likewise.
45638 * lib/fts.c, fts_.h: Likewise.
45639 * lib/getcwd.c: Likewise.
45640 * lib/getloadavg.c: Likewise.
45641 * lib/mkstemp.c: Likewise.
45642 * lib/mountlist.c, mountlist.h: Likewise.
45643 * lib/openat.c, openat.h: Likewise.
45644 * lib/readlink-stub.c: Likewise.
45645 * lib/readutmp.c, readutmp.h: Likewise.
45646 * lib/rename.c: Likewise.
45647 * lib/rmdir.c: Likewise.
45648 * lib/same.c: Likewise.
45649 * lib/savedir.c: Likewise.
45650 * lib/stripslash.c: Likewise.
45651 * lib/tempname.c: Likewise.
45652 * lib/xreadlink.c: Likewise.
45653 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
45655 * lib/exclude.h: Likewise.
45657 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
45658 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
45659 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
45660 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
45661 * lib/pathmax.h: Include <limits.h> unconditionally, since other
45662 files have been getting away with it for years (MORE/BSD 4.3
45664 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
45665 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
45667 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
45668 Define to 256, not 255, as per modern POSIX.
45670 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
45672 Sync from coreutils.
45673 Use "file name" when talking about file names, instead of "filename"
45674 or "path", as per the GNU coding standards.
45675 * MODULES.html.sh: mkdir-p renamed from makepath.
45676 filenamecat renamed from path-concat.
45677 * modules/filenamecat: Renamed from modules/path-concat.
45678 (Files): filenamecat.h and filenamecat.c renamed from
45679 path-concat.h and path-concat.c.
45680 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
45681 (Include): filenamecat.h, not path-concat.h.
45682 * modules/mkdir-p: Renamed from modules/makepath.
45683 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
45685 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
45686 (Include): mkdir-p.h, not makepath.h.
45688 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
45690 Sync from coreutils.
45691 * m4/mkdir-p.m4: Renamed from makepath.m4.
45692 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
45693 Rename files from makepath.c to mkdir-p.c, and from
45694 makepath.h to mkdir-p.h.
45695 * m4/filenamecat.m4: Renamed from path-concat.m4.
45696 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
45697 Rename files from path-concat.c to filenamecat.c,
45698 and from path-concat.h to filenamecat.h.
45699 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
45700 "file name" in local variables or comments.
45701 * m4/rename.m4: Likewise.
45703 2005-06-01 Bruno Haible <bruno@clisp.org>
45705 * modules/csharpexec: New file.
45706 * MODULES.html.sh (C#): New section.
45708 2005-06-01 Bruno Haible <bruno@clisp.org>
45710 * m4/csharp.m4: New file, from GNU gettext.
45711 * m4/csharpexec.m4: New file, from GNU gettext.
45713 2005-06-01 Bruno Haible <bruno@clisp.org>
45715 * lib/csharpexec.h: New file, from GNU gettext.
45716 * lib/csharpexec.c: New file, from GNU gettext.
45717 * lib/csharpexec.sh.in: New file, from GNU gettext.
45719 2005-05-31 Derek Price <derek@ximbiot.com>
45720 Paul Eggert <eggert@cs.ucla.edu>
45723 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
45725 2005-05-31 Derek Price <derek@ximbiot.com>
45726 Paul Eggert <eggert@cs.ucla.edu>
45729 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
45731 2005-05-29 Derek Price <derek@ximbiot.com>
45733 * config/srclist.txt (glob_.h, glob.c): Add these files.
45735 2005-05-29 Derek Price <derek@ximbiot.com>
45737 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
45738 * modules/glob: New file.
45739 * modules/getlogin_r: Add link to POSIX spec in description.
45741 2005-05-29 Derek Price <derek@ximbiot.com>
45742 Paul Eggert <eggert@cs.ucla.edu>
45744 * m4/glob.m4: New file.
45746 2005-05-29 Derek Price <derek@ximbiot.com>
45747 Paul Eggert <eggert@cs.ucla.edu>
45749 * lib/glob_.h, lib/glob.c: New files.
45751 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
45753 * modules/fts (Files): Remove m4/inttypes-pri.m4.
45754 * modules/fts-lgpl (Depends-on): Remove gettext.
45756 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
45758 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
45759 and don't require gt_INTTYPES_PRI.
45761 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
45763 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
45765 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
45766 the configuration hassle isn't worth it.
45767 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
45768 (LONGEST_MODIFIER, PRIuMAX): Remove.
45770 2005-05-27 Bruno Haible <bruno@clisp.org>
45772 * lib/getlogin_r.h: Remove second include of <stddef.h>.
45774 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
45776 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
45777 _POSIX_PTHREAD_SEMANTICS for Solaris.
45779 2005-05-25 Derek Price <derek@ximbiot.com>
45781 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
45783 2005-05-25 Derek Price <derek@ximbiot.com>
45784 Paul Eggert <eggert@cs.ucla.edu>
45786 * modules/getlogin_r, m4/getlogin_r.m4: New files.
45787 * lib/getlogin_r.c, getlogin_r.h: New files.
45789 2005-05-25 Bruno Haible <bruno@clisp.org>
45790 Derek Price <derek@ximbiot.com>
45792 * lib/getlogin_r.h: Simplify API documentation.
45794 2005-05-23 Derek Price <derek@ximbiot.com>
45796 * modules/minmax (Files): Add m4/minmax.m4.
45797 (configure.ac): Add gl_MINMAX.
45799 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
45801 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
45802 so that unistd-safer.h (GPL'ed code) need not be included.
45804 2005-05-22 Bruno Haible <bruno@clisp.org>
45806 * m4/minmax.m4: New file.
45807 Based on a patch by Derek Price <derek@ximbiot.com>.
45809 2005-05-22 Bruno Haible <bruno@clisp.org>
45811 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
45812 (INT64_MIN): Fix definition.
45813 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
45815 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
45816 NEED_SIGNED_INT_TYPES.
45818 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
45819 HAVE_SYSTEM_INTTYPES.
45821 2005-05-22 Bruno Haible <bruno@clisp.org>
45823 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
45824 Also include <sys/param.h> if it defines MIN, MAX.
45825 Based on a patch by Derek Price <derek@ximbiot.com>.
45827 2005-05-21 Jim Meyering <jim@meyering.net>
45829 * modules/fts (Files): Add m4/inttypes-pri.m4.
45830 (Depends-on): Add lstat and remove gettext. Alphabetize.
45832 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
45835 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
45836 (setup_dir, free_dir): New functions.
45837 (enter_dir, leave_dir): Define trivial
45838 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
45839 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
45840 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
45841 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
45842 Move to fts-cycle.c.
45843 (fts_open): Use setup_dir.
45844 (fts_close): Use free_dir.
45845 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
45846 This adds a label and some gotos, but the alternatives were messier.
45847 Check for memory allocation failure when entering a dir.
45848 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
45849 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
45850 (FTS): New member fts_cycle, that is a union that contains the
45851 old active_dir_ht and cycle_state. All uses changed to mention
45852 fts_cycle.ht and fts_cycle.state.
45853 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
45854 fts.c, with the following changes:
45855 (setup_dir, free_dir): New functions.
45856 (enter_dir): Now returns bool. Return true if successful, false
45857 if memory exhausted. All callers changed.
45858 Do not bother partly cleaning up on
45859 memory allocation failure; that is free_dir's job.
45860 However, free ad if hash_insert fails, to avoid memory leak.
45861 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
45862 fts->fts_options to see which union member to use.
45864 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
45866 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
45867 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
45869 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
45871 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
45873 2005-05-20 Jim Meyering <jim@meyering.net>
45875 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
45876 Now a macro, to pacify GCC.
45878 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
45880 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
45883 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
45885 * lib/chown.c (rpl_chown): Return -1 on failure.
45887 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
45889 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
45890 Don't check for stddef.h.
45891 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
45892 don't use its results.
45893 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
45894 since we include them unconditionally. Don't require
45895 AM_STDBOOL_H, since stdbool is a prerequisite.
45896 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
45897 since we assume C89 or better.
45898 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
45899 as we don't use their results.
45900 Don't check for fchdir, memmove, memset, strrchr, as we use
45901 them unconditionally.
45902 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
45903 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
45905 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
45907 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
45908 Include <stddef.h> unconditionally, since we assume C89 now.
45909 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
45910 * lib/fts.c: Include fts_.h first, to check interface.
45911 Do not include intprops.h; no longer needed.
45912 Include cycle-check.h and hash.h, since fts_.h no longer does.
45913 Remove unnecessary casts of closedir to void.
45914 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
45915 decide whether to decrement nlinks.
45916 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
45917 (FTS): Use struct hash_table * instead of Hash_table, so that
45918 we no longer need to include hash.h here.
45920 2005-05-18 Jim Meyering <jim@meyering.net>
45922 * modules/dirfd (License): Change to LGPL. Most of the code
45923 is already in the public domain.
45925 2005-05-18 Jim Meyering <jim@meyering.net>
45927 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
45928 Reported by Yoann Vandoorselaere.
45930 2005-05-17 Jim Meyering <jim@meyering.net>
45932 * m4/fts.m4: New file, from coreutils.
45934 2005-05-17 Jim Meyering <jim@meyering.net>
45936 * lib/fts.c, lib/fts_.h: New files, from coreutils.
45938 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
45940 Sync from coreutils.
45941 * m4/unlinkdir.m4: New file.
45943 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
45945 Sync from coreutils.
45946 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
45947 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
45948 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
45949 White space changes only.
45950 * lib/makepath.c (make_path): Port to hosts where leading "//" is
45952 * lib/yesno.c: Include getline.h, not ctype.h.
45953 (yesno): Don't remove leading white space; POSIX doesn't allow it.
45954 Use getline to remove arbitrary restriction on response length.
45956 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
45958 * config/srclist-update: Spell out "Street" in FSF postal
45959 mail address; this is the style the FSF seems to prefer.
45961 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
45962 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
45963 this updates FSF postal mail address.
45965 Sync from coreutils.
45966 * modules/unlinkdir: New file.
45967 * modules/yesno (Depends-on): Add getline.
45968 * MODULES.html.sh (File system functions): Add unlinkdir.
45970 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
45972 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
45974 Change the initial comment to refer to GPL, not LGPL.
45975 gnulib-tool will change it to LGPL as needed.
45977 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
45978 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
45979 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
45980 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
45981 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
45982 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
45983 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
45984 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
45985 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
45986 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
45987 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
45988 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
45989 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
45990 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
45991 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
45992 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
45993 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
45994 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
45995 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
45996 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
45997 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
45998 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
45999 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
46000 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
46001 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
46002 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
46003 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
46004 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
46005 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
46006 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
46007 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
46008 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
46009 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
46010 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
46011 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
46012 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
46013 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
46014 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
46015 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
46016 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
46017 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
46018 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
46019 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
46020 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
46021 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
46022 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
46023 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
46024 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
46025 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
46026 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
46027 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
46028 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
46029 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
46030 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
46031 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
46032 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
46033 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
46034 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
46035 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
46036 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
46037 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
46038 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
46039 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
46040 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
46041 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
46042 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
46043 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
46044 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
46045 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
46046 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
46047 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
46048 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
46049 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
46050 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
46051 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
46052 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
46053 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
46054 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
46055 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
46056 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
46057 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
46058 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
46059 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
46060 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
46061 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
46062 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
46063 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
46064 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
46065 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
46066 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
46067 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
46068 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
46069 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
46070 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
46071 lib/yesno.c, lib/yesno.h:
46072 Update FSF postal mail address.
46074 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
46076 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
46077 tests/test-memmem.c, tests/test-stpncpy.c:
46078 Update FSF postal mail address.
46080 2005-05-13 Bruno Haible <bruno@clisp.org>
46082 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
46083 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
46084 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
46085 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
46086 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
46087 Add support for 64-bit integers in the MSVC compiler.
46089 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
46091 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
46093 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
46095 * gnulib-tool (func_import): Sort and uniquify recommended includes.
46097 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
46099 * doc/getdate.texi (General date syntax): Don't say that date
46100 date --iso-8601=ns generates acceptable dates; it doesn't yet.
46101 Problem reported by Nic Ferrier.
46103 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46105 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
46106 specified in ai_socktype. Fix invalid ai_protocol
46107 check. ai_protocol is usually set to 0 or depending on
46108 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
46109 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
46110 ai_socktype / ai_protocol in the returned addrinfo structure.
46112 2005-05-10 Simon Josefsson <jas@extundo.com>
46114 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
46115 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46117 2005-05-10 Karl Berry <karl@gnu.org>
46119 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
46120 (from http://www.gnu.org/licenses).
46121 * doc/COPYING.LIB: also rename to COPYING.LESSER.
46122 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
46125 2005-05-10 Karl Berry <karl@gnu.org>
46127 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
46128 (COPYING.DOC): remove.
46130 * config/srclist-update: new FSF address.
46132 2005-05-10 Derek Price <derek@ximbiot.com>
46134 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
46137 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46138 Bruno Haible <bruno@clisp.org>
46140 * modules/inet_ntop: New file.
46141 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46144 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46145 Bruno Haible <bruno@clisp.org>
46147 * m4/inet_ntop.m4: New file.
46149 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46150 Bruno Haible <bruno@clisp.org>
46152 * lib/inet_ntop.h: New file.
46153 * lib/inet_ntop.c: New file, from glibc with modifications.
46155 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
46157 * modules/time_r (License): Change to LGPL.
46158 * modules/extensions (License): Change to LGPL. Actually,
46159 the license is more permissive than that, but currently gnulib-tool
46160 doesn't know how to handle more-permissive licenses.
46162 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
46163 Problem reported by Dave Love.
46165 2005-05-08 Jim Meyering <jim@meyering.net>
46167 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
46170 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
46172 * modules/argmatch (Depends-on): Add stdbool.
46173 * modules/backupfile (Depends-on): Likewise.
46174 * modules/chdir-long (Depends-on): Likewise.
46175 * modules/closeout (Depends-on): Likewise.
46176 * modules/cycle-check (Depends-on): Likewise.
46177 * modules/dirname (Depends-on): Likewise.
46178 * modules/fnmatch (Depends-on): Likewise.
46179 * modules/fsusage (Depends-on): Likewise.
46180 * modules/fwriteerror (Depends-on): Likewise.
46181 * modules/getcwd (Depends-on): Likewise.
46182 * modules/getloadavg (Depends-on): Likewise.
46183 * modules/hard-locale (Depends-on): Likewise.
46184 * modules/makepath (Depends-on): Likewise.
46185 * modules/mountlist (Depends-on): Likewise.
46186 * modules/nanosleep (Depends-on): Likewise.
46187 * modules/posixtm (Depends-on): Likewise.
46188 * modules/quotearg (Depends-on): Likewise.
46189 * modules/readtokens (Depends-on): Likewise.
46190 * modules/readtokens0 (Depends-on): Likewise.
46191 * modules/readutmp (Depends-on): Likewise.
46192 * modules/save-cwd (Depends-on): Likewise.
46193 * modules/strftime (Depends-on): Likewise.
46194 * modules/userspec (Depends-on): Likewise.
46195 * modules/utimecmp (Depends-on): Likewise.
46196 * modules/xgetcwd (Depends-on): Likewise.
46197 * modules/xnanosleep (Depends-on): Likewise.
46198 * modules/xstrtod (Depends-on): Likewise.
46199 * modules/yesno (Depends-on): Likewise.
46201 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
46203 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
46206 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
46208 Merge from coreutils. Among other things,
46209 add bulletproofing for cases where stdin, stdout, or stderr are closed.
46210 * lib/fd-safer.c: New file.
46211 * lib/fcntl-safer.h, open-safer.c: Remove.
46212 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
46213 * lib/dup-safer.c: Include unistd-safer.h first.
46214 Don't include errno.h.
46215 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
46216 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
46217 * lib/file-type.c: Rely on file-type.h change.
46218 * lib/getloadavg.c: Include unistd-safer.h.
46219 (getloadavg): Use safer open.
46220 * lib/getusershell.c: Include "stdio-safer.h".
46221 (getusershell): Use safer fopen.
46222 * lib/long-options.c (long_options): Use NULL rather than 0.
46223 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
46225 * lib/modechange.c: Likewise.
46226 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
46227 (MODE_DONE): New constant.
46228 (struct mode_change): Remove 'next' member.
46229 (make_node_op_equals): New function; like the old one of the
46230 same name, except it allocates an array.
46231 (mode_compile, mode_create_from_ref): Use it.
46232 (mode_compile): Allocate result as an array, not a linked list.
46233 Parse octal string ourself, so that we catch mistakes like "+0".
46234 (mode_adjust): Arg is an array, not a linked list.
46235 * lib/modechange.c: Include stat-macros.h, xalloc.h.
46236 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
46237 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
46238 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
46239 Remove. This is now stat-macros.h's job.
46240 (talloc): Remove. All callers replaced by xalloc, so that
46241 our invokers don't have to worry about reporting memory failures.
46242 (make_node_op_equals): Remove.
46243 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
46245 (struct mode_change): Moved here from modechange.h.
46246 (mode_append_entry): Remove.
46247 (mode_compile): Remove MASKED_OPS arg, since it encouraged
46248 apps to have incorrect behavior. Use simpler algorithm for head
46249 and tail. Don't futz with umask; that's now the job of mode_adjust.
46250 Detect more invalid usages rather than having somewhat-random behavior.
46251 Don't insert an "a=" action, as that leads to incorrect behavior.
46252 (mode_compile, mode_create_from_ref): Return NULL on error instead
46253 of an enum, since now there's only one way to have an error. All
46255 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
46256 at the correct time. Simplify calculation of "+u" and its ilk.
46257 Don't mishandle "+X".
46258 (mode_free): Remove "register" and localize decls.
46259 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
46260 (struct mode_change): Move to modechange.c; callers don't
46261 need to see this stuff.
46262 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
46263 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
46264 (mode_change, mode_adjust): Reflect the new signatures noted above.
46265 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
46266 that might redefine system include files.
46267 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
46268 (my_usleep): Use NULL rather than (void *) 0.
46269 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
46270 Use siginterrupt to specify that system calls should be interrupted.
46271 (rpl_nanosleep): Move initialization of suspended closer to call of
46273 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
46274 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
46275 (desirable_utmp_entry): New function.
46276 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
46277 using x2nrealloc, to simplify logic.
46278 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
46279 size calculation. Do not assume utmp file is a regular file.
46280 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
46281 (READ_UTMP_CHECK_PIDS): New constant.
46282 * lib/save-cwd.c: Include unistd-safer.h.
46283 (save_cwd): Use fd_safer.
46284 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
46285 [!_LIBC] Include "stat-macros.h" instead.
46286 * lib/unistd-safer.h (fd_safer): New decl.
46288 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
46290 * modules/getloadavg (Depends-on): Add unistd-safer.
46291 * modules/getusershell (Depends-on): Add stdio-safer.
46292 * modules/lstat (Depends-on): Remove xalloc.
46293 * modules/mkstemp (Depends-on): Add stat-macros.
46294 * modules/modechange (Depends-on): Remove xstrtol.
46295 Add stat-macros, xalloc.
46296 * modules/save-cwd (Depends-on): Add unistd-safer.
46297 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
46298 * modules/unistd-safer (Files): Add lib/fd-safer.c
46299 (Makefile.am): Remove lib_SOURCES.
46301 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
46302 Remove fcntl-safer; unistd-safer supersedes it.
46304 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
46306 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
46308 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
46309 (gl_PREREQ_CHOWN): Remove.
46310 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
46311 it. Don't require AC_HEADER_STAT.
46312 (gl_PREREQ_LSTAT): Remove.
46313 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
46314 Don't require AC_HEADER_STAT.
46315 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
46316 (gl_PREREQ_RMDIR): Remove.
46317 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
46318 mention stat-macros.h or AC_HEADER_STAT, since we'll make
46319 the stat-macros module a prerequisite.
46320 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
46321 * m4/filemode.m4 (gl_FILEMODE): Likewise.
46322 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
46323 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
46324 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
46326 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
46327 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
46329 * m4/fcntl-safer.m4: Remove.
46330 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
46331 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
46332 Invoke gl_PREREQ_FD_SAFER.
46333 (gl_PREREQ_FD_SAFER): New macro.
46334 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
46335 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
46336 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
46337 Remove duplicate call to AC_LIBOBJ(readutmp).
46338 (gl_PREREQ_READUTMP): Remove. All uses inlined.
46340 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
46341 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
46343 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
46345 * MODULES.html.sh (Misc): Add byteswap.
46347 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
46349 * modules/getcwd (Depends-on): Add extensions.
46350 * modules/openat (Depends-on): Likewise.
46352 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
46354 * modules/byteswap: New file.
46356 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
46358 * m4/byteswap.m4: New file.
46360 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
46362 * lib/byteswap_.h: New file.
46364 2005-04-25 Karl Berry <karl@gnu.org>
46366 * m4/gettext.m4: Update from GNU gettext 0.14.4.
46368 2005-04-25 Albert Chin <china@thewrittenword.com>
46370 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
46373 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
46375 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
46376 (func_ln_if_changed) Remove forcibly for no error message
46377 in case file does not exist.
46379 2005-04-19 Simon Josefsson <jas@extundo.com>
46381 * gnulib-tool (Options): Make --symlink mean --symbolic.
46383 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
46385 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
46387 2005-04-16 Simon Josefsson <jas@extundo.com>
46389 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
46391 2005-04-15 Simon Josefsson <jas@extundo.com>
46393 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
46395 2005-04-15 Simon Josefsson <jas@extundo.com>
46397 * gnulib-tool: Rename --symlink to --symbolic.
46399 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
46401 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
46402 symbolic links to files instead of copying/moving. Add --aux-dir,
46403 specifying directory relative --dir where auxiliary build tools
46406 2005-04-14 Bruno Haible <bruno@clisp.org>
46408 * modules/allocsa (License): Change to LGPL.
46409 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46411 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
46413 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
46414 that "UTC +1 second" continues to work. Problem reported
46415 by Dmitry V. Levin.
46416 (relunit_snumber): New rule.
46419 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
46421 * lib/getdate.y (universal_time_zone_table): New constant.
46422 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
46423 universal_time_zone_table.
46424 (lookup_zone): Prefer universal_time_zone_table to
46425 local_time_zone_table, so that "GMT" time stamps are allowed in
46426 London during the summer. Problem reported by Ian Abbott.
46428 2005-04-12 Jim Meyering <jim@meyering.net>
46430 * lib/human.c (humblock): Set *options even when returning due to
46431 xstrtoumax conversion failure. Thanks to a used-uninitialized
46432 warning from gcc-4.
46434 2005-04-09 Jim Meyering <jim@meyering.net>
46436 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
46437 -Wuninitialized: initialize tm0.tm_year.
46439 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
46441 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
46442 count, since there's no maximum. All uses changed.
46443 Add member dsts_seen.
46444 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
46446 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
46447 Use pc_rels_seen to decide whther a date is absolute.
46449 * lib/getdate.y (number): Don't overwrite year.
46450 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
46453 2005-04-02 Simon Josefsson <jas@extundo.com>
46455 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
46456 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
46458 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
46460 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
46461 where no absolute path name can be longer than PATH_MAX.
46463 2005-03-27 Jim Meyering <jim@meyering.net>
46465 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
46467 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
46469 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
46470 "one's complement" -> "ones' complement" in comment, as per Knuth.
46471 "value of type" -> "type or expression" in comment.
46472 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
46474 2005-03-26 Jim Meyering <jim@meyering.net>
46477 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
46478 Correct typos: s/or/of/.
46480 2005-03-26 Jim Meyering <jim@meyering.net>
46482 * modules/check-include-files: Move to ../ and rename to...
46483 * check-module: ...this.
46485 2005-03-25 Jim Meyering <jim@meyering.net>
46487 * modules/xvasprintf (Files): Add xalloc.h.
46489 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
46491 * modules/gettext (Files): config/config.rpath ->
46492 build-aux/config.rpath
46493 * modules/iconv (Files): Likewise.
46494 Problem reported by Oskar Liljeblad.
46496 2005-03-23 Jim Meyering <jim@meyering.net>
46498 * modules/check-include-files: New script to check for
46499 missing dependencies, multiple includes, etc.
46501 * modules/c-strtold (Depends-on): Add xalloc.
46502 * modules/c-strtod (Depends-on): Add xalloc.
46503 * modules/hash (Depends-on): Add xalloc.
46504 (Files): Remove lib/xalloc.h.
46506 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
46507 * modules/userspec (Files): Add lib/inttostr.h.
46509 2005-03-23 Jim Meyering <jim@meyering.net>
46511 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
46513 2005-03-22 Jim Meyering <jim@meyering.net>
46515 * modules/stat-macros: New module.
46516 * modules/canonicalize, modules/euidaccess, modules/file-type,
46517 * modules/filemode, modules/lchown, modules/makepath,
46518 * modules/rmdir, modules/stat: Depend on new stat-macros module
46519 rather than listing lib/stat-macros.h manually.
46520 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
46522 2005-03-22 Jim Meyering <jim@meyering.net>
46524 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
46526 2005-03-22 Bruno Haible <bruno@clisp.org>
46528 * config/srclist.txt: Replace target directory 'config' with
46530 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
46531 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
46534 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
46536 * modules/chdir-long (Depends-on): Add mempcpy.
46538 * modules/acl, modules/backupfile, modules/c-strtod,
46539 modules/c-strtold, modules/canon-host, modules/canonicalize,
46540 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
46541 modules/exclude, modules/exitfail, modules/file-type,
46542 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
46543 modules/getdate, modules/getline, modules/getpagesize,
46544 modules/getpass, modules/getugroups, modules/group-member,
46545 modules/hard-locale, modules/hash, modules/human, modules/idcache,
46546 modules/inttostr, modules/long-options, modules/makepath,
46547 modules/md5, modules/memcasecmp, modules/memcoll,
46548 modules/modechange, modules/mountlist, modules/path-concat,
46549 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
46550 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
46551 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
46552 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
46553 modules/strftime, modules/strndup, modules/strverscmp,
46554 modules/timespec, modules/unlocked-io, modules/userspec,
46555 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
46557 Remove lib_SOURCES line from Makefile.am section, as this is now
46558 done automatically by the corresponding Autoconf macro.
46560 2005-03-21 Jim Meyering <jim@meyering.net>
46562 Changes imported from coreutils.
46564 * lib/cycle-check.c: Don't include xalloc.h.
46566 * lib/path-concat.c: Don't include assert.h.
46567 (path_concat): Remove assertion that would have triggered
46568 for ABASE starting with more than one slash.
46569 Reported by Andreas Schwab.
46571 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
46572 properly when ABASE is an absolute file name.
46573 Correct the description of this function.
46574 Include <assert.h>.
46575 Add an assertion and a test driver.
46576 This fixes a bug introduced on 2004-07-02.
46577 Andreas Schwab reported the resulting failure of cp --parents:
46578 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
46580 2005-03-21 Jim Meyering <jim@meyering.net>
46582 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
46583 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
46585 2005-03-21 Jim Meyering <jim@meyering.net>
46586 and Paul Eggert <eggert@cs.ucla.edu>
46588 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
46589 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
46590 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
46591 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
46592 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
46593 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
46594 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
46595 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
46596 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
46597 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
46598 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
46599 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
46600 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
46601 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
46602 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
46603 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
46604 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
46607 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
46609 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
46610 (which shouldn't happen), generate nothing instead of returning 0
46611 immediately, so that nstrftime (NULL, ...) doesn't return 0.
46613 2005-03-16 Bruno Haible <bruno@clisp.org>
46615 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
46616 HAVE_LONGLONG_64BIT.
46618 2005-03-16 Bruno Haible <bruno@clisp.org>
46620 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
46621 HAVE_LONGLONG_64BIT.
46623 2005-03-16 Bruno Haible <bruno@clisp.org>
46625 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
46626 HAVE_LONGLONG_64BIT.
46628 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
46630 * lib/strftime.c (my_strftime): Prepend space to format so that we can
46631 reliably distinguish strftime failure from empty output on POSIX
46634 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
46636 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
46637 (iconv_string): Don't guess a size-zero buffer, as that might cause
46638 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
46639 result would be 'too large', where 'too large' is (heuristically)
46640 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
46641 overflow concerns. This will prevent some unwanted malloc failures
46642 when the inputs are very large.
46644 2005-03-15 Karl Berry <karl@gnu.org>
46646 * config/srclist.txt (config.rpath): from gettext.
46647 * config/config.rpath: update.
46649 2005-03-15 Bruno Haible <bruno@clisp.org>
46651 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
46654 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
46657 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
46660 2005-03-14 Simon Josefsson <jas@extundo.com>
46662 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
46665 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
46667 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
46668 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
46670 * lib/strtol.c: Likewise.
46672 2005-03-14 Jim Meyering <jim@meyering.net>
46674 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
46675 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
46676 to be nonzero so that we (and caller) can detect the difference
46677 between a valid zero-length expansion and an error return, even
46678 when the underlying strftime fails before writing anything into
46681 2005-03-14 Bruno Haible <bruno@clisp.org>
46683 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
46684 Update from GNU gettext 0.14.3.
46686 2005-03-10 Jim Meyering <jim@meyering.net>
46688 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
46690 2005-03-10 Jim Meyering <jim@meyering.net>
46692 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
46693 so that this module works on systems without fchdir.
46695 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
46697 Factor int-properties macros into a single file, except for
46698 glibc-related files.
46699 * lib/intprops.h: New file.
46700 * lib/getloadavg.c: Include it instead of limits.h.
46701 (INT_STRLEN_BOUND): Remove.
46702 * lib/human.c: Include intprops.h.
46703 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
46704 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
46706 * lib/inttostr.h: Include intprops.h instead of limits.h.
46707 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
46708 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
46709 for consistency with intprops.h.
46710 (time_t_is_integer, twos_complement_arithmetic): Use them.
46711 * lib/sig2str.h: Include <signal.h>, intprops.h.
46712 (INT_STRLEN_BOUND): Remove.
46713 * lib/strftime.c (TYPE_SIGNED): Remove.
46714 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
46715 * lib/strtol.c: Adjust comments to match intprops.h.
46716 * lib/userspec.c: Include intprops.h.
46717 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
46718 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
46719 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
46720 instead of rolling our own expressions.
46721 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
46723 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
46725 (my_strftime): Do not mishandle years close to INT_MAX, by doing
46726 the right thing even if adding 1900 would overflow. Similarly
46727 for tm_mon + 1 and tm_yday + 1.
46728 Make %Y always equivalent to %C%y, and similarly for %G and %g.
46729 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
46730 (DO_SIGNED_NUMBER): New macro.
46731 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
46733 2005-03-07 Bruno Haible <bruno@clisp.org>
46735 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
46737 2005-03-07 Bruno Haible <bruno@clisp.org>
46739 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
46741 2005-03-04 Derek R. Price <derek@ximbiot.com>
46743 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
46744 (func_import): Only replace files via --import when they have actually
46747 2005-03-03 Derek R. Price <derek@ximbiot.com>
46749 * m4/mmap-anon.m4: New file.
46750 * m4/pagealign_alloc.m4: New file.
46752 2005-03-03 Derek R. Price <derek@ximbiot.com>
46753 Bruno Haible <bruno@clisp.org>
46755 * modules/pagealign_alloc: New file.
46756 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
46758 2005-03-03 Derek R. Price <derek@ximbiot.com>
46759 Bruno Haible <bruno@clisp.org>
46761 * lib/pagealign_alloc.h: New file.
46762 * lib/pagealign_alloc.c: New file.
46764 2005-03-03 Bruno Haible <bruno@clisp.org>
46766 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
46767 Use an all-permissive copyright notice, recommended by RMS.
46769 2005-03-02 Bruno Haible <bruno@clisp.org>
46771 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
46772 of AIX, the replacement has to be done only after <string.h> is
46773 included, therefore not in config.h. stpncpy.h does the replacement,
46774 and stpncpy.c uses it.
46776 2005-03-02 Bruno Haible <bruno@clisp.org>
46778 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
46781 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
46783 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
46784 The workaround isn't strictly needed for POSIX conformance, and
46785 it's too much of a pain to configure and maintain. We'll ask
46786 people to fix their kernels instead.
46787 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
46788 (NANOSLEEP_BUG_WORKAROUND): Remove.
46789 (xnanosleep): Remove the workaround.
46791 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
46793 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
46794 Reported by Derek Price.
46795 (Include): Add "timespec.h".
46797 * modules/xnanosleep (Depends-on): Remove gethrxtime.
46799 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
46801 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
46802 to detect nanosleep bug.
46804 2005-03-01 Bruno Haible <bruno@clisp.org>
46806 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
46808 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
46810 * modules/gethrxtime: New file.
46811 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
46812 (Depends-on): Add gethrxtime.
46813 (configure.ac): Add gl_XNANOSLEEP.
46814 (Makefile.am): Remove lib_SOURCES line.
46816 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
46818 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
46819 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
46821 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
46823 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
46824 * lib/timespec.h (gettime): Return void, since it always
46825 succeeds now. All uses changed.
46826 * lib/gettime.c (gettime) Likewise.
46827 [HAVE_NANOTIME]: Prefer nanotime.
46828 Assume gettimeofday succeeds, as POSIX requires.
46829 Assime time () succeeds, since other code already does.
46830 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
46831 (timespec_subtract): Remove.
46832 (NANOSLEEP_BUG_WORKAROUND): New constant.
46833 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
46834 things considerably. Use it only on GNU/Linux hosts, since the
46835 workaround shouldn't be needed elsewhere.
46837 2005-02-24 Bruno Haible <bruno@clisp.org>
46839 * modules/gettext (Files): Add m4/glibc2.m4.
46841 2005-02-24 Bruno Haible <bruno@clisp.org>
46843 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
46844 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
46846 Update from GNU gettext 0.14.2.
46847 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
46849 2005-02-24 Bruno Haible <bruno@clisp.org>
46851 * lib/localcharset.c: Update from GNU gettext 0.14.2.
46852 * lib/config.charset: Update from GNU gettext 0.14.2.
46854 2005-02-24 Bruno Haible <bruno@clisp.org>
46856 * lib/gettext.h: Update from GNU gettext 0.14.2.
46858 2005-02-23 Simon Josefsson <jas@extundo.com>
46860 * m4/iconvme.m4: New file.
46862 2005-02-23 Jim Meyering <jim@meyering.net>
46864 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
46866 Thanks to Bruno Haible for catching it.
46868 2005-02-22 Simon Josefsson <jas@extundo.com>
46870 * modules/iconvme: New file.
46872 * MODULES.html.sh: Add iconvme.
46874 2005-02-22 Simon Josefsson <jas@extundo.com>
46876 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
46878 2005-02-22 Simon Josefsson <jas@extundo.com>
46880 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
46882 2005-02-22 Jim Meyering <jim@meyering.net>
46884 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
46887 2005-02-20 Neil Conway <neilc@samurai.com>
46889 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
46890 returned by OSX/Darwin if the specified buffer is not large
46891 enough for the hostname.
46893 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
46895 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
46896 pass it to _help, otherwise the latter coredumps trying to
46897 dereference state.root_argp.
46899 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
46901 * modules/chdir-long (Depends-on): Add memrchr.
46902 * modules/memrchr (Files): Add lib/memrchr.h.
46903 (Include): "memrchr.h".
46905 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
46907 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
46909 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
46911 * lib/memrchr.h: New file.
46912 * lib/chdir-long.c: Include it.
46913 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
46914 Don't bother including stddef.h.
46916 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
46918 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
46920 Include <sys/types.h>, for dev_t.
46921 (ME_DUMMY, ME_REMOTE): Move from here....
46922 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
46923 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
46925 Include mountlist.h first, to test the interface.
46927 2005-01-29 Bruno Haible <bruno@clisp.org>
46929 * lib/progname.c (program_name): Initialize.
46930 Needed when linking statically on MacOS X.
46932 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
46934 Sync from coreutils.
46935 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
46936 (Depends-on): Add c-strtod.
46937 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
46939 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
46941 Sync from coreutils.
46942 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
46944 Remove files that are specific to coreutils.
46945 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
46947 2005-01-28 Bruno Haible <bruno@clisp.org>
46949 * modules/javacomp: New file.
46950 * MODULES.html.sh (Java): Add javacomp.
46952 2005-01-28 Bruno Haible <bruno@clisp.org>
46954 * m4/javacomp.m4: New file, from GNU gettext.
46956 2005-01-28 Bruno Haible <bruno@clisp.org>
46958 * lib/javacomp.sh.in: New file, from GNU gettext.
46959 * lib/javacomp.h: New file, from GNU gettext.
46960 * lib/javacomp.c: New file, from GNU gettext.
46962 2005-01-26 Simon Josefsson <jas@extundo.com>
46964 * lib/gai_strerror.c: Use GPL in header.
46966 2005-01-26 Bruno Haible <bruno@clisp.org>
46968 * modules/javaexec: New file.
46969 * MODULES.html.sh (Java): Add javaexec.
46971 2005-01-26 Bruno Haible <bruno@clisp.org>
46973 * m4/javaexec.m4: New file, from GNU gettext.
46975 2005-01-26 Bruno Haible <bruno@clisp.org>
46977 * lib/javaexec.sh.in: New file, from GNU gettext.
46978 * lib/javaexec.h: New file, from GNU gettext.
46979 * lib/javaexec.c: New file, from GNU gettext.
46981 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
46983 * modules/lchown (Depends-on): Remove lchown.h
46985 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
46987 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
46988 must be defined if the header file was not found, in order
46989 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
46991 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
46993 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
46994 initializers for struct pentry_state.
46995 (__argp_error): Check return value of __asprintf
46996 (__argp_failure): Translate error message
46998 * lib/argp-parse.c: Removed braces around the expansion of N_()
47000 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
47002 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
47003 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
47004 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
47005 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
47006 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
47007 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
47008 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
47009 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
47010 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
47011 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
47012 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
47013 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
47014 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
47015 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
47016 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
47017 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
47018 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
47019 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
47020 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
47021 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
47022 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
47023 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
47024 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
47025 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
47026 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
47027 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
47028 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
47029 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
47030 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
47031 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
47032 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
47033 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
47034 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
47035 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
47036 xstrtol.m4, xstrtoumax.m4, yesno.m4:
47037 Use an all-permissive copyright notice, recommended by RMS.
47039 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
47041 * modules/chdir-long (Depends-on): Remove mempcpy.
47043 2005-01-21 Jim Meyering <jim@meyering.net>
47045 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
47046 same value as for Solaris 9.
47048 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
47049 component length. This included changing the parameter to be
47050 of type `char *' rather than `char const *'.
47051 * lib/chdir-long.h (chdir_long): Update prototype.
47053 * lib/openat.c (fdopendir, fstatat): New functions.
47054 * lib/openat.h: Include headers required for use of DIR and struct
47056 [AT_SYMLINK_NOFOLLOW]: Define.
47057 (fdopendir, fstatat): Add prototypes.
47059 2005-01-21 Bruno Haible <bruno@clisp.org>
47061 * modules/classpath: New file.
47062 * MODULES.html.sh (Java): Add classpath.
47064 2005-01-21 Bruno Haible <bruno@clisp.org>
47066 * lib/classpath.h: New file, from GNU gettext.
47067 * lib/classpath.c: New file, from GNU gettext.
47069 2005-01-20 Simon Josefsson <jas@extundo.com>
47071 * modules/version-etc-fsf: New file.
47073 2005-01-20 Simon Josefsson <jas@extundo.com>
47075 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
47076 * lib/version-etc.c: Remove version_etc_copyright.
47077 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
47078 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
47080 2005-01-20 Simon Josefsson <jas@extundo.com>
47082 * lib/base64.h (isbase64): Add.
47084 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
47085 using a unsigned prototype, don't inline.
47086 (base64_decode): Use it.
47088 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
47090 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
47093 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
47095 * lib/save-cwd.c (save_cwd): Remove code to support the case
47096 where fchdir is missing or flaky.
47098 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
47100 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
47102 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
47104 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
47105 AC_LIBSOURCES now does this.
47106 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
47107 with new ullong_max module.
47109 2005-01-19 Bruno Haible <bruno@clisp.org>
47111 * modules/sh-quote: New file.
47112 * MODULES.html.sh (Executing programs): Add sh-quote.
47114 2005-01-19 Bruno Haible <bruno@clisp.org>
47116 * lib/sh-quote.h: New file, from GNU gettext.
47117 * lib/sh-quote.c: New file, from GNU gettext.
47119 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
47121 Merge from coreutils.
47122 * m4/ullong_max.m4: New file.
47123 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
47124 (gl_MACROS): Assume localeconv exists.
47126 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
47128 Merge changes from coreutils, as described below in several
47129 changelogs dated today.
47131 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
47132 (O_DIRECTORY): Remove; not needed here, since "." must be
47133 a directory. All uses removed.
47134 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
47135 universal on Suns, and we also need to test for IRIX.
47136 Revamp code to use 'if' rather than '#if'.
47137 Avoid unnecessary comparison of cwd->desc to 0.
47139 * lib/utimens.c (futimens): Robustify the previous patch, by checking
47140 for known valid error numbers rather than observed invalid ones.
47142 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
47144 * modules/ullong_max: New file.
47146 * modules/chdir-long, modules/openat: New files.
47147 * modules/save-cwd (Depends-on): Depend on chdir-long.
47148 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
47150 2005-01-18 Jim Meyering <jim@meyering.net>
47152 Merge from coreutils.
47153 * m4/chdir-long.m4, m4/openat.m4: New files.
47154 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
47155 save-cwd.h. Add AC_LIBOBJ for save-cwd.
47156 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
47157 is sane and DOES follow symlinks. Besides, testing 20 different
47158 systems found no broken chown implementations.
47159 Prompted by a change in rsync's copy of this macro.
47160 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
47162 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
47164 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
47165 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
47166 NULL-means-set-to-current-time semantics.
47167 Remove temporary file immediately, rather than waiting
47168 for configure's at-exit trap code to do it.
47170 2005-01-18 Jim Meyering <jim@meyering.net>
47172 * lib/version-etc.c (version_etc_copyright): Update copyright date.
47174 * lib/utimens.c (futimens): Account for the fact that futimes
47175 can also fail with errno == ENOSYS or errno == ENOENT.
47176 Patch from Dmitry V. Levin.
47178 Change the name of the robust chdir function from chdir to chdir_long.
47179 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
47180 (restore_cwd): Use chdir_long, not chdir.
47181 * lib/chdir-long.c: Renamed from chdir.c.
47182 * lib/chdir-long.h: Renamed from chdir.h.
47183 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
47186 2005-01-18 Bruno Haible <bruno@clisp.org>
47188 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
47189 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
47190 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
47191 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
47192 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
47193 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
47194 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
47195 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
47196 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
47197 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
47198 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
47199 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
47200 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
47201 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
47202 Use an all-permissive copyright notice, recommended by RMS.
47204 2005-01-18 Bob Proulx <bob@proulx.com>
47206 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
47207 simplify offsetof() macro construct to avoid compile failure with
47208 native HP-UX 11.0 ANSI C compiler.
47210 2005-01-17 Bruno Haible <bruno@clisp.org>
47212 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
47213 redundant because stpncpy.m4 takes care of it.
47215 2005-01-17 Bruno Haible <bruno@clisp.org>
47217 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
47219 2005-01-17 Bruno Haible <bruno@clisp.org>
47221 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
47224 2005-01-17 Bruno Haible <bruno@clisp.org>
47226 * lib/fwriteerror.h (fwriteerror): Change specification to include
47228 * lib/fwriteerror.c: Include <stdbool.h>.
47229 (fwriteerror): At the end, close the file stream. Record whether
47230 stdout was already closed.
47232 2005-01-17 Bruno Haible <bruno@clisp.org>
47234 * lib/execute.c (environ): Declare if needed.
47235 * lib/pipe.c (environ): Likewise.
47236 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
47238 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
47240 * modules/argp: Depend on vsnprintf
47242 2005-01-10 Jim Meyering <jim@meyering.net>
47244 * modules/closeout (Depends-on): Add atexit.
47246 2005-01-06 Bruno Haible <bruno@clisp.org>
47248 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
47250 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
47252 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
47253 definitions to be after all include files, to avoid collisions.
47254 Problem reported by Bob Proulx.
47256 2005-01-04 Jim Meyering <jim@meyering.net>
47258 Changes imported from coreutils.
47259 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
47260 as the mkstemp template, use a temporary directory and an
47261 8.3-friendly template to avoid trouble on systems like DJGPP.
47262 Reported by Juan M. Guerrero via Stepan Kasal.
47263 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
47264 close. Remove the temporary directory right away, rather than waiting
47265 for configure's at-exit trap code to do it.
47266 Suggestion from Stepan Kasal.
47268 2005-01-01 Simon Josefsson <jas@extundo.com>
47270 * gnulib-tool: Print #include directives when --import'ing.
47272 2004-12-28 Simon Josefsson <jas@extundo.com>
47274 * tests/test-base64.c: Include required header files. Remove
47277 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
47279 * modules/error (Depends-on): Remove gettext.
47281 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
47283 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
47284 not needed. This removes a dependency on the gettext module.
47285 [defined _LIBC]: Do not include <libintl.h>; not needed.
47287 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
47289 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
47290 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
47292 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
47294 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
47297 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
47299 * modules/getdate (Depends-on): Remove alloca-opt.
47301 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
47303 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
47305 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
47307 * lib/argp-parse.c: Include <stddef.h>.
47308 (alignof, alignto): New macros.
47309 (parser_init): Don't assume that void * is aligned sufficiently
47312 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
47313 need to extend the stack.
47314 (YYINITDEPTH): New macro, so that the initial stack isn't overly
47317 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
47319 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
47321 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
47323 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
47324 (2004-10-24) change. Apparently this was a false alarm.
47326 * modules/getdate: Depend on alloca-opt, not alloca.
47328 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
47330 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
47331 Remove now-obsolete comment about AIX.
47332 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
47333 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
47334 (YYMAXDEPTH): New macro.
47336 2004-12-18 Simon Josefsson <jas@extundo.com>
47338 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
47340 2004-12-18 Bruno Haible <bruno@clisp.org>
47342 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
47344 2004-12-18 Bruno Haible <bruno@clisp.org>
47346 * lib/fatal-signal.c (fatal_signals): Make non-const.
47347 (init_fatal_signals): New function.
47348 (uninstall_handlers, install_handlers): Ignore signals that were set to
47350 (at_fatal_signal): Call init_fatal_signals.
47351 (init_fatal_signal_set): Likewise. Ignore signals that were set to
47353 Reported by Paul Eggert.
47355 2004-12-18 Bruno Haible <bruno@clisp.org>
47357 * doc/alloca.texi: New file.
47358 * doc/alloca-opt.texi: New file.
47360 2004-12-17 Jim Meyering <jim@meyering.net>
47362 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
47363 Otherwise, install-sh could exit with improper exit status when
47364 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
47366 2004-12-16 Simon Josefsson <jas@extundo.com>
47368 * tests/test-base64.c: Add license.
47370 2004-12-15 Stepan Kasal <address@hidden>
47372 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
47374 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
47376 * modules/getcwd (Files): Add m4/d-ino.m4.
47377 Suggested by Mark D. Baushke.
47379 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
47381 * lib/getdate.y (textint): New member "negative".
47382 (time_zone_hhmm): New function.
47383 Expect 14 shift-reduce conflicts, not 13.
47384 (o_colon_minutes): New rule.
47385 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
47386 (yylex): Set the "negative" member of signed numbers.
47388 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
47390 * doc/getdate.texi (Time of day items, Time zone items):
47391 Describe new formats +00:00, UTC+00:00.
47393 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
47395 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
47396 spurious "-l"s. Problem reported by Stepan Kasal.
47398 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
47400 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
47401 in Autoconf 2.59. Problem reported by Mark D. Baushke.
47403 2004-12-04 Simon Josefsson <jas@extundo.com>
47405 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
47406 Vandoorselaere <yoann@prelude-ids.org>.
47408 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
47410 Changes imported from coreutils.
47411 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
47413 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
47415 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
47417 Changes imported from coreutils.
47418 * lib/hard-locale.c: Assume <locale.h> exists.
47419 Include "strdup.h".
47420 (GLIBC_VERSION): New macro.
47421 (hard_locale): Assume setlocale exists.
47422 Rewrite to avoid #ifdef.
47423 Use strdup rather than malloc + strcpy.
47424 * lib/human.c: Assume <locale.h> exists.
47425 (human_readable): Assume localeconv exists.
47427 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
47429 * modules/hard-locale (Depends-on): Add strdup.
47431 2004-12-01 Jakub Jelinek <jakub@redhat.com>
47433 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
47434 convert T2, not T. (Imported from libc.)
47436 2004-11-30 Simon Josefsson <jas@extundo.com>
47438 * modules/restrict (License): Change to LGPL.
47440 2004-11-30 Simon Josefsson <jas@extundo.com>
47442 * m4/restrict.m4: Add copyright and copying conditions.
47444 2004-11-30 Simon Josefsson <jas@extundo.com>
47446 * m4/base64.m4: New file.
47448 2004-11-30 Simon Josefsson <jas@extundo.com>
47450 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
47453 * tests/test-base64.c: New file.
47455 * modules/base64: New file.
47457 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
47459 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
47460 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
47462 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
47464 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
47466 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
47467 (__getcwd.c): Don't restore errno; glibc doesn't.
47468 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
47469 first, falling back to our code only if its results look suspicious.
47470 Ensure that the resulting buffer is only as large as necessary.
47472 * lib/readutmp.c: Include readutmp.h first.
47473 Include <errno.h>, since readutmp.h no longer does that.
47474 * lib/readutmp.h: Don't include <errno.h>,
47475 <sys/param.h>, <time.h>; not needed to establish interface.
47476 (errno): Remove decl.
47477 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
47478 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
47479 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
47481 2004-11-28 Simon Josefsson <jas@extundo.com>
47483 * lib/base64.h, base64.c: New file.
47485 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
47487 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
47489 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
47491 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
47492 (Depends-on): Remove pathmax, same. Add mempcpy.
47493 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
47494 (Makefile.am): Append getcwd.h to lib_SOURCES.
47495 (Include): Add getcwd.h.
47496 (Maintainer): Change from Jim Meyering to "all, glibc",
47497 since getdate now uses intended-for-glibc code.
47498 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
47499 (Depends-on): Depend on getcwd. Do not depend on pathmax.
47501 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
47503 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
47504 HP's ANSI C compiler.
47505 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
47506 Declaring int functions causes warnings on some modern systems and
47507 shouldn't be needed to compile on ancient ones.
47508 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
47511 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
47512 with the following changes.
47513 (__set_errno): Parenthesize properly.
47514 Include <stdbool.h>.
47515 (MIN, MAX, MATCHING_INO): New macros.
47516 (__getcwd): Define with prototype, not K&R form.
47517 Use heuristics to allocate default buffer on stack if possible.
47518 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
47519 behavior, and to avoid the PATH_MAX limit when computing
47521 Use MATCHING_INO to compare inode number to file.
47522 Check for arithmetic overflow in size calculations.
47523 Fix bug in reallocation of dot array that caused getcwd to fail
47524 on directories nested deeper than 75.
47525 Be more careful about saving errno on error.
47526 Do not use realloc; use only free+malloc, as this is a bit
47527 more flexible and avoids a needless copy operation.
47528 Do not inspect st_dev and st_ino for symbolic links; POSIX
47529 doesn't specify the latter.
47530 Check for closedir errors.
47531 Avoid needless casts.
47532 Use "#ifdef weak_alias" around weak_alias, to be like other
47534 The following changes to getcwd.c have effect only when used in
47535 gnulib; they have no effect inside glibc proper.
47536 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
47537 as alloca isn't used.
47538 (alloca, __alloca): Likewise.
47539 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
47540 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
47541 unconditionally, as gnulib assumes C89 or better.
47542 Do not include <sys/param.h>.
47543 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
47544 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
47546 (NULL) [!defined NULL]: Remove; we assume C89 or better.
47547 Include <dirent.h> in a way that is compatible with modern Autoconf.
47548 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
47549 New macros, if not already defined.
47550 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
47551 Use "_LIBC", not "defined _LIBC", for consistency.
47552 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
47554 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
47555 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
47556 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
47557 credit only to Jim Meyering and adjust the copyright dates.
47558 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
47559 <stdlib.h>, <unistd.h>, "pathmax.h".
47560 Instead, include "xgetcwd.h" (first) and "getcwd.h".
47561 (INITIAL_BUFFER_SIZE): Remove.
47562 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
47564 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
47566 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
47567 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
47568 Use the _ONCE methods, for efficiency.
47569 Check for fcntl.h. In test program, include <errno.h>
47570 and <fcntl.h> if available. Remove old K&R cruft from
47571 test program. Check for common errors in GNU/Linux,
47572 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
47573 don't do AC_LIBOBJ, as that's getcwd.m4's job.
47574 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
47575 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
47577 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
47578 accommodate new getcwd.c.
47579 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
47580 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
47581 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
47582 that's all we need now.
47584 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
47586 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
47587 argp-parse.c depends on getopt internals, that means we should
47588 always use our getopt, to be on the safe side.
47589 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
47590 order not to spoil the result of an eventual previous invocation
47591 of gl_GETOPT_SUBSTITUTE.
47593 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
47595 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
47596 redefinition warnings. To avoid them, include the defines
47597 in `#if !defined __need_getopt ... #endif'. The only place
47598 where __getopt_argv_const is used is in definitions
47599 of getopt_long and getopt_long_only below, which are as well
47600 protected by `#ifndef __need_getopt'.
47601 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
47602 __need_getopt after including <stdio.h> and <unistd.h> These
47603 headers might have defined it.
47605 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
47607 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
47609 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
47611 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
47612 (futimens): New function, which uses futimes if available.
47613 (futimens, utimens): Support timespec==NULL, with same semantics
47614 as utime and utimens.
47615 * lib/utimens.h (futimens): New decl.
47617 2004-11-23 Jim Meyering <jim@meyering.net>
47619 * lib/getopt_.h: Remove trailing blanks.
47621 2004-11-23 Jim Meyering <jim@meyering.net>
47623 * lib/__fpending.c: Add comment.
47625 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
47627 * modules/canonicalize (Depends-on): Add xreadlink.
47628 Problem reported by James Youngman.
47630 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
47632 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
47634 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
47635 optopt): Use them instead of invoking ## directly; otherwise, the
47636 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
47638 2004-11-19 Bruno Haible <bruno@clisp.org>
47640 * lib/strtok_r.c: Move comments from here...
47641 * lib/strtok_r.h: ... to here.
47643 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
47645 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
47646 implementations that mishandle size_t overflow.
47648 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
47650 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
47651 might fail. Problem reported by Yoann Vandoorselaere.
47652 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
47653 implementations that mishandle size_t overflow.
47655 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
47657 * modules/canon-host (Depends-on): Add strdup.
47659 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
47661 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
47663 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
47665 * lib/canon-host.c: Include "strdup.h".
47666 (canon_host): Use getaddrinfo if available, so that IPv6 works.
47667 Use strdup instead of malloc/strcpy to duplicate strings.
47669 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
47670 (human_space_before_unit): New constant.
47671 * lib/human.c (human_readable): Support it.
47673 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
47674 (xgetcwd): Set errno correctly when failing.
47675 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
47676 the failure is actually due to a PATH_MAX problem.
47678 Further getopt changes to make it more likely that glibc will
47679 buy the changes back.
47680 * lib/getopt.c (POSIXLY_CORRECT): New constant.
47681 (getopt): Use it, so to preserve glibc semantic
47682 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
47683 when compiling for libc.
47684 * lib/getopt_.h (__getopt_argv_const): Bring it back.
47685 (getopt_long, getopt_long_only): Use it.
47687 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
47688 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
47689 (getopt): Argv is now char * const *, as per standard.
47690 (_getopt_internal_r, _getopt_internal): Argv is now char **,
47691 not char *__getopt_argv_const *.
47692 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
47693 _getopt_long_only_r): Likewise.
47694 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
47695 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
47696 _getopt_long_r, _getopt_long_only_r): Likewise.
47697 * lib/getopt_.h (__getopt_argv_const): Remove.
47698 (getopt): Argv is now char * const *, as per standard.
47700 * lib/getdate.y (tORDINAL): New token.
47701 (day, relunit): Allow it for relative times.
47702 (relative_time_table): Use tORDINAL for ordinals.
47704 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
47706 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
47707 Document that "second" isn't allowed as an ordinal number.
47709 2004-11-16 Jim Meyering <jim@meyering.net>
47711 * modules/closeout (Depends-on): Add fpending.
47713 2004-11-15 Jim Meyering <jim@meyering.net>
47715 * lib/closeout.c: Include "__fpending.h" once again.
47716 Include <stdbool.h>.
47717 (close_stdout): Don't fail just because stdout was closed initially,
47718 since some programs don't write to stdout in the normal course of
47719 operation (other than --version and --help), and we don't want this
47720 function to make e.g. `touch file >&-' fail.
47721 But do fail if it was closed and someone has tried to write to it.
47722 E.g., `printf foo >&-' must fail.
47724 2004-11-13 Jim Meyering <jim@meyering.net>
47726 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
47728 2004-11-12 Simon Josefsson <jas@extundo.com>
47730 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
47731 small doc fix is still pending.
47733 2004-11-11 Simon Josefsson <jas@extundo.com>
47735 * modules/strtok_r: New file.
47737 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47740 2004-11-11 Simon Josefsson <jas@extundo.com>
47742 * m4/strtok_r.m4: New file.
47744 * m4/getopt.m4: Replace opterr.
47746 2004-11-11 Simon Josefsson <jas@extundo.com>
47748 * lib/strtok_r.h, strtok_r.c: New file.
47750 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
47752 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
47753 of replacing opterr, getopt, etc. This should handle the
47754 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
47756 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
47758 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
47759 we can stop lying to compilers about the constness of argv when we
47760 are compiled outside glibc.
47761 (getopt, getopt_long, getopt_long_only): Use it.
47762 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
47763 _getopt_internal, getopt): Likewise.
47764 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
47765 _getopt_long_only_r): Likewise.
47766 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
47767 _getopt_long_r, _getopt_long_only_r): Likewise.
47769 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
47770 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
47771 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
47772 the other external symbols.
47773 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
47774 declaration, since the above renaming now works around collisions.
47776 2004-11-11 Jim Meyering <jim@meyering.net>
47778 * lib/linebreak.c: Remove trailing blanks.
47779 * lib/alloca_.h: Likewise.
47780 * lib/acosl.c: Likewise.
47781 * lib/euidaccess.c: Likewise.
47782 * lib/allocsa.h: Likewise.
47784 2004-11-10 Simon Josefsson <jas@extundo.com>
47786 * m4/getaddrinfo.m4: New file.
47788 2004-11-10 Simon Josefsson <jas@extundo.com>
47790 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
47792 2004-11-10 Simon Josefsson <jas@extundo.com>
47794 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47797 * modules/getaddrinfo: New file.
47799 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
47801 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
47803 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
47805 * lib/mktime.c (SHR): New macro, which is a portable
47806 substitute for >> that should work even on Crays.
47807 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
47808 Problem reported by Mark D. Baushke in
47809 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
47810 * lib/getdate.y (SHR): Likewise.
47812 * lib/strftime.c (SHR): Likewise.
47814 * lib/quotearg.c (struct quoting_options): Use unsigned int for
47815 quote_these_too, so that right shifts are well defined. All uses
47818 2004-11-10 Jim Meyering <jim@meyering.net>
47820 Ensure that no close failure goes unreported.
47821 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
47822 return early when it seems there's nothing to flush.
47823 Don't include __fpending.h.
47825 2004-11-10 Jim Meyering <jim@meyering.net>
47827 * modules/closeout (Depends-on): Remove fpending.
47829 2004-11-10 Jim Meyering <jim@meyering.net>
47831 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
47833 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
47835 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
47837 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
47838 and AC_REQUIRE when possible, to avoid duplicate checks.
47839 Check for <wchar.h>.
47841 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
47843 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
47845 2004-11-09 Bruno Haible <bruno@clisp.org>
47847 * m4/sockpfaf.m4: New file.
47849 2004-11-05 Bruno Haible <bruno@clisp.org>
47851 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
47852 Reported by Mark D. Baushke <mdb@cvshome.org>.
47854 2004-11-04 Bruno Haible <bruno@clisp.org>
47856 2004-09-11 Bruno Haible <bruno@clisp.org>
47857 * allocsa.valgrind: New file.
47858 2004-02-06 Bruno Haible <bruno@clisp.org>
47859 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
47860 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
47861 Reported by Christopher Seip <chris.seip@hp.com>.
47863 2004-11-04 Bruno Haible <bruno@clisp.org>
47865 * modules/allocsa (Files): Add lib/allocsa.valgrind.
47866 (Makefile.am): Distribute it.
47868 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
47870 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
47871 with errno == ERANGE if the buffer is too small.
47872 Problem reported by Mark D. Baushke.
47874 2004-11-03 Albert Chin <china@thewrittenword.com>
47875 Paul Eggert <eggert@cs.ucla.edu>
47877 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
47878 equivalent, substitute $ac_type for equivalent type rather than
47879 blindly using uint32_t *always* which won't work if uint32_t is not
47880 available. Define _UINT32_T to work around typedef of uint32_t if
47881 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
47884 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
47886 * m4/jm-macros.m4: Sync from coreutils.
47887 (gl_MACROS): Check for mbrlen, for pathchk.
47888 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
47890 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
47892 * lib/xreadlink.c (MAXSIZE): New macro.
47893 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
47894 size does not exceed MAXSIZE. Avoid cast.
47895 As suggested by Mark D. Baushke in
47896 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
47897 if readlink fails with buffer size just under MAXSIZE, try again
47900 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
47902 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
47904 2004-11-02 Derek R. Price <derek@ximbiot.com>
47905 and Paul Eggert <eggert@cs.ucla.edu>
47907 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
47908 (get_date): Overparenthesize to avoid GCC warning.
47910 2004-11-02 Bruno Haible <bruno@clisp.org>
47912 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
47915 2004-11-02 Bruno Haible <bruno@clisp.org>
47917 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
47918 function returns void.
47920 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
47922 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
47923 fflush_unlocked, flockfile, funlockfile, funlockfile,
47924 fputs_unlocked, putc_unlocked.
47926 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
47928 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
47929 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
47932 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
47934 * modules/getdate (Files): Add doc/getdate.texi.
47935 (Depends-on): Add setenv, xalloc.
47937 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
47939 * lib/getdate.y: Add support for TZ="foo" within a date string.
47940 Fix some bugs near time_t boundaries. Reject dates with
47941 out-of-range components, e.g., "Sept 31".
47942 Include <stdlib.h>, "setenv.h", "xalloc.h".
47943 (ISDIGIT_LOCALE): Remove; unused.
47944 Note that the TZ and time functions used here are not reentrant.
47945 (mktime_ok, get_tz): New functions.
47946 (TZBUFSIZE): New constant.
47947 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
47948 This requires that we sometimes generate our own TZ="XXX..." setting.
47950 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
47952 * doc/getdate.texi: New file, from coreutils with modifications for
47953 the new TZ parsing.
47955 2004-10-27 Derek R. Price <derek@ximbiot.com>
47957 * lib/mktime.c (not_equal_tm): Remove redundant check.
47959 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
47961 * modules/regex (lib_SOURCES): Add regex.c.
47962 Reported by James Youngman in
47963 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
47965 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
47967 * lib/getdate.y: Use Bison 1.875 features, and some minor
47968 code cleanups. This change does not affect semantics.
47969 Don't include <stdlib.h>; no longer needed.
47970 Don't include unlocked-io.h; only the "#if TEST" code uses
47971 stdio, and performance isn't crucial there.
47972 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
47973 Bison 1.875 features as described below.
47974 All uses of "PC." replaced by "pc->".
47975 (YYSTYPE): Add a forward declaration.
47976 (yylex, yyerror): Use full prototypes in forward decls.
47977 Use "%pure-parser" rather than obsolescent "%pure_parser".
47978 Use %parse-param and %lex-param instead of obsolescent
47979 YYPARSE_PARAM and YYLEX_PARAM.
47980 (meridian_table, month_and_day_table, time_units_table,
47981 relative_time_table, time_zone_table, military_table,
47982 lookup_zone, lookup_word, get_date):
47983 Use NULL instead of 0 where appropriate.
47984 (to_hour): Avoid abort (), to avoid a dependency on
47986 (yyerror, yylex): Now accepts parser_control * arg.
47987 (main) [TEST]: Use '\0' rather than 0 for char.
47989 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
47991 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
47993 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
47995 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
47996 It's now the caller's responsibility to handle the case where
47997 !HAVE_GETPAGESIZE && !defined getpagesize.
47999 * lib/mktime.c (leapyear): Arg is long int, not int.
48001 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
48003 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
48005 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
48007 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
48008 missing. Problem reported by James Youngman.
48010 2004-10-16 Simon Josefsson <jas@extundo.com>
48012 * gnulib-tool: Fix comments. Fix parse problem.
48013 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
48015 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
48017 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
48018 implementation of getopt_long. Problem reported by Alexander Taler in:
48019 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
48021 2004-10-15 Bruno Haible <bruno@clisp.org>
48023 * gnulib-tool: Untabify. Initialize supplied_libname.
48024 (func_usage): More homogenous output.
48025 (func_modules_transitive_closure, func_modules_to_filelist,
48026 func_emit_lib_Makefile_am): New functions.
48027 (func_import): New function, extracted from big case statement. Use
48028 func_get_license, func_modules_transitive_closure,
48029 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
48030 opt_lgpl. Don't use test -a, as it's not portable.
48031 (func_create_testdir): Use func_modules_transitive_closure,
48032 func_modules_to_filelist, func_emit_lib_Makefile_am.
48034 2004-10-15 Bruno Haible <bruno@clisp.org>
48036 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
48038 2004-10-15 Bruno Haible <bruno@clisp.org>
48040 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
48041 the portions belonging to each module.
48042 Suggested by Derek Robert Price <derek@ximbiot.com>.
48044 2004-10-12 Simon Josefsson <jas@extundo.com>
48046 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
48047 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
48050 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
48052 * modules/vsnprintf: New file.
48054 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
48056 * m4/vsnprintf.m4: New file.
48058 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
48060 * lib/vsnprintf.h: New file.
48061 * lib/vsnprintf.c: New file.
48063 2004-10-11 Bruno Haible <bruno@clisp.org>
48065 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
48068 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
48070 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
48072 2004-10-07 Bruno Haible <bruno@clisp.org>
48074 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
48075 fits into the provided buffer.
48077 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
48079 * lib/diacrit.c, diacrit.h: Add GPL notice.
48081 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
48083 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
48084 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
48085 This avoids a potential constant-folding bug.
48087 2004-10-05 Bruno Haible <bruno@clisp.org>
48089 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
48090 for the declaration of strsep.
48092 2004-10-05 Bruno Haible <bruno@clisp.org>
48094 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
48096 2004-10-04 Simon Josefsson <jas@extundo.com>
48098 * modules/memmem: New file.
48099 * tests/test-memmem.c: New file.
48100 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
48102 2004-10-04 Simon Josefsson <jas@extundo.com>
48104 * m4/memmem.m4: New file.
48106 2004-10-04 Simon Josefsson <jas@extundo.com>
48108 * lib/memmem.h: New file.
48109 * lib/memmem.c: New file, taken from glibc.
48111 2004-10-04 Simon Josefsson <jas@extundo.com>
48113 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
48114 '#ifdef USE_UNLOCKED_IO'.
48116 2004-10-04 Simon Josefsson <jas@extundo.com>
48118 * config/srclist.txt: Add memmem from glibc.
48120 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
48122 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
48124 * modules/argmatch, modules/argp, modules/closeout, modules/error,
48125 modules/exclude, modules/getdate, modules/getline,
48126 modules/getndelim2, modules/getpass, modules/getpass-gnu,
48127 modules/getusershell, modules/linebuffer, modules/md5,
48128 modules/mountlist, modules/posixtm, modules/readtokens,
48129 modules/readutmp, modules/regex, modules/sha1,
48130 modules/version-etc, modules/yesno:
48131 Remove dependency on unlocked-io.
48133 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
48135 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
48137 * m4/unlocked-io.m4: Add copyright notice.
48138 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
48140 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
48142 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
48143 * lib/xmalloc.c (xmemdup): Likewise.
48144 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
48145 XFREE): Remove these long-obsolescent macros.
48146 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
48147 * lib/xstrdup.c: Remove.
48149 * lib/regex.c (re_comp): Cast gettext return value to char *,
48150 Problem reported by Martin Neitzel via Mark D. Baushke.
48152 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
48154 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
48155 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
48156 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
48157 regex.c, sha1.c, version-etc.c, yesno.c:
48158 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
48159 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
48160 the includer's responsibility.
48162 Sync from coreutils.
48164 * lib/modechange.c (mode_compile): Don't decrement a pointer that
48165 points to the start of a string, as the C Standard says the
48166 resulting behavior is undefined.
48168 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
48169 simple -> simple_backups, numbered_existing ->
48170 numbered_existing_backups, numbered -> numbered_backups
48171 to avoid shadowing problems. All uses changed.
48172 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
48173 * lib/backupfile.c (check_extension, numbered_backup):
48174 Rename locals to avoid shadowing 'basename'.
48175 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
48178 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
48179 * lib/.cvsignore: Add getopt.h.
48181 2004-10-04 Bruno Haible <bruno@clisp.org>
48183 * modules/README: New file.
48184 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
48187 2004-10-02 Jim Meyering <jim@meyering.net>
48189 * lib/dirfd.h, getpagesize.h: Add copyright notice.
48191 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
48193 * modules/strsep: New file.
48195 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
48197 * m4/strsep.m4: New file.
48199 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
48201 * lib/strsep.h: New file.
48202 * lib/strsep.c: New file.
48204 2004-10-01 Simon Josefsson <jas@extundo.com>
48206 * lib/snprintf.c (snprintf): Handle size==0.
48208 2004-10-01 Simon Josefsson <jas@extundo.com>
48209 Bruno Haible <bruno@clisp.org>
48211 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
48212 (snprintf): Declare 'args'.
48214 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
48216 * lib/snprintf.c: Remove comments as to why each header is needed.
48218 2004-10-01 Bruno Haible <bruno@clisp.org>
48220 * MODULES.html.sh: Add strsep.
48222 2004-09-30 Simon Josefsson <jas@extundo.com>
48224 * modules/snprintf: New file.
48226 2004-09-30 Simon Josefsson <jas@extundo.com>
48228 * m4/snprintf.m4: New file.
48230 2004-09-30 Simon Josefsson <jas@extundo.com>
48232 * lib/snprintf.h, lib/snprintf.c: New files.
48234 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
48236 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
48237 (hol_entry_help): Never translate an empty string.
48238 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
48239 * lib/argp.h (OPTION_NO_TRANS): New option.
48241 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
48243 * modules/argp (Maintainer): Replace Simon Josefsson
48244 by Sergey Poznyakoff.
48246 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
48248 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
48249 changes merged back into glibc.
48251 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
48253 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
48255 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
48257 * lib/xvasprintf.c: Include xalloc.h.
48258 (xvasprintf): Use xalloc_die, not xmalloc_die.
48260 2004-09-29 Bruno Haible <bruno@clisp.org>
48262 * modules/alloca-opt: New file, derived from modules/alloca.
48263 * modules/allocsa: Depend on alloca-opt instead of alloca.
48264 * modules/setenv: Likewise.
48265 * modules/vasnprintf: Likewise.
48266 * MODULES.html.sh: Add alloca-opt.
48268 2004-09-28 Simon Josefsson <jas@extundo.com>
48270 * gnulib-tool: New parameter --lgpl, to asseert that modules are
48271 LGPL, and to replace license template from GPL to LGPL.
48273 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
48275 * modules/dummy: Change license to LGPL.
48277 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
48279 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
48281 2004-09-24 Simon Josefsson <jas@extundo.com>
48283 * modules/minmax (License): Change from GPL to LGPL.
48285 2004-09-23 Simon Josefsson <jas@extundo.com>
48287 * gnulib-tool (--import): Typo.
48289 2004-09-23 Simon Josefsson <jas@extundo.com>
48291 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
48293 2004-09-22 Bruno Haible <bruno@clisp.org>
48295 * modules/*: Add 'License' field.
48296 * gnulib-tool: Accept --extract-license option.
48297 (func_get_license): New function.
48299 2004-09-21 Bruno Haible <bruno@clisp.org>
48301 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
48302 Reported by Simon Josefsson.
48304 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
48306 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
48307 gl_AC_TYPE_LONG_LONG.
48309 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
48311 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
48313 2004-09-18 Simon Josefsson <jas@extundo.com>
48314 and Paul Eggert <eggert@cs.ucla.edu>
48316 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
48317 calls with autoreconf. Define GL_LIB.
48319 2004-09-14 Karl Berry <karl@gnu.org>
48321 * config/srclist.txt: unsync setenv.c, sigh.
48323 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
48325 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
48326 Problem reported by Bruno Haible in:
48327 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
48329 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
48331 * config/srclist.txt: Comment out argp-pvh.c.
48333 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
48335 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
48336 in case some system header has #define'd it. Problem reported by
48337 Soeren D. Schulze in
48338 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
48340 2004-09-09 Karl Berry <karl@gnu.org>
48342 * regex.[ch]: delete from the root. These were supposed to be
48343 synced with emacs cvs, but this has not happened for about
48344 a year, and anyway nothing else uses emacs regex.[ch].
48345 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
48346 lib/regex[.ch] is untouched.
48348 2004-09-09 Bruno Haible <bruno@clisp.org>
48350 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
48352 2004-09-09 Bruno Haible <bruno@clisp.org>
48354 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
48356 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
48358 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
48360 * modules/xvasprintf: New file.
48361 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
48363 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
48365 * lib/xvasprintf.h: New file.
48366 * lib/xvasprintf.c: New file.
48367 * lib/xasprintf.c: New file.
48369 2004-09-08 Bruno Haible <bruno@clisp.org>
48371 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
48373 2004-09-08 Bruno Haible <bruno@clisp.org>
48375 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
48376 length is > INT_MAX.
48377 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
48380 2004-09-08 Bruno Haible <bruno@clisp.org>
48382 * lib/stdint_.h: New file, taken from GNU clisp.
48384 2004-09-08 Bruno Haible <bruno@clisp.org>
48385 Oskar Liljeblad <oskar@osk.mine.nu>
48387 * modules/stdint: New file.
48388 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
48390 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
48392 Import from coreutils.
48393 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
48394 strings on unbounded length. alloca's performance benefits aren't
48395 that important here.
48396 (V_STRDUP): Remove.
48397 (parse_with_separator): New function, with most of the internals
48398 of the old parse_user_spec. Allow user to omit both user and group,
48399 for compatibility with FreeBSD.
48400 Clone only the user name, not the entire spec.
48401 Do not set *uid, *gid unless entirely successful.
48402 Avoid memory leak in some failing cases.
48403 Fix regression for USER.GROUP reported by Dmitry V. Levin in
48404 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
48405 (parse_user_spec): Rewrite to use parse_with_separator.
48407 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
48409 * modules/userspec: Don't depend on alloca.
48411 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
48413 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
48415 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
48417 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
48418 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
48419 utimecmp, utimens, xnanosleep. Rename sha to sha1.
48421 2004-08-16 Simon Josefsson <jas@extundo.com>
48423 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
48424 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
48425 Add --dry-run for --import.
48426 Let user provided command line parameters override configure.ac
48429 2004-08-12 Simon Josefsson <jas@extundo.com>
48431 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
48432 as discussed with Paul Eggert in threads rooted at
48433 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
48435 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
48436 Before, the test was empty, and relied on ELIDE_CODE in source
48438 (gl_PREREQ_GETOPT): New macro.
48439 (gl_GETOPT): Use them.
48441 2004-08-12 Simon Josefsson <jas@extundo.com>
48443 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
48444 * lib/getopt_.h: Renamed from getopt.h.
48446 2004-08-12 Simon Josefsson <jas@extundo.com>
48448 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
48449 Change default library name from libfoo to libgnu.
48450 Now, if you have a configure.ac that says:
48453 gl_MODULES(error getopt etcetera)
48455 you can import all you need by running:
48456 ../gnulib/gnulib-tool --import
48458 * modules/getopt (Files): Rename getopt.h to getopt_.h.
48459 (Makefile.am): Rewrite, use logic from argz.
48460 (Include): Use <getopt.h> instead of "getopt.h".
48462 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
48464 * modules/argp (Files): Add m4/unlocked-io.m4.
48465 (Depends-on): Add extensions.
48467 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
48469 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
48470 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
48471 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
48472 Check for program_invocation_name, program_invocation_short_name,
48473 flockfile, funlockfile, features.h, _getopt_long_only_r.
48475 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
48477 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
48478 its complicated substitute.
48479 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
48480 and program_invocation_name.
48481 (__argp_basename) [!_LIBC]: Remove; the only use was
48482 replaced by its body.
48483 (__argp_short_program_name): Change condition from
48484 !defined __argp_short_program_name to
48485 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
48486 to match argp-namefrob.h.
48487 (__argp_failure): Don't assume strerror_r returns char *.
48488 * lib/argp-parse.c (N_): Define unconditionally.
48489 (argp_default_options): Fill out initializers with 0 to avoid
48492 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
48494 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
48497 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
48499 Merge from coreutils.
48501 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
48503 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
48504 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
48506 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
48508 Merge from coreutils.
48510 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
48511 wmemchr or wmemcpy. Problem reported by Robert Dahlem
48512 for Reliant Unix 5.43.
48514 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
48515 (union fooround): Use uintmax_t, not long int.
48516 The rest is a merge from libc:
48517 [defined _LIBC]: Include <shlib-compat.h>.
48518 (_obstack) [defined _LIBC]: Remove after 2.3.4.
48520 * lib/settime.c (settime): Recode to avoid warning with
48523 * lib/strverscmp.c: Convert to UTF-8.
48525 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
48527 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
48530 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
48532 * modules/xalloc-die: New file.
48533 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
48535 * modules/md5 (Files): Add m4/uint32_t.m4.
48536 * modules/sha1: Renamed from modules/sha.
48538 Rename lib/sha.h to lib/sha1.h.
48539 Rename lib/sha.c to lib/sha1.c.
48540 Rename m4/sha.m4 to m4/sha1.m4.
48541 (lib_SOURCES): Likewise.
48542 (configure.ac): Rename gl_SHA to gl_SHA1.
48543 (Include): sha.h -> sha1.h.
48545 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
48547 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
48548 * m4/sha1.m4: Renamed from sha.m4.
48549 (gl_SHA1): Renamed from gl_SHA. All uses changed.
48551 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
48553 * lib/obstack.h (obstack_empty_p):
48554 Don't assume that chunk->contents is suitably aligned.
48555 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
48556 Likewise. Problem reported by Benno in
48557 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
48559 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
48560 readable. This could be improved further but it'd take some work.
48562 2004-08-08 Simon Josefsson <jas@extundo.com>
48564 * modules/xgethostname (Depends-on): Remove exit and error (not
48567 * modules/getpass-gnu: Add getpass.h.
48568 (Depends-on): Add stdbool.
48569 * modules/getpass: Add getpass.h.
48571 2004-08-08 Simon Josefsson <jas@extundo.com>
48573 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
48574 Check getpass declaration.
48576 2004-08-08 Simon Josefsson <jas@extundo.com>
48578 * lib/xgethostname.c: Don't include error.h (not used).
48580 * lib/getpass.h: Add.
48581 * lib/getpass.c: Include getpass.h first.
48583 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
48585 * lib/xalloc-die.c: New file.
48586 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
48588 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
48589 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
48591 (_, N_, xalloc_die): Move to xalloc-die.c.
48592 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
48593 so that we needn't mess with xalloc_msg_memory_exhausted.
48595 * lib/sha1.h: Renamed from sha.h.
48596 (SHA1_H): Renamed from _SHA_H.
48597 (sha1_ctx): Renamed from sha_ctx.
48598 (sha1_init_ctx): Renamed from sha_init_ctx.
48599 (sha1_process_block): Renamed from sha_process_block.
48600 (sha1_process_bytes): Renamed from sha_process_bytes.
48601 (sha1_finish_ctx): Renamed from sha_finish_ctx.
48602 (sha1_read_ctx): Renamed from sha_read_ctx.
48603 (sha1_stream): Renamed from sha_stream.
48604 (sha1_buffer): Renamed from sha_buffer.
48605 * lib/sha1.c: Likewise; renamed from sha.c.
48606 Do not include <sys/types.h>.
48607 Include <stddef.h> rather than <stdlib.h>.
48609 2004-08-08 Bruno Haible <bruno@clisp.org>
48611 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
48612 FILESYSTEM_PREFIX_LEN.
48613 * lib/progreloc.c: Likewise.
48614 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
48616 2004-08-06 Simon Josefsson <jas@extundo.com>
48618 * modules/progname (Depends-on): Don't depend on stdbool.
48620 2004-08-06 Simon Josefsson <jas@extundo.com>
48622 * modules/getsubopt: New file.
48623 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48626 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
48628 More merge from coreutils.
48630 * m4/utimens.m4, m4/utimecmp.m4: New files.
48631 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
48632 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
48633 prereq.m4, sha.m4: Import changes from coreutils.
48635 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
48637 More merge from coreutils.
48638 * modules/raise, modules/readtokens0, modules/utimens:
48639 * modules/utimecmp, module/xnanosleep: New files.
48640 * modules/strftime: Add lib/strftime.h.
48641 Change include from <time.h> to "strftime.h".
48642 * modules/yesno: Add lib/yesno.h.
48643 * modules/backupfile: Remove lib/addext.c.
48644 * modules/euidaccess: Add stat-macros.h.
48645 * modules/canonicalize, modules/euidaccess,
48646 modules/filemode, modules/lchown, modules/makepath,
48647 modules/rmdir, modules/stat: Likewise.
48649 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
48652 * lib/argp-help.c (make_hol, hol_append): Don't assume that
48653 SIZE_MAX is a valid preprocessor constant.
48654 (__argp_basename): Change from "#ifndef _LIBC"
48655 to "#ifndef __argp_short_program_name", so that
48656 we don't compile these functions for tar.
48658 More merges from coreutils.
48659 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
48660 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
48661 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
48662 * lib/addext.c: Remove; no longer needed.
48663 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
48664 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
48665 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
48666 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
48667 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
48668 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
48669 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
48670 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
48671 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
48672 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
48673 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
48674 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
48675 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
48676 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
48677 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
48678 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
48679 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
48680 Import changes from coreutils.
48682 2004-08-05 Simon Josefsson <jas@extundo.com>
48684 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
48686 2004-08-05 Simon Josefsson <jas@extundo.com>
48688 * m4/getsubopt.m4: New file.
48690 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
48692 Merge from coreutils.
48694 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
48695 * m4/getcwd-path-max.m4: New files.
48697 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
48698 FILESYSTEM_PREFIX_LEN ->
48699 FILE_SYSTEM_PREFIX_LEN.
48700 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
48701 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
48702 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
48703 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
48705 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
48706 prerequisite modules now handle the DOS stuff.
48707 Don't check for unistd.h.
48709 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
48711 Merge from coreutils.
48713 * lib/.gdb-history: Remove; this doesn't belong here.
48715 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
48716 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
48717 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
48718 * lib/getcwd.c: New files.
48720 * lib/dirname.h: Include <stdbool.h>.
48721 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
48722 for consistency with POSIX terminology. All uses changed.
48723 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
48724 (strip_trailing_slashes): Use bool for booleans.
48725 * lib/stripslash.c (strip_trailing_slashes): Likewise.
48727 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
48728 sometimes returns a positive errno value even when it succeeds.
48729 (print_errno_message) [!LIBC]: Fall back on strerror if
48730 __strerror_r fails.
48732 * lib/path-concat.c (mempcpy): Don't define if a system header defines
48733 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
48734 (longest_relative_suffix): New function.
48735 (path_concat): Use it. Assume first argument is not NULL.
48736 Port to DOS. Omit redundant separators.
48737 Report an error instead of returning NULL.
48738 Use mempcpy instead of memcpy.
48739 (xpath_concat): Remove: not declared or used.
48741 * lib/same.h: Include <stdbool.h>
48742 (same_name): Return bool, not int.
48743 * lib/same.c (same_name): Likewise.
48744 (errno): Don't declare; we assume C89 or better now.
48746 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
48747 if not already defined.
48749 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
48750 * lib/dup-safer.c (errno): Likewise.
48752 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
48754 Merge from coreutils.
48755 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
48756 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
48757 * modules/path-concat: Don't depend on strdup.
48759 2004-08-03 Simon Josefsson <jas@extundo.com>
48761 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
48762 * lib/progname.h: Don't include stdbool.h.
48764 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
48766 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
48767 * MODULES.html.sh (func_all_modules): Remove fatal.
48769 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
48771 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
48773 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
48775 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
48778 2004-08-02 Simon Josefsson <jas@extundo.com>
48780 * lib/getsubopt.h: New file, with comments from Bruno Haible.
48781 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
48782 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
48784 2004-08-01 Simon Josefsson <jas@extundo.com>
48786 * lib/xgetdomainname.c: Include stdlib.h, for free().
48788 2004-07-19 Bruno Haible <bruno@clisp.org>
48790 * MODULES.html.sh (func_all_modules): Add dummy.
48792 2004-07-16 Simon Josefsson <jas@extundo.com>
48794 * modules/dummy: New file.
48796 2004-07-16 Simon Josefsson <jas@extundo.com>
48798 * lib/dummy.c: New file.
48800 2004-07-16 Bruno Haible <bruno@clisp.org>
48802 * lib/backupfile.h: Add extern "C" for C++.
48803 * lib/closeout.h: Likewise.
48804 * lib/copy-file.h: Likewise.
48805 * lib/findprog.h: Likewise.
48806 * lib/full-write.h: Likewise.
48807 * lib/pathname.h: Likewise.
48808 * lib/progname.h: Likewise.
48809 * lib/stpcpy.h: Likewise.
48810 * lib/stpncpy.h: Likewise.
48811 * lib/strcase.h: Likewise.
48812 * lib/strstr.h: Likewise.
48813 * lib/xalloc.h: Likewise.
48815 * lib/mbswidth.h: Add extern "C" for C++.
48816 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
48818 2004-07-13 Robert Millan <robertmh@gnu.org>
48820 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
48822 2004-07-09 Simon Josefsson <jas@extundo.com>
48824 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
48825 failed without this.)
48827 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
48829 * modules/chown (Files): Add lib/fchown-stub.c, since
48830 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
48832 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
48834 * lib/fchown-stub.c: New file.
48836 2004-06-24 Jim Meyering <jim@meyering.net>
48838 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
48840 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
48842 * modules/argz: Omit "#include".
48844 * MODULES.html.sh (func_all_modules): Add calloc, to match
48845 2004-06-01 addition of calloc module.
48847 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
48849 * m4/argz.m4: New file, which is autoupdated from libtool.
48851 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
48853 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
48856 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
48858 * config/srclist-update: Don't insist on "USA." before the
48859 close-comment, as libtool omits the period and puts the */ on a
48861 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
48862 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
48864 2004-06-22 Gary V. Vaughan <gary@gnu.org>
48866 * modules/argz: New file.
48867 * MODULES.html.sh (func_all_modules): Add argz.
48869 2004-06-12 Jim Meyering <jim@meyering.net>
48870 and Paul Eggert <eggert@cs.ucla.edu>
48872 * modules/hash (Files): Add lib/xalloc.h.
48873 * modules/pipe (Depends-on): Add wait-process.
48874 * modules/stat (Depends-on): Add xalloc.
48875 * modules/userspec (Files): Add lib/userspec.h.
48878 Upgrade from gettext-0.13.
48879 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
48880 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
48881 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
48883 2004-06-10 Jim Meyering <jim@meyering.net>
48885 * lib/calloc.c: New file.
48887 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
48889 * lib/getdate.y (yylex): Allow space between sign and number.
48890 Problem reported by Dan Jacobson.
48892 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
48894 Merge from coreutils CVS.
48896 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
48897 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
48898 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
48899 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
48900 xstrtol.m4: Fix copyright date and/or serial number.
48902 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
48903 See if we need an fchown replacement.
48904 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
48905 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
48906 and use the replacement function if we detect either defect.
48908 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
48911 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
48912 and Jim Meyering <jim@meyering.net>
48914 Merge from coreutils CVS.
48916 * lib/stat-macros.h: New file, with contents from file-type.h
48917 and coreutils' system.h.
48918 * lib/file-type.c: Include "stat-macros.h".
48919 * lib/file-type.h (file_type): Move all macro definitions to new file,
48922 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
48923 Wrap old code with this conditional.
48924 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
48925 function that does not dereference symlinks.
48926 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
48928 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
48929 dependency problems.
48930 (xreadlink): Accept new arg SIZE, for efficiency.
48931 All decls and uses changed.
48932 * lib/xreadlink.h: Include <stddef.h>, for size_t.
48934 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
48935 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
48937 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
48940 2004-06-01 Jim Meyering <jim@meyering.net>
48942 * m4/calloc.m4: New file.
48944 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
48946 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
48947 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
48948 Also, fix a typo in a diagnostic.
48950 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
48952 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
48953 or AC_FUNC_REALLOC.
48955 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
48957 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
48958 macros to be defined.
48959 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
48960 the allocator returns NULL because the requested size is zero.
48962 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
48964 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
48965 var. Add comment explaining why libc still defines it. This
48966 merges the following patch from glibc:
48967 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
48969 2004-05-20 Andreas Schwab <schwab@suse.de>
48971 * m4/free.m4: Replace free if it not known to work, not the other
48974 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
48976 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
48977 present in glibc since revision 1.1 of this file.
48978 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
48979 obstack_alignment_mask, obstack_alloc, obstack_base,
48980 obstack_blank, obstack_blank_fast, obstack_chunk_size,
48981 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
48982 obstack_grow0, obstack_init, obstack_int_grow,
48983 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
48984 obstack_next_free, obstack_object_size, obstack_ptr_grow,
48985 obstack_ptr_grow_fast, obstack_room): Remove declarations of
48986 nonexistent functions.
48988 2004-05-18 Karl Berry <karl@gnu.org>
48990 * config/srclist.txt: break link for vasnprintf.c.
48992 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
48994 Port obstack to the AS/400, where pointers are 16 bytes wide and
48995 you cannot cast an integer to a valid pointer. This patch is
48996 currently waiting to be integrated into glibc; see
48997 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
48999 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
49000 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
49001 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
49002 (struct obstack): temp member is now a union of a pointer and
49003 an integer, instead of an integer. All integer uses changed.
49004 This does not affect the physical layout of struct obstack,
49005 except on hosts (like the AS/400) where the size or alignment of
49006 void * is greater than that of ptrdiff_t.
49007 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
49008 __STDC__)]: Store temporary in pointer member of union, not
49010 * lib/obstack.c: Include <stddef.h>, for offsetof.
49011 (struct fooalign): Remove; it doesn't need a name.
49012 (union fooround): Change double to long double, and add void *.
49013 (DEFAULT_ALIGNMENT): Use offsetof to compute.
49014 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
49015 not a macro. Hence the values are always int; so remove all
49016 casts-to-int in uses.
49018 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
49020 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
49021 we can get this patch merged into glibc.
49023 2004-05-17 Derek R. Price <derek@ximbiot.com>
49024 Paul Eggert <eggert@cs.ucla.edu>
49026 * m4/argp: Depend on alloca.
49028 2004-05-17 Derek R. Price <derek@ximbiot.com>
49029 Paul Eggert <eggert@cs.ucla.edu>
49031 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
49034 2004-05-17 Bruno Haible <bruno@clisp.org>
49036 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
49037 precision that consists of a '.' followed by an empty digit string.
49038 Patch by Tor Lillqvist <tml@iki.fi>.
49040 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
49042 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
49043 for backward compatibility with older code. We need our own
49044 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
49045 it under some other name, and our alloca.h will define it.
49047 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
49048 Derek Price <derek@ximbiot.com>
49050 * lib/alloca.c: Include <alloca.h>, to get our interface.
49051 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
49052 include <alloca.h> first. Use C89 prototype for alloca; this
49053 requires including <stddef.h> for size_t. Use extern "C" if C++.
49054 Use #elif for simplicity, since we can assume C89 now.
49055 Don't try to source the system alloca.h since it will not be found
49056 and to prevent recursively including its replacement.
49057 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
49058 * lib/regex.c: Likewise.
49060 2004-05-16 Derek Price <derek@ximbiot.com>
49061 Paul Eggert <eggert@cs.ucla.edu>
49063 getline cleanup. This changes the getndelim2 API: both order of
49064 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
49067 * lib/getline.c: Don't include stddef.h or stdio.h, since our
49068 interface does that.
49069 (getline): Always use getdelim, so that we don't have two
49070 copies of this code.
49071 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
49073 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
49074 (GETNDELIM2_MAXIMUM): New macro.
49075 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
49076 instead of the old practice of delim2==0. All callers changed.
49077 Return -1 on overflow, instead of returning junk.
49078 Do not set *linesize unless allocation succeeds.
49079 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
49080 that we include sys/types.h.
49081 * lib/getnline.h: Likewise.
49082 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
49083 (getndelim2): Reorder arguments.
49084 * lib/getnline.c (getnline, getndelim):
49085 Don't discard the NMAX argument.
49086 (getnline): Invoke getndelim, to avoid code duplication.
49087 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
49088 of (size_t) -1 by callers of the getnline family.
49090 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
49092 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
49093 Check for gettimeofday.
49094 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
49095 Check for settimeofday, stime.
49097 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
49099 * lib/nanosleep.c (suspended): Change its type from int to
49100 sig_atomic_t volatile.
49101 (first_call): Make it private to rpl_nanosleep, and have it
49102 be zero initially as that's a bit faster.
49103 (my_usleep): Round up fractional times instead of truncating them,
49104 as this is the usual meaning for 'sleep'.
49106 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
49108 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
49109 (ENOSYS): Define if not defined.
49110 (settime): Fall back on stime if it exists and settimeofday fails.
49111 But don't bother with fallbacks if a method fails with errno == EPERM.
49113 2004-05-11 Jim Meyering <jim@meyering.net>
49115 Prior to this change, the save_cwd caller required read access to the
49116 current directory on most systems (ones with the fchdir function).
49118 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
49119 fails, try write-only, and finally, resort to using xgetcwd.
49121 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
49123 * lib/obstack.c, obstack.h: Import changes from libc.
49125 2004-04-28 Bruno Haible <bruno@clisp.org>
49127 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
49128 also implicitly appends .exe to executables.
49129 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
49130 accepts Windows pathnames.
49131 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
49132 Treat Cygwin like Windows, since it now accepts Windows pathnames.
49133 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
49134 Treat Cygwin like Windows, since it now accepts Windows pathnames.
49135 Reported by Derek Robert Price <derek@ximbiot.com>.
49137 2004-04-21 Karl Berry <karl@gnu.org>
49139 * config/srclist.txt (localcharset.c): break sync.
49141 2004-04-20 Paul Eggert <eggert@twinsun.com>
49143 * m4/host-os.m4: Add a copyright notice.
49145 2004-04-20 Jim Meyering <jim@meyering.net>
49147 Change UTILS_ to gl_ in AC_DEFINE'd names.
49148 Change utils_- and jm_-prefixed variables, too.
49149 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
49150 UTILS_FUNC_MKDIR_TRAILING_SLASH.
49151 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
49153 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
49154 Don't emit trailing blanks.
49155 Also rename jm_-prefixed variables to have gl_ prefix.
49157 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
49158 Also rename jm_-prefixed variables to have gl_ prefix.
49160 * m4/jm-macros.m4: Reflect the renamings.
49161 * m4/prereq.m4: Likewise.
49163 2004-04-20 Jim Meyering <jim@meyering.net>
49165 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
49168 2004-04-20 Jim Meyering <jim@meyering.net>
49169 Bruno Haible <bruno@clisp.org>
49171 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
49172 memory when realloc fails.
49174 2004-04-19 Jim Meyering <jim@meyering.net>
49176 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
49177 now that readutmp.c may call `free (0)'.
49179 2004-04-19 Bruno Haible <bruno@clisp.org>
49181 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
49182 * m4/inttypes_h.m4: Likewise.
49183 * m4/stdint_h.m4: Likewise.
49184 * m4/intmax_t.m4: Likewise.
49185 * m4/uintmax_t.m4: Likewise.
49187 2004-04-18 Jim Meyering <jim@meyering.net>
49189 * m4/prereq.m4: Don't forbid jm_ prefix.
49191 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
49192 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
49193 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
49194 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
49195 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
49196 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
49197 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
49198 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
49199 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
49200 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
49201 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
49202 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
49203 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
49204 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
49205 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
49206 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
49207 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
49208 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
49209 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
49211 2004-04-18 Jim Meyering <jim@meyering.net>
49213 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
49214 failure, don't leak memory and do call END_UTMP_ENT.
49216 2004-04-16 Jim Meyering <jim@meyering.net>
49218 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
49219 coreutils' stat program.
49220 (gl_PREREQ): Don't require jm_PREREQ_STAT.
49222 2004-04-11 Paul Eggert <eggert@twinsun.com>
49224 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
49226 (CHAR_BIT): Remove, since we assume C89.
49227 Include <stdint.h> if available, as per current Autoconf CVS advice.
49229 2004-03-31 Jim Meyering <jim@meyering.net>
49231 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
49232 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
49233 * m4/xalloc.m4: Likewise.
49235 2004-03-30 Paul Eggert <eggert@twinsun.com>
49237 Merge from coreutils.
49239 * m4/inttostr.m4: New file.
49240 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
49241 Require AM_STDBOOL_H and gl_TIMESPEC instead.
49242 Require gl_CLOCK_TIME.
49243 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
49245 2004-03-30 Paul Eggert <eggert@twinsun.com>
49247 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
49248 not bool, to be more consistent with Unix conventions.
49249 Suggested by Bruno Haible.
49251 Merge from coreutils.
49253 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
49254 * lib/umaxtostr.c: New files.
49256 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
49257 the usual <time.h> dance.
49258 (get_date): Change signature to support fractional time stamps.
49259 All callers changed.
49260 * lib/getdate.y: Include "getdate.h" first, as we can now
49261 assume C89 and don't need to worry about 'const'.
49262 Similarly, include "unlocked-io.h" near start, not in middle.
49263 Include <limits.h>.
49264 (textint.value): Use long int rather than int.
49265 (textint.digits): Use size_t rather than int.
49266 (BILLION, LOG10_BILLION): New constants.
49267 (parser_control): New member rel_ns. Members day_ordinal,
49268 time_zone, month, day, hour, minutes, rel_year, rel_month,
49269 rel_day, rel_hour, rel_minutes, rel_seconds
49270 are now long int, not int. Member seconds is now struct timespec,
49271 not int. New member timespec_seen. Members dates_seen, days_seen,
49272 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
49274 (%union.intval): Now long int, not int.
49275 New member timespec.
49276 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
49277 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
49278 (spec): Now is a timespec or an item list.
49279 (timespec, items): New nonterminals.
49280 (time, rel, relunit, number, get_date):
49281 Add support for fractional seconds.
49282 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
49283 (gmtime, localtime, mktime): Remove decls; not needed with C89.
49284 (to_hour): First arg is now long int, not int.
49285 (to_year): Returns long int, not int.
49286 Don't treat year -70 like 70.
49287 (tm_diff): Returns long int, not int.
49288 (lookup_word): Use bool instead of int when appropriate.
49289 (yylex): Use size_t for count, not int.
49290 Detect overflow when parsing large integer constants.
49291 Add support for fractions.
49292 (get_date): Make pointers 'const' if possible.
49293 Use more-portable code to detect integer overflow.
49294 (main) [TEST]: Adjust to above changes. Test for localtime failure.
49295 Don't use ctime; it's not reliable if the year has >4 digits.
49297 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
49298 This is for compatibility with BSD.
49300 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
49301 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
49302 From coreutils' system.h.
49304 * lib/userspec.c: Don't include "posixver.h".
49305 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
49306 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
49307 compatible extension. Simplify code by removing a boolean int
49308 that was always nonzero if a string was nonnull.
49310 2004-03-30 Jim Meyering <jim@meyering.net>
49312 Merge from coreutils.
49314 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
49315 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
49316 on some systems one must include <grp.h> before it.
49317 Reported by Christian Krackowizer.
49319 2004-03-30 Jim Meyering <jim@meyering.net>
49321 Merge from coreutils.
49323 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
49325 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
49326 an empty input stream.
49328 * lib/readtokens.c: Include <stdbool.h>.
49329 (readtoken): Use `size_t' rather than int/long.
49330 All callers adjusted.
49331 Use `bool' rather than `int' where appropriate.
49332 Use memset rather than an explicit loop.
49333 Use x2nrealloc rather than xrealloc.
49334 Allow the use of `\0' as a delimiter.
49335 (readtokens): Likewise.
49336 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
49338 2004-03-30 Jim Meyering <jim@meyering.net>
49340 * m4/realloc.m4: Remove file, since now it does no more than
49341 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
49342 the `configure.ac' section of module/realloc.
49343 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
49345 2004-03-30 Bruno Haible <bruno@clisp.org>
49347 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
49350 2004-03-29 Paul Eggert <eggert@twinsun.com>
49352 Merge changes to getloadavg.c from coreutils and Emacs.
49354 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
49355 Define to an expression, not to the empty string.
49356 Include cloexec.h and xalloc.h.
49357 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
49358 Use set_cloexec_flag rather than rolling our own.
49359 * lib/cloexec.c, lib/cloexec.h: New files.
49361 2004-03-29 Paul Eggert <eggert@twinsun.com>
49363 * m4/cloexec.m4: New file.
49365 2004-03-18 Paul Eggert <eggert@twinsun.com>
49367 * lib/getopt.h: Sync with libc CVS.
49369 2004-03-18 Paul Eggert <eggert@twinsun.com>
49370 Bruno Haible <bruno@clisp.org>
49372 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
49375 2004-03-18 Paul Eggert <eggert@twinsun.com>
49376 Bruno Haible <bruno@clisp.org>
49378 * lib/mbswidth.h: Include <wchar.h> only if
49379 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
49381 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
49383 2004-03-09 Paul Eggert <eggert@twinsun.com>
49385 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
49386 Sync with libc CVS.
49387 * lib/getopt_int.h: New file, also synced from libc.
49389 2004-03-09 Paul Eggert <eggert@twinsun.com>
49391 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
49392 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
49393 Bring back getopt.c, getopt.h, getopt1.c.
49395 2004-03-07 Paul Eggert <eggert@twinsun.com>
49397 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
49398 All uses changed. Check for sa_sigaction member; this fixes
49399 a bug first reported by Jason Andrade in
49400 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
49402 2004-03-07 Paul Eggert <eggert@twinsun.com>
49404 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
49405 '#if' expressions. Unlike the code it replaces, it does not
49406 depend on (defined _SC_PAGESIZE). However, it does depend on
49407 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
49408 first reported by Jason Andrade in
49409 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
49411 2004-02-25 Simon Josefsson <jas@extundo.com>
49413 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
49415 2004-02-25 Simon Josefsson <jas@extundo.com>
49417 * lib/strdup.h: New file.
49418 * lib/strdup.c: Include it.
49419 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
49420 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
49422 2004-02-23 Karl Berry <karl@gnu.org>
49424 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
49425 (from fencepost.gnu.org:/gd/gnuorg).
49427 2004-02-23 Karl Berry <karl@gnu.org>
49429 * config/srclistvars.sh (GNUORG) [karl]: redefine.
49430 * config/srclist.txt: add maintain/standards documents.
49432 2004-02-18 Bruno Haible <bruno@clisp.org>
49434 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
49435 Reported by Derek Robert Price <derek@ximbiot.com>.
49437 2004-02-16 Karl Berry <karl@gnu.org>
49439 * config/mkinstalldirs, install-sh: update from automake.
49441 2004-02-06 Karl Berry <karl@gnu.org>
49443 * m4/po.m4: update from gettext 0.14.1.
49445 2004-02-06 Karl Berry <karl@gnu.org>
49447 * lib/config.charset: update from gettext 0.14.1.
49449 2004-02-05 Paul Eggert <eggert@twinsun.com>
49451 Add comments and code, prompted by suggestions from Bruno Haible
49453 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
49454 describing the enum quoting_style values.
49455 * lib/quotearg.c (quotearg_alloc): New function.
49456 (quotearg_buffer_restyled): Treat lone { and } as special.
49457 Treat = as special. Work around bug with older shells
49458 that "see" a '\' that is really the 2nd byte of a multibyte char.
49459 Quote empty string with shell_quoting_style.
49461 2004-02-03 Bruno Haible <bruno@clisp.org>
49463 * m4/pipe.m4: New file, from GNU gettext.
49465 2004-02-03 Bruno Haible <bruno@clisp.org>
49467 * lib/pipe.h: New file, from GNU gettext.
49468 * lib/pipe.c: New file, from GNU gettext.
49470 2004-01-27 Bruno Haible <bruno@clisp.org>
49472 * m4/execute.m4: New file, from GNU gettext.
49474 2004-01-27 Bruno Haible <bruno@clisp.org>
49476 * lib/execute.h: New file, from GNU gettext.
49477 * lib/execute.c: New file, from GNU gettext.
49478 * lib/w32spawn.h: New file, from GNU gettext.
49480 2004-01-24 Paul Eggert <eggert@twinsun.com>
49482 Merge from diffutils.
49484 * lib/file-type.c (file_type): Add typed memory objects.
49485 * lib/file-type.h (S_TYPEISTMO): New macro.
49487 * lib/c-stack.h (c_stack_action): Remove argv argument.
49488 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
49489 (die): Don't calculate message unless segv_action returns.
49490 (get_stack_location, min_address_from_argv, max_address_from_argv,
49491 volatile stack_base, volatile_stack_size): Remove.
49492 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
49493 that every segmentation violation is a stack overflow. (Ouch!)
49494 See Debian bug 136249 (still outstanding) for more info about why
49495 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
49497 2004-01-24 Paul Eggert <eggert@twinsun.com>
49499 Exit-status fix from coreutils.
49501 Use exit_failure consistently in place of EXIT_FAILURE,
49502 so that program exit statuses are consistent on failure.
49504 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
49505 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
49506 * lib/argmatch.h: Comment fix to match the above.
49507 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
49508 Now a macro referring to exit_failure, instead of a separate
49509 variable. Include "exitfail.h" to get it.
49510 * lib/xstrtol.h: Include "exitfail.h".
49511 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
49513 * lib/long-options.c (parse_long_options): Use prototype
49514 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
49517 2004-01-21 Jim Meyering <jim@meyering.net>
49519 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
49520 so as not to conflict with a different-sized __mktime_internal
49521 function in GNU libc.
49522 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
49523 Problem building statically-linked `ls' reported by Michael Brunnbauer.
49525 2004-01-20 Karl Berry <karl@gnu.org>
49527 * config/config.guess: update from config.
49529 * config/srclistvars.sh: GNUWWWLICENSES for karl.
49531 2004-01-20 Bruno Haible <bruno@clisp.org>
49533 Safer stack allocation.
49534 * lib/setenv.c: Include allocsa.h.
49535 (alloca): Remove fallback definition.
49536 (freea): Remove macro.
49537 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
49540 2004-01-20 Bruno Haible <bruno@clisp.org>
49542 * m4/eealloc.m4: New file, from GNU gettext.
49544 2004-01-20 Bruno Haible <bruno@clisp.org>
49546 * m4/allocsa.m4: New file, from GNU gettext.
49548 2004-01-20 Bruno Haible <bruno@clisp.org>
49550 * lib/xallocsa.h: New file, from GNU gettext.
49551 * lib/xallocsa.c: New file, from GNU gettext.
49553 2004-01-20 Bruno Haible <bruno@clisp.org>
49555 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
49557 2004-01-20 Bruno Haible <bruno@clisp.org>
49559 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
49560 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
49563 2004-01-20 Bruno Haible <bruno@clisp.org>
49565 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
49568 2004-01-20 Bruno Haible <bruno@clisp.org>
49570 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
49572 2004-01-20 Bruno Haible <bruno@clisp.org>
49574 * lib/eealloc.h: New file.
49576 2004-01-20 Bruno Haible <bruno@clisp.org>
49578 * lib/binary-io.h: Avoid warnings on Cygwin.
49580 2004-01-20 Bruno Haible <bruno@clisp.org>
49582 * lib/allocsa.h: New file, from GNU gettext.
49583 * lib/allocsa.c: New file, from GNU gettext.
49585 2004-01-18 Karl Berry <karl@gnu.org>
49587 * doc/gpl.texi, doc/lgpl.texi: new files.
49589 2004-01-18 Karl Berry <karl@gnu.org>
49591 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
49592 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
49594 2004-01-15 Paul Eggert <eggert@twinsun.com>
49596 Merge from coreutils.
49598 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
49599 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
49600 (gl_DEFAULT_POSIX2_VERSION): Move
49601 the documentation from 'configure' into 'config.hin',
49602 so that 'configure --help' isn't burdened by it and
49603 we don't have to worry about its formatting there.
49604 Reword the documentation so that it's more succinct
49605 and can be run together into a single paragraph.
49606 * m4/same.m4 (gl_SAME): Check for pathconf.
49608 2004-01-15 Paul Eggert <eggert@twinsun.com>
49610 Merge from coreutils.
49612 * lib/posixver.c: Include posixver.h.
49614 * lib/same.c: Include <stdbool.h>, <limits.h>.
49615 (_POSIX_NAME_MAX): Define if not defined.
49617 (same_name): If file names are silently truncated, report
49618 that the file names are the same if they are the same after
49619 the silent truncation.
49621 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
49622 conversion function.
49623 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
49624 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
49627 2004-01-15 Jim Meyering <jim@meyering.net>
49629 Merge from coreutils.
49631 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
49632 if no library is required.
49633 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
49634 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
49635 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
49636 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
49637 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
49638 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
49639 value, $ac_cv_search_crypt, if it's "none required".
49640 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
49641 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
49642 not gl_FUNC_GETLOADAVG.
49643 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
49644 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
49646 2004-01-15 Jim Meyering <jim@meyering.net>
49648 Merge from coreutils.
49650 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
49651 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
49652 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
49654 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
49655 optional configure-time default.
49657 * lib/version-etc.c (version_etc_copyright): Update copyright date.
49659 * lib/xreadlink.c (xreadlink): Correct outdated comment.
49661 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
49663 Merge from coreutils.
49665 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
49666 value, $ac_cv_search_nanosleep, if it's "none required".
49668 2004-01-14 Paul Eggert <eggert@twinsun.com>
49670 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
49671 with like-named macro in fnmatch.c.
49672 (EXT): Use an internal constant instead.
49674 Merge fnmatch patches from glibc.
49675 * lib/fnmatch.c (mbsinit): Remove define.
49676 Add libc_hidden_ver (__fnmatch, fnmatch).
49677 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
49678 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
49680 2004-01-14 Karl Berry <karl@gnu.org>
49682 * config/install-sh: update from automake.
49684 2004-01-13 Karl Berry <karl@gnu.org>
49686 * config/install-sh: update from automake.
49688 2004-01-09 Karl Berry <karl@gnu.org>
49690 * config/install-sh: update from automake.
49692 2004-01-05 Karl Berry <karl@gnu.org>
49694 * config/config.{sub,guess}: update from config.
49696 2003-12-31 Karl Berry <karl@gnu.org>
49698 * config/depcomp: update from automake.
49700 2003-12-14 Karl Berry <karl@gnu.org>
49702 * lib/config.charset: update from gettext-runtime.
49704 2003-12-03 Paul Eggert <eggert@twinsun.com>
49706 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
49707 Bug reported by Alfred M. Szmidt.
49709 2003-12-03 Bruno Haible <bruno@clisp.org>
49711 * m4/gettext.m4: Upgrade from gettext-0.13.
49712 * m4/po.m4: Upgrade from gettext-0.13.
49713 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
49714 * m4/intmax.m4: New file, from gettext-0.13.
49715 * m4/printf-posix.m4: New file, from gettext-0.13.
49717 2003-11-29 Karl Berry <karl@gnu.org>
49719 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
49721 2003-11-25 Paul Eggert <eggert@twinsun.com>
49722 Bruno Haible <bruno@clisp.org>
49724 * lib/printf-parse.h: Don't include sys/types.h.
49725 (ARG_NONE): New macro.
49726 (char_directive): Change type of *arg_index fields to size_t.
49727 * lib/printf-parse.c: Don't include sys/types.h.
49728 (SSIZE_MAX): Remove macro.
49729 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
49730 Remove unnecessary overflow check.
49731 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
49734 2003-11-25 Bruno Haible <bruno@clisp.org>
49736 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
49738 2003-11-25 Bruno Haible <bruno@clisp.org>
49740 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
49743 2003-11-24 Paul Eggert <eggert@twinsun.com>
49745 * modules/alloca: Remove dependency on xalloc.
49747 2003-11-24 Paul Eggert <eggert@twinsun.com>
49749 * lib/alloca.c: Remove dependency on xalloc module.
49750 (xalloc_die): Remove.
49751 (memory_full) [!defined emacs]: New macro.
49752 [!defined emacs]: Don't include xalloc.h.
49753 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
49754 address arithmetic overflows. Change datatypes a bit to avoid
49757 2003-11-22 Jim Meyering <jim@meyering.net>
49759 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
49762 2003-11-21 Karl Berry <karl@gnu.org>
49764 * config/config.{sub,guess}: update from config.
49766 2003-11-18 Karl Berry <karl@gnu.org>
49768 * config/config.{sub,guess}: update from config.
49770 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
49772 2003-11-17 Paul Eggert <eggert@twinsun.com>
49774 * README: Mention that S+T cannot overflow if S is the size of
49775 an existing object and T is sufficiently small.
49777 2003-11-17 Jim Meyering <jim@meyering.net>
49779 On systems without utime and without a utimes function capable of
49780 dealing with a NULL struct utimbuf* argument, this utime replacement
49781 could -- in unusual circumstances -- leak a file descriptor.
49782 * lib/utime.c: Include <unistd.h> and <errno.h>.
49783 (utime_null): Be sure to close `fd' and to preserve errno.
49784 Reported by Geoff Collyer via Arnold Robbins.
49786 2003-11-17 Bruno Haible <bruno@clisp.org>
49788 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
49789 (Depends-on): Add xsize.
49791 2003-11-17 Bruno Haible <bruno@clisp.org>
49793 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
49795 2003-11-17 Bruno Haible <bruno@clisp.org>
49797 * lib/vasnprintf.c (alloca): Remove fallback definition.
49798 (freea): Remove definition.
49799 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
49800 Reported by Paul Eggert.
49802 2003-11-16 Paul Eggert <eggert@twinsun.com>
49803 Bruno Haible <bruno@clisp.org>
49805 Protect against address arithmetic overflow.
49806 * lib/printf-args.h: Include stddef.h.
49807 (arguments): Change type of field 'count' to size_t.
49808 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
49809 'unsigned int' where appropriate.
49810 * lib/printf-parse.h: Include sys/types.h.
49811 (char_directive): Change type of *arg_index fields to ssize_t.
49812 (char_directives): Change type of fields 'count', max_*_length to
49814 * lib/printf-parse.c: Include sys/types.h and xsize.h.
49815 (SSIZE_MAX): Define fallback value.
49816 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
49817 instead of 'int' where appropriate. Check a_allocated, d_allocated
49818 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
49819 * lib/vasnprintf.c: Include xsize.h.
49820 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
49821 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
49822 overflow. Avoid wraparound when converting a width or precision from
49825 2003-11-16 Bruno Haible <bruno@clisp.org>
49827 Update from GNU gettext.
49828 * lib/printf-parse.c: Generalize to it can be compiled for wide
49830 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
49831 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
49832 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
49833 SNPRINTF): New macros.
49834 Don't include <alloca.h> if the file is used inside libintl.
49835 (local_wcslen): New function, for Solaris 2.5.1.
49836 (VASNPRINTF): Use it instead of wcslen.
49838 2003-11-16 Bruno Haible <bruno@clisp.org>
49840 * lib/xsize.h (xmax): New function.
49841 (xsum, xsum3, xsum4): Declare as "pure" functions.
49843 2003-11-12 Paul Eggert <eggert@twinsun.com>
49845 * modules/xalloc (Files): Undo latest change, since xalloc.h
49846 no longer needs SIZE_MAX or PTRDIFF_MAX.
49848 2003-11-12 Paul Eggert <eggert@twinsun.com>
49850 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
49853 2003-11-12 Paul Eggert <eggert@twinsun.com>
49855 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
49856 "return", to pacify some unknown compiler. Problem reported
49857 by Joerg Schilling.
49859 2003-11-12 Paul Eggert <eggert@twinsun.com>
49861 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
49862 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
49863 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
49864 heuristic is just as accurate as far as we know, and it removes a
49865 dependency on size_max.m4 and ptrdiff_max.m4.
49867 2003-11-11 Bruno Haible <bruno@clisp.org>
49869 * modules/xsize (Files): Add m4/size_max.m4.
49870 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
49872 2003-11-11 Bruno Haible <bruno@clisp.org>
49874 * m4/size_max.m4: New file.
49875 * m4/ptrdiff_max.m4: New file.
49876 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
49877 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
49878 (gl_XALLOC): Invoke it.
49880 2003-11-11 Bruno Haible <bruno@clisp.org>
49882 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
49883 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
49886 2003-11-10 Paul Eggert <eggert@twinsun.com>
49888 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
49889 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
49890 rejected some allocations of exactly SIZE_MAX - 2 bytes.
49892 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
49893 not (size_t) -1, since it's defined here.
49895 2003-11-09 Karl Berry <karl@gnu.org>
49897 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
49899 2003-11-06 Paul Eggert <eggert@twinsun.com>
49901 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
49902 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
49903 Reject sizes of exactly SIZE_MAX bytes.
49904 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
49905 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
49907 2003-11-05 Bruno Haible <bruno@clisp.org>
49909 * lib/xsize.h: Include limits.h, to avoid a possible collision with
49910 SIZE_MAX defined in <limits.h> on Solaris.
49912 2003-11-04 Jim Meyering <jim@meyering.net>
49914 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
49915 variable names, rather than @VAR@.
49916 * modules/poll: Likewise.
49918 2003-11-04 Bruno Haible <bruno@clisp.org>
49920 * modules/xsize: New file.
49921 * modules/linebreak: Depend on xsize.
49922 * MODULES.html.sh (func_all_modules): Add xsize.
49924 2003-11-04 Bruno Haible <bruno@clisp.org>
49926 * m4/xsize.m4: New file.
49928 2003-11-04 Bruno Haible <bruno@clisp.org>
49930 * lib/xsize.h: New file.
49931 * lib/linebreak.c: Include xsize.h.
49932 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
49933 argument for overflow.
49934 Suggested by Paul Eggert.
49936 2003-11-03 Karl Berry <karl@gnu.org>
49938 * config/config.{guess,sub}: update from config.
49940 2003-11-03 Jim Meyering <jim@meyering.net>
49942 * modules/userspec (lib_SOURCES): Add userspec.h.
49943 (Include): Add "userspec.h".
49944 Improve description.
49946 2003-11-03 Jim Meyering <jim@meyering.net>
49948 * lib/userspec.c: Include "userspec.h".
49949 * lib/userspec.h: New file.
49951 2003-11-03 Bruno Haible <bruno@clisp.org>
49953 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
49955 2003-11-03 Bruno Haible <bruno@clisp.org>
49957 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
49958 available, to avoid (extremely rare) race condition.
49959 Suggested by Paul Eggert.
49961 2003-11-02 Karl Berry <karl@gnu.org>
49963 * config/srclist.txt (vasprintf.c): sync broken, sigh.
49965 2003-10-31 Paul Eggert <eggert@twinsun.com>
49967 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
49968 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
49969 (read_filesystem_list): Set and use me_type_malloced.
49970 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
49971 whatever the type happens to be), for brevity and consistency.
49972 Check for size calculation overflow on Alphas running OSF/1.
49974 2003-10-31 Jim Meyering <jim@meyering.net>
49976 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
49978 * lib/linebuffer.c: Include <string.h> for declaration of memset.
49980 2003-10-30 Paul Eggert <eggert@twinsun.com>
49981 Bruno Haible <bruno@clisp.org>
49983 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
49984 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
49986 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
49988 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
49989 netbsd*-gnu*. Suggested by Robert Millan.
49991 2003-10-29 Paul Eggert <eggert@twinsun.com>
49993 * modules/group-member: Depend on stdbool.
49995 2003-10-29 Paul Eggert <eggert@twinsun.com>
49997 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
49999 2003-10-29 Paul Eggert <eggert@twinsun.com>
50001 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
50002 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
50003 after the 'gnu' in these cases. This fixes some bugs in the
50004 previous change, and is based on suggestions by Robert Millan.
50006 2003-10-29 Paul Eggert <eggert@twinsun.com>
50008 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
50009 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
50011 * lib/quotearg.c (quotearg_n_options): Use it.
50012 * lib/group-member.c: Include <stdbool.h>.
50013 (free_group_info): Arg is now const *; don't free arg.
50014 (get_group_info): Now returns bool and accepts struct group_info *,
50015 rather than returning a malloc'ed struct group_info *.
50016 All uses changed. Check for overflow in internal size calculation.
50018 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
50019 rather than xmalloc/xrealloc.
50020 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
50021 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
50022 conformance bug: the old code used a pointer after freeing the
50023 storage that it addressed.
50024 * lib/hash.c (hash_initialize): Simplify the code by using
50025 xalloc_oversized rather than doing it by hand.
50026 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
50027 the buffer preserved. Use free and xmalloc instead.
50028 * lib/quotearg.c (quotearg_n_options): Likewise.
50029 Use a simpler test for size overflow. Don't use xalloc_oversized
50030 because unsigned int might be wider than size_t (!); this suggests
50031 that we should switch from unsigned int to size_t for slot numbers.
50033 2003-10-28 Paul Eggert <eggert@twinsun.com>
50035 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
50036 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
50037 NetBSD kernels. Requested by Richard Stallman.
50039 2003-10-27 Paul Eggert <eggert@twinsun.com>
50041 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
50042 to allocate the returned structure. Do not allocate a subarray,
50043 as x2nrealloc will do that.
50044 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
50045 instead of xnrealloc.
50046 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
50048 2003-10-27 Bruno Haible <bruno@clisp.org>
50050 * lib/stdbool_.h: Better support for BeOS.
50052 2003-10-26 Paul Eggert <eggert@twinsun.com>
50054 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
50057 2003-10-26 Paul Eggert <eggert@twinsun.com>
50059 * lib/xalloc.h (xalloc_oversized): New static inline function, for
50060 callers that want to do their own size-overflow checking. Include
50061 <stdbool.h>, since xalloc_oversized returns bool.
50062 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
50063 to use xalloc_oversized.
50065 Add two functions x2realloc, x2nrealloc, for programs that grow
50066 arrays dynamically by doubling their sizes.
50067 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
50068 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
50071 Port to C99 semantics for 'inline' of external functions.
50072 Bug reported by Bruno Haible.
50073 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
50074 with the old contents of xnmalloc.
50075 (xnmalloc, xmalloc): Use it.
50076 (xnrealloc_inline): New static inline function,
50077 with the old contents of xnrealloc.
50078 (xnrealloc, xrealloc): Use it.
50080 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
50083 2003-10-26 Karl Berry <karl@gnu.org>
50085 * config/srclist.txt (COPYING.DOC): no longer available from
50086 /gd/gnuorg; don't know where the ultimate source is.
50088 2003-10-25 Paul Eggert <eggert@twinsun.com>
50090 Fix several address-calculation bugs in the hash modules,
50091 plus some minor code cleanup.
50093 * lib/hash.h: Include <stdbool.h>, for bool.
50094 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
50095 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
50096 hash_get_n_entries, hash_get_max_bucket_length,
50097 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
50098 hash_rehash): Use size_t rather than unsigned.
50099 * lib/hash.c (struct hash_table, hash_get_n_buckets,
50100 hash_get_n_buckets_used, hash_get_n_entries,
50101 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
50102 hash_get_entries, hash_do_for_each, hash_string, is_prime,
50103 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
50105 (SIZE_MAX): Define if not defined.
50106 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
50107 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
50109 Use const * when possible.
50110 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
50111 (check_tuning): Fix bug: if tuning parameters were very close to
50112 0 or 1, rounding errors could have caused subscript violations.
50113 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
50114 (hash_initialize): Add 'fail:' label
50115 to free table and return NULL, and use it to simplify code.
50116 Use calloc rather than clearing the storage ourself.
50117 (hash_initialize, hash_rehash): Check for arithmetic overflow in
50118 buffer size calculations.
50119 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
50120 Include <stddef.h>, for size_t.
50121 * lib/hash-pjw.c (hash_pjw): Likewise.
50122 Switch to method described by Bruno Haible.
50123 Include <limits.h>, for CHAR_BIT.
50124 (SIZE_BITS): New macro.
50126 2003-10-23 Paul Eggert <eggert@twinsun.com>
50128 * m4/getline.m4 (AM_FUNC_GETLINE):
50129 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
50130 hosts. Problem reported by Derek Robert Price in
50131 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
50132 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
50133 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
50135 2003-10-21 Paul Eggert <eggert@twinsun.com>
50137 * lib/getndelim2.c (getndelim2): When size calculation overflows,
50138 ceiling the allocation at NMAX bytes rather than silently
50139 discarding input bytes before NMAX is reached. This makes
50140 a difference only if NMAX exceeds SIZE_MAX / 2.
50142 * lib/obstack.c: Merge from glibc.
50143 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
50144 Add libc_hidden_def (_obstack_newchunk).
50145 (_obstack_free) [! defined _LIBC]: Remove.
50146 [defined _LIBC]: Make a strong alias from obstack_free, rather than
50147 a clone of the function body.
50148 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
50149 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
50151 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
50153 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
50156 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
50157 (obstack_ptr_grow_fast, obstack_int_grow_fast):
50158 Don't use lvalue casts, as GCC plans to remove support for them
50159 in GCC 3.5. Reported by Joseph S. Myers. This bug
50160 was also present in the non-GCC version, indicating that this
50161 code had always been buggy and had never been widely used.
50162 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
50163 Use the fast variant of each macro, rather than copying the
50164 definiens of the fast variant; that way, we'll be more likely to
50165 catch future bugs in the fast variants.
50167 2003-10-20 Bruno Haible <bruno@clisp.org>
50169 * modules/wait-process: New file.
50170 * MODULES.html.sh (func_all_modules): Add wait-process.
50172 2003-10-20 Bruno Haible <bruno@clisp.org>
50174 * m4/wait-process.m4: New file.
50176 2003-10-20 Bruno Haible <bruno@clisp.org>
50178 * lib/wait-process.h: New file, from GNU gettext.
50179 * lib/wait-process.c: New file, from GNU gettext.
50181 2003-10-19 Jim Meyering <jim@meyering.net>
50183 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
50186 2003-10-18 Karl Berry <karl@gnu.org>
50188 * config/config.guess: update from config.
50190 2003-10-16 Paul Eggert <eggert@twinsun.com>
50192 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
50193 (getgroups): First arg is int, not size_t.
50194 Don't let 'free' mangle errno.
50196 2003-10-16 Paul Eggert <eggert@twinsun.com>
50198 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
50200 2003-10-16 Karl Berry <karl@gnu.org>
50202 * config/config.{guess,sub}: update from config.
50204 2003-10-16 Jim Meyering <jim@meyering.net>
50206 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
50209 2003-10-15 Paul Eggert <eggert@twinsun.com>
50211 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
50212 (SIZE_MAX): Remove.
50213 (new_exclude, add_exclude_file): Initial size no longer needs to
50215 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
50216 our own address arithmetic overflow checking.
50218 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
50219 (fnmatch): Do not alloca more than 2000 wide characters;
50220 instead, use malloc for large buffers.
50221 Check for address arithmetic overflow, and return -1
50222 with errno set to ENOMEM in that case.
50223 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
50224 (NEW_PATTERN): Do not alloca more than 8000 bytes;
50225 instead, return -1. Check for address arithmetic overflow.
50227 2003-10-14 Paul Eggert <eggert@twinsun.com>
50229 Handle invalid suffixes and overflow independently, so that
50230 callers can treat them independently as needed. Fix some bugs in
50231 suffix handling, e.g., "100k@" was not diagnosed as an invalid
50232 suffix for a human-readable blocksize. The major caller-visible
50233 change is the addition of a new
50234 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
50235 that both overflow and suffix chars were found.
50237 * lib/human.c (humblock): Don't check separately for invalid suffix
50238 char; that is xstrtoumax's job (now that its bug is fixed).
50239 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
50240 INTMAX_MAX]: New macros.
50241 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
50242 TYPE_MAXIMUM): New macros.
50243 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
50244 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
50245 if overflow occurs, as it's what __strtol does and it's more useful
50247 (__xstrtol): If __strtol reports some error other than ERANGE,
50248 reflect it to the caller as LONGINT_INVALID. If it reports
50249 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
50250 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
50251 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
50253 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
50254 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
50255 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
50256 [defined UINTMAX_MAX]: New macros.
50258 2003-10-14 Bruno Haible <bruno@clisp.org>
50260 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
50262 2003-10-14 Bruno Haible <bruno@clisp.org>
50264 * m4/sig_atomic_t: New file, from GNU gettext.
50265 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
50267 2003-10-14 Bruno Haible <bruno@clisp.org>
50269 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
50270 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
50271 Also use volatile where needed.
50273 2003-10-12 Paul Eggert <eggert@twinsun.com>
50275 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
50276 Change maintainer from Bruno Haible to 'all'.
50278 2003-10-12 Paul Eggert <eggert@twinsun.com>
50280 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
50282 2003-10-12 Paul Eggert <eggert@twinsun.com>
50284 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
50285 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
50286 and define in terms of the other primitives.
50287 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
50288 (SIZE_MAX): Define if not already defined.
50289 (array_size_overflow): New function.
50290 (xalloc_die): Abort instead of exiting if 'error' returns.
50291 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
50292 (xmalloc, xrealloc): Use them.
50293 (xcalloc): Check for address arithmetic overflow.
50294 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
50295 a bit faster than strcpy.
50297 2003-10-10 Simon Josefsson <jas@extundo.com>
50299 * modules/argp (Depends-on): Add restrict and strcase.
50301 2003-10-10 Simon Josefsson <jas@extundo.com>
50303 * m4/argp.m4: Add AC_C_INLINE.
50305 2003-10-08 Paul Eggert <eggert@twinsun.com>
50307 Merge getpass from libc, plus a few fixes.
50309 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
50310 Include <stdbool.h>.
50311 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
50312 __fsetlocking to empty.
50313 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
50314 do include <bits/libc-lock.h>.
50315 Do not include <fcntl.h>; not needed.
50316 [_LIBC]: Include <wchar.h>.
50317 (NOTCANCEL_MODE): New macro.
50318 (flockfile, funlockfile) [_LIBC]: New macros.
50319 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
50320 [!_LIBC]: New macros.
50321 (call_fclose): New function.
50322 (getpass): Use it. Save tty stream separately; this simplifies the
50323 code and makes it more reliable if stdin happens to equal stdout.
50324 Invoke __fsetlocking on tty.
50325 Handle thread cancellation if needed.
50326 Namespace cleanup (use __tcgetattr, __getline).
50327 Use bool for Booleans.
50328 [USE_IN_LIBIO]: Handle wide streams.
50329 [!_LIBC]: Unconditionally do the fseek, since we don't know what
50330 stream might go where.
50332 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
50333 doesn't have to include <stdio.h> before us.
50334 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
50335 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
50336 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
50337 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
50338 if not declared, so that we can use getpass.c code from libc without
50340 (flockfile, ftrylockfile, funlockfile): New macros.
50342 2003-10-08 Paul Eggert <eggert@twinsun.com>
50344 * modules/getpass: Depend on stdbool.
50346 2003-10-08 Paul Eggert <eggert@twinsun.com>
50348 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
50350 2003-10-07 Karl Berry <karl@gnu.org>
50352 * config/config.{guess,sub}: update from config.
50354 2003-10-06 Jim Meyering <jim@meyering.net>
50355 Bruno Haible <bruno@clisp.org>
50357 This lets translators provide better translations for the
50358 "Written by ..." part of --version output.
50359 * lib/version-etc.h: Include stdarg.h.
50360 (version_etc_copyright): Declare as readonly.
50361 (version_etc): Make this function variadic with a NULL-terminated list
50362 of author name strings.
50363 (version_etc_va): New declaration.
50364 * lib/version-etc.c: Include stdarg.h, stdlib.h.
50365 (version_etc_copyright): Declare as readonly.
50366 (version_etc_va): New function. Provide a different translatable string
50367 for each possible number of authors < 10. Abbreviate when there are 10
50369 (version_etc): Make this function variadic. Call version_etc_va.
50370 Suggestion from Gary V. Vaughan.
50372 * lib/long-options.h (parse_long_options): Change prototype: the
50373 authors string is moved to the end and becomes variadic.
50374 * lib/long-options.c: Include stdarg.h.
50375 (parse_long_options): Make this function variadic, too.
50376 Call version_etc_va, not version_etc.
50378 2003-10-06 Bruno Haible <bruno@clisp.org>
50380 * modules/version-etc-2: Remove file.
50381 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
50383 2003-10-06 Bruno Haible <bruno@clisp.org>
50385 * modules/fatal-signal: New file.
50386 * MODULES.html.sh (func_all_modules): Add fatal-signal.
50388 2003-10-06 Bruno Haible <bruno@clisp.org>
50390 * m4/fatal-signal.m4: New file.
50391 * m4/signalblocking.m4: New file, from GNU gettext.
50393 2003-10-06 Bruno Haible <bruno@clisp.org>
50395 * lib/version-etc-2.h: Remove file.
50396 * lib/version-etc-2.c: Remove file.
50398 2003-10-06 Bruno Haible <bruno@clisp.org>
50400 * lib/fatal-signal.h: New file, from GNU gettext.
50401 * lib/fatal-signal.c: New file, from GNU gettext.
50403 2003-10-05 Paul Eggert <eggert@twinsun.com>
50405 * README: Rework advice for preventing empty .o files.
50406 Don't recommend ELIDE constructs. Recommend <stddef.h>,
50409 2003-10-04 Karl Berry <karl@gnu.org>
50411 * lib/argp*: update from libc.
50413 2003-10-04 Karl Berry <karl@gnu.org>
50415 * config/config.{guess,sub}: update from config.
50417 2003-10-02 Bruno Haible <bruno@clisp.org>
50419 * modules/lchown (Include): Add lchown.h.
50420 * modules/time_r (Include): Use "..." syntax.
50421 * modules/xgetdomainname (Include): Add xgetdomainname.h.
50423 2003-10-01 Simon Josefsson <jas@extundo.com>
50425 * MODULES.html.sh (func_all_modules): Move gethostname from section
50426 'based on' to section 'lacking' POSIX:2001.
50428 2003-10-01 Larry Jones <lawrence.jones@eds.com>
50430 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
50431 to output mode on the same stream.
50433 2003-09-29 Paul Eggert <eggert@twinsun.com>
50435 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
50436 Fix arg typo in previous patch.
50438 2003-09-28 Jim Meyering <jim@meyering.net>
50440 * lib/error.c: Correct cpp indentation.
50442 2003-09-27 Paul Eggert <eggert@twinsun.com>
50444 * modules/free: New file.
50446 2003-09-27 Paul Eggert <eggert@twinsun.com>
50448 * m4/free.m4: New file.
50450 2003-09-27 Paul Eggert <eggert@twinsun.com>
50452 * lib/minmax.h (MIN, MAX)
50453 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
50454 Omit the special code that used __typeof__, since we worry that
50455 it could be more trouble than it's worth. See:
50456 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
50457 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
50459 * lib/free.c: New file.
50461 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
50463 Trivial fixes to Makefile.am parts of module listings.
50464 * modules/strstr: Append strstr.h to lib_SOURCES.
50465 * modules/strcase: Likewise, for strcase.h.
50467 2003-09-27 Karl Berry <karl@gnu.org>
50469 * config/mkinstalldirs: update from automake.
50471 2003-09-26 Paul Eggert <eggert@twinsun.com>
50473 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
50474 (error_tail): Do not loop, reallocating temporary buffer, since
50475 the output cannot contain more wide characters than the input
50476 contains bytes, the size must be big enough already. This avoids
50477 one potential size overflow calculation. Check for size overflow
50478 when calculating temporary buffer size. Free temporary buffer
50479 when done, if it was allocated with malloc; this plugs a memory
50480 leak. Remove casts from void * to pointers, that are no longer
50481 needed now that we're assuming C89 or better.
50483 Merge error changes from glibc.
50485 * lib/error.c, error.h: Update copyright notice header to match glibc.
50486 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
50487 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
50488 Disable cancellation while printing error.
50489 * lib/error.h: Prepend __ to parameter names.
50491 2003-09-26 Jim Meyering <jim@meyering.net>
50493 * lib/error.c (error_tail): Move some declarations
50494 into inner scope where the local variables are used.
50496 2003-09-26 Bruno Haible <bruno@clisp.org>
50498 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
50500 Don't define stpncpy through config.h; it's now done through stpncpy.h.
50502 2003-09-26 Bruno Haible <bruno@clisp.org>
50504 * lib/stpncpy.h (gnu_stpncpy): New declaration.
50505 (stpncpy): Define as alias for gnu_stpncpy.
50506 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
50508 2003-09-25 Simon Josefsson <jas@extundo.com>
50510 * lib/xgetdomainname.h: New file.
50511 * lib/xgetdomainname.c: New file.
50513 2003-09-25 Simon Josefsson <jas@extundo.com>
50514 Bruno Haible <bruno@clisp.org>
50516 * modules/getdomainname: New file.
50517 * modules/xgetdomainname: New file.
50518 * MODULES.html.sh (func_all_modules): Add getdomainname,
50521 2003-09-25 Simon Josefsson <jas@extundo.com>
50522 Bruno Haible <bruno@clisp.org>
50524 * m4/getdomainname.m4: New file.
50526 2003-09-25 Simon Josefsson <jas@extundo.com>
50527 Bruno Haible <bruno@clisp.org>
50529 * lib/getdomainname.h: New file.
50530 * lib/getdomainname.c: New file.
50532 2003-09-25 Karl Berry <karl@gnu.org>
50534 * lib/argp-fmtstream.c, argp-help.c: update from libc.
50536 2003-09-25 Karl Berry <karl@gnu.org>
50538 * config/install-sh: update from automake.
50540 2003-09-25 Bruno Haible <bruno@clisp.org>
50542 * modules/version-etc-2: New file, from modules/version-etc with
50544 * MODULES.html.sh (func_all_modules): Add version-etc-2.
50546 2003-09-25 Bruno Haible <bruno@clisp.org>
50548 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
50549 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
50551 2003-09-24 Simon Josefsson <jas@extundo.com>
50553 * modules/xgethostname: Add xgethostname.h.
50555 2003-09-24 Paul Eggert <eggert@twinsun.com>
50557 * lib/linebuffer.c (freebuffer): Don't free the argument, just
50558 the buffer associated with the argument. Bug reported by
50561 2003-09-24 Paul Eggert <eggert@twinsun.com>
50563 * README: Document assumptions that 'int' is at least 32 bits
50564 wide, that integer arithmetic is 2's complement without overflow,
50565 that there are no holes in integer values, that adding sizes of
50566 two nonoverlapping objects can't overflow, and that all-bits-zero
50567 yields scalar zero. Fix spelling and capitalization typos.
50569 2003-09-19 Karl Berry <karl@gnu.org>
50571 * lib/argp.h: update from libc.
50573 2003-09-17 Paul Eggert <eggert@twinsun.com>
50575 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
50576 to avoid spurious warnings like "AC_RUN_IFELSE was called before
50577 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
50579 2003-09-17 Paul Eggert <eggert@twinsun.com>
50581 * gnulib-tool: Use "test -h", not "test -L", for portability
50582 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
50583 (tags_regexp): Remove, since \| doesn't conform to POSIX.
50584 (sed_extract_prog): Issue s commands one-by-one, rather than
50585 using \| in one s command.
50587 2003-09-16 Paul Eggert <eggert@twinsun.com>
50589 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
50590 input error, instead of returning NULL the next time we are called
50591 (and therefore losing track of errno).
50593 2003-09-16 Bruno Haible <bruno@clisp.org>
50595 * gnulib-tool (func_create_testdir): Warn about duplicated
50598 2003-09-15 Paul Eggert <eggert@twinsun.com>
50600 * modules/argmatch, modules/fatal, modules/obstack,
50601 modules/xalloc, modules/xgethostname: Sort dependencies by
50602 importance, not alphabetically.
50604 2003-09-15 Paul Eggert <eggert@twinsun.com>
50606 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
50607 fails, so that the caller gets the proper errno.
50609 * lib/readutmp.c (read_utmp): Likewise.
50610 Check for fstat error. Close stream and free storage
50613 2003-09-14 Karl Berry <karl@gnu.org>
50615 * config/srclist.txt (strdup.c): disable for c89 changes.
50617 2003-09-14 Jim Meyering <jim@meyering.net>
50619 * lib/getloadavg.c: Correct cpp indentation.
50620 * lib/strdup.c: Likewise.
50621 * lib/vasnprintf.c: Likewise.
50623 2003-09-14 Bruno Haible <bruno@clisp.org>
50625 * modules/fwriteerror: New file.
50626 * MODULES.html.sh (func_all_modules): Add fwriteerror.
50628 2003-09-14 Bruno Haible <bruno@clisp.org>
50630 * lib/fwriteerror.h: New file.
50631 * lib/fwriteerror.c: New file.
50633 2003-09-12 Paul Eggert <eggert@twinsun.com>
50635 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
50636 modules/xgethostname, modules/xalloc: Depend on exit.
50638 2003-09-12 Paul Eggert <eggert@twinsun.com>
50640 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
50642 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
50643 and AC_MINIX, too, so that their extensions are available.
50645 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
50646 This macro has been superseded by gl_BACKUPFILE.
50648 More patches to assume C89 or better.
50650 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
50652 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
50654 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
50655 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
50656 Include <string.h>, <stdlib.h> unconditionally.
50657 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
50658 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
50659 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
50660 headers or for string.h.
50661 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
50664 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
50666 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
50667 * m4/userspec.m4 (gl_USERSPEC): Likewise.
50668 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
50669 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
50670 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
50671 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
50673 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
50674 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
50675 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
50677 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
50678 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
50679 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
50682 2003-09-12 Paul Eggert <eggert@twinsun.com>
50684 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
50685 * lib/obstack.c [!defined _LIBC]: Likewise.
50686 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
50687 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
50688 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
50690 More changes to assume C89 or better.
50692 * lib/error.c (error_tail): Assume vprintf.
50694 * lib/argmatch.c (getenv): Remove decl.
50695 * lib/progreloc.c (get_full_program_name): Define via prototype.
50696 * lib/setenv.c (clearenv): Likewise.
50697 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
50699 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
50700 (malloc, memcpy): Remove decls.
50701 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
50702 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
50703 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
50704 (memcpy): Remove macro.
50705 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
50706 (__P): Remove. All uses removed.
50707 (PTR): Remove. All uses changed to void *.
50708 (CHAR_BIT, NULL): Remove.
50709 (spaces, zeros, memset_space, memset_zero)
50710 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
50712 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
50713 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
50714 Define with prototype.
50715 Remove now-unnecessary prototype decl.
50716 (extra_args_spec): Assume ANSI C. All uses changed.
50717 (extra_args_spec_iso): Remove.
50718 (my_strftime, emacs_strftimeu): Define via prototype.
50719 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
50721 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
50722 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
50723 (strtoul, strtol): Remove decls.
50724 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
50726 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
50727 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
50728 (LOCALE_PARAM_PROTO): New macro.
50729 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
50730 (INTERNAL (strtol), strtol): Define with a prototype.
50731 (PARAMS): Remove. All uses removed.
50732 * lib/tempname.c: Include <string.h> unconditionally.
50733 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
50734 * lib/xgethostname.c (main): Define with a prototype.
50735 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
50736 Include <stdlib.h> unconditionally.
50737 (calloc, malloc, realloc, free): Remove decls.
50738 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
50739 Include <stdlib.h> unconditionally. Sort include file names.
50741 (xstrtod): Define with a prototype.
50742 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
50743 (strtol, strtoul): Remove decls.
50745 2003-09-11 Paul Eggert <eggert@twinsun.com>
50747 More patches to assume C89 or better.
50748 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
50749 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
50750 string.h, memchr, STDC_HEADERS.
50752 2003-09-11 Paul Eggert <eggert@twinsun.com>
50754 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
50755 Include <stdlib.h>, <string.h> unconditionally.
50756 Remove now-unnecessary cast to char *.
50757 * lib/strnlen.c: Include <string.h> unconditionally.
50758 * lib/yesno.c (yesno): Define with a prototype.
50760 2003-09-11 Bruno Haible <bruno@clisp.org>
50762 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
50764 2003-09-10 Jim Meyering <jim@meyering.net>
50766 * lib/error.c: Correct indentation of cpp directives.
50768 2003-09-10 Bruno Haible <bruno@clisp.org>
50770 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
50771 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
50772 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
50773 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
50774 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
50775 <stdlib.h> and <string.h> checks.
50776 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
50777 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
50779 2003-09-10 Bruno Haible <bruno@clisp.org>
50781 * lib/strcspn.c: Include <string.h> unconditionally.
50782 * lib/strpbrk.c: Include <string.h> unconditionally.
50783 * lib/strstr.c: Include <string.h> unconditionally.
50784 * lib/unicodeio.c: Include <string.h> unconditionally.
50785 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
50786 * lib/unsetenv.c: Likewise.
50787 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
50788 * lib/yesno.c: Include <stdlib.h> unconditionally.
50789 (rpmatch): Add prototype.
50791 2003-09-09 Paul Eggert <eggert@twinsun.com>
50793 More patches to assume C89 or better.
50794 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
50795 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
50796 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
50798 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
50800 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
50802 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
50804 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
50805 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
50806 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
50808 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
50809 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
50811 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
50813 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
50814 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
50815 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
50816 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
50817 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
50818 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
50820 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
50821 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
50822 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
50823 C headers, or for string.h.
50824 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
50825 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
50826 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
50827 headers, memory.h, stdlib.h, string.h, strings.h.
50828 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
50829 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
50830 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
50832 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
50833 headers, memory.h, string.h.
50834 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
50835 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
50837 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
50839 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
50840 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
50841 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
50842 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
50843 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
50845 2003-09-09 Paul Eggert <eggert@twinsun.com>
50849 * lib/acosl.c (main): Use a prototype.
50850 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
50853 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
50855 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
50856 (getopt, etopt_long, getopt_long_only, _getopt_internal)
50857 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
50859 * lib/getopt.c (const): Remove macro.
50860 Include <string.h> unconditionally.
50861 (my_index): Remove; all uses changed to strchr.
50862 (strlen): Remove decl.
50863 (exchange): Remove forward decl; no longer needed.
50864 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
50865 Define with prototype.
50866 * lib/getopt1.c (const): Remove macro.
50867 (getopt_long, getopt_long_only, main): Define with prototype.
50869 * lib/getugroups.c: Include <string.h> unconditionally.
50871 * lib/getusershell.c: Include <stdlib.h> unconditionally.
50872 (getusershell, setusershell, endusershell, readname, main):
50873 Define with prototypes.
50875 * lib/group-member.c: Include group-member.h first.
50876 Include <stdlib.h> unconditionally.
50878 * lib/hard-locale.c: Include hard-locale.h first.
50879 Include <stdlib.h>, <string.h> unconditionally.
50881 * lib/hash.c (free, malloc): Remove decls.
50882 Include <stdlib.h> unconditionally.
50884 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
50885 (getenv): Do not declare.
50887 * lib/idcache.c: Include <string.h> unconditionally.
50889 * lib/long-options.c: Include long-options.h first, to test interface.
50890 Include <stdlib.h> unconditionally.
50892 * lib/makepath.c: Include makepath.h first, to test interface.
50893 Include <stdlib.h> and <string.h> unconditionally.
50895 * lib/linebuffer.c: Include <stdlib.h>.
50896 (free): Remove decl.
50898 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
50899 stddef.h. rpl_malloc returns void *, not char *.
50900 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
50903 * lib/md5.h: Include <limits.h> unconditionally.
50904 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
50905 (__P): Remove; all uses removed.
50906 * lib/md5.c: Include "md5.h" first.
50907 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
50908 md5_buffer, md5_process_bytes, md5_process_block):
50909 Define with prototypes.
50910 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
50911 * lib/sha.c: Include "sha.h" first.
50912 Include <stdlib.h>, <string.h> unconditionally.
50914 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
50915 * lib/memcmp.c (__ptr_t): Likewise.
50916 * lib/memrchr.c (__ptr_t): Likewise.
50917 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
50918 Include <string.h> unconditionally.
50919 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
50920 * lib/memchr.c: Include <stdlib.h> unconditionally.
50921 * lib/memchr.c (LONG_MAX): Remove.
50922 * lib/memrchr.c (LONG_MAX): Likewise.
50923 * lib/memchr.c (__memchr): Define via a prototype.
50924 * lib/memrchr.c (__memrchr): Likewise.
50925 * lib/memcmp.c (__P): Remove, and remove all uses.
50926 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
50927 Remove forward decls; no longer needed.
50928 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
50929 Use types required by C89 in prototype.
50931 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
50932 * lib/savedir.c: Likewise.
50933 * lib/mkdir.c (free): Remove decl.
50934 * lib/rmdir.c (rmdir): Define with a prototype.
50935 * lib/savedir.c: Include savedir.h first, to test interface.
50937 * lib/mktime.c (STDC_HEADERS): Remove.
50938 Include <stdlib.h>, <string.h> unconditionally.
50940 * lib/modechange.c: Include <stdlib.h> unconditionally.
50941 (malloc): Remove decl.
50943 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
50944 (free): Remove decl.
50946 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
50947 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
50948 (This type really should be intptr_t, but that's a C99ism.)
50949 (_obstack_memcpy): Remove: all uses changed to memcpy.
50950 Include <string.h> unconditionally.
50951 (struct obstack): Assume __STDC__ for types of members
50952 chunkfun, freefun, extra_arg.
50953 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
50954 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
50955 obstack_begin, obstack_specify_allocation,
50956 obstack_specify_allocation_with_arg, obstack_chunkfun,
50957 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
50958 Remove unprototyped decls and the macros that use them.
50959 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
50960 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
50961 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
50962 (defined __STDC__ && __STDC__)]:
50963 Remove nonprototyped code.
50964 Include <stdlib.h> unconditionally.
50965 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
50966 _obstack_allocated_p, _obstack_free, obstack_free,
50967 _obstack_memory_used, print_and_abort):
50968 Define using prototypes.
50969 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
50970 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
50971 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
50972 obstack_next_free, obstack_object_size, obstack_room) [0]:
50973 Remove unused, unprototyped code.
50975 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
50977 * lib/physmem.c (physmem_total, physmem_available, main): Define
50980 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
50981 (main): Define with a prototype.
50983 * lib/posixver.c (getenv): Remove decl.
50985 * lib/putenv.c (malloc): Returns void *, not char *.
50986 Include <string.h> unconditionally.
50987 (strchr, memcpy, NULL): Do not define.
50989 * lib/readtokens.c: Include readtokens.h first, to test interface.
50990 Include <stdlib.h>, <string.h> unconditionally.
50991 (init_tokenbuffer): Define with a prototype.
50993 * lib/regex.c (PARAMS): Remove. All uses removed.
50994 All uses of _RE_ARGS removed, too.
50995 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
50997 (bzero): Assume memset exists.
50998 (memcmp, memcpy, NULL): Remove.
50999 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
51000 char, or assignments to local vars of type signed char.
51001 (init_syntax_once, PREFIX(extract_number_and_incr),
51002 PREFIX(print_partial_compiled_pattern),
51003 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
51004 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
51005 PREFIX(regex_grow_registers), PREFIX(regex_compile),
51006 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
51007 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
51008 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
51009 wcs_compile_range, byte_compile_range, truncate_wchar,
51010 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
51011 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
51012 count_mbs_length, wcs_re_match_2_internal,
51013 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
51014 PREFIX(alt_match_null_string_p),
51015 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
51016 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
51017 regfree, PREFIX(extract_number)): Define with prototype. Remove
51018 now-unnecessary declaration, if any.
51019 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
51021 Remove now-unnecessary casts among pointer types.
51022 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
51024 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
51025 (free): Remove decl.
51027 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
51029 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
51030 (free): Remove decl.
51032 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
51033 * lib/xgetcwd.c: Likewise.
51035 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
51036 (free): Remove decl.
51038 * lib/strchrnul.c (strchrnul): Define with a prototype.
51039 Fix bug: c_in was not converted to char before searching.
51041 The following changes are not K&R related:
51043 * lib/group-member.h: Include <sys/types.h>, so that this file is
51045 * lib/makepath.h: Likewise.
51047 * lib/getusershell.c (readname, default_index, line_size, readname):
51048 Use size_t, not int, for sizes.
51049 (readname): If the size overflows, report an error instead of
51052 2003-09-09 Paul Eggert <eggert@twinsun.com>
51054 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
51057 2003-09-09 Paul Eggert <eggert@twinsun.com>
51059 * README: New section: portability guidelines.
51061 2003-09-09 Derek Robert Price <derek@ximbiot.com>
51063 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
51066 2003-09-09 Derek Robert Price <derek@ximbiot.com>
51068 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
51070 2003-09-08 Paul Eggert <eggert@twinsun.com>
51072 Assume C89 or better; remove K&R cruft.
51073 A few of these changes were first proposed by Derek Robert Price
51074 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
51076 * lib/addext.c: Include <string.h> unconditionally.
51077 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
51078 Don't declare getenv or malloc.
51080 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
51081 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
51083 (find_stack_direction, alloca): Use prototypes.
51085 * lib/atexit.c (atexit): Define using a prototype.
51087 * lib/basename.c, dirname.c, stripslash.c:
51088 Include <string.h> unconditionally.
51090 * lib/bcopy.c: Include <stddef.h>.
51091 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
51093 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
51095 * lib/error.h (error, error_at_line, error_print_progname)
51096 [! (defined (__STDC__) && __STDC__)]: Remove decls.
51097 * lib/error.c: Include error.h first, to check interface.
51098 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
51099 (VA_START): Remove; all uses changeed to va_start.
51100 (exit, strerror): Remove decls.
51101 (error_print_progname): Prototype uncondionally.
51102 Don't include <errno.h>; no longer needed.
51103 (private_strerror): Remove.
51104 (error_tail): Always define.
51105 (error, error_at_line): Assume C89 or better; always use prototypes.
51106 * lib/fatal.c: Include "fatal.h" first, to test interface.
51107 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
51108 (VA_START): Remove; all uses changed to va_start.
51109 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
51111 (exit): Remove decl.
51112 (fatal): Prototype unconditionally. Assume va_start works.
51113 Abort at end, to pacify gcc.
51115 * lib/euidaccess.c (main): Define with a prototype.
51117 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
51119 * lib/exitfail.c: Include <stdlib.h> unconditionally.
51121 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
51123 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
51124 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
51125 (getenv): Remove decl.
51126 (fnmatch): Define using a prototype.
51127 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
51128 (FCT): Define using a prototype.
51130 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
51132 * lib/gethostname.c: Include <stddef.h>.
51133 (gethostname): Define with prototype. Length is size_t, not int.
51135 2003-09-08 Paul Eggert <eggert@twinsun.com>
51137 Assume C89 or better; remove K&R cruft.
51138 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
51139 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
51140 string.h, getenv, malloc.
51141 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
51143 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
51144 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
51145 do not check for strerror.
51146 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
51147 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
51148 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
51149 do not check for doprnt or vprintf.
51150 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
51151 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
51153 2003-09-08 Paul Eggert <eggert@twinsun.com>
51155 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
51156 getversion.c should have been removed then, but was accidentally
51159 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
51160 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
51162 2003-09-08 Karl Berry <karl@gnu.org>
51164 * config/config.sub, config.guess, srclistvars.sh: update from savannah
51165 config, forget about prep.
51167 * config/depcomp, missing: update from automake.
51169 2003-09-07 Paul Eggert <eggert@twinsun.com>
51171 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
51172 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
51174 2003-09-07 Paul Eggert <eggert@twinsun.com>
51176 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
51177 copy_tm_result. Bug reported by Simon Josefsson in
51178 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
51180 2003-09-06 Paul Eggert <eggert@twinsun.com>
51182 * m4/time_r.m4: New file.
51183 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
51184 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
51185 is. Check for timegm declaration.
51186 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
51187 Do not check for gmtime_r.
51188 Replace mktime if __mktime_internal does not exist and if mktime
51189 hasn't been replaced already.
51191 2003-09-06 Paul Eggert <eggert@twinsun.com>
51193 * lib/time_r.c, lib/time_r.h: New files.
51195 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
51197 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
51198 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
51200 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
51202 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
51203 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
51204 Include <time_r.h>.
51206 * lib/timegm.c: Switch to glibc implementation, with the following
51208 [defined HAVE_CONFIG_H]: Include <config.h>.
51209 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
51210 (__mktime_internal) [!defined _LIBC]: New decl.
51211 (__gmtime_r) [!defined _LIBC]: New macro and function.
51212 (timegm): Use a prototype, since gnulib assumes C89.
51213 Do not bother declaring tmp to be const, as it's not really usefu.
51214 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
51215 (timegm): Declare only if HAVE_DECL_TIMEGM.
51217 2003-09-06 Paul Eggert <eggert@twinsun.com>
51219 * MODULES.html.sh (func_all_modules): Add time_r.
51220 * modules/time_r: New file.
51221 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
51222 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
51224 2003-09-03 Paul Eggert <eggert@twinsun.com>
51226 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
51227 Bug reported by Lute Kamstra in
51228 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
51230 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
51231 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
51232 course with correspondingly smaller numbers for tomorrow and
51233 yesterday. From Tadayoshi Funaba. Originally installed into
51234 sh-utils on 1999-08-07, but the patch got lost (I guess during the
51237 2003-08-31 Simon Josefsson <jas@extundo.com>
51239 * modules/timegm: New file.
51240 * MODULES.html.sh (func_all_modules): Add timegm.
51242 2003-08-31 Simon Josefsson <jas@extundo.com>
51244 * m4/timegm.m4: New file.
51246 2003-08-31 Simon Josefsson <jas@extundo.com>
51248 * lib/timegm.h: New file.
51249 * lib/timegm.c: New file. Based on
51250 wget-1.8.2/src/http.c:mktime_from_utc.
51252 2003-08-31 Karl Berry <karl@gnu.org>
51254 * lib/argp.h: update from libc.
51256 2003-08-28 Bruno Haible <bruno@clisp.org>
51258 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
51259 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
51260 followed by '#define fnmatch fnmatch_posix' gives an error.
51262 2003-08-28 Bruno Haible <bruno@clisp.org>
51264 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
51265 warning on QNX, which defines O_BINARY to 000000.
51267 2003-08-27 Jim Meyering <jim@meyering.net>
51269 * m4/mkstemp.m4: Require that the system mkstemp be able to create
51270 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
51271 would fail after 32. Reported by Danny Levinson. Details here:
51272 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
51274 2003-08-24 Bruno Haible <bruno@clisp.org>
51276 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
51277 MSVC7 <stdio.h> is included later.
51279 2003-08-22 Simon Josefsson <jas@extundo.com>
51281 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
51283 2003-08-20 Karl Berry <karl@gnu.org>
51285 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
51287 2003-08-20 Bruno Haible <bruno@clisp.org>
51289 * modules/progname: New file.
51290 * MODULES.html.sh (func_all_modules): Add progname.
51292 2003-08-20 Bruno Haible <bruno@clisp.org>
51294 * lib/progname.h: New file, from GNU gettext.
51295 * lib/progname.c: New file, from GNU gettext.
51296 * lib/progreloc.c: New file, from GNU gettext.
51298 2003-08-19 Jim Meyering <jim@meyering.net>
51300 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
51301 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
51303 2003-08-19 Bruno Haible <bruno@clisp.org>
51305 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
51308 2003-08-19 Bruno Haible <bruno@clisp.org>
51310 * lib/xstrdup.c: Assume <string.h> exists.
51312 2003-08-18 Paul Eggert <eggert@twinsun.com>
51314 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
51317 2003-08-18 Jim Meyering <jim@meyering.net>
51319 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
51320 * m4/lib-ld.m4: Likewise.
51322 2003-08-18 Jim Meyering <jim@meyering.net>
51324 * lib/setenv.h: Indent nested cpp directive.
51325 * lib/vasnprintf.c: Remove trailing blanks.
51327 2003-08-17 Simon Josefsson <jas@extundo.com>
51329 * modules/xstrndup: New file.
51330 * MODULES.html.sh (func_all_modules): Add xstrndup.
51332 2003-08-17 Simon Josefsson <jas@extundo.com>
51334 * modules/argp: Fix autoconf macro name. Add more dependencies.
51336 2003-08-17 Simon Josefsson <jas@extundo.com>
51338 * m4/xstrndup.m4: New file.
51340 2003-08-17 Simon Josefsson <jas@extundo.com>
51342 * m4/argp.m4: New file.
51344 2003-08-17 Simon Josefsson <jas@extundo.com>
51345 Bruno Haible <bruno@clisp.org>
51347 * lib/xstrndup.h: New file.
51348 * lib/xstrndup.c: New file.
51350 2003-08-17 Bruno Haible <bruno@clisp.org>
51352 * modules/strndup (Files, Include): Add lib/strndup.h.
51354 2003-08-17 Bruno Haible <bruno@clisp.org>
51356 * modules/euidaccess (Files): Add lib/euidaccess.h.
51358 2003-08-17 Bruno Haible <bruno@clisp.org>
51360 * lib/strndup.h: New file.
51362 2003-08-17 Bruno Haible <bruno@clisp.org>
51364 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
51365 like AC_GNU_SOURCE.
51366 * modules/extensions (configure.ac): Comment out the invocation of
51367 gl_USE_SYSTEM_EXTENSIONS.
51369 2003-08-16 Paul Eggert <eggert@twinsun.com>
51371 Merges from coreutils, etc.
51372 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
51373 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
51374 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
51376 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
51377 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
51379 2003-08-16 Paul Eggert <eggert@twinsun.com>
51381 Document merge from coreutils.
51382 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
51383 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
51384 * modules/utime: Add m4/utimes-null.m4.
51386 2003-08-16 Paul Eggert <eggert@twinsun.com>
51388 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
51389 space, undoing this 2003-08-12 change:
51390 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
51392 2003-08-16 Paul Eggert <eggert@twinsun.com>
51394 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
51395 strtoul.c from libc, undoing this 2003-08-12 change:
51396 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
51398 2003-08-16 Jim Meyering <jim@meyering.net>
51400 Merges from coreutils.
51401 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
51402 prefix. Adjust cache variables similarly. Create 500 rather than
51403 just 300 files, to exercise bug on Darwin6.5, too.
51404 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
51406 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
51407 AM_SYS_POSIX_TERMIOS.
51408 Reported by mkc@mathdogs.com.
51409 Also change use of $am_cv_sys_posix_termios
51410 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
51411 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
51412 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
51413 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
51414 in /proc/mounts until it finds one with matching device number. This
51415 is unnecessary when the FILE argument *is* a mount point. No stat call
51416 is necessary in that case. So, disable the statvfs-testing code on
51417 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
51418 as RedHat bug# 84846.
51419 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
51420 to 1MB, so as not to render systems with no stack size limit (e.g.,
51421 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
51422 Include <unistd.h>. On some systems,
51423 it is required for the definition of _SC_PAGESIZE.
51425 2003-08-16 Jim Meyering <jim@meyering.net>
51427 Merge from coreutils.
51428 * lib/xstrtoimax.c: #else #if -> #elif.
51429 * lib/xstrtoumax.c: Likewise.
51431 2003-08-16 Jim Meyering <jim@meyering.net>
51433 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
51434 * m4/utimes.m4: Removed.
51435 * m4/utimes-null.m4: Renamed from utimes.m4.
51437 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
51438 to 1MB, so as not to render systems with no stack size limit (e.g.,
51439 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
51440 Include <unistd.h>. On some systems,
51441 it is required for the definition of _SC_PAGESIZE.
51443 2003-08-16 Jim Meyering <jim@meyering.net>
51444 and Paul Eggert <eggert@cs.ucla.edu>
51446 Merges from coreutils, etc.
51448 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
51449 using the latest version from cvs. This avoids problems with #line
51450 directives using a vendor (Sun) compiler.
51451 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
51452 Don't set GETGROUPS_LIB here; now it's
51453 done via getgroups.m4's wrapper function.
51454 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
51455 rather than just in sh-util/configure.in, so that the
51456 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
51458 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
51459 AC_FUNC_GETLOADAVG where to find getloadavg.c.
51460 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
51461 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
51462 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
51463 Remove code that is now done by the newly-required macros.
51464 Append $(EXEEXT) to DF_PROG.
51465 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
51466 Do not invoke or require the following here,
51467 since prereq.m4 or some gnulib .m4 now does this for us:
51468 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
51469 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
51470 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
51471 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
51472 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
51473 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
51474 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
51476 Do not replace the following functions, as this is now the job
51477 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
51478 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
51479 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
51480 atexit getpass, strdup, getpagesize.
51482 Do not check for the following functions, as this is now the job
51483 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
51484 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
51486 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
51487 Check for sys/sysctl.h.
51488 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
51489 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
51490 of checking for ssize_t ourselves.
51492 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
51493 Require every macro that gnulib/modules/* suggests for us.
51494 (jm_PREREQ_ADDEXT): New macro.
51495 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
51496 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
51498 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
51499 (gl_PHYSMEM): Use it.
51500 Also check for `table' function.
51501 Check for new headers and functions.
51502 Add check for sys/sysmp.h.
51503 With suggestions from Kaveh Ghazi.
51504 Ignore headers that are present but cannot be compiled. This
51505 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
51508 2003-08-15 Paul Eggert <eggert@twinsun.com>
51510 Document merge from coreutils.
51511 * modules/userspec: Depend on posixver.
51512 * modules/strftime: Depend on tzset.
51514 2003-08-15 Paul Eggert <eggert@twinsun.com>
51516 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
51517 rather than tab, after '#' in shell-script copyright notices.
51518 Suggested by Bruno Haible.
51520 2003-08-15 Paul Eggert <eggert@twinsun.com>
51522 * config/srclist-update: Use three spaces, rather than tab, after '#'
51523 in shell-script copyright notices. Suggested by Bruno Haible.
51524 Remove unnecessary parenthesization in regular expression.
51526 2003-08-15 Jim Meyering <jim@meyering.net>
51528 Merge from coreutils.
51529 * lib/xgethostname.c: Include <stdlib.h>.
51530 (xghostname): Don't exit for anything other than memory-related
51531 failure; just return NULL.
51532 * lib/userspec.c: Include "posixver.h".
51533 (parse_user_spec): Accept `.' as a separator only
51534 in pre-POSIX-200112 mode.
51535 * lib/strtoimax.c: Use #elif rather than #else #if.
51536 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
51537 Remove function, now that we can rely on a working tzset function.
51538 [!_LIBC]: Ensure that the required autoconf test has been run.
51539 [!defined _NL_CURRENT && HAVE_STRFTIME]:
51540 Use underlying_strftime for %r.
51541 * lib/sha.c: Merge in some clean-up and optimization changes from
51543 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
51544 Ensure that it is a multiple of 64.
51545 Rearrange loop exit tests so as to avoid performing an
51546 additional fread after encountering an error or EOF.
51547 * lib/realloc.c: Update copyright date.
51549 2003-08-15 Jim Meyering <jim@meyering.net>
51550 and Paul Eggert <eggert@twinsun.com>
51552 Merge from coreutils.
51553 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
51554 member but strut utmpx does not. Needed for AIX 4.3.3.
51555 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
51557 2003-08-15 Jim Meyering <jim@meyering.net>
51558 and Paul Eggert <eggert@cs.ucla.edu>
51560 Merges from coreutils, etc.
51561 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
51562 Require gl_FUNC_TZSET_CLOBBER.
51563 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
51564 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
51567 2003-08-14 Paul Eggert <eggert@twinsun.com>
51569 Help the merge from coreutils.
51570 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
51571 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
51572 * m4/tzset.m4: Use it too.
51574 2003-08-14 Paul Eggert <eggert@twinsun.com>
51576 * modules/tzset: New file.
51578 2003-08-14 Jim Meyering <jim@meyering.net>
51580 Merges from coreutils.
51581 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
51582 variable names, rather than @FNMATCH_H@.
51583 * modules/alloca: Likewise for $(ALLOCA_H).
51585 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
51586 the three copies of the literal target, `fnmatch.h'.
51587 * modules/alloca (alloca.h): Likewise.
51589 2003-08-14 Jim Meyering <jim@meyering.net>
51591 Merge from coreutils.
51592 * m4/tzset.m4: New file.
51593 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
51594 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
51595 otherwise, AIX 5.1 systems would end up using the latter.
51596 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
51597 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
51598 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
51599 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
51601 2003-08-14 Jim Meyering <jim@meyering.net>
51603 Merge from coreutils.
51604 * lib/obstack.h: Whitespace changes.
51605 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
51606 and xcalloc return values.
51607 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
51608 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
51609 hang on OSF/1 5.1 for DIR on both local and remote file systems.
51610 Reported by (and fix confirmed by) Nelson H. F. Beebe.
51611 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
51613 Use mntctl's return value to drive the entry-processing loop, since
51614 we can't rely on the value of the vmt_length member in the last
51615 entry. On some systems doing so could result in exhausting
51616 virtual memory. Based in part on a patch from Mike Jetzer.
51618 2003-08-14 Jim Meyering <jim@meyering.net>
51619 and Paul Eggert <eggert@twinsun.com>
51621 Merges from coreutils, plus other fixes.
51622 * lib/physmem.c: Merge in portability changes from gcc/libiberty
51623 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
51624 for credits and details. Thanks to Kaveh Ghazi for helping
51625 to keep these files in sync.
51626 (ARRAY_SIZE): Define it.
51627 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
51628 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
51629 (memcasecmp): Don't assume size_t fits in unsigned int.
51630 Remove casts and duplicate code.
51631 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
51632 (memcpy): Remove definition.
51633 Merge in some clean-up and optimization changes from glibc.
51634 [BLOCKSIZE]: Move definition to top of file.
51635 Ensure that it is a multiple of 64.
51636 Rearrange loop exit tests so as to avoid performing an
51637 additional fread after encountering an error or EOF.
51638 * lib/md5.h (md5_uintptr): Define.
51639 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
51640 return to the initial working directory. Preserve errno
51642 * lib/idcache.c: Include "xalloc.h".
51643 (xmalloc, xrealloc): Remove decls.
51644 (getuser): Remove casts no longer required in C89.
51645 * lib/human.c: Include stdio.h, for sprintf.
51646 * lib/group-member.c: Include "xalloc.h".
51647 (xmalloc, xrealloc): Remove decls.
51648 (get_group_info): Remove casts no longer required in C89.
51649 * lib/getusershell.c (readname): Remove casts no longer required in
51651 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
51652 * lib/getline.c: Whitespace fix, from coreutils.
51654 2003-08-13 Paul Eggert <eggert@twinsun.com>
51656 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
51659 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
51660 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
51661 Undo previous (whitespace-only) change.
51663 2003-08-13 Paul Eggert <eggert@twinsun.com>
51665 * lib/exclude.c: Include <ctype.h>
51666 (IN_CTYPE_DOMAIN): New macro.
51667 (is_space): New fn.
51668 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
51671 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
51672 Undo previous (whitespace-only) change.
51674 2003-08-13 Paul Eggert <eggert@twinsun.com>
51676 * config/srclist-update: Change update back to the old behavior,
51677 leaving whitespace alone. Use one 'sed' command rather than a
51679 (fixlicense): Now a variable, not a function.
51680 (remove_trailing_blanks): Remove.
51681 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
51682 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
51683 Undo previous (whitespace-only) change.
51685 2003-08-12 Paul Eggert <eggert@twinsun.com>
51687 Merge from coreutils.
51688 * modules/euidaccess: Add lib_SOURCES, include for new
51691 2003-08-12 Paul Eggert <eggert@twinsun.com>
51693 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
51694 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
51695 Normalize leading white space and remove trailing white space.
51697 Merge from coreutils
51698 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
51700 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
51701 0.12.1. These files are now being upgraded automatically by
51702 ../config/srclist-update.
51704 2003-08-12 Paul Eggert <eggert@twinsun.com>
51706 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
51707 Normalize leading white space and remove trailing white space.
51708 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
51709 notice, as per ../config/srclist-update.
51711 Merge from coreutils.
51712 * lib/euidaccess.h: New file.
51713 * lib/euidaccess.c: Include it.
51714 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
51715 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
51716 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
51718 2003-08-12 Paul Eggert <eggert@twinsun.com>
51720 * config/srclist-update: Add copyright notice.
51721 (remove_id_lines, remove_trailing_blanks): New constants.
51722 (fixfile): Use them to normalize spacing a bit in copied files.
51723 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
51724 Normalize leading white space and remove trailing white space.
51726 * config/texinfo.tex: Sync with texinfo.
51728 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
51729 strtoul.c from libc, to merge coreutils whitespace changes.
51731 * config/srclist.txt: Get the following m4 files from gettext:
51732 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
51733 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
51734 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
51737 2003-08-12 Karl Berry <karl@gnu.org>
51739 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
51742 2003-08-11 Paul Eggert <eggert@twinsun.com>
51744 * modules/gnu-source, m4/gnu-source.m4:
51745 Remove; we're assuming Autoconf 2.54 or later now.
51746 Suggested by Bruno Haible.
51747 * MODULES.html.sh (func_all_modules): Remove gnu-source.
51749 2003-08-11 Bruno Haible <bruno@clisp.org>
51751 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
51753 2003-08-11 Bruno Haible <bruno@clisp.org>
51755 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
51756 (vasnprintf): Use it instead of wcslen.
51758 2003-08-11 Bruno Haible <bruno@clisp.org>
51760 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
51761 value to ensure that _Bool promotes to int. Use #define for _Bool when
51762 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
51764 2003-08-10 Karl Berry <karl@gnu.org>
51766 * lib/regex.h: update from libc (whitespace fix).
51768 2003-08-09 Paul Eggert <eggert@twinsun.com>
51770 Merge some files from coreutils. These changes were
51771 originally made by Jim Meyering.
51772 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
51773 many older Unixes require this.
51774 * lib/alloca.c (alloca): Remove cast to argument of free;
51775 no longer needed in C89.
51776 * lib/alloca_.h, regex.h: Fix white space to match
51777 what GNU indent does.
51779 2003-08-09 Paul Eggert <eggert@twinsun.com>
51781 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
51782 apparently Emacs's Unicode mode got confused before my 2003-08-05
51785 2003-08-08 Paul Eggert <eggert@twinsun.com>
51787 * m4/extensions.m4: New file.
51788 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
51789 Require gl_USE_SYSTEM_EXTENSIONS.
51790 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
51791 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
51793 2003-08-08 Paul Eggert <eggert@twinsun.com>
51795 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
51796 * modules/extensions, modules/gnu-source: New files.
51797 * modules/timespec, modules/unlocked-io: Depend on extensions.
51799 2003-08-07 Paul Eggert <eggert@twinsun.com>
51801 * modules/restrict: New file.
51802 * MODULES.html.sh (func_all_modules): Add restrict.
51803 * modules/regex: Depend on restrict.
51805 2003-08-07 Paul Eggert <eggert@twinsun.com>
51807 * m4/restrict.m4: New file.
51808 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
51810 2003-08-07 Bruno Haible <bruno@clisp.org>
51812 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
51813 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
51815 2003-08-07 Bruno Haible <bruno@clisp.org>
51817 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
51818 makes the module 'getndelim2' compatible with the module 'getline'.
51820 2003-08-05 Paul Eggert <eggert@twinsun.com>
51822 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
51823 byte with "\201" to avoid glitches when editing that source file
51824 with multi-gnome-terminal.
51826 2003-08-05 Paul Eggert <eggert@twinsun.com>
51828 * lib/bumpalloc.h: Remove.
51830 2003-08-05 Paul Eggert <eggert@twinsun.com>
51832 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
51833 * modules/bumpalloc: Remove.
51835 2003-08-04 Paul Eggert <eggert@twinsun.com>
51837 * lib/getloadavg.c: Change copyright notice and spacing to conform to
51840 Merge from coreutils.
51841 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
51843 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
51844 from Karl Berry, implemented by Jim Meyering.
51845 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
51846 from Dmitry V. Levin.
51847 Remove anachronistic cast of xrealloc.
51848 * lib/fnmatch_.h (__const): Remove. Use 'const'.
51849 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
51850 type. Otherwise, it wouldn't compile with at least /bin/cc on
51851 ymp-cray-unicos9.0.2.X.
51852 Combine two mostly-identical uses of alloca into one.
51853 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
51855 2003-08-04 Dave Love <d.love@dl.ac.uk>
51859 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
51860 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
51861 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
51862 obsolete NLIST_NAME_UNION.
51863 [__GNU__]: Undef BSD and FSCALE.
51864 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
51866 2003-08-03 Paul Eggert <eggert@twinsun.com>
51868 * lib/stdbool_.h (_Bool): Make it signed char, instead of
51869 an enum type, so that it's guaranteed to promote to int. See:
51870 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
51872 2003-08-03 Karl Berry <karl@gnu.org>
51874 * config/depcomp: update from automake.
51876 2003-07-31 Paul Eggert <eggert@twinsun.com>
51878 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
51879 (strerror): Don't assume that a printable int fits in 14 bytes.
51881 2003-07-31 Bruno Haible <bruno@clisp.org>
51883 * modules/getpass-gnu: New file.
51884 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
51886 2003-07-31 Bruno Haible <bruno@clisp.org>
51888 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
51890 2003-07-24 Karl Berry <karl@gnu.org>
51892 * config/missing: update from automake.
51894 2003-07-24 Derek Robert Price <derek@ximbiot.com>
51895 Bruno Haible <bruno@clisp.org>
51897 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
51898 * lib/getline.c (getline, getdelim): Likewise.
51899 Remove _GNU_SOURCE define; now it's defined in config.h through
51902 2003-07-23 Karl Berry <karl@gnu.org>
51904 * config/config.sub: update from prep.
51906 2003-07-22 Paul Eggert <eggert@twinsun.com>
51908 * modules/xalloc (Depends-on): Add exitfail.
51909 * modules/xmemcoll: Likewise.
51911 2003-07-22 Paul Eggert <eggert@twinsun.com>
51913 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
51914 over-parenthesization in macros.
51916 Sync with coreutils.
51918 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
51921 Use `exit_failure' for xalloc and xmemcoll instead of their own
51922 private exit-failure variables.
51923 * lib/xalloc.h (xalloc_exit_failure): Remove.
51924 * lib/xmalloc.c: Likewise. Include exitfail.h.
51925 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
51926 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
51927 * lib/xmemcoll.c: Likewise. Include exitfail.h.
51928 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
51930 2003-07-20 Jim Meyering <jim@meyering.net>
51932 * modules/closeout (Depends-on): Add exitfail.
51933 Suggestion from Bruno Haible.
51935 2003-07-19 Karl Berry <karl@gnu.org>
51937 * config/config.sub: update from prep.
51939 2003-07-18 Paul Eggert <eggert@twinsun.com>
51941 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
51943 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
51944 to test that it can stand by itself. Include "exitfail.h".
51945 Clients should set exit_failure instead.
51946 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
51948 2003-07-18 Bruno Haible <bruno@clisp.org>
51950 * modules/getndelim2: New file.
51951 * modules/getline: Share files with module getndelim2.
51952 * modules/getnline: Depend on getndelim2 instead of sharing files with
51953 it. Add getnline.c to lib_SOURCES.
51954 * MODULES.html.sh (func_all_modules): Add getndelim2.
51956 2003-07-18 Bruno Haible <bruno@clisp.org>
51958 * m4/getndelim2.m4: New file.
51959 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
51960 invoke gl_PREREQ_GETNDELIM2.
51961 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
51962 gl_PREREQ_GETNDELIM2.
51963 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
51966 2003-07-18 Bruno Haible <bruno@clisp.org>
51968 * lib/getndelim2.h: New file.
51969 * lib/getndelim2.c: Make into a module of its own. Include config.h,
51971 (getndelim2): Make non-static. Change return type to ssize_t.
51972 * lib/getline.h: Change argument names.
51973 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
51974 * lib/getnline.c: Include getndelim2.h.
51976 2003-07-18 Andreas Schwab <schwab@suse.de>
51978 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
51980 2003-07-17 Karl Berry <karl@gnu.org>
51982 * config/config.sub: update from prep.
51984 2003-07-17 Bruno Haible <bruno@clisp.org>
51986 * modules/getnline: New file.
51987 * modules/getline: Add lib/getndelim2.c to source file list.
51988 * MODULES.html.sh (func_all_modules): Add getnline.
51990 2003-07-17 Bruno Haible <bruno@clisp.org>
51992 * m4/getnline.m4: New file.
51994 2003-07-17 Bruno Haible <bruno@clisp.org>
51996 * m4/Makefile.am.in: Remove file.
51997 * m4/Makefile.am: Remove file.
51998 * m4/Makefile.in: Remove file.
52000 2003-07-17 Bruno Haible <bruno@clisp.org>
52002 * lib/getnline.h: New file.
52003 * lib/getnline.c: New file.
52004 * lib/getndelim2.c: New file, extracted from getline.c.
52005 (getndelim2): Renamed from getdelim2, with added nmax argument.
52006 * lib/getline.c: Include getndelim2.c.
52007 (getdelim2): Moved out to getndelim2.c.
52008 (getline, getdelim): Update.
52010 2003-07-17 Bruno Haible <bruno@clisp.org>
52012 * lib/Makefile.am: Remove file.
52013 * lib/Makefile.in: Remove file.
52015 2003-07-17 Bruno Haible <bruno@clisp.org>
52017 * configure.in: Remove file.
52018 * Makefile.in: Remove file.
52020 2003-07-17 Bruno Haible <bruno@clisp.org>
52022 * MODULES.html.sh: Put the </BODY> right before </HTML>.
52024 2003-07-16 Karl Berry <karl@gnu.org>
52026 * config/srclist-update: was running fixlicense twice, which caused
52027 texinfo.tex to be nullified for some reason. Simplify,
52028 $gplsrc is no longer needed as far as I can see?
52030 2003-07-16 Jim Meyering <jim@meyering.net>
52032 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
52034 2003-07-15 Paul Eggert <eggert@twinsun.com>
52036 * config/srclist.txt: Get the following files from gettext-runtime/intl
52037 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
52038 ref-del.sin. From Bruno Haible.
52039 * config/srclist-update (fixfile): Change grep pattern again, since the
52040 previous fix didn't work (there was another trailing $). Use
52041 '[$]' to escape the $s.
52043 2003-07-15 Karl Berry <karl@gnu.org>
52045 * lib/vasnprintf.c: update from gettext.
52047 2003-07-15 Karl Berry <karl@gnu.org>
52049 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
52050 gets expanded when surrounded by '$'.
52052 2003-07-15 Jim Meyering <jim@meyering.net>
52054 * modules/save-cwd: Don't depend on error. From Derek Price.
52056 2003-07-15 Jim Meyering <jim@meyering.net>
52058 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
52060 2003-07-14 Simon Josefsson <jas@extundo.com>
52062 * modules/mempcpy: New file.
52063 * MODULES.html.sh (func_all_modules): Add mempcpy.
52065 2003-07-14 Simon Josefsson <jas@extundo.com>
52067 * m4/mempcpy.m4: New file.
52069 2003-07-14 Simon Josefsson <jas@extundo.com>
52071 * lib/mempcpy.h: New file.
52072 * lib/mempcpy.c: New file.
52074 2003-07-14 Paul Eggert <eggert@twinsun.com>
52076 * modules/getdate, modules/posixtm: Depend on mktime.
52078 2003-07-14 Paul Eggert <eggert@twinsun.com>
52080 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
52081 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
52082 unicodeio.c, unicodeio.h, unlocked-io.h:
52083 Switch from LGPL to GPL.
52085 2003-07-14 Paul Eggert <eggert@twinsun.com>
52087 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
52088 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
52089 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
52090 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
52091 vasprintf.c, vasprintf.h: Regenerate. These files are now being
52092 updated automatically by ../config/srclist-update. This changes
52093 their license from LPGL to GPL.
52095 2003-07-14 Paul Eggert <eggert@twinsun.com>
52097 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
52098 assumed to refer to the root of the most recent stable gettext version.
52099 * config/srclistvars.sh: Add defaults for eggert.
52100 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
52101 Match "This program" as well as "The program". This is needed
52104 2003-07-14 Jim Meyering <jim@meyering.net>
52106 Don't emit diagnostics. Let callers do that.
52107 * lib/save-cwd.c: Don't include "error.h".
52108 (save_cwd): Don't call error. Ensure that errno is valid
52109 when returning nonzero.
52111 * lib/save-cwd.h (restore_cwd): Update prototype.
52112 * lib/save-cwd.c (restore_cwd): Remove two parameters.
52113 Simplify. Don't call error upon failure. Let callers do that.
52114 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
52115 when auditing is enabled. But don't bother updating the #if.
52117 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
52119 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
52120 it breaks C++ compilation.
52121 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
52123 2003-07-10 Simon Josefsson <jas@extundo.com>
52125 * modules/strchrnul (Makefile.am): Add strchrnul.h.
52127 2003-07-10 Jim Meyering <jim@meyering.net>
52129 * m4/clock_time.m4: Remove trailing blank.
52130 * m4/intmax_t.m4: Likewise.
52132 2003-07-10 Jim Meyering <jim@meyering.net>
52134 * lib/vasnprintf.c: Remove trailing blanks.
52135 Make cpp indentation consistent.
52137 2003-07-09 Paul Eggert <eggert@twinsun.com>
52139 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
52140 posixver.c, strftime.c, strnlen.c, strverscmp.c:
52141 Switch from LGPL to GPL.
52143 2003-07-09 Paul Eggert <eggert@twinsun.com>
52145 * config/srclist.txt: Sort sublists. Add
52146 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
52147 that differ from gnulib for one reason or another; we'd like this list
52148 to be smaller but for now let's document what we have.
52150 2003-07-08 Paul Eggert <eggert@twinsun.com>
52152 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
52153 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
52154 and sweeter "eval x=$x".
52155 * config/srclist.txt: Get lib/argp* from glibc.
52157 2003-07-07 Paul Eggert <eggert@twinsun.com>
52159 * lib/mktime.c: Fix some boundary cases and remove need for floating
52162 Issue a compile-time diagnostic if time_t is floating point, or if
52163 two's complement arithmetic is not in effect, or if arithmetic
52164 right shift does not propagate the sign. These assumptions were
52165 all in the original code but they weren't checked.
52167 (TIME_T_MIDPOINT, verify): New macros.
52168 (__isleap): Remove; it has integer overflow problems.
52169 (leapyear): New function, without those problems.
52170 (ydhms_tm_diff): Remove; splitting into two parts.
52171 (ydhms_diff): New function, containing the arithmetic part of
52172 the old ydhms_tm_diff function. Issue a compile-time
52173 diagnostic if we are not using C99 integer division.
52174 Avoid casts when possible.
52175 (guess_time_tm): New function, containing the checking part of
52176 the old ydhms_tm_diff function. Return the new value, rather than
52177 the difference between it and the old. Accept a new argument T
52178 so that *T specifies the old value. Check for overflow in the result.
52180 (__mktime_internal): Use a time_t offset, not a long int offset.
52181 This undoes the 2003-06-04 change, which is no longer needed now
52182 that we have better overflow checking.
52183 (localtime_offset): Likewise.
52185 (__mktime_internal): Avoid harmful overflow on hosts where time_t
52186 and long are 64-bit but int is only 32-bit.
52187 (ydhms_diff): Use long int to store year1 and yday1.
52188 Issue a compile-time diagnostic if long int is not wide enough.
52190 (__mktime_internal): Use long int to store adjusted year and yday.
52191 Use plain C rather than preprocessor commands, if that doesn't
52193 Check for overflow (and try to repair) after each probe
52194 rather than checking only at the very end. This avoids some bugs
52195 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
52196 does not equal GMT offset at maximum time).
52197 Use integer to check for overflow rather than floating point; this
52198 is more portable to non-IEEE hosts, and is a tad faster.
52199 When we detect that we are oscillating between two values,
52200 don't check whether tm_isdst has the requested value, since
52201 we already know the answer. When tm_isdst has the wrong value,
52202 use a different heuristic to find the right one, based on the
52203 extreme values actually observed in practice in tz2003a,
52204 rather than the (overly optimistic) "previous 3 calendar quarters".
52206 (not_equal_tm, print_tm, check_result): Use "const T" rather than
52207 "T const" to accommodate glibc style.
52208 (check_result): Use less-confusing report format. "long" -> "long int.
52210 Don't loop if the iteration overflows time_t.
52211 Allow a negative step in the iteration.
52213 2003-07-06 Karl Berry <karl@gnu.org>
52215 * config/depcomp: update from automake.
52216 * config/config.sub: update from prep.
52218 2003-07-03 Karl Berry <karl@gnu.org>
52220 * config/config.guess: update from prep.
52222 2003-07-01 Paul Eggert <eggert@twinsun.com>
52224 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
52225 xreadlink.c now includes it unconditionally.
52227 2003-07-01 Paul Eggert <eggert@twinsun.com>
52229 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
52230 having it depend on HAVE_SYS_TYPES_H.
52232 2003-07-01 Bruno Haible <bruno@clisp.org>
52234 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
52235 <sys/types.h> should be sufficient.
52236 Reported by Paul Eggert.
52238 2003-06-26 Karl Berry <karl@gnu.org>
52240 * config/depcomp: update from automake.
52242 2003-06-26 Bruno Haible <bruno@clisp.org>
52244 * modules/human: Depend on module stdbool.
52246 2003-06-25 Bruno Haible <bruno@clisp.org>
52248 * modules/readlink: New file.
52249 * modules/xreadlink: Depend on it.
52250 * MODULES.html.sh (func_all_modules): Add readlink.
52252 2003-06-25 Bruno Haible <bruno@clisp.org>
52254 * m4/readlink.m4: New file.
52256 2003-06-25 Bruno Haible <bruno@clisp.org>
52258 * lib/readlink.c: New file.
52260 2003-06-22 Karl Berry <karl@gnu.org>
52262 * config/srclist.txt: update mkinstalldirs from automake.
52263 * config/mkinstalldirs: update.
52265 2003-06-22 Bruno Haible <bruno@clisp.org>
52267 Portability to mingw32.
52268 * m4/ssize_t.m4: New file, from GNU gettext.
52269 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
52270 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
52272 2003-06-22 Bruno Haible <bruno@clisp.org>
52274 * modules/safe-read: Add m4/ssize_t.m4.
52275 * modules/xreadlink: Add m4/ssize_t.m4.
52277 2003-06-20 Bruno Haible <bruno@clisp.org>
52279 Assume C89, so PARAMS isn't needed.
52280 * lib/unicodeio.h (PARAMS): Remove.
52281 * lib/unicodeio.c: Don't use PARAMS.
52283 2003-06-18 Karl Berry <karl@gnu.org>
52285 * config/config.{guess,sub}: update from prep.
52287 2003-06-18 Jim Meyering <jim@meyering.net>
52289 Merge changes from coreutils.
52290 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
52291 Remove explicit declarations of xmalloc and realloc.
52293 (read_utmp): Remove anachronistic cast of xmalloc.
52295 2003-06-17 Paul Eggert <eggert@twinsun.com>
52297 Assume C89, so PARAMS isn't needed.
52298 * lib/backupfile.h (PARAMS): Remove. All uses removed.
52299 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
52300 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
52301 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
52302 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
52303 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
52304 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
52305 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
52306 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
52307 lib/xstrtod.h, lib/xstrtol.h: Likewise.
52308 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
52309 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
52310 no longer needed. Anyway, config.h should always be included before any
52313 2003-06-11 Simon Josefsson <jas@extundo.com>
52315 * modules/sysexits: New file.
52316 * MODULES.html.sh (func_all_modules): Add sysexits.
52318 2003-06-11 Simon Josefsson <jas@extundo.com>
52320 * lib/sysexit_.h: New file.
52322 2003-06-11 Derek Price <derek@ximbiot.com>
52324 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
52327 2003-06-11 Bruno Haible <bruno@clisp.org>
52329 * m4/sysexits.m4: New file.
52331 2003-06-10 Simon Josefsson <jas@extundo.com>
52333 * lib/argp.h: New file, from glibc.
52334 * lib/argp-ba.c: New file, from glibc.
52335 * lib/argp-eexst.c: New file, from glibc.
52336 * lib/argp-fmtstream.c: New file, from glibc.
52337 * lib/argp-fmtstream.h: New file, from glibc.
52338 * lib/argp-fs-xinl.c: New file, from glibc.
52339 * lib/argp-help.c: New file, from glibc.
52340 * lib/argp-namefrob.h: New file, from glibc.
52341 * lib/argp-parse.c: New file, from glibc.
52342 * lib/argp-pv.c: New file, from glibc.
52343 * lib/argp-pvh.c: New file, from glibc.
52344 * lib/argp-xinl.c: New file, from glibc.
52346 2003-06-10 Simon Josefsson <jas@extundo.com>
52348 * modules/strchrnul: New file.
52350 2003-06-10 Simon Josefsson <jas@extundo.com>
52352 * modules/argp: New file.
52354 2003-06-10 Simon Josefsson <jas@extundo.com>
52356 * m4/strchrnul.m4: New file.
52358 2003-06-10 Simon Josefsson <jas@extundo.com>
52360 * lib/strchrnul.h: New file.
52361 * lib/strchrnul.c: New file.
52363 2003-06-10 Bruno Haible <bruno@clisp.org>
52365 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
52367 2003-06-07 Karl Berry <karl@gnu.org>
52369 * config/config.{guess,sub}: update from prep.
52371 2003-06-07 Jim Meyering <jim@meyering.net>
52373 * modules/strtod: Use $(...) notation, not @...@ for
52374 AC_REPLACE'd variables.
52375 * modules/localcharset: Likewise.
52377 2003-06-07 Jim Meyering <jim@meyering.net>
52379 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
52380 in place of my name in the copyright comment.
52381 Remove definition and uses of __P.
52384 * lib/stat.c: Don't declare xmalloc explicitly.
52385 Instead, include "xalloc.h".
52386 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
52387 xrealloc, and xcalloc return values.
52388 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
52390 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
52392 2003-06-07 Bruno Haible <bruno@clisp.org>
52394 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
52395 avoid AC_CONFIG_LINKS.
52396 * modules/fnmatch (Makefile.am): Use explicit creation rule for
52397 fnmatch.h, to avoid AC_CONFIG_LINKS.
52398 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
52400 2003-06-07 Bruno Haible <bruno@clisp.org>
52402 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
52403 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
52404 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
52406 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
52407 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
52410 2003-06-06 Jim Meyering <jim@meyering.net>
52412 Merge from coreutils.
52413 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
52414 Consolidate declarations and initializations of *_base* locals.
52416 Merge from coreutils.
52417 This avoids a core dump on systems without GNU putenv,
52418 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
52419 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
52420 (unsetenv): New static function, from GNU libc.
52421 (rpl_putenv): Use it.
52423 * lib/modechange.c: Remove trailing blanks.
52425 Merge from coreutils.
52426 * lib/fsusage.c: Remove declaration of statfs.
52427 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
52429 * lib/posixtm.c: Include <stdbool.h> unconditionally.
52431 2003-06-06 Jim Meyering <jim@meyering.net>
52433 * lib/stdbool_.h: Renamed from stdbool.h.in.
52435 2003-06-06 Jim Meyering <jim@meyering.net>
52436 Bruno Haible <bruno@clisp.org>
52438 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
52439 Adjust Makefile.am snippet not to redirect directly to target.
52440 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
52442 2003-06-05 Paul Eggert <eggert@twinsun.com>
52444 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
52445 mismatch, look in future quarters as well as past. This fixes a
52446 bug when processing fall-backwards gaps immediately after a long
52447 period of daylight-saving time.
52449 * lib/mktime.c: Assume freestanding C89 or better.
52450 (HAVE_LIMITS_H): Remove. Assume it's 1.
52451 (__P): Remove; not used.
52452 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
52453 (mktime, not_equal_tm, print_tm, check_result,
52454 main): Use prototypes. Use const * where appropriate.
52455 (main): Fix typo in testing code that uncovered by above changes.
52456 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
52458 2003-06-04 Paul Eggert <eggert@twinsun.com>
52460 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
52461 locale.h, localeconv. This merges changes from coreutils.
52463 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
52464 It can be removed after the next Autoconf is released.
52465 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
52468 2003-06-04 Paul Eggert <eggert@twinsun.com>
52470 * lib/mktime.c: Fix Debian bug 177940
52471 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
52472 (localtime_offset): Now long int, not time_t, because we want it
52473 to be guaranteed to be signed. All uses changed.
52474 (__mktime_internal): If overflow would occur when adding offset,
52477 Merge 'human' changes from coreutils. Rewrite to support
52478 locale-specific notations like thousands separators.
52479 * lib/human.c: Simplify authorship notice.
52480 Include human.h immediately after config.h.
52481 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
52482 <limits.h>: Do not include, since human.h does.
52483 (SIZE_MAX, UINTMAX_MAX): New macros.
52484 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
52485 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
52486 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
52487 (power_letter): Renamed from suffixes.
52488 (generate_suffix_backwards): Remove.
52489 (adjust_value): Now takes int style (because of human.h changes)
52490 and long double value (for greater precision on some platforms).
52491 (group_number): New function.
52492 (human_readable): Use it. Use integer options, not enum.
52493 Put the options before the sizes in the arg list.
52494 Support all the new options.
52495 The old human_readable function has been removed;
52496 use inttostr.h instead.
52497 (human_readable, default_block_size, humblock):
52498 Use uintmax_t, not int, for block sizes.
52499 (human_readable_inexact, block_size_types): Remove.
52500 (block_size_opts): New constant.
52501 (human_options): Renamed from human_block_size, with new signature
52502 that allows block sizes up to UINTMAX_MAX. All callers changed.
52503 * lib/human.h: Add copyright and authorship notice.
52504 Include <limits.h> and <stdbool.h> unconditionally.
52505 (PARAMS): Remove. All uses removed.
52506 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
52507 (enum human_inexact_style): Remove tag; now a nameless enum.
52508 (human_floor, human_ceiling, human_round_to_even): Now have
52509 values 2, 0, 1 rather than -1, 1, 0.
52510 (human_group_digits, human_suppress_point_zero, human_autoscale,
52511 human_base_1024, human_SI, human_B): New constants.
52512 (human_readable_inexact, human_block_size): Remove.
52513 (human_readable): Size args are now uintmax_t, not int.
52514 (human_options): New decl.
52516 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
52517 unnecessary now that we assume C89 or better. This change
52518 imported from coreutils.
52520 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
52521 arbitrarily. This is the same patch as 2003-05-28, but it got lost
52522 in the 2003-05-30 sync from glibc.
52524 .h files should stand alone, but we shouldn't include <sys/types.h>
52525 if we can get away with just <stddef.h>.
52527 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
52528 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
52529 rather than <sys/types.h>, as we merely need size_t.
52530 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
52532 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
52533 Include <stdio.h>, to get FILE.
52534 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
52535 memcasecmp.h has included <stddef.h> and all we need is size_t.
52536 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
52537 our interface, instead of including <sys/types.h>
52539 2003-06-04 Paul Eggert <eggert@twinsun.com>
52541 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
52542 now, as glibc mktime is buggy on non-glibc systems.
52544 2003-06-03 Karl Berry <karl@gnu.org>
52546 * config/config.sub: update from prep.
52548 2003-06-02 Paul Eggert <eggert@twinsun.com>
52551 Fix some minor time-related bugs with POSIX time arguments.
52552 Some valid time stamps were being rejected (notably -1, and
52553 time stamps before 1900 on 64-bit hosts). And some invalid
52554 time stamps were being accepted, e.g. September 31.
52556 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
52557 that we can return (time_t) -1 successfully.
52558 * lib/posixtm.c: Likewise.
52559 [HAVE_STDBOOL_H]: Include <stdbool.h>.
52560 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
52561 (t): Remove static var.
52562 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
52563 of static var. All uses changed.
52564 (year): Do not reject years before 1900; they can occur with
52566 (posix_time_parse): Do not check for out-of-range components;
52567 that is now the caller's responsibility, since our checks were
52568 only approximations.
52569 (posixtime): Use mktime to check for out-of-range components,
52570 since it knows them exactly.
52571 If mktime returns (time_t) -1, check whether an error actually occurred
52572 by invoking localtime on -1.
52573 (main) [TEST_POSIXTIME]: Check for input data errors, and report
52574 posixtime failures better.
52575 Improve the test data (in comments only).
52577 2003-06-02 Karl Berry <karl@gnu.org>
52579 * config/mkinstalldirs (version): new variable.
52580 (--version): new option.
52581 (usage): improve message.
52583 2003-05-30 Karl Berry <karl@gnu.org>
52585 * lib/mktime.c: update from libc.
52587 2003-05-30 Bruno Haible <bruno@clisp.org>
52589 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
52590 * config/config.rpath: Upgrade to gettext-0.12.1.
52592 2003-05-30 Bruno Haible <bruno@clisp.org>
52594 * m4/gettext.m4: Upgrade to gettext-0.12.1.
52595 * m4/nls.m4: New file, from gettext-0.12.1.
52596 * m4/po.m4: New file, from gettext-0.12.1.
52597 * m4/progtest.m4: Upgrade to gettext-0.12.1.
52599 2003-05-30 Bruno Haible <bruno@clisp.org>
52601 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
52602 * lib/localcharset.h: Likewise.
52603 * lib/localcharset.c: Likewise.
52605 2003-05-29 Karl Berry <karl@gnu.org>
52607 * config/config.rpath: update from gettext.
52609 2003-05-28 Paul Eggert <eggert@twinsun.com>
52611 Assume the headers required for C89 freestanding compilers.
52612 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
52613 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
52614 * m4/human.m4 (gl_HUMAN): Likewise.
52615 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
52616 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
52617 * m4/userspec.m4 (gl_USERSPEC): Likewise.
52618 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
52619 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52620 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
52622 2003-05-28 Paul Eggert <eggert@twinsun.com>
52624 Assume the headers required for C89 freestanding compilers.
52625 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
52626 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
52627 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
52628 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
52629 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
52630 define, since <limits.h> is guaranteed to do that.
52631 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
52632 * lib/exclude.c: Include <stdbool.h> unconditionally.
52633 * lib/tempname.c: Include <stddef.h> unconditionally.
52634 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
52635 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
52636 <stddef.h> does that.
52637 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
52638 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
52639 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
52641 * lib/xstrtol.c: Likewise.
52642 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
52643 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
52645 * lib/addext.c (addext): Use assignment rather than cast, to avoid
52646 warnings on some platforms.
52648 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
52651 2003-05-26 Jim Meyering <jim@meyering.net>
52653 Merge in a change from coreutils:
52654 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
52655 that is guaranteed to be `no'. Use `no_such_member' to indicate
52656 that condition, rather than `-1' which is slightly misleading.
52657 Change the name of the cache variable to have the gl_ prefix.
52658 Prompted by a patch from Richard Dawe for DJGPP.
52660 2003-05-24 Karl Berry <karl@gnu.org>
52662 * config/config.guess: update from prep.
52664 2003-05-22 Karl Berry <karl@gnu.org>
52666 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
52668 2003-05-20 Karl Berry <karl@gnu.org>
52670 * config/config.guess: update from prep.
52672 2003-05-18 Karl Berry <karl@gnu.org>
52674 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
52675 might actually be set by the user.
52677 * config/depcomp, install-sh, mdate-sh: update from automake.
52679 2003-05-17 Bruno Haible <bruno@clisp.org>
52681 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
52682 invalid expansion for AC_EGREP_CPP.
52683 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
52684 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
52685 Suggested by Akim Demaille <akim@epita.fr> in
52686 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
52688 2003-05-12 Jim Meyering <jim@meyering.net>
52690 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
52691 the space-padded-by-default conversion specifiers, %e, %k, %l.
52693 2003-05-12 Bruno Haible <bruno@clisp.org>
52695 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
52696 the string is longer than 4 KB.
52698 2003-05-11 Karl Berry <karl@gnu.org>
52700 * config/config.{guess,sub}: update from prep.
52702 2003-05-09 Bruno Haible <bruno@clisp.org>
52704 * modules/error: Add m4/strerror_r.m4 to file list.
52706 2003-05-03 Bruno Haible <bruno@clisp.org>
52708 Upgrade to Unicode-4.0.
52709 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
52710 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
52711 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
52712 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
52713 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
52714 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
52715 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
52716 Change width of U+E0100..U+E01EF from 1 to 0.
52718 2003-04-25 Jim Meyering <jim@meyering.net>
52720 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
52721 of type size_t, not int.
52723 2003-04-25 Bruno Haible <bruno@clisp.org>
52725 * lib/copy-file.c: Include <stddef.h>, for size_t.
52727 2003-04-21 Paul Eggert <eggert@twinsun.com>
52729 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
52730 code which expansion is under static control. Patch imported from
52731 Akim Demaille's patch to Bison; see
52732 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
52734 2003-04-14 Bruno Haible <bruno@clisp.org>
52736 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
52738 2003-04-11 Jim Meyering <jim@meyering.net>
52740 Merge changes from Coreutils.
52742 2003-03-22 Jim Meyering <jim@meyering.net>
52744 * lib/strftime.c (widen): Cast alloca return value to proper type.
52746 2003-01-19 Ulrich Drepper <drepper@redhat.com>
52749 * lib/strftime.c (my_strftime): Handle very large width
52750 specifications for numeric values correctly. Improve checks for
52753 2003-01-19 Jim Meyering <jim@meyering.net>
52755 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
52757 (nl_get_alt_digit) [! defined my_strftime]: Define.
52758 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
52759 _nl_get_alt_digit and _nl_get_walt_digit.
52761 * lib/strftime.c (my_strftime): Merge in locale-related changes from
52762 libc. These changes have no effect outside of _LIBC.
52764 2003-04-10 Bruno Haible <bruno@clisp.org>
52766 * modules/findprog: New file.
52767 * MODULES.html.sh (func_all_modules): Add it.
52769 2003-04-10 Bruno Haible <bruno@clisp.org>
52771 * m4/findprog.m4: New file.
52772 * m4/eaccess.m4: New file.
52774 2003-04-10 Bruno Haible <bruno@clisp.org>
52776 * lib/findprog.h: New file, from GNU gettext.
52777 * lib/findprog.c: New file, from GNU gettext.
52779 2003-04-05 Jim Meyering <jim@meyering.net>
52781 Merge changes from Coreutils.
52783 * lib/exclude.h (PARAMS): Remove definition and uses.
52784 * lib/exclude.c: Remove uses of `PARAMS'.
52786 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
52787 Add test-cases for DOS filenames. Declare program_name.
52788 (main): Set up program_name. Patch by Rich Dawe.
52790 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
52792 Use mntctl's return value to drive the entry-processing loop, since
52793 we can't rely on the value of the vmt_length member in the last
52794 entry. On some systems doing so could result in exhausting
52795 virtual memory. Based in part on a patch from Mike Jetzer.
52797 2003-04-04 Bruno Haible <bruno@clisp.org>
52799 * modules/linebreak: New file.
52800 * MODULES.html.sh (func_all_modules): Add it.
52802 2003-04-04 Bruno Haible <bruno@clisp.org>
52804 * m4/linebreak.m4: New file.
52806 2003-04-04 Bruno Haible <bruno@clisp.org>
52808 * lib/linebreak.h: New file, from GNU gettext.
52809 * lib/linebreak.c: New file, from GNU gettext with slight
52811 * lib/lbrkprop.h: New file, from GNU gettext.
52813 2003-04-03 Bruno Haible <bruno@clisp.org>
52815 * modules/utf8-ucs4: New file.
52816 * modules/utf16-ucs4: New file.
52817 * modules/ucs4-utf8: New file.
52818 * modules/ucs4-utf16: New file.
52819 * MODULES.html.sh (func_all_modules): Add them.
52821 2003-04-03 Bruno Haible <bruno@clisp.org>
52823 * m4/utf-ucs4.m4: New file.
52824 * m4/ucs4-utf.m4: New file.
52826 2003-04-03 Bruno Haible <bruno@clisp.org>
52828 * lib/utf8-ucs4.h: New file, from GNU gettext.
52829 * lib/utf16-ucs4.h: New file, from GNU gettext.
52830 * lib/ucs4-utf8.h: New file, from GNU gettext.
52831 * lib/ucs4-utf16.h: New file, from GNU gettext.
52833 2003-04-02 Bruno Haible <bruno@clisp.org>
52835 * modules/binary-io: New file.
52836 * MODULES.html.sh (func_all_modules): Add it.
52838 2003-04-02 Bruno Haible <bruno@clisp.org>
52840 * lib/binary-io.h: New file, from GNU gettext.
52842 2003-04-01 Bruno Haible <bruno@clisp.org>
52844 * modules/pathname: New file.
52845 * MODULES.html.sh (func_all_modules): Add it.
52847 2003-04-01 Bruno Haible <bruno@clisp.org>
52849 * lib/pathname.h: New file, from GNU gettext.
52850 * lib/concatpath.c: New file, from GNU gettext.
52852 2003-03-30 Bruno Haible <bruno@clisp.org>
52854 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
52856 2003-03-30 Bruno Haible <bruno@clisp.org>
52858 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
52859 function chown() doesn't exist.
52861 2003-03-28 Bruno Haible <bruno@clisp.org>
52863 * modules/copy-file: New file.
52864 * MODULES.html.sh (func_all_modules): Add it.
52866 2003-03-28 Bruno Haible <bruno@clisp.org>
52868 * m4/copy-file.m4: New file.
52870 2003-03-28 Bruno Haible <bruno@clisp.org>
52872 * lib/copy-file.h: New file, from GNU gettext.
52873 * lib/copy-file.c: New file, from GNU gettext.
52875 2003-03-18 Jim Meyering <jim@meyering.net>
52877 * lib/quote.c (quote_n): Fix typo in comment.
52879 2003-03-18 Bruno Haible <bruno@clisp.org>
52881 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
52883 * m4/onceonly_2_57.m4: Likewise.
52885 2003-03-17 Bruno Haible <bruno@clisp.org>
52887 * m4/onceonly.m4: Require autoconf 2.54 or newer.
52888 (m4_quote): Remove macro.
52889 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
52891 2003-03-14 Jim Meyering <jim@meyering.net>
52893 Merge changes from Coreutils.
52894 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
52895 to be const, in order to avoid warnings.
52896 (obstack_room): Likewise.
52897 (obstack_empty_p): Likewise.
52899 2003-03-14 Bruno Haible <bruno@clisp.org>
52901 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
52902 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
52904 2003-03-13 Paul Eggert <eggert@twinsun.com>
52906 Merge changes from Bison.
52907 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
52908 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
52909 when compiling Bison 1.875's `bitset bset = obstack_alloc
52910 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
52911 * lib/hash.c: Include <stdbool.h> unconditionally.
52913 2003-03-13 Paul Eggert <eggert@twinsun.com>
52915 * m4/onceonly.m4 (m4_quote): New macro.
52916 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
52917 Quote AC_FOREACH variable-expansions properly.
52919 2003-03-13 Paul Eggert <eggert@twinsun.com>
52921 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
52923 2003-03-09 Paul Eggert <eggert@twinsun.com>
52925 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
52926 Reported by Bruce Becker; see:
52927 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
52929 2003-03-03 Paul Eggert <eggert@twinsun.com>
52930 Bruno Haible <bruno@clisp.org>
52932 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
52933 Reported by John Hughes, see
52934 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
52936 2003-02-20 Bruno Haible <bruno@clisp.org>
52938 * MODULES.html.sh (func_all_modules): Add poll.
52940 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
52942 * modules/poll: New file.
52944 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
52946 * lib/poll_.h: New file.
52947 * lib/poll.c: New file.
52949 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
52951 * m4/poll.m4: New file.
52953 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
52955 * modules/mathl: New file.
52957 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
52959 * lib/mathl.h: New file.
52960 * lib/acosl.c: New file.
52961 * lib/asinl.c: New file.
52962 * lib/atanl.c: New file.
52963 * lib/ceill.c: New file.
52964 * lib/cosl.c: New file.
52965 * lib/expl.c: New file.
52966 * lib/floorl.c: New file.
52967 * lib/frexpl.c: New file.
52968 * lib/ldexpl.c: New file.
52969 * lib/logl.c: New file.
52970 * lib/sincosl.c: New file.
52971 * lib/sinl.c: New file.
52972 * lib/sqrtl.c: New file.
52973 * lib/tanl.c: New file.
52974 * lib/trigl.c: New file.
52975 * lib/trigl.h: New file.
52977 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
52979 * m4/mathl.m4: New file.
52981 2003-02-18 Bruno Haible <bruno@clisp.org>
52983 * MODULES.html.sh (func_all_modules): Add mathl.
52985 2003-02-17 Bruno Haible <bruno@clisp.org>
52987 * modules/mkdtemp: New module.
52988 * MODULES.html.sh (func_all_modules): Add it.
52990 2003-02-17 Bruno Haible <bruno@clisp.org>
52992 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
52994 2003-02-17 Bruno Haible <bruno@clisp.org>
52996 * lib/mkdtemp.h: New file, from GNU gettext.
52997 * lib/mkdtemp.c: New file, from GNU gettext.
52999 2003-02-02 Jim Meyering <jim@meyering.net>
53001 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
53004 2003-01-31 Bruno Haible <bruno@clisp.org>
53006 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
53008 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
53010 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
53012 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
53015 2003-01-31 Bruno Haible <bruno@clisp.org>
53017 * lib/rename.c: #undef rename before defining rpl_rename.
53018 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
53020 2003-01-30 Bruno Haible <bruno@clisp.org>
53022 * modules/vasnprintf, modules/vasprintf: New modules.
53023 * MODULES.html.sh (func_all_modules): Add them.
53025 2003-01-30 Bruno Haible <bruno@clisp.org>
53027 * m4/signed.m4: New file, from GNU gettext.
53028 * m4/longdouble.m4: New file, from GNU gettext.
53029 * m4/wchar_t.m4: New file, from GNU gettext.
53030 * m4/wint_t.m4: New file, from GNU gettext.
53031 * m4/vasnprintf.m4: New file.
53032 * m4/vasprintf.m4: New file.
53034 2003-01-30 Bruno Haible <bruno@clisp.org>
53036 * lib/printf-args.h: New file, from GNU gettext.
53037 * lib/printf-args.c: New file, from GNU gettext.
53038 * lib/printf-parse.h: New file, from GNU gettext.
53039 * lib/printf-parse.c: New file, from GNU gettext.
53040 * lib/vasnprintf.h: New file, from GNU gettext.
53041 * lib/vasnprintf.c: New file, from GNU gettext.
53042 * lib/asnprintf.c: New file, from GNU gettext.
53043 * lib/vasprintf.h: New file, from GNU gettext with modifications.
53044 * lib/vasprintf.c: New file, from GNU gettext.
53045 * lib/asprintf.c: New file, from GNU gettext.
53047 2003-01-29 Bruno Haible <bruno@clisp.org>
53049 * modules/stpncpy: New module.
53050 * MODULES.html.sh (func_all_modules): Add it.
53052 2003-01-29 Bruno Haible <bruno@clisp.org>
53054 * m4/stpncpy.m4: New file.
53056 2003-01-29 Bruno Haible <bruno@clisp.org>
53058 * lib/stpncpy.h: New file, from GNU gettext with modifications.
53059 * lib/stpncpy.c: New file, from GNU gettext with modifications.
53061 2003-01-28 Bruno Haible <bruno@clisp.org>
53063 * modules/c-ctype: New module.
53064 * MODULES.html.sh (func_all_modules): Add it.
53066 2003-01-28 Bruno Haible <bruno@clisp.org>
53068 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
53070 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
53073 2003-01-27 Bruno Haible <bruno@clisp.org>
53075 * modules/xsetenv: New module.
53076 * MODULES.html.sh (func_all_modules): Add it.
53078 2003-01-27 Bruno Haible <bruno@clisp.org>
53080 * lib/xsetenv.h: New file, from GNU gettext.
53081 * lib/xsetenv.c: New file, from GNU gettext.
53083 2003-01-23 Jim Meyering <jim@meyering.net>
53085 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
53086 from working on systems without dirfd (at least Irix and OSF1/Tru64).
53088 2003-01-23 Bruno Haible <bruno@clisp.org>
53090 * modules/minmax: New module.
53091 * MODULES.html.sh (func_all_modules): Add it.
53093 2003-01-23 Bruno Haible <bruno@clisp.org>
53095 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
53098 2003-01-22 Bruno Haible <bruno@clisp.org>
53100 * modules/exit: New module.
53101 * MODULES.html.sh (func_all_modules): Add it.
53103 2003-01-22 Bruno Haible <bruno@clisp.org>
53105 * lib/exit.h: New file, from GNU gettext.
53107 2003-01-19 Bruno Haible <bruno@clisp.org>
53109 * gnulib-tool: Recognize option --extract-maintainer.
53110 (func_get_maintainer): New function.
53111 * modules/*: Add Maintainer entry.
53113 2003-01-16 Jim Meyering <jim@meyering.net>
53115 * m4/regex.m4: The `regex' struct is both input and output.
53116 Initialize it before each use. Patch by Tim Waugh.
53118 2003-01-16 Bruno Haible <bruno@clisp.org>
53120 * MODULES.html.sh: Add a table of contents. Add the module name as
53121 leftmost column. Add hyperlinks.
53123 2003-01-15 Bruno Haible <bruno@clisp.org>
53125 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
53127 2003-01-15 Bruno Haible <bruno@clisp.org>
53129 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
53130 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
53133 2003-01-15 Bruno Haible <bruno@clisp.org>
53135 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
53137 2003-01-15 Bruno Haible <bruno@clisp.org>
53139 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
53140 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
53142 2003-01-14 Jim Meyering <jim@meyering.net>
53144 * lib/same.c (same_name): Tweak a comment.
53146 2003-01-14 Bruno Haible <bruno@clisp.org>
53148 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
53149 when a string comparison is sufficient.
53151 2003-01-14 Bruno Haible <bruno@clisp.org>
53153 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
53156 2003-01-14 Bruno Haible <bruno@clisp.org>
53158 * lib/hash-pjw.c: Add comment about low quality of this function.
53160 2003-01-13 Bruno Haible <bruno@clisp.org>
53162 * modules/stpcpy: Distribute lib/stpcpy.h.
53163 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
53165 2003-01-13 Bruno Haible <bruno@clisp.org>
53167 * modules/*: Add a description.
53168 * modules/strpbrk: Fix Makefile.am snippet.
53169 * modules/strtoimax: Fix dependencies.
53170 * modules/strtoumax: Likewise.
53172 2003-01-13 Bruno Haible <bruno@clisp.org>
53174 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
53175 * modules/alloca (Makefile.am): All object files depend on alloca.h.
53176 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
53178 2003-01-13 Bruno Haible <bruno@clisp.org>
53180 * gnulib-tool (func_create_testdir): Store config/* files in the main
53182 * config.rpath: Move to ...
53183 * config/config.rpath: ... here.
53184 * modules/gettext: Contains config/config.rpath, not config.rpath.
53185 * modules/iconv: Likewise.
53187 2003-01-12 Paul Eggert <eggert@twinsun.com>
53189 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
53190 to avoid collisions with libcurses and libreadline.
53192 * m4/getstr.m4: Remove.
53193 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
53195 2003-01-12 Paul Eggert <eggert@twinsun.com>
53197 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
53198 to avoid collisions with libcurses and libreadline.
53200 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
53201 * lib/getstr.h, getstr.c: Remove.
53202 * lib/getline.c: Include "getline.h", to check interface.
53203 Move body of old getstr.c here: this defines MIN_CHUNK and
53204 declares getdelim2, which is renamed from getstr.
53205 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
53207 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
53209 * lib/linebuffer.h: Likewise.
53210 (readline): Remove backward-compatibility macro.
53212 2003-01-12 Paul Eggert <eggert@twinsun.com>
53214 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
53215 to avoid collisions with libcurses and libreadline.
53217 * MODULES.html.sh: Remove getstr.
53218 * modules/getline: Depend on unlocked-io, not getstr.
53220 2003-01-12 Jim Meyering <jim@meyering.net>
53222 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
53224 2003-01-10 Bruno Haible <bruno@clisp.org>
53226 * modules/alloca: Change Makefile.am requirements. Simplify Include
53227 requirements. Add lib/alloca_.h to file list.
53229 2003-01-10 Bruno Haible <bruno@clisp.org>
53231 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
53233 2003-01-10 Bruno Haible <bruno@clisp.org>
53235 * lib/alloca_.h: New file.
53236 * lib/getdate.y: Unconditionally include alloca.h.
53237 * lib/makepath.c: Likewise.
53238 * lib/setenv.c: Likewise.
53239 * lib/userspec.c: Likewise.
53241 2003-01-09 Karl Berry <karl@gnu.org>
53243 * MODULES.html.sh: include `dirname $0` in PATH, to find
53246 2003-01-09 Bruno Haible <bruno@clisp.org>
53248 * modules/stdbool: Change configure.ac, Makefile.am requirements.
53249 Simplify Include requirements. Add lib/stdbool.h.in to file list.
53251 2003-01-09 Bruno Haible <bruno@clisp.org>
53253 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
53255 2003-01-09 Bruno Haible <bruno@clisp.org>
53257 * lib/stdbool.h.in: New file.
53259 2003-01-09 Bruno Haible <bruno@clisp.org>
53261 * gnulib-tool (func_all_modules): Ignore files ending in ~.
53262 * MODULES.html.sh: Likewise.
53264 2003-01-08 Jim Meyering <jim@meyering.net>
53266 * lib/full-write.c: Undefine and define-away `const' after inclusion
53267 of errno.h, not before. Suggestion from Bruno Haible.
53269 2003-01-08 Bruno Haible <bruno@clisp.org>
53271 * modules/full-read: Depend on full-write.
53273 2003-01-08 Bruno Haible <bruno@clisp.org>
53275 * lib/safe-read.c: Include specification header first, to ensure its
53277 * lib/full-write.c: Likewise.
53279 2003-01-07 Jim Meyering <jim@meyering.net>
53281 * lib/full-write.c: Rework so that it may serve to define full_read,
53283 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
53285 2003-01-07 Bruno Haible <bruno@clisp.org>
53287 * lib/strtoimax.c: Include <stdint.h> as an alternative to
53289 * lib/xstrtol.h: Likewise.
53290 * lib/xstrtoimax.c: Likewise.
53291 * lib/xstrtoumax.c: Likewise.
53292 * lib/human.h: Likewise.
53294 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
53295 on systems that have <inttypes.h> but not <stdint.h>.
53297 2003-01-07 Bruno Haible <bruno@clisp.org>
53299 * MODULES.html.sh: Add copyright notice.
53300 (missed_files): Omit CVS directory entries.
53301 (func_module): Make it work with sed-3.02.
53302 * MODULES.txt: Remove file.
53304 2003-01-06 Jim Meyering <jim@meyering.net>
53306 * lib/version-etc.c: Update year in translatable copyright string.
53308 2003-01-03 Karl Berry <karl@gnu.org>
53310 * config/config.{guess,sub}: update from prep.
53312 2003-01-02 Karl Berry <karl@gnu.org>
53314 * doc/COPYING.DOC: belatedly updated to 1.2.
53316 2003-01-01 Karl Berry <karl@gnu.org>
53318 * gnulib-tool (func_verify_module): report module name $module in
53319 error message, not $1.
53320 * gnulib-tool (create-testdir): don't complain if destdir couldn't
53321 be created, only if it doesn't exist.
53322 * gnulib-tool (last_checkin_date): don't expand the $Date here.
53324 2002-12-31 Paul Eggert <eggert@twinsun.com>
53326 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
53328 2002-12-31 Paul Eggert <eggert@twinsun.com>
53330 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
53331 memcmp if strcoll doesn't work.
53333 2002-12-31 Bruno Haible <bruno@clisp.org>
53335 * lib/utime.c (utime_null): No need to call ftruncate if the file was
53338 2002-12-31 Bruno Haible <bruno@clisp.org>
53340 * lib/memcoll.c (STRCOLL): New macro.
53343 2002-12-31 Bruno Haible <bruno@clisp.org>
53345 * lib/localcharset.h: New file.
53346 * lib/localcharset.c: Include it.
53347 * lib/unicodeio.c: Likewise.
53349 2002-12-31 Bruno Haible <bruno@clisp.org>
53351 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
53352 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
53354 2002-12-31 Bruno Haible <bruno@clisp.org>
53356 * lib/getline.h: Include <stddef.h>, for size_t.
53358 * lib/unicodeio.h: Include <stddef.h>, for size_t.
53359 * lib/unicodeio.c: Don't include <stddef.h>.
53361 2002-12-31 Bruno Haible <bruno@clisp.org>
53363 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
53366 2002-12-24 Karl Berry <karl@gnu.org>
53368 * config/config.guess: update from prep.
53370 2002-12-24 Bruno Haible <bruno@clisp.org>
53372 General infrasructure.
53373 * m4/README: Rewritten.
53374 * m4/onceonly.m4: New file.
53375 * m4/onceonly_2_57.m4: New file.
53378 * m4/atexit.m4: New file.
53381 * m4/strtod.m4: New file.
53384 * m4/strtol.m4: New file.
53387 * m4/strtoul.m4: New file.
53390 * m4/memchr.m4: New file.
53393 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
53394 (jm_FUNC_MEMCMP): Invoke it.
53397 * m4/memcpy.m4: New file.
53400 * m4/memmove.m4: New file.
53403 * m4/memset.m4: New file.
53406 * m4/strcspn.m4: New file.
53409 * m4/strpbrk.m4: New file.
53412 * m4/strstr.m4: New file.
53415 * m4/strerror.m4: New file.
53418 * m4/mktime.m4: Renamed from jm-mktime.m4.
53419 (gl_PREREQ_MKTIME): New macro.
53420 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
53423 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
53424 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
53425 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
53428 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
53429 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
53430 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
53433 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
53434 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
53435 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
53437 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
53440 * m4/xalloc.m4: New file.
53443 * m4/alloca.m4: New file.
53446 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
53447 (jm_FUNC_PUTENV): Invoke it.
53450 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
53451 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
53452 when invoked twice.
53453 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
53457 * m4/memrchr.m4: New file.
53460 * m4/stpcpy.m4: New file.
53463 * m4/strcase.m4: New file.
53466 * m4/strdup.m4: New file.
53469 * m4/strnlen.m4: New file.
53472 * m4/strndup.m4: New file.
53475 * m4/xstrtod.m4: New file.
53478 * m4/xstrtol.m4: New file.
53481 * m4/getdate.m4: New file.
53483 Module unlocked-io.
53484 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
53485 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
53486 * m4/jm-glibc-io.m4n: Remove file.
53488 Module long-options.
53489 * m4/long-options.m4: New file.
53492 * m4/md5.m4: New file.
53495 * m4/sha.m4: New file.
53498 * m4/getstr.m4: New file.
53501 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
53502 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
53503 <sys/types.h>, for size_t. Use the function name gnu_getline, not
53504 simply getline. Infoke gl_PREREQ_GETLINE.
53507 * m4/obstack.m4: New file.
53510 * m4/hash.m4: New file.
53513 * m4/readtokens.m4: New file.
53516 * m4/strverscmp.m4: New file.
53519 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
53523 * m4/strtoll.m4: New file.
53526 * m4/strtoull.m4: New file.
53529 * m4/strtoimax.m4: New file.
53532 * m4/strtoumax.m4: New file.
53535 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
53536 jm_AC_PREREQ_XSTRTOIMAX.
53537 Moved the strtol prerequisites to strtol.m4.
53538 Moved the strtoll prerequisites to strtoll.m4.
53539 Moved the strtoimax prerequisites to strtoimax.m4.
53542 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
53543 jm_AC_PREREQ_XSTRTOUMAX.
53544 Moved the strtoul prerequisites to strtoul.m4.
53545 Moved the strtoull prerequisites to strtoull.m4.
53546 Moved the strtoumax prerequisites to strtoumax.m4.
53549 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
53550 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
53553 * m4/dup2.m4: New file.
53556 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
53557 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
53560 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
53561 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
53563 Module gettimeofday.
53564 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
53565 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
53566 gl_PREREQ_GETTIMEOFDAY.
53569 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
53570 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
53573 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
53574 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
53575 jm_AC_TYPE_UINTMAX_T.
53576 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
53579 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
53580 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
53583 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
53584 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
53587 * m4/timespec.m4 (gl_TIMESPEC): New macro.
53588 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
53589 * m4/st_mtim.m4: Indentation.
53592 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
53593 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
53594 gl_PREREQ_NANOSLEEP.
53597 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
53598 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
53599 (gl_REGEX): New macro.
53602 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
53603 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
53606 * m4/rmdir.m4: New file.
53609 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
53610 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
53611 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
53614 * m4/dirname.m4: New file.
53617 * m4/getopt.m4: New file.
53619 Module unistd-safer.
53620 * m4/unistd-safer.m4: New file.
53623 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
53625 (gl_PREREQ_FNMATCH_EXTRA): New macro.
53626 (gl_FUNC_FNMATCH_POSIX): New macro.
53627 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
53628 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
53632 * m4/exclude.m4: New file.
53635 * m4/human.m4: New file.
53641 * m4/backupfile.m4: New file.
53642 * m4/d-ino.m4: Indentation.
53645 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
53646 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
53647 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
53650 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
53654 * m4/euidaccess.m4: New file.
53657 * m4/file-type.m4: New file.
53660 * m4/fileblocks.m4: New file.
53663 * m4/filemode.m4: New file.
53666 * m4/isdir.m4: New file.
53669 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
53670 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
53673 * m4/makepath.m4: New file.
53676 * m4/modechange.m4: New file.
53679 * m4/mountlist.m4: New file.
53680 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
53683 Module path-concat.
53684 * m4/path-concat.m4: New file.
53687 * m4/pathmax.m4: New file.
53690 * m4/same.m4: New file.
53693 * m4/save-cwd.m4: New file.
53696 * m4/savedir.m4: New file.
53699 * m4/xgetcwd.m4: New file.
53700 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
53703 * m4/xreadlink.m4: New file.
53706 * m4/safe-read.m4: New file.
53709 * m4/safe-write.m4: New file.
53712 * m4/closeout.m4: New file.
53714 Module stdio-safer.
53715 * m4/stdio-safer.m4: New file.
53718 * m4/getpass.m4: New file.
53721 * m4/getugroups.m4: New file.
53723 Module group-member.
53724 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
53725 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
53728 * m4/idcache.m4: New file.
53731 * m4/userspec.m4: New file.
53734 * m4/clock_time.m4: New file.
53735 * m4/gettime.m4: New file.
53738 * m4/settime.m4: New file.
53741 * m4/posixtm.m4: New file.
53743 Module gethostname.
53744 * m4/gethostname.m4: New file.
53747 * m4/canon-host.m4: New file.
53750 * m4/codeset.m4: New file, from gettext-0.11.5.
53751 * m4/gettext.m4: New file, from gettext-0.11.5.
53752 * m4/glibc21.m4: New file, from gettext-0.11.5.
53753 * m4/iconv.m4: New file, from gettext-0.11.5.
53754 * m4/intdiv0.m4: New file, from gettext-0.11.5.
53755 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
53756 * m4/inttypes.m4: New file, from gettext-0.11.5.
53757 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
53758 * m4/isc-posix.m4: New file, from gettext-0.11.5.
53759 * m4/lcmessage.m4: New file, from gettext-0.11.5.
53760 * m4/lib-ld.m4: New file, from gettext-0.11.5.
53761 * m4/lib-link.m4: New file, from gettext-0.11.5.
53762 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
53763 * m4/progtest.m4: New file, from gettext-0.11.5.
53764 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
53765 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
53766 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
53768 Module localcharset.
53769 * m4/localcharset.m4: New file.
53771 Module hard-locale.
53772 * m4/hard-locale.m4: New file.
53775 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
53777 * m4/mbrtowc.m4: Add comment.
53780 * m4/memcasecmp.m4: New file.
53783 * m4/memcoll.m4: New file.
53786 * m4/unicodeio.m4: New file.
53789 * m4/rpmatch.m4: New file.
53792 * m4/yesno.m4: New file.
53795 * m4/exitfail.m4: New file.
53798 * m4/c-stack.m4 (gl_C_STACK): New macro.
53799 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
53802 * m4/error.m4 (gl_ERROR): New macro.
53803 (jm_PREREQ_ERROR): Use onceonly macros.
53806 * m4/fatal.m4: New file.
53809 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
53810 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
53812 Module getpagesize.
53813 * m4/getpagesize.m4: New file.
53815 Module getusershell.
53816 * m4/getusershell.m4: New file.
53819 * m4/physmem.m4: New file.
53822 * m4/posixver.m4: New file.
53825 * m4/quotearg.m4: New file.
53828 * m4/quote.m4: New file.
53831 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
53834 * m4/sig2str.m4: New file.
53837 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
53839 * m4/intmax_t.m4: New file.
53840 * m4/d-type.m4: Indentation.
53841 * m4/jm-macros.m4: Update.
53842 * m4/prereq.m4 (jm_PREREQ): Update.
53843 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
53844 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
53845 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
53846 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
53847 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
53848 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
53849 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
53850 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
53851 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
53852 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
53853 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
53854 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
53855 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
53856 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
53857 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
53858 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
53859 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
53860 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
53861 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
53863 2002-12-24 Bruno Haible <bruno@clisp.org>
53865 * MODULES.txt: Update according to m4/ changes.
53868 * config.rpath: New file, from gettext-0.11.5.
53870 * modules/*: New module descriptions.
53871 * gnulib-tool: New file.
53872 * MODULES.html.sh: New file.
53874 2002-12-21 Karl Berry <karl@gnu.org>
53876 * doc/fdl.texi: update to version 1.2.
53878 2002-12-19 Karl Berry <karl@gnu.org>
53880 * config/config.guess: update from prep.
53882 2002-12-18 Bruno Haible <bruno@clisp.org>
53884 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
53885 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
53887 2002-12-17 Bruno Haible <bruno@clisp.org>
53889 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
53890 stdlib.h, string.h.
53892 2002-12-17 Bruno Haible <bruno@clisp.org>
53894 * lib/canon-host.c (strdup): Remove unused declaration.
53896 * lib/fsusage.c: Include full_read.h.
53897 (get_fs_usage): Use full_read instead of safe_read.
53899 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
53901 2002-12-12 Karl Berry <karl@gnu.org>
53903 * config/config.guess: update from prep.
53905 2002-12-11 Bruno Haible <bruno@clisp.org>
53907 * m4/setenv.m4: New file, from gettext-0.11.5.
53909 2002-12-11 Bruno Haible <bruno@clisp.org>
53911 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
53913 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
53916 2002-12-11 Bruno Haible <bruno@clisp.org>
53918 * setenv.c (alloca): Fall back to malloc.
53919 (freea): New macro.
53920 (setenv): Use freea() to free memory allocated with alloca().
53922 2002-11-13 Bruno Haible <bruno@clisp.org>
53924 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
53925 function declarations.
53926 * unsetenv.c (unsetenv): Likewise.
53928 2002-03-04 Bruno Haible <bruno@clisp.org>
53930 Portability to AIX 4.3.3.
53931 * unsetenv.c: New file, extracted from setenv.c.
53932 * setenv.c: Move the unsetenv() function to unsetenv.c.
53934 2001-12-20 Bruno Haible <bruno@clisp.org>
53936 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
53937 use malloc instead. For SunOS 4.
53939 2001-12-11 Bruno Haible <bruno@clisp.org>
53941 * setenv.c: Declare alloca.
53942 (compar_fn_t): New typedef.
53943 (KNOWN_VALUE, STORE_VALUE): Use it.
53945 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
53948 2002-12-10 Paul Eggert <eggert@twinsun.com>
53950 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
53951 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
53952 Choose values that are less likely to collide with system fnmatch
53954 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
53955 defined (e.g., a pure POSIX system).
53956 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
53957 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
53959 2002-12-06 Paul Eggert <eggert@twinsun.com>
53961 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
53962 a pain in practice to deal with generated m4 files. This change
53963 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
53965 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
53966 and jm-glibc-io.m4, as they are no longer a special case.
53967 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
53968 kludge and the auto-generation stuff. Check only whether the
53969 functions are declared, not whether they exist, since older hosts
53970 that don't declare the functions can't use the optimization anyway.
53972 2002-12-06 Jim Meyering <jim@meyering.net>
53974 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
53976 Merge in changes from libc's misc/error.c, in preparation
53977 for the merge of gnulib's changes back into libc.
53979 * lib/error.c (_): Define only if not already defined.
53980 Move definition to follow all #include directives.
53981 Include unlocked-io.h only if !_LIBC.
53982 [_LIBC]: Include <libio/libioP.h>.
53983 [USE_IN_LIBIO]: Include <libio/iolibio.h>
53984 (fflush): Tweak definition to use INTUSE.
53987 2002-12-05 Paul Eggert <eggert@twinsun.com>
53989 * lib/alloca.c [defined emacs]: Include "lisp.h".
53990 (xalloc_die) [defined emacs]: New macro.
53991 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
53992 [! defined emacs]: Include <xalloc.h>.
53993 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
53994 (pointer): Typedef to POINTER_TYPE *.
53995 (malloc): Remove decl; we now always use xmalloc.
53996 (alloca): Use old-style definition, since Emacs needs this.
53997 Check for arithmetic overflow when computing combined size.
53999 2002-12-04 Paul Eggert <eggert@twinsun.com>
54001 Do not generate unlocked-io.h automatically, since it's easier to
54002 maintain it by hand.
54004 * lib/unlocked-io.h: New file, from GNU diffutils,
54005 but with proper copyright notice and attribution.
54006 * lib/gen-uio: Remove.
54007 * lib/Makefile.am: Add copyright notice.
54008 (libfetish_a_SOURCES): Add unlocked-io.h.
54009 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
54010 (DISTCLEANFILES, io_functions): Remove macros.
54011 (EXTRA_DIST): Remove gen_uio.
54012 (unlocked-io.h): Remove rule.
54014 2002-12-04 Jim Meyering <jim@meyering.net>
54016 Reflect the fact that stat.c and lstat.c are no longer generated.
54017 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
54018 (DISTCLEANFILES): Likewise.
54019 (EXTRA_DIST): Likewise.
54020 (all_local): Don't depend on stat.c or lstat.c.
54021 (stat.c, lstat.c): Remove rules.
54022 (EXTRA_DIST): Remove xstat.in.
54024 * lib/xstat.in: Remove file. Contents moved into stat.c.
54025 * lib/stat.c: New file. Contents mostly from xstat.in.
54026 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
54027 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
54029 * lib/safe-read.c: Rework so that it may serve to define safe_write,
54031 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
54033 2002-12-03 Jim Meyering <jim@meyering.net>
54035 * lib/safe-read.c, safe-write.c: Change variable names and comments,
54036 but not semantics, to minimize the differences between these two files.
54037 (safe_read): Change comment to mention SAFE_READ_ERROR.
54039 * lib/safe-read.c (IS_EINTR): Define.
54040 (safe_read): Use IS_EINTR in place of in-function cpp directives.
54042 2002-12-02 Jim Meyering <jim@meyering.net>
54044 * lib/safe-read.c (EINTR): Define.
54045 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
54046 (INT_MAX): Provide fallback.
54047 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
54049 * lib/safe-read.h (SAFE_READ_ERROR): Define.
54051 2002-12-02 Bruno Haible <bruno@clisp.org>
54053 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
54054 Define, taken from safe-read.c.
54055 (INT_MAX): Provide fallback.
54056 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
54057 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
54059 * lib/safe-read.c (EINTR): Remove definition.
54060 (safe_read): Don't use EINTR if it is absent.
54062 2002-12-01 Jim Meyering <jim@meyering.net>
54064 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
54066 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
54068 2002-11-27 Paul Eggert <eggert@twinsun.com>
54070 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
54071 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
54072 with `if (! (value < limit)) abort ();', for readability.
54074 2002-11-26 Karl Berry <karl@gnu.org>
54076 * lib/strdup.c: copy from libc again, with jim's ok.
54077 * lib/.cppi-disable: re-add strdup.c
54079 2002-11-25 Karl Berry <karl@gnu.org>
54081 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
54082 instead of "strtol.c".
54084 2002-11-25 Karl Berry <karl@gnu.org>
54086 * config/install-sh: update from automake for variable quoting, $0 in
54089 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
54090 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
54093 2002-11-25 Jim Meyering <jim@meyering.net>
54095 * lib/mktime.c: Sync from libc, now that it has the latest fix.
54097 2002-11-24 Karl Berry <karl@gnu.org>
54099 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
54100 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
54102 2002-11-24 Jim Meyering <jim@meyering.net>
54104 Update from coreutils:
54106 * lib/mktime.c: Merge in changes from libc.
54108 Avoid a link-time failure on some Linux systems.
54109 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
54111 (__mon_yday): Declare with the STATIC attribute.
54112 (__mktime_internal): Likewise.
54113 Based on a report from Greg Schafer.
54115 2002-11-23 Jim Meyering <jim@meyering.net>
54117 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
54118 Use `unsigned', not `int', as type of index.
54120 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
54122 * lib/fsusage.c: Remove unneeded parentheses around operands of
54125 2002-11-22 Paul Eggert <eggert@twinsun.com>
54127 * lib/quotearg.h: Allow multiple inclusion by surrounding with
54128 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
54129 so that we can be included first.
54130 (PARAMS): Remove; we now assume C89 or later. All uses removed.
54131 * lib/quotearg.c: Include quotearg.h immediately after config.h.
54132 No need to include stddef.h or sys/types.h any more.
54133 Surround local include files with "", not "<>".
54134 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
54135 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
54136 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
54137 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
54138 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
54139 (ISPRINT): Remove; no longer needed now that we assume C89.
54141 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
54144 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
54145 quotearg_char): Use SIZE_MAX rather than
54146 (size_t) -1 when we are talking about "infinity".
54148 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
54150 2002-11-22 Paul Eggert <eggert@twinsun.com>
54152 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
54153 hint that one should use `if (! x) abort ();' rather than `assert
54154 (x);', and anyway it's one less thing to worry about configuring.
54155 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
54156 hash_rehash, hash_insert): Use abort rather than assert.
54158 2002-11-22 Bruno Haible <bruno@clisp.org>
54160 * lib/safe-read.h: Assume C89. Add comments.
54161 (safe_read): Change return type to size_t.
54162 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
54163 byte counts > SSIZE_MAX correctly.
54164 * lib/safe-write.h: New file.
54165 * lib/safe-write.c: New file.
54166 * lib/full-read.h: New file.
54167 * lib/full-read.c: New file.
54168 * lib/full-write.h: Assume C89. Add comments.
54169 * lib/full-write.c: Include safe-write.h.
54170 (full_write): Rewritten to use safe_write.
54171 Suggested by Jim Meyering and Paul Eggert.
54173 2002-11-21 Jim Meyering <jim@meyering.net>
54175 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
54177 Merge in changes from the coreutils.
54179 2002-09-25 Paul Eggert <eggert@twinsun.com>
54180 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
54182 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
54183 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
54184 int. Work more efficiently if X is the same width as uintmax_t.
54185 Do not compare X to -1, to avoid bogus compiler warning.
54186 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
54187 Don't assume that f_frsize and f_bsize are the same type.
54189 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
54190 warning on FreeBSD.
54192 * lib/makepath.c (make_path): Restore umask *before* creating the final
54194 (make_path): Minor reformatting.
54196 * lib/xmalloc.c: Adjust to work with new autoconf macros,
54197 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
54198 HAVE_MALLOC/HAVE_REALLOC.
54200 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
54201 dummy ones. At least on GNU/Linux systems, `auto' means something
54203 From Michael Stone.
54205 2002-11-21 Bruno Haible <bruno@clisp.org>
54207 Remove case insensitive option matching.
54208 * lib/argmatch.h (argcasematch): Remove declaration.
54209 (ARGCASEMATCH): Remove macro.
54210 (__xargmatch_internal): Remove case_sensitive argument.
54211 (XARGMATCH): Update.
54212 (XARGCASEMATCH): Remove macro.
54213 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
54214 case_sensitive argument.
54215 (argcasematch): Remove function.
54216 (__xargmatch_internal): Remove case_sensitive argument.
54217 (main): Use XARGMATCH instead of XARGCASEMATCH.
54219 * lib/xmalloc.c: Change compile-time error message. Add comment about
54220 required autoconf version.
54222 2002-11-20 Paul Eggert <eggert@twinsun.com>
54224 Merge argmatch cleanups from Bison. Assume C89.
54226 * lib/argmatch.c: Include config.h here, not in argmatch.h.
54227 Include stdlib.h, for EXIT_FAILURE.
54228 Always include <string.h>, since we assume C89.
54229 (EXIT_FAILURE): Remove pre-C89 bug workaround.
54230 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
54231 Include <stddef.h> instead, since it's all we need for size_t.
54232 (PARAMS): Remove. All uses removed.
54233 (ARRAY_CARDINALITY): Do not bother to #undef.
54234 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
54235 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
54236 Remove unnecessary parentheses.
54237 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
54238 Insert necessary parentheses.
54239 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
54240 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
54242 2002-11-19 Bruno Haible <bruno@clisp.org>
54244 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
54245 * lib/mbswidth.h: Include <stddef.h>, for size_t.
54247 * lib/mbswidth.h (PARAMS): Remove macro.
54248 (mbswidth, mbsnwidth): Use ANSI C function declarations.
54249 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
54251 * lib/gcd.h (PARAMS): Remove macro.
54252 (gcd): Use ANSI C function declarations.
54253 * lib/gcd.c (gcd): Likewise.
54255 2002-11-15 Bruno Haible <bruno@clisp.org>
54257 * lib/strcspn.c: Include <stddef.h>.
54258 (strcspn): Use ANSI C function declaration. Change return type to
54260 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
54261 (strpbrk): Use NULL.
54262 * lib/strpbrk.h (PARAMS): Remove macro.
54263 (strpbrk): Use ANSI C function declaration.
54264 * lib/strstr.c: Don't include <sys/types.h>.
54265 * lib/strstr.h (PARAMS): Remove macro.
54266 (strstr): Use ANSI C function declarations.
54268 2002-11-14 Karl Berry <karl@gnu.org>
54270 * config/mkinstalldirs: `do' on separate line, instead of
54273 2002-11-06 Bruno Haible <bruno@clisp.org>
54275 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
54276 * lib/gcd.c (gcd): Likewise.
54278 2002-11-05 Bruno Haible <bruno@clisp.org>
54280 * lib/gcd.h: New file, from gettext-0.11.5.
54281 * lib/gcd.c: New file, from gettext-0.11.5.
54283 2002-11-05 Bruno Haible <bruno@clisp.org>
54285 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
54286 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
54287 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
54288 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
54290 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
54292 * lib/makepath.c: Include gettext.h instead of <locale.h> and
54295 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
54296 * lib/human.c: Include gettext.h instead of <libintl.h>.
54297 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
54298 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
54299 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
54300 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
54301 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
54302 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
54303 (textdomain): Remove definition.
54304 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
54306 * lib/long-options.c: Remove include of <libintl.h> and definition of
54308 * lib/same.c: Remove include of <libintl.h> and definition of _.
54310 2002-11-04 Owen Taylor <otaylor@redhat.com>
54312 * lib/config.charset: A few additions for Solaris.
54314 2002-11-04 Bruno Haible <haible@clisp.cons.org>
54316 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
54317 * lib/localcharset.c (locale_charset): Declare as extern "C".
54319 2002-11-04 Bruno Haible <haible@clisp.cons.org>
54321 * lib/config.charset: msdos in uk_UA uses CP1125.
54323 2002-11-04 Bruno Haible <bruno@clisp.org>
54325 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
54326 * lib/strcase.h: New file, from GNU gettext-0.11.5.
54327 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
54328 * lib/strstr.h: New file, from GNU gettext-0.11.5.
54329 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
54331 2002-11-04 Bruno Haible <bruno@clisp.org>
54333 * lib/localcharset.c (locale_charset): Don't return an empty string.
54335 2002-11-04 Bruno Haible <bruno@clisp.org>
54337 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
54340 2002-11-04 Bruno Haible <bruno@clisp.org>
54342 * lib/config.charset: Update for newest glibc. Add canonical names
54343 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
54345 2002-11-04 Bruno Haible <bruno@clisp.org>
54347 * lib/config.charset: Add support for NetBSD.
54349 2002-11-04 Bruno Haible <bruno@clisp.org>
54351 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
54353 2002-11-01 Bruno Haible <bruno@clisp.org>
54355 * configure.in: Add AC_CONFIG_AUX_DIR call.
54356 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
54358 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
54360 2002-09-28 Karl Berry <karl@gnu.org>
54362 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
54363 installed automake until the next release, since changes have been
54366 2002-09-25 Karl Berry <karl@gnu.org>
54368 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
54369 * lib/getopt*: copy from libc/posix.
54370 * lib/gettext.h: copy from gettext.
54371 * lib/.cppi-disable: add strdup.c, gettext.h.
54373 2002-09-25 Karl Berry <karl@gnu.org>
54375 * config/srclist.txt: enable gettext.h check.
54376 * config/config.{guess,sub}: update from prep.
54377 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
54378 from automake 1.6.3.
54381 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
54383 * regex.c (PATFETCH): Remove the translating fetch.
54384 (PATFETCH_RAW): Rename to PATFETCH.
54385 (set_image_of_range): New fun.
54386 (SET_RANGE_TABLE_WORK_AREA): Use it.
54387 (regex_compile): Don't translate the pattern chars so eagerly.
54388 Only do it when inserting an `exactn' bytecode or when handling
54390 (mutually_exclusive_p): Avoid empty statement.
54392 2002-07-06 Jim Meyering <meyering@lucent.com>
54394 * m4/README: Don't mention Makefile.am.in.
54395 Outline how I've tested changes to .m4 files. Yep, it's a pain.
54397 2002-07-01 Jim Meyering <meyering@lucent.com>
54399 * lib/c-stack.c: Include sys/time.h.
54400 From Volker Borchert.
54402 2002-06-26 Paul Eggert <eggert@twinsun.com>
54404 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
54406 2002-06-26 Paul Eggert <eggert@twinsun.com>
54408 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
54409 New macro. Use it uniformly instead of
54410 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
54411 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
54412 reported by Vin Shelton.
54414 2002-06-22 Paul Eggert <eggert@twinsun.com>
54416 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
54417 Do not assume SA_SIGINFO behavior.
54418 Bug reported by Jim Meyering on NetBSD 1.5.2.
54420 2002-06-22 Jim Meyering <meyering@lucent.com>
54422 * m4/c-stack.m4: New file, from diffutils-2.8.2.
54423 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
54425 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
54426 now that configure.ac uses AC_GNU_SOURCE.
54427 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
54428 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
54430 Update to latest tools. Suggestions from Paul Eggert.
54431 * m4/stdbool.m4: New file, from diffutils-2.8.2.
54432 * m4/gnu-source.m4: Update from diffutils-2.8.2.
54433 * m4/fnmatch.m4: Likewise.
54434 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
54435 to AC_HEADER_STDBOOL
54437 2002-06-22 Jim Meyering <meyering@lucent.com>
54439 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
54440 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
54442 2002-06-22 Jim Meyering <meyering@lucent.com>
54444 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
54446 * lib/exitfail.c, exitfail.h: Likewise.
54447 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
54449 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
54451 (EXTRA_DIST): Add fnmatch_loop.c.
54452 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
54454 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
54455 * lib/fnmatch.c: Update from diffutils-2.8.2.
54456 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
54457 * lib/fnmatch.h: Remove file.
54459 2002-06-21 Jim Meyering <meyering@lucent.com>
54461 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
54462 * m4/mbrtowc.m4: Likewise.
54464 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
54465 * m4/mbswidth.m4: Reflect name change:
54466 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
54467 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
54469 * m4/lib-link.m4: Update from gettext-0.11.2.
54470 * m4/gettext.m4: Likewise.
54472 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
54473 From Alfred M. Szmidt.
54475 2002-06-18 Paul Eggert <eggert@twinsun.com>
54477 * lib/file-type.h: Report an error if neither S_ISREG nor
54478 S_IFREG is defined, instead of using a test specific to glibc
54479 2.2. This should be safe, since POSIX requires S_ISREG and
54480 Unix Version 7 had S_IFREG. We don't need to check for
54481 <sys/types.h> since we don't use any symbols that it defines.
54483 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
54485 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
54486 $@-t, so that each temporary file name is unique and valid in the first
54487 8 characters, for operation under DOS.
54489 2002-06-15 Paul Eggert <eggert@twinsun.com>
54491 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
54493 2002-06-15 Jim Meyering <meyering@lucent.com>
54495 Work even with DJGPP 2.03, which lacks support for symlinks.
54497 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
54499 * lib/lchown.c (S_ISLNK): Likewise.
54501 2002-06-15 Jim Meyering <meyering@lucent.com>
54503 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
54504 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
54505 have been included before this file.
54507 2002-06-14 Jim Meyering <meyering@lucent.com>
54509 * lib/file-type.h: Use the version from diffutils-2.8.2.
54510 * lib/file-type.c: Likewise.
54512 2002-06-07 Jim Meyering <meyering@lucent.com>
54514 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
54515 They're needed at least for NetBSD 1.5.2.
54516 ($statxfs_includes): Include those same headers.
54517 ($statxfs_includes): Include sys/vfs.h if available.
54518 ($statxfs_includes): Likewise for sys/statvfs.h.
54519 Check for the following members in both structs statfs and statvfs:
54520 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
54522 2002-06-01 Jim Meyering <meyering@lucent.com>
54524 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
54525 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
54527 2002-05-28 Jim Meyering <meyering@lucent.com>
54529 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
54530 Reported by Volker Borchert.
54532 2002-05-27 Jim Meyering <meyering@lucent.com>
54534 Fix a problem seen only on nonconforming systems whereby ls.c's
54535 use of localtime, and then of gettimeofday would cause trouble:
54536 the localtime call used to initialize rpl_gettimeofday's save
54537 mechanism would clobber ls's current local time information so
54538 that in any long listing the first file would always be listed
54539 with date 1970-01-01. Analysis by Volker Borchert.
54541 * lib/gettimeofday.c (localtime): Undefine.
54542 (rpl_localtime): New function.
54544 2002-05-27 Jim Meyering <meyering@lucent.com>
54546 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
54549 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
54550 use the replacement function; it wouldn't resolve at link time.
54551 Reported by Volker Borchert.
54553 2002-05-22 Jim Meyering <meyering@lucent.com>
54555 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
54557 * lib/file-type.h: New file.
54558 * lib/file-type.c (file_type): New file/function. Extracted from
54561 2002-04-30 Jim Meyering <meyering@lucent.com>
54563 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
54565 2002-04-29 Paul Eggert <eggert@twinsun.com>
54567 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
54569 2002-04-29 Paul Eggert <eggert@twinsun.com>
54571 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
54572 Do not check for alloca.h (no longer used) or stdbool.h (was never
54573 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
54575 2002-04-29 Paul Eggert <eggert@twinsun.com>
54577 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
54579 2002-04-29 Jim Meyering <meyering@lucent.com>
54581 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
54582 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
54583 Use AC_FUNC_STRNLEN here instead.
54585 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
54586 With autoconf-2.53a, it's part of AC_PROG_CC.
54588 2002-04-28 Paul Eggert <eggert@twinsun.com>
54590 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
54591 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
54593 2002-04-28 Paul Eggert <eggert@twinsun.com>
54595 * lib/sig2str.h, lib/sig2str.c: New files.
54596 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
54598 2002-04-28 Paul Eggert <eggert@twinsun.com>
54600 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
54601 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
54602 of 127, since 64 is the largest conceivable number for ancient
54604 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
54606 2002-04-28 Jim Meyering <meyering@lucent.com>
54608 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
54610 2002-04-24 Jim Meyering <meyering@lucent.com>
54612 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
54613 (jm_PREREQ): Use it.
54615 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
54616 mach/mach.h fcntl.h.
54617 Check for this function: setlocale.
54619 2002-04-24 Jim Meyering <meyering@lucent.com>
54621 * lib/gettext.h: New file, from Gettext.
54622 * lib/Makefile.am (INCLUDES): Remove -I../intl.
54623 (libfetish_a_SOURCES): Add gettext.h.
54625 2002-04-16 Jim Meyering <meyering@lucent.com>
54627 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
54628 ut_pid, ut_id, ut_exit.
54630 2002-04-16 Jim Meyering <meyering@lucent.com>
54632 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
54633 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
54634 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
54636 2002-04-12 Jim Meyering <meyering@lucent.com>
54638 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
54639 now-bogus check for f_type in sys/mount.h. Instead, just test for the
54640 existence of the getmntinfo function. Needed for Darwin 5.3.
54642 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
54643 This is necessary at least on Darwin 5.3.
54645 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
54646 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
54647 strnlen.o in the library, and that makes some versions of ranlib
54650 2002-04-12 Jim Meyering <meyering@lucent.com>
54652 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
54654 2002-04-09 Jim Meyering <meyering@lucent.com>
54656 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
54657 to be more precise. Rather than saying we're checking whether the
54658 function `works', say what we're testing.
54659 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
54660 Reported by Bruno Haible.
54662 2002-03-10 Jim Meyering <meyering@lucent.com>
54664 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
54665 Suggestion from Santiago Vila.
54667 2002-03-08 Jim Meyering <meyering@lucent.com>
54669 * lib/rename.c: Mention that this wrapper is needed also on
54670 mips-dec-ultrix4.4 systems.
54672 2002-03-02 Jim Meyering <meyering@lucent.com>
54674 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
54675 not HAVE_CLOCK_SETTIME.
54677 2002-02-27 Paul Eggert <eggert@twinsun.com>
54679 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
54680 Check for clock_settime.
54682 2002-02-27 Paul Eggert <eggert@twinsun.com>
54684 * lib/nanosleep.h: Rename to....
54685 * lib/timespec.h: New name for nanosleep.h. All uses changed.
54687 * lib/gettime.c: New file.
54688 * lib/settime.c: New file.
54689 * lib/stime.c: Remove.
54691 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
54692 timespec.h. Remove nanosleep.h.
54694 2002-02-25 Paul Eggert <eggert@twinsun.com>
54696 * m4/acl.m4: New file.
54697 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
54698 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
54700 2002-02-25 Paul Eggert <eggert@twinsun.com>
54702 * lib/acl.c, lib/acl.h: New files.
54703 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
54705 2002-02-24 Jim Meyering <meyering@lucent.com>
54707 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
54708 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
54709 cause trouble. Reported by Nelson Beebe.
54711 2002-02-23 Paul Eggert <eggert@twinsun.com>
54713 * lib/path-concat.c (xpath_concat): Reorder code to pacify
54714 compilers that don't know that xalloc_die never returns.
54716 2002-02-20 Jim Meyering <meyering@lucent.com>
54718 * lib/getdate.c: Regenerate using bison-1.33.
54720 2002-02-17 Jim Meyering <meyering@lucent.com>
54722 * config/config.guess (main): Don't use `head -1'; it's no longer
54723 portable. Use `sed 1q' instead.
54725 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
54727 * m4/codeset.m4: Upgrade to gettext-0.11.
54728 * m4/gettext.m4: Upgrade to gettext-0.11.
54729 * m4/glibc21.m4: Upgrade to gettext-0.11.
54730 * m4/iconv.m4: Upgrade to gettext-0.11.
54731 * m4/isc-posix.m4: Upgrade to gettext-0.11.
54732 * m4/lcmessage.m4: Upgrade to gettext-0.11.
54733 * m4/lib-ld.m4: New file, from gettext-0.11.
54734 * m4/lib-link.m4: New file, from gettext-0.11.
54735 * m4/lib-prefix.m4: New file, from gettext-0.11.
54736 * m4/progtest.m4: Upgrade to gettext-0.11.
54738 2002-02-15 Paul Eggert <eggert@twinsun.com>
54740 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
54741 (jm_PREREQ): Use it.
54743 2002-02-15 Paul Eggert <eggert@twinsun.com>
54745 * lib/posixver.c, lib/posixver.h: New files.
54746 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
54748 2002-02-02 Paul Eggert <eggert@twinsun.com>
54749 Bruno Haible <bruno@clisp.org>
54751 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
54752 (fwrite_success_callback): New declaration.
54753 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
54754 print_unicode_char. Call failure callback instead of error.
54755 (fwrite_success_callback): New function.
54756 (exit_failure_callback): New function.
54757 (fallback_failure_callback): New function.
54758 (print_unicode_char): Call unicode_to_mb.
54760 2002-01-26 Jim Meyering <meyering@lucent.com>
54762 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
54763 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
54765 2002-01-26 Jim Meyering <meyering@lucent.com>
54767 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
54769 2002-01-22 Paul Eggert <eggert@twinsun.com>
54771 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
54773 2002-01-22 Jim Meyering <meyering@lucent.com>
54775 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
54776 Otherwise, some versions of automake would omit the rule that makes
54777 Makefile from Makefile.in.
54779 2002-01-21 Paul Eggert <eggert@twinsun.com>
54781 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
54782 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
54783 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
54784 (memcoll): Set errno to zero if there is no error.
54786 * lib/quotearg.c (quotearg_buffer_restyled):
54787 Fix bug with quoting buffers containing NUL when backslashing escapes.
54788 This bug was exposed by the other changes in this patch.
54789 (quotearg_n_options): New arg ARGSIZE.
54790 All callers changed.
54791 (quoting_options_from_style): New function.
54792 (quotearg_n_style): Use it.
54793 (quotearg_n_style_mem): New function.
54795 * lib/quotearg.h (quotearg_n_style_mem): New function.
54797 2002-01-19 Jim Meyering <meyering@lucent.com>
54799 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
54800 Remove useless quotes: DF_PROG="df".
54801 * m4/strnlen.m4: New file.
54803 2002-01-16 Paul Eggert <eggert@twinsun.com>
54805 * lib/backupfile.c (ISDIGIT): Comment fix.
54806 * lib/getdate.y (ISDIGIT): Likewise.
54807 * lib/posixtm.c (ISDIGIT, year): Likewise.
54808 * lib/strverscmp.c (ISDIGIT): Likewise.
54809 * lib/userspec.c (ISDIGIT): Likewise.
54811 2002-01-16 Jim Meyering <meyering@lucent.com>
54813 * lib/getdate.y: Add three semicolons, each just before a closing
54814 brace. Bison (as of version 1.31) no longer papers over that mistake.
54816 2002-01-05 Jim Meyering <meyering@lucent.com>
54818 * lib/version-etc.c (version_etc_copyright): Update copyright year.
54820 2001-12-19 Paul Eggert <eggert@twinsun.com>
54822 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
54823 not silently exit merely because the output buffer happens to
54824 have nothing pending.
54826 2001-12-18 Paul Eggert <eggert@twinsun.com>
54828 See the big note in ../ChangeLog.
54829 * lib/human.c (suffixes): Prefer K to k for 1024.
54830 (generate_suffix_backwards): New function.
54831 (human_readable_inexact): Use it.
54832 * lib/xstrtol.c (__xstrtol): If there is no number but there
54833 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
54834 Accept 'K' as well as 'k'.
54836 2001-12-15 Jim Meyering <meyering@lucent.com>
54838 * lib/regex.h (__restrict_arr): Update from libc.
54840 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
54841 as `remote' if the name starts with `//'. Suggested by Michael Stone.
54844 2001-12-14 Jim Meyering <meyering@lucent.com>
54846 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
54847 Suggestion from Bruno Haible.
54849 2001-12-10 Jim Meyering <meyering@lucent.com>
54851 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
54852 xrealloc, Instead, include "xalloc.h".
54853 (initbuffer): Don't cast xmalloc return value to char*.
54854 (readline): Reword comment.
54855 Don't cast xrealloc return value to char*
54856 Return NULL, not 0.
54858 2001-12-09 Jim Meyering <meyering@lucent.com>
54860 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
54861 about `signed and unsigned type in conditional expression'.
54862 * lib/posixtm.c (posix_time_parse): Likewise.
54864 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
54866 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
54867 to avoid a pedantic warning.
54869 * lib/getstr.c: Don't include assert.h.
54870 (getstr): Remove warning-evoking assertions.
54871 Return -1 if offset parameter is out of bounds.
54872 Change the type of a local from int to size_t.
54874 * lib/strftime.c (my_strftime_localtime_r): Include this function
54875 definition in the `#if ! HAVE_TM_GMTOFF' block.
54877 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
54878 Include xalloc.h instead.
54880 2001-12-02 Jim Meyering <meyering@lucent.com>
54882 * lib/tempname.c: Don't declare getenv, thus reverting the change of
54883 2001-11-18. It's no longer necessary, now that stdlib.h is always
54886 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
54887 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
54889 2001-11-30 Akim Demaille <akim@epita.fr>
54891 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
54892 before being defined.
54894 2001-11-27 Paul Eggert <eggert@twinsun.com>
54896 * lib/quotearg.h (quotearg_n, quotearg_n_style):
54897 First arg is int, not unsigned.
54898 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
54899 (SIZE_MAX, UINT_MAX): New macros.
54900 (quotearg_n_options): Abort if N is negative.
54901 Avoid overflow check on hosts where size_t is 64 bits and int
54902 is 32 bits, as overflow is impossible there.
54903 Fix off-by-one typo that caused unnecessary reallocation.
54905 2001-11-27 Jim Meyering <meyering@lucent.com>
54907 * lib/tempname.c: Merge with version from libc.
54908 * lib/regex.c: Likewise.
54910 * lib/tempname.c: Include stdlib.h unconditionally. On some old
54911 systems for which STDC_HEADERS is 0, it was not included, resulting in
54912 a warning about an integer-to-pointer conversion problem with getenv.
54913 Reported by Volker Borchert.
54915 2001-11-26 Jim Meyering <meyering@lucent.com>
54917 * lib/gtod.h: Remove file.
54918 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
54919 * lib/gettimeofday.c: Don't include gtod.h.
54920 (GTOD_init): Remove function.
54921 (rpl_gettimeofday): Do its job here instead, rather than aborting.
54922 Suggestion from Volker Borchert.
54924 2001-11-23 Jim Meyering <meyering@lucent.com>
54926 * lib/hash.h (struct hash_table): Don't define here. Merely declare
54928 * lib/hash.c (struct hash_table): Define it here instead.
54930 2001-11-22 Jim Meyering <meyering@lucent.com>
54932 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
54934 2001-11-20 Jim Meyering <meyering@lucent.com>
54936 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
54937 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
54939 2001-11-19 Jim Meyering <meyering@lucent.com>
54941 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
54942 directory. Use "conftestXXXXXX" as the template.
54943 Suggestion from Paul Eggert.
54945 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
54946 immediately, so the test doesn't mistakenly hit the max-open-files
54949 2001-11-18 Paul Eggert <eggert@twinsun.com>
54951 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
54952 (TEMPORARIES): New macro.
54953 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
54954 removes an artificial limitation (e.g. HP-UX 10.20, where
54957 2001-11-18 Jim Meyering <meyering@lucent.com>
54959 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
54961 2001-11-18 Jim Meyering <meyering@lucent.com>
54963 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
54966 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
54967 files will be created before anything else.
54969 2001-11-17 Paul Eggert <eggert@twinsun.com>
54971 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
54972 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
54974 2001-11-17 Jim Meyering <meyering@lucent.com>
54976 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
54977 Prompted by a report from Bob Proulx.
54979 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
54980 Instead, require UTILS_FUNC_MKSTEMP.
54982 2001-11-17 Jim Meyering <meyering@lucent.com>
54984 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
54985 Now, that's done as part of AC_FUNC_STRTOD.
54987 2001-11-17 Jim Meyering <meyering@lucent.com>
54989 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
54990 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
54991 rather than group writable. Patch by Juan F. Codagnone.
54993 * lib/readtokens.c: Remove explicit declarations of xmalloc and
54994 xrealloc, Instead, include "xalloc.h".
54996 * lib/mountlist.c: Include unlocked-io.h after all system headers.
54997 Remove explicit declarations of xmalloc, xrealloc,
54998 and xstrdup. Instead, include "xalloc.h".
55000 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
55002 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
55004 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
55006 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
55007 Reported by Padraig Brady.
55009 * lib/mkstemp.c: #undef mkstemp.
55011 (rpl_mkstemp): Rename from mkstemp.
55014 2001-11-16 Jim Meyering <meyering@lucent.com>
55016 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
55017 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
55018 determine the amount of total physical memory, use pstat_getstatic.
55019 HPUX-11 doesn't define _SC_PHYS_PAGES.
55020 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
55021 If sysconf couldn't be used to determine the amount of available
55022 physical memory, use both pstat_getstatic and pstat_getdynamic.
55023 Based on a patch from Bob Proulx.
55025 2001-11-10 Jim Meyering <meyering@lucent.com>
55027 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
55028 (jm_PREREQ): Use it.
55030 2001-11-09 Jim Meyering <meyering@lucent.com>
55032 * m4/jm-macros.m4: Require autoconf-2.52f.
55033 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
55034 Use these AC_-prefixed names, not the AM_-prefixed ones.
55036 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
55038 2001-11-05 Jim Meyering <meyering@lucent.com>
55040 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
55042 2001-11-04 Jim Meyering <meyering@lucent.com>
55044 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
55047 2001-11-03 Jim Meyering <meyering@lucent.com>
55049 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
55052 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
55053 know the name of the variable in the macro definition.
55055 2001-11-03 Jim Meyering <meyering@lucent.com>
55057 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
55058 in argmatch_to_argument call.
55060 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
55063 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
55064 e.g., a fault due to an attempt to free a NULL pointer.
55066 2001-11-01 Jim Meyering <meyering@lucent.com>
55068 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
55069 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
55071 2001-11-01 Jim Meyering <meyering@lucent.com>
55073 * lib/dirfd.c, lib/dirfd.h: New files.
55074 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
55076 * lib/hash.c (hash_print) [TESTING]: Clean up.
55078 2001-10-22 Paul Eggert <eggert@twinsun.com>
55080 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
55081 to avoid a warning if -Wall.
55083 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
55086 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
55087 (per RMS's instructions, this is now the canonical source)
55088 * lgpl/, gpl/: New directories.
55090 2001-10-21 Paul Eggert <eggert@twinsun.com>
55092 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
55094 2001-10-21 Jim Meyering <meyering@lucent.com>
55096 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
55097 this code would end up calling gettext even in packages built
55098 with --disable-nls.
55099 * lib/getopt.c (_): Likewise.
55100 * lib/regex.c (_): Likewise.
55102 2001-10-20 Paul Eggert <eggert@twinsun.com>
55104 * m4/error.m4 (jm_PREREQ_ERROR):
55105 Do not invoke AC_CHECK_FUNCS with strerror_r, as
55106 AC_FUNC_STRERROR_R does that.
55107 Check for strerror declaration.
55109 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
55110 are supposed to have them these days.
55111 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
55112 Merge changes from latest Autoconf CVS.
55113 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
55114 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
55115 POSIX decided to standardize on the int flavor of strerror_r.
55117 2001-10-20 Paul Eggert <eggert@twinsun.com>
55119 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
55120 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
55121 Use strerror_r that is only a macro, even if it is not a function.
55122 (strerror): Check for HAVE_DECL_STRERROR before declaring.
55123 (private_strerror): Use prototypes, not old-style function definition.
55124 (print_errno_message): New function.
55125 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
55126 char*-flavored one.
55127 (error_tail, error, error_at_line): Use it.
55129 2001-10-11 Jim Meyering <meyering@lucent.com>
55131 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
55132 and quote_n (1, ... to avoid clobbering a buffer.
55134 2001-10-05 Jim Meyering <meyering@lucent.com>
55136 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
55138 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
55139 * lib/hash-pjw.h: New file.
55141 2001-09-30 Jim Meyering <meyering@lucent.com>
55143 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
55144 `struct fsstat' has the `f_fstypename' member.
55145 Use that to define FS_TYPE, which is now used to make
55146 the getfsstat link test tighter.
55148 2001-09-30 Jim Meyering <meyering@lucent.com>
55150 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
55151 Include <sys/ucred.h>, for Apple Darwin.
55152 Include sys/mount.h and sys/fs_types.h only if available.
55154 (read_filesystem_list): Use FS_TYPE.
55156 2001-09-29 Paul Eggert <eggert@twinsun.com>
55158 * lib/exclude.c (excluded_filename): 0 -> false, since it's
55161 2001-09-29 Jim Meyering <meyering@lucent.com>
55163 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
55164 [one-argument getmntent function]): Include stdio.h before mntent.h.
55165 SunOS 4.1.x needs it for the declaration of `FILE'.
55166 Patch by Volker Borchert.
55168 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
55169 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
55170 sys/fs_types.h, and make the link-test for getfsstat guard #include
55171 directives with appropriate #if HAVE_*_H tests so that we can
55172 detect getfsstat on Apple Darwin1.3.7 systems.
55173 Reported by Nelson Beebe.
55174 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
55176 2001-09-28 Paul Eggert <eggert@twinsun.com>
55178 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
55179 #defines strtoimax. Also treat the other strto* functions
55182 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
55183 Check for strtoul and strtoumax,
55184 as those declarations are made even in the signed case.
55185 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
55186 Likewise, for strtol and strtoimax.
55188 2001-09-28 Paul Eggert <eggert@twinsun.com>
55190 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
55191 #defines strtoimax. Also treat the other strto* functions
55194 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
55195 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
55196 (strtoimax, strtoumax): Do not declare if already defined as a macro.
55198 2001-09-26 Jim Meyering <meyering@lucent.com>
55200 Most macros in unlocked-io.h had the wrong number of arguments.
55201 * lib/gen-uio: New script.
55202 (USE_UNLOCKED_IO): Define to 1 if not already defined.
55203 * lib/unlocked-io.hin: Remove file.
55204 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
55205 rather than trying to embed it here.
55206 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
55207 Reported by Padraig Brady.
55209 2001-09-25 Volker Borchert <bt@teknon.de>
55211 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
55214 2001-09-24 Jim Meyering <meyering@lucent.com>
55216 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
55218 2001-09-23 Jim Meyering <meyering@lucent.com>
55220 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
55221 instead of the mere test for existence of mntent.h. The latter
55222 would get a false-positive on AIX 3.4 systems.
55223 In the outer getmntent if-block, don't die if neither of the getmntent
55224 tests succeeds. Instead, just fall through and continue with the
55227 2001-09-23 Jim Meyering <meyering@lucent.com>
55229 * lib/mountlist.c: Remove useless parentheses in #if directives.
55230 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
55231 the deprecated MOUNTED symbol is no longer defined in mntent.h.
55233 2001-09-22 Jim Meyering <meyering@lucent.com>
55235 * m4/gettext.m4: New file. From gettext.
55236 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
55237 * m4/progtest.m4: Likewise
55238 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
55239 * m4/glibc21.m4: Likewise.
55241 * m4/libintl.m4: Remove. No longer used.
55243 2001-09-22 Jim Meyering <meyering@lucent.com>
55245 * lib/localcharset.c: Update from latest gettext.
55246 * lib/config.charset: Likewise.
55248 2001-09-20 Jim Meyering <meyering@lucent.com>
55250 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
55252 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
55255 2001-09-20 Jim Meyering <meyering@lucent.com>
55257 * lib/xstrtol.c (strtoimax): Guard declaration with
55258 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
55259 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
55260 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
55261 (strtoumax): Likewise, for completeness (it wasn't necessary).
55263 2001-09-17 Paul Eggert <eggert@twinsun.com>
55265 * lib/strtoimax.c (HAVE_LONG_LONG):
55266 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
55267 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
55268 to work around bug in IBM C compiler.
55270 2001-09-17 Jim Meyering <meyering@lucent.com>
55272 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
55273 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
55274 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
55275 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
55276 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
55277 whenever the right hand side need not be expanded by the shell.
55279 2001-09-16 Paul Eggert <eggert@twinsun.com>
55281 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
55282 library. It's not correct, as some older glibcs are buggy.
55283 fnmatch wasn't fixed until glibc 2.2.
55285 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
55286 special shell magic here.
55288 2001-09-16 Jim Meyering <meyering@lucent.com>
55290 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
55291 * m4/jm-macros.m4: Require it.
55293 2001-09-16 Jim Meyering <meyering@lucent.com>
55295 * lib/mkdir.c: New file.
55297 2001-09-15 Jim Meyering <meyering@lucent.com>
55299 * m4/jm-macros.m4: Check for help2man.
55301 2001-09-11 Jim Meyering <meyering@lucent.com>
55303 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
55304 The body, by Paul Eggert, was moved here from configure.in.
55305 * m4/jm-macros.m4: Require UTILS_HOST_OS.
55307 2001-09-04 Paul Eggert <eggert@twinsun.com>
55309 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
55310 (jm_PREREQ): Use it.
55312 2001-09-04 Paul Eggert <eggert@twinsun.com>
55314 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
55315 Use ssize_t, not int, to store result of readlink.
55316 Check for ssize_t overflow as well as size_t overflow,
55317 as POSIX says the result of readlink is implementation-defined
55318 when ssize_t overflows.
55319 Remove unnecessary cast to char*.
55320 Use free+malloc instead of realloc, as the storage doesn't need
55321 to be preserved and it's clearer and can be more efficient that way.
55322 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
55323 * lib/xreadlink.h (xreadlink): Update prototype.
55325 2001-09-04 Paul Eggert <eggert@twinsun.com>
55327 * lib/xgetcwd.c: Revert some of the previous change; intead,
55328 fix the HAVE_GETCWD_NULL code to behave more like the
55329 !HAVE_GETCWD_NULL code used to.
55331 Include "xalloc.h".
55332 (xgetcwd): Do not return NULL when memory is exhausted; instead,
55335 2001-09-03 Paul Eggert <eggert@twinsun.com>
55337 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
55338 sys/param.h, as pathmax.h includes them.
55340 2001-09-03 Paul Eggert <eggert@twinsun.com>
55342 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
55343 (jm_PREREQ_XGETCWD): New macro.
55345 * m4/getcwd.m4: New file.
55347 2001-09-03 Paul Eggert <eggert@twinsun.com>
55349 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
55350 like the HAVE_GETCWD_NULL code.
55351 Include pathmax.h if not HAVE_GETCWD.
55352 Do not include xalloc.h.
55353 (INITIAL_BUFFER_SIZE): New symbol.
55354 Do not use xmalloc / xrealloc, since the caller is responsible for
55355 handling errors. Preserve errno around `free' during failure.
55356 Do not overrun buffer when using getwd.
55358 2001-09-03 Paul Eggert <eggert@twinsun.com>
55360 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
55361 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
55364 2001-09-03 Paul Eggert <eggert@twinsun.com>
55366 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
55367 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
55368 spotted by Jim Meyering.
55370 2001-09-03 Jim Meyering <meyering@lucent.com>
55372 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
55375 2001-09-02 Jim Meyering <meyering@lucent.com>
55377 * lib/error.c: Update from GNU libc.
55379 2001-09-01 Jim Meyering <meyering@lucent.com>
55381 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
55384 2001-09-01 Jim Meyering <meyering@lucent.com>
55386 * lib/xreadlink.c: New file.
55387 * lib/xreadlink.h: New file.
55388 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
55391 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
55392 doesn't conflict with sparc Solaris 7's definition in
55393 /usr/include/sys/int_types.h.
55395 * lib/exclude.c: Use `""', not `<>' to #include non-system header
55397 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
55398 and strncasecmp as r-values. Unixware didn't have declarations.
55400 2001-08-31 Paul Eggert <eggert@twinsun.com>
55402 * lib/xstrtol.h: Add copyright notice.
55403 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
55404 LONGINT_INVALID_SUFFIX_CHAR.
55406 2001-08-31 Paul Eggert <eggert@twinsun.com>
55408 * lib/xstrtol.c (strtoimax): New decl.
55410 2001-08-31 Paul Eggert <eggert@twinsun.com>
55412 * lib/xgetcwd.c: Don't include pathmax.h.
55413 Include stdlib.h and unistd.h if available.
55415 (xmalloc, xstrdup, free): Remove decls.
55416 (xgetcwd): Don't assume sizes fit in unsigned.
55417 Check for overflow when computing sizes.
55418 Simplify reallocation code.
55420 2001-08-31 Paul Eggert <eggert@twinsun.com>
55422 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
55423 a directory's st_size can have an arbitrary value, so the old
55424 usage could waste an arbitrary amount of memory. All uses
55426 * lib/savedir.h: Update prototype.
55428 2001-08-31 Paul Eggert <eggert@twinsun.com>
55430 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
55432 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
55435 Also, make the following further changes to make this file's
55436 configuration more similar to that of strtol.c:
55437 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
55438 (strtoumax, uintmax_t, strtoull, strtol): Remove.
55439 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
55440 (strtoimax): Renamed from strtoumax. All uses of unsigned values
55441 changed to signed values.
55443 And make the following changes as well:
55444 Fix copyright notice, as 1999 was missing.
55445 (verify): New macro.
55446 (strtoimax): Check sizes at compile-time, not run-time.
55447 Prefer strtol to strtoll if both work.
55448 (main): Remove; it was not that useful and was a pain to maintain.
55450 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
55452 2001-08-31 Jim Meyering <meyering@lucent.com>
55454 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
55455 Use an initial, malloc'd, buffer of length 128 rather than
55456 a statically allocated one of length 1024.
55458 2001-08-30 Paul Eggert <eggert@twinsun.com>
55460 Simplify code, partly by assuming autoconf 2.52 semantics.
55462 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
55464 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
55465 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
55467 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
55468 Move AC_REQUIRE to next-to-top level, to avoid confusion.
55469 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
55470 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
55471 jm_AC_HEADER_INTTYPES_H.
55472 * m4/jm-macros.m4 (jm_MACROS): Likewise.
55474 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
55476 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
55477 Quote first arg of AC_DEFUN.
55478 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
55479 since they are needed to parse the include file even if we need
55480 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
55481 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
55482 but with opposite signedness.
55484 2001-08-30 Paul Eggert <eggert@twinsun.com>
55486 Merge 'exclude' changes from tar 1.13.22.
55487 This fixes one or two unlikely storage allocation overflow bugs,
55488 but doesn't change user-visible behavior otherwise.
55490 2001-08-30 Paul Eggert <eggert@twinsun.com>
55492 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
55493 (jm_PREREQ_EXCLUDE): New macro.
55495 2001-08-30 Paul Eggert <eggert@twinsun.com>
55497 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
55500 2001-08-30 Paul Eggert <eggert@twinsun.com>
55502 * lib/hash.c: Remove '2001' from copyright notice.
55504 2001-08-30 Paul Eggert <eggert@twinsun.com>
55506 * lib/full-write.h: New file.
55507 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
55508 * lib/full-write.c: Correct credits, as cccp.c no longer
55509 exists and anyway it was so heavily changed from the old cccp
55510 code as to be unrecognizable. Include full-write.h.
55511 (full_write) Return size_t, with short writes meaning failure.
55512 All callers changed. This fixes a bug with large buffers
55514 * lib/utime.c: Include full-write.h.
55516 2001-08-30 Paul Eggert <eggert@twinsun.com>
55518 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
55519 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
55520 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
55521 Include if available.
55522 (<xalloc.h>): Include
55523 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
55524 (verify): New macro. Use it to verify that EXCLUDE macros do not
55525 collide with FNM macros.
55526 (struct patopts): New struct.
55527 (struct exclude): Use it, as exclude patterns now come with options.
55528 (new_exclude): Support above changes.
55529 (new_exclude, add_exclude_file):
55530 Initial size must now be a power of two to simplify overflow checking.
55531 (free_exclude, fnmatch_no_wildcards): New function.
55532 (excluded_filename): No longer requires options arg, as the options
55533 are determined by add_exclude. Now returns bool, not int.
55534 (excluded_filename, add_exclude):
55535 Add support for the fancy new exclusion options.
55536 (add_exclude, add_exclude_file): Now takes int options arg.
55537 Check for arithmetic overflow when computing sizes.
55538 (add_exclude_file): xrealloc might modify errno, so don't
55539 realloc until after errno might be used.
55541 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
55543 (free_exclude): New decl.
55544 (add_exclude, add_exclude_file): Now takes int options arg.
55545 (excluded_filename): No longer requires options arg, as the options
55546 are determined by add_exclude. Now returns bool, not int.
55548 2001-08-30 Paul Eggert <eggert@twinsun.com>
55550 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
55552 2001-08-27 Jim Meyering <meyering@lucent.com>
55554 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
55556 * lib/version-etc.c (N_): Remove definition.
55557 Revert most of last change.
55558 Instead, simply don't mark the `Copyright...' string for translation.
55559 Based on advice from Paul Eggert.
55561 * lib/strtoxmax.c: Tweak comment.
55563 2001-08-26 Jim Meyering <meyering@lucent.com>
55565 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
55567 * m4/xstrtoimax.m4: New file.
55568 * m4/xstrtoumax.m4: Add comments explaining why we
55569 AC_REPLACE_FUNCS(strtol).
55571 2001-08-26 Jim Meyering <meyering@lucent.com>
55573 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
55574 of copyright with `%s' so translators don't get an untranslated
55576 (COPYRIGHT_YEAR): Define.
55577 (version_etc): Use fprintf rather than fputs.
55578 Suggestion from Ulrich Drepper.
55580 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
55582 * lib/strtoll.c: New file, from GNU libc.
55583 * lib/xstrtoimax.c: New file.
55585 * lib/xstrtol.h: Add xstrtoimax.
55586 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
55587 * lib/strtoimax.c: New file. Likewise, but first define
55590 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
55592 * lib/strtoxmax.c: ... then renamed to this.
55594 2001-08-18 Paul Eggert <eggert@twinsun.com>
55596 * m4/inttypes.m4: Add AC_PREREQ(2.13).
55597 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
55598 (jm_AC_TYPE_INTMAX_T): New macro.
55599 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
55601 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
55603 * m4/longlong.m4: Renamed from ulonglong.m4.
55604 * m4/inttypes.m4: Renamed from inttypes_h.m4.
55605 * m4/uintmax_t.m4: Removed.
55607 2001-08-13 Paul Eggert <eggert@twinsun.com>
55609 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
55610 Port to Solaris 8, where 'sed' requires a space after the 'r'
55611 command, and where sh dislikes "$/". Clean up the spacing a bit.
55612 Redirect output to $tmp just once.
55614 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
55616 * lib/addext.c (<errno.h>): Include.
55617 (errno): Declare if not defined.
55618 (addext): Work correctly when pathconf returns -1 and leaves
55619 errno alone because there is no limit. Also, work even if
55620 pathconf returns a value greater than SIZE_MAX.
55622 2001-08-12 Jim Meyering <meyering@lucent.com>
55624 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
55625 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
55626 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
55627 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
55628 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
55629 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
55630 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
55631 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
55632 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
55633 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
55634 utime.m4, utimes.m4, xstrtoumax.m4:
55635 Quote the first argument in each use of AC_DEFUN.
55637 2001-08-12 Jim Meyering <meyering@lucent.com>
55639 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
55640 Simply `return getcwd (NULL, 0);'.
55641 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
55642 Use 1300 as initial value for length, not PATH_MAX.
55644 * lib/pathmax.h: Clean up cpp syntax.
55646 2001-08-12 Jim Meyering <meyering@lucent.com>
55648 * lib/gettimeofday.c: New file.
55649 * lib/gtod.h: New file.
55650 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
55652 2001-08-05 Jim Meyering <meyering@lucent.com>
55654 * m4/jm-macros.m4: Require autoconf-2.52.
55656 2001-08-04 Jim Meyering <meyering@lucent.com>
55658 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
55659 stmt, to get in sync with glibc.
55661 2001-08-03 Paul Eggert <eggert@twinsun.com>
55663 The following changes are from gettext 0.10.39 as maintained by
55666 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
55667 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
55668 with inverted sense. All uses changed.
55670 * lib/mbswidth.c: Don't include <limits.h>.
55671 Include <stdlib.h> and <string.h> unconditionally.
55672 (iswcntrl, mbsinit, ISCNTRL): New macros.
55673 (mbsnwidth): Use K&R style function declarations.
55674 Don't bother checking for MB_LEN_MAX == 1, since the compiler
55675 can optimize it when MB_CUR_MAX == 1.
55676 The width of control characters is zero, not 1.
55678 2001-08-03 Paul Eggert <eggert@twinsun.com>
55680 The following changes are from gettext 0.10.39 as maintained by
55681 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
55683 * m4/codeset.m4: Upgrade to serial AM1.
55684 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
55685 all uses changed. Quote first arg of AC_DEFUN.
55686 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
55688 * m4/iconv.m4: Upgrade to serial AM2.
55689 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
55690 Add --with-libconv-prefix.
55691 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
55692 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
55693 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
55694 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
55695 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
55697 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
55698 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
55699 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
55700 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
55701 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
55702 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
55703 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
55704 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
55705 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
55707 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
55710 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
55711 not the default value.
55713 2001-06-25 Bruno Haible <haible@clisp.cons.org>
55714 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
55715 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
55716 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
55717 Also check for iswcntrl, used for wcwidth fallback.
55718 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
55721 2001-08-03 Jim Meyering <meyering@lucent.com>
55723 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
55724 as it was in the original. Reported by Paul Eggert.
55726 2001-07-16 Jim Meyering <meyering@lucent.com>
55728 * m4/gettimeofday.m4: New file.
55729 Prompted by a report from Bernhard Baehr.
55731 2001-07-15 Jim Meyering <meyering@lucent.com>
55733 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
55734 stuff. Now it's in ../Makefile.cfg.
55736 2001-07-15 Jim Meyering <meyering@lucent.com>
55738 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
55739 (BUILT_SOURCES): Add unlocked-io.h.
55740 (io_functions): Define.
55741 (unlocked-io.h): New rule.
55742 (DISTCLEANFILES): Add unlocked-io.h.
55743 (all-local): Depend on unlocked-io.h, to ensure it is created.
55745 * lib/unlocked-io.hin: New file
55747 * lib/regex.c: Update from glibc.
55749 2001-07-05 Jim Meyering <meyering@lucent.com>
55751 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
55753 (libfetish_a_SOURCES): Put all .h files here instead.
55754 Remove a thus-exposed (better checks in automake) duplicate and
55755 two unnecessary .h files.
55757 2001-07-04 Jim Meyering <meyering@lucent.com>
55759 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
55760 that generates jm-glibc-io.m4 so that it doesn't trigger any make
55763 2001-07-02 Jim Meyering <meyering@lucent.com>
55765 The following changes were prompted by suggestions from Bruno Haible.
55767 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
55769 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
55770 definition of EXTRA_DIST.
55771 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
55772 ensure that the generated file is created/updated whenever the list
55773 of $(unlocked_functions) is changed.
55774 (jm-glibc-io.m4): New rule.
55775 (unlocked-io.h): New rule -- currently unused.
55777 2001-06-24 Jim Meyering <meyering@lucent.com>
55779 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
55780 unmatched right bracket, rather than kludging it with an extra,
55781 falsely-matching quote in a comment. Patch by Akim Demaille.
55783 2001-06-11 Jim Meyering <meyering@lucent.com>
55785 * lib/regex.c: Update from GNU libc.
55787 2001-05-27 Jim Meyering <meyering@lucent.com>
55789 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
55790 Check for ut_type in struct utmp.
55792 2001-05-27 Jim Meyering <meyering@lucent.com>
55794 * lib/readutmp.h (UT_TYPE): Define.
55796 2001-05-24 Jim Meyering <meyering@lucent.com>
55798 * lib/argmatch.c: Include "quote.h".
55799 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
55800 quote function. Reported by Göran Uddeborg.
55802 2001-05-22 Jim Meyering <meyering@lucent.com>
55804 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
55805 now that we use the package-supplied version unconditionally.
55806 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
55808 2001-05-21 Jim Meyering <meyering@lucent.com>
55810 * m4/regex.m4: Change a couple backticks to single quotes to avoid
55811 shell syntax errors.
55813 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
55815 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
55817 2001-05-20 Paul Eggert <eggert@twinsun.com>
55819 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
55820 Don't bother to check library strftime, since
55821 we'll be using our own my_strftime function anyway.
55822 Define my_strftime instead of strftime.
55824 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
55826 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
55827 which is not yet declared.
55829 2001-05-15 Jim Meyering <meyering@lucent.com>
55831 * m4/regex.m4: Use proper quoting so brackets appear in the test
55833 Reported by, and with help from, Bruno Haible.
55835 2001-05-13 Jim Meyering <meyering@lucent.com>
55837 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
55840 2001-05-11 Paul Eggert <eggert@twinsun.com>
55842 dirname code cleanup. base_name now behaves more compatibly
55843 with POSIX basename when given file names that have trailing
55844 slashes, and similarly for dir_name. Add new primitives
55845 base_len and dir_len. Put the directory-name-related decls
55848 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
55849 * lib/backupfile.c (base_name): Likewise.
55850 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
55851 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
55852 * lib/makepath.c (strip_trailing_slashes): Likewise.
55853 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
55854 ISSLASH): Likewise.
55855 * lib/rename.c (strip_trailing_slashes): Likewise.
55856 * lib/same.c (base_name): Likewise.
55857 * lib/stripslash.c (ISSLASH): Likewise.
55859 * lib/addext.c: Include <dirname.h> after size_t is defined.
55860 * lib/backupfile.c: Likewise.
55862 * lib/addext.c (addext): Use base_len to trim redundant
55863 trailing slashes instead of doing it ourselves.
55864 But do not trim the last slash if it is not redundant.
55866 * lib/backupfile.c (find_backup_file_name,
55867 max_backup_version): Use base_len instead of rolling it ourselves.
55868 Handle the case of "" and (on DOS) "C:" correctly.
55870 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
55871 needed. Include <string.h>, <dirname.h>.
55872 (base_name): Allow file names ending in slashes, other than names
55873 that are all slashes. In this case, return the basename followed
55874 by the slashes. This is more general, and can be used in places
55875 where the original base_name purposely had an assertion failure.
55876 (base_len): New function.
55878 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
55879 Do not include <assert.h>; no longer needed.
55881 (memrchr): Remove decl.
55882 (dir_name_r): Remove.
55883 (dir_len): Renamed from dirlen. All callers changed.
55884 Rewrite in terms of base_name, for simplicity and consistency.
55885 (dir_name): Never return NULL. All callers changed.
55886 Do not include <stdlib.h> in test program; no longer needed.
55887 return 0; is fine for test program.
55889 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
55891 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
55893 * lib/path-concat.c (path_concat): Use base_len to compute
55894 base length, not strlen; this means we cannot rely on memcpy
55897 * lib/same.c (STREQ): Remove.
55898 (same_name): Handle the case where the basename ends in trailing '/'.
55900 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
55901 a slash was stripped. Do not strip the last slash after a
55902 file system prefix.
55904 2001-05-11 Paul Eggert <eggert@twinsun.com>
55906 * lib/Makefile.am (libfetish_a_SOURCES):
55907 Add strftime.c, since we now compile it on all hosts.
55909 * lib/strftime.c (my_strftime):
55910 Define to nstrftime if emacs, but only if my_strftime is not defined.
55911 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
55912 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
55913 Add one more extra argument: a nanoseconds value.
55916 (my_strftime function): Add %N format.
55917 (emacs_strftimeu): Renamed from emacs_strftime,
55918 with extra ut argument.
55920 2001-05-09 Paul Eggert <eggert@twinsun.com>
55922 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
55924 2001-04-21 Jim Meyering <meyering@lucent.com>
55926 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
55929 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
55931 * m4/ftruncate.m4: Check for chsize.
55932 Link with ftruncate.o unconditionally if ftruncate is missing.
55933 This was required when cross-compiling to i586-mingw32msvc.
55935 2001-04-08 Jim Meyering <meyering@lucent.com>
55937 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
55938 recomputed; that's necessary when the offset spans a DST transition.
55939 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
55941 2001-04-02 Jim Meyering <meyering@lucent.com>
55943 * lib/regex.h, regex.c: Update from GNU libc.
55945 2001-03-24 Jim Meyering <meyering@lucent.com>
55947 * m4/jm-macros.m4: Require autoconf-2.49d.
55949 2001-03-20 Bruno Haible <haible@clisp.cons.org>
55951 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
55953 2001-03-19 Paul Eggert <eggert@twinsun.com>
55955 * lib/version-etc.c (version_etc_copyright): Update to 2001.
55957 2001-03-17 Jim Meyering <meyering@lucent.com>
55959 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
55960 now that the version in autoconf is equivalent.
55961 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
55963 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
55964 Suggestion from Akim Demaille.
55966 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
55967 (jm_PREREQ_TEMPNAME): New function.
55969 2001-03-16 Paul Eggert <eggert@twinsun.com>
55971 * lib/tempname.c (uint64_t): Define to uintmax_t if
55972 not defined, and if UINT64_MAX is not defined.
55973 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
55974 Reported by John David Anglin.
55976 2001-03-15 Bruno Haible <haible@clisp.cons.org>
55978 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
55979 resolve alias if codeset is empty.
55980 * lib/config.charset (BeOS): Use wildcard syntax.
55982 2001-03-13 Jim Meyering <meyering@lucent.com>
55984 * lib/path-concat.c (path_concat)
55985 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
55986 concatenating e.g., `C:' and `foo'.
55989 2001-03-06 Bruno Haible <haible@clisp.cons.org>
55991 * lib/localcharset.c (locale_charset): Don't use
55992 setlocale(LC_CTYPE,NULL). Don't return NULL.
55993 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
55995 2001-03-06 Bruno Haible <haible@clisp.cons.org>
55997 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
55998 support for DOS/DJGPP.
56000 2001-03-01 Paul Eggert <eggert@twinsun.com>
56002 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
56003 lacks mkstemp. Compile our own tempname.c if we compile our own
56004 mkstemp.c, as mkstemp relies on tempname.
56006 2001-03-01 Jim Meyering <meyering@lucent.com>
56008 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
56009 AH_VERBATIM really does output its argument verbatim.
56011 2001-02-28 Paul Eggert <eggert@twinsun.com>
56013 * lib/Makefile.am (libfetish_a_SOURCES):
56014 Add dup-safer.c, fopen-safer.c.
56015 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
56017 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
56018 * lib/unistd-safer.h: New files.
56020 2001-02-25 Paul Eggert <eggert@twinsun.com>
56022 The mkstemp replacement is taken from glibc 2.2.2, with some
56023 portability fixes for use outside glibc, as follows:
56025 * lib/tempname.c (struct_stat64): New macro.
56026 (direxists, __gen_tempname): Use it.
56027 This avoids a portability problem with Solaris 8.
56029 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
56030 (<stddef.h>, <stdint.h>, <string.h>):
56031 Include only if STDC_HEADERS || _LIBC.
56032 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
56033 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
56034 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
56035 (__set_errno): Define this macro if <errno.h> doesn't.
56036 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
56037 Define these macros if <stdio.h> doesn't.
56038 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
56039 Define these macros if <sys/stat.h>
56040 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
56041 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
56042 __xstat64): Define if not _LIBC.
56043 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
56044 (__gen_tempname): Invoke gettimeofday only if
56045 HAVE_GETTIMEOFDAY || _LIBC;
56046 otherwise, fall back on plain "time".
56047 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
56049 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
56051 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
56053 2001-02-18 Paul Eggert <eggert@twinsun.com>
56055 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
56057 2001-02-17 Paul Eggert <eggert@twinsun.com>
56059 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
56060 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
56061 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
56062 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
56064 2001-02-17 Paul Eggert <eggert@twinsun.com>
56066 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
56067 Remove workaround macros for hosts that have mbrtowc but not
56068 mbstate_t, as we now insist on proper declarations for both
56069 before using mbrtowc.
56071 2001-02-17 Jim Meyering <meyering@lucent.com>
56073 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
56074 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
56075 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
56078 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
56079 rather than AC_CACHE_VAL.
56081 2001-02-17 Jim Meyering <meyering@lucent.com>
56083 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
56084 around included file name.
56086 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
56088 * lib/strftime.c: Update from GNU libc (the only changes were to
56091 2001-02-17 Jim Meyering <meyering@lucent.com>
56093 * lib/regex.c: Update from libc.
56095 2001-02-17 Bruno Haible <haible@clisp.cons.org>
56097 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
56100 2001-02-16 Paul Eggert <eggert@twinsun.com>
56102 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
56103 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
56104 Reported by Mark Hounschell via Paul Eggert.
56106 2001-02-07 Jim Meyering <meyering@lucent.com>
56108 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
56110 2001-02-05 Jim Meyering <meyering@lucent.com>
56112 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
56113 it includes the patch required for `large file' support with at least
56114 HP-UX's 10.20 /bin/cc.
56116 2001-02-03 Jim Meyering <meyering@lucent.com>
56118 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
56119 AS_IF, now that it works once again (mysteriously).
56120 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
56122 2001-01-30 Jim Meyering <meyering@lucent.com>
56124 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
56125 * m4/chown.m4: Rename conftestchown to conftest.chown.
56126 * m4/rename.m4: s/conftestdir/conftest.d1/ and
56127 s/conftestdir2/conftest.d2/.
56128 * m4/utimes.m4: s/conftestdata/conftest.data/
56129 Inspired by Pavel Roskin's change in autoconf.
56131 2001-01-30 Bruno Haible <haible@clisp.cons.org>
56133 * lib/config.charset: Update for FreeBSD 4.2.
56135 2001-01-27 Jim Meyering <meyering@lucent.com>
56137 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
56139 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
56141 2001-01-26 Jim Meyering <meyering@lucent.com>
56143 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
56144 quotearg.c includes it.
56146 2001-01-26 Jim Meyering <meyering@lucent.com>
56148 * lib/quotearg.c: Include stddef.h.
56149 * lib/quote.c: Include stddef.h.
56150 Reported by Axel Kittenberger.
56152 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
56153 line in double quotes so that it evokes a better diagnostic.
56154 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
56155 Reported by Axel Kittenberger.
56157 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
56159 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
56160 as if it was a `charset'.
56162 2001-01-21 Bruno Haible <haible@clisp.cons.org>
56164 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
56167 2001-01-21 Bruno Haible <haible@clisp.cons.org>
56169 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
56170 to avoid a warning. Add back 'const' to inptr.
56172 2001-01-20 Jim Meyering <meyering@lucent.com>
56174 Be sure that headers are checked before used in code compiled
56175 for the type checks.
56176 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
56177 In place of that, invoke jm_CHECK_ALL_TYPES.
56178 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
56179 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
56180 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
56181 The check for ssize_t was mistakenly run before the test for unistd.h.
56183 The configure-time check for stdbool.h was missing.
56184 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
56185 (jm_PREREQ_HASH): New function.
56187 2001-01-17 Jim Meyering <meyering@lucent.com>
56189 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
56190 for autoconf-2.49c.
56191 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
56193 2001-01-16 Jim Meyering <meyering@lucent.com>
56195 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
56198 2001-01-14 Jim Meyering <meyering@lucent.com>
56200 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
56201 foo and bar. Create conftestdir/ in the script, not in the C code.
56202 Remove directories in the script, not in the C code.
56203 Remove conftestdir{,2} before trying to create the directory.
56204 Make the entire configure script fail if the mkdir fails.
56206 2001-01-14 Jim Meyering <meyering@lucent.com>
56208 * lib/rename.c: New file. From Volker Borchert.
56209 Include stdlib.h, string.h or strings.h, and xalloc.h.
56210 Use strip_trailing_slashes rather than open-coding it.
56212 2001-01-03 Paul Eggert <eggert@twinsun.com>
56214 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
56216 2001-01-03 Jim Meyering <meyering@lucent.com>
56218 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
56219 of local `inptr' to avoid warning with some system declarations of
56222 2001-01-02 Volker Borchert <bt@teknon.de>
56224 * m4/rename.m4: New file.
56225 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
56227 2001-01-01 Jim Meyering <meyering@lucent.com>
56229 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
56230 even on systems with utmpx.h. It's necessary for the declaration of
56231 utmp's ut_user member. Reported by Andreas Jaeger.
56233 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
56234 available. They are required for the declarations of getgrgid and
56236 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
56237 Reported by Andreas Jaeger.
56239 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
56241 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
56242 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
56243 so `make install' also works in VPATH builds.
56245 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
56247 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
56248 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
56249 can be used in subdirectories.
56251 2000-12-29 Paul Eggert <eggert@twinsun.com>
56253 * lib/modechange.c: Do not assume that mode_t uses the
56254 traditional octal encoding. E.g. "chmod 1 FOO" should set
56255 the other-execute bit of FOO even if S_IXOTH != 1.
56257 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
56258 WOTH, XOTH, ALLM): New macros.
56259 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
56260 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
56262 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
56263 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
56265 No need to use uintmax_t; unsigned long is long enough.
56266 Don't bother to get suffix since we don't use it.
56268 2000-12-26 Jim Meyering <meyering@lucent.com>
56270 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
56271 better with autoheader.
56273 2000-12-24 Jim Meyering <meyering@lucent.com>
56275 * lib/hash.c (is_prime): Return explicit boolean values.
56276 (hash_get_first): Return NULL to appease Irix5.6's 89.
56277 Reported by Nelson Beebe.
56279 2000-12-19 Bruno Haible <haible@clisp.cons.org>
56281 * lib/localcharset.c (locale_charset): Add support for Win32.
56283 2000-12-18 Paul Eggert <eggert@twinsun.com>
56285 * lib/physmem.h, lib/physmem.c: New files.
56287 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
56288 (noinst_HEADERS): Add physmem.h.
56290 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
56291 't' for compatibility with Solaris 8 sort.
56293 2000-12-18 Bruno Haible <haible@clisp.cons.org>
56295 * lib/config.charset: Add support for BeOS.
56297 2000-12-17 Jim Meyering <meyering@lucent.com>
56299 * m4/dos.m4 (jm_AC_DOS): New file and macro.
56300 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
56302 2000-12-16 Jim Meyering <meyering@lucent.com>
56304 This bug had a serious impact on chown: `chown N:M FILE' (for integer
56305 N and M) would have treated it like `chown N:N FILE'.
56307 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
56309 2000-12-16 Jim Meyering <meyering@lucent.com>
56311 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
56312 SHELLS_FILE to a file name that's useful on djgpp systems.
56314 (ADDITIONAL_DEFAULT_SHELLS): Define.
56315 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
56316 Based mostly on a patch from Prashant TR.
56318 2000-12-16 Bruno Haible <haible@clisp.cons.org>
56320 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
56321 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
56322 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
56324 2000-12-08 Andreas Schwab <schwab@suse.de>
56326 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
56327 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
56329 2000-12-07 Jim Meyering <meyering@lucent.com>
56331 * lib/stripslash.c (ISSLASH): Define.
56332 (strip_trailing_slashes): Use ISSLASH rather than comparing against
56336 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
56337 (dir_name_r): Declare this function as static.
56338 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
56339 manifest itself on a name containing a mix of slashes and
56341 Make this function work with names starting with a DOS-style
56342 drive letter and colon prefix.
56343 (dir_name): Append `.' if necessary.
56344 Based mostly on patches from Prashant TR and Eli Zaretskii.
56346 * lib/dirname.h (dir_name_r): Remove prototype.
56348 2000-12-06 Paul Eggert <eggert@twinsun.com>
56350 * m4/off_t-format.m4: Remove this file.
56351 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
56353 2000-12-06 Jim Meyering <meyering@lucent.com>
56355 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
56356 replacement strtoull, we may well need the replacement strtoul, too.
56357 Check for declarations of strtoul and strtoull.
56358 Check for strtol. Mainly as a cue to cause automake to include
56359 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
56360 Check for limits.h -- strtol.c needs it.
56362 2000-12-05 Jim Meyering <meyering@lucent.com>
56364 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
56366 2000-12-04 Jim Meyering <meyering@lucent.com>
56368 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
56369 Also include memory.h, stdlib.h, unistd.h if appropriate.
56370 Reported by Andreas Jaeger (conflicting declaration of malloc).
56372 2000-12-02 Jim Meyering <meyering@lucent.com>
56374 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
56375 * m4/jm-macros.m4 (jm_MACROS): require it.
56377 2000-12-02 Jim Meyering <meyering@lucent.com>
56379 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
56381 2000-12-01 Paul Eggert <eggert@twinsun.com>
56383 * lib/memrchr.c: Include <config.h> before any system include file.
56385 2000-11-30 Jim Meyering <meyering@lucent.com>
56387 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
56389 2000-11-30 Jim Meyering <meyering@lucent.com>
56391 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
56393 2000-11-29 Paul Eggert <eggert@twinsun.com>
56395 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
56397 2000-11-26 Jim Meyering <meyering@lucent.com>
56399 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
56401 2000-11-22 Paul Eggert <eggert@twinsun.com>
56403 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
56404 size of (size_t) -1; it's not portable.
56406 2000-11-17 Jim Meyering <meyering@lucent.com>
56408 * lib/strstr.c: Update from GNU libc.
56410 2000-11-17 Akim Demaille <akim@epita.fr>
56412 * lib/obstack.h: Formatting changes.
56413 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
56414 prevent type checking.
56415 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
56416 cast the value to (void *): assigning a `foo *' to a `void *'
56418 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
56420 2000-11-16 Jim Meyering <meyering@lucent.com>
56422 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
56424 2000-11-11 Jim Meyering <meyering@lucent.com>
56426 * lib/error.c: Add a couple #includes, merging from GNU libc version.
56428 2000-11-10 Jim Meyering <meyering@lucent.com>
56430 * lib/obstack.h: Update from GNU libc.
56431 * lib/obstack.c: Likewise.
56433 2000-11-08 Bruno Haible <haible@clisp.cons.org>
56435 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
56437 2000-11-06 Paul Eggert <eggert@twinsun.com>
56439 * lib/getusershell.c (setusershell): Use rewind rather than
56440 fseek/fseeko, to avoid configuration hassles with fseeko.
56441 Don't bother opening SHELLS_FILE if shellstream is NULL;
56442 it's not necessary.
56444 2000-11-05 Jim Meyering <meyering@lucent.com>
56446 * lib/makepath.h (make_dir): Declare.
56447 * lib/makepath.c (make_dir): Remove `static' attribute.
56450 2000-11-04 Jim Meyering <meyering@lucent.com>
56452 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
56454 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
56456 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
56457 last one in a bucket, advance to the next bucket.
56459 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
56461 * lib/fnmatch.c: Do not comment out all the code if we are using
56462 the GNU C library, because in some cases we are replacing buggy
56463 code in the GNU C library itself.
56465 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
56467 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
56468 (regex_compile): Catch bogus \(\1\).
56470 2000-10-30 Paul Eggert <eggert@twinsun.com>
56472 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
56473 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
56474 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
56476 2000-10-30 Paul Eggert <eggert@twinsun.com>
56478 * lib/error.h, getline.h, modechange.h:
56479 Remove "2000" from Copyright line, as the file hasn't been
56480 changed this year other than in the copyright notice.
56482 * lib/xalloc.h: Add "2000" to Copyright line, as this file
56483 was changed this year.
56485 2000-10-29 Jim Meyering <meyering@lucent.com>
56487 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
56489 * m4/ls-mntd-fs.m4: Likewise
56491 2000-10-29 Jim Meyering <meyering@lucent.com>
56493 * lib/xstat.in: Fix grammar in comment.
56495 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
56497 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
56498 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
56499 doesn't define __restrict_arr.
56501 2000-10-28 Jim Meyering <meyering@lucent.com>
56503 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
56504 (jm_PREREQ_MEMCHR): New function.
56506 2000-10-28 Jim Meyering <meyering@lucent.com>
56508 * lib/memchr.c: Update from libc.
56509 Adjust for portability:
56510 [HAVE_STDLIB_H]: Include stdlib.h.
56511 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
56512 Undef __memchr, too.
56513 [!weak_alias]: Define __memchr to memchr.
56515 * lib/regex.c: Update from libc.
56516 * lib/regex.h: Likewise.
56517 * lib/getopt1.c: Likewise.
56518 * lib/memcmp.c: Likewise.
56520 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
56521 Avoid using fseek, when possible -- it's broken by design.
56522 Patch by Ulrich Drepper.
56524 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
56526 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
56527 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
56528 Giving in to popular pressure to shut up the compiler with casts.
56530 2000-10-26 Jim Meyering <meyering@lucent.com>
56532 * lib/strftime.c: Update from libc.
56534 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
56536 * regex.c: More `unsigned char' -> `re_char' changes.
56537 Also change several `int' into `re_wchar_t'.
56538 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
56539 (PUSH_FAILURE_POINTER): Don't cast any more.
56540 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
56541 We want GCC to complain, since this piece of code makes
56542 re_match non-reentrant, which *should* be fixed.
56543 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
56544 (EXTEND_BUFFER): Use RETALLOC.
56545 (SET_LIST_BIT): Don't cast.
56546 (re_wchar_t): New type.
56547 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
56548 that those two functions will always properly return.
56549 (IMMEDIATE_QUIT_CHECK): Cast to void.
56550 (analyse_first): Use recursion rather than an explicit stack.
56551 (re_compile_fastmap): Can't fail anymore.
56552 (re_search_2): Don't check re_compile_fastmap for failure.
56553 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
56554 Now also sets the new value (passed in a new argument).
56555 (re_match_2_internal): Use it.
56556 Also, use a new var `reg' of type size_t when looping through regs
56557 rather than reuse the inappropriate `mcnt'.
56559 2000-10-25 Jim Meyering <meyering@lucent.com>
56561 * lib/obstack.c: Update from libc.
56563 2000-10-24 Kenichi Handa <handa@etl.go.jp>
56565 * regex.c (regex_compile): Change the way of handling a range from
56566 a char less than 256 to a char not less than 256.
56568 2000-10-24 Andrew Innes <andrewi@gnu.org>
56570 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
56572 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
56573 so that re_search functions only quit when callers expect them to.
56575 2000-10-23 Jim Meyering <meyering@lucent.com>
56577 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
56578 wrong. That set_locale call must not have any side effects.
56581 2000-10-22 Jim Meyering <meyering@lucent.com>
56583 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
56584 [CYCLIC]: Remove now-unused definition.
56586 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
56587 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
56588 Suggestion from Ulrich Drepper.
56590 2000-10-21 Jim Meyering <meyering@lucent.com>
56592 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
56593 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
56594 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
56596 2000-10-21 Jim Meyering <meyering@lucent.com>
56598 * lib/dirname.c (memrchr): Declare if necessary.
56599 (dir_name): Remove the restriction that there be no
56600 trailing slashes. Now, this code skips past them, effectively
56602 [TEST_DIRNAME] (main): New unit tests.
56604 * lib/memrchr.c: New file from GNU libc.
56605 Undef __memrchr, too.
56606 [!weak_alias]: Define __memrchr to memrchr.
56607 Guard weak_alias use with `#ifdef weak_alias'.
56609 2000-10-21 Jim Meyering <meyering@lucent.com>
56611 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
56612 (dir_name): Use dir_name_r.
56613 * lib/dirname.h (dir_name_r): Declare it.
56615 2000-10-17 Jim Meyering <meyering@lucent.com>
56617 * lib/quote.h (PARAMS): Define and use.
56618 Reported by Akim Demaille.
56620 * lib/getopt.c: Update from libc.
56622 2000-10-16 Jim Meyering <meyering@lucent.com>
56624 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
56628 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
56630 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
56632 2000-09-25 Jim Meyering <meyering@lucent.com>
56634 * lib/md5.h (rol): Define (from GnuPG).
56636 * lib/sha.c: Give credit (GnuPG) where due.
56637 (M): Use rol rather than open-coding it.
56638 Add a FIXME comment.
56640 2000-09-21 Jim Meyering <meyering@lucent.com>
56642 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
56643 Reported by Michael Stone.
56645 2000-09-20 Jim Meyering <meyering@lucent.com>
56647 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
56648 (noinst_HEADERS): Add sha.h.
56649 Based on code from Scott G. Miller and from GnuPG.
56651 2000-09-18 Jim Meyering <meyering@lucent.com>
56653 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
56654 LIBS. Otherwise, everyone ends up linking with -lelf for some
56656 Reported by Mike Stone.
56658 2000-09-15 Jim Meyering <meyering@lucent.com>
56660 * lib/regex.c: Update from libc.
56662 2000-09-10 Jim Meyering <meyering@lucent.com>
56664 * lib/getopt.c (_getopt_internal): Update from glibc.
56666 2000-09-09 Jim Meyering <meyering@lucent.com>
56668 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
56669 think it should be used as a general replacement for isascii.
56670 * lib/fnmatch.c: Likewise.
56671 * lib/mbswidth.c: Likewise
56672 * lib/regex.c: Likewise.
56675 * lib/userspec.c: Include sys/param.h and limits.h.
56677 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
56678 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
56679 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
56680 UID, GID. Check range.
56682 2000-09-06 Jim Meyering <meyering@lucent.com>
56684 * lib/getopt.c (_getopt_internal): Update from glibc.
56686 2000-08-30 Jim Meyering <meyering@lucent.com>
56688 * lib/strftime.c: Merge in changes from GNU libc.
56690 2000-08-26 Jim Meyering <meyering@lucent.com>
56692 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
56693 * m4/fpending.m4: New file.
56695 2000-08-26 Jim Meyering <meyering@lucent.com>
56697 * lib/closeout.c: Include "__fpending.h".
56698 (close_stdout_status): Return right away if there's nothing to flush.
56700 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
56701 * lib/__fpending.c: New file.
56702 * lib/__fpending.h: New file.
56704 2000-08-20 Jim Meyering <meyering@lucent.com>
56706 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
56707 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
56708 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
56710 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
56712 Improve fileutils installation on systems where running
56713 programs (like install) can't be unlinked.
56714 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
56715 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
56717 2000-08-07 Paul Eggert <eggert@twinsun.com>
56719 Standardize on "memory exhausted" instead of "Memory exhausted"
56720 or "virtual memory exhausted".
56721 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
56722 "virtual memory exhausted".
56723 * lib/same.c (same_name): Invoke xalloc_die instead of printing
56725 * lib/userspec.c (parse_user_spec): Likewise.
56726 * lib/bumpalloc.h: comment fix
56727 * lib/same.c, userspec.c: Include xalloc.h.
56729 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
56730 not char *const and pointing to a constant array.
56731 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
56732 (xrealloc): Comment fix.
56734 * lib/userspec.c (parse_user_spec):
56735 Don't translate a message until just before returning,
56736 to avoid unnecessary translation.
56738 2000-08-07 Jim Meyering <meyering@lucent.com>
56740 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
56741 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
56742 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
56743 getgroups.c, gethostname.c, getopt.h, group-member.c,
56744 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
56745 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
56746 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
56747 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
56748 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
56749 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
56750 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
56751 yesno.c: Back out Copyright date changes for each file with no change
56752 this year. This eases coordination with other programs using the same
56753 source code modules. From Paul Eggert.
56755 2000-08-06 Paul Eggert <eggert@twinsun.com>
56757 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
56758 not char, for compatibility with glibc 2.1.3 strftime.c.
56760 2000-08-03 Greg McGary <greg@mcgary.org>
56762 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
56763 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
56764 (EXTEND_BUFFER): Use them.
56766 2000-08-01 Jim Meyering <meyering@lucent.com>
56768 * lib/dirname.c (ISSLASH): Define.
56769 (BACKSLASH_IS_PATH_SEPARATOR): Define.
56770 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
56771 both `\' and `/' may be use as path separators.
56772 Based on a patch from Prashant TR.
56774 2000-07-31 Paul Eggert <eggert@twinsun.com>
56776 * lib/quotearg.c (quotearg_n_options): Don't make the initial
56777 slot vector a constant, since it might get modified.
56779 2000-07-31 Jim Meyering <meyering@lucent.com>
56781 * lib/xmalloc.c: Use `virtual memory exhausted', not
56782 `Memory exhausted'.
56783 * lib/obstack.c (print_and_abort): Likewise.
56785 2000-07-30 Paul Eggert <eggert@twinsun.com>
56787 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
56788 buffer, so that the caller can always quote one small
56789 component of a "memory exhausted" message in slot 0.
56790 From a suggestion by Jim Meyering.
56792 2000-07-30 Jim Meyering <meyering@lucent.com>
56794 * lib/makepath.c (make_path): Quote the other instance, too.
56796 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
56797 (STATIC_BUF_SIZE): Define.
56798 (quotearg_n_options): Use only statically allocated storage when
56799 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
56800 than STATIC_BUF_SIZE.
56802 2000-07-29 Jim Meyering <meyering@lucent.com>
56804 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
56805 * lib/dirname.c (dir_name): Likewise.
56807 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
56810 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
56811 (dir_name): Assert that there are no trailing slashes.
56813 2000-07-29 Bruno Haible <haible@clisp.cons.org>
56815 * lib/mbswidth.h (mbswidth): Add a flags argument.
56816 (mbswidth): New declaration.
56817 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
56818 * lib/mbswidth.c (mbswidth): Add a flags argument.
56819 (mbsnwidth): New function.
56821 2000-07-24 Jim Meyering <meyering@lucent.com>
56823 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
56825 2000-07-23 Paul Eggert <eggert@twinsun.com>
56827 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
56829 2000-07-23 Paul Eggert <eggert@twinsun.com>
56831 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
56832 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
56833 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
56834 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
56835 invoke multibyte primitives.
56837 2000-07-23 Paul Eggert <eggert@twinsun.com>
56840 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
56841 so that mbstate_t is always defined.
56843 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
56844 be 1 in at least one GCC installation, and this configuration
56845 error is likely to be common. Ignoring MB_LEN_MAX hurts
56846 performance on hosts that have mbrtowc but have only unibyte
56847 locales, but I assume these hosts are rare.
56849 2000-07-23 Paul Eggert <eggert@twinsun.com>
56851 * lib/mbswidth.c (_XOPEN_SOURCE):
56852 Don't define; this causes problems on Solaris 7.
56853 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
56855 2000-07-23 Jim Meyering <meyering@lucent.com>
56857 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
56858 too: getgrgid, getpwuid, getuid.
56860 2000-07-23 Jim Meyering <meyering@lucent.com>
56862 * lib/basename.c (base_name): Add an assertion.
56864 2000-07-23 Bruno Haible <haible@clisp.cons.org>
56866 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
56867 shadow its mbsinit function.
56869 2000-07-17 Bruno Haible <haible@clisp.cons.org>
56871 * lib/mbswidth.h: New file.
56872 * lib/mbswidth.c: New file.
56873 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
56874 (noinst_HEADERS): Add mbswidth.h.
56876 2000-07-17 Bruno Haible <haible@clisp.cons.org>
56878 * lib/config.charset: Add support for FreeBSD. Improve support for
56881 2000-07-16 Bruno Haible <haible@clisp.cons.org>
56883 * m4/mbswidth.m4: New file.
56884 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
56886 2000-07-15 Jim Meyering <meyering@lucent.com>
56888 * lib/makepath.c: Include quote.h.
56889 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
56890 corresponding argument in a `quote (...)' call.
56891 Give better diagnostics.
56893 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
56894 (noinst_HEADERS): Add quote.h.
56896 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
56897 from tar's src/misc.c.
56898 * lib/quote.h: New file. Prototypes for same.
56900 2000-07-14 Paul Eggert <eggert@twinsun.com>
56902 From a suggestion by Bruno Haible.
56903 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
56904 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
56905 to decide whether to define the BeOS workaround macro;
56906 this adjusts to the change to AC_MBSTATE_T.
56908 2000-07-14 Jim Meyering <meyering@lucent.com>
56910 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
56911 jm_AC_TYPE_UINTMAX_T.
56913 2000-07-13 Paul Eggert <eggert@twinsun.com>
56915 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
56917 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
56918 quotearg_buffer_restyled): Add support for
56919 clocale_quoting_style. Undo previous change to
56920 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
56921 and "{RIGHT QUOTATION MARK}" msgids.
56923 2000-07-10 Paul Eggert <eggert@twinsun.com>
56925 From a suggestion by Bruno Haible.
56926 * m4/mbstate_t.m4 (AC_MBSTATE_T):
56927 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
56928 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
56929 and mbstate_t, to a single-part test that simply defines mbstate_t.
56930 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
56931 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
56933 2000-07-10 Jim Meyering <meyering@lucent.com>
56935 * m4/strerror_r.m4: Mirror the correction made in autoconf.
56937 * m4/gnu-source.m4: Output to confdefs.h directly.
56938 Suggestion from Akim Demaille.
56940 2000-07-09 Paul Eggert <eggert@twinsun.com>
56942 The old behavior of quoting `like this' doesn't look good with
56943 newer, ISO-style fonts. See:
56944 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
56946 Instead, quote "like this" by default. Let the translator
56947 tailor the locale-specific quoting behavior by providing
56948 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
56950 * lib/quotearg.c (N_): New macro.
56951 (gettext_default): New function.
56952 (quotearg_buffer_restyled): Use
56953 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
56954 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
56956 2000-07-09 Jim Meyering <meyering@lucent.com>
56958 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
56959 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
56961 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
56962 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
56964 2000-07-09 Jim Meyering <meyering@lucent.com>
56966 * lib/Most files: Update copyright dates to include 2000.
56968 2000-07-08 Jim Meyering <meyering@lucent.com>
56970 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
56972 (xgethostname): Remove now-unnecessary #ifdef.
56973 Move declaration of `err' into loop where it's used.
56975 2000-07-05 Paul Eggert <eggert@twinsun.com>
56976 and Bruno Haible <haible@clisp.cons.org>
56978 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
56979 only if the test for an object-type mbstate_t fails. This
56980 prevents us from mistakenly reporting that mbstate_t is a
56981 system object type after we "#define mbstate_t int" to work
56984 2000-07-05 Paul Eggert <eggert@twinsun.com>
56985 and Bruno Haible <haible@clisp.cons.org>
56987 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
56989 2000-07-05 Bruno Haible <haible@clisp.cons.org>
56991 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
56993 Include <ctype.h> for use of isalpha.
56995 2000-07-05 Bruno Haible <haible@clisp.cons.org>
56997 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
56998 by allocating a larger buffer. Test the gethostname return value for
56999 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
57000 returns an error and ENAMETOOLONG isn't defined.
57002 2000-07-05 Bruno Haible <haible@clisp.cons.org>
57004 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
57007 2000-07-04 Jim Meyering <meyering@lucent.com>
57009 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
57010 of the deprecated AC_CHECKING.
57012 2000-07-04 Jim Meyering <meyering@lucent.com>
57014 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
57015 Reported by Bruno Haible.
57017 2000-07-04 Jim Meyering <meyering@lucent.com>
57019 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
57020 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
57023 2000-07-03 Paul Eggert <eggert@twinsun.com>
57025 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
57026 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
57028 2000-07-03 Paul Eggert <eggert@twinsun.com>
57029 and Bruno Haible <haible@clisp.cons.org>
57031 * lib/quotearg.c (mbrtowc):
57032 Assign to *pwc, and return 1 only if result is nonzero.
57033 (iswprint): Use ISPRINT when substituting our own mbrtowc.
57035 2000-07-03 Jim Meyering <meyering@lucent.com>
57037 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
57039 2000-07-03 Jim Meyering <meyering@lucent.com>
57041 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
57042 This is necessary to get a definition of e.g., UTMP_FILE on
57046 2000-07-02 Jim Meyering <meyering@lucent.com>
57048 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
57050 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
57051 AC_LIBOBJ(function_name).
57052 * m4/chown.m4: Likewise.
57053 * m4/fnmatch.m4: Likewise.
57054 * m4/ftruncate.m4: Likewise.
57055 * m4/getgroups.m4: Likewise.
57056 * m4/getline.m4: Likewise.
57057 * m4/group-member.m4: Likewise.
57058 * m4/jm-macros.m4: Likewise.
57059 * m4/lstat.m4: Likewise.
57060 * m4/malloc.m4: Likewise.
57061 * m4/memcmp.m4: Likewise.
57062 * m4/nanosleep.m4: Likewise.
57063 * m4/putenv.m4: Likewise.
57064 * m4/realloc.m4: Likewise.
57065 * m4/regex.m4: Likewise.
57066 * m4/stat.m4: Likewise.
57067 * m4/strftime.m4: Likewise.
57069 2000-07-02 Jim Meyering <meyering@lucent.com>
57071 * lib/quotearg.c (mbstate_t): Don't define here.
57073 2000-07-02 Jim Meyering <meyering@lucent.com>
57075 * lib/nanosleep.c (SIGCONT): Define if not already defined.
57077 2000-07-01 Jim Meyering <meyering@lucent.com>
57079 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
57081 2000-07-01 Jim Meyering <meyering@lucent.com>
57083 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
57086 2000-07-01 Bruno Haible <haible@clisp.cons.org>
57088 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
57089 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
57091 2000-07-01 Bruno Haible <haible@clisp.cons.org>
57093 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
57094 per change in ../m4/ls-mntd-fs.m4.
57095 (read_filesystem_list): Ignore symbolic links.
57097 2000-06-29 Jim Meyering <meyering@lucent.com>
57099 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
57100 for declaration of strcmp.
57102 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
57104 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
57105 Avoid warning by casting result to `char *' to remove `const'.
57107 2000-06-28 Jim Meyering <meyering@lucent.com>
57109 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
57110 included by quotearg.c, for which we perform this test. From
57113 2000-06-27 Bruno Haible <haible@clisp.cons.org>
57115 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
57116 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
57117 <utmpx.h> exists, put readutmp.o into LIBOBJS.
57119 2000-06-27 Bruno Haible <haible@clisp.cons.org>
57121 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
57123 2000-06-26 Paul Eggert <eggert@twinsun.com>
57125 savedir now sets errno on failure and invokes xmalloc to get memory.
57126 Fix a couple of other minor bugs while we're at it.
57128 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
57129 (NAMLEN): Remove macro.
57130 (malloc, realloc): Remove decls.
57131 (stpcpy): Likewise.
57132 ("xalloc.h"): Include.
57133 (NAME_SIZE_DEFAULT): New macro.
57134 (savedir): Use xmalloc / xrealloc to allocate memory.
57135 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
57136 Skip "" directory entries.
57137 Use strlen to calculate directory entry length, since the old method
57138 is rarely used these days and isn't worth supporting.
57139 Don't use a pointer after freeing it.
57140 Check for integer overflow when calculating allocation size.
57141 Use memcpy to copy entries, instead of stpcpy.
57142 Set errno properly when returning NULL.
57143 Check for readdir error.
57145 2000-06-26 Jim Meyering <meyering@lucent.com>
57147 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
57149 2000-06-25 Jim Meyering <meyering@lucent.com>
57151 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
57152 Linux header bug when _XOPEN_SOURCE is defined to 500.
57154 2000-06-25 Bruno Haible <haible@clisp.cons.org>
57156 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
57159 2000-06-25 Bruno Haible <haible@clisp.cons.org>
57161 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
57163 Don't include <stdlib.h>. Don't declare malloc, realloc.
57165 2000-06-24 Jim Meyering <meyering@lucent.com>
57167 * m4/strerror_r.m4: Revive this file -- to try out an experimental
57168 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
57169 for which strerror does return char*, but which lacks a conveniently
57170 accessible declaration of the function. If the compile-test says
57171 strerror_r doesn't work, then resort to a `run'-test that works on
57172 BeOS and segfaults on DEC Unix.
57174 2000-06-24 Jim Meyering <meyering@lucent.com>
57176 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
57178 2000-06-23 Paul Eggert <eggert@twinsun.com>
57180 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
57181 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
57183 2000-06-23 Paul Eggert <eggert@twinsun.com>
57185 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
57186 (mbrtowc, mbstate_t): Define substitutes if
57187 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
57188 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
57189 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
57191 2000-06-23 Jim Meyering <meyering@lucent.com>
57193 * m4/afs.m4: Add missing AC_MSG_RESULT.
57194 Reported by Bruno Haible.
57196 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
57197 Suggestion from Bruno Haible.
57199 2000-06-23 Jim Meyering <meyering@lucent.com>
57201 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
57203 2000-06-21 Jim Meyering <meyering@lucent.com>
57205 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
57207 2000-06-21 Jim Meyering <meyering@lucent.com>
57209 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
57210 (noinst_HEADERS): Add getstr.h.
57212 * lib/getline.c (getstr): Move into a separate file.
57213 * lib/getstr.c (getstr): New file, extracted from getline.c, with
57214 the following changes: new parameter, delim2; both delim[12]
57215 parameters have type `int', not `char'. The latter would lose
57216 with 8-bit delimiters.
57217 * lib/getstr.h: New file.
57219 2000-06-21 Bruno Haible <haible@clisp.cons.org>
57221 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
57222 than 1024, return a memory chunk of least possible size, instead
57223 of size PATH_MAX + 2. In the loop, increment the size proportionally.
57224 Use free/xmalloc instead of xrealloc to avoid copying for very long
57227 2000-06-21 Bruno Haible <haible@clisp.cons.org>
57229 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
57232 2000-06-21 Bruno Haible <haible@clisp.cons.org>
57234 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
57235 address, not strdup. Include <stdlib.h> and don't declare free().
57237 2000-06-19 Jim Meyering <meyering@lucent.com>
57239 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
57241 2000-06-18 Jim Meyering <meyering@lucent.com>
57243 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
57245 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
57246 `checking whether...' message to be consistent with that of the
57249 2000-06-18 Jim Meyering <meyering@lucent.com>
57251 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
57252 Besides, these days every porting target provides a mkdir function.
57254 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
57255 needed. (this snippet comes from src/system.h).
57257 2000-06-16 Bruno Haible <haible@clisp.cons.org>
57259 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
57261 2000-06-15 Paul Eggert <eggert@twinsun.com>
57263 * lib/human.c (adjust_value): New function.
57264 (human_readable_inexact): Apply rounding style even when
57265 printing approximate values.
57267 2000-06-14 Paul Eggert <eggert@twinsun.com>
57269 * lib/human.c (human_readable_inexact): Allow an input block
57270 size that is not a multiple of the output block size, and vice versa.
57271 Reported by Piergiorgio Sartor.
57273 2000-06-14 Paul Eggert <eggert@twinsun.com>
57275 * lib/getdate.y (get_date): Apply relative times after time
57276 zone indicator, not before. Reported by Todd A. Jacobs.
57278 2000-06-13 Jim Meyering <meyering@lucent.com>
57280 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
57282 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
57284 2000-06-12 Paul Eggert <eggert@twinsun.com>
57286 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
57288 2000-06-12 Jim Meyering <meyering@lucent.com>
57290 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
57291 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
57293 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
57294 the optional argument, `lib'.
57296 2000-06-08 Jim Meyering <meyering@lucent.com>
57298 * m4/largefile.m4: Remove file (now that it's part of autoconf).
57300 2000-06-04 Paul Eggert <eggert@twinsun.com>
57302 Rewrite largefile configuration so that we don't need to run
57303 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
57304 AC_CANONICAL_HOST in configure.in -- jmm]
57306 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
57307 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
57308 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
57309 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
57310 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
57312 Instead of inspecting the output of getconf, try to compile the
57313 test program without and with the macro definition.
57314 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
57315 for getconf. Instead, check for the needed flags by compiling
57318 2000-06-04 Paul Eggert <eggert@twinsun.com>
57320 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
57322 2000-06-04 Jim Meyering <meyering@lucent.com>
57324 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
57325 SunOS 4.1.4 for which gid_t is an unsigned type.
57327 2000-06-03 Jim Meyering <meyering@lucent.com>
57329 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
57330 now that autoconf requires that.
57332 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
57333 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
57334 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
57336 2000-06-03 Jim Meyering <meyering@lucent.com>
57338 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
57340 2000-06-03 Bruno Haible <haible@clisp.cons.org>
57342 * m4/glibc21.m4: New file.
57343 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
57345 2000-06-03 Bruno Haible <haible@clisp.cons.org>
57347 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
57348 newer, don't install charset.alias.
57349 * lib/config.charset: Change the Linux/glibc rules so they become empty
57350 on glibc-2.1 or newer.
57352 2000-06-02 Jim Meyering <meyering@lucent.com>
57354 * lib/mountlist.c: Back out last change. Instead, do this...
57355 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
57356 me_dummy member using the same `ignore'-testing code.
57357 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
57361 2000-05-29 Jim Meyering <meyering@lucent.com>
57363 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
57364 mounts with the `ignore' attribute. Based on a patch from
57367 2000-05-28 Jim Meyering <meyering@lucent.com>
57369 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
57370 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57371 * m4/stat.m4: Likewise.
57372 * m4/lstat.m4: Likewise.
57373 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
57375 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
57376 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
57378 2000-05-26 Jim Meyering <meyering@lucent.com>
57380 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
57382 2000-05-24 Jim Meyering <meyering@lucent.com>
57384 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
57385 autoconf requires that.
57386 * m4/lib-check.m4: Likewise.
57387 * m4/jm-macros.m4: Likewise.
57388 * m4/strftime.m4: Likewise.
57390 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
57391 AC_CHECK_DECLS, now that autoconf requires that.
57393 2000-05-22 Jim Meyering <meyering@lucent.com>
57395 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57396 * m4/lstat.m4: Likewise.
57398 2000-05-22 Jim Meyering <meyering@lucent.com>
57400 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
57402 2000-05-20 Jim Meyering <meyering@lucent.com>
57404 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
57405 (jm_PREREQ): Use it.
57407 2000-05-18 Jim Meyering <meyering@lucent.com>
57409 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
57410 back, too, since it may have been modified by allocate_entry.
57411 (hash_delete): Rewrite to use neither the assignment operator
57412 nor the comma operator in an if-expression.
57414 2000-05-15 Paul Eggert <eggert@twinsun.com>
57417 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
57418 Remove; no longer needed.
57419 "quotearg.h": Add include.
57420 (file_name): Do not bother to explicitly initialize to NULL; it's less
57421 efficient on some hosts.
57422 (close_stdout_status): Remove test as to whether stdout was already
57423 closed; it breaks for the case "echo x | sort >&-".
57424 Quote file name colons.
57425 Do not assume that _("write error") lacks format strings.
57427 2000-05-15 Jim Meyering <meyering@lucent.com>
57429 * lib/version-etc.c (version_etc_copyright): Update the copyright
57430 string used in all --version output.
57432 2000-05-14 Jim Meyering <meyering@lucent.com>
57434 * lib/closeout.c (close_stdout_set_file_name): New function.
57435 (close_stdout_status): Use new file-scoped global.
57436 Return right away if fstat says the stdout file descriptor is invalid.
57437 * lib/closeout.h (close_stdout_set_file_name): Declare.
57439 2000-05-10 Jim Meyering <meyering@lucent.com>
57441 * lib/closeout.c [default_exit_status]: New file-scoped variable.
57442 (close_stdout_set_status): New function.
57443 * lib/closeout.h (close_stdout_set_status): Declare.
57445 2000-05-09 Jim Meyering <meyering@lucent.com>
57447 * m4/gettext.m4: Rename this...
57448 * m4/libintl.m4: ...to this.
57450 2000-05-08 Jim Meyering <meyering@lucent.com>
57452 * lib/long-options.c: Don't include closeout.h.
57453 (parse_long_options): Don't call close_stdout for --version.
57455 2000-05-06 Paul Eggert <eggert@twinsun.com>
57457 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
57458 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
57459 2.1.3 bug. This avoids a clash when files like regex.c define
57462 2000-05-06 Jim Meyering <meyering@lucent.com>
57464 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
57465 (AC_REPLACE_FUNCS): Add strnlen.
57467 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
57468 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
57470 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
57471 AC_SEARCH_LIBS call for nanosleep.
57472 (LIB_NANOSLEEP): Set and AC_SUBST.
57474 2000-05-06 Jim Meyering <meyering@lucent.com>
57476 * lib/strnlen.c: Undefine __strnlen and strnlen.
57477 [!weak_alias]: Define __strnlen to strnlen.
57479 * lib/atexit.c: New file, from libiberty.
57481 2000-05-06 Jim Meyering <meyering@lucent.com>
57483 * lib/closeout.c (close_stdout_status): Also check for errors on the
57486 2000-05-05 Jim Meyering <meyering@lucent.com>
57488 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
57489 AC_SEARCH_LIBS call for clock_gettime.
57490 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
57492 * m4/search-libs.m4: Update from autoconf.
57494 su doesn't work on Solaris 2.6.
57495 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
57496 <shadow.h>. Reported by Dragos Harabor.
57498 2000-05-05 Bruno Haible <haible@clisp.cons.org>
57500 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
57501 memcpy instead of xmalloc, xrealloc, path_concat.
57502 (locale_charset): Treat empty environment variables as absent.
57503 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
57505 2000-05-04 Jim Meyering <meyering@lucent.com>
57507 * lib/getopt.c: Update from glibc.
57508 * lib/obstack.c: Likewise.
57509 * lib/obstack.h: Likewise.
57510 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
57513 * lib/regex.h: Likewise.
57514 * lib/strndup.c: Likewise.
57515 * lib/strnlen.c: New file, from glibc.
57517 2000-05-03 Jim Meyering <meyering@lucent.com>
57519 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
57521 2000-05-02 Paul Eggert <eggert@twinsun.com>
57523 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
57524 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
57525 compile-time test, rather than inspecting host and OS, to
57526 decide whether to define _LARGEFILE_SOURCE.
57528 2000-05-01 Jim Meyering <meyering@lucent.com>
57530 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
57532 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
57533 Based on a patch from Bruno Haible.
57535 2000-05-01 Jim Meyering <meyering@lucent.com>
57537 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
57539 2000-04-29 Jim Meyering <meyering@lucent.com>
57541 * lib/path-concat.c: Declare strdup only if it's not defined.
57542 * lib/canon-host.c: Likewise.
57544 2000-04-28 Jim Meyering <meyering@lucent.com>
57546 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
57547 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
57548 is included first, then limits.h is included by locale.h by libintl.h.
57549 From John David Anglin.
57551 2000-04-25 Jim Meyering <meyering@lucent.com>
57553 * lib/makepath.c (S_IRWXUGO): Define.
57554 (make_path): Always perform explicit chmod if MODE specifies any
57555 of the `special' permission bits. Prompted by a bug report against
57556 install from Mate Wierdl and Joost van Baal.
57558 2000-04-18 Jim Meyering <meyering@lucent.com>
57560 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
57561 (jm_PREREQ): Use it.
57563 2000-04-18 Jim Meyering <meyering@lucent.com>
57565 * lib/README: New file.
57567 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
57568 getpagesize. For BeOS. Based on a patch from Bruno Haible.
57570 2000-04-17 Jim Meyering <meyering@lucent.com>
57573 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
57574 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
57575 Suggestion from Akim Demaille.
57577 2000-04-17 Jim Meyering <meyering@lucent.com>
57579 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
57580 the definition of it to rpl_strftime also defined-away the system's
57583 2000-04-15 Jim Meyering <meyering@lucent.com>
57585 Use `C' to denote so-called `contiguous' files, the same way
57587 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
57588 (ftypelet): Use S_ISCTG.
57589 From Michael Deutschmann.
57591 2000-04-14 Jim Meyering <meyering@lucent.com>
57593 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
57594 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
57597 2000-04-14 Jim Meyering <meyering@lucent.com>
57599 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
57601 2000-04-13 Jim Meyering <meyering@lucent.com>
57603 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
57604 AH_VERBATIM to insert required #ifndef into config.h.in.
57605 Suggestion from Akim Demaille.
57607 2000-04-12 Jim Meyering <meyering@lucent.com>
57609 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
57610 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
57611 Christian Krackowizer.
57613 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
57614 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
57615 (AC_SYS_LARGEFILE): Require.
57616 (AM_C_PROTOTYPES): Require.
57618 2000-04-08 Jim Meyering <meyering@lucent.com>
57620 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
57621 names don't conflict. Reported by Eli Zaretskii.
57623 2000-04-07 Jim Meyering <meyering@lucent.com>
57625 * lib/putenv.c: Move inclusion of errno.h so it follows that of
57626 sys/types.h, to work around system header problems on AIX 3.2.5.
57629 2000-04-07 Bruno Haible <haible@clisp.cons.org>
57631 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
57632 bug. Deal with the different error behavior of Irix iconv.
57634 2000-04-05 Paul Eggert <eggert@twinsun.com>
57636 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
57637 IRIX if the installer said otherwise.
57639 2000-04-05 Jim Meyering <meyering@lucent.com>
57641 Portability tweaks required for ultrix4.3.
57642 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
57643 (jm_CHECK_DECLS): Add getutent to the list of functions.
57644 (_jm_DECL_HEADERS): Add utmpx.h.
57645 From John David Anglin.
57647 * m4/strftime.m4: Back out the 2000-04-02 change.
57648 Instead of that change, simply undefine putenv in the test program.
57650 2000-04-05 Jim Meyering <meyering@lucent.com>
57652 Portability tweaks required for ultrix4.3.
57653 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
57655 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
57656 * lib/canon-host.c: Declare strdup.
57657 * lib/path-concat.c: Likewise.
57658 From John David Anglin.
57660 2000-04-04 Jim Meyering <meyering@lucent.com>
57662 Be more DOS 8.3-friendly.
57663 * lib/ref-add.sin: Renamed from ref-add.sed.in.
57664 * lib/ref-del.sin: Renamed from ref-del.sed.in.
57665 * lib/Makefile.am: Reflect renaming.
57666 Reported by Eli Zaretskii.
57668 Use a temporary file name that won't clash with `charset.alias'
57669 in the DOS 8.3 name space.
57670 * lib/Makefile.am (charset_tmp): Define.
57671 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
57672 (uninstall-local): Likewise.
57673 Reported by Eli Zaretskii.
57675 2000-04-03 Jim Meyering <meyering@lucent.com>
57677 * m4/gettext.m4: Fix typo in comment.
57679 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
57680 textutils/configure.in). Suggestion from Paul Eggert.
57681 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
57683 2000-04-02 Paul Eggert <eggert@twinsun.com>
57685 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
57686 variable in the shell rather than using putenv, which isn't
57687 portable. This avoids the configure-time inter-test dependency
57688 on the potentially-renamed putenv function.
57690 2000-03-30 Paul Eggert <eggert@twinsun.com>
57692 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
57693 before checking struct stat.st_blksize, so that
57694 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
57696 2000-03-29 Paul Eggert <eggert@twinsun.com>
57698 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
57699 since strftime.c uses HAVE_STRFTIME to decide whether to use
57700 the underlying strftime.
57702 2000-03-29 Paul Eggert <eggert@twinsun.com>
57704 * lib/time/strftime.c (my_strftime): Make sure we call the system
57705 strftime, not ourselves, when invoking the underlying strftime.
57707 2000-03-24 Jim Meyering <meyering@lucent.com>
57709 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
57710 (charset_alias): Define.
57711 (install-exec-local): Factor out common code.
57712 (uninstall-local): Split lines longer than 80.
57713 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
57714 (SUFFIXES): Define.
57715 (.sed.in.sed): New rule. Don't redirect directly to $@.
57716 (CLEANFILES): Add ref-add.sed and ref-del.sed.
57718 2000-03-19 Bruno Haible <haible@clisp.cons.org>
57720 * lib/config.charset: Output a line containing "Packages using this
57722 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
57723 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
57724 ref-del.sed): New rules.
57726 2000-03-17 Jim Meyering <meyering@lucent.com>
57728 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
57729 Otherwise, include <strings.h>
57731 2000-03-17 Bruno Haible <haible@clisp.cons.org>
57733 * lib/unicodeio.c (utf8_wctomb): New function.
57734 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
57735 format instead of in UCS-4 with platform dependent endianness.
57737 2000-03-10 Jim Meyering <meyering@lucent.com>
57739 * m4/lib-check.m4: Look for getspnam in -lgen, too.
57740 From Marco Franzen.
57742 2000-03-07 Paul Eggert <eggert@twinsun.com>
57744 * lib/savedir.c (savedir): Work even if directory size is
57745 negative; this can happen with some screwy NFS configurations.
57747 2000-03-06 Jim Meyering <meyering@lucent.com>
57749 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
57750 if it's NULL (because we ran out of memory). From Bruno Haible.
57752 2000-03-05 Jim Meyering <meyering@lucent.com>
57754 * lib/localcharset.c ("path-concat.h"): Include.
57755 (get_charset_aliases): Use path_concat instead of ANSI string
57758 * lib/unicodeio.h (PARAMS): Define.
57759 Use it to guard prototype.
57761 2000-03-04 Jim Meyering <meyering@lucent.com>
57763 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
57764 for lib/localcharset.c.
57766 2000-03-04 Jim Meyering <meyering@lucent.com>
57768 * lib/Makefile.am (install-exec-local): Create $(libdir) before
57769 installing into it.
57770 (uninstall-local): Uncomment this rule so `make distcheck' works
57773 * lib/unicodeio.c (<errno.h>): Include it.
57774 (errno): Declare if not defined.
57776 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
57778 * lib/config.charset: New version, incorporating remarks from a linux
57779 i18n mailing list. From Bruno Haible.
57781 2000-03-04 Bruno Haible <haible@clisp.cons.org>
57783 * m4/codeset.m4: New file.
57784 * m4/iconv.m4: New file.
57785 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
57787 2000-03-03 Jim Meyering <meyering@lucent.com>
57789 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
57791 2000-03-02 Jim Meyering <meyering@lucent.com>
57793 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
57794 the messages come out on separate lines.
57796 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
57797 rather than jm_CHECK_DECLARATIONS.
57798 * m4/decl.m4: Remove now-unused file.
57800 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
57803 2000-03-02 Jim Meyering <meyering@lucent.com>
57805 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
57807 2000-03-01 Jim Meyering <meyering@lucent.com>
57809 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
57810 * lib/unicodeio.c: Likewise.
57812 2000-03-01 Bruno Haible <haible@clisp.cons.org>
57814 * lib/config.charset: New file.
57815 * lib/localcharset.c: New file.
57816 * lib/unicodeio.h, lib/unicodeio.c: New files.
57817 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
57818 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
57819 (noinst_HEADERS): Add unicodeio.h.
57820 (all-local, install-exec-local, charset.alias): New targets.
57822 2000-02-28 Paul Eggert <eggert@twinsun.com>
57824 * lib/quotearg.c (ALERT_CHAR): New macro.
57825 (quotearg_buffer_restyled): Use it.
57827 2000-02-27 Jim Meyering <meyering@lucent.com>
57829 * m4/check-decl.m4: Add getenv to the list.
57831 2000-02-27 Jim Meyering <meyering@lucent.com>
57833 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
57834 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
57836 * lib/backupfile.c: Guard inclusion of stdlib.h with
57837 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
57838 Declare malloc if needed.
57840 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
57841 `#ifndef HAVE_DECL..'
57842 now that autoconf always defines the HAVE_DECL_ symbols.
57843 * lib/human.c: Likewise.
57844 * lib/same.c: Likewise.
57845 * lib/strtoumax.c: Likewise.
57847 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
57848 declaration check was not run.
57849 * lib/hash.c: Likewise.
57850 * lib/human.c: Likewise.
57851 * lib/same.c: Likewise.
57852 * lib/strtoumax.c: Likewise.
57854 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
57855 `.', then first look up the entire `.'-containing string as a login
57858 2000-02-23 Jim Meyering <meyering@lucent.com>
57860 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
57861 in place of my hack.
57863 2000-02-18 Paul Eggert <eggert@twinsun.com>
57865 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
57866 (textint): New typedef.
57867 (parser_control): Member year changed from int to textint.
57869 (YYSTYPE): Removed; replaced by %union with int and textint members.
57870 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
57871 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
57872 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
57873 (tSNUMBER, tUNUMBER): Now of type <textintval>.
57874 (date, number, to_year): Use width of number in digits, not its value,
57875 to determine whether it's a 2-digit year, or a 2-digit time.
57876 (yylex): Store number of digits of numeric tokens.
57877 Reported by John Kendall.
57879 (parser_control): Changed from struct parser_control to typedef (for
57880 consistency). All uses changed.
57882 (tID): Removed; not used.
57883 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
57885 2000-02-14 Paul Eggert <eggert@twinsun.com>
57887 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
57888 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
57890 2000-02-12 Jim Meyering <meyering@lucent.com>
57892 * lib/userspec.c (ISDIGIT): Define it.
57893 (isdigit): Remove definition.
57894 (is_number): Use ISDIGIT, not isdigit.
57895 <libintl.h>: Include.
57896 (_ and N_): Define.
57897 (parse_user_spec): Mark translatable strings.
57899 2000-02-10 Jim Meyering <meyering@lucent.com>
57901 With these changes, nanosleep.[ch] are finally enough like the other
57902 lib/* replacement files to compile on a few more losing systems.
57904 * lib/nanosleep.h: Don't include config.h.
57905 Remove prototype from declaration of nanosleep.
57906 (PARAMS): Remove now-unneeded definition.
57907 * lib/nanosleep.c: #undef nanosleep.
57908 (rpl_nanosleep): Rename from nanosleep.
57910 2000-02-10 Jim Meyering <meyering@lucent.com>
57912 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
57913 gnu_nanosleep to rpl_nanosleep.
57915 2000-02-09 Jim Meyering <meyering@lucent.com>
57917 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
57918 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
57920 2000-02-08 Akim Demaille <akim@epita.fr>
57922 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
57923 `[' and `]' and remove uses of `changequote'.
57924 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
57925 (AC_SYS_LARGEFILE): Likewise.
57926 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
57927 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
57929 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
57930 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
57931 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
57932 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
57934 2000-02-05 Jim Meyering <meyering@lucent.com>
57936 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
57937 Remove explicit use of AC_HEADER_TIME. It is required by
57938 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
57939 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
57940 in autoconf whereby the expansion of the latter ended up preceding
57941 the expansion of its prerequisite, AC_HEADER_TIME.
57942 Reported by Volker Borchert.
57944 2000-02-03 Jim Meyering <meyering@lucent.com>
57946 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
57948 2000-02-03 Jim Meyering <meyering@lucent.com>
57950 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
57951 rather than with `#if HAVE_UTMPNAME'.
57953 2000-02-02 Jim Meyering <meyering@lucent.com>
57955 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
57956 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
57957 Reported by Eli Zaretskii.
57959 2000-02-01 Jim Meyering <meyering@lucent.com>
57961 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
57963 2000-01-31 Jim Meyering <meyering@lucent.com>
57965 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
57966 functions. Add the time.h and sys/time.h headers along with the
57967 AC_REQUIRE'ment of AC_HEADER_TIME.
57969 2000-01-31 Jim Meyering <meyering@lucent.com>
57971 * lib/nanosleep.h (nanosleep): Guard declaration with
57972 `#if ! HAVE_DECL_NANOSLEEP'.
57973 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
57974 the declaration in that vendor's sys/timers.h.
57975 Reported by Christian Krackowizer.
57977 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
57978 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
57979 (ISPRINT): Likewise.
57980 Reported by Tom Tromey.
57982 2000-01-30 Jim Meyering <meyering@lucent.com>
57984 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
57986 * m4/prereq.m4 (utmp_includes): Define.
57987 Check for ut_user and ut_name members in both struct utmpx
57990 2000-01-30 Jim Meyering <meyering@lucent.com>
57992 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
57993 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
57994 header files where only utmpx.ut_user is declared.
57996 * lib/readutmp.h (UT_USER): Define.
57998 2000-01-29 Jim Meyering <meyering@lucent.com>
58000 * m4/lib-check.m4: New file containing library-related checks from
58001 fileutils and sh-utils (textutils had none).
58003 2000-01-28 Jim Meyering <meyering@lucent.com>
58005 * m4/perl.m4: Change format of warning message to look more like that
58006 from the missing script. Suggestion from François Pinard.
58008 2000-01-25 Jim Meyering <meyering@lucent.com>
58010 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
58011 well as time.h in the compile check.
58012 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
58013 Fix typo in cross-compiling case: s/yes/no/.
58015 2000-01-23 Jim Meyering <meyering@lucent.com>
58017 * m4/jm-macros.m4: Move df-related tests here from
58018 fileutils/configure.in
58020 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
58021 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
58023 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
58024 s/space/ac_fsusage_space/.
58025 (jm_FILE_SYSTEM_USAGE): Take two parameters.
58027 * m4/ftruncate.m4: New file (derived from part of
58028 fileutils/configure.in).
58029 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
58030 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
58032 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
58033 AC_SUBST these here, rather than just in sh-util/configure.in, so
58034 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
58036 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
58037 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
58038 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
58039 (AC_SUBST(POW_LIBM)): Likewise.
58040 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
58042 2000-01-23 Jim Meyering <meyering@lucent.com>
58044 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
58047 2000-01-22 Jim Meyering <meyering@lucent.com>
58049 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
58051 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
58053 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
58055 (AC_CHECK_HEADERS): Likewise for sh-utils.
58056 (AC_CHECK_HEADERS): Likewise for textutils.
58057 Merge the three lists of headers.
58059 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
58060 from fileutils' configure.in.
58062 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
58063 code. Moved tests into their own function (_jm_DECL_HEADERS) in
58066 * m4/check-decl.m4: Use #if rather than #ifdef.
58067 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
58068 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
58069 (_jm_DECL_HEADERS): Define new function.
58070 (jm_CHECK_DECLARATIONS): Require it.
58072 2000-01-22 Jim Meyering <meyering@lucent.com>
58074 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
58075 [! HAVE_DECL_STRTOULL]: Declare strtoull.
58076 Required for some AIX systems. Reported by Christian Krackowizer.
58077 [TESTING] (main): New function.
58079 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
58080 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
58083 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
58086 * lib/strverscmp.c (ISDIGIT): Define.
58087 (strverscmp): Use ISDIGIT, not isdigit.
58089 2000-01-19 Jim Meyering <meyering@lucent.com>
58091 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
58092 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
58093 defines `struct timespec' in <sys/time.h>
58095 * m4/c-bs-a.m4: Remove uses of changequote altogether.
58096 Thanks to Akim for explaining.
58098 2000-01-17 Paul Eggert <eggert@twinsun.com>
58100 * lib/nanosleep.c (nanosleep):
58101 Don't use SA_INTERRUPT to decide whether to call sigaction, as
58102 POSIX.1 doesn't require SA_INTERRUPT and some systems
58103 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
58104 it's been part of POSIX.1 since day 1 (in 1988).
58106 2000-01-17 Jim Meyering <meyering@lucent.com>
58108 * lib/interlock: Remove unused file. Reported by François Pinard.
58110 2000-01-16 Paul Eggert <eggert@twinsun.com>
58112 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
58113 alert, backslash, formfeed, and vertical tab unnecessarily in
58114 shell quoting style.
58116 2000-01-16 Jim Meyering <meyering@lucent.com>
58118 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
58119 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
58120 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
58121 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
58123 2000-01-16 Jim Meyering <meyering@lucent.com>
58125 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
58126 because the latter didn't work.
58128 2000-01-15 Jim Meyering <meyering@lucent.com>
58130 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
58131 (AC_REPLACE_FUNCS): Add memcpy and memset.
58132 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
58134 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
58136 2000-01-12 Jim Meyering <meyering@lucent.com>
58138 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
58139 (jm_PREREQ): Use it.
58140 (jm_PREREQ_READUTMP): New macro.
58141 (jm_PREREQ): Use it.
58143 2000-01-11 Paul Eggert <eggert@twinsun.com>
58145 Quote multibyte characters correctly.
58146 * m4/c-bs-a.m4: New file.
58147 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
58148 (jm_PREREQ): Use it.
58150 2000-01-11 Paul Eggert <eggert@twinsun.com>
58152 * m4/uintmax_t.m4: Port to autoconf 2.13.
58154 2000-01-08 Jim Meyering <meyering@ascend.com>
58156 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
58157 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
58159 2000-01-04 Jim Meyering <meyering@ascend.com>
58161 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
58162 jm_STRUCT_DIRENT_D_TYPE.
58163 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
58164 jm_STRUCT_DIRENT_D_INO.
58165 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
58167 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
58169 * m4/utime.m4: Likewise.
58171 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
58172 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
58174 2000-01-03 Paul Eggert <eggert@twinsun.com>
58176 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
58177 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
58179 2000-01-02 Jim Meyering <meyering@ascend.com>
58181 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
58182 remember if this is necessary.
58184 1999-12-26 Jim Meyering <meyering@ascend.com>
58186 * m4/jm-macros.m4: Use it here.
58187 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
58189 1999-12-23 Jim Meyering <meyering@ascend.com>
58191 * m4/jm-macros.m4: Check for clock_gettime (moved from
58192 fileutils/configure.in)
58193 Check for gettimeofday.
58195 1999-12-20 Jim Meyering <meyering@ascend.com>
58197 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
58198 autoconf-2.14a-1999-12-20.
58200 1999-12-19 Jim Meyering <meyering@ascend.com>
58202 * m4/lstat-slash.m4: New file.
58203 * m4/jm-macros.m4: Use the new macro:
58204 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58206 1999-12-07 Jim Meyering <meyering@ascend.com>
58208 * m4/perl.m4: Require that File::Compare be available, too.
58209 Too many systems seem to lack it.
58211 * m4/strftime.m4: Add checks for most of the cpp macros tested in
58212 GNU's strftime.c. Prompted by a patch from Paul Eggert.
58214 1999-11-18 Paul Eggert <eggert@twinsun.com>
58216 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
58217 problem with the QNX 4.25 shell, which doesn't propagate exit
58218 status of failed commands inside shell assignments.
58220 1999-11-17 Jim Meyering <meyering@ascend.com>
58222 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
58224 1999-11-07 Jim Meyering <meyering@ascend.com>
58226 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
58228 1999-11-06 Jim Meyering <meyering@ascend.com>
58230 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
58231 * m4/jm-macros.m4 (jm_MACROS): Use it here.
58233 1999-11-05 Jim Meyering <meyering@ascend.com>
58235 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
58236 configure.in of textutils, fileutils, and sh-utils into this one
58237 (shared between those packages) file.
58238 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
58239 AC_STRUCT_ST_BLKSIZE.
58241 1999-11-03 Jim Meyering <meyering@ascend.com>
58243 * m4/ssize_t.m4: Remove file. No longer needed since the new version
58244 of AC_CHECK_TYPE checks includes unistd.h.
58245 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
58246 Suggestion from Akim Demaille.
58248 1999-10-30 Jim Meyering <meyering@ascend.com>
58250 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
58252 * m4/ls-mntd-fs.m4: Likewise.
58253 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
58254 * m4/jm-winsz1.m4: Likewise.
58256 * m4/const.m4: Remove file, since the fix made it into the experimental
58257 version of autoconf.
58258 * m4/mktime.m4: Likewise.
58260 * m4/check-type.m4: Remove file, now that the latest version of
58261 AC_CHECK_TYPE takes a third arg to specify additional #includes.
58263 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
58264 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
58267 1999-10-04 Jim Meyering <meyering@ascend.com>
58269 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
58271 1999-09-22 Paul Eggert <eggert@twinsun.com>
58273 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
58274 2.95.1 bug with HP-UX 10.20.
58276 1999-09-17 Jim Meyering <meyering@ascend.com>
58278 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
58279 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
58280 due to missing strdup (against sh-utils-2.0).
58282 1999-08-29 Jim Meyering <meyering@ascend.com>
58284 * m4/jm-macros.m4: Require jm_BISON.
58285 * m4/bison.m4: New file.
58287 1999-08-17 Paul Eggert <eggert@twinsun.com>
58289 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
58290 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
58292 1999-08-05 Jim Meyering <meyering@ascend.com>
58294 * m4/getline.m4: Rename test file from conftestdata to conftest.data
58295 to avoid conflicts with `conftest' on 8+3 filesystems.
58296 Suggestion from Eli Zaretskii.
58298 1999-08-04 Jim Meyering <meyering@ascend.com>
58300 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
58301 fileutils and sh-utils (textutils's getline test was inadequate).
58302 (AM_FUNC_GETLINE): Run this test.
58303 (AC_CHECK_FUNCS): Check for getdelim.
58304 Reported by Bob Proulx.
58306 1999-08-02 Jim Meyering <meyering@ascend.com>
58308 * m4/jm-macros.m4: Add a comment.
58310 1999-08-01 Paul Eggert <eggert@twinsun.com>
58312 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
58313 <inttypes.h> defines strtoumax as a macro (and not as a
58316 1999-08-01 Paul Eggert <eggert@twinsun.com>
58318 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
58319 that we can shift, multiply and divide unsigned long long
58320 values; Ultrix cc can't do it.
58322 1999-08-01 Paul Eggert <eggert@twinsun.com>
58324 * m4/mktime.m4: New file, which is a preview of what should appear
58325 in the next public autoconf release.
58327 1999-08-01 Paul Eggert <eggert@twinsun.com>
58329 * m4/lfs.m4: Remove this file.
58330 * m4/largefile.m4: New file. It contains the old contents of
58331 lfs.m4, except that all names with prefix AC_LFS have been
58332 changed to use the prefix AC_SYS_LARGEFILE instead, to be
58333 compatible with future autoconf versions. Also, some minor m4
58334 quoting problems have been fixed.
58336 1999-08-01 Paul Eggert <eggert@twinsun.com>
58338 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
58339 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
58340 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
58341 and simplify the shell code.
58343 1999-08-01 Jim Meyering <meyering@ascend.com>
58345 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
58348 1999-07-20 Jim Meyering <meyering@ascend.com>
58350 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
58352 1999-07-15 Jim Meyering <meyering@ascend.com>
58354 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
58356 1999-05-22 Jim Meyering <meyering@ascend.com>
58358 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
58360 1999-05-20 Jim Meyering <meyering@ascend.com>
58362 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
58363 Add a colon after each `then' in case $4 is empty.
58365 1999-05-16 Jim Meyering <meyering@ascend.com>
58367 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
58369 1999-05-10 Jim Meyering <meyering@ascend.com>
58371 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
58373 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
58376 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
58378 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
58380 1999-05-04 Paul Eggert <eggert@twinsun.com>
58382 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
58383 not CPPFLAGS, so that linking works correctly in IRIX.
58385 1999-04-30 Paul Eggert <eggert@twinsun.com>
58387 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
58389 1999-04-20 Paul Eggert <eggert@twinsun.com>
58391 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
58392 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
58393 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
58394 jm_AC_TYPE_UNSIGNED_LONG_LONG.
58395 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
58397 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
58399 1999-04-20 Jim Meyering <meyering@ascend.com>
58401 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
58402 AC_REPLACE xstroull if necessary. From Paul Eggert.
58403 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
58405 1999-04-18 Jim Meyering <meyering@ascend.com>
58407 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
58408 * m4/jm-macros.m4: Use it.
58410 1999-04-06 Jim Meyering <meyering@ascend.com>
58412 * m4/strftime.m4: Remove test for %f.
58414 1999-03-29 Jim Meyering <meyering@ascend.com>
58416 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
58417 superset of the AC_TYPE_* checks in the textutils, fileutils,
58418 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
58421 1999-03-28 Jim Meyering <meyering@ascend.com>
58423 * m4/jm-macros.m4: Define GNU_PACKAGE here.
58424 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
58425 replaced e.g., in the *.sh files of the sh-utils.
58427 1999-03-20 Jim Meyering <meyering@ascend.com>
58429 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
58430 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
58431 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
58433 1999-03-19 Jim Meyering <meyering@ascend.com>
58435 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
58437 1999-03-12 Jim Meyering <meyering@ascend.com>
58439 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
58441 1999-03-07 Jim Meyering <meyering@ascend.com>
58443 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
58446 1999-02-17 Jim Meyering <meyering@ascend.com>
58448 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
58449 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
58451 1999-02-07 Jim Meyering <meyering@ascend.com>
58453 * m4/group-member.m4: New file -- extracted from sh-utils'
58456 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
58457 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
58459 1999-02-06 Jim Meyering <meyering@ascend.com>
58461 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
58462 * m4/fnmatch.m4: Likewise.
58463 * m4/getgroups.m4: Likewise.
58464 * m4/lstat.m4: Likewise.
58465 * m4/malloc.m4: Likewise.
58466 * m4/putenv.m4: Likewise.
58467 * m4/realloc.m4: Likewise.
58468 * m4/regex.m4: Likewise.
58469 * m4/stat.m4: Likewise.
58470 * m4/strftime.m4: Likewise.
58471 Suggestion from Alain Magloire.
58473 * m4/chown.m4: Use `.$ac_objext', not `.o'.
58474 * m4/fnmatch.m4: Likewise.
58475 * m4/getgroups.m4: Likewise.
58476 * m4/getline.m4: Likewise.
58477 * m4/lstat.m4: Likewise.
58478 * m4/malloc.m4: Likewise.
58479 * m4/memcmp.m4: Likewise.
58480 * m4/putenv.m4: Likewise.
58481 * m4/realloc.m4: Likewise.
58482 * m4/regex.m4: Likewise.
58483 * m4/stat.m4: Likewise.
58484 * m4/strftime.m4: Likewise.
58485 Suggestion from Alain Magloire.
58487 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
58490 * m4/regex.m4: Add a run-time Test for proper operation of
58491 re_compile_pattern.
58493 1999-01-31 Jim Meyering <meyering@ascend.com>
58495 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
58497 1999-01-30 Jim Meyering <meyering@ascend.com>
58499 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
58501 * m4/jm-mktime.m4: Make this a wrapper around the official
58502 AM_FUNC_MKTIME rather than my private copy, now that the official one
58504 * m4/mktime.m4: Remove file.
58506 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
58507 * m4/uptime.m4: Likewise.
58508 * m4/uintmax_t.m4: Likewise.
58510 1999-01-28 Jim Meyering <meyering@ascend.com>
58512 * m4/jm-macros.m4: Use jm_AFS.
58513 * m4/afs.m4: New file (from fileutils' configure.in).
58515 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
58516 * m4/chown.m4: Likewise.
58517 * m4/d-ino.m4: Likewise.
58518 * m4/d-type.m4: Likewise.
58519 * m4/fnmatch.m4: Likewise.
58520 * m4/getgroups.m4: Likewise.
58521 * m4/gettext.m4: Likewise.
58522 * m4/jm-mktime.m4: Likewise.
58523 * m4/jm-winsz2.m4: Likewise.
58524 * m4/lcmessage.m4: Likewise.
58525 * m4/ls-mntd-fs.m4: Likewise.
58526 * m4/malloc.m4: Likewise.
58527 * m4/memcmp.m4: Likewise.
58528 * m4/putenv.m4: Likewise.
58529 * m4/realloc.m4: Likewise.
58530 * m4/st_mtim.m4: Likewise.
58531 * m4/strftime.m4: Likewise.
58533 1999-01-16 Jim Meyering <meyering@ascend.com>
58535 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
58536 (ARGMATCH_DIE_DECL): Define.
58538 1999-01-12 Jim Meyering <meyering@ascend.com>
58540 * m4/Makefile.am.in: Rewrite to avoid using fmt.
58541 Reported by Lars Hecking.
58543 1999-01-10 Jim Meyering <meyering@ascend.com>
58545 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
58547 * m4/inttypes_h.m4: Likewise.
58548 * m4/lstat.m4: Likewise.
58549 * m4/malloc.m4: Likewise.
58550 * m4/readdir.m4: Likewise.
58551 * m4/realloc.m4: Likewise.
58552 * m4/st_dm_mode.m4: Likewise.
58553 * m4/stat.m4: Likewise.
58554 * m4/utimbuf.m4: Likewise.
58555 * m4/utimes.m4: Likewise.
58557 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
58558 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
58559 comments in config.h.in are meaningful.
58561 * m4/jm-macros.m4: Require autoconf-2.13 here.
58563 * m4/regex.m4: By default, don't use the included regex.c on systems
58564 with glibc 2. Suggestion from Uli Drepper.
58566 1999-01-02 Jim Meyering <meyering@ascend.com>
58568 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
58570 1998-12-18 Jim Meyering <meyering@ascend.com>
58572 * m4/Makefile.am.in (Makefile.am): Simplify rule.
58573 Based on a suggestion from Lars Hecking.
58575 1998-11-16 Paul Eggert <eggert@twinsun.com>
58577 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
58579 1998-11-16 Jim Meyering <meyering@ascend.com>
58581 * m4/lfs.m4: Double-quote the `uname...` expression.
58583 1998-11-14 Jim Meyering <meyering@ascend.com>
58585 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
58586 * m4/stat.m4: Likewise.
58588 1998-11-03 Jim Meyering <meyering@ascend.com>
58590 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
58591 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
58593 1998-10-18 Jim Meyering <meyering@ascend.com>
58595 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
58597 1998-10-17 Jim Meyering <meyering@ascend.com>
58599 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
58600 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
58601 calls for those previously hard-coded headers. Instead, take a new
58603 (jm_CHECK_DECLARATIONS): Reflect interface change.
58604 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
58605 (jm_CHECK_DECL_LOCALTIME_R): New macro.
58607 * m4/mktime.m4: Test for spring-forward gap before long-running test.
58609 1998-10-14 Jim Meyering <meyering@ascend.com>
58611 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
58612 instead of "TZ=America/Vancouver". From Paul Eggert.
58614 1998-10-11 Jim Meyering <meyering@ascend.com>
58616 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
58617 This adds a test for a recently added compatibility fix for mktime.c.
58618 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
58620 1998-09-27 Jim Meyering <meyering@ascend.com>
58622 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
58624 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
58625 ../configure.in, including a change from Gordon Matzigkeit to allow
58626 cross-compiling for the Hurd.
58628 * m4/glibc.m4: New file/macro to test for the GNU C Library
58629 versions 1 and 2. From Gordon Matzigkeit.
58632 1998-09-21 Jim Meyering <meyering@ascend.com>
58634 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
58636 1998-08-18 Paul Eggert <eggert@twinsun.com>
58638 Port nanosecond-resolution times to UnixWare 2.1.2 and
58639 pedantic Solaris 2.6.
58641 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
58643 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
58644 Generate name of ns member, instead of just 1 or undef.
58645 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
58647 1998-08-15 Jim Meyering <meyering@ascend.com>
58649 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
58650 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
58651 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
58652 instead of jm_TYPE_SSIZE_T.
58654 1998-08-12 Jim Meyering <meyering@ascend.com>
58656 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
58658 1998-08-02 Jim Meyering <meyering@ascend.com>
58660 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
58661 in acconfig.h manually.
58663 1998-07-31 Paul Eggert <eggert@twinsun.com>
58665 * m4/st_mtim.m4: New file.
58667 1998-07-28 Jim Meyering <meyering@ascend.com>
58669 * m4/utimes.m4: Undef stat.
58671 1998-07-25 Jim Meyering <meyering@ascend.com>
58673 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
58674 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
58676 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
58678 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
58679 uid and gid actually remain unchanged.
58681 1998-07-07 Jim Meyering <meyering@ascend.com>
58683 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
58685 1998-07-04 Jim Meyering <meyering@ascend.com>
58687 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
58688 to prove that this macro can be used in packages without regex.c.
58690 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
58692 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
58695 1998-07-03 Jim Meyering <meyering@ascend.com>
58697 * m4/gettext.m4: Add -lintl if it's found to be necessary.
58699 * m4/gettext.m4: New file -- from gettext-0.10.35.
58700 * m4/lcmessage.m4: Likewise.
58701 * m4/progtest.m4: Likewise.
58703 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
58704 * m4/jm-macros.m4: Require the new macro.
58706 1998-06-29 Jim Meyering <meyering@ascend.com>
58708 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
58709 for the definition of NGROUPS (used in a system header included
58712 1998-06-28 Jim Meyering <meyering@ascend.com>
58714 * m4/ls-mntd-fs.m4: New file.
58715 * m4/fstypename.m4: New file.
58717 * m4/jm-macros.m4: Require the new macro.
58718 * m4/jm-glibc-io.m4: New file.
58720 1998-05-19 Jim Meyering <meyering@ascend.com>
58722 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
58723 * m4/lchown.m4: New file.
58725 * m4/Makefile.am.in: New file.
58726 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
58728 1998-05-14 Jim Meyering <meyering@ascend.com>
58730 * m4/Makefile.am (EXTRA_DIST): Add them.
58731 * m4/jm-macros.m4: New file.
58732 * m4/utimbuf.m4: New file.
58734 1998-05-12 Jim Meyering <meyering@ascend.com>
58736 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
58738 1998-05-11 Jim Meyering <meyering@ascend.com>
58740 * m4/isc-posix.m4: New file.
58742 1998-05-10 Jim Meyering <meyering@ascend.com>
58744 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
58746 1998-05-09 Jim Meyering <meyering@ascend.com>
58748 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
58749 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
58752 * m4/ssize_t.m4: New file.
58753 * m4/mktime.m4: Remove file -- the new automake has this now.
58755 1998-04-26 Jim Meyering <meyering@ascend.com>
58757 * m4/assert.m4: New file.
58758 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
58760 1998-04-05 Jim Meyering <meyering@ascend.com>
58762 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
58763 (jm_PREREQ): Use it here.
58765 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
58767 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
58770 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
58772 * m4/prereq.m4: New file.
58773 * m4/error.m4: New file.
58774 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
58776 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
58778 * m4/getline.m4: Don't set am_cv_func_working_getline before the
58779 cache-check for the same variable -- that defeated the purpose of
58780 the test; the test program was never run. This was a problem only
58781 on systems with losing getline functions -- HP-UX 10.20 is one.
58782 Reported by Bjorn Helgaas.
58784 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
58786 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
58788 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
58790 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
58792 * m4/const.m4: New file. Use an initializer in this declaration
58793 typedef int charset[2]; const charset x;
58794 Reported by Bob Glickstein.
58796 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
58798 * m4/chown.m4: Fix reversed types on -1 args to chown.
58801 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
58803 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
58804 Add lseek and memchr.
58806 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
58807 T.E.Dickey <dickey@clark.net> said that some older preprocessors
58808 have a 20-character limit on names.
58810 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
58812 * m4/inttypes_h.m4: New file.
58813 * m4/uintmax_t.m4: New file.
58814 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
58823 Copyright (C) 1997-2009 Free Software Foundation, Inc.
58825 Copying and distribution of this file, with or without
58826 modification, are permitted provided the copyright notice
58827 and this notice are preserved.